joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401460
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x54
mov dword [ebp - 0x10], 0
mov word [ebp - 0x2a], 0
mov word [ebp - 0x28], 0
mov dword [esp], 0xfffffff5
call sym._GetStdHandle_4
sub esp, 4
mov edx, eax
lea eax, [ebp - 0x26]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._GetConsoleScreenBufferInfo_8
sub esp, 8
movzx eax, word [ebp - 0x26]
movsx edx, ax
movzx eax, word [ebp - 0x24]
cwde
imul eax, edx
mov dword [ebp - 0xc], eax
mov dword [esp], 0xfffffff5
call sym._GetStdHandle_4
sub esp, 4
mov edx, eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x2a]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x20
mov dword [esp], edx
call sym._FillConsoleOutputCharacterW_20
sub esp, 0x14
movzx eax, word [ebp - 0x1e]
movzx ebx, ax
mov dword [esp], 0xfffffff5
call sym._GetStdHandle_4
sub esp, 4
mov edx, eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x2a]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], edx
call sym._FillConsoleOutputAttribute_20
sub esp, 0x14
mov dword [esp], 0xfffffff5
call sym._GetStdHandle_4
sub esp, 4
mov edx, eax
mov eax, dword [ebp - 0x2a]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._SetConsoleCursorPosition_8
sub esp, 8
nop
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x40154d
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x40
mov eax, dword [ebp + 0x10]
mov word [ebp - 0x1c], ax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov ebx, eax
mov dword [esp], 0xfffffff5
call sym._GetStdHandle_4
sub esp, 4
mov edx, eax
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._WriteConsoleOutputCharacterA_20
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov esi, eax
movzx ebx, word [ebp - 0x1c]
mov dword [esp], 0xfffffff5
call sym._GetStdHandle_4
sub esp, 4
mov edx, eax
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], edx
call sym._FillConsoleOutputAttribute_20
sub esp, 0x14
nop
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x401ee0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408048
call sym._EnterCriticalSection_4
mov ebx, dword [0x408040]
sub esp, 4
test ebx, ebx
je 0x401f2b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401f24
test esi, esi
je 0x401f24
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401f00
mov dword [esp], 0x408048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402110
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402160
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402238
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40219e
cmp eax, 4
jne 0x4021c0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4021ae
cmp edx, 4
je 0x4021ae
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402110
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x42d050], 1
mov dword [0x42d04c], 1
mov dword [0x42d048], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x42d00c], eax
mov eax, dword [0x42d05c]
test eax, eax
jne 0x4010a0
mov dword [esp], 1
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x42d070]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x42d058]
mov dword [eax], edx
call sym.__setargv
cmp dword [0x429bb4], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 2
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f2
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], sym.__matherr
call sym.___mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x403d74
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
jmp 0x403d99
add dword [ebp - 8], 1
add dword [ebp - 4], 1
cmp dword [ebp - 4], 0x5f5e0ff
jle 0x403d91
cmp dword [ebp - 8], 0x5f5e100
jne 0x403e4c
mov dword [ebp - 0xc], 0
jmp 0x403e3f
mov ecx, dword [ebp - 0xc]
mov edx, 0x92492493
mov eax, ecx
imul edx
lea eax, [edx + ecx]
sar eax, 5
mov edx, ecx
sar edx, 0x1f
sub eax, edx
imul edx, eax, 0x38
mov eax, ecx
sub eax, edx
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
movzx ecx, byte [eax]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
add eax, edx
movzx eax, byte [eax]
xor eax, ecx
mov byte [ebp - 0xd], al
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
add eax, edx
movzx eax, byte [eax]
mov byte [ebp - 0xe], al
movzx edx, byte [ebp - 0xd]
movzx eax, byte [ebp - 0xe]
lea ecx, [edx + eax]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
add eax, edx
mov edx, ecx
mov byte [eax], dl
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
add eax, edx
movzx eax, byte [eax]
mov edx, eax
movzx eax, byte [ebp - 0xe]
mov ecx, edx
sub ecx, eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
add eax, edx
mov edx, ecx
mov byte [eax], dl
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jb 0x403dbb
nop
leave
ret
Function at 0x403e4e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
jmp 0x403e74
add dword [ebp - 0xc], 1
add dword [ebp - 8], 1
cmp dword [ebp - 8], 0x5f5e0ff
jle 0x403e6c
cmp dword [ebp - 0xc], 0x5f5e100
jne 0x403f23
mov dword [ebp - 0x10], 0
jmp 0x403f16
mov ecx, dword [ebp - 0x10]
mov edx, 0x84210843
mov eax, ecx
imul edx
lea eax, [edx + ecx]
sar eax, 4
mov edx, ecx
sar edx, 0x1f
sub eax, edx
mov edx, eax
shl edx, 5
sub edx, eax
mov eax, ecx
sub eax, edx
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
movzx ecx, byte [eax]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
add eax, edx
movzx eax, byte [eax]
xor eax, ecx
mov byte [ebp - 0x11], al
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
add eax, edx
movzx eax, byte [eax]
mov byte [ebp - 0x12], al
movzx ebx, byte [ebp - 0x11]
movzx ecx, byte [ebp - 0x12]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
add eax, edx
lea edx, [ebx + ecx]
mov byte [eax], dl
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
add eax, edx
movzx edx, byte [eax]
movzx ebx, byte [ebp - 0x12]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
add eax, ecx
sub edx, ebx
mov byte [eax], dl
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x10]
jb 0x403e96
nop
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x405940
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x4059a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x42d064]
test esi, esi
jle 0x405ac0
mov edi, dword [0x42d068]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x4059d4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x405a59
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x4059c0
mov dword [esp], eax
mov ebx, eax
call sym.___mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x405ae7
mov eax, dword [0x42d068]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
mov edx, dword [0x42d068]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x405ac7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x405a52
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x405a60
add dword [0x42d064], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x42d068]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x405a52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
lea edi, [edi]
xor esi, esi
jmp 0x4059de
mov eax, dword [0x42d068]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
mov esi, esi
lea edi, [edi]

Function at 0x405fe0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x42d080
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x42d078]
sub esp, 4
test ebx, ebx
je 0x406035
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40602e
test esi, esi
je 0x40602e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x406010
mov dword [esp], 0x42d080
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x417db0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
or ebp, 0xffffffff
jmp 0x417dd2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x417dd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x417dc8
mov eax, 1
add ebx, ebx
jne 0x417deb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x417de0
jne 0x417dfc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417de0
xor ecx, ecx
sub eax, 3
jb 0x417e10
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x417e82
mov ebp, eax
add ebx, ebx
jne 0x417e1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x417e28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x417e4c
inc ecx
add ebx, ebx
jne 0x417e38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x417e2d
jne 0x417e49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417e2d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x417e6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x417e5d
jmp 0x417dce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x417e6c
add edi, ecx
jmp 0x417dce
pop esi
mov edi, esi
mov ecx, 0xca
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x417e8a
cmp byte [edi], 5
jne 0x417e8a
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 0x417e8f
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x417f07
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x177c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17844]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x417ebc
mov ecx, edi
jns 0x417eeb
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 + 0x1784c]
or eax, eax
je 0x417f01
mov dword [ebx], eax
add ebx, 4
jmp 0x417ed9
call dword [esi + 0x17848]
mov ebp, dword [esi + 0x17850]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x417f3b
sub esp, 0xffffff80
jmp 0x40b868
Function at 0x402b90
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.00404e10
test esi, esi
jne 0x402bc6
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.00404f00
jmp 0x402be4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a44
mov edi, eax
test esi, esi
je 0x402be4
cmp dword [ebx], 0
je 0x402be4
dec esi
jmp 0x402bcd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403d6c
Capabilities:
Query or enumerate registry value

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

Function at 0x404bf0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x55f04c], 0
je 0x404c51
cmp word [0x55f220], 0xd7b2
jne 0x404c19
cmp dword [0x55f228], 0
jbe 0x404c19
mov eax, 0x55f21c
call dword [fcn.0055f238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x55709c
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 0x404c78
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x557034], 0
jne 0x404c6d
push 0
push 0x557094
push 0x55709c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404dc4
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.004027fc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x55f04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404d8c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4067b8
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 0x4069e8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40683b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4069e8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40683b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406a04
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4068c4
xor eax, eax
push ebp
push 0x4068bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406600
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 0x4068a2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406a24
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4068a2
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 0x4068c4
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 0x4069de
cmp byte [ebp - 0xd], 0
jne 0x40690b
cmp byte [ebp - 0x12], 0
je 0x4069de
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406924
dec ebx
cmp byte [ebx], 0x2e
je 0x406933
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406923
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4069de
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406970
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 0x4069de
cmp byte [ebp - 0xd], 0
je 0x4069de
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 0x4069de
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 0x4070cc
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 0x407132
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.00405080
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004036c4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40711c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407139
lea eax, [ebp - 0x10]
call fcn.00404e10
ret

Function at 0x40ccb8
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 0x40ccf1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404f00
jmp 0x40ccfa
mov eax, ebx
mov edx, esi
call fcn.00404e64
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40de58
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 0x40df2e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404ea8
lea eax, [ebp - 8]
call fcn.00405320
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004052d0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40df18
mov eax, ebx
call fcn.004027fc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40df11
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.004052d0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40defb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40df40
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40defb
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 0x40df18
mov eax, dword [ebp - 0x10]
call fcn.0040281c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40df35
lea eax, [ebp - 8]
call fcn.00404e10
ret