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

Disassembly:
push esi
push eax
push ebx
xor esi, esi
call dword [0x475488]
cmp word [ebx], si
je 0x496589
mov edx, ebx
push ebp
xor eax, eax
cmp word [edi], ax
je 0x49657b
mov ecx, edi
lea esp, [esp]
mov ebp, esi
imul ebp, eax
add bp, word [ecx + 2]
add eax, 1
xor word [edx], bp
cmp word [edi + eax*2], 0
lea ecx, [edi + eax*2]
jne 0x496562
add esi, 1
cmp word [ebx + esi*2], 0
lea edx, [ebx + esi*2]
jne 0x496555
pop ebp
pop esi
ret

Function at 0x4aabd2
Capabilities:
Encode data using xor

Disassembly:
add edx, edi
sub al, 0xbf
inc edx
aad 7
or eax, 0xb09ab96
push 0xc6abe5e1
movsd dword es:[edi], dword [esi]
mov cl, 0xe4
xlatb
push ds
mov ah, 0xf2
je 0x4aabe3
rcl dword [ecx - 0x28c7eacb], cl
aam 0xfb
jo 0x4aaba1
sal edi, 1
pushal
retf
mov dh, 0xc9
or eax, 0xeaa78711
mov edx, 0x7029570f
stosb byte es:[edi], al
js 0x4aab94
or byte [esi - 0x16], bh
pop ds
add dword [ebx], ebx
lahf
push edi
rep movsd dword es:[edi], dword fs:[esi]
push cs
mov esi, 0xc802b4
les esp, [ebp + edx*4 - 0x729e10d8]
invalid
ljmp 0x6457:0x9f1b011f

Function at 0x4c7341
Capabilities:
Encode data using xor

Disassembly:
inc edi
cmp dh, byte [eax]
cli
mov ah, 0xdb
push esp
lodsd eax, dword [esi]
test dword [ebp + 0x3c932355], esp
push esi
inc esp
leave
retf
test edi, 0x28d2a796
cmpsb byte [esi], byte es:[edi]
or dword [ebx + 0x1f715954], edi
mov dword [edx - 0x47], ecx
nop
inc edx
iretd
in al, dx
or eax, dword [edx + edi*8]
jnp 0x4c7316
jne 0x4c72ff
or esi, esp
sbb edi, edx
cmp cl, byte [ecx + 0x3b]
push ss
fnstenv [ebx + edx*2]
sbb dword [esi - 0x41], edi
xchg ebx, eax
std
cmp dword [ebx + 0x6e], 0x77
or ebx, dword [ecx + 0x6d]
xor edi, dword [edi + 0x58]
fmul qword [edi]
and byte [eax + edi*8 - 0x1be9dffa], al
jns 0x4c739a
push ds
test dword [esi], eax
or dh, byte [eax + edi*4 - 1]
std
pop es
dec ebx
xor ebx, dword [eax - 0x552851ca]
enter 0xffffffffffffeea4, 0x2b
jbe 0x4c7370
push esi
mov ebp, 0x39324f60
jb 0x4c7393
pop esi
retf 0x4227
inc esp
dec edx
sahf
and byte [ebx + esi*4], cl
int3
cdq
mov eax, 0x4f7bdebf
invalid
Function at 0x4c789e
Capabilities:
Encode data using xor

Disassembly:
add dword [esi + ebx], 0xe172cb04
invalid
dec esi
xchg byte [ebx], bl
fisttp word [ebx - 0x45e825c7]
xchg esi, eax
aad 0x1c
je 0x4c77eb
sbb ebx, edi
mov edi, dword [ecx]
ficom dword [edi]
mov edx, 0x741cd596
mov cl, 0x9f
lahf
invalid
inc eax
pop ebp
pushal
imul esp, dword [edx - 0x14], 0x77
or esp, edx
xlatb
or edx, edx
sar byte [edi - 0x693b6c9e], 0xd3
mov ebx, 0x4e038b0a
xor ch, byte [ebx]
in eax, 0x53
jle 0x4c782e
jnp 0x4c782c
cmp eax, dword [esi]
dec ebx
cdq
cmp ebp, ebp
cli
push edi
mov edi, 0xc537c767
and dword [ebp + ebp + 0x4f], eax
invalid
mov dh, 0x9e
clc
mov byte [0x85eea1b6], al
jg 0x4c78bf
test dword [edi + 0x17], edi
or eax, 0x44178dfb
fnsave dword [ebx - 0x15999cbc]
aas
push ecx
mov bl, 0xa2
mov byte [ecx + 0x60], 0xd6
xchg ebx, eax
mov al, byte [0x795b2475]
imul esp, dword [0x88ea6784], 0x74
mov edi, 0xc29aeb17
aam 0xb2
push 0xa62646f9
or byte [edx + eax*8 - 0x4bc476ff], dh
stosd dword es:[di], eax
movsd dword es:[edi], dword [esi]
imul ecx, dword [0x27d0b2b0], 0xb496ba5b
adc al, 0xf3
xor edi, ecx
jno 0x4c78a5
pop ebx
jns 0x4c792d
and eax, 0x88ea6784
je 0x4c7888
pop ss
jmp 0x4c7866
pop edx
invalid
hlt

Function at 0x5076d2
Capabilities:
Encode data using xor

Disassembly:
or al, 0xca
push edi
add bh, byte [eax - 0x3c24d141]
xlatb
invalid
sub esp, dword [esi - 0x56]
aad 0x8a
int 0xbe
not byte [edi - 0x6ee48d96]
or bl, dl
lodsd eax, dword [esi]
pop esp
outsd dx, dword [esi]
aaa
push ss
dec edx
out dx, eax
cmp ax, 0xd156
push ds
mov edx, 0xc0db2c92
iretd
rcl byte fs:[edx + 0xf], cl
cmp dword [edx - 4], 0x683e6169
jo 0x507752
rol dword [ebp + 0x37b0e443], cl
int1
lodsb al, byte [esi]
xchg ecx, eax
stosb byte es:[edi], al
loope 0x5076b7
lds edx, [esi - 0x66]
outsb dx, byte [esi]
or esi, dword [esi - 0x152ee77d]
pop edx
mov edx, 0xe090a71d
inc edi
push ecx
sbb ebx, dword [eax]
jne 0x5076a5
jo 0x507685
outsb dx, byte [esi]
invalid
invalid
clc
enter 0xffffffffffff98fb, 0x56
cwde
push esi
add edi, dword [edi - 0x46]
inc eax
mov esi, 0x1e9de60
test byte [esi - 0x42], ah
lahf
dec edx
jne 0x507797
sbb bl, byte [eax - 0x6d6657a2]
cwde
pop esi
test al, 0x99
xchg edx, eax
inc ebp
mov eax, dword [0x29e94975]
aas
or esi, esi
scasd eax, dword es:[di]
or al, 0x4b
xor dl, bl
rcr dword [edi - 0x6e], 0x7e
out 0x96, al
xchg edx, eax
jle 0x507768
xchg esi, eax
fisub dword [edi]
pop eax
mov ebp, 0xeab85a81
invalid
adc al, 0x95
push ebp
cli
jg 0x507769
jle 0x507756
pop ss
inc eax
mov fs, word [esi + ebp*8]
cmpsb byte [esi], byte es:[edi]
scasd eax, dword es:[edi]
sti
out 0xca, eax
inc ebp
bound ecx, qword [ebp + 0x38]
sbb al, 0xfc
pop edi
mov al, byte [0x32e7f0c]
or byte [edi + 0x1e], bl
jno 0x507819
bound edi, qword [esi]
cdq
jle 0x507748
push ss
les esi, [eax - 0x66]
jle 0x50777f
outsb dx, byte [esi]
stosd dword es:[edi], eax
scasb al, byte es:[edi]
jle 0x5077ef
invalid
pop esi
int3
cmp bh, cl
sub eax, 0x8a7ff340
or ecx, edi
int 0xa9
xor esi, dword [edx]
aam 0x9c
lcall 0xb4bd, 0xd4a43ad5
retf
Function at 0x5b49a4
Capabilities:
Encode data using xor

Disassembly:
pop ss
jne 0x5b49a3
test byte [ebx + 0x428f6afd], dh
sbb byte [ebx + 0x3cd5e42c], cl
test byte [ebx], bh
jl 0x5b49c9
add bh, bl
xchg esp, eax
int 0xaa
in eax, dx
js 0x5b49e4
invalid
add byte [eax - 0x7b], bl
test dword [ebx - 0x5f], ebp
mov ch, 0xf2
test dword [esi + 0x46], esi
imul esp, dword [ecx + 0x7685f2b5], 0x46
jl 0x5b49c7
jp 0x5b49ca
sbb al, 0x3f
adc ecx, ebp
aam 0x85
cmp edi, edi
sub dl, dh
xor eax, 0x278f02f2
cli
fcomp qword [0x2e17dce0]
fiadd dword [ebx]
shl dword [edi - 0x320ba75c], 1
sub byte [ebx + 0x295932b1], 0xb0
mov ebx, 0x96baca7f
sub dl, bh
aas
xor dword [esi*2 - 0x6dd866d5], eax
in al, 0x52
inc edx
in al, dx
fnstsw word [esi + 0x4bcf63cb]
invalid

Function at 0x63e349
Capabilities:
Encode data using xor

Disassembly:
invalid
outsd dx, dword [esi]
xor eax, 0x6d852fad
in al, dx
popfd
sbb byte [esi - 0x73], ch
aam 0x30
rol dword [esi - 0x6bf73529], cl
outsd dx, dword [esi]
sub dl, byte [esi + edx + 0x4c]
inc edx
xchg esp, eax
or byte [eax], ch
or ebp, dword [0x9c332fe3]
xchg esp, eax
mov esi, 0x8d847702
xchg ebp, eax
lodsd eax, dword [esi]
loopne 0x63e3b8
jp 0x63e30a
dec dword [eax + 0x24]
mov byte [edi], cl
adc eax, 0x5817ffc2
sub ecx, dword [ecx + 0x60]
aam 0x14
or byte [edi + 0x6b5c42ac], dh
fcos
sbb edi, dword [eax + 0x42]
invalid
daa
jb 0x63e34a
invalid
pop esi
Function at 0x402a30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x34
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x12
mov edx, dword [eax]
mov dword [esp + 8], ecx
lea ecx, [ebp - 0x1e]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x48]
sub esp, 0xc
mov edi, eax
call fcn.004078d0
mov dword [eax], 0x40c01a
mov dword [eax + 4], 0x330
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
lea edi, [esi + 4]
mov dword [esp], eax
and edi, 0xfffffffc
mov dword [esp + 4], str.got__lx_n
call fcn.00401d60
mov eax, esi
mov dword [esi], 0
xor edx, edx
mov dword [esi + 0x1fc], 0
sub eax, edi
mov ecx, eax
xor eax, eax
add ecx, 0x200
shr ecx, 2
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x10]
movzx ecx, word [ebp - 0x12]
mov edi, dword [eax]
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x10], 0
mov dword [esp + 4], esi
div ecx
xor edx, edx
mov dword [esp + 0xc], eax
mov eax, 0x200
div ecx
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call dword [edi + 0x3c]
sub esp, 0x14
mov edi, eax
call fcn.004078d0
mov dword [eax], 0x40c01a
mov dword [eax + 4], 0x334
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.got__lx_n
call fcn.00401d60
mov eax, dword [ebx + 0x28]
lea edx, [ebx + 0x20]
mov ecx, dword [ebx]
add eax, 0x200
mov dword [ebx + 0x28], eax
mov dword [esp + 0xc], edx
movzx edi, word [ebp - 0x12]
xor edx, edx
mov dword [esp], ebx
div edi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call dword [ecx + 0x1c]
sub esp, 0x10
mov ebx, eax
call fcn.004078d0
mov dword [eax], 0x40c01a
mov dword [eax + 4], 0x338
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], str.got__lx_n
mov dword [esp], eax
call fcn.00401d60
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x402be9
lea eax, [ebp - 0x28]
mov dword [esp], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x200
mov dword [esp + 4], esi
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov ebx, eax
call fcn.004078d0
mov dword [eax], 0x40c01a
mov dword [eax + 4], 0x33d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.WriteFile_failed__error__lu._n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
setne al
mov dword [esp], eax
call fcn.00401d60
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x408f20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 8]
mov dword [esp + 8], eax
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [ebp - 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.004096f0
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
push ebp
mov ebp, esp
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
pop ebp
shl edx, 5
add eax, edx
ret
Function at 0x4019c1
Capabilities:
Contain obfuscated stackstrings
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x94
mov dword [ebp - 0x20], 0x706d6153
mov dword [ebp - 0x1c], 0x5720656c
mov dword [ebp - 0x18], 0x6f646e69
mov dword [ebp - 0x14], 0x6c432077
mov dword [ebp - 0x10], 0x737361
lea edx, [ebp - 0x48]
mov eax, 0
mov ecx, 0xa
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x44], sym.__Z10WindowProcP6HWND__jjl_16
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], 6
lea eax, [ebp - 0x48]
mov dword [esp], eax
call sym._RegisterClassA_4
sub esp, 4
mov dword [esp + 0x2c], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x12c
mov dword [esp + 0x18], 0x258
mov dword [esp + 0x14], 0x80000000
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0xca0000
mov dword [esp + 8], str.Encryption_Alert
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._CreateWindowExA_48
sub esp, 0x30
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401a9f
mov eax, 0
jmp 0x401b31
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._ShowWindow_8
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._UpdateWindow_4
sub esp, 4
mov ecx, 0
mov eax, 0x1c
and eax, 0xfffffffc
mov edx, eax
mov eax, 0
mov dword [ebp + eax - 0x64], ecx
add eax, 4
cmp eax, edx
jb 0x401ad6
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0x64]
mov dword [esp], eax
call sym._GetMessageA_16
sub esp, 0x10
test eax, eax
setne al
test al, al
je 0x401b2e
lea eax, [ebp - 0x64]
mov dword [esp], eax
call sym._TranslateMessage_4
sub esp, 4
lea eax, [ebp - 0x64]
mov dword [esp], eax
call sym._DispatchMessageA_4
sub esp, 4
jmp 0x401ae1
mov eax, dword [ebp - 0x5c]
mov edi, dword [ebp - 4]
leave
ret 0x10
Function at 0x4042f0
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call sym.___main
call sym._GetCommandLineA_0
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym._GetStartupInfoA_4
sub esp, 4
test ebx, ebx
jne 0x404326
jmp 0x40435e
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x404323
cmp al, 9
je 0x404323
cmp al, 0x22
jne 0x404347
jmp 0x4043a6
cmp al, 9
je 0x404353
add ebx, 1
movzx eax, byte [ebx]
test al, 0xdf
jne 0x404340
jmp 0x404353
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x404350
cmp al, 9
je 0x404350
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x40436d
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
test al, al
je 0x4043b2
mov edx, ebx
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x22
jne 0x4043a2
cmp al, 0x22
jne 0x404353
lea ebx, [edx + 2]
jmp 0x404353
Function at 0x402e88
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404b08
test esi, esi
jne 0x402ebf
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.00404bf8
jmp 0x402ee0
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d24
mov dword [esp], eax
test esi, esi
je 0x402ee0
cmp dword [ebx], 0
je 0x402ee0
dec esi
jmp 0x402ec7
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403b44
Capabilities:
Query or enumerate registry value

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

Function at 0x4048e0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b9048], 0
je 0x404941
cmp word [0x4b921c], 0xd7b2
jne 0x404909
cmp dword [0x4b9224], 0
jbe 0x404909
mov eax, 0x4b9218
call dword [0x4b9234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4b3070
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 0x404968
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b3030], 0
jne 0x40495d
push 0
push 0x4b3068
push 0x4b3070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404abc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402ac4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4b9049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404a84
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406aec
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 0x406b52
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.00404d78
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004036d8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406b3c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406b59
lea eax, [ebp - 0x10]
call fcn.00404b08
ret

Function at 0x40c770
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 0x40c7a9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404bf8
jmp 0x40c7b2
mov eax, ebx
mov edx, esi
call fcn.00404b5c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40cfc0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ce28
mov eax, dword [0x4b8de0]
cmp byte [eax], 0
je 0x40d03c
mov eax, dword [0x4b8a38]
call fcn.00403300
call fcn.00402c50
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.00409b70
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 0x40d084
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d072
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4b8998]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b9664]
call fcn.00405f58
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 0x40d8e0
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 0x40d9b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404ba0
lea eax, [ebp - 8]
call fcn.00405018
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404fc8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d9a0
mov eax, ebx
call fcn.00402ac4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d999
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.00404fc8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d983
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d9c8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d983
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 0x40d9a0
mov eax, dword [ebp - 0x10]
call fcn.00402af4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d9bd
lea eax, [ebp - 8]
call fcn.00404b08
ret

Function at 0x40dfdc
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 0x40e040
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.00404d78
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409424
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e047
lea eax, [ebp - 0xc]
call fcn.00404b08
ret

Function at 0x4206b4
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0042050c
dec esi
jne 0x4206d6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x421830
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x4b9888
cmp dword [esi], 0
jne 0x4218d6
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x4b9884]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x4b3474
mov ecx, 2
call fcn.00402ce4
mov edx, 0x421808
mov eax, dword [ebp - 8]
add eax, 5
call fcn.00421828
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.00421828
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x42189d
mov eax, dword [ebp - 8]
mov dword [0x4b9884], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x422e6c
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 0x422e72
ret

Function at 0x42543c
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 0x42548d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x425474
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x425464
jmp 0x42548d
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 0x425475
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432050
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404fb8
xor eax, eax
push ebp
push 0x432180
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x432153
xor eax, eax
push ebp
push 0x43214c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404dc8
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x432121
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x432110
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404dc8
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404fc8
mov edx, dword [ebp - 0xc]
pop ecx
call fcn.00402ce4
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 0x432117
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4b88c0]
mov dl, 1
mov eax, dword [0x408004]
call fcn.0040d144
call fcn.00404478
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x432187
lea eax, [ebp - 4]
call fcn.00404b08
ret