joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d9f9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x428644
je 0x41dab5
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41da9d
mov esi, dword [ebx + 4]
jmp 0x41da97
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41da87
cmp dword [ebp - 0xc], 4
jne 0x41da87
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x41da7f
or dword [eax + 0x9c], ecx
jmp 0x41da87
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x41da4b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x41da2e
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x41de74
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x41fb88
call fcn.004095ec
sub esp, 0x124
mov eax, dword [0x428a58]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
mov dword [ebp - 0x10], esp
lea edx, [ebp - 0x124]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
push edx
push eax
push ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x128], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x41df82
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x41df56
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00402dc0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.0041de74
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401090
test bl, bl
jne 0x41df56
or dword [ebp - 4], 0xffffffff
jmp 0x41dec1
cmp esi, 0x103
je 0x41df66
cmp esi, 0x3f2
jne 0x41df76
push dword [edi]
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004095dc
leave
ret 8
Function at 0x41e7a7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x41e7dc
cmp edi, dword [esi + 0xc]
jge 0x41e7dc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41e7dc
cmp edi, dword [eax + 8]
jge 0x41e7dc
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x41e7de
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x41e8e2
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x41e916
jmp fcn.004142cf
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x41e987
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x41ea80
cmp eax, dword [edi + 0xc]
jge 0x41ea80
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x41e9d8
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x41ea69
cmp dword [ebp + 0xc], ebx
je 0x41ea69
jmp 0x41ea02
push 0x10
call fcn.0041e673
cmp eax, ebx
je 0x41e9ee
mov ecx, eax
call fcn.0041e8d9
mov esi, eax
jmp 0x41e9f0
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x41ea19
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x41ea29
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x41ea3b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004142cf
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00409a40
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x41ea7b
cmp ecx, dword [esi + 8]
jge 0x41ea7b
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x41ea81
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x404551
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x408200], eax
call fcn.00403ffc
mov eax, dword [0x408200]
and eax, 0x3ff
push eax
call fcn.004032a6
mov dword [esp], str.i.assmio.com
call fcn.004032c0
test eax, eax
pop ecx
je 0x40458f
call fcn.0040404a
test eax, eax
jne 0x404596
xor eax, eax
jmp 0x404623
push ebx
xor ebx, ebx
cmp dword [0x407de4], ebx
push esi
je 0x4045c1
mov esi, 0x407de8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4045c1
push 5
push ebx
push ebx
push esi
push ebx
push ebx
call fcn.00402e69
add esp, 0x18
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 2]
push eax
mov byte [ebp - 2], 0x72
lea eax, [esi + 1]
mov byte [ebp - 1], bl
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x404604
cmp byte [esi], 0x2f
jne 0x4045ee
push str.WINWORD
call fcn.00403256
pop ecx
cmp byte [esi], 0x5c
jne 0x4045f8
call fcn.00403dcd
cmp byte [esi], 0x2d
jne 0x40461f
call fcn.004040b7
jmp 0x40461f
push dword [0x4081f8]
push str.WINWORD
call fcn.00402fcb
pop ecx
test eax, eax
pop ecx
jne 0x40461f
call fcn.00403dcd
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x4051dd
Capabilities:
Terminate process

Disassembly:
push esi
push dword [ecx + 0x1c]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x405306
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push 0
call sub.MSVCRT.dll_time
pop ecx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp - 4]
mov edi, eax
call sub.MSVCRT.dll_srand
call sub.MSVCRT.dll_rand
mov esi, 0xffff
cdq
mov ecx, esi
idiv ecx
mov ebx, edx
lea eax, [ebx + edi]
push eax
call sub.MSVCRT.dll_srand
call sub.MSVCRT.dll_rand
cdq
idiv esi
and byte [ebp - 0xc], 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1c], 0x25
mov byte [ebp - 0x1b], 0x30
mov byte [ebp - 0x1a], 0x34
mov byte [ebp - 0x19], 0x58
mov byte [ebp - 0x18], 0x25
mov byte [ebp - 0x17], 0x30
mov byte [ebp - 0x16], 0x38
mov byte [ebp - 0x15], 0x58
mov byte [ebp - 0x14], 0x25
mov byte [ebp - 0x13], 0x30
mov byte [ebp - 0x12], 0x38
mov byte [ebp - 0x11], 0x58
mov byte [ebp - 0x10], 0x25
mov byte [ebp - 0xf], 0x30
mov byte [ebp - 0xe], 0x34
mov byte [ebp - 0xd], 0x58
push edx
push edi
push dword [ebp - 4]
mov dword [ebp - 8], edx
push ebx
push eax
lea eax, [ebp - 0x38]
push eax
call sub.MSVCRT.dll_sprintf
lea eax, [ebp - 0x38]
add esp, 0x20
xor ecx, ecx
mov dword [ebp - 4], eax
mov eax, ecx
push 4
cdq
pop esi
idiv esi
cmp edx, 3
jne 0x4053f0
movsx eax, byte [ecx + 0x408205]
movsx edx, byte [ecx + 0x408206]
add eax, edx
push 0x10
movsx edx, byte [ecx + 0x408207]
add eax, edx
pop esi
cdq
idiv esi
cmp edx, 9
lea eax, [edx + 0x37]
jg 0x4053e8
lea eax, [edx + 0x30]
mov byte [ecx + str.08FEE64F6D602A4700003E6EA85EAB47.html], al
jmp 0x4053fe
mov eax, dword [ebp - 4]
inc dword [ebp - 4]
mov al, byte [eax]
mov byte [ecx + str.08FEE64F6D602A4700003E6EA85EAB47.html], al
inc ecx
cmp ecx, 0x20
jl 0x4053b1
mov eax, edi
and eax, 3
dec eax
je 0x4054a9
dec eax
je 0x40545c
dec eax
mov byte [0x408228], 0x2e
je 0x40543e
mov byte [0x408229], 0x68
mov byte [0x40822a], 0x74
mov byte [0x40822b], 0x6d
mov byte [0x40822c], 0x6c
jmp 0x4054cc
mov byte [0x408229], 0x73
mov byte [0x40822a], 0x68
mov byte [0x40822b], 0x74
mov byte [0x40822c], 0x6d
jmp 0x4054cc
push 0xa
mov eax, ebx
xor edx, edx
pop ecx
div ecx
mov eax, dword [ebp - 8]
push 0x1a
mov byte [0x408228], 0x2e
add dl, 0x30
mov byte [0x408229], dl
xor edx, edx
div ecx
mov eax, edi
add dl, 0x30
mov byte [0x40822a], dl
xor edx, edx
div ecx
mov eax, dword [ebp - 8]
pop ecx
add dl, 0x30
mov byte [0x40822b], dl
xor edx, edx
div ecx
add dl, 0x41
mov byte [0x40822c], dl
jmp 0x4054cc
mov byte [0x408228], 0x2e
mov byte [0x408229], 0x61
mov byte [0x40822a], 0x73
mov byte [0x40822b], 0x70
mov byte [0x40822c], 0x78
and byte [0x40822d], 0
pop edi
pop esi
mov eax, str.08FEE64F6D602A4700003E6EA85EAB47.html
pop ebx
leave
ret
Function at 0x4028a8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4028e5
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402905
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404108
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402fd8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x450020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403070
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403050
xor eax, eax
push ebp
push 0x403049
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 0x40308c
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 0x403050
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x450020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x450020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d1c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x452048], 0
je 0x403d7d
cmp word [0x45221c], 0xd7b2
jne 0x403d45
cmp dword [0x452224], 0
jbe 0x403d45
mov eax, 0x452218
call dword [0x452234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45006c
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 0x403da4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x450030], 0
jne 0x403d99
push 0
push 0x450064
push 0x45006c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4059f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405a56
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404108
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b9c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405a40
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a5d
lea eax, [ebp - 0x10]
call fcn.00403e98
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404358
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4080b1
test al, 0x10
jne 0x4080b5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40abc8
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 0x40ac01
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f88
jmp 0x40ac0a
mov eax, ebx
mov edx, esi
call fcn.00403eec
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ac14
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 0x40ac35
mov al, byte [esp]
jmp 0x40ac37
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b2bc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b134
mov eax, dword [0x451034]
cmp byte [eax], 0
je 0x40b338
mov eax, dword [0x450e54]
call fcn.00402a08
call fcn.00402834
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.00408368
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 0x40b380
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b36e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x450e04]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x452664]
call fcn.00404f04
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 0x40bbd4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40bcaa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403f30
lea eax, [ebp - 8]
call fcn.004043a8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404358
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bc94
mov eax, ebx
call fcn.004026cc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bc8d
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 - 8]
call fcn.00404358
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bc77
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bcbc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bc77
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc94
mov eax, dword [ebp - 0x10]
call fcn.004026ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bcb1
lea eax, [ebp - 8]
call fcn.00403e98
ret

Function at 0x40c194
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c1f8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404108
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407d90
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c1ff
lea eax, [ebp - 0xc]
call fcn.00403e98
ret

Function at 0x41a320
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x452884
cmp dword [edi], 0
jne 0x41a39c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x452880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4503ec
mov ecx, 2
call fcn.00402940
mov edx, 0x41a2f8
lea eax, [esi + 5]
call fcn.0041a318
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a318
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 0x41a371
mov dword [0x452880], 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 0x41b5b0
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 0x41b5b6
ret
Function at 0x41d9f8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41da49
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41da30
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41da20
jmp 0x41da49
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41da31
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428d1c
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x428c68
call sub.user32.dll_EnumWindows
ret

Function at 0x428e3c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x428eb9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042889c
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x428e61
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042849c
cmp dword [ebp - 4], 0
je 0x428ea3
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404358
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428ec0
lea eax, [ebp - 4]
call fcn.00403e98
ret

Function at 0x42bd0c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x452b54], 0
je 0x42be5b
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x450fd4]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42be5b
mov eax, dword [0x452b58]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x452b54]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42be2a
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x452b54]
call fcn.004138f0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42be22
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42be22
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42be22
mov eax, dword [ebp - 0x14]
call fcn.00434988
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42be22
push ebp
call fcn.0042bcc8
pop ecx
test al, al
jne 0x42be22
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42bdde
mov eax, dword [ebp - 0x14]
call fcn.004334b8
dec eax
jle 0x42be22
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.0040335c
cmp byte [ebp - 1], 0
je 0x42be22
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42be22
mov edx, dword [ebp - 0x14]
mov eax, dword [0x452b58]
call fcn.0042b494
inc edi
dec ebx
jne 0x42bd71
mov eax, dword [0x452b58]
cmp dword [eax + 8], 0
jle 0x42be42
mov eax, dword [0x452b58]
call fcn.0042b524
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42be5b
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042bb30
pop ecx
test al, al
jne 0x42be5b
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret