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

Disassembly:
mov byte [0xd6874f7c], al
mov bl, 0xb6
pushal
popfd
dec ecx
dec esp
push ecx
adc byte [ecx - 0x3e], cl
mov bl, 0xb2
sbb dl, byte [edi + 0x6371b4f6]
xchg ebp, eax
sub edx, 0xd6275133
div byte [ecx + esi*2 - 0x157e6a9d]
xor edx, dword [ecx + 0x27]
salc
mov edi, 0xcea2b3d6
pop ecx
mov eax, dword [0x506a5e65]
test al, 0xc2
mov dh, 0x42
xchg ecx, eax
jp 0x40cf4c
cdq
mov eax, 0x92d52cee
mov ch, 0xf3
xchg edi, eax
inc edx
out 0x98, eax
mov ch, 0xe3
mov dh, 0x9a
jnp 0x40cfdc
mov edi, 0x4742e798
mov dh, ah
shl byte [ebp - 0x7b], 1
into
push 0xbc6570d8
jne 0x40cfd0
mov ecx, 0xb4d1b56f
xchg edx, eax
test al, 0x1d
arpl dx, ax
xor byte [ecx], ah
fsub qword [ecx]
hlt
lodsd eax, dword [esi]
and ah, byte [eax - 0x58]
out 0x6e, eax
mov eax, dword [0xbe5a10e]
pop edx
lodsd eax, dword [esi]
loop 0x40d003
jge 0x40cfc3
jge 0x40cfc3
xor al, 0x8e
sub eax, 0xfaf06eeb
enter 0xc51, 0x4d
dec ebp
movsb byte es:[edi], byte [esi]
sub dl, bh
or eax, 0x6bb8ae8c
stc
push ebp
adc eax, 0x802eb9af
jecxz 0x40d04c
scasd eax, dword es:[edi]
mov ecx, 0x6ae3802e
js 0x40cfb3
pop eax
lodsd eax, dword [esi]
sbb dl, byte [esi]
inc edx
fstp dword [eax - 0xe757556]
rcl cl, 1
int 0x1e
or edi, dword [ecx]
add al, 0x84
test dword [edi - 0x3fd06eb7], ebp
pop eax
cmp al, 0xee
mov ebx, 0x12ecad13
aam 0x49
lodsd eax, dword [esi]
in al, dx
adc dl, ah
dec ecx
xor dl, bh
jmp dword [ecx]
or al, 0x8d
and dword [ebp - 0x55c192d2], ecx
and esi, dword [edi + ecx*2 - 0x6740fed8]
pop esi
sub dl, bh
mov ah, 0x4f
sub byte [ecx], al
mov edi, 0xfa285e98
sub dword [ebp + 0xb3cad8c], ebx
into
scasb al, byte es:[edi]
pop edx
out dx, eax
mov byte [eax], dh
insd dword es:[edi], dx
mov dh, dl
lodsd eax, dword [esi]
add ch, byte [edi - 0x35f51093]
adc cl, byte [edi - 0x16b7772e]
xchg esp, eax
xchg edi, eax
sahf
mov dl, 0xf
pop ebp
push ds
and byte [ebx + 0xfac58d9], al
mov cl, 0x81
pop edi
mov byte [esi - 0x338415d2], cl
xchg ebp, ecx
push 0xffffffffffffffad
std
scasd eax, dword es:[edi]
pandn mm7, qword [ecx + ebp*4 + 0x5e]
dec eax
lcall 0xdc9f, 0xe83852f2
stosb byte es:[edi], al
dec edi
insb byte es:[edi], dx
pop eax
pop esp
cmp al, 0x4f
jg 0x40d055
mov esi, 0x19d4289
add edi, ebx
lodsd eax, dword [esi]
pop ebp
and eax, 0x2b2627dc
push es
fild qword [ebp + 0x27dc255d]
sub eax, dword es:[esi]
in al, dx
cmp esp, dword [ebx + 0x5e]
sub dl, 0xbf
jecxz 0x40d0b2
lodsd eax, dword [esi]
lodsb al, byte [esi]
pop edx
jnp 0x40d059
out dx, eax
invalid
Function at 0x414cb8
Capabilities:
Encode data using xor

