joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001020
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
mov eax, dword [0x10006040]
push ebx
cmp eax, 1
push esi
mov dword [esp + 8], 0x40
jne 0x10001104
mov eax, 0xbe1059
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [esp + 8]
mov ecx, 0x10001580
mov byte [eax], 0xe9
mov eax, 0x10001530
sub eax, 0xbe1058
push edx
mov dword [0xbe105a], eax
mov eax, 0x87c70c
push 0x40
sub ecx, 0x87c70b
push 5
mov byte [eax], 0xe9
push eax
mov dword [0x87c70d], ecx
call esi
mov eax, 0x4088b0
lea ecx, [esp + 8]
push ecx
push 0x40
mov byte [eax], 0xe9
mov eax, 0x100015b0
sub eax, 0x4088af
mov bl, 0x90
push 5
mov dword [0x4088b1], eax
push 0x4088b0
mov byte [0x4088b5], bl
call esi
mov eax, 0x49af27
mov edx, 0x100015e0
sub edx, 0x49af26
mov byte [eax], 0xe9
lea eax, [esp + 8]
push eax
push 0x40
push 5
mov dword [0x49af28], edx
push 0x49af27
mov byte [0x49af2c], bl
call esi
lea ecx, [esp + 8]
mov eax, 0x4552bd
push ecx
push 0x40
push 2
push eax
mov byte [eax], 0xeb
call esi
lea edx, [esp + 8]
mov eax, 0x4562f0
push edx
push 0x40
push 1
mov byte [eax], 0xc3
push eax
jmp 0x100011a0
mov eax, 0x455e85
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [esp + 8]
mov bl, 0x90
mov byte [eax], 0xe9
mov eax, 0x100014e0
push ecx
sub eax, 0x455e84
push 0x40
push 5
mov dword [0x455e86], eax
push 0x455e85
mov byte [0x455e8a], bl
call esi
lea edx, [esp + 8]
mov eax, 0x455e94
push edx
push 0x40
mov byte [eax], 0xe9
push 5
mov dword [0x455e95], 0xe2
push eax
mov byte [0x455e99], bl
call esi
mov eax, 0x456c10
mov dword [eax], 0x900008c2
lea eax, [esp + 8]
push eax
push 0x40
push 3
push 0x456c10
call esi
lea ecx, [esp + 8]
mov eax, 0xbfc28c
push ecx
push 0x40
push 2
push eax
mov word [eax], 0x64eb
call esi
lea edx, [esp + 8]
mov eax, 0xbfcf65
push edx
push 0x40
push 2
mov byte [eax], 0xeb
push eax
call esi
mov eax, 0x454f06
mov dword [eax], 0x90909090
lea eax, [esp + 8]
push eax
push 0x40
push 5
mov word [0x454f0a], 0x9090
push 0x4549a4
mov dword [0x4549a5], 0xcaacfc
call esi
lea ecx, [esp + 8]
mov eax, 0x50f1d2
push ecx
push 0x40
push 2
push eax
mov byte [eax], 0xeb
call esi
lea edx, [esp + 8]
mov dword [0xbba60c], 0xdaafa0
push edx
push 0x40
push 5
push 0xbba60b
call esi
mov eax, 0x454de5
lea ecx, [esp + 8]
push ecx
push 0x40
mov byte [eax], 0xe9
mov eax, 0x10001320
sub eax, 0x454de4
push 5
mov dword [0x454de6], eax
push 0x454de5
mov byte [0x454dea], bl
call esi
mov eax, 0x586099
mov edx, 0x10001350
sub edx, 0x586098
mov byte [eax], 0xe9
lea eax, [esp + 8]
push eax
push 0x40
push 5
push 0x586099
mov dword [0x58609a], edx
call esi
lea edx, [esp + 8]
mov eax, 0x4bdec1
mov ecx, 0x10001640
push edx
push 0x40
sub ecx, 0x4bdec5
push 5
mov byte [eax], 0xe9
push eax
mov dword [0x4bdec2], ecx
call esi
mov eax, 0x4b04c3
mov word [eax], 0x9090
mov eax, 0x4b0582
mov byte [0x4b04c5], bl
mov word [eax], 0x9090
mov eax, 0x4b00d0
mov byte [0x4b0584], bl
mov word [eax], 0x9090
mov eax, 0x4b0115
mov byte [0x4b00d2], bl
mov word [eax], 0x9090
lea eax, [esp + 8]
push eax
push 0x40
push 5
mov byte [0x4b0117], bl
push 0x4b0294
mov dword [0x4b0295], 0xe
call esi
pop esi
pop ebx
pop ecx
ret
Function at 0x1000259a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x100060c0
cmp edx, dword [eax]
je 0x100025bc
add eax, 8
inc ecx
cmp eax, 0x10006150
jl 0x100025ad
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x100060c0]
jne 0x100026ea
mov eax, dword [0x100064c8]
cmp eax, 1
je 0x100026c4
test eax, eax
jne 0x100025ed
cmp dword [0x100064cc], 1
je 0x100026c4
cmp edx, 0xfc
je 0x100026ea
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10002624
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10003770
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10003860
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10002667
lea eax, [ebp - 0x1a4]
push eax
call fcn.10003860
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1000538c
push edi
call fcn.10003d60
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10003770
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10003780
lea eax, [ebp - 0xa0]
push 0x1000536c
push eax
call fcn.10003780
push dword [esi + 0x100060c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.10003780
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.10003ccf
add esp, 0x2c
pop edi
jmp 0x100026ea
lea eax, [ebp + 8]
lea esi, [esi + 0x100060c4]
push 0
push eax
push dword [esi]
call fcn.10003860
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401300
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
xor edi, edi
add eax, 0x20
mov edi, edi
mov ecx, dword [ebp + edi*4]
mov esi, ecx
shl esi, 8
shr esi, 0x18
mov dword [esp + 0x10], esi
mov esi, ecx
shl esi, 0x10
mov edx, ecx
shr edx, 0x18
shr esi, 0x18
mov ebx, esi
movzx esi, dl
mov edx, dword [eax - 0x20]
xor edx, esi
movzx esi, byte [esp + 0x10]
mov dword [eax - 0x20], edx
mov edx, dword [eax - 0x10]
xor edx, esi
mov dword [eax - 0x10], edx
mov edx, dword [eax]
shl ecx, 0x18
movzx esi, bl
shr ecx, 0x18
xor edx, esi
mov dword [eax], edx
movzx edx, cl
mov ecx, dword [eax + 0x10]
xor ecx, edx
mov dword [eax + 0x10], ecx
inc edi
add eax, 4
cmp edi, 4
jl 0x401310
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4013e0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
add eax, 0x20
mov dword [esp + 0x10], 4
mov ecx, dword [eax - 0x20]
mov edx, dword [eax - 0x10]
mov ebx, dword [ecx*4 + 0xec8c80]
xor ebx, dword [edx*4 + 0xec8480]
mov esi, dword [eax]
mov edi, dword [eax + 0x10]
mov ebp, dword [esi*4 + 0xec8880]
xor ebp, ebx
mov ebx, dword [edi*4 + 0xec8080]
xor ebx, ebp
mov dword [eax - 0x20], ebx
mov ebx, dword [ecx*4 + 0xec8080]
xor ebx, dword [edx*4 + 0xec8c80]
mov ebp, dword [esi*4 + 0xec8480]
xor ebp, ebx
mov ebx, dword [edi*4 + 0xec8880]
xor ebx, ebp
mov dword [eax - 0x10], ebx
mov ebx, dword [ecx*4 + 0xec8880]
xor ebx, dword [edx*4 + 0xec8080]
mov ebp, dword [esi*4 + 0xec8c80]
xor ebp, ebx
mov ebx, dword [edi*4 + 0xec8480]
xor ebx, ebp
mov dword [eax], ebx
mov ecx, dword [ecx*4 + 0xec8480]
xor ecx, dword [edx*4 + 0xec8880]
mov esi, dword [esi*4 + 0xec8080]
xor esi, ecx
mov ecx, dword [edi*4 + 0xec8c80]
xor ecx, esi
mov dword [eax + 0x10], ecx
add eax, 4
sub dword [esp + 0x10], 1
jne 0x4013f0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x402130
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450ac0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0xec5bb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0xec0f54
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x20], 0x2e
call fcn.0043dab4
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
movzx edx, word [eax + 0x14]
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], ebx
lea esi, [edx + eax + 0x18]
mov dword [ebp - 0x14], 0
mov eax, dword [ecx]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], esi
jge 0x40225a
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4021e9
mov edx, dword [ebp + 0xc]
mov edi, dword [edx + 0x38]
test edi, edi
jle 0x40224c
mov eax, dword [esi + 0xc]
push 4
push 0x1000
push edi
add eax, ebx
push eax
call dword [0xecbe10]
push edi
push 0
push eax
mov dword [esi + 8], eax
call fcn.0043ce70
inc dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add esi, 0x28
jmp 0x402194
mov ecx, dword [esi + 0xc]
push 4
push 0x1000
push eax
add ecx, ebx
push ecx
call dword [0xecbe10]
push 0xec0f54
lea edx, [ebp - 0x24]
mov byte [ebp - 4], 2
push edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 0x63
call fcn.0043dab4
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
add edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
push ecx
push edx
push eax
call fcn.00441a30
add esp, 0xc
mov dword [ebp - 4], 1
mov eax, 0x402240
ret
inc dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
add esi, 0x28
jmp 0x402194
mov eax, 0x402260
ret
Function at 0x402c60
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xbc
mov eax, dword [0xec5bb0]
xor eax, esp
mov dword [esp + 0xb8], eax
mov al, 0xe
mov byte [esp + 0x94], al
mov byte [esp + 0x97], al
mov al, 0xf3
mov byte [esp + 0x9f], al
mov byte [esp + 0xa2], al
xor eax, eax
mov cl, 0x4c
push ebp
mov word [esp + 0xa8], ax
mov al, 0x77
push esi
mov esi, dword [esp + 0xc8]
mov byte [esp + 0xa1], cl
mov byte [esp + 0xa8], cl
mov cl, 0xc
mov byte [esp + 0xb8], al
mov byte [esp + 0xba], al
push edi
mov byte [esp + 0xa1], 0x1c
mov byte [esp + 0xa2], 0x2a
mov byte [esp + 0xa4], 0x53
mov byte [esp + 0xa6], 0x26
mov byte [esp + 0xa7], 0x22
mov byte [esp + 0xa8], 0x14
mov byte [esp + 0xa9], 0x74
mov byte [esp + 0xaa], 0x1b
mov byte [esp + 0xad], 1
mov byte [esp + 0xaf], 0xeb
mov byte [esp + 0xb4], 0x31
mov byte [esp + 0xb5], 0x23
mov byte [esp + 0xb6], 0x68
mov byte [esp + 0xb7], 0x67
mov byte [esp + 0xb8], 0x37
mov byte [esp + 0xb9], cl
mov byte [esp + 0xba], 0x4a
mov byte [esp + 0xbb], 0x4d
mov byte [esp + 0xbd], 0x15
mov byte [esp + 0xbf], 0x96
mov byte [esp + 0xc0], cl
mov byte [esp + 0xc1], 0x72
mov byte [esp + 0xc2], 0x87
mov byte [esp + 0xc3], 0x8f
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0xb4]
xor byte [esp + eax + 0xa0], cl
inc eax
cmp eax, 0x10
jl 0x402d90
push 0xeb89e8
push 0x9f
mov byte [esp + eax + 0xa8], 0
push esi
mov byte [esp + eax + 0xad], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x402ee6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402ee6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x402ee6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x402ee6
push esi
call fcn.004035b9
push esi
mov edi, eax
push ebp
push edi
call fcn.00441a30
add esp, 0x10
lea edx, [esp + 0xc]
push edx
lea edx, [esp + 0xa4]
call fcn.004018d0
push edi
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00401990
test al, al
je 0x402e4b
movsx eax, byte [edi + esi - 1]
lea ecx, [eax - 1]
cmp ecx, 0xf
ja 0x402e77
sub esi, eax
cmp esi, 0xffffffff
jne 0x402e8b
push 0
push 0xeb8a2c
push 0xeb8a18
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
call fcn.004035ae
mov edx, dword [esp + 0x20]
push edx
call fcn.004035ae
add esp, 8
jmp 0x402efa
push eax
push 0x45c388
lea edx, [esp + 0x28]
call fcn.00401f90
add esp, 8
jmp 0x402e4b
push edi
call fcn.00402980
mov esi, eax
add esp, 4
test esi, esi
jne 0x402ec1
push eax
push 0xeb8a50
push 0xeb8a18
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
call fcn.004035ae
mov eax, dword [esp + 0x20]
push eax
call fcn.004035ae
add esp, 8
jmp 0x402efa
push esi
call fcn.00402860
add esp, 4
test eax, eax
je 0x402ed0
call eax
push esi
call fcn.00402770
push edi
call fcn.004035ae
add esp, 8
push 1
call fcn.0043b465
push 0
push 0xeb89f0
push 0xeb8a18
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0043ab25
add esp, 0xbc
ret 0x10
Function at 0x437557
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x450721
call fcn.0043d3c9
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040d599
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4375b9
call fcn.0041cb9d
cmp eax, 1
jne 0x4375b9
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x455638
push eax
call fcn.00415bdb
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040eca3
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00404511
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00404511
mov eax, esi
call fcn.0043d4a1
ret 0x10

Function at 0x4375e2
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x450721
call fcn.0043d3c9
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040d599
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x437644
call fcn.0041cb9d
cmp eax, 1
jne 0x437644
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x455638
push eax
call fcn.00415bdb
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040eca3
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00404511
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00404511
mov eax, esi
call fcn.0043d4a1
ret 0x14

Function at 0x43ab25
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0xec5bb0]
jne 0x43ab2f
repz ret
jmp fcn.00440154
Function at 0x448a02
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.0043fb62
and dword [ebp - 4], 0
cmp dword [0xecbd40], 0
mov ebx, eax
jne 0x448ab3
push 0x45a8a8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x448b64
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x45a89c
push edi
call esi
test eax, eax
je 0x448b64
push eax
call fcn.0043faf0
mov dword [esp], 0x45a88c
push edi
mov dword [0xecbd40], eax
call esi
push eax
call fcn.0043faf0
mov dword [esp], 0x45a878
push edi
mov dword [0xecbd44], eax
call esi
push eax
call fcn.0043faf0
mov dword [esp], 0x45a85c
push edi
mov dword [0xecbd48], eax
call esi
push eax
call fcn.0043faf0
pop ecx
mov dword [0xecbd50], eax
test eax, eax
je 0x448ab3
push 0x45a844
push edi
call esi
push eax
call fcn.0043faf0
pop ecx
mov dword [0xecbd4c], eax
mov eax, dword [0xecbd4c]
cmp eax, ebx
je 0x448b0b
cmp dword [0xecbd50], ebx
je 0x448b0b
push eax
call fcn.0043fb6b
push dword [0xecbd50]
mov esi, eax
call fcn.0043fb6b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x448b0b
test edi, edi
je 0x448b0b
call esi
test eax, eax
je 0x448b02
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x448b02
test byte [ebp - 0xc], 1
jne 0x448b0b
or dword [ebp + 0x10], 0x200000
jmp 0x448b44
mov eax, dword [0xecbd44]
cmp eax, ebx
je 0x448b44
push eax
call fcn.0043fb6b
pop ecx
test eax, eax
je 0x448b44
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x448b44
mov eax, dword [0xecbd48]
cmp eax, ebx
je 0x448b44
push eax
call fcn.0043fb6b
pop ecx
test eax, eax
je 0x448b44
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0xecbd40]
call fcn.0043fb6b
pop ecx
test eax, eax
je 0x448b64
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x448b66
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4032e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x452020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403378
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x403358
xor eax, eax
push ebp
push 0x403351
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 0x403394
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403358
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x452020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x452020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404064
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x454048], 0
je 0x4040c5
cmp word [0x45421c], 0xd7b2
jne 0x40408d
cmp dword [0x454224], 0
jbe 0x40408d
mov eax, 0x454218
call dword [0x454234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45206c
push 0xfffffffffffffff5
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 0x4040ec
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x452030], 0
jne 0x4040e1
push 0
push 0x452064
push 0x45206c
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x405e0c
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 0x405e72
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_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404458
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ea4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405e5c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e79
lea eax, [ebp - 0x10]
call fcn.004041e8
ret

Function at 0x40ae50
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
test eax, eax
jle 0x40ae89
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042d8
jmp 0x40ae92
mov eax, ebx
mov edx, esi
call fcn.0040423c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ae9c
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
test eax, eax
jle 0x40aebd
mov al, byte [esp]
jmp 0x40aebf
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40be74
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 0x40bf4a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404280
lea eax, [ebp - 8]
call fcn.004046f8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004046a8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bf34
mov eax, ebx
call fcn.00402a28
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bf2d
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.004046a8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bf17
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bf5c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bf17
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 0x40bf34
mov eax, dword [ebp - 0x10]
call fcn.00402a58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf51
lea eax, [ebp - 8]
call fcn.004041e8
ret
Function at 0x40c424
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 0x40c488
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
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404458
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.004081bc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c48f
lea eax, [ebp - 0xc]
call fcn.004041e8
ret

Function at 0x41a670
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x454884
cmp dword [edi], 0
jne 0x41a6ec
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x454880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4523ec
mov ecx, 2
call fcn.00402c48
mov edx, 0x41a648
lea eax, [esi + 5]
call fcn.0041a668
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a668
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 0x41a6c1
mov dword [0x454880], 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 0x41b900
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 0x41b906
ret

Function at 0x41de80
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 0x41ded1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41deb8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41dea8
jmp 0x41ded1
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 0x41deb9
pop ebx
mov esp, ebp
pop ebp
ret