joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004714
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100bb98]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x1004760
call esi
mov edi, eax
cmp edi, ebx
je 0x1004746
mov dword [0x100bb98], 1
jmp 0x1004765
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100475b
push 2
pop eax
mov dword [0x100bb98], eax
jmp 0x1004760
mov eax, dword [0x100bb98]
cmp eax, 1
jne 0x10047dd
cmp edi, ebx
jne 0x1004771
call esi
mov edi, eax
cmp edi, ebx
je 0x10047e6
cmp word [edi], bx
mov eax, edi
je 0x1004786
inc eax
inc eax
cmp word [eax], bx
jne 0x1004778
inc eax
inc eax
cmp word [eax], bx
jne 0x1004778
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x10047d4
push eax
call fcn.0100637c
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x10047d4
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x10047d1
push dword [ebp - 4]
call fcn.010062b7
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1004835
cmp eax, 2
je 0x10047ea
cmp eax, ebx
je 0x10047ea
xor eax, eax
jmp 0x1004837
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x10047e6
cmp byte [esi], bl
je 0x1004807
inc eax
cmp byte [eax], bl
jne 0x10047fd
inc eax
cmp byte [eax], bl
jne 0x10047fd
sub eax, esi
inc eax
mov edi, eax
push edi
call fcn.0100637c
cmp eax, ebx
pop ecx
je 0x100482e
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1005c48
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x100bbac], ebx
push esi
push edi
jne 0x1005cca
push 0x100190c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1005d05
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001900
push edi
call esi
test eax, eax
mov dword [0x100bbac], eax
je 0x1005d05
push 0x10018f0
push edi
call esi
push 0x10018dc
push edi
mov dword [0x100bbb0], eax
call esi
cmp dword [0x100ba44], 2
mov dword [0x100bbb4], eax
jne 0x1005cca
push 0x10018c0
push edi
call esi
test eax, eax
mov dword [0x100bbbc], eax
je 0x1005cca
push 0x10018a8
push edi
call esi
mov dword [0x100bbb8], eax
mov eax, dword [0x100bbb8]
test eax, eax
je 0x1005d0f
call eax
test eax, eax
je 0x1005cf6
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x100bbbc]
test eax, eax
je 0x1005cf6
test byte [ebp - 8], 1
jne 0x1005d0f
cmp dword [0x100ba50], 4
jb 0x1005d09
or byte [ebp + 0x12], 0x20
jmp 0x1005d2e
xor eax, eax
jmp 0x1005d3e
or byte [ebp + 0x12], 4
jmp 0x1005d2e
mov eax, dword [0x100bbb0]
test eax, eax
je 0x1005d2e
call eax
mov ebx, eax
test ebx, ebx
je 0x1005d2e
mov eax, dword [0x100bbb4]
test eax, eax
je 0x1005d2e
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x100bbac]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1006d26
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x1006d57
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x1006d5e
cmp ebx, dword [ebp + 8]
jae 0x1006d5e
xor eax, eax
jmp 0x1006f4e
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x1006d6f
xor eax, eax
inc eax
jmp 0x1006f4d
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1006d85
cmp ecx, edx
jae 0x1006eca
cmp dword [eax + 4], 0
je 0x1006d8e
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x1006d76
cmp dword [ebp + 8], 0
je 0x1006db0
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x1006eca
cmp eax, esi
jae 0x1006eca
mov eax, dword [0x100bbc8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x1006dd5
cmp dword [esi*4 + 0x100bbd0], edi
je 0x1006ece
inc esi
cmp esi, eax
jl 0x1006dc3
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1006f4a
cmp dword [ebp - 8], 0x1000000
jne 0x1006f4a
test byte [ebp - 0xc], 0xcc
je 0x1006e53
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x1006f4a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1006f4a
cmp word [eax + 0x18], 0x10b
jne 0x1006f4a
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x1006f4a
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x1006e53
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x1006e53
test byte [ecx + 0x27], 0x80
jne 0x1006eca
push 1
push 0x100bc10
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x1006d67
mov ecx, dword [0x100bbc8]
test ecx, ecx
mov edx, ecx
jle 0x1006e87
lea eax, [ecx*4 + 0x100bbcc]
cmp dword [eax], edi
je 0x1006e87
dec edx
sub eax, 4
test edx, edx
jg 0x1006e7b
test edx, edx
jne 0x1006eb8
push 0xf
pop ebx
cmp ecx, ebx
jg 0x1006e94
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x1006eac
lea eax, [edx*4 + 0x100bbd0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x1006e9a
cmp ecx, 0x10
jge 0x1006eb8
inc ecx
mov dword [0x100bbc8], ecx
push 0
push 0x100bc10
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x1006d67
xor eax, eax
jmp 0x1006f4d
test esi, esi
jle 0x1006d67
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x100bc10
call ebx
test eax, eax
jne 0x1006d67
cmp dword [esi*4 + 0x100bbd0], edi
je 0x1006f24
mov eax, dword [0x100bbc8]
lea esi, [eax - 1]
test esi, esi
jl 0x1006f12
cmp dword [esi*4 + 0x100bbd0], edi
je 0x1006f0e
dec esi
jns 0x1006f02
test esi, esi
jge 0x1006f22
cmp eax, 0x10
jge 0x1006f1d
inc eax
mov dword [0x100bbc8], eax
lea esi, [eax - 1]
jmp 0x1006f24
je 0x1006f3c
xor ecx, ecx
test esi, esi
jl 0x1006f3c
lea eax, [ecx*4 + 0x100bbd0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x1006f2a
push 0
push 0x100bc10
call ebx
jmp 0x1006d67
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1006feb
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x100cfa8]
mov eax, dword [0x100b080]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], edi
jae 0x10071d1
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x100cfc0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x424], ebx
je 0x10071d1
and dword [ebp - 0x414], 0
and dword [ebp - 0x420], 0
cmp dword [ebp + 0x10], 0
jne 0x100705c
xor eax, eax
jmp 0x10071e5
test al, 0x20
je 0x100706f
push 2
push 0
push 0
push ecx
call fcn.01008a5c
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x100712f
and dword [ebp - 0x40c], 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x410], edi
jbe 0x10071ab
mov ecx, dword [ebp - 0x410]
xor edi, edi
sub ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x10070de
mov edx, dword [ebp - 0x410]
inc dword [ebp - 0x410]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x10070cc
inc dword [ebp - 0x420]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x424]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x10070a8
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x418]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100715d
mov eax, dword [ebp - 0x418]
add dword [ebp - 0x414], eax
cmp eax, edi
jl 0x1007169
mov eax, dword [ebp - 0x410]
sub eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0x10]
jb 0x1007094
jmp 0x1007169
push 0
lea ecx, [ebp - 0x418]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100715d
mov eax, dword [ebp - 0x418]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x414], eax
jmp 0x1007169
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x10071c9
cmp dword [ebp - 0x40c], eax
je 0x10071a5
push 5
pop eax
cmp dword [ebp - 0x40c], eax
jne 0x1007197
mov dword [0x100ba38], 9
mov dword [0x100ba3c], eax
jmp 0x10071e2
push dword [ebp - 0x40c]
call fcn.01008926
pop ecx
jmp 0x10071e2
mov edi, dword [ebp - 0x41c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x10071bd
cmp byte [edi], 0x1a
je 0x1007055
mov dword [0x100ba38], 0x1c
jmp 0x10071db
sub eax, dword [ebp - 0x420]
jmp 0x10071e5
mov dword [0x100ba38], 9
and dword [0x100ba3c], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010039ea
leave
ret
Function at 0x1009a23
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.01004bd0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1009a89
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x100ba44]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x1009a8d
xor eax, eax
jmp 0x1009a9a
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401b4b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x401b5a
pop dword [ebp - 0x10]
mov eax, 0x4f3823b
sub eax, 0x4b366e1
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xfed729ca
add dword [ebp - 0x20], 0x4f7b1b81
mov dword [ebp - 0x1c], 0x80e4f4da
add dword [ebp - 0x1c], 0xb14e576b
mov dword [ebp - 0x18], 0x9f1c92b4
sub dword [ebp - 0x18], 0x52d04e86
mov dword [ebp - 0x14], 0x588b56a0
add dword [ebp - 0x14], 0xa774a960
lea eax, [ebp - 0x20]
push eax
mov eax, 0x906095f7
add eax, 0x6fe03a5d
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xd670f76c
sub dword [ebp - 0x20], 0x61fe8e16
mov dword [ebp - 0x1c], 0x8914c30b
add dword [ebp - 0x1c], 0xb8579e6a
mov dword [ebp - 0x18], 0x1c988f8b
add dword [ebp - 0x18], 0x46d6dce1
mov dword [ebp - 0x14], 0x9a90e8e7
sub dword [ebp - 0x14], 0x9a90e8e7
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x230d7d55
add eax, 0xdd3352f7
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3bab1
push 0
call eax
mov ecx, 0x5461e548
sub ecx, 0x5461956a
xor edx, edx
add edx, eax
mov ebx, 0x9362b10a
add ebx, 0x6cdefef6
add ebx, dword [ebp - 0x10]
mov edi, 0x43b2555b
add edi, 0xc3fa094e
xor dword [ebp - 0xc], 0xb1377e09
mov esi, dword [ebx]
xor dword [ebp - 4], 0x7c24472f
xor esi, edi
sub dword [ebp - 8], 0x28b2b5bb
mov dword [edx], esi
sub dword [ebp - 8], 0x134f809c
add edx, 0xea334b08
add edx, 0x15ccb4fc
add ebx, 0x8cdb41e4
sub ebx, 0x8cdb41e0
loop 0x401c7e
add eax, 0x7c328baa
sub eax, 0x7c31595f
xor ebx, ebx
add ebx, eax
add eax, 0xe509c011
sub eax, 0xe509c00c
mov ecx, 0xb4c99648
sub ecx, 0xb4899648
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402fd0
Capabilities:
Query or enumerate registry value

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

Function at 0x403d34
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46f04c], 0
je 0x403d95
cmp word [0x46f220], 0xd7b2
jne 0x403d5d
cmp dword [0x46f228], 0
jbe 0x403d5d
mov eax, 0x46f21c
call dword [0x46f238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46d06c
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 0x403dbc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46d030], 0
jne 0x403db1
push 0
push 0x46d064
push 0x46d06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405cf8
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 0x405d5e
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.00404140
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b94
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405d48
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d65
lea eax, [ebp - 0x10]
call fcn.00403ed0
ret

Function at 0x40afbc
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 0x40aff5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403fc0
jmp 0x40affe
mov eax, ebx
mov edx, esi
call fcn.00403f24
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b6b0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b528
mov eax, dword [0x46ea6c]
cmp byte [eax], 0
je 0x40b72c
mov eax, dword [0x46e86c]
call fcn.00402a00
call fcn.00402874
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.004087fc
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 0x40b774
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b762
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46e818]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46f668]
call fcn.004051f0
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 0x40c010
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 0x40c0e6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403f68
lea eax, [ebp - 8]
call fcn.004043e0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404390
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c0d0
mov eax, ebx
call fcn.0040270c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c0c9
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.00404390
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c0b3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c0f8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c0b3
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 0x40c0d0
mov eax, dword [ebp - 0x10]
call fcn.0040272c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c0ed
lea eax, [ebp - 8]
call fcn.00403ed0
ret

Function at 0x40c5f0
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 0x40c654
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.00404140
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408324
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c65b
lea eax, [ebp - 0xc]
call fcn.00403ed0
ret

Function at 0x41db38
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46f888
cmp dword [edi], 0
jne 0x41dbb4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x46f884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x46d3fc
mov ecx, 2
call fcn.00402908
mov edx, 0x41db10
lea eax, [esi + 5]
call fcn.0041db30
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041db30
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 0x41db89
mov dword [0x46f884], 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 0x41f148
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 0x41f14e
ret
Function at 0x42b8d4
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42b946
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x42b91a
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.004040c8
jmp 0x42b921
mov eax, ebx
call fcn.00403ed0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b94d
cmp dword [ebp - 8], 0
je 0x42b93d
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x42b954
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x42b9f6
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x42b9c9
mov edx, ebx
mov eax, dword [0x41ec0c]
call fcn.00422e44
test al, al
je 0x42b9b9
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.00422d54
call fcn.00403998
jmp 0x42b9fd
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x42b984
mov ecx, dword [0x46e80c]
mov dl, 1
mov eax, dword [0x407040]
call fcn.0040b834
call fcn.004038ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b9fd
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x42ba04
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x42ba5c
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ba63
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret