joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cb9e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419f20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408d4c
mov dword [ebp - 0x14], eax
cmp dword [0x4ba3bc], esi
jne 0x40cc91
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40cc1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40cd71
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40cd71
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40cd71
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4ba3bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4ba3c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4ba3c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ba3cc], eax
test eax, eax
je 0x40cc8e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ba3c8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40ccb6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40cca9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40cccb
push 4
pop eax
jmp 0x40cd73
cmp dword [ebp - 0x14], esi
je 0x40cccb
push dword [0x4ba3bc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40ccb0
mov eax, dword [0x4ba3c8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40cd29
cmp dword [0x4ba3cc], edi
je 0x40cd29
push eax
call ebx
push dword [0x4ba3cc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40cd29
test eax, eax
je 0x40cd29
call ecx
test eax, eax
je 0x40cd1e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40cd1e
test byte [ebp - 8], 1
jne 0x40cd29
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40cd59
mov eax, dword [0x4ba3c0]
cmp eax, edi
je 0x40cd56
push eax
call ebx
test eax, eax
je 0x40cd56
call eax
mov esi, eax
test esi, esi
je 0x40cd56
mov eax, dword [0x4ba3c4]
cmp eax, edi
je 0x40cd56
push eax
call ebx
test eax, eax
je 0x40cd56
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4ba3bc]
call ebx
test eax, eax
je 0x40cd71
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40cd73
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004042f8
mov esp, ebp
pop ebp
ret
Function at 0x1403860
Capabilities:
Create thread

Disassembly:
mov ecx, dword [0x145783c]
sub esp, 8
lea edx, [esp]
mov eax, dword [ecx]
push ebx
push ebp
push esi
push edi
push edx
push str._HFILE
xor ebx, ebx
xor edi, edi
xor esi, esi
mov ebp, 0x32
call dword [eax + 8]
test eax, eax
je 0x140389e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x140389e
push eax
call fcn.0142dd10
add esp, 4
mov ebx, eax
mov ecx, dword [0x145783c]
lea edx, [esp + 0x10]
push edx
push str._HPARENT
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x14038ca
mov eax, dword [esp + 0x10]
test eax, eax
je 0x14038ca
push eax
call fcn.0142dd10
add esp, 4
mov edi, eax
mov ecx, dword [0x145783c]
lea edx, [esp + 0x10]
push edx
push str._HCHILD
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x14038f6
mov eax, dword [esp + 0x10]
test eax, eax
je 0x14038f6
push eax
call fcn.0142dd10
add esp, 4
mov esi, eax
test ebx, ebx
je 0x14039ef
test edi, edi
je 0x14039ef
test esi, esi
je 0x14039ef
push str._n_nInitConProc:__Setting_up_external_control._n
call fcn.01405500
add esp, 4
mov dword [0x145dd64], ebx
mov dword [0x145dd68], edi
mov dword [0x145dd74], esi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0x145dd70], eax
jne 0x1403959
push str.InitConProc:__Couldnt_create_heventDone_n
call fcn.01405500
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x1403750
push 0
push 0
call fcn.01430350
add esp, 0x18
test eax, eax
jne 0x1403999
mov ecx, dword [0x145dd70]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.InitConProc:__Couldnt_create_third_party_thread_n
call fcn.01405500
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call esi
push 0xfffffffffffffff6
mov dword [0x145dd6c], eax
call esi
mov ecx, dword [0x145783c]
mov dword [0x145dd60], eax
lea eax, [esp + 0x10]
mov edx, dword [ecx]
push eax
push str._conheight
call dword [edx + 8]
test eax, eax
je 0x14039dd
mov eax, dword [esp + 0x10]
test eax, eax
je 0x14039dd
push eax
call fcn.0142dd10
add esp, 4
mov ebp, eax
mov ecx, dword [0x145dd6c]
push ebp
push 0x50
push ecx
call fcn.014033b0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x1404860
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0xa8
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x28
lea edi, [esp + 0x14]
mov ax, word [esi + 0x202c]
xor edx, edx
mov bx, ax
mov word [esp + 0x12], dx
shl ebx, 0x10
mov bx, ax
mov word [esp + 0x10], dx
mov eax, ebx
mov dword [esp + 0xc], edx
mov edx, dword [esi + 0x2028]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x1c]
push 0x50
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputAttribute]
mov edx, dword [esi + 0x2028]
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esi + 0x202e]
push 0x50
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
pop edi
pop esi
pop ebx
add esp, 0xa8
ret
Function at 0x1405700
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 0xc]
push str.filesystem_stdio.dll
push str.filesystem_steam.dll
push eax
call fcn.01404fb0
add esp, 0xc
test al, al
je 0x1405720
xor eax, eax
ret 0x10
push esi
lea ecx, [esp + 0x10]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov edx, dword [esp + 0x14]
push esi
push edx
call fcn.01405d60
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x140ddb0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.01406050
mov ecx, dword [esp + 0x14]
mov edi, eax
mov eax, dword [ecx]
mov ebx, dword [edi]
call dword [eax]
push eax
mov ecx, edi
call dword [ebx + 0x34]
mov edx, dword [esi + 0x50]
xor ecx, ecx
test edx, edx
mov dword [esp + 0x14], eax
jle 0x140ddf3
mov edi, dword [esi + 0x58]
cmp dword [edi], eax
je 0x140ddeb
inc ecx
add edi, 4
cmp ecx, edx
jl 0x140dddd
jmp 0x140ddf3
test ecx, ecx
jge 0x140de83
mov ecx, dword [esi + 0x50]
mov ebx, dword [esi + 0x54]
inc ecx
cmp ecx, ebx
jle 0x140de73
test ebx, ebx
jne 0x140de07
mov ebx, 1
cmp ebx, ecx
jge 0x140de11
add ebx, ebx
cmp ebx, ecx
jl 0x140de0b
lea edi, [ebx*4]
push edi
call fcn.0142dd30
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x140de2d
push eax
call fcn.014323b0
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi + 0x50]
xor eax, eax
test ecx, ecx
mov dword [esi + 0x54], ebx
jle 0x140de60
mov ecx, dword [esi + 0x58]
inc eax
mov edx, dword [ecx + eax*4 - 4]
mov dword [ebp + eax*4 - 4], edx
mov ecx, dword [esi + 0x50]
cmp eax, ecx
jl 0x140de4d
mov eax, dword [esi + 0x58]
push eax
call fcn.0142e090
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x58], ebp
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0x58]
mov dword [edx + ecx*4], eax
mov eax, dword [esi + 0x50]
inc eax
mov dword [esi + 0x50], eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x14231e0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, ecx
push ebp
push esi
push edi
mov esi, dword [ebx + 4]
cmp eax, esi
jle 0x1423260
test esi, esi
jne 0x14231fa
mov esi, 1
cmp esi, eax
jge 0x1423204
add esi, esi
cmp esi, eax
jl 0x14231fe
lea edi, [esi*4]
push edi
call fcn.0142dd30
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x1423220
push eax
call fcn.014323b0
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebx]
xor eax, eax
test ecx, ecx
mov dword [ebx + 4], esi
jle 0x1423251
mov ecx, dword [ebx + 8]
inc eax
mov edx, dword [ecx + eax*4 - 4]
mov dword [ebp + eax*4 - 4], edx
mov ecx, dword [ebx]
cmp eax, ecx
jl 0x142323f
mov eax, dword [ebx + 8]
push eax
call fcn.0142e090
add esp, 4
mov dword [ebx + 8], ebp
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x1431520
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x143153f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x1431546
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x143155d
mov ecx, dword [ebp - 4]
push ecx
call fcn.0143a010
add esp, 4
or eax, 0xffffffff
jmp 0x143155f
xor eax, eax
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x144752b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0143a010
add esp, 4
or eax, 0xffffffff
jmp 0x144755c
mov ecx, dword [ebp - 4]
and ecx, 1
test ecx, ecx
je 0x144755a
mov edx, dword [ebp + 0xc]
and edx, 2
test edx, edx
je 0x144755a
call fcn.0143a0b0
mov dword [eax], 0xd
call fcn.0143a0c0
mov dword [eax], 5
or eax, 0xffffffff
jmp 0x144755c
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402128
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x402145
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x3d]
test eax, eax
jne 0x40214c
mov al, 1
jmp 0x402215
call fcn.004026c3
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
call dword [eax + 0xc]
push eax
call fcn.004026c3
push eax
call fcn.004026cb
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x402179
xor al, al
jmp 0x402215
mov dword [ebp - 0x18], 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 4]
add eax, 0x40
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x38]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4021b6
cmp dword [ebp - 8], 1
je 0x4021bd
cmp dword [ebp - 8], 3
je 0x402208
jmp 0x402213
mov eax, dword [ebp - 4]
mov byte [eax + 0x3d], 0
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x3c]
sub eax, ecx
mov dword [ebp - 0xc], eax
je 0x4021eb
mov eax, dword [ebp - 4]
push dword [eax + 0x4c]
push dword [ebp - 0xc]
push 1
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0xc], eax
je 0x4021eb
xor al, al
jmp 0x402215
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x3d]
test eax, eax
jne 0x4021ff
mov dword [ebp - 0x10], 1
jmp 0x402203
and dword [ebp - 0x10], 0
mov al, byte [ebp - 0x10]
jmp 0x402215
mov eax, dword [ebp - 4]
mov byte [eax + 0x3d], 0
mov al, 1
jmp 0x402215
xor al, al
leave
ret

Function at 0x402787
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x40
push 0x1000
push dword [ebp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push dword [ebp - 4]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
leave
ret
Function at 0x403219
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x403239
jl 0x403230
cmp dword [ebp + 0xc], 0
ja 0x403239
xor eax, eax
xor edx, edx
jmp 0x40336a
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x403259
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
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__]
jmp 0x40336a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x4032c7
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00401666
pop ecx
pop ecx
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const]
push eax
push dword [ebp + 8]
call fcn.00402681
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int_]
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x40335b
mov ecx, dword [ebp - 8]
call fcn.00402464
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x403336
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
push 0xfff
push 1
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], 0xfff
je 0x403334
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x40336a
jmp 0x4032e3
cmp dword [ebp - 4], 0
jbe 0x40335b
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
push dword [ebp - 4]
push 1
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
leave
ret 0xc
Function at 0x40336e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x403397
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
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__]
jmp 0x403477
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x40342b
jg 0x4033c0
cmp dword [ebp + 0xc], 0
jbe 0x40342b
cmp dword [ebp - 8], 0
jl 0x40342b
jg 0x4033ce
cmp dword [ebp - 0xc], 0
jbe 0x40342b
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 8]
jg 0x4033ec
jl 0x4033e0
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0xc]
jae 0x4033ec
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
push dword [ebp - 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push eax
call fcn.00402681
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
sbb ecx, dword [ebp - 8]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], ecx
push dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
cmp dword [ebp + 0x10], 0
jl 0x40346b
jg 0x403439
cmp dword [ebp + 0xc], 0
jbe 0x40346b
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4c], 0
je 0x40346b
mov eax, dword [ebp - 4]
push dword [eax + 0x4c]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
leave
ret 0xc

Function at 0x403ef1
Capabilities:
Parse pe header

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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x93000]
push edi
jmp 0x50046a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x500471
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x500460
mov eax, 1
add ebx, ebx
jne 0x500483
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x500494
jne 0x5004b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5004b3
dec eax
add ebx, ebx
jne 0x5004a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x500478
add ebx, ebx
jne 0x5004af
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x500505
xor ecx, ecx
sub eax, 3
jb 0x5004cb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50053a
sar eax, 1
mov ebp, eax
jmp 0x5004d6
add ebx, ebx
jne 0x5004d6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5004a4
inc ecx
add ebx, ebx
jne 0x5004e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5004a4
add ebx, ebx
jne 0x5004f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5004e6
jne 0x500502
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5004e6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x500524
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x500516
jmp 0x500466
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x500524
add edi, ecx
jmp 0x500466
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x500542
cmp byte [edi], 0x13
jne 0x500542
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 0x500547
lea edi, [esi + 0xfc000]
mov eax, dword [edi]
or eax, eax
je 0x5005bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x107080]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1071d4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x500574
mov ecx, edi
jns 0x5005a3
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 + 0x1071d8]
or eax, eax
je 0x5005b9
mov dword [ebx], eax
add ebx, 4
jmp 0x500591
call dword [esi + 0x1071e8]
mov ebp, dword [esi + 0x1071dc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x5005f3
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x76c0310e
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
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, 0x549751aa
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219