joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ebc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x48f0db
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4bb028]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
mov eax, dword [edi]
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], vtable.ATL::CImage.0
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x14], ecx
mov edx, dword [edi + 0x18]
mov dword [esi + 0x18], edx
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov ecx, dword [edi + 0x20]
mov dword [esi + 0x20], ecx
mov edx, dword [edi + 0x24]
mov dword [esi + 0x24], edx
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov cl, byte [edi + 0x2c]
mov byte [esi + 0x2c], cl
mov dl, byte [edi + 0x2d]
mov byte [esi + 0x2d], dl
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x38]
mov dword [esi + 0x38], edx
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
lea ecx, [edi + 0x40]
push ecx
lea ecx, [esi + 0x40]
mov dword [esp + 0x14], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov edx, dword [edi + 0x44]
mov dword [esi + 0x44], edx
mov eax, dword [edi + 0x48]
mov dword [esi + 0x48], eax
mov ecx, dword [edi + 0x4c]
mov dword [esi + 0x4c], ecx
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 4
Function at 0x4842e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x490ba8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4bb028]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, edx
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], vtable.CBrush.0
mov dword [esp + 0x30], 0
cmp dword [0x4bca80], 7
jne 0x484353
call fcn.00484880
test eax, eax
jne 0x484353
push 0xf
jmp 0x484355
push 4
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
call edi
cmp dword [esp + 0x38], 0
jne 0x48437a
fld qword [0x4a8b98]
sub esp, 8
mov edx, eax
fstp qword [esp]
call fcn.00481870
add esp, 8
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x14]
call sub.mfc90u.dll_CGdiObject::Attach
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 4]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x10]
call sub.mfc90u.dll_CGdiObject::DeleteObject
cmp dword [0x4bca80], 2
jl 0x4843c4
mov edx, dword [esi + 4]
push 0xf
push 2
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawEdge]
push 7
call edi
cmp dword [esp + 0x3c], 0
jne 0x4843e3
mov edi, dword [ebx + 4]
mov edx, dword [ebx]
add edi, 4
add edx, 4
mov ecx, eax
call fcn.00483ab0
jmp 0x4843f6
mov ecx, dword [ebx + 4]
mov ebx, dword [ebx]
add ecx, 4
push ecx
add ebx, 5
mov ecx, eax
call fcn.004839a0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.CBrush.0
call fcn.004066b0
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 8
Function at 0x484880
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x258
mov eax, dword [0x4bb028]
xor eax, esp
mov dword [esp + 0x254], eax
cmp dword [0x4bca9c], 0
jne 0x48495d
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftPlus_ThemesCurrent
push reloc.BootTime.dll_Ordinal_1
mov dword [0x4bca9c], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48495d
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 4]
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0xc]
push eax
push 0
push 0
push ecx
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x484953
push esi
push edi
mov ecx, 0xb
mov esi, str.Windows_Classic.theme
lea edi, [esp + 0x14]
lea edx, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edx
call edi
mov esi, eax
lea eax, [esp + 0x14]
push eax
call edi
cmp esi, eax
jl 0x484951
lea ecx, [esp + 0x14]
push ecx
mov edx, ecx
push edx
call edi
sub esi, eax
lea eax, [esp + esi*2 + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x484951
mov dword [0x4bca98], 1
pop edi
pop esi
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x254]
mov eax, dword [0x4bca98]
xor ecx, esp
call fcn.0048a3f6
add esp, 0x258
ret
Function at 0x485fd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48d2d8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push edi
mov eax, dword [0x4bb028]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push eax
call edi
push eax
call sub.mfc90u.dll_CWnd::FromHandle
push eax
lea ecx, [esp + 0x30]
call sub.mfc90u.dll_CClientDC::CClientDC
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0
mov edx, dword [esi + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x1c]
push edx
push eax
call edi
push eax
call sub.mfc90u.dll_CWnd::FromHandle
mov ecx, eax
call sub.mfc90u.dll_CWnd::ScreenToClient
cmp dword [esi + 0x180], 0
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
jne 0x4860f1
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x17c]
call sub.mfc90u.dll_CDC::Attach
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
lea edi, [esi + 0x18c]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call sub.mfc90u.dll_CGdiObject::Attach
test edi, edi
je 0x4860ab
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x180]
push edi
push eax
call sub.mfc90u.dll_CDC::SelectGdiObject
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0xc]
push 0xcc0020
push edx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x194], eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [esi + 0x180]
push ecx
push 0
push 0
push eax
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sub eax, dword [esp + 0x10]
sub ecx, dword [esp + 0xc]
lea edx, [esi + 0x17c]
test edx, edx
je 0x48610e
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
push eax
push ecx
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx + 4]
push 0
push 0
push edx
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00489db0
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x44
ret 4
Function at 0x487340
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 8
cmp dword [esi + 0xa0], 0
je 0x4873a4
cmp dword [esi + 0x94], 0
je 0x4873aa
mov ecx, dword [esi + 0xe4]
sub ecx, dword [esi + 0xe0]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x4873aa
lea ecx, [esp + 4]
push ecx
push 4
push esi
push 0x4878c0
push 0
push 0
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0xbc], eax
test eax, eax
je 0x4873a4
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
add esp, 8
ret
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x4873a4
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push edi
lea ecx, [esp + 8]
push ecx
push eax
call edx
mov eax, dword [esi + 0xc4]
mov ecx, dword [eax]
lea edx, [esp + 4]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [esp + 4]
mov eax, dword [esi + 0xc4]
mov edx, dword [eax]
push 0
mov edx, dword [edx + 0x20]
mov edi, ecx
neg edi
push edi
mov edi, dword [esp + 0x10]
push edi
push ecx
mov ecx, dword [esi + 0x78]
push 0
push ecx
mov ecx, dword [esi + 0x74]
push ecx
mov ecx, dword [esi + 0xa4]
push 0
push 0
push ecx
push eax
call edx
pop edi
test eax, eax
jne 0x4873a4
push eax
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
add esp, 8
ret

Function at 0x487430
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
call sub.mfc90u.dll_AfxGetModuleState
mov eax, dword [eax + 0xc]
push 0x4a0fec
push 0x99
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4874dc
call sub.mfc90u.dll_AfxGetModuleState
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x4874dc
call sub.mfc90u.dll_AfxGetModuleState
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4874dc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4874d5
test ebx, ebx
je 0x4874d5
push edi
push eax
push ebx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x14]
push edi
push esi
call fcn.00486dc0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
Function at 0x489600
Capabilities:
Create thread

Disassembly:
sub esp, 0x1c
cmp dword [edi + 0x3c], 0
push esi
lea esi, [edi + 0x3c]
je 0x489617
or eax, 0xffffffff
pop esi
add esp, 0x1c
ret 4
push ebx
push str.http:__news.filepuma.com_nc_newsclient.ini
lea ecx, [edi + 4]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov eax, dword [esp + 0x28]
push eax
lea ecx, [edi + 0x20]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push 0
push 0
push edi
push 0x489350
push 0
push 0
mov dword [edi + 0x68], 0
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0x4ff
push 0xffffffffffffffff
push 0
push esi
push 1
mov dword [esi], eax
mov dword [edi + 0x64], 1
call ebx
test eax, eax
je 0x4896ad
push ebp
mov ebp, dword [sym.imp.USER32.dll_PeekMessageW]
lea ecx, [ecx]
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
call ebp
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0x4ff
push 0xffffffffffffffff
push 0
push esi
push 1
call ebx
test eax, eax
jne 0x489680
pop ebp
mov eax, dword [esi]
pop ebx
test eax, eax
je 0x4896c1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov eax, dword [edi + 0x5c]
pop esi
add esp, 0x1c
ret 4

Function at 0x48a3f6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4bb028]
jne 0x48a400
repz ret
jmp fcn.0048aa0e
Function at 0x3f85058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x3f851a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x3f8507e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x3f8506a
add dl, dl
jne 0x3f85089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x3f850dc
xor eax, eax
add dl, dl
jne 0x3f85096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x3f8517d
add dl, dl
jne 0x3f850a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x3f850b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x3f850bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x3f850c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x3f850d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x3f85075
mov eax, 1
add dl, dl
jne 0x3f850ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x3f850f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x3f850e1
sub eax, ebx
mov ebx, 1
jne 0x3f85128
mov ecx, 1
add dl, dl
jne 0x3f8510e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x3f85119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x3f85105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3f85075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x3f8513f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x3f8514a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x3f85136
cmp eax, 0x7d00
jae 0x3f8516d
cmp eax, 0x500
jb 0x3f85168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3f85075
cmp eax, 0x7f
ja 0x3f85170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3f85075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x3f8519e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x3f85075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x406760
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x41eb1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4044fc
call fcn.004092f4
push 4
mov dword [esp + 0x18], 0
call fcn.0040aaa6
mov edi, eax
add esp, 4
test edi, edi
je 0x4067d4
push ebx
call fcn.004090ef
mov dword [edi], eax
call fcn.00408eae
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.004092b5
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4067c8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.004092dd
pop ebx
jmp 0x4067d6
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40b59e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4223dc]
jne 0x40b5a8
repz ret
jmp fcn.0041273c
Function at 0x4180cb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4223dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040e3d5
and dword [ebp - 0x14], 0
cmp dword [0x820034], 0
mov dword [ebp - 0x18], eax
jne 0x41817e
push 0x404000
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x418226
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403ff4
push ebx
call edi
test eax, eax
je 0x418226
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403fe4
push ebx
mov dword [0x820034], eax
call edi
push eax
call esi
push 0x403fd0
push ebx
mov dword [0x820038], eax
call edi
push eax
call esi
push 0x403fb4
push ebx
mov dword [0x82003c], eax
call edi
push eax
call esi
mov dword [0x820044], eax
test eax, eax
je 0x41817e
push 0x403f9c
push ebx
call edi
push eax
call esi
mov dword [0x820040], eax
mov eax, dword [0x820040]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4181d7
cmp dword [0x820044], ecx
je 0x4181d7
push eax
call esi
push dword [0x820044]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4181d7
test ebx, ebx
je 0x4181d7
call edi
test eax, eax
je 0x4181ce
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4181ce
test byte [ebp - 8], 1
jne 0x4181d7
or dword [ebp + 0x10], 0x200000
jmp 0x41820a
mov eax, dword [0x820038]
cmp eax, dword [ebp - 0x18]
je 0x41820a
push eax
call esi
test eax, eax
je 0x41820a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41820a
mov eax, dword [0x82003c]
cmp eax, dword [ebp - 0x18]
je 0x41820a
push eax
call esi
test eax, eax
je 0x41820a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x820034]
call esi
test eax, eax
je 0x418226
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x418228
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b59e
leave
ret
Function at 0x41d350
Capabilities:
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x22ac
call fcn.00418990
cmp dword [0xcca48c], 0x37
jne 0x41d4e9
push 0
lea eax, [esp + 0x16ac]
push eax
push 0
push 0x4041e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualUnlock]
push 0
lea edx, [esp + 0x6ac]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
lea eax, [esp + 4]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
push 0x404220
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
xor eax, eax
push eax
lea edx, [esp + 0xeac]
push edx
push 0x404234
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov word [esp + 0x22], ax
xor ecx, ecx
lea eax, [esp + 0x14]
push eax
push ecx
push ecx
mov word [esp + 0x20], cx
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
mov ecx, dword [esp + 4]
push 0
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
push 0
lea edx, [esp + 0x2ac]
push edx
push 0x404250
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea eax, [esp + 0x1aac]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 0x188]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
lea edx, [esp + 0x20]
push edx
push 0
lea eax, [esp + 0x64]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push 0
push 0x404264
push 0
call dword [sym.imp.KERNEL32.dll__hwrite]
push 0x40429c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push 0x4042c0
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
lea edx, [esp + 0x24]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push 0x30
lea ecx, [esp + 0x30]
push 0
push ecx
mov dword [esp + 0x34], 0
call fcn.0040a970
add esp, 0xc
lea edx, [esp + 0x28]
push edx
push 0
push 0x4042d0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogW]
mov eax, dword [0xcccbf0]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0xcc8c84]
mov byte [eax + esi], dl
add esp, 0x22ac
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40216d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x449570
cmp edx, dword [eax]
je 0x40218f
add eax, 8
inc ecx
cmp eax, 0x449600
jl 0x402180
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x449570]
jne 0x4022bd
mov eax, dword [0x449928]
cmp eax, 1
je 0x402297
test eax, eax
jne 0x4021c0
cmp dword [0x4494c4], 1
je 0x402297
cmp edx, 0xfc
je 0x4022bd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4021f7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402720
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402890
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40223a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402890
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406340
push edi
call fcn.00403520
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402720
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402730
lea eax, [ebp - 0xa0]
push 0x406320
push eax
call fcn.00402730
push dword [esi + 0x449574]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402730
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040348e
add esp, 0x2c
pop edi
jmp 0x4022bd
lea eax, [ebp + 8]
lea esi, [esi + 0x449574]
push 0
push eax
push dword [esi]
call fcn.00402890
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 0x401a95
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401ad4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401ad4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401ad4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401ad4
cmp dword [ecx + 0x74], 0xe
jbe 0x401ad4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret