joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c010
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [0x41e3e0]
sub esp, 0x14
mov dword [0x420c64], eax
mov dword [0x420c60], eax
mov eax, dword [0x4230a0]
push ebx
push ebp
push esi
push edi
xor edi, edi
push str.Loading_ASCII_Hex_HEX_File
push edi
push 0x401
push eax
xor esi, esi
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.0040ba70
mov ebx, dword [0x422fb8]
inc ebx
inc esi
cmp eax, edi
mov dword [0x422fb8], ebx
jl 0x40c064
cmp eax, 1
je 0x40c075
cmp eax, 0x12
je 0x40c075
jmp 0x40c041
mov dword [esp + 0x10], esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x10], esi
mov byte [0x421880], al
mov dword [0x41f948], edi
mov dword [esp + 0x14], edi
mov dword [0x41fa3c], edi
push 0x1b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x40c253
call fcn.0040ba70
mov ecx, dword [0x422fb8]
mov ebx, eax
inc ecx
test ebx, ebx
mov dword [0x422fb8], ecx
jl 0x40c279
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00413220
add esp, 4
cmp ebx, 0x24
jne 0x40c14c
call fcn.0040ba70
mov esi, dword [0x422fb8]
mov edx, dword [esp + 0x10]
inc esi
inc edx
cmp eax, 0x41
mov dword [0x422fb8], esi
mov dword [esp + 0x10], edx
jne 0x40c124
xor esi, esi
call fcn.0040ba70
mov edx, dword [esp + 0x10]
inc edx
cmp eax, 0x2c
mov dword [esp + 0x10], edx
je 0x40c110
mov byte [esp + esi + 0x18], al
inc esi
cmp esi, 4
jl 0x40c0f3
lea edx, [esp + 0x18]
push edx
call fcn.004133e0
add esp, 4
mov edi, eax
jmp 0x40c092
cmp eax, 0x53
jne 0x40c092
xor esi, esi
inc dword [esp + 0x10]
call fcn.0040ba70
cmp eax, 0x2c
je 0x40c092
inc esi
cmp esi, 4
jl 0x40c12f
jmp 0x40c092
cmp ebx, 0x14
je 0x40c253
cmp ebx, 3
je 0x40c253
cmp dword [0x41eedc], 1
jle 0x40c177
push 0x80
push ebx
call fcn.004160a2
add esp, 8
jmp 0x40c184
mov eax, dword [str.________________________________H]
mov al, byte [eax + ebx*2]
and eax, 0x80
test eax, eax
je 0x40c092
mov eax, dword [esp + 0x14]
mov byte [esp + eax + 0x18], bl
inc eax
cmp eax, 2
mov dword [esp + 0x14], eax
jl 0x40c092
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a], 0
push ecx
call fcn.00413350
add esp, 4
and eax, 0xffff
inc edi
mov dword [esp + 0x14], 0
cmp edi, ebp
jb 0x40c092
cmp edi, dword [esp + 0x30]
ja 0x40c092
mov ecx, dword [0x41f820]
test ecx, ecx
jne 0x40c1ff
mov edx, dword [0x422f50]
mov esi, dword [0x41fa3c]
mov ecx, dword [0x41f948]
sub edx, ebp
add edx, esi
add edx, ecx
mov ecx, dword [esp + 0x34]
mov byte [edx + ecx], al
jmp 0x40c20b
mov edx, dword [0x41f948]
mov byte [edx + 0x421e40], al
mov eax, dword [0x41f948]
inc eax
cmp eax, 0x20
mov dword [0x41f948], eax
jne 0x40c092
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [0x41fa3c]
sub eax, ebp
add eax, edx
push eax
call fcn.004152f0
mov ecx, dword [0x41f948]
add esp, 8
add ecx, edi
mov dword [0x41f948], 0
mov dword [0x41fa3c], ecx
jmp 0x40c092
mov eax, dword [0x41f948]
cmp eax, 0x20
je 0x40c279
test eax, eax
je 0x40c279
mov edx, dword [0x41fa3c]
mov esi, dword [esp + 0x34]
sub edx, ebp
push eax
add edx, esi
push edx
call fcn.004152f0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret
Function at 0x40c740
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x204
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x422f78], eax
jne 0x40c78d
mov ecx, dword [esp + 0x208]
push 0x10
push 0
push str.Error_filename_specified.
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0x204
ret
push ebx
push ebp
push esi
push edi
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
mov dword [0x422e5c], eax
call dword [sym.imp.USER32.dll_SetCursor]
mov edx, dword [0x4230a0]
push str.Saving_buffer_to_file_now_
push 0
push 0x401
push edx
mov dword [0x422ffc], eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [esp + 0x224]
mov edi, dword [esp + 0x220]
mov ecx, dword [esp + 0x218]
mov eax, ebx
sub eax, edi
push ecx
inc eax
mov dword [0x422fb8], 0
mov dword [0x422ff4], eax
call fcn.00413220
add esp, 4
mov ebp, 0x200
push 0x200
push edi
call fcn.00415270
mov ecx, dword [0x41f820]
mov eax, dword [0x422f50]
add esp, 8
xor esi, esi
cmp edi, ebx
ja 0x40c83b
test ecx, ecx
jne 0x40c827
mov dl, byte [eax + edi]
jmp 0x40c82d
mov dl, byte [esi + 0x421e40]
mov byte [esp + esi + 0x14], dl
inc edi
inc esi
cmp esi, 0x200
jl 0x40c81a
mov edx, dword [0x422f78]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x1c]
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x200
jl 0x40c87b
mov eax, dword [esp + 0x218]
mov dword [0x422fb8], ebp
push eax
add ebp, 0x200
call fcn.00413220
add esp, 4
jmp 0x40c7ff
mov ecx, dword [0x422f78]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x218]
mov edx, dword [0x422ff4]
push eax
mov dword [0x422fb8], edx
call fcn.00413220
add esp, 4
call fcn.00413300
mov ecx, dword [0x422ffc]
push ecx
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x204
ret
Function at 0x414910
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x41ec74]
push ebx
push ebp
xor ebx, ebx
push esi
cmp eax, 0xffffffff
push edi
mov dword [esp + 0x10], ebx
je 0x41497b
mov eax, dword [esp + 0x1c]
and eax, 0xffff
inc eax
cmp eax, ebx
mov dword [esp + 0x14], eax
jle 0x41497b
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, 1
xor esi, esi
mov eax, dword [0x41ec74]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x24]
push ebp
push edx
push eax
call edi
cmp dword [esp + 0x10], ebp
je 0x414986
inc esi
cmp esi, 0xfffffff
jb 0x414946
mov eax, dword [esp + 0x14]
inc ebx
mov ecx, ebx
and ecx, 0xffff
cmp ecx, eax
jl 0x414944
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 8
ret
movzx ax, byte [esp + 0x1c]
pop edi
pop esi
pop ebp
or ah, 1
pop ebx
add esp, 8
ret

Function at 0x4149a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [0x41ec74]
sub esp, 8
cmp eax, 0xffffffff
push ebx
push esi
push edi
jne 0x4149bc
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x10]
push 0
push ecx
push 2
push 0x41ec80
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor esi, esi
mov ecx, dword [0x41ec74]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x16]
push 1
push eax
push ecx
call edi
cmp dword [esp + 0x10], 1
je 0x414a0e
inc esi
cmp esi, 0x61a80
jb 0x4149db
pop edi
pop esi
mov eax, 2
pop ebx
add esp, 8
ret
cmp byte [esp + 0xe], 0x4f
jne 0x414a02
mov dl, byte [esp + 0x18]
lea eax, [esp + 0x10]
push 0
mov byte [esp + 0x12], dl
mov edx, dword [0x41ec74]
push eax
lea ecx, [esp + 0x16]
push 1
push ecx
push edx
call ebx
mov eax, dword [esp + 0x10]
pop edi
dec eax
pop esi
neg eax
sbb eax, eax
pop ebx
and eax, 3
add esp, 8
ret

Function at 0x415b70
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
call ebx
mov edi, dword [esp + 0x10]
mov esi, eax
call ebx
cmp eax, esi
jb 0x415b97
mov ecx, edi
sub eax, esi
and ecx, 0xffff
cmp eax, ecx
jae 0x415ba8
jmp 0x415b81
mov edx, edi
sub eax, esi
and edx, 0xffff
dec eax
add edx, esi
cmp eax, edx
jb 0x415b81
pop edi
pop esi
pop ebx
ret
Function at 0x4185f1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41efb0
cmp edx, dword [eax]
je 0x418613
add eax, 8
inc ecx
cmp eax, 0x41f040
jl 0x418604
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41efb0]
jne 0x418741
mov eax, dword [0x41fa88]
cmp eax, 1
je 0x41871b
test eax, eax
jne 0x418644
cmp dword [0x41eeec], 1
je 0x41871b
cmp edx, 0xfc
je 0x418741
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41867b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004192d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00416d10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4186be
lea eax, [ebp - 0x1a4]
push eax
call fcn.00416d10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41b654
push edi
call fcn.0041a050
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004192d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004192e0
lea eax, [ebp - 0xa0]
push 0x41b634
push eax
call fcn.004192e0
push dword [esi + 0x41efb4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004192e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00419fbe
add esp, 0x2c
pop edi
jmp 0x418741
lea eax, [ebp + 8]
lea esi, [esi + 0x41efb4]
push 0
push eax
push dword [esi]
call fcn.00416d10
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 0x4034a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x414040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x228
lea eax, [ebp - 0x32c]
mov ebx, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x330], 0x22c
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x403593
lea eax, [ebp - 0x330]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x403593
push 0xff
lea eax, [ebp - 0x30c]
push eax
push 0xff
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs_s]
add esp, 0x14
lea eax, [ebp - 0x104]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4035a7
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x330]
push eax
push esi
call edi
test eax, eax
je 0x403593
nop dword [eax]
push 0xff
lea eax, [ebp - 0x30c]
push eax
push 0xff
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs_s]
add esp, 0x14
lea eax, [ebp - 0x104]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4035a7
lea eax, [ebp - 0x330]
push eax
push esi
call edi
test eax, eax
jne 0x403550
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406cab
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x328]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00406cab
mov esp, ebp
pop ebp
ret
Function at 0x403cd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x403cfc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x403d24
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x403d2a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x403d92
jg 0x403d41
test esi, esi
je 0x403d92
test ecx, ecx
jl 0x403d8d
jg 0x403d4b
test eax, eax
je 0x403d8d
cmp edi, ecx
jg 0x403d5f
jl 0x403d55
cmp esi, eax
jae 0x403d5f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x403d95
mov ecx, dword [ebp + 8]
jmp 0x403d9f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x403db9
jg 0x403d9f
test esi, esi
je 0x403db9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x403db9
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403dd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x403dfc
jl 0x403df0
test ecx, ecx
jne 0x403dfc
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x403e15
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x403e63
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x403e69
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x403e69
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x403ed6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x403e92
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x403ec4
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x403ed6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x403ea0
test edi, edi
je 0x403ed6
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404260
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x414040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x404290
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406cab
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4042cc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4042cc
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406cab
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4043a3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4042f4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x404300
movsx eax, bl
jmp 0x404338
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x404362
sub eax, 1
je 0x404362
sub eax, 2
jne 0x4043a3
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406cab
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x404380
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4043a3
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406cab
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406cab
mov esp, ebp
pop ebp
ret 4
Function at 0x4048a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x414040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40495c
cmp byte [esi + 0x3d], 0
je 0x40495c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40494a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x404911
sub eax, 1
je 0x404915
sub eax, 2
jne 0x40494a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406cab
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x404933
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x40494a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406cab
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406cab
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00406cab
mov esp, ebp
pop ebp
ret

Function at 0x406799
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x4067c0
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x4067c3
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00406775
pop esi
leave
ret 8

Function at 0x407614
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407653
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407653
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407653
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407653
cmp dword [ecx + 0x74], 0xe
jbe 0x407653
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..data
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408f6c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x297d208a
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data_1
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x7453593f
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
mov ecx, 0x49ad73f9
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x5b897a07
nop
nop
nop
nop
test eax, eax
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x7e494d46
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x7f3d7e1c
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219