joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x402c7c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x402c9e
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x402ca0
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x402d25
jg 0x402cb5
test esi, esi
je 0x402d25
test ecx, ecx
jl 0x402cfe
jg 0x402cbf
test eax, eax
je 0x402cfe
cmp edi, ecx
jg 0x402cd3
jl 0x402cc9
cmp esi, eax
jae 0x402cd3
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x402d01
mov edx, dword [ebp + 8]
test edi, edi
jl 0x402d25
jg 0x402d0b
test esi, esi
je 0x402d25
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x402d25
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402d40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x402d6c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x402d8e
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x402d90
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x402e30
jg 0x402dad
test esi, esi
je 0x402e30
test ecx, ecx
jl 0x402dfa
jg 0x402db7
test eax, eax
je 0x402dfa
cmp ebx, ecx
jg 0x402dcb
jl 0x402dc1
cmp esi, eax
jae 0x402dcb
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x402e01
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x402e30
jg 0x402e0b
test esi, esi
je 0x402e30
cmp dword [edi + 0x4c], 0
je 0x402e30
mov ecx, edi
call fcn.004033e0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4031a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x408008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4031d0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004038c4
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x403200
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x403200
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004038c4
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x4032d5
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x403229
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x403235
movsx eax, bl
jmp 0x40326c
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x4032d5
cmp eax, 1
jle 0x403296
cmp eax, 3
jne 0x4032d5
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004038c4
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4032b4
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4032d5
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x4032d5
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004038c4
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004038c4
mov esp, ebp
pop ebp
ret 4
Function at 0x403410
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x408008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x4034b3
cmp byte [esi + 0x3d], 0
je 0x4034b3
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x403468
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x40347a
sub eax, 1
je 0x40347e
sub eax, 2
je 0x4034b3
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004038c4
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40349c
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x403468
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004038c4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004038c4
mov esp, ebp
pop ebp
ret
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x40a70a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x40a742
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x40a730
mov al, 1
jmp 0x40a783
cmp dword [ebx + 0x54], ecx
jne 0x40a739
mov al, 2
jmp 0x40a783
cmp dword [ebx + 0x7c], ecx
jne 0x40a783
mov al, 3
jmp 0x40a783
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x40a757
mov al, 4
jmp 0x40a783
cmp ecx, 5
jne 0x40a777
cmp ebx, 0
jne 0x40a765
mov al, 5
jmp 0x40a783
cmp ebx, 1
jne 0x40a76e
mov al, 6
jmp 0x40a783
cmp ebx, 2
jne 0x40a777
mov al, 7
jmp 0x40a783
cmp ecx, 6
jne 0x40a783
cmp ebx, 0
jne 0x40a783
mov al, 8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402aec
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x4bf044], 0x8088405
inc edx
mov dword [0x4bf044], edx
mul edx
mov eax, edx
ret

Function at 0x402cc0
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 0x402d58
push 0x80000002
call fcn.00401318
test eax, eax
jne 0x402d38
xor eax, eax
push ebp
push 0x402d31
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 0x402d74
mov eax, dword [ebp - 4]
push eax
call fcn.00401320
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402d38
mov eax, dword [ebp - 4]
push eax
call fcn.00401310
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 0x405ed4
Capabilities:
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 fcn.004012b8
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x406090
push 0x80000001
call fcn.00401318
test eax, eax
je 0x405f35
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4060ac
push 0x80000001
call fcn.00401318
test eax, eax
jne 0x405fa7
xor eax, eax
push ebp
push 0x405fa0
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.00405d2c
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.00401320
test eax, eax
je 0x405f89
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4060cc
mov eax, dword [ebp - 8]
push eax
call fcn.00401320
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405fa7
mov eax, dword [ebp - 8]
push eax
call fcn.00401310
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call fcn.004012f0
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call fcn.004012d8
push eax
call fcn.004012b0
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406088
cmp byte [ebp - 0xd], 0
jne 0x405fe9
cmp byte [ebp - 0x12], 0
je 0x406088
lea eax, [ebp - 0x11d]
push eax
call fcn.00401300
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406002
dec ebx
cmp byte [ebx], 0x2e
je 0x406011
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406001
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406088
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40603e
lea eax, [ebp - 0x12]
push eax
push ebx
call fcn.004012f0
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call fcn.004012e0
mov esi, eax
test esi, esi
jne 0x406088
cmp byte [ebp - 0xd], 0
je 0x406088
lea eax, [ebp - 0xd]
push eax
push ebx
call fcn.004012f0
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call fcn.004012e0
mov esi, eax
test esi, esi
jne 0x406088
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call fcn.004012f0
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call fcn.004012e0
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409f0c
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40a159
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00403b0c
cmp dword [0x4bd134], 1
jne 0x409f57
cmp dword [0x4bd138], 4
jle 0x409f96
mov dword [ebp - 0x14], 0x400
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x420]
push eax
push 1
mov eax, dword [ebp - 4]
call fcn.00403efc
push eax
call fcn.00407878
test eax, eax
jne 0x40a13b
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x420]
mov edx, dword [edx]
call fcn.00403c70
jmp 0x40a13b
mov eax, dword [ebp - 4]
mov al, byte [eax]
call fcn.004028b4
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0x41
jb 0x40a13b
cmp byte [ebp - 0x15], 0x5a
ja 0x40a13b
mov eax, dword [ebp - 4]
call fcn.00403d38
cmp eax, 3
jl 0x40a13b
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x3a
jne 0x40a13b
mov eax, dword [ebp - 4]
cmp byte [eax + 2], 0x5c
jne 0x40a13b
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 1
push 1
call fcn.00407880
test eax, eax
jne 0x40a13b
xor edx, edx
push ebp
push 0x40a134
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0xc], 0x640
mov eax, dword [ebp - 0xc]
call fcn.0040271c
mov dword [ebp - 0x20], eax
xor edx, edx
push ebp
push 0x40a116
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00407868
cmp eax, 0xea
jne 0x40a065
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
call fcn.0040274c
jmp 0x40a029
test eax, eax
je 0x40a078
call fcn.00403628
call fcn.00403628
jmp 0x40a13b
mov esi, dword [ebp - 0x10]
dec esi
test esi, esi
jl 0x40a029
inc esi
xor edi, edi
mov eax, edi
shl eax, 2
mov edx, dword [ebp - 0x20]
lea ebx, [edx + eax*8]
cmp dword [ebx + 0x10], 0
je 0x40a0f4
mov eax, dword [ebx + 0x10]
mov al, byte [eax]
call fcn.004028b4
cmp al, byte [ebp - 0x15]
jne 0x40a0f4
lea eax, [ebp - 0x424]
push eax
mov eax, dword [ebp - 4]
call fcn.00403d38
mov ecx, eax
sub ecx, 2
mov edx, 3
mov eax, dword [ebp - 4]
call fcn.00403f40
mov eax, dword [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
mov edx, dword [ebx + 0x14]
call fcn.00403c70
mov edx, dword [ebp - 0x428]
mov eax, dword [ebp - 8]
pop ecx
call fcn.00403d84
call fcn.00403628
call fcn.00403628
jmp 0x40a13b
inc edi
dec esi
jne 0x40a083
jmp 0x40a029
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a160
lea eax, [ebp - 0x428]
mov edx, 2
call fcn.00403adc
ret

Function at 0x40a264
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call fcn.004075a8
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403ba0
add esp, 0x104
pop ebx
ret
Function at 0x40bbf4
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 fcn.00407628
test eax, eax
jle 0x40bc2d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403ba0
jmp 0x40bc36
mov eax, ebx
mov edx, esi
call fcn.00403b0c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bc40
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 fcn.00407628
test eax, eax
jle 0x40bc61
mov al, byte [esp]
jmp 0x40bc63
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4176ac
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 0x4176b2
ret

Function at 0x41a034
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 fcn.00407678
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41a085
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41a06c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41a05c
jmp 0x41a085
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 0x41a06d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ad20
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 fcn.00407cb0
test ax, 0x8000
setne al
cmp dword [0x4bf788], 0
sete dl
or al, dl
jne 0x42ae60
mov eax, dword [0x4bf78c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4bf788]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x42ae2f
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x4bf788]
call fcn.00410da4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42ae27
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x42ae27
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x42ae27
mov eax, dword [ebp - 0x14]
call fcn.00433090
push eax
call fcn.00407e00
test eax, eax
je 0x42ae27
push ebp
call fcn.0042acdc
pop ecx
test al, al
jne 0x42ae27
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x42ade3
mov eax, dword [ebp - 0x14]
call fcn.00431a1c
dec eax
jle 0x42ae27
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.00403024
cmp byte [ebp - 1], 0
je 0x42ae27
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call fcn.00407e98
test eax, eax
je 0x42ae27
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4bf78c]
call fcn.0042a528
inc edi
dec esi
jne 0x42ad76
mov eax, dword [0x4bf78c]
cmp dword [eax + 8], 0
jle 0x42ae47
mov eax, dword [0x4bf78c]
call fcn.0042a5b8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42ae60
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042ab44
pop ecx
test al, al
jne 0x42ae60
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 0x430a28
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 0x430a59
je 0x430ab3
sub eax, 7
je 0x430a7a
dec eax
je 0x430aa4
sub eax, 0x17
je 0x430b58
jmp 0x430b96
add eax, 0xffffff00
sub eax, 9
jb 0x430b44
add eax, 0xffffff09
sub eax, 0xb
jb 0x430b0c
jmp 0x430b96
mov eax, ebx
call fcn.004426f8
mov edi, eax
test edi, edi
je 0x430bf6
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x430bff
jmp 0x430bf6
test byte [ebx + 0x44], 0x20
jne 0x430bff
jmp 0x430bf6
mov edx, esi
mov eax, ebx
call fcn.0042e028
cmp dword [esi + 0xc], 0xffffffff
jne 0x430bff
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.004080bc
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.0042cb14
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.00430900
test eax, eax
je 0x430bff
mov dword [esi + 0xc], 1
jmp 0x430bff
mov edx, esi
mov eax, ebx
call fcn.00430994
test al, al
je 0x430bf6
cmp dword [esi + 0xc], 0
jne 0x430bff
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.00433090
push eax
call fcn.00407b70
jmp 0x430bff
mov eax, ebx
call fcn.0042d6c4
test al, al
jne 0x430bff
jmp 0x430bf6
mov eax, ebx
call fcn.00433090
mov edi, eax
call fcn.00407c48
cmp edi, eax
jne 0x430bf6
cmp dword [0x4bd850], 0
je 0x430bf6
mov eax, dword [0x4bd850]
cmp ebx, dword [eax + 0x24]
jne 0x430bf6
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x4bd850]
call fcn.0042df5c
jmp 0x430bf6
mov eax, dword [0x4bf750]
cmp byte [eax + 0x20], 0
je 0x430bf6
mov eax, dword [0x4bf750]
cmp dword [eax + 0x1c], 0
je 0x430bf6
mov eax, dword [esi]
mov edx, dword [0x4bf750]
cmp eax, dword [edx + 0x1c]
jne 0x430bf6
lea eax, [ebp - 0x110]
push eax
call fcn.00407cc8
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.0044263c
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.00403024
jmp 0x430bff
mov edx, esi
mov eax, ebx
call fcn.0042e028
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret