joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401030
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43ccc8
mov eax, dword fs:[0]
push eax
sub esp, 0x288
push esi
mov eax, dword [0x450880]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
call fcn.0040b58d
add esp, 4
mov ecx, esi
call fcn.0040a41c
push 0x4454f4
mov ecx, esi
call fcn.0040ba60
push str.693CE559_CC21_4DA6_B6D7_F5D7B1E21B4F
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x401152
call fcn.0040bc5f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4010d4
push 0x80004005
call fcn.00401630
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
push 0x6c
mov dword [esp + 0x29c], 0
call fcn.0040c0ed
test eax, eax
je 0x401106
push 0x6c
push eax
lea ecx, [esp + 0x10]
call fcn.00401510
push 0xffffffffffffffff
push 0
push 0x6c
call fcn.0040c45e
mov dword [esp + 0x298], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40118a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x14]
push ecx
call fcn.00401730
lea edx, [esp + 0x14]
mov dword [esp + 0x298], 1
mov ecx, edx
mov dword [esi + 0x20], edx
call fcn.0040cc2a
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x29c], 0xffffffff
call fcn.004011a0
xor eax, eax
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401250
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x401269
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x4012a4
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4012a0
lea ebx, [ebx]
cmp esi, eax
jae 0x4012a4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401290
cmp esi, eax
jb 0x4012aa
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x402f20
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x43cc89
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x450880]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
push 0xa
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x28
push 0
mov dword [esp + 0x40], 0
push 0x4462a4
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
call fcn.0040bc5f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402f95
push 0x80004005
call fcn.00401630
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x10]
push ecx
push 0x4462ac
push esi
mov dword [esp + 0x18], 1
call fcn.00409bd0
mov eax, dword [esi]
mov edi, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
add esp, 0xc
or eax, ecx
jge 0x402fe4
push edi
mov ecx, esi
call fcn.004013d0
mov eax, dword [esi]
lea edx, [edi + 1]
push edx
push eax
call fcn.004295f2
add esp, 8
test edi, edi
jl 0x40303e
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x40303e
mov dword [eax - 0xc], edi
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + edi*2], cx
mov edx, dword [esi]
mov eax, dword [edx - 0xc]
cmp eax, 8
jge 0x403028
push 0x4462b4
push 0
push esi
call fcn.00408e30
mov eax, dword [esi]
cmp dword [eax - 0xc], 8
jl 0x403013
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 4
push 0x80070057
call fcn.00401630
int3
Function at 0x4056a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SoftwarePengFeiSim
push SysReAllocStringLen
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4056f1
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 4]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwarePengFeiSim
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push esi
push edi
push 1
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0
call fcn.00409d7a
mov edx, dword [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 4
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push str.AutoRunSoftware
push edx
call edi
test eax, eax
jne 0x40574e
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
push eax
push esi
lea ecx, [esp + 0x14]
push ecx
push 0
push str.AutoRunSoftware
push edx
call edi
jmp 0x40577a
mov eax, dword [esp + 8]
push 2
mov esi, 0x446500
push esi
push 1
push 0
push str.AutoRunSoftware
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 8]
test eax, eax
je 0x405789
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ecx, byte [esi]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x98]
push 0
and ecx, 1
push ecx
push 0xf1
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x4082b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x450880]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SoftwareIPACSAeroFly_5
push SysReAllocStringLen
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40832d
push 0x97
call fcn.0040c0ed
test eax, eax
je 0x408305
push 0x97
push eax
mov ecx, 0x458af8
call fcn.00401510
mov ecx, dword [0x458af8]
push 0x30
push 0
push ecx
mov ecx, esi
call fcn.0040f8dc
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004280b8
add esp, 0x218
ret
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0xc]
push edx
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0
push ecx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x24], 0
call esi
test eax, eax
jne 0x40838f
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push edx
call esi
lea eax, [esp + 0x10]
push eax
push 0x44591c
push 0x458aac
call fcn.00409bd0
add esp, 0xc
mov ecx, dword [esp + 0x218]
pop esi
xor ecx, esp
call fcn.004280b8
add esp, 0x218
ret

Function at 0x40b00e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x40b056
call fcn.00414e09
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x40b056
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40b099
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x40b082
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x40b082
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40b096
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40ce62
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x40ce86
cmp dword [edi + 0x54], 0
jne 0x40ce86
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00414e09
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040ce23
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x413879
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4138c0
call fcn.00414e09
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x4138c0
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4138dc
push ebx
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004133f1
mov esi, eax
test edi, edi
je 0x4138da
test ebx, ebx
je 0x4138da
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4140a9
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x43bb76
call fcn.004299ef
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4140ce
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x414114
lea ecx, [ebp - 0x10]
call fcn.004016a0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040bd8a
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401680
mov eax, esi
call fcn.00429ac7
ret 8

Function at 0x4280b8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x450880]
jne 0x4280c2
repz ret
jmp fcn.0042da03
Function at 0x434a02
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042d412
and dword [ebp - 4], 0
cmp dword [0x454638], 0
mov ebx, eax
jne 0x434ab3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x434b64
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x434b64
push eax
call fcn.0042d3a0
mov dword [esp], 0x443b28
push edi
mov dword [0x454638], eax
call esi
push eax
call fcn.0042d3a0
mov dword [esp], 0x443b14
push edi
mov dword [0x45463c], eax
call esi
push eax
call fcn.0042d3a0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x454640], eax
call esi
push eax
call fcn.0042d3a0
pop ecx
mov dword [0x454648], eax
test eax, eax
je 0x434ab3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042d3a0
pop ecx
mov dword [0x454644], eax
mov eax, dword [0x454644]
cmp eax, ebx
je 0x434b0b
cmp dword [0x454648], ebx
je 0x434b0b
push eax
call fcn.0042d41b
push dword [0x454648]
mov esi, eax
call fcn.0042d41b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x434b0b
test edi, edi
je 0x434b0b
call esi
test eax, eax
je 0x434b02
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x434b02
test byte [ebp - 0xc], 1
jne 0x434b0b
or dword [ebp + 0x10], 0x200000
jmp 0x434b44
mov eax, dword [0x45463c]
cmp eax, ebx
je 0x434b44
push eax
call fcn.0042d41b
pop ecx
test eax, eax
je 0x434b44
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x434b44
mov eax, dword [0x454640]
cmp eax, ebx
je 0x434b44
push eax
call fcn.0042d41b
pop ecx
test eax, eax
je 0x434b44
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x454638]
call fcn.0042d41b
pop ecx
test eax, eax
je 0x434b64
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x434b66
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40281c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402859
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 + 0x108]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402879
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.00403e8c
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x402a58
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 0x402a87
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.00403d44
jmp 0x402aa5
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402980
mov edi, eax
test ebx, ebx
je 0x402aa5
cmp dword [esi], 0
je 0x402aa5
dec ebx
jmp 0x402a8e
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402db8
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 0x402e50
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402e30
xor eax, eax
push ebp
push 0x402e29
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 0x402e6c
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 0x402e30
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 0x403c10
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.004026f4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x462045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403bd8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4051d4
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 0x405390
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405235
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4053ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4052a7
xor eax, eax
push ebp
push 0x4052a0
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.0040502c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405289
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4053cc
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 0x4052a7
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 0x405388
cmp byte [ebp - 0xd], 0
jne 0x4052e9
cmp byte [ebp - 0x12], 0
je 0x405388
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405302
dec ebx
cmp byte [ebx], 0x2e
je 0x405311
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405301
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405388
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40533e
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 0x405388
cmp byte [ebp - 0xd], 0
je 0x405388
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 0x405388
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 0x40594c
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x40597c
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x405972
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.004027f4
or eax, 0xffffffff
jmp 0x405970
mov eax, 0x67
call fcn.004027e4
or eax, 0xffffffff
jmp 0x405970
Function at 0x408fac
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 0x408fe5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403d44
jmp 0x408fee
mov eax, ebx
mov edx, esi
call fcn.00403cb0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x414a70
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 0x414a76
ret

Function at 0x4171d8
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 0x417229
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x417210
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x417200
jmp 0x417229
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 0x417211
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427c94
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 [0x462784], 0
sete dl
or al, dl
jne 0x427dd4
mov eax, dword [0x462788]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x462784]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x427da3
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x462784]
call fcn.0040de5c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x427d9b
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x427d9b
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x427d9b
mov eax, dword [ebp - 0x14]
call fcn.0042ffa4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x427d9b
push ebp
call fcn.00427c50
pop ecx
test al, al
jne 0x427d9b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x427d57
mov eax, dword [ebp - 0x14]
call fcn.0042e930
dec eax
jle 0x427d9b
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.0040312c
cmp byte [ebp - 1], 0
je 0x427d9b
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x427d9b
mov edx, dword [ebp - 0x14]
mov eax, dword [0x462788]
call fcn.0042749c
inc edi
dec esi
jne 0x427cea
mov eax, dword [0x462788]
cmp dword [eax + 8], 0
jle 0x427dbb
mov eax, dword [0x462788]
call fcn.0042752c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x427dd4
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00427ab8
pop ecx
test al, al
jne 0x427dd4
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
Function at 0x42d93c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x42d96d
je 0x42d9c7
sub eax, 7
je 0x42d98e
dec eax
je 0x42d9b8
sub eax, 0x17
je 0x42da6c
jmp 0x42daaa
add eax, 0xffffff00
sub eax, 9
jb 0x42da58
add eax, 0xffffff09
sub eax, 0xb
jb 0x42da20
jmp 0x42daaa
mov eax, ebx
call fcn.0043fa90
mov edi, eax
test edi, edi
je 0x42db0a
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x42db13
jmp 0x42db0a
test byte [ebx + 0x44], 0x20
jne 0x42db13
jmp 0x42db0a
mov edx, esi
mov eax, ebx
call fcn.0042af3c
cmp dword [esi + 0xc], 0xffffffff
jne 0x42db13
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00406e58
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.00429a70
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.0042d814
test eax, eax
je 0x42db13
mov dword [esi + 0xc], 1
jmp 0x42db13
mov edx, esi
mov eax, ebx
call fcn.0042d8a8
test al, al
je 0x42db0a
cmp dword [esi + 0xc], 0
jne 0x42db13
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.0042ffa4
push eax
call sub.user32.dll_DefWindowProcA
jmp 0x42db13
mov eax, ebx
call fcn.0042a5d8
test al, al
jne 0x42db13
jmp 0x42db0a
mov eax, ebx
call fcn.0042ffa4
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x42db0a
cmp dword [0x461780], 0
je 0x42db0a
mov eax, dword [0x461780]
cmp ebx, dword [eax + 0x24]
jne 0x42db0a
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x461780]
call fcn.0042ae70
jmp 0x42db0a
mov eax, dword [0x46274c]
cmp byte [eax + 0x20], 0
je 0x42db0a
mov eax, dword [0x46274c]
cmp dword [eax + 0x1c], 0
je 0x42db0a
mov eax, dword [esi]
mov edx, dword [0x46274c]
cmp eax, dword [edx + 0x1c]
jne 0x42db0a
lea eax, [ebp - 0x110]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.0043f9d4
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb7
call fcn.0040312c
jmp 0x42db13
mov edx, esi
mov eax, ebx
call fcn.0042af3c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret