joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467b20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x467b53
push esi
call fcn.00475ee0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x467b4c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x467bd9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x467bc2
mov eax, dword [esi + 8]
test eax, eax
je 0x467b77
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x467bbe
cmp eax, 2
je 0x467bc2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x467b6a
cmp eax, 3
je 0x467b9d
cmp eax, 1
jne 0x467b6a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x467b6a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x467b6a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00467c00
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x467be8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00467c00
add esp, 4
pop esi
ret

Function at 0x468470
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x468491
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x468491
mov eax, dword [eax + 0x44]
test eax, eax
je 0x468491
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x484d70
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
lea eax, [esp]
push eax
push 0x4c17c8
push 1
push 0
push 0x4c17b8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x484d9e
xor eax, eax
add esp, 0x210
ret 8
mov eax, dword [esp]
mov edx, dword [esp + 0x214]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp]
lea edx, [esp + 4]
push edx
push 0x4c1868
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x484dd2
xor eax, eax
add esp, 0x210
ret 8
mov ecx, dword [esp + 0x218]
lea eax, [esp + 8]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push 2
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, 1
add esp, 0x210
ret 8

Function at 0x49b256
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49b28e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004992fd
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004992d5
jmp 0x49b29a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x49c948
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49c98a
call fcn.004a22c9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49c98a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49c981
xor eax, eax
jmp 0x49c992
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049c998
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a27f9
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a2827
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a2845
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a275f
jmp 0x4a2845
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a2845
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a275f
test edi, edi
mov eax, edi
jne 0x4a282f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0xee3bd4
Capabilities:
Encode data using xor

Disassembly:
jmp 0xee3bde
pushal
call 0xee3be4
pop ebp
sub ebp, 0x10
sub ebp, 0xae3bd4
jmp 0xee3bfa
mov eax, 0xae3bd4
add eax, ebp
add eax, 0x4c
mov ecx, 0x5db
mov edx, 0xd49222b6
xor byte [eax], dl
inc eax
dec ecx
jne 0xee3c11
jmp 0xee3c24
cmp eax, 0x8a3f3d7b
mov dh, 0xb6
mov dh, 0x37
ja 0xee3c7d
mov dh, 0xb6
mov dh, 0xb5
jnp 0xee3c43
mov al, 0xb6
mov dh, 0xb6
or al, 0x9e
mov dh, 0xb6
mov dh, 0x41
push esp
mov ch, 0x7e
cmp eax, 0xb6b6ba37
mov dh, 0xb5
aaa
mov edx, 0xb5b6b6b6
jae 0xee3c31
cmp edx, edx
xchg edx, eax
dec edx
aas
mov dl, 0x92
fsubrp st(2)
sahf
xchg edi, eax
mov dh, 0xde
leave
movsd dword es:[edi], dword [esi]
cmp esi, dword [esi - 0x216d6549]
fstp xword [eax - 0x4ca1d5f7]
mov dh, 0xb6
mov dh, 0x5f
pushfd
mov dh, 0xb6
mov dh, 0xe3
cmp ebx, edx
xchg edx, eax
mov dh, 0x3d
xor edi, dword [esi + 0x3db6b6b6]
and edi, dword [edx + 0x3db6b6b6]
cmp esp, dword [esi + 0x77b6b6b6]
mov dh, 0xb6
cmp eax, 0xb6b6a63b
mov dh, 0x77
pop edi
mov ah, 0x87
mov ah, 0x35
je 0xee3c3f
invalid
Function at 0x410830
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test eax, eax
je 0x410916
push ecx
push eax
lea eax, [ebp + 8]
push eax
mov edx, 0x104
lea ecx, [ebp - 0x210]
call fcn.0040c370
test eax, eax
jne 0x410916
cmp word [ebp - 0x210], 0
lea eax, [ebp - 0x210]
je 0x410892
mov ecx, 0x3f
nop
cmp word [eax], 0x5c
jne 0x410889
mov word [eax], cx
add eax, 2
cmp word [eax], 0
jne 0x410880
push 0xffffffffffffffff
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4108a7
cmp eax, 0x80
jne 0x410916
mov bl, byte [ebp - 4]
lea eax, [ebp + 8]
push eax
push 0x103
push 0
push str.SoftwareCryptoLockerFiles
and bl, 0xfe
push 0x80000001
or bl, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x4108fd
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
test esi, esi
je 0x4108fb
test bl, 1
je 0x4108f4
push esi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
mov eax, dword [ebp - 4]
sete bl
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x403908
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4b4020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4039a0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403980
xor eax, eax
push ebp
push 0x403979
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4039bc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403980
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4b4020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4b4020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4047c0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ba04c], 0
je 0x404821
cmp word [0x4ba220], 0xd7b2
jne 0x4047e9
cmp dword [0x4ba228], 0
jbe 0x4047e9
mov eax, 0x4ba21c
call dword [0x4ba238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404848
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b402c], 0
jne 0x40483d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404998
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4b4030], 0
je 0x4049be
mov edx, esi
mov eax, ebx
call dword [0x4b4030]
jmp 0x4049cd
mov eax, 8
call fcn.00402ef0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4ba04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404960
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4061c8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4063f8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40624b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4063f8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40624b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406414
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4062d4
xor eax, eax
push ebp
push 0x4062cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406004
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4062b2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406434
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4062b2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4062d4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4063ee
cmp byte [ebp - 0xd], 0
jne 0x40631b
cmp byte [ebp - 0x12], 0
je 0x4063ee
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406334
dec ebx
cmp byte [ebx], 0x2e
je 0x406343
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406333
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4063ee
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406380
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4063ee
cmp byte [ebp - 0xd], 0
je 0x4063ee
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4063ee
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408adc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408b2e
test eax, edx
je 0x408b31
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408af1
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x408b17
add ecx, 4
js 0x408b07
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408b14
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x408b3d
test edx, edx
jne 0x408ae4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00404ea4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40976a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40978b
cmp ebx, 3
je 0x40978b
cmp ebx, 0x7b
je 0x40978b
mov eax, esi
call fcn.0040970c
test al, al
jne 0x40978f
xor eax, eax
jmp 0x409791
mov al, 1
pop esi
pop ebx
ret

Function at 0x40ca84
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40cabd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404b04
jmp 0x40cac6
mov eax, ebx
mov edx, esi
call fcn.00404a68
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cad0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40caf2
movzx eax, byte [esp]
jmp 0x40caf4
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d184
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cffc
mov eax, dword [0x4b8e74]
cmp byte [eax], 0
je 0x40d200
mov eax, dword [0x4b897c]
call fcn.00403298
call fcn.0040304c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040994c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40d248
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d236
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4b88c4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4bc7f8]
call fcn.00405fac
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40db2c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40dc02
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404aac
lea eax, [ebp - 4]
call fcn.00404efc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ea4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40dbec
mov eax, ebx
call fcn.00402ef0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40dbe5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ea4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40dbcf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40dc14
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40dbcf
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dbec
mov eax, dword [ebp - 0x10]
call fcn.00402f0c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc09
lea eax, [ebp - 4]
call fcn.00404a14
ret

Function at 0x40efc8
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00404a14
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00404ea4
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x40f00d
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00404b04
jmp 0x40f026
mov edx, ebx
dec edx
mov eax, esi
call fcn.00405134
push ebx
mov eax, dword [esi]
call fcn.00404ea4
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42049c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004201d8
dec esi
jne 0x4204be
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x421630
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4be9f0
cmp dword [edi], 0
jne 0x4216ac
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4be9ec]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4b4af0
mov ecx, 2
call fcn.004030e0
mov edx, 0x421608
lea eax, [esi + 5]
call fcn.00421628
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00421628
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x421681
mov dword [0x4be9ec], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x423b10
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.0040340c
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x4b9108]
cmp byte [edx + 0xc], 0
je 0x423b74
mov edx, dword [0x4b90f0]
cmp dword [edx], 2
jne 0x423b74
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret

Function at 0x423b78
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x423c30
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00423b10
test al, al
je 0x423c12
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00404b04
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x423c12
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ea4
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 4]
call fcn.00404ea4
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00404c0c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x423bcb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423c37
lea eax, [ebp - 0x2c]
call fcn.00404a14
lea eax, [ebp - 4]
call fcn.00404a14
ret
Function at 0x423d60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404ea4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x423db8
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4b9114]
mov dl, 1
mov eax, dword [0x42370c]
call fcn.0040d368
call fcn.0040436c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00423814
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x424c24
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x424c2a
ret
Function at 0x4333e0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404a14
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43342e
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404c84
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x438510
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x438643
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x42376c]
call fcn.0042383c
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x438619
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004238dc
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404c84
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x438658
call fcn.00404d2c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00423940
lea ecx, [ebp - 4]
mov edx, 0x438694
mov eax, dword [ebp - 0xc]
call fcn.00423cb8
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040ef44
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4385fc
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4386a0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4b54a8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438603
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x4386f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x438737
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43871a
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43872b
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x438737
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret