joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ec10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00457230
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x46ecdb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x46ecdb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x46ec8e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x46ec99
or bh, 8
and edi, 0x8000000
je 0x46ecb4
mov eax, dword [0x5095dc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x46ecdb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46f0b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x46f0db
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x46f0ff
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x46f11a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x470fd0
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x470fea
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x470fea
mov edx, dword [esp + 8]
push edx
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x472bc0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
push eax
push ecx
push 1
call fcn.004745b0
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, esi
jne 0x472bf3
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov eax, 0xf4240
mov dword [edx + 0x258], eax
mov ecx, dword [ebp - 4]
push 0x40
mov dword [ecx + 0x25c], eax
push fcn.0045a544
mov edx, dword [ebp - 4]
push edx
call fcn.00470f70
push esi
push eax
call fcn.0045a5c0
add esp, 0x14
test eax, eax
je 0x472c2f
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push eax
push ecx
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004747d0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00471030
mov edi, dword [ebp + 8]
add esp, 0x20
cmp edi, esi
mov ebx, 0x20000
je 0x472c99
push 0
call fcn.00471760
mov dl, byte [esi + edi]
mov cl, byte [eax + esi]
add esp, 4
cmp dl, cl
je 0x472c87
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x70]
or ecx, ebx
mov dword [eax + 0x70], ecx
push 0
call fcn.00471760
mov al, byte [eax + esi]
add esp, 4
inc esi
test al, al
jne 0x472c68
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x70]
test ebx, eax
je 0x472d11
test edi, edi
je 0x472d0a
mov bl, byte [edi]
push 0
call fcn.00471760
mov cl, byte [eax]
add esp, 4
cmp bl, cl
jne 0x472cdd
cmp bl, 0x31
jne 0x472cd2
push 0
call fcn.00471760
mov dl, byte [edi + 2]
mov cl, byte [eax + 2]
add esp, 4
cmp dl, cl
jne 0x472cdd
cmp byte [edi], 0x30
jne 0x472d11
cmp byte [edi + 2], 0x39
jge 0x472d11
test edi, edi
je 0x472d0a
push 0
call fcn.00471760
push eax
push edi
push str.Application_built_with_libpng__.20s_but_running_with__.20s
lea eax, [ebp - 0x58]
push 0x50
push eax
call fcn.0045ab55
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00470d90
add esp, 0x20
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
mov dword [eax + 0xb4], 0x2000
mov eax, dword [ebp - 8]
test eax, eax
jne 0x472d5f
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xb4]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004747a0
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xb0], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xb0]
test eax, eax
jne 0x472d58
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
test eax, eax
je 0x472d9c
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xb0]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00474750
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x20]
push ecx
mov dword [eax + 0xb0], 0
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00474650
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.00474530
mov edx, dword [ebp - 4]
push edx
call fcn.004732c0
add esp, 0x14
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47fe70
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x47fea0
push esi
call fcn.00480370
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x47fe99
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x47ff23
mov eax, dword [esi + 0x1a0]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x47ff0f
mov eax, dword [esi + 8]
test eax, eax
je 0x47fec4
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1a0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x47ff0b
cmp eax, 2
je 0x47ff0f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47feb7
cmp eax, 3
je 0x47feea
cmp eax, 1
jne 0x47feb7
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x47feb7
mov edx, dword [esi + 0x120]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x47feb7
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0047ff50
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x47ff43
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.0047ff50
add esp, 4
pop esi
ret
Function at 0x4b0a60
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b0a98
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004afa64
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004afa3b
jmp 0x4b0aa4
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b23a5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b23e7
call fcn.004c2202
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x4b23e7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b23de
xor eax, eax
jmp 0x4b23ef
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b23f5
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b9935
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4cb05c
call fcn.00457134
push ecx
push ecx
push esi
push 0x10
call fcn.004afb7a
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
test esi, esi
je 0x4b9982
mov ecx, esi
call fcn.004b4b61
mov eax, dword [0x4fd8e8]
lea ecx, [esi + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [esi], vtable.CArchiveException.0
mov dword [esi + 8], eax
call fcn.004af73d
jmp 0x4b9984
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push 0x4e7d50
push eax
mov dword [ebp - 0x10], esi
call fcn.0045879f
pop esi
Function at 0x4e268f
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, ecx
shr edi, 0x10
and ecx, 0xffff
cmp ebx, 1
jne 0x4e26db
mov eax, dword [ebp + 0xc]
movzx edx, byte [eax]
add ecx, edx
cmp ecx, 0xfff1
jb 0x4e26c0
sub ecx, 0xfff1
add edi, ecx
cmp edi, 0xfff1
jb 0x4e26d0
sub edi, 0xfff1
mov eax, edi
shl eax, 0x10
pop edi
or eax, ecx
pop ebx
pop ebp
ret
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x4e26eb
lea eax, [esi + 1]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp ebx, 0x10
jae 0x4e272a
test ebx, ebx
je 0x4e26ff
movzx eax, byte [esi]
add ecx, eax
inc esi
add edi, ecx
dec ebx
jne 0x4e26f4
cmp ecx, 0xfff1
jb 0x4e270d
sub ecx, 0xfff1
mov eax, 0x80078071
mul edi
shr edx, 0xf
mov eax, edx
shl eax, 4
sub eax, edx
add eax, edi
pop esi
shl eax, 0x10
pop edi
or eax, ecx
pop ebx
pop ebp
ret
cmp ebx, 0x15b0
jb 0x4e2815
mov eax, 0x5e6ea9af
mul ebx
shr edx, 0xb
mov dword [ebp + 8], edx
jmp 0x4e274f
Function at 0x5017cf
Capabilities:
Authenticate hmac

Disassembly:
pop eax
shufps xmm6, xmmword [esi], 0xc2
pushfd
dec esi
adc byte [ecx - 0x62], ah
dec ecx
cld
jecxz 0x501820
pop esi

Function at 0x5017df
Capabilities:
Authenticate hmac

Disassembly:
lds ebp, [eax - 0x4d]
scasd eax, dword es:[edi]
jo 0x501820
and ecx, dword [edx + 0x2c6fc8c1]
adc dword [eax + 6], ebx
ret 0x3a26
sbb dword [ebx], ebx
mov bl, 0x78
pop eax
inc byte [eax - 0x62]
fsub qword [ecx + 0x1d]
mov cl, 0x3d
inc esi
mov byte [0x4ac371cb], al
sbb ecx, dword [edx - 0xee42531]
outsd dx, dword [esi]
popfd
js 0x5017bd
lea ebx, [ebp + 0x5ca8ef5e]
mov dword [0x992fd16e], eax
xchg esp, ebp
aad 0xbf
ret
loopne 0x501861
pop dword [edx + 0x3c]
hlt
inc eax
mov cl, 0x6e
adc al, al
outsd dx, dword [esi]
loope 0x501841
xor byte [edx], 0xcb
invalid
pop es
shr byte [ecx], 1
mov eax, 0xc871fe18
add edx, ebp
enter 0x265e, 0xffffffffffffffee
out 0x89, al
mov dword [ecx - 0x3d], esp
add eax, 0x5f679032
imul edx, dword [eax], 0xffffff90
test eax, 0xcf0e7e84
adc dword [ebp + 0x1b], edi
xchg esi, eax
jno 0x501822
jno 0x50182a
xchg edi, eax
invalid
Function at 0x58c14f
Capabilities:
Encode data using xor

Disassembly:
ret 0x41b0
mov gs, word [ecx + ecx - 0x1d]
or ebx, esp
sub al, 0x94
sub ah, byte [ecx + 0x6744ad56]
xor al, 6
mov dh, 0x9a
push edx
loopne 0x58c0f5
ljmp 0x9843:0x90465073
or eax, 0xe576c43a
dec eax
jnp 0x58c0f7
in eax, 0x4a
test al, 0x75
out 0x69, al
xor ecx, dword [ecx]
mov al, 0x60
scasb al, byte es:[edi]
or cl, bh
mov edx, dword [edx]
jl 0x58c0ef
out dx, eax
lodsb al, byte [esi]
lea ecx, [ecx + 0x34cec517]
mov dword [0xd051c2e8], eax
pop ebx
push edx
ret
Function at 0x62ca5f
Capabilities:
Encode data using xor

Disassembly:
xor byte [ebx + 0xe], 0xe4
cmp byte [ecx + 0x4d], bh
push eax
movsb byte es:[edi], byte [esi]
sub dword [edx + 0x1952aa9d], esp
cld
mov edi, 0x89c2923f
outsd dx, dword [esi]
and al, 0xe
out dx, al
push 0xa78c60d4
push ebx
mov esp, dword [esi + 0x41eebf4a]
push ecx
mov dword ds:[esi], ebp
jne 0x62ca56
outsd dx, dword [esi]
into
push esp
push eax
mov dword [esp + edi], edi
sahf
pop ds
adc dh, 0xbc
xchg byte [ebx - 0x67ac5bb3], dh
pop ecx
mov ebp, 0xa0c388b2
mov dl, byte [eax + 0x58]
and al, 0x8a
salc
mov bl, 0x2c
dec edi
cmp dh, 0x45
out 0xae, al
loop 0x62ca8a
add eax, 0xa3d114f6
dec edx
pop ebx
pop esi
test al, 0x83
enter 0xfffffffffffff2c9, 0x16
mov eax, 0xa5ddc86c
jp 0x62cae9
ret 0x9d86
xor byte [edi], ah
xchg ebx, eax
invalid

Function at 0x6577bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x65f3c8
cmp edx, dword [eax]
je 0x6577df
add eax, 8
inc ecx
cmp eax, 0x65f458
jl 0x6577d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x65f3c8]
jne 0x65790d
mov eax, dword [0xa64d38]
cmp eax, 1
je 0x6578e7
test eax, eax
jne 0x657810
cmp dword [0x65f2f4], 1
je 0x6578e7
cmp edx, 0xfc
je 0x65790d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x657847
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.006581a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00658630
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x65788a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00658630
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65c96c
push edi
call fcn.0065a500
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.006581a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.006581b0
lea eax, [ebp - 0xa0]
push 0x65c94c
push eax
call fcn.006581b0
push dword [esi + 0x65f3cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.006581b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0065a474
add esp, 0x2c
pop edi
jmp 0x65790d
lea eax, [ebp + 8]
lea esi, [esi + 0x65f3cc]
push 0
push eax
push dword [esi]
call fcn.00658630
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 0x402e4c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402ea5
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402ce8
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402ce8
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402e8f
inc ebx
jmp 0x402e78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402eac
lea eax, [ebp - 8]
call fcn.004044f4
ret

Function at 0x402eb4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004044f4
test esi, esi
jne 0x402eeb
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.004045e4
jmp 0x402f0c
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402ce8
mov dword [esp], eax
test esi, esi
je 0x402f0c
cmp dword [ebx], 0
je 0x402f0c
dec esi
jmp 0x402ef3
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4035b8
Capabilities:
Query or enumerate registry value

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

Function at 0x404370
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47004c], 0
je 0x4043d1
cmp word [0x470220], 0xd7b2
jne 0x404399
cmp dword [0x470228], 0
jbe 0x404399
mov eax, 0x47021c
call dword [0x470238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46e06c
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 0x4043f8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46e030], 0
jne 0x4043ed
push 0
push 0x46e064
push 0x46e06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406684
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 0x4066ea
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.00404764
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040317c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4066d4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4066f1
lea eax, [ebp - 0x10]
call fcn.004044f4
ret

