joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x404dac
Capabilities:
Encode data using xor

Disassembly:
mov edi, edx
dec edi
mov ecx, dword [edi + 1]
xor ecx, esi
mov dword [ebx], ecx
add edx, 4
add ebx, 4
mov ecx, 0x176f3401
pop ss
pop ss
shr ecx, 7
xor ecx, 0x6e8893
xor ecx, edx
mov edi, 0x278498c3
mov eax, 0xd87b673c
xor edi, eax
test ecx, edi
jne 0x404d91
ret

Function at 0x4051fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405235
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40523e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405248
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405269
mov al, byte [esp]
jmp 0x40526b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4069dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406c2c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406cba
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c77
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x406ca4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c8b
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406c9a
lea edx, [ebp - 4]
call fcn.00406af0
test ebx, ebx
je 0x406c9a
dec ebx
jmp 0x406c7c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cc1
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406cc8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404dd0
add esp, 0x104
pop ebx
ret
Function at 0x406840
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
or dword [ebp + 0x6b5d10], 0x8758bc1
push esi
push edi
mov eax, dword [ebx + 4]
adc edi, eax
dec dword [edi]
test byte [ebx + 1], ah
add byte [eax], al
mov esp, dword [edx - 0x56928df0]
test byte [eax], cl
add dword [eax], eax
add byte [ebx + 0x4e8b0c75], cl
adc al, 0x8d
push esi
sub byte [ecx + 0x52], dl
push eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x4069b8
mov esp, dword [edx]
fdivr st(7)
inc eax
add bh, bh
salc
test eax, eax
in eax, 0x29
stc
add byte [eax], al
add bh, bh
syscall
cmp ah, 0x59
xor eax, 0xb234f3d
add byte [edi], cl
test dword [ecx + 1], edx
add byte [eax], al
mov ecx, dword [ecx + 0x24738b20]
mov eax, edi
or eax, esi
jne 0x4068bd
pop edi
stosb byte es:[edi], al
cmp al, 0xb4
and ecx, dword [ebx]
add byte [ebx - 0x75], bl
in eax, 0x5d
ret 8
jno 0x406902
idiv byte [ecx + 1]
test esi, esi
mov dword [edx], edx
invalid
mov dword [ebp + 0x5a], eax
retf
pop ds
invalid
mov edi, dword [eax]
adc byte [ecx - 0x7c99eb8d], cl
js 0x4069ec
add byte [edx + 0x2c43ba33], ch
add dword [eax], eax
rol dword [eax], cl
mov ecx, dword [eax + 0x18]
mov esi, dword [eax + 0x20]
mov edi, 0x41042c
xor ecx, dword [ebp - 0xd]
cmpsb byte [esi], byte es:[edi]
jne 0x40698a
pop edi
mov dword [ebx + 0x30], 0xb7a10001
pop esi
xor eax, eax
test dword [ebx + 0x4c25de5], 0x7505b808
fiadd word [eax]
pop edi
sub al, 0x5b
fsubr st(5), st(0)
pop ebp
ret 0xa3
ret 0x804

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x3bd009c4
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x70c97c53
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x10002660
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x244
mov eax, dword [0x1000d014]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
lea eax, [esi + 0x1c]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
push dword [esi + 0x18]
call dword [sym.imp.mfc140u.dll_CDC::FromHandle]
mov ebx, eax
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x38]
push 0x104
push eax
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
mov ecx, edi
call dword [sym.imp.mfc140u.dll_CBitmapButton::DrawItem]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
lea eax, [edx + 0x18]
push eax
lea eax, [ecx + 0x4b]
push eax
push edx
push ecx
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebx]
mov ecx, ebx
push dword [edi + 0xa0]
call dword [eax + 0x38]
push 0
push 0
push 0x31
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call dword [sym.imp.mfc140u.dll_CGdiObject::FromHandle]
mov edx, dword [ebx]
mov ecx, ebx
push eax
call dword [edx + 0x30]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x10]
push ecx
push eax
lea eax, [esp + 0x40]
push eax
push dword [ebx + 8]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x30]
add eax, dword [esp + 0x28]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x10]
cdq
sub eax, edx
sar esi, 1
sar eax, 1
sub esi, eax
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x34]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov eax, dword [esp + 0x14]
cdq
sub eax, edx
sar eax, 1
sub edi, eax
test byte [esp + 0x18], 1
je 0x10002772
inc esi
inc edi
push 1
mov ecx, ebx
call dword [sym.imp.mfc140u.dll_CDC::SetBkMode]
test byte [esp + 0x18], 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x38]
je 0x10002793
push 0x22
jmp 0x10002795
push 2
push ecx
mov ecx, dword [esp + 0x18]
push ecx
push edi
push esi
push 0
push eax
push 0
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DrawStateW]
mov eax, dword [ebx]
mov ecx, ebx
push dword [esp + 0x1c]
call dword [eax + 0x30]
push dword [esp + 0x20]
mov ecx, ebx
call dword [sym.imp.mfc140u.dll_CDC::SetBkMode]
mov eax, dword [ebx]
mov ecx, ebx
push dword [esp + 0x24]
call dword [eax + 0x28]
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10003710
mov esp, ebp
pop ebp
ret 4
Function at 0x1253058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x12531a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x125307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x125306a
add dl, dl
jne 0x1253089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x12530dc
xor eax, eax
add dl, dl
jne 0x1253096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x125317d
add dl, dl
jne 0x12530a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12530b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12530bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12530c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x12530d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1253075
mov eax, 1
add dl, dl
jne 0x12530ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12530f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x12530e1
sub eax, ebx
mov ebx, 1
jne 0x1253128
mov ecx, 1
add dl, dl
jne 0x125310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1253119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1253105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1253075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x125313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x125314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1253136
cmp eax, 0x7d00
jae 0x125316d
cmp eax, 0x500
jb 0x1253168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1253075
cmp eax, 0x7f
ja 0x1253170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1253075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x125319e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1253075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4021bd
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
pushal
call dword [sym.imp.kernel32.dll_GetProcessHeap]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0x1000
push 8
push dword [ebp - 0x10]
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov esi, eax
xor ebx, ebx
lodsb al, byte [esi]
or al, al
je 0x402258
cmp al, 0x22
je 0x40223b
cmp ebx, 1
je 0x402210
cmp al, 0x20
je 0x40221a
cmp al, 9
je 0x40221a
stosb byte es:[edi], al
mov dword [ebp - 4], 1
jmp 0x4021fa
mov al, 0
stosb byte es:[edi], al
inc dword [ebp - 8]
mov dword [ebp - 4], 0
lodsb al, byte [esi]
or al, al
je 0x402258
cmp al, 0x22
je 0x40223f
cmp al, 0x20
je 0x402227
cmp al, 9
je 0x402227
dec esi
jmp 0x4021fa
or ebx, ebx
jne 0x40224d
cmp dword [ebp + 0xc], 1
jne 0x402246
stosb byte es:[edi], al
mov ebx, 1
jmp 0x4021fa
cmp dword [ebp + 0xc], 1
jne 0x402254
stosb byte es:[edi], al
xor ebx, ebx
jmp 0x40221a
xor eax, eax
stosw word es:[edi], ax
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
mov ecx, edi
sub ecx, dword [ebp - 0xc]
push ecx
push ecx
push 8
push dword [ebp - 0x10]
call dword [sym.imp.kernel32.dll_HeapAlloc]
pop ecx
mov edi, eax
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword [eax + 8], edi
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0xc]
push 0
push dword [ebp - 0x10]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov dword [eax], ebx
mov eax, dword [ebp - 8]
shl eax, 2
push eax
push 8
push dword [ebp - 0x10]
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [eax + 4], edi
mov esi, dword [eax + 8]
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
or eax, eax
je 0x4022ca
mov dword [edi], esi
add edi, 4
add esi, eax
inc esi
jmp 0x4022b5
popal
leave
ret 8
Function at 0x402481
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov al, pe_nt_image_headers32
xor edx, edx
movsb byte es:[edi], byte [esi]
mov ebx, 3
add al, al
jne 0x40249c
lodsb al, byte [esi]
adc al, al
jae 0x40248f
add al, al
jne 0x4024a5
lodsb al, byte [esi]
adc al, al
jb 0x402500
call fcn.004024ea
sub ecx, ebx
jae 0x4024b7
call fcn.004024ea
jmp 0x4024de
mov edx, ecx
shl edx, 8
mov dl, byte [esi]
inc esi
call fcn.004024ea
cmp edx, 0x7d00
jae 0x4024dc
cmp edx, 0x500
jae 0x4024dd
cmp edx, 0x80
jae 0x4024de
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, edx
rep movsb byte es:[edi], byte [esi]
pop esi
mov bl, 2
jmp 0x402495
xor ecx, ecx
add al, al
jne 0x402509
lodsb al, byte [esi]
adc al, al
jb 0x402518
movzx edx, byte [esi]
inc esi
inc ecx
shr dl, 1
je 0x40254d
adc ecx, ecx
jmp 0x4024de
add al, al
jne 0x40251f
lodsb al, byte [esi]
adc al, al
adc ecx, ecx
add al, al
jne 0x402528
lodsb al, byte [esi]
adc al, al
adc ecx, ecx
add al, al
jne 0x402531
lodsb al, byte [esi]
adc al, al
adc ecx, ecx
add al, al
jne 0x40253a
lodsb al, byte [esi]
adc al, al
adc ecx, ecx
xchg ecx, eax
je 0x402545
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
stosb byte es:[edi], al
mov eax, ecx
jmp 0x402490
sub edi, dword [ebp + 0xc]
mov dword [esp + 0x1c], edi
popal
leave
ret 8
Function at 0x54da30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf7000]
push edi
jmp 0x54da4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x54da51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54da40
mov eax, 1
add ebx, ebx
jne 0x54da63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x54da74
jne 0x54da93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54da93
dec eax
add ebx, ebx
jne 0x54da80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x54da58
add ebx, ebx
jne 0x54da8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x54dae5
xor ecx, ecx
sub eax, 3
jb 0x54daab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x54db1a
sar eax, 1
mov ebp, eax
jmp 0x54dab6
add ebx, ebx
jne 0x54dab6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54da84
inc ecx
add ebx, ebx
jne 0x54dac4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54da84
add ebx, ebx
jne 0x54dad1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x54dac6
jne 0x54dae2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x54dac6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x54db04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x54daf6
jmp 0x54da46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x54db04
add edi, ecx
jmp 0x54da46
pop esi
mov edi, esi
mov ecx, 0x3ed3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x54db22
cmp byte [edi], 0x11
jne 0x54db22
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 0x54db27
lea edi, [esi + 0x146000]
mov eax, dword [edi]
or eax, eax
je 0x54db9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1c1da8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1c1f24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x54db54
mov ecx, edi
jns 0x54db83
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 + 0x1c1f28]
or eax, eax
je 0x54db99
mov dword [ebx], eax
add ebx, 4
jmp 0x54db71
call dword [esi + 0x1c1f38]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x54dbd0
cmp al, 0xef
ja 0x54dbc3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x54dba5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x54dbb2
mov ebp, dword [esi + 0x1c1f2c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x54dc04
sub esp, 0xffffff80
jmp 0x427dcd
Function at 0x402a44
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.0040400c
test esi, esi
jne 0x402a7a
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.004040fc
jmp 0x402a98
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402958
mov edi, eax
test esi, esi
je 0x402a98
cmp dword [ebx], 0
je 0x402a98
dec esi
jmp 0x402a81
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40312c
Capabilities:
Query or enumerate registry value

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

Function at 0x403e90
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46a04c], 0
je 0x403ef1
cmp word [0x46a220], 0xd7b2
jne 0x403eb9
cmp dword [0x46a228], 0
jbe 0x403eb9
mov eax, 0x46a21c
call dword [0x46a238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46806c
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 0x403f18
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x468030], 0
jne 0x403f0d
push 0
push 0x468064
push 0x46806c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40554c
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 0x40577c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4055cf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40577c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4055cf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405798
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405658
xor eax, eax
push ebp
push 0x405651
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405394
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 0x405636
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4057b8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405636
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 0x405658
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 0x405772
cmp byte [ebp - 0xd], 0
jne 0x40569f
cmp byte [ebp - 0x12], 0
je 0x405772
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4056b8
dec ebx
cmp byte [ebx], 0x2e
je 0x4056c7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4056b7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405772
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405704
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 0x405772
cmp byte [ebp - 0xd], 0
je 0x405772
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 0x405772
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 0x405e44
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 0x405eaa
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.0040427c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402cf0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405e94
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405eb1
lea eax, [ebp - 0x10]
call fcn.0040400c
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004044cc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40888d
test al, 0x10
jne 0x408891
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b234
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 0x40b26d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040fc
jmp 0x40b276
mov eax, ebx
mov edx, esi
call fcn.00404060
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b928
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b7a0
mov eax, dword [0x469248]
cmp byte [eax], 0
je 0x40b9a4
mov eax, dword [0x46903c]
call fcn.00402b5c
call fcn.00402884
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.00408a60
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 0x40b9ec
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b9da
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x468fe8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46a668]
call fcn.00405358
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