joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x411ff8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
mov eax, dword [0x41711c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [edi + 0xc]
xor ebp, ebp
cmp dword [eax + 8], ebp
mov byte [esp + 0x13], 0
je 0x401d97
mov eax, dword [edi + 0x1c]
cmp eax, ebp
mov byte [esp + 0x12], 0
je 0x401c8e
test byte [edi + 0x18], 4
jne 0x401c99
cmp byte [edi + 4], 0
jne 0x401c8e
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [edi + 0x1c], ebp
mov dword [edi + 0x18], ebp
mov esi, edi
call fcn.00401a80
mov byte [esp + 0x12], al
cmp dword [edi + 0x1c], ebp
je 0x401d76
mov eax, dword [edi + 0x20]
cmp eax, ebp
jne 0x401cbe
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
push 2
push 0xc
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
je 0x401d76
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], vtable.FCString.0
call fcn.00401f90
push ebp
push 0x100
lea ecx, [esp + 0x20]
call fcn.00401fe0
mov dword [esp + 0x38], ebp
cmp dword [esp + 0x24], ebp
jle 0x401d65
mov ebx, dword [sym.imp.ADVAPI32.dll_GetAce]
mov eax, dword [edi + 0x20]
lea edx, [esp + 0x14]
push edx
push ebp
push eax
call ebx
mov ecx, dword [esp + 0x14]
add ecx, 8
push ecx
lea esi, [esp + 0x1c]
call fcn.00401ae0
test al, al
je 0x401d53
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x14]
push str.Users
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x401d53
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
and ecx, 0x20006
cmp ecx, 0x20006
je 0x401d5e
add ebp, 1
cmp ebp, dword [esp + 0x24]
jl 0x401d06
jmp 0x401d63
mov byte [esp + 0x13], 1
xor ebp, ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0xffffffff
call fcn.004020d0
cmp byte [esp + 0x12], 0
je 0x401d97
cmp byte [edi + 4], 0
jne 0x401d97
mov eax, dword [edi + 0x1c]
cmp eax, ebp
je 0x401d94
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [edi + 0x1c], ebp
mov dword [edi + 0x18], ebp
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x411d28
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x41711c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x28]
xor esi, esi
cmp eax, esi
je 0x40329f
push eax
lea ecx, [esp + 0xc]
call fcn.00401090
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40328e
mov ecx, dword [esp + 0x2c]
cmp ecx, esi
je 0x403289
mov dword [ecx], eax
mov esi, 1
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 8]
call fcn.00401110
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret
Function at 0x4034f0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x411c28
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x41711c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, edi
mov edx, dword [esp + 0x34]
mov eax, dword [edi + 4]
push 0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x38]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40363a
lea edx, [edi + 8]
push edx
lea ecx, [esp + 0x18]
call fcn.004020e0
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [esi - 5]
cmp eax, 0x1c
ja case.0x40356f.6
movzx eax, byte [eax + 0x403694]
jmp dword [eax*4 + 0x40367c]
push 0x413580
lea ecx, [esp + 0x18]
call fcn.00402180
jmp 0x403605
push 0x413554
lea ecx, [esp + 0x18]
call fcn.00402180
jmp 0x403605
push 0x413470
lea ecx, [esp + 0x18]
call fcn.00402180
jmp 0x403605
push 0x413434
lea ecx, [esp + 0x18]
call fcn.00402180
jmp 0x403605
push 0x413534
lea ecx, [esp + 0x18]
call fcn.00402180
jmp 0x403605
push 0x413510
lea ecx, [esp + 0x18]
call fcn.00402180
push 0x20
push 0
push 0xa
push esi
lea ecx, [esp + 0x24]
call fcn.00402730
push str._nFile_handle_:
lea ecx, [esp + 0x18]
call fcn.00402180
mov eax, dword [edi + 4]
push 0x20
push 0
push 0xa
push eax
lea ecx, [esp + 0x24]
call fcn.00402730
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x14]
push 0x12005
push str.FCFile___read
push eax
push 0
call ebp
mov esi, eax
or eax, 0xffffffff
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x14]
call fcn.004020d0
cmp esi, 4
je 0x403520
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x403667
mov edx, dword [edi + 0xc]
mov eax, dword [edx + 0x14]
push eax
push str.cannot_read
lea ecx, [esp + 0x1c]
call fcn.00403130
push 0x4159a0
lea ecx, [esp + 0x18]
push ecx
call fcn.00405458
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 8

Function at 0x403900
Capabilities:
Enumerate files on windows

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
push edi
xor ebx, ebx
cmp eax, 0xffffffff
lea edi, [esi + 0x24]
push edi
je 0x403933
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ebx, eax
test ebx, ebx
je 0x403968
cmp byte [esi + 0x50], 0x2e
lea eax, [esi + 0x50]
jne 0x40394f
pop edi
mov ecx, esi
pop esi
pop ebx
jmp fcn.00403900
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x20], eax
je 0x403966
mov ebx, 1
jmp 0x403920
test byte [edi], 0x10
je 0x403966
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + esi + 0x50]
mov byte [eax], 0x5c
mov byte [eax + 1], 0
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x403b60
Capabilities:
Get disk information

Disassembly:
push ecx
cmp byte [0x4185e0], 0
jne 0x403bd0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov esi, eax
mov dword [esp + 0xc], 0x5c3a41
mov bl, 0x41
movzx ecx, bl
sub ecx, 0x41
mov eax, 1
shl eax, cl
test esi, eax
je 0x403ba6
lea ecx, [esp + 0xc]
push ecx
mov byte [esp + 0x10], bl
call edi
cmp eax, 5
je 0x403bb3
add bl, 1
cmp bl, 0x5a
jle 0x403b85
pop edi
pop esi
pop ebx
pop ecx
ret
mov dl, byte [esp + 0xc]
mov al, byte [esp + 0xd]
pop edi
pop esi
mov byte [0x4185e0], dl
mov byte [0x4185e1], al
mov byte [0x4185e2], 0
pop ebx
pop ecx
ret

Function at 0x403be0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x41711c]
xor eax, esp
mov dword [esp + 0x104], eax
push edi
lea eax, [esp + 4]
push eax
push 0x104
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x403c2e
push str.FCPathName___create__
call fcn.00403aa0
add esp, 4
pop edi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004048a9
add esp, 0x108
ret
mov ecx, dword [edi + 8]
cmp dword [ecx + 8], 0
je 0x403c3f
lea ecx, [edi + 4]
call fcn.00402320
push esi
lea edx, [esp + 8]
push edx
lea esi, [edi + 4]
push 0x100
mov ecx, esi
call fcn.00401fe0
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x14]
add ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
cmp byte [edx - 1], 0x5c
je 0x403c75
push 0x41513c
mov ecx, esi
call fcn.00402180
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x14]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x10c]
pop esi
pop edi
xor ecx, esp
call fcn.004048a9
add esp, 0x108
ret

Function at 0x4048a9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41711c]
jne 0x4048b3
repz ret
jmp fcn.004061d6
Function at 0x4067cf
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4171a8]
je 0x4067ea
inc edi
cmp edi, 0x17
jb 0x4067db
cmp edi, 0x17
jae 0x40696a
push ebp
push 3
call fcn.0040cced
cmp eax, 1
pop ecx
je 0x406936
push 3
call fcn.0040cced
test eax, eax
pop ecx
jne 0x40681e
cmp dword [0x417118], 1
je 0x406936
cmp ebx, 0xfc
je 0x406969
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4189a8
push ebp
call fcn.00409abd
add esp, 0xc
test eax, eax
je 0x406854
push esi
push esi
push esi
push esi
push esi
call fcn.0040991e
add esp, 0x14
push 0x104
mov esi, 0x4189c1
push esi
push 0
mov byte [0x418ac5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406898
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00409abd
add esp, 0xc
test eax, eax
je 0x406898
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040991e
add esp, 0x14
push esi
call fcn.0040a2a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4068dd
push esi
call fcn.0040a2a0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x418cbc
push 0x413c0c
sub ecx, eax
push ecx
push eax
call fcn.0040cc3a
add esp, 0x14
test eax, eax
je 0x4068dd
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040991e
add esp, 0x14
jmp 0x4068df
xor esi, esi
push 0x413c08
push ebx
push ebp
call fcn.0040cbc9
add esp, 0xc
test eax, eax
je 0x4068ff
push esi
push esi
push esi
push esi
push esi
call fcn.0040991e
add esp, 0x14
push dword [edi*8 + 0x4171ac]
push ebx
push ebp
call fcn.0040cbc9
add esp, 0xc
test eax, eax
je 0x406921
push esi
push esi
push esi
push esi
push esi
call fcn.0040991e
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040ca0c
add esp, 0xc
jmp 0x406969
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x406969
cmp ebp, 0xffffffff
je 0x406969
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4171ac]
push dword [esi]
call fcn.0040a2a0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40ca0c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00407327
xor ebx, ebx
cmp dword [0x419004], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40cae2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40cbc2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x414620
push edi
call esi
cmp eax, ebx
je 0x40cbc2
push eax
call fcn.004072b9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x419004], eax
call esi
push eax
call fcn.004072b9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x419008], eax
call esi
push eax
call fcn.004072b9
mov dword [0x41900c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040655c
test eax, eax
pop ecx
pop ecx
je 0x40cab0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040991e
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40cae2
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004072b9
cmp eax, ebx
pop ecx
mov dword [0x419014], eax
je 0x40cae2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004072b9
pop ecx
mov dword [0x419010], eax
mov eax, dword [0x419010]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40cb67
cmp dword [0x419014], ecx
je 0x40cb67
push eax
call fcn.00407330
push dword [0x419014]
mov esi, eax
call fcn.00407330
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40cb67
cmp edi, ebx
je 0x40cb67
call esi
cmp eax, ebx
je 0x40cb34
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40cb34
test byte [ebp - 0x18], 1
jne 0x40cb67
lea eax, [ebp - 0x10]
push eax
call fcn.00406593
test eax, eax
pop ecx
je 0x40cb4f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040991e
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40cb5e
or dword [ebp + 0x10], 0x200000
jmp 0x40cba2
or dword [ebp + 0x10], 0x40000
jmp 0x40cba2
mov eax, dword [0x419008]
cmp eax, dword [ebp - 8]
je 0x40cba2
push eax
call fcn.00407330
cmp eax, ebx
pop ecx
je 0x40cba2
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40cba2
mov eax, dword [0x41900c]
cmp eax, dword [ebp - 8]
je 0x40cba2
push eax
call fcn.00407330
cmp eax, ebx
pop ecx
je 0x40cba2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x419004]
call fcn.00407330
cmp eax, ebx
pop ecx
je 0x40cbc2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40cbc4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406a06
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406a2a
xor eax, eax
test eax, eax
je 0x406a3d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a3d
xor ecx, ecx
jmp 0x406a40
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b63
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4275ec], 0
push esi
jne 0x406b9a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b74
mov dword [ecx*4 + 0x4275e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b6f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406bcb
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4275e8]
xor eax, esi
inc ecx
dec edx
jne 0x406bad
pop edi
not eax
pop esi
ret 0xc

Function at 0x43b650
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop edx
push 0xd4c8f4c6
mov esi, dword [esp]
add esp, 4
or ecx, esi
add esi, 0xa72cbba9
call fcn.0043b68d
add ecx, ecx
xor dword [edi], edx
add ecx, 0xf32a57fe
and ecx, esi
add edi, 1
add esi, ecx
mov esi, ecx
cmp edi, eax
jne fcn.0043b650
and ecx, esi
ret
Function at 0x402a1c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x402a4b
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403e3c
jmp 0x402a69
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004029a4
mov edi, eax
test ebx, ebx
je 0x402a69
cmp dword [esi], 0
je 0x402a69
dec ebx
jmp 0x402a52
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402e7c
Capabilities:
Query or enumerate registry value

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

Function at 0x403d08
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402808
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4c0049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403cd0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4061a8
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 0xf003f
push 0
push 0x406364
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406209
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x406380
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40627b
xor eax, eax
push ebp
push 0x406274
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00406000
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40625d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4063a0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40627b
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
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 0x40635c
cmp byte [ebp - 0xd], 0
jne 0x4062bd
cmp byte [ebp - 0x12], 0
je 0x40635c
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4062d6
dec ebx
cmp byte [ebx], 0x2e
je 0x4062e5
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4062d5
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40635c
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406312
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40635c
cmp byte [ebp - 0xd], 0
je 0x40635c
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40635c
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
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 0x40bf60
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 0x40bf99
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403e3c
jmp 0x40bfa2
mov eax, ebx
mov edx, esi
call fcn.00403da8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40bfac
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 0x40bfcd
mov al, byte [esp]
jmp 0x40bfcf
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x418c4c
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jne 0x418c61
mov byte [ebx + 0xd], 0
pop ebx
ret

Function at 0x41ad50
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 0x41ad56
ret

Function at 0x41d2cc
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 0x41d31d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41d304
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41d2f4
jmp 0x41d31d
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 0x41d305
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430644
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 - 0xc]
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
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x4c0788], 0
sete dl
or al, dl
jne 0x430784
mov eax, dword [0x4c078c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4c0788]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x430753
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x4c0788]
call fcn.00411d14
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43074b
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x43074b
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x43074b
mov eax, dword [ebp - 0x14]
call fcn.004389d0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43074b
push ebp
call fcn.00430600
pop ecx
test al, al
jne 0x43074b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x430707
mov eax, dword [ebp - 0x14]
call fcn.00437324
dec eax
jle 0x43074b
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffc1
call fcn.004031e4
cmp byte [ebp - 1], 0
je 0x43074b
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43074b
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4c078c]
call fcn.0042fe4c
inc edi
dec esi
jne 0x43069a
mov eax, dword [0x4c078c]
cmp dword [eax + 8], 0
jle 0x43076b
mov eax, dword [0x4c078c]
call fcn.0042fedc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x430784
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00430468
pop ecx
test al, al
jne 0x430784
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