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

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp edx, dword [0x407d40]
push ebx
push esi
push edi
push ebp
jae 0x401ce7
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x407c40
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x401ce7
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x401b49
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x401b5a
push 2
push 0
push edx
call fcn.004034c0
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x401bf6
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x401c2f
lea edi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x401bbd
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x401bab
mov byte [edi], 0xd
inc esi
inc edi
mov byte [edi], al
inc edi
mov eax, edi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x401b92
lea eax, [esp + 0x24]
push 0
sub edi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push edi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401c25
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp edi, eax
jle 0x401b7d
jmp 0x401c2f
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401c25
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x401c2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x401cd6
cmp dword [esp + 0x10], 0
je 0x401c88
cmp dword [esp + 0x10], 5
jne 0x401c6b
mov dword [0x40613c], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x406140], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.004030a0
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x401cb2
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x401cb2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x40613c], 0x1c
mov dword [0x406140], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x40613c], 9
mov dword [0x406140], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x402010
Capabilities:
Terminate process

Disassembly:
cmp dword [0x406184], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x40202e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x406180], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x40617c], bl
jne 0x402088
cmp dword [0x407d48], 0
je 0x402076
mov edi, dword [0x407d44]
sub edi, 4
cmp dword [0x407d48], edi
ja 0x402076
mov eax, dword [edi]
test eax, eax
je 0x40206b
call eax
sub edi, 4
cmp dword [0x407d48], edi
jbe 0x402063
push 0x40601c
push 0x406014
call fcn.004020c0
add esp, 8
push 0x406024
push 0x406020
call fcn.004020c0
add esp, 8
test ebx, ebx
jne 0x4020af
mov dword [0x406184], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x402720
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x406228], 0
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push ebp
jne 0x40276c
call esi
mov edi, eax
test edi, edi
je 0x40274a
mov dword [0x406228], 1
jmp 0x402770
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x402762
mov dword [0x406228], 2
jmp 0x402774
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
cmp dword [0x406228], 1
jne 0x402823
test edi, edi
jne 0x402797
call esi
mov edi, eax
test edi, edi
jne 0x402797
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x4027b1
add esi, 2
cmp word [esi], 0
jne 0x40279f
add esi, 2
cmp word [esi], 0
jne 0x40279f
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x402812
push ebp
call fcn.00403a20
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x402812
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x402801
push ebx
call fcn.00401700
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x406228], 2
jne 0x4028a7
test ebx, ebx
jne 0x402846
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x402846
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x40285b
inc ebp
cmp byte [ebp], 0
jne 0x40284d
inc ebp
cmp byte [ebp], 0
jne 0x40284d
sub ebp, ebx
inc ebp
push ebp
call fcn.00403a20
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x402880
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x402eb0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x406458
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x402ed7
add eax, 8
inc ecx
cmp eax, 0x4064e0
jb 0x402ec8
cmp dword [ecx*8 + 0x406458], edx
lea ebx, [ecx*8]
jne 0x403092
cmp dword [0x406134], 1
je 0x403057
cmp dword [0x406134], 0
jne 0x402f0e
cmp dword [0x406138], 1
je 0x403057
cmp edx, 0xfc
je 0x403092
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x402f4b
mov esi, 0x4052bc
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x402f8f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x4052b8
push ebp
call fcn.00403b40
add esp, 0xc
mov esi, 0x40529c
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x405298
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x40645c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push 0x405270
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00403aa0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x407c40]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x40306e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x40645c]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x403d20
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.004041a0
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x1014]
push ebp
cmp esi, dword [0x407d40]
jae 0x403e6d
mov eax, esi
mov ecx, esi
and eax, 0xffffffe7
and ecx, 0x1f
sar eax, 3
mov edx, dword [eax + 0x407c40]
test byte [edx + ecx*8 + 4], 1
je 0x403e6d
push 1
push ebx
push esi
call fcn.004034c0
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x403e5d
push 2
push ebx
push esi
call fcn.004034c0
add esp, 0xc
cmp eax, 0xffffffff
je 0x403e5d
mov ecx, dword [esp + 0x101c]
mov ebp, ecx
sub ebp, eax
test ebp, ebp
jle 0x403e03
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.00404120
add esp, 8
mov edi, eax
mov eax, 0x1000
cmp ebp, eax
jge 0x403dc6
mov eax, ebp
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00401ae0
add esp, 0xc
cmp eax, 0xffffffff
je 0x403de2
sub ebp, eax
test ebp, ebp
jg 0x403dbb
jmp 0x403df7
cmp dword [0x406140], 5
jne 0x403df5
mov dword [0x40613c], 0xd
mov ebx, eax
push edi
push esi
call fcn.00404120
add esp, 8
jmp 0x403e40
jge 0x403e40
push 0
push ecx
push esi
call fcn.004034c0
add esp, 0xc
push esi
call fcn.00403310
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x403e40
mov dword [0x40613c], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x406140], eax
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.004034c0
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x40613c], 9
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
Function at 0x5319a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe8000]
push edi
or ebp, 0xffffffff
jmp 0x5319c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5319c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5319b8
mov eax, 1
add ebx, ebx
jne 0x5319db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5319ec
jne 0x531a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x531a0b
dec eax
add ebx, ebx
jne 0x5319f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5319d0
add ebx, ebx
jne 0x531a07
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x531a5d
xor ecx, ecx
sub eax, 3
jb 0x531a23
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x531a92
sar eax, 1
mov ebp, eax
jmp 0x531a2e
add ebx, ebx
jne 0x531a2e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5319fc
inc ecx
add ebx, ebx
jne 0x531a3c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5319fc
add ebx, ebx
jne 0x531a49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x531a3e
jne 0x531a5a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x531a3e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x531a7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x531a6e
jmp 0x5319be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x531a7c
add edi, ecx
jmp 0x5319be
pop esi
mov edi, esi
mov ecx, 0x3b40
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x531a9a
cmp byte [edi], 0x1d
jne 0x531a9a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x531a9f
lea edi, [esi + 0x12d000]
mov eax, dword [edi]
or eax, eax
je 0x531b17
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x197534]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19769c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x531acc
mov ecx, edi
jns 0x531afb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1976a0]
or eax, eax
je 0x531b11
mov dword [ebx], eax
add ebx, 4
jmp 0x531ae9
call dword [esi + 0x1976b0]
mov ebp, dword [esi + 0x1976a4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x531b4b
sub esp, 0xffffff80
jmp 0x449bce
Function at 0x403320
Capabilities:
Query or enumerate registry value

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

Function at 0x4040bc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45f04c], 0
je 0x40411d
cmp word [0x45f220], 0xd7b2
jne 0x4040e5
cmp dword [0x45f228], 0
jbe 0x4040e5
mov eax, 0x45f21c
call dword [0x45f238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45d06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404144
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45d030], 0
jne 0x404139
push 0
push 0x45d064
push 0x45d06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406198
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 0x4061fe
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004044b0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ee4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4061e8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406205
lea eax, [ebp - 0x10]
call fcn.00404240
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404700
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408c09
test al, 0x10
jne 0x408c0d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b824
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 0x40b85d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404330
jmp 0x40b866
mov eax, ebx
mov edx, esi
call fcn.00404294
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bf28
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bd90
mov eax, dword [0x45e1a0]
cmp byte [eax], 0
je 0x40bfa4
mov eax, dword [0x45df98]
call fcn.00402d50
call fcn.00402bc4
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408fe0
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bfec
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bfda
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45df44]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45f668]
call fcn.00405604
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40c890
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 0x40c966
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004042d8
lea eax, [ebp - 8]
call fcn.00404750
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404700
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c950
mov eax, ebx
call fcn.00402a38
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c949
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.00404700
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c933
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c978
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c933
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 0x40c950
mov eax, dword [ebp - 0x10]
call fcn.00402a68
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c96d
lea eax, [ebp - 8]
call fcn.00404240
ret

Function at 0x40cf40
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 0x40cfa4
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004044b0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408850
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cfab
lea eax, [ebp - 0xc]
call fcn.00404240
ret

Function at 0x41e4b8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45f888
cmp dword [edi], 0
jne 0x41e534
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45f884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45d3fc
mov ecx, 2
call fcn.00402c58
mov edx, 0x41e490
lea eax, [esi + 5]
call fcn.0041e4b0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041e4b0
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 0x41e509
mov dword [0x45f884], 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 0x41fac0
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 0x41fac6
ret
Function at 0x421f8c
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 0x421fdd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x421fc4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x421fb4
jmp 0x421fdd
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 0x421fc5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ab94
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004046f0
xor eax, eax
push ebp
push 0x42acc2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x42ac95
xor eax, eax
push ebp
push 0x42ac8e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404500
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42ac63
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x42ac52
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404500
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404700
mov edx, ebx
pop ecx
call fcn.00402c58
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ac59
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x45dee0]
mov dl, 1
mov eax, dword [0x407548]
call fcn.0040c0ac
call fcn.00403c54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42acc9
lea eax, [ebp - 4]
call fcn.00404240
ret