joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d20
Capabilities:
Accept command line arguments
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x40dda6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xed4
mov eax, dword [esp + 0xee4]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push eax
push 0x81
mov dword [esp + 0x30], ebp
call sub.MFC42.DLL_CDialog::CDialog
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], bl
mov dword [esp + 0xeec], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp], 0x40e9e0
stosb byte es:[edi], al
call dword [0x40e0b4]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp + 0x60]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
mov edi, edx
rep stosd dword es:[edi], eax
push ebx
call dword [0x40e080]
mov ecx, 0x41
xor eax, eax
lea edi, [ebp + 0x164]
push ebx
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp + 0x268]
rep stosd dword es:[edi], eax
mov dword [ebp + 0x370], ebx
call dword [0x40e30c]
push eax
call dword [0x40e308]
lea ecx, [esp + 0x20]
mov al, 0x65
push ecx
mov byte [esp + 0x24], 0x33
mov byte [esp + 0x25], 0x36
mov byte [esp + 0x26], 0x30
mov byte [esp + 0x27], 0x54
mov byte [esp + 0x28], 0x72
mov byte [esp + 0x29], 0x61
mov byte [esp + 0x2a], 0x79
mov byte [esp + 0x2b], 0x2e
mov byte [esp + 0x2c], al
mov byte [esp + 0x2d], 0x78
mov byte [esp + 0x2e], al
mov byte [esp + 0x2f], bl
call fcn.004063e0
add esp, 0xc
lea ecx, [esp + 0x24]
mov dword [0x42478c], eax
call fcn.00402b70
mov byte [esp + 0xeec], 1
mov byte [esp + 0x10], 0x33
mov ecx, 0x2ae
xor eax, eax
lea edi, [esp + 0x42c]
mov byte [esp + 0x11], 0x34
rep stosd dword es:[edi], eax
lea edi, [esp + 0x10]
or ecx, 0xffffffff
mov byte [esp + 0x12], 0x32
mov byte [esp + 0x13], 0x31
mov byte [esp + 0x14], bl
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x14]
push ecx
push edx
push 0xab8
lea eax, [esp + 0x43c]
push 0x413d28
push eax
lea ecx, [esp + 0x3c]
call fcn.00402bb0
mov ecx, 0x2ae
lea esi, [esp + 0x42c]
mov edi, 0x413d28
push 0x4147e4
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x30]
mov dword [ebp + 0x36c], 1
push ecx
call dword [0x40e2e4]
add esp, 8
test eax, eax
je 0x403ee7
cmp dword [0x414774], ebx
je 0x403ef8
call fcn.00404cf0
jmp 0x403ef8
push 0x7d0
call dword [0x40e0cc]
mov dword [ebp + 0x36c], ebx
mov ecx, ebp
call fcn.004043b0
mov ecx, ebp
call fcn.004045c0
lea ecx, [esp + 0x24]
mov byte [esp + 0xeec], bl
call fcn.00402ba0
mov ecx, dword [esp + 0xee4]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xee0
ret 4
Function at 0x4045c0
Capabilities:
Create thread

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
call fcn.00404660
test eax, eax
je 0x4045d9
mov ecx, esi
call fcn.00404860
push ebx
push edi
mov ecx, esi
call fcn.00404570
lea eax, [esp + 0xc]
push eax
push 0x202
call dword [0x40e408]
mov edi, dword [0x40e0c4]
push 0
push 0
push esi
push 0x408c80
push 0
push 0
call edi
mov ebx, dword [0x40e168]
push eax
call ebx
push 0x1f4
call dword [0x40e0cc]
push 0
push 0
push esi
push 0x408e30
push 0
push 0
call edi
push eax
call ebx
mov eax, dword [0x424790]
pop edi
cmp eax, 0xc8
pop ebx
jne 0x40464c
mov ecx, esi
call fcn.00404530
pop esi
add esp, 0x190
ret
call fcn.004049b0
pop esi
add esp, 0x190
ret