Function at 0x40be80
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 0x40beb9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004045e4
jmp 0x40bec2
mov eax, ebx
mov edx, esi
call fcn.00404548
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c584
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c3ec
mov eax, dword [0x46f898]
cmp byte [eax], 0
je 0x40c600
mov eax, dword [0x46f618]
call fcn.00402fac
call fcn.00402c14
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.00409518
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 0x40c648
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c636
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46f5a4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x470668]
call fcn.00405a94
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 0x40cef8
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 0x40cfce
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040458c
lea eax, [ebp - 8]
call fcn.00404a04
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004049b4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cfb8
mov eax, ebx
call fcn.00402a88
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cfb1
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.004049b4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cf9b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cfe0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cf9b
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 0x40cfb8
mov eax, dword [ebp - 0x10]
call fcn.00402ab8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cfd5
lea eax, [ebp - 8]
call fcn.004044f4
ret

Function at 0x40d5ec
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 0x40d650
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.00404764
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408bec
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d657
lea eax, [ebp - 0xc]
call fcn.004044f4
ret

Function at 0x40e488
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.004044f4
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.004049b4
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x40e4cd
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.004045e4
jmp 0x40e4e6
mov edx, ebx
dec edx
mov eax, esi
call fcn.00404b40
push ebx
mov eax, dword [esi]
call fcn.004049b4
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret