joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408020
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x408027
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x4080fd
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41d950]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41d950]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41d950]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41d950]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41d950]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41d950]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41d950]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41d950]
add ecx, 8
sub edx, 8
dec esi
jne 0x408040
pop edi
test edx, edx
je 0x40811a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x41d950]
inc ecx
dec edx
jne 0x408101
not eax
pop esi
ret

Function at 0x408120
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x41d950]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x41d950]
mov dword [edx + 8], ecx
ret

Function at 0x408170
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x41d950]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x41d950]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x438cb2
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x438a14
and esi, esi
inc ecx
inc ecx
call fcn.00438ce7
or ecx, esi
sub esi, 0x6a0a0120
add ecx, 0x75583e1c
xor dword [edx], eax
sub esp, 4
mov dword [esp], 0xdef07add
pop ecx
inc edx
dec ecx
dec esi
cmp edx, ebx
jne fcn.00438cb2
dec esi
inc ecx
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x410b3c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x410b4b
pop dword [ebp - 0xc]
mov eax, 0x410b4b
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xbdbfa58a
add dword [ebp - 0x1c], 0x90929fc1
mov dword [ebp - 0x18], 0xdc44e476
sub dword [ebp - 0x18], 0xaa119831
mov dword [ebp - 0x14], 0x97be51dc
sub dword [ebp - 0x14], 0x4b720dae
mov dword [ebp - 0x10], 0x41c94c71
add dword [ebp - 0x10], 0xbe36b38f
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xecd0e250
add dword [ebp - 0x1c], 0x87a18706
mov dword [ebp - 0x18], 0x10a5c13b
add dword [ebp - 0x18], 0x30c6a03a
mov dword [ebp - 0x14], 0x5636e555
sub dword [ebp - 0x14], 0xf2c778e9
mov dword [ebp - 0x10], 0x8c95e917
add dword [ebp - 0x10], 0x736a16e9
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x85ecadca
sub eax, 0x85aa7ca6
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3d9ea
push 0
call eax
mov ecx, 0xc68ab4b7
sub ecx, 0xc68a6f92
xor edx, edx
add edx, eax
mov esi, 0xefdef7e0
sub esi, 0xef9bb3e0
add esi, dword [ebp - 0xc]
mov ebx, 0x8e0a29ec
sub ebx, 0x4ffa21b3
sub dword [ebp - 8], 0xd3c78157
mov edi, dword [esi]
mov dword [ebp - 4], 0x7dfffcf9
xor edi, ebx
mov dword [ebp - 4], 0x73668bb1
mov dword [edx], edi
add dword [ebp - 8], edx
add edx, 0xbeed0305
sub edx, 0xbeed0301
add esi, 0x301e4cb4
add esi, 0xcfe1b350
loop 0x410c65
add eax, 0x619521d7
sub eax, 0x61941a70
xor ebx, ebx
add ebx, eax
add eax, 0xb922aeb1
add eax, 0x46dd5154
mov ecx, 0xaaee0dbe
add ecx, 0x5551f242
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x41ead0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4778c8
push 0x424680
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x47a008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov ecx, 0x47d7b7
call fcn.0045e7c5
mov dword [ebp - 0x28], 0
xor edi, edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x2c], edi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [esi]
mov esi, dword [eax + 0x28]
mov dword [ebp - 0x40], esi
test esi, esi
jne 0x41eb45
xor eax, eax
jmp 0x41ecbb
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41ec86
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x41ec86
push str.AllocateAndInitializeSid
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41ec86
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x41ec86
push str.GetLengthSid
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41ec86
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x3c], edi
test edi, edi
je 0x41ec86
push str.InitializeAcl
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41ec86
push 2
push dword [ebp - 0x30]
push edi
call eax
test eax, eax
je 0x41ec86
push str.AddAccessAllowedAce
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41ec86
push dword [ebp - 0x28]
push 0x10000000
push 2
push edi
call eax
test eax, eax
je 0x41ec86
push str.SetSecurityDescriptorDacl
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x41ec86
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x41ec6f
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x41ec5c
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x41ec6c
jmp 0x41ec86
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push edi
push 1
push dword [ebp - 0x34]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.0041ece2
test ebx, ebx
jne 0x41ecb9
test edi, edi
je 0x41ecab
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor edi, edi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x41ecb9
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004222da
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41dbf0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x449a58
push 0x433404
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x450008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x41dc59
xor eax, eax
jmp 0x41ddcf
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41dd9a
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x41dd9a
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41dd9a
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x41dd9a
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41dd9a
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x41dd9a
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41dd9a
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x41dd9a
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41dd9a
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x41dd9a
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x41dd9a
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x41dd83
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x41dd70
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x41dd80
jmp 0x41dd9a
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push esi
push 1
push dword [ebp - 0x34]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.0041ddf6
test ebx, ebx
jne 0x41ddcd
test esi, esi
je 0x41ddbf
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x41ddcd
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004329ab
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4029e4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403fc8
test esi, esi
jne 0x402a1a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004040b8
jmp 0x402a38
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004028f8
mov edi, eax
test esi, esi
je 0x402a38
cmp dword [ebx], 0
je 0x402a38
dec esi
jmp 0x402a21
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403108
Capabilities:
Query or enumerate registry value

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

Function at 0x403e4c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x455048], 0
je 0x403ead
cmp word [0x45521c], 0xd7b2
jne 0x403e75
cmp dword [0x455224], 0
jbe 0x403e75
mov eax, 0x455218
call dword [0x455234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45306c
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 0x403ed4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x453030], 0
jne 0x403ec9
push 0
push 0x453064
push 0x45306c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405b20
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 0x405b86
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.00404238
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ccc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405b70
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b8d
lea eax, [ebp - 0x10]
call fcn.00403fc8
ret

Function at 0x40ac04
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 0x40ac3d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040b8
jmp 0x40ac46
mov eax, ebx
mov edx, esi
call fcn.0040401c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b2f8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b170
mov eax, dword [0x4542c0]
cmp byte [eax], 0
je 0x40b374
mov eax, dword [0x4540dc]
call fcn.00402acc
call fcn.00402824
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.00408478
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 0x40b3bc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b3aa
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45408c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x455664]
call fcn.00405034
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 0x40bc10
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 0x40bce6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404060
lea eax, [ebp - 8]
call fcn.004044d8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404488
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bcd0
mov eax, ebx
call fcn.004026bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bcc9
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.00404488
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bcb3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bcf8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bcb3
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 0x40bcd0
mov eax, dword [ebp - 0x10]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bced
lea eax, [ebp - 8]
call fcn.00403fc8
ret

Function at 0x40c164
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 0x40c1c8
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.00404238
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408008
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c1cf
lea eax, [ebp - 0xc]
call fcn.00403fc8
ret

Function at 0x41a2f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x455884
cmp dword [edi], 0
jne 0x41a36c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x455880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4533ec
mov ecx, 2
call fcn.004028b8
mov edx, 0x41a2c8
lea eax, [esi + 5]
call fcn.0041a2e8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a2e8
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 0x41a341
mov dword [0x455880], 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 0x41b588
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 0x41b58e
ret
Function at 0x41d9d0
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 0x41da21
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41da08
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41d9f8
jmp 0x41da21
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 0x41da09
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429ca8
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 0x429bf4
call sub.user32.dll_EnumWindows
ret

Function at 0x429dc8
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 0x429e45
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00429828
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 0x429ded
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00429428
cmp dword [ebp - 4], 0
je 0x429e2f
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404488
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 0x429e4c
lea eax, [ebp - 4]
call fcn.00403fc8
ret

Function at 0x42c0ac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x42c0fc]
test si, 4
je 0x42c0c0
or bl, 1
test si, 8
je 0x42c0ca
or bl, 4
test si, 1
je 0x42c0d4
or bl, 8
test si, 2
je 0x42c0de
or bl, 0x10
test si, 0x10
je 0x42c0e8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42c0f7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x42c100
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x42c138]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42c119
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42c128
or bl, 4
test esi, 0x20000000
je 0x42c133
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4327e0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4327f2
add esp, 0xfffffff0
call fcn.0040359c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419260
mov eax, dword [0x454094]
mov dword [eax + 4], ebx
mov dword [eax], 0x432b84
mov eax, dword [0x4540a0]
mov dword [eax + 4], ebx
mov dword [eax], 0x432b90
mov eax, ebx
call fcn.00432b9c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411558]
call fcn.00403260
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411558]
call fcn.00403260
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411558]
call fcn.00403260
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411558]
call fcn.00403260
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411558]
call fcn.00403260
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x42efb8
push eax
push 0
push 0
mov eax, dword [0x4541e0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41ac8c]
call fcn.0041c0d0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ac8c]
call fcn.0041c0d0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41ac8c]
call fcn.0041c0d0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00432fbc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x432e98
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x432e98
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x432e98
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43292f
call fcn.004035f4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret