joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b7d58
Capabilities:
Encode data using xor

Disassembly:
arpl bp, si
cld
push esp
xchg ebx, eax
add byte [eax + ebp*2 - 0xd80723b], ch
and byte [ebx], dh
div byte [eax + 0x3010a84e]
idiv byte [ebx]
jecxz 0x5b7cd8
retf
inc ebx
adc esi, dword [esi + 0x69]
push dword [edx - 0x3e]
sub al, 0x1a
or esp, dword [eax + 0x65]
jo 0x5b7ce3
jo 0x5b7ce3
mov bl, 0xb2
nop
pop ds
lahf
jo 0x5b7cbd
mov dh, bh
xor ebp, dword [ebx - 0x34]
bound ebp, qword [0x36900e63]
add eax, 0xcd5d53fe
mov cl, 0
xor byte [edi], dl
inc eax
popfd
push ss
sbb ah, byte [edx - 0x1a]
shl byte [esi - 0x34eb6cbb], 0xf7
fbld tbyte [ebx]
arpl word [ebp - 1], cx
mov dl, bl
xor al, byte [esi + ecx*4]
out 0xc0, al
cmpsb byte [esi], byte es:[edi]
inc ebp
xchg ebx, eax
adc al, 0xcb
neg edi
and esp, dword [ebx + 0x4d]
dec dword [edx - 0x71fbcd2d]
js 0x5b7d98
rcl esi, 0x92
sbb ebx, dword [edx - 0x20]
nop
jg 0x5b7d96
jecxz 0x5b7d61
xor eax, 0xfef1ac15
xchg ecx, eax
or eax, 0x61f7539f
shr byte [eax], 0xc0
and edi, dword [esi + 0x35a5d057]
shl esp, cl
loop 0x5b7d93
cmpsb byte [esi], byte es:[edi]
sub byte [ecx - 0x4c7079e3], 0x63
push 0x30
and eax, dword [edx]
aad 0x94
loopne 0x5b7d84
adc al, 0x94
mov al, byte [0x39cd7c34]
jns 0x5b7d2d
cbw
jge 0x5b7ce1
push es
push esi
test byte [ebp + ecx*8 - 0x784fe389], ch
stosd dword es:[edi], eax
inc eax
loop 0x5b7d1e
lodsb al, byte [esi]
int 0x77
sbb al, 0xb0
xchg dword [ebx - 0x2d4c1dc0], ebp
shl byte [eax], cl
jge 0x5b7d07
rcl dl, cl
and byte [ebp - 0x69], bh
push ss
test dword [eax - 0x6a698ebe], esp
xchg ebp, eax
aad 0x63
jge 0x5b7d02
jne 0x5b7de0
popal
jno 0x5b7d0e
sar byte [edx + 0xab2f37f], 1
mov dl, 0xa
mov ah, 0xfd
lodsb al, byte ds:[esi]
loop 0x5b7dc2
adc ebx, dword [ebx]
sub al, 0xe1
arpl word [ebx - 0x25], dx
push ss
jp 0x5b7d76
add cl, bl
inc edi
inc ebx
ret 0x3235
movsb byte es:[edi], byte [esi]
inc ebx
add ecx, esi
sbb byte [ebp + 0x21f74813], ch
div dword [eax]
and dh, byte [di - 0x484f]
jl 0x5b7e1e
outsb dx, byte [esi]
sbb eax, 0xb1dabfc0
cdq
mov cl, 0x99
arpl word [ecx - 0x4e7d3353], cx
mov dword [0x7dd9c382], eax
mov ch, byte [edi + 0x1c]
mov esp, 0x73ef10c6
jae 0x5b7e54
mov word [ecx], fs
lodsd eax, dword [esi]
int3
xchg esi, eax
xor al, 0xae
outsb dx, byte [esi]
jl 0x5b7dc5
cld
xchg ebx, eax
aas
sub byte [edx], bl
mov eax, dword [0xd4762089]
loopne 0x5b7e3f
vaddsubpd ymm3, ymm5, ymm6
jo 0x5b7d76
lodsb al, byte [esi]
mov dword [0x30720e85], eax
rol dword [ecx - 0x719cb9b9], 0xb0
inc eax
dec eax
push cs
rcr esi, 1
mov dword [0xcbac8ce0], eax
cwde
adc byte [esi + 0x464cd93], bl
inc ebx
push cs
sbb al, 0x53
adc eax, 0xa286d3e3
push ebp
mov eax, 0xd511c613
adc ebp, edx
aas
jecxz 0x5b7da9
invalid
je 0x5b7e8f
push ss
movsd dword es:[edi], dword [esi]
pop esp
inc ebx
and dword [ebx - 0x40], eax
sub dword [edx - 0x9a9baa0], ecx
aad 0x43
inc eax
outsd dx, dword [esi]
invalid
and byte [edi], ah
adc byte [0x6b9f0e61], ch
cmpsd dword [esi], dword es:[edi]
push ds
ret 0x96ad
sbb ebp, dword [ebx - 0x3d]
int 0
sub edx, dword [ebx + 0x44430157]
jae 0x5b7ea2
push es
xor al, 0x29
mov cl, 0xb2
das
retf
Function at 0x4027c7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00401c00
test eax, eax
je 0x40299c
push 0x40e448
call fcn.00401c7c
test eax, eax
je 0x40299c
xor esi, esi
push esi
push esi
push esi
push dword [0x40e450]
call dword [0x40b058]
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
push dword [ebp + 0xc]
call dword [0x40b04c]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x40299c
push dword [0x40e454]
push esi
call dword [0x40b06c]
push dword [0x40e454]
mov ebx, eax
push esi
push ebx
call fcn.00404a00
add esp, 0xc
lea eax, [ebp - 4]
push esi
push eax
push dword [0x40e454]
push ebx
push dword [0x40e450]
call dword [0x40b054]
test eax, eax
jne 0x40286c
push ebx
call dword [0x40b060]
jmp 0x40299c
lea eax, [ebp - 4]
push esi
push eax
mov edi, dword [0x40b068]
push dword [0x40e454]
push ebx
push dword [ebp - 0xc]
call edi
test eax, eax
push ebx
je 0x402861
mov ebx, dword [0x40b060]
call ebx
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [0x40b04c]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40299c
push esi
push eax
call dword [0x40b05c]
push eax
push esi
call dword [0x40b06c]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 4]
push esi
push eax
push esi
push dword [ebp + 8]
call dword [0x40b05c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x40b054]
test eax, eax
jne 0x4028f2
push dword [ebp + 0xc]
call ebx
jmp 0x40299c
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov dword [ebp - 8], eax
call dword [0x40b064]
xor ecx, ecx
cmp dword [ebp - 8], esi
jbe 0x402916
mov eax, dword [ebp + 0xc]
add eax, ecx
xor byte [eax], 0x17
inc ecx
cmp ecx, dword [ebp - 8]
jb 0x402908
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x10]
push 4
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x10], esi
call edi
test eax, eax
je 0x4028e8
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call edi
push dword [ebp + 0xc]
test eax, eax
je 0x4028eb
call ebx
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 8]
push 4
push eax
push ebx
call edi
test eax, eax
je 0x40299c
lea eax, [ebp - 4]
push esi
push eax
push 4
push 0x40e454
push ebx
call edi
test eax, eax
je 0x40299c
lea eax, [ebp - 4]
push esi
push eax
push 2
push 0x40b200
push ebx
call edi
test eax, eax
je 0x40299c
lea eax, [ebp - 0x14]
push eax
call fcn.004049b6
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x14]
push 4
push eax
push ebx
call edi
test eax, eax
jne 0x4029a0
xor eax, eax
jmp 0x4029aa
push ebx
call dword [0x40b064]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4029b1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
push ebx
push esi
push edi
xor esi, esi
push dword [0x40e460]
push esi
call dword [0x40b06c]
push esi
push esi
push dword [0x40e464]
mov edi, eax
mov dword [ebp - 4], edi
push dword [0x40e450]
call dword [0x40b058]
lea eax, [ebp - 8]
push esi
push eax
push dword [0x40e460]
push edi
push dword [0x40e450]
call dword [0x40b054]
xor eax, eax
cmp dword [0x40e460], esi
jbe 0x402a14
xor byte [eax + edi], 0x17
inc eax
cmp eax, dword [0x40e460]
jb 0x402a07
push 0x100
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00404a00
mov edi, 0x200
lea eax, [ebp - 0x308]
push edi
push esi
push eax
call fcn.00404a00
add esp, 0x18
lea eax, [ebp - 0x308]
push edi
push eax
push esi
call dword [0x40b050]
test eax, eax
je 0x402b70
lea eax, [ebp - 0x108]
push 0x40d100
push eax
call fcn.00404f60
lea eax, [ebp - 0x308]
push eax
call fcn.00404da0
add esp, 0xc
mov ebx, eax
dec ebx
je 0x402abe
cmp byte [ebp + ebx - 0x308], 0x5c
jne 0x402a75
lea eax, [ebp - 0x308]
push eax
call fcn.00404da0
push 0xfffffffffffffffd
pop ecx
sub ecx, ebx
add eax, ecx
push eax
lea eax, [ebp + ebx - 0x308]
push eax
lea eax, [ebp - 0x106]
push eax
call fcn.00404a60
lea eax, [ebp - 0x108]
push 0x40d0fc
push eax
call fcn.00404f60
add esp, 0x18
push esi
push 0x80
push 2
push esi
push 1
lea eax, [ebp - 0x108]
push 0xc0000000
push eax
call dword [0x40b04c]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402b70
lea eax, [ebp - 8]
push esi
push eax
push dword [0x40e460]
push dword [ebp - 4]
push ebx
call dword [0x40b068]
test eax, eax
je 0x402b70
push ebx
call dword [0x40b064]
push dword [ebp - 4]
call dword [0x40b060]
push edi
lea eax, [ebp - 0x508]
push esi
push eax
call fcn.00404a00
lea eax, [ebp - 0x508]
push 0x40d0f0
push eax
call fcn.00404f60
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x508]
push eax
call fcn.00404da0
pop ecx
lea eax, [ebp + eax - 0x508]
push eax
call fcn.00404f60
pop ecx
lea eax, [ebp - 0x508]
pop ecx
push 5
push eax
call dword [0x40b098]
lea eax, [ebp - 0x108]
push eax
call dword [0x40b094]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40106e
Capabilities:
Delete file
Set file attributes

Disassembly:
jmp 0x4016d0
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x403738
push eax
mov dword fs:[0], esp
mov eax, dword [esp + 0x10]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov dword [esp + 8], 0xffffffff
lea ecx, [esp + 0x10]
je 0x401729
call fcn.0040205e
mov eax, 1
mov ecx, dword [esp]
mov dword fs:[0], ecx
add esp, 0xc
ret
call fcn.0040205e
mov ecx, dword [esp]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0xc
ret
Function at 0x1c58470
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x76e000]
push edi
jmp 0x1c5848a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1c58491
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1c58480
mov eax, 1
add ebx, ebx
jne 0x1c584a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1c584b4
jne 0x1c584d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1c584d3
dec eax
add ebx, ebx
jne 0x1c584c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1c58498
add ebx, ebx
jne 0x1c584cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1c58525
xor ecx, ecx
sub eax, 3
jb 0x1c584eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1c5855a
sar eax, 1
mov ebp, eax
jmp 0x1c584f6
add ebx, ebx
jne 0x1c584f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1c584c4
inc ecx
add ebx, ebx
jne 0x1c58504
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1c584c4
add ebx, ebx
jne 0x1c58511
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1c58506
jne 0x1c58522
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1c58506
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1c58544
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1c58536
jmp 0x1c58486
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1c58544
add edi, ecx
jmp 0x1c58486
pop esi
mov edi, esi
mov ecx, 0x16816
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1c58562
cmp byte [edi], 0xd7
jne 0x1c58562
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 0x1c58567
lea edi, [esi + 0x1854000]
mov eax, dword [edi]
or eax, eax
je 0x1c585df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x185a3f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x185a56c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1c58594
mov ecx, edi
jns 0x1c585c3
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 + 0x185a574]
or eax, eax
je 0x1c585d9
mov dword [ebx], eax
add ebx, 4
jmp 0x1c585b1
call dword [esi + 0x185a570]
mov ebp, dword [esi + 0x185a578]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
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 0x1c58613
sub esp, 0xffffff80
jmp 0x6d6019
Function at 0x4029fc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403fbc
test esi, esi
jne 0x402a32
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004040ac
jmp 0x402a50
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402910
mov edi, eax
test esi, esi
je 0x402a50
cmp dword [ebx], 0
je 0x402a50
dec esi
jmp 0x402a39
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030e4
Capabilities:
Query or enumerate registry value

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

Function at 0x403e40
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x478048], 0
je 0x403ea1
cmp word [0x47821c], 0xd7b2
jne 0x403e69
cmp dword [0x478224], 0
jbe 0x403e69
mov eax, 0x478218
call dword [0x478234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47606c
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 0x403ec8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x476030], 0
jne 0x403ebd
push 0
push 0x476064
push 0x47606c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40524c
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 0xf0019
push 0
push 0x40547c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4052cf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40547c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4052cf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405498
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405358
xor eax, eax
push ebp
push 0x405351
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405094
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405336
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4054b8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405336
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405358
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
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 0x405472
cmp byte [ebp - 0xd], 0
jne 0x40539f
cmp byte [ebp - 0x12], 0
je 0x405472
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4053b8
dec ebx
cmp byte [ebx], 0x2e
je 0x4053c7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4053b7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405472
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405404
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405472
cmp byte [ebp - 0xd], 0
je 0x405472
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405472
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
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 0x405b44
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 0x405baa
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.0040422c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c9c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405b94
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405bb1
lea eax, [ebp - 0x10]
call fcn.00403fbc
ret

Function at 0x40aed8
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 0x40af11
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040ac
jmp 0x40af1a
mov eax, ebx
mov edx, esi
call fcn.00404010
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b5cc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b444
mov eax, dword [0x477b40]
cmp byte [eax], 0
je 0x40b648
mov eax, dword [0x47790c]
call fcn.00402b08
call fcn.0040283c
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.00408610
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 0x40b690
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b67e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4778ac]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x478664]
call fcn.00405058
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 0x40bee4
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 0x40bfba
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404054
lea eax, [ebp - 8]
call fcn.004044cc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040447c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bfa4
mov eax, ebx
call fcn.004026d4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bf9d
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.0040447c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bf87
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bfcc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bf87
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 0x40bfa4
mov eax, dword [ebp - 0x10]
call fcn.004026f4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bfc1
lea eax, [ebp - 8]
call fcn.00403fbc
ret

Function at 0x40c4c4
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 0x40c528
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.0040422c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004080ac
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c52f
lea eax, [ebp - 0xc]
call fcn.00403fbc
ret

Function at 0x41aad0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x478884
cmp dword [edi], 0
jne 0x41ab4c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x478880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47646c
mov ecx, 2
call fcn.004028d0
mov edx, 0x41aaa8
lea eax, [esi + 5]
call fcn.0041aac8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041aac8
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 0x41ab21
mov dword [0x478880], 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 0x41c0f8
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 0x41c0fe
ret
Function at 0x41e688
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 0x41e6d9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e6c0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e6b0
jmp 0x41e6d9
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 0x41e6c1
pop ebx
mov esp, ebp
pop ebp
ret