Disassembly:
cmp bl, ch
mulps xmm7, xmm5
xlatb
mov dh, 0x91
pop esi
neg byte [esp - 0x27]
jg 0x414bab
adc ebp, edx
pop ebp
xlatb
cdq
outsb dx, byte [esi]
retf
xchg ecx, eax
js 0x414bca
cmp bl, byte [ecx - 0x1b501a6a]
mov ebp, 0x25bd3eb9
fnstsw word [esi - 0x67]
ret 0x99d1
and bh, byte [edi + 0x1a3e7a35]
jle 0x414bd8
jp 0x414c0a
sbb bh, byte [esi + 9]
mov ebp, 0xbcbee03f
insd dword es:[edi], dx
mov ebp, 0x690e86ab
cmc
push es
invalid
push cs
imul esi, ebp, 0x31ed6206
inc esi
pop eax
in eax, dx
xor dword [esi + 0x58], eax
and eax, 0xb66caa3b
mov al, 0xe0
ror ebx, cl
jecxz 0x414b90
lodsb al, byte [esi]
cmp eax, dword [eax]
rcl byte [ebx + 0x7a], cl
or byte [edi - 0xe9e0524], 0xdc
les ecx, [esi]
cmpsd dword [esi], dword es:[edi]
push ds
inc ebx
dec ebp
std
inc edi
jecxz 0x414bdd
push ebp
loop 0x414beb
les esp, [edi]
mov al, byte [0x2da5edd]
or al, dh
adc eax, 0xcfcdfcd5
pop ss
call 0x314024b5
wait
and bl, byte [edi + 0x11ff3ad1]
sub eax, 0x3676864
mov ebp, esi
adc byte [edx + edx], al
popal
int3
fstp qword [esi - 0x26]
add cl, byte [eax]
invalid
ja 0x414bc7
in eax, 0x3e
mov edi, dword [edx + 0x25ee763a]
xchg edi, eax
hlt
push 0xc93a504
push es
pop esp
inc ebp
cmp bl, byte [esi - 0x58f3f151]
cmpsd dword [esi], dword es:[edi]
std
imul ecx, dword [edi + 0x1f65a1a2], 0xd6efc4b0
out dx, eax
salc
jb 0x414c55
dec eax
pop ebx
mov ebp, 0xa941291b
fsub dword [ecx]
dec edi
cwde
jecxz 0x414cc8
div byte [esi + 0x14]
xor dword [edi], eax
loopne 0x414ca7
push es
invalid
add ecx, 0x6c9fd034
xchg edx, eax
pop es
js 0x414c3a
test dword [edx + ebx*8], ebx
invalid
sal bl, cl
inc esi
jmp 0x414c62
jecxz 0x414cca
push ss
or ah, ah
cli
jne 0x414d38
imul dword [ecx + 0x2d662c6]
je 0x414c6c
xor dl, bl
invalid
adc al, 0x88
pop edx
mov eax, dword [0x92c16e5c]
and eax, 0xd6c850dd
push ebp
invalid
Function at 0x417c10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x58
mov eax, dword [0x5fc038]
mov dword [esp + 4], 0
push esi
lea ecx, [eax + eax]
mov eax, dword [0x5fc03c]
or ecx, eax
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x60]
fild qword [esp + 4]
test ecx, ecx
fadd qword [0x5fc050]
fstp qword [0x5fc050]
je 0x417c63
mov eax, dword [0x5ff800]
test eax, eax
je 0x417c57
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
pop esi
add esp, 0x58
ret 4
mov dl, byte [0x5fc042]
mov cl, byte [0x5fc049]
xor cl, dl
mov edx, dword [0x5fc030]
mov byte [0x5fc049], cl
mov ecx, dword [0x5fc034]
and ecx, 4
and eax, 0xc
add edx, ecx
mov esi, dword [0x5fc038]
mov dword [0x5fc030], edx
mov edx, dword [0x5fc048]
and edx, 0xff
push ebp
imul eax, edx
xor esi, eax
push edi
lea eax, [esp + 0x14]
push 0x50
push eax
mov dword [0x5fc038], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.dsound.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x15]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [0x603d60]
mov ecx, ebp
and ecx, 3
lea edx, [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
mov cl, byte [0x5fc040]
push edx
and cl, al
mov byte [0x5fc040], cl
mov cl, byte [0x5fc047]
or cl, 2
shr cl, 1
and ecx, 0xff
mov dword [esp + 0x6c], ecx
fild dword [esp + 0x6c]
fdivr qword [0x5fc050]
fadd qword [0x5f9438]
fstp qword [0x5ff9d0]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
mov dword [0x5ff800], eax
test eax, eax
pop ebp
je 0x417d88
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DirectSoundCreate
push eax
call esi
mov dword [0x5ff7fc], eax
mov eax, dword [0x5ff800]
push str.DirectSoundEnumerateA
push eax
call esi
mov ecx, dword [0x5ff7fc]
mov dword [0x5ff804], eax
test ecx, ecx
je 0x417d7e
test eax, eax
je 0x417d7e
mov eax, 1
pop esi
add esp, 0x58
ret 4
mov dword [0x5ff800], 0
xor eax, eax
pop esi
add esp, 0x58
ret 4
Function at 0x487788
Capabilities:
Encode data using xor

Disassembly:
adc bh, bl
jecxz 0x487804
aam 0x38
hlt
dec edx
inc eax
xor eax, 0x5e983b89
inc eax
xlatb
xor ebx, esp
popal
push cs
and bh, byte [edx + 0x115bb58d]
insb byte es:[edi], dx
cld
shl byte [ecx - 0x532e115f], 0xb1
xchg byte [0xe2f5c549], al
out 0x8a, eax
adc edx, dword [edi + 8]
loop 0x487870
push edx
xor al, 0xe8
cmp byte [edx - 0x79], 0x77
aas
add eax, 0x70a8c26f
test eax, 0x7658a496
js 0x4878ac
sub dl, cl
test dword [ebx + 0x7f], esp
xchg ecx, eax
jl 0x4878b5
sar dword [ecx + 2], 1
xchg edi, eax
mov edi, 0x7e3212dc
add byte [eax + 0xf], ch
mov eax, 0xa7733a23
invalid
rcl dword [edx - 0x504c7cc3], 0x54
rcl dword [edx - 0x504c7cc3], 0x54
bnd jecxz 0x48786f
in al, dx
adc dword [ecx], ebp
outsb dx, byte [esi]
pop es
xchg ebx, eax
inc ebx
invalid
jmp 0x6b29bb8d
sbb byte [edi + 0x6e3f7bc8], 0x5d
jnp 0x4878f6
outsb dx, byte [esi]
pop ebp
je 0x4878b2
xchg esp, eax
enter 0xffffffffffffd6a8, 0x39
invalid
test edi, esi
out dx, al
mov cl, 0x3a
fiadd word [eax + 0x53]
leave
imul esp, dword [ebx], 0xffffffcd
and byte [ebp + 0x7de56bc1], ah
int 0x20
movsd dword es:[edi], dword [esi]
shr dword [ebx - 0x1b], 0x7d
sbb dword [ebx + 0x6e], 0x7a3f9c3a
mov eax, 0xccd2b09b
fiadd word [eax + 0x2d]
xor dword cs:[eax], ebx
xchg ecx, eax
wait
push ss
jo 0x487901
lodsb al, byte [esi]
push es
inc ecx
inc esi
cld
push edi
push ebx
push es
mov al, 0xf0
or al, 0xb8
ljmp 0xf260
Function at 0x493487
Capabilities:
Encode data using xor

Disassembly:
sub dword [edx], 0xfe477ad1
dec edx
pop esp
xchg edi, eax
mov ch, 0xb3
sub al, 0x19
jnp 0x4934ea
out dx, al
pop esi
rcl dword [ecx]
invalid
sal byte [ecx], cl
movsb byte es:[edi], byte [esi]
je int.00493487
insb byte es:[edi], dx
push ecx
loop 0x493469
add al, 0x99
inc edi
invalid
fidivr word [edx - 0x35e7945]
les esp, fs:[ecx]
mov dl, 0x46
jns 0x493533
and dword [edx - 0x5dbb86ba], esi
cwde
push ss
cmp ebx, dword [edi]
mov byte [0x1f3b1698], al
enter 0x3231, 0x3b
fistp word [esi]
mov al, 0xfa
xor dword ss:[eax - 0x7e2df36b], ecx
nop
mov ch, 0xb2
je 0x4934e2
push cs
cmp al, byte [edx]
jb 0x493581
jge 0x493557
fisttp qword [eax - 0x295cc47e]
xor esi, dword [edx + 0x32]
neg byte [esp - 0x13]
ret 0x407a
mov edi, 0xb2490f72
add ebp, edi
pop edx
jae 0x4935b1
std
stosb byte es:[edi], al
stosd dword es:[edi], eax
invalid
jae 0x4935a3
mov dl, 0xd9
popfd
ffreep st(6)
leave
mov dl, 0xd1
pop eax
movlps xmm7, qword [ecx + esi + 0x47d7338c]
xor edx, edi
inc edi
xchg esi, eax
jp 0x493547
into
mov eax, dword [0x31df04a2]
test dword [esi + eax*4 - 0x67], eax
shr byte [ebx], cl
wait
shl cl, cl
jb 0x4935a0
invalid
inc edx
xor byte [ebx - 0x4b3712d6], ah
xor dword [ebp - 0x62], esp
iretd
mov bh, byte [esi]
shr dword [eax - 0x64889d1f], 0
add ah, byte [eax - 0x35]
lahf
out dx, al
sub al, 0x92
mov byte [0x3a463698], al
dec edx
scasd eax, dword es:[edi]
fucomi st(1)
dec ebx
xor al, 0xaa
pop edx
push edx
push ds
dec esi
add ebx, eax
mov bh, 0xb3
dec ebp
cli
movsd dword es:[edi], dword [esi]
sbb al, byte [ebx]
mov dl, 0x8e
jno 0x493572
ret
movsb byte es:[edi], byte [esi]
xchg dword [ecx], esp
pop esi
mov al, byte [0xdaa0cded]
in eax, 0xba
cmp byte [edi], 0xaf
sahf
or bh, byte [edx + 0x5e07bbec]
adc bh, byte [edi - 0xdb62126]
push es
leave
pop esi
loope 0x493620
and dword [esi - 0x60], ebx
in eax, dx
int 0xa0
invalid
stosb byte es:[edi], al
aam 0xc3
mov edx, ebx
inc esi
pop esp
push esi
pop ebx
invalid
test al, 0x6d
adc byte [edx], ch
add esi, esp
call 0x34904a53
sar dword [edx - 0x1b], 0x2c
mov dh, 0x89
sar byte [ecx], cl
ljmp 0x519b
Function at 0x5f440d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5fc3d0
cmp edx, dword [eax]
je 0x5f442f
add eax, 8
inc ecx
cmp eax, 0x5fc460
jl 0x5f4420
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5fc3d0]
jne 0x5f455d
mov eax, dword [0x603d74]
cmp eax, 1
je 0x5f4537
test eax, eax
jne 0x5f4460
cmp dword [0x5fc2f8], 1
je 0x5f4537
cmp edx, 0xfc
je 0x5f455d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5f4497
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.005f4df0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.005f5280
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x5f44da
lea eax, [ebp - 0x1a4]
push eax
call fcn.005f5280
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x5f97bc
push edi
call fcn.005f7150
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.005f4df0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.005f4e00
lea eax, [ebp - 0xa0]
push 0x5f979c
push eax
call fcn.005f4e00
push dword [esi + 0x5fc3d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.005f4e00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.005f70c4
add esp, 0x2c
pop edi
jmp 0x5f455d
lea eax, [ebp + 8]
lea esi, [esi + 0x5fc3d4]
push 0
push eax
push dword [esi]
call fcn.005f5280
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 0x402d50
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402d8d
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 + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402dad
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404f6c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403064
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404cfc
test esi, esi
jne 0x40309b
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404dec
jmp 0x4030bc
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402f00
mov dword [esp], eax
test esi, esi
je 0x4030bc
cmp dword [ebx], 0
je 0x4030bc
dec esi
jmp 0x4030a3
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x40371c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4c5008], 0x8088405
inc edx
mov dword [ebx + 0x4c5008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403d9c
Capabilities:
Query or enumerate registry value

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

Function at 0x404b78
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c704c], 0
je 0x404bd9
cmp word [0x4c7220], 0xd7b2
jne 0x404ba1
cmp dword [0x4c7228], 0
jbe 0x404ba1
mov eax, 0x4c721c
call dword [0x4c7238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4c5074
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 0x404c00
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4c5034], 0
jne 0x404bf5
push 0
push 0x4c506c
push 0x4c5074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406d14
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 0x406d7a
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.00404f6c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403908
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406d64
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406d81
lea eax, [ebp - 0x10]
call fcn.00404cfc
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004051bc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409a31
test al, 0x10
jne 0x409a35
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c7c8
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 0x40c801
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404dec
jmp 0x40c80a
mov eax, ebx
mov edx, esi
call fcn.00404d50
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40cecc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cd34
mov eax, dword [0x4c6ae0]
cmp byte [eax], 0
je 0x40cf48
mov eax, dword [0x4c6828]
call fcn.0040354c
call fcn.00402ca4
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.00409ec4
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 0x40cf90
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cf7e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4c67c0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4c7668]
call fcn.00406180
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 0x40d834
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 0x40d90a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404d94
lea eax, [ebp - 8]
call fcn.0040520c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004051bc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d8f4
mov eax, ebx
call fcn.00402b18
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d8ed
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.004051bc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d8d7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d91c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d8d7
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 0x40d8f4
mov eax, dword [ebp - 0x10]
call fcn.00402b48
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d911
lea eax, [ebp - 8]
call fcn.00404cfc
ret

Function at 0x40dfe4
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 0x40e048
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.00404f6c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409678
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e04f
lea eax, [ebp - 0xc]
call fcn.00404cfc
ret

Function at 0x425f64
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4c7888
cmp dword [edi], 0
jne 0x425fe0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4c7884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4c55b8
mov ecx, 2
call fcn.00402ec0
mov edx, 0x425f3c
lea eax, [esi + 5]
call fcn.00425f5c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00425f5c
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 0x425fb5
mov dword [0x4c7884], 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 0x4275dc
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 0x4275e2
ret
Function at 0x42a008
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 0x42a059
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42a040
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42a030
jmp 0x42a059
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 0x42a041
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x435424
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.004051ac
xor eax, eax
push ebp
push 0x435552
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x435525
xor eax, eax
push ebp
push 0x43551e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404fbc
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4354f3
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 0x4354e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404fbc
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.004051bc
mov edx, ebx
pop ecx
call fcn.00402ec0
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 0x4354e9
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4c672c]
mov dl, 1
mov eax, dword [0x4082f0]
call fcn.0040d050
call fcn.00404710
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x435559
lea eax, [ebp - 4]
call fcn.00404cfc
ret