Function at 0x404860
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x42478c]
push ebx
push ebp
mov ebp, dword [0x40e044]
push esi
push edi
test eax, eax
mov esi, ecx
jne 0x4048b7
mov eax, dword [0x414550]
test eax, eax
jne 0x4048b7
push 0xf003f
push 0
push 0
call dword [0x40e03c]
mov edi, eax
push 0x10000
push 0x413710
push edi
call dword [0x40e020]
mov ebx, eax
push ebx
call dword [0x40e024]
push ebx
call ebp
push edi
call ebp
push 0
push esi
call fcn.00404150
lea ebx, [esi + 0x164]
push 0
push 0
push ebx
push fcn.00404340
push 0
push 0
call dword [0x40e0c4]
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [0x40e0fc]
push edi
call dword [0x40e168]
lea edi, [esi + 0x268]
lea eax, [esi + 0x60]
push edi
push eax
call fcn.004047f0
mov eax, dword [0x414778]
add esp, 8
test eax, eax
je 0x404911
mov eax, dword [esi + 0x36c]
test eax, eax
je 0x404911
push edi
mov ecx, esi
call fcn.00404be0
mov ecx, dword [0x414768]
push ecx
push edi
call dword [0x40e0f8]
mov ecx, esi
call fcn.00404a40
mov eax, dword [0x42478c]
test eax, eax
je 0x40494d
push ebx
mov ecx, esi
call fcn.00404740
push 0x41491c
push edi
call fcn.00404c80
add esp, 8
push 0
call dword [0x40e0f4]
mov eax, dword [esi + 0x370]
test eax, eax
je 0x404982
push 0x414918
push edi
call dword [0x40e324]
mov edi, eax
add esp, 8
test edi, edi
je 0x404982
push edi
push 0xc8
call dword [0x40e328]
push edi
call dword [0x40e318]
add esp, 0xc
mov eax, dword [0x414550]
test eax, eax
jne 0x4049a5
mov edx, dword [esi + 0x370]
push 0
push 0
push edx
call dword [section..rdata]
mov eax, dword [esi + 0x370]
push eax
call ebp
push 0
call dword [0x40e0f4]
nop
nop
nop

Function at 0x4049b0
Capabilities:
Create thread

Disassembly:
push 0x413e34
push 1
push 0
call dword [0x40e100]
mov dword [0x424794], eax
call dword [0x40e0a0]
cmp eax, 0xb7
jne 0x4049d9
push 0xffffffffffffffff
call dword [0x40e0f4]
push esi
mov esi, dword [0x40e0c4]
push edi
push 0
push 0
push 0
push 0x404ae0
push 0
push 0
call esi
mov edi, dword [0x40e168]
push eax
call edi
push 0
push 0
push 0
push 0x4083b0
push 0
push 0
call esi
push eax
call edi
push 0
push 0
push 0
push 0x408100
push 0
push 0
call esi
push eax
call edi
pop edi
pop esi
push 0
call fcn.00404db0
call fcn.00404cf0
jmp 0x404a25
Function at 0x404c80
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x60]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push eax
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 4
mov word [esp + 0x6c], 5
call dword [0x40e08c]
test eax, eax
pop edi
je 0x404ce9
mov ecx, dword [esp]
push esi
mov esi, dword [0x40e168]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
pop esi
add esp, 0x54
ret
Function at 0x406320
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push esi
push 0x414868
push eax
call dword [0x40e324]
mov esi, eax
add esp, 8
test esi, esi
jne 0x406342
pop esi
add esp, 8
ret
push ebx
push edi
mov edi, dword [0x40e320]
push 0
push 0
push esi
call edi
mov ebx, dword [0x40e338]
push esi
push 1
lea ecx, [esp + 0x2c]
push 2
push ecx
call ebx
add esp, 0x1c
cmp word [esp + 0x18], 0x5a4d
jne 0x4063be
push 0
push 0x3c
push esi
call edi
push esi
push 1
lea edx, [esp + 0x20]
push 4
push edx
call ebx
mov eax, dword [esp + 0x28]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x40]
push 4
push ecx
call ebx
mov eax, dword [esp + 0x48]
add esp, 0x38
xor edx, edx
cmp eax, 0x4550
sete dl
push esi
mov edi, edx
call dword [0x40e318]
add esp, 4
mov eax, edi
pop edi
pop ebx
pop esi
add esp, 8
ret
push esi
xor edi, edi
call dword [0x40e318]
add esp, 4
mov eax, edi
pop edi
pop ebx
pop esi
add esp, 8
ret
Function at 0x407b30
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x160
or ecx, 0xffffffff
xor eax, eax
push ebx
mov ebx, dword [esp + 0x168]
push esi
push edi
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x407c48
mov ecx, 0x41
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
xor esi, esi
push eax
push 0xf003f
push esi
push 0x414c24
push 0x80000000
mov dword [esp + 0x24], 0x104
call dword [0x40e018]
test eax, eax
jne 0x407c48
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x68]
push ecx
push edx
push esi
push eax
call dword [0x40e014]
mov ecx, dword [esp + 0xc]
push ecx
call dword [0x40e028]
lea edx, [esp + 0x68]
push edx
call dword [0x40e0e8]
test eax, eax
je 0x407c48
lea eax, [esp + 0x68]
push 0x414c20
push eax
call dword [0x40e2f0]
add esp, 8
cmp eax, esi
je 0x407c48
push ebx
push eax
call dword [0x40e110]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x174]
mov dword [esp + 0x14], 0x44
cmp eax, esi
je 0x407c07
mov dword [esp + 0x1c], 0x4136fc
jmp 0x407c29
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x40], 1
mov word [esp + 0x44], si
mov word [esp + 0x46], si
mov dword [esp + 0x48], esi
lea ecx, [esp + 0x58]
lea edx, [esp + 0x14]
push ecx
push edx
push esi
push esi
push esi
push esi
push esi
lea eax, [esp + 0x84]
push esi
push eax
push esi
call dword [0x40e08c]
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x160
ret
Function at 0x407c60
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x158
and eax, 0xffff
dec eax
push ebx
cmp eax, 0xa1
push edi
ja case.0x407c85.5
xor ecx, ecx
mov cl, byte [eax + 0x407e20]
jmp dword [ecx*4 + 0x407e0c]
mov edx, dword [esp + 0x164]
push 5
push edx
call fcn.00407b30
add esp, 8
pop edi
pop ebx
add esp, 0x158
ret
mov eax, dword [esp + 0x164]
push 0
push eax
call fcn.00407b30
add esp, 8
pop edi
pop ebx
add esp, 0x158
ret
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], bl
push 0x41493c
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x60]
push ecx
stosb byte es:[edi], al
call fcn.00406030
mov eax, dword [esp + 0x16c]
lea edx, [esp + 0x64]
push edx
push eax
call fcn.00406090
lea ecx, [esp + 0x6c]
push ecx
call fcn.00406320
add esp, 0x14
test eax, eax
je case.0x407c85.5
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xc]
push esi
mov esi, dword [0x40e2f4]
push 0x30
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0x44
mov dword [esp + 0x18], 0x4136fc
call esi
add esp, 4
lea edx, [esp + 0x50]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x60]
push edx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push ebx
call dword [0x40e08c]
push 0x30
call esi
add esp, 4
pop esi
pop edi
pop ebx
add esp, 0x158
ret
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], bl
lea edx, [esp + 0x5c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x41493c
push edx
stosb byte es:[edi], al
call fcn.00406030
mov ecx, dword [esp + 0x16c]
lea eax, [esp + 0x64]
push eax
push ecx
call fcn.00406090
lea edx, [esp + 0x6c]
push edx
call fcn.00406320
add esp, 0x14
test eax, eax
je case.0x407c85.5
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xc]
lea edx, [esp + 0x5c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x4c]
lea ecx, [esp + 8]
push eax
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edx
push ebx
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x5c], 1
mov word [esp + 0x60], bx
mov word [esp + 0x62], bx
mov dword [esp + 0x64], ebx
call dword [0x40e08c]
pop edi
pop ebx
add esp, 0x158
ret

Function at 0x4094c0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00409530
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0xc]
shr ecx, 2
test eax, eax
jne 0x4094f1
test ecx, ecx
jle 0x409526
mov edx, dword [esi + 4]
mov edi, dword [esi + 8]
mov edx, dword [edx + eax*4]
mov dword [edi + eax*4], edx
inc eax
cmp eax, ecx
jl 0x4094db
pop edi
pop esi
ret 4
jbe 0x409526
xor eax, eax
test ecx, ecx
jle 0x409526
push ebx
mov edx, dword [esi + 4]
mov edi, dword [esi + 8]
mov edi, dword [edi + eax*4]
mov ebx, dword [edx + eax*4]
lea edx, [edx + eax*4]
xor ebx, edi
mov dword [edx], ebx
mov edx, dword [esi + 8]
mov edi, dword [esi + 4]
mov ebx, dword [edx + eax*4]
lea edx, [edx + eax*4]
mov edi, dword [edi + eax*4]
xor ebx, edi
inc eax
cmp eax, ecx
mov dword [edx], ebx
jl 0x4094fa
pop ebx
pop edi
pop esi
ret 4
Function at 0x454120
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xcc
je 0x454148
mov eax, dword [esi + 0x17c]
push esi
call dword [eax]
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x10], 0xcc
mov ecx, dword [esi + 0x17c]
mov al, byte [ecx + 8]
test al, al
je 0x454173
mov edx, dword [esi]
push esi
mov dword [edx + 0x14], 0x2d
mov eax, dword [esi]
call dword [eax]
mov ecx, dword [esi + 0x17c]
add esp, 4
mov al, byte [ecx + 8]
test al, al
jne 0x454155
mov cl, byte [esi + 0x41]
xor edx, edx
test cl, cl
setne dl
add edx, 0xcd
mov al, 1
mov dword [esi + 0x10], edx
pop esi
ret
Function at 0x45cf20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
lea eax, [esp + 4]
push edi
xor esi, esi
push eax
push 0x20019
push esi
push ecx
push edx
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45cf9b
mov ecx, dword [esp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
push eax
push esi
push esi
push esi
push esi
push ecx
call edi
test eax, eax
jne 0x45cf9b
mov edx, dword [esp + 0x14]
mov ecx, 0x4afb50
push edx
call fcn.00416190
mov ecx, dword [esp + 8]
mov esi, eax
lea eax, [esp + 0x14]
push eax
push esi
push 0
push 0
push 0
push ecx
call edi
test eax, eax
je 0x45cf9b
push esi
mov ecx, 0x4afb50
call fcn.004161f0
xor esi, esi
mov eax, dword [esp + 8]
test eax, eax
je 0x45cfaa
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ecx
ret

Function at 0x45d084
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x54
push ebx
push ebp
push esi
push edi
push str._shellopencommand
push eax
xor ebp, ebp
xor esi, esi
xor edi, edi
call fcn.004143e0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x45d0ef
push ebx
push 0x80000000
call fcn.0045cf20
mov esi, eax
add esp, 8
test esi, esi
je 0x45d0ef
mov ecx, dword [esp + 0x6c]
push ecx
push esi
call fcn.0045cfb0
mov edi, eax
add esp, 8
test edi, edi
je 0x45d0ef
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x45d0ef
mov edx, dword [esp + 0x10]
mov ebp, 1
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
mov ecx, 0x4afb50
call fcn.004161f0
push esi
mov ecx, 0x4afb50
call fcn.004161f0
push edi
mov ecx, 0x4afb50
call fcn.004161f0
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x54
ret

Function at 0x45dde0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
push esi
push eax
mov esi, str.Windows
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x14]
dec eax
je 0x45de51
dec eax
jne 0x45de6f
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x45de3d
mov eax, dword [esp + 0xc]
cmp eax, 1
jne 0x45de2a
mov esi, str.Windows_XP
mov eax, esi
pop esi
add esp, 0x94
ret
test eax, eax
jne 0x45de6f
mov esi, str.Windows_2000
mov eax, esi
pop esi
add esp, 0x94
ret
cmp eax, 4
jne 0x45de6f
mov esi, str.Windows_NT
mov eax, esi
pop esi
add esp, 0x94
ret
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x45de68
mov esi, str.Windows_98_ME
mov eax, esi
pop esi
add esp, 0x94
ret
jne 0x45de6f
mov esi, str.Windows_95
mov eax, esi
pop esi
add esp, 0x94
ret

Function at 0x45de80
Capabilities:
Identify system language via api

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push eax
call fcn.0045de90
add esp, 4
ret
Function at 0x45e0c0
Capabilities:
Identify system language via api

Disassembly:
push esi
call fcn.0045dde0
mov esi, eax
call fcn.0045de80
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push str.point
push 0x4a801c
push 0x4a34bc
push 0x48
push 1
call esi
push eax
push 0
call esi
push eax
mov eax, dword [esp + 0x28]
push str.Macromedia_Windows
push str.M_sR_dx_dDP_dCOL_sAR_sI_sOS_sL_s
push eax
call fcn.00414540
add esp, 0x2c
pop esi
ret

Function at 0x45e520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
ret

Function at 0x45e5a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x45e5c3
xor ecx, ecx
cmp eax, 0x10
sete cl
mov al, cl
pop ebx
add esp, 0xc
ret
push esi
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], eax
mov edi, ecx
mov dword [esp + 0x10], eax
test edi, edi
mov dword [esp + 0x14], eax
jle 0x45e610
cmp byte [esi + ebx], 0x5c
jne 0x45e5fc
test esi, esi
je 0x45e5fc
mov edx, dword [esp + 0xc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [esi + ebx]
lea ecx, [esp + 0xc]
push eax
call fcn.00413e80
inc esi
cmp esi, edi
jl 0x45e5e5
test edi, edi
je 0x45e622
cmp byte [edi + ebx - 1], 0x5c
je 0x45e622
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 0xc]
cmp eax, 0x10
push ecx
mov ecx, 0x4afb50
sete bl
call fcn.004161f0
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x45e6a0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp]
push 0
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
pop ecx
ret

Function at 0x45e6d0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp]
push 0
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp]
pop ecx
ret

Function at 0x45e720
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push ebx
push 0
lea ecx, [esp + 0xc]
push eax
push ecx
xor bl, bl
call fcn.0045e650
add esp, 0xc
test al, al
je 0x45e75d
mov edx, dword [esp + 8]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push edx
mov bl, 1
mov dword [ecx], eax
call fcn.0045e700
add esp, 4
mov al, bl
pop ebx
ret
Function at 0x45e770
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
lea eax, [esp]
push esi
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x400
mov dword [esp + 0x20], 2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x45e7f0
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push esi
push 0x4a8040
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x45e7e5
mov ecx, dword [esp + 0x414]
lea edx, [esp + 0x10]
push edx
call fcn.00414080
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 0x40c
ret

Function at 0x4603e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa4]
push edi
mov ecx, 0x216
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, esi
call fcn.004070e0
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x10]
lea ebp, [esi + 0x84c]
rep stosd dword es:[edi], eax
lea ebx, [esi + 0x850]
lea eax, [esp + 0x10]
push eax
mov dword [ebp], 0
mov dword [ebx], 0
mov byte [esi + 0x848], 0
mov byte [esi + 0x854], 0
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x14], 5
jbe 0x460469
push str.OS_greater_than_5_detected._Font_chaining_not_needed_n
call fcn.00406d50
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
push str.Attempting_to_load_MLang._n
call fcn.00406d50
add esp, 4
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x4604f8
push ebp
push 0x4a09d0
push 3
push 0
push 0x4a09c0
mov byte [esi + 0x854], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebp, dword [ebp]
test ebp, ebp
jne 0x4604bd
push 0x4a8260
call fcn.00406d50
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
mov ecx, dword [ebp]
push ebx
push 0x4a8250
push ebp
call dword [ecx]
cmp dword [ebx], 0
jne 0x4604e6
push str.iMLangFontLink_query_failed_n
call fcn.00406d50
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
mov byte [esi + 0x848], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
push str.MLang_failed___CoInitialise_error____n
call fcn.00406d50
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
Function at 0x460ab0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push 2
mov esi, ecx
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov ebx, eax
test ebx, ebx
jl 0x460b3d
cmp ebx, 0xff
jg 0x460b3d
cmp ebx, 0x7f
jle 0x460adb
mov al, bl
pop esi
pop ebx
ret 4
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
mov al, byte [esi + 9]
je 0x460b11
test al, al
je 0x460b36
push ebx
call fcn.004146c0
add esp, 4
test al, al
push ebx
jne 0x460b2b
mov ecx, esi
call fcn.00460980
and eax, 0xff
pop esi
mov ebx, eax
mov al, bl
pop ebx
ret 4
test al, al
push ebx
je 0x460b2b
mov ecx, esi
call fcn.00460980
and eax, 0xff
pop esi
mov ebx, eax
mov al, bl
pop ebx
ret 4
call fcn.00414750
add esp, 4
movsx ebx, al
mov al, bl
pop esi
pop ebx
ret 4
mov al, byte [esp + 0xc]
pop esi
pop ebx
ret 4
Function at 0x4637d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [ecx + 0x102c]
xor bl, bl
call dword [sym.imp.USER32.dll_GetFocus]
cmp esi, eax
jne 0x4637fa
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
pop esi
pop ebx
setl al
ret 4
mov al, bl
pop esi
pop ebx
ret 4

Function at 0x463840
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x4b05c4]
sub esp, 0x190
cmp eax, 1
push esi
jne 0x463859
pop esi
add esp, 0x190
ret
cmp eax, 2
je 0x4639a8
push str.WSOCK32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x46399e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSACleanup
push esi
call edi
push str.WSAStartup
push esi
mov dword [0x4b0580], eax
call edi
push str.listen
push esi
mov dword [0x4b0584], eax
call edi
push str.closesocket
push esi
mov dword [0x4b0588], eax
call edi
push str.bind
push esi
mov dword [0x4b058c], eax
call edi
push str.htons
push esi
mov dword [0x4b0590], eax
call edi
push str.htonl
push esi
mov dword [0x4b0594], eax
call edi
push str.socket
push esi
mov dword [0x4b0598], eax
call edi
push str.WSAAsyncSelect
push esi
mov dword [0x4b059c], eax
call edi
push str.accept
push esi
mov dword [0x4b05a0], eax
call edi
push str.WSAGetLastError
push esi
mov dword [0x4b05a4], eax
call edi
push str.WSAAsyncGetHostByName
push esi
mov dword [0x4b05a8], eax
call edi
push str.inet_addr
push esi
mov dword [0x4b05ac], eax
call edi
push str.connect
push esi
mov dword [0x4b05b0], eax
call edi
push str.send
push esi
mov dword [0x4b05b4], eax
call edi
push str.recv
push esi
mov dword [0x4b05b8], eax
call edi
push str.WSACancelAsyncRequest
push esi
mov dword [0x4b05bc], eax
call edi
mov dword [0x4b05c0], eax
lea eax, [esp + 8]
push eax
push 0x101
call dword [0x4b0584]
test eax, eax
pop edi
jne 0x46399e
mov ax, word [esp + 4]
cmp al, 1
jne 0x463998
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x463998
mov dword [0x4b05c4], 1
mov eax, 1
pop esi
add esp, 0x190
ret
call dword [0x4b0580]
mov dword [0x4b05c4], 2
xor eax, eax
pop esi
add esp, 0x190
ret