joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416070
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430606
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x44100c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
cmp dword [0x442df8], 0x4c
jl 0x4160d0
push 0x442dfc
call fcn.0041fe10
mov ebx, dword [0x442df4]
add esp, 4
test ebx, ebx
je 0x4160c2
mov eax, dword [ebx]
mov dword [0x442df4], eax
mov dword [0x442dfc], 1
test ebx, ebx
jne 0x4160ef
push 0x4c
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4160ef
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
push 0x78
call fcn.0042bdef
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 1
lea ecx, [edi + 8]
lea esi, [edi + 4]
mov dword [ebp - 0x1c], ecx
mov dword [esi], 0
mov dword [ecx + 0xc], 0
mov byte [ebp - 4], 3
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov byte [ebp - 4], 4
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [edi + 0x20], eax
mov byte [ebp - 4], 6
mov dword [edi], vtable.CVWnd_ComboBox.0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0xffffffff
mov dword [edi + 0x2c], vtable.CVolWindowProcFilters.0
mov dword [edi + 0x30], 0
mov byte [ebp - 4], 7
lea ecx, [edi + 0x44]
call fcn.004026b0
mov byte [ebp - 4], 8
mov dword [edi + 0x70], 0
mov byte [ebp - 4], 9
push 0xf
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0xff000000
mov dword [edi + 0x40], 1
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], 0
mov byte [ebp - 4], 0
mov dword [ebx], vtable.CRefObject.0
mov dword [ebx + 4], 1
mov byte [ebp - 4], 0xa
lea ecx, [ebx + 8]
mov dword [ebx], vtable.CWtlWndObject.0
call fcn.004026b0
mov byte [ebp - 4], 0xb
mov dword [ebx + 0x44], esi
mov dword [ebx + 0x34], 0x14000000
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov byte [ebp - 4], 0xc
mov dword [ebx], vtable.CWtlWndObjectImpl_class_CVWnd_ComboBox_.0
mov dword [ebx + 0x48], edi
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x10]
or dword [ebx + 0x34], 0x10002
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x41621f
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dword [esi + 0xc], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4164b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4306a0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x44100c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [0x442df8], 0x4c
jl 0x41650f
push 0x442dfc
call fcn.0041fe10
mov edi, dword [0x442df4]
add esp, 4
test edi, edi
je 0x416501
mov eax, dword [edi]
mov dword [0x442df4], eax
mov dword [0x442dfc], 1
test edi, edi
jne 0x41652e
push 0x4c
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x41652e
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
push 0x60
call fcn.0042bdef
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
lea ecx, [esi + 8]
lea edx, [esi + 4]
mov dword [ebp - 0x18], ecx
mov dword [edx], 0
mov dword [ecx + 0xc], 0
mov byte [ebp - 4], 3
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov byte [ebp - 4], 4
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 0x20], eax
mov byte [ebp - 4], 6
mov dword [esi], vtable.CVWnd_DatePicker.0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0xffffffff
mov dword [esi + 0x2c], vtable.CVolWindowProcFilters.0
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 7
xorps xmm0, xmm0
movups xmmword [esi + 0x40], xmm0
mov dword [esi + 0x58], 0
movsd qword [esi + 0x38], xmm0
movsd qword [esi + 0x50], xmm0
mov byte [ebp - 4], 0
mov dword [edi], vtable.CRefObject.0
mov dword [edi + 4], 1
mov byte [ebp - 4], 8
lea ecx, [edi + 8]
mov dword [edi], vtable.CWtlWndObject.0
call fcn.004026b0
mov byte [ebp - 4], 9
mov dword [edi + 0x44], edx
mov dword [edi + 0x34], 0x14000000
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov byte [ebp - 4], 0xa
mov dword [edi], vtable.CWtlWndObjectImpl_class_CVWnd_DatePicker_.0
mov dword [edi + 0x48], esi
mov dword [ebp - 4], 0xffffffff
or dword [edi + 0x34], 4
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x41662b
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dword [ebx + 0xc], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4168b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430738
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x44100c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [0x442df8], 0x4c
jl 0x41690f
push 0x442dfc
call fcn.0041fe10
mov edi, dword [0x442df4]
add esp, 4
test edi, edi
je 0x416901
mov eax, dword [edi]
mov dword [0x442df4], eax
mov dword [0x442dfc], 1
test edi, edi
jne 0x41692e
push 0x4c
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x41692e
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
push 0x44
call fcn.0042bdef
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
lea ecx, [esi + 8]
lea edx, [esi + 4]
mov dword [ebp - 0x18], ecx
mov dword [edx], 0
mov dword [ecx + 0xc], 0
mov byte [ebp - 4], 3
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov byte [ebp - 4], 4
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 0x20], eax
mov byte [ebp - 4], 6
mov dword [esi], vtable.CVolDummyWnd.0
mov byte [ebp - 4], 7
mov dword [esi], vtable.CVWnd_Timer.0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0xffffffff
mov dword [esi + 0x30], vtable.CVolWindowProcFilters.0
mov dword [esi + 0x34], 0
mov byte [ebp - 4], 8
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov byte [ebp - 4], 0
mov dword [edi], vtable.CRefObject.0
mov dword [edi + 4], 1
mov byte [ebp - 4], 9
lea ecx, [edi + 8]
mov dword [edi], vtable.CWtlWndObject.0
call fcn.004026b0
mov byte [ebp - 4], 0xa
mov dword [edi + 0x44], edx
mov dword [edi + 0x34], 0x14000000
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov byte [ebp - 4], 0xb
mov dword [edi], vtable.CWtlWndObjectImpl_class_CVWnd_Timer_.0
mov dword [edi + 0x48], esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x416a27
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dword [ebx + 0xc], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419ac0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
test edi, edi
js 0x419b3e
mov esi, dword [ebp + 8]
mov ecx, 1
mov edx, dword [esi]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x419af7
push edi
mov ecx, esi
call fcn.00419a60
mov edx, dword [esi]
push edi
push edx
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
mov ecx, edi
cmp edi, 0xffffffff
jne 0x419b1f
mov ecx, dword [esi]
test ecx, ecx
je 0x419b23
push dword [ecx - 8]
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
add esp, 8
mov ecx, eax
test ecx, ecx
js 0x419b3e
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x419b3e
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0x80070057
call fcn.004182c0
int3
Function at 0x41b4c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cbfd
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x44100c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x442df8], 0x28
jl 0x41b518
push 0x442dfc
call fcn.0041fe10
mov ecx, dword [0x442df4]
add esp, 4
test ecx, ecx
je 0x41b50a
mov eax, dword [ecx]
mov dword [0x442df4], eax
mov dword [0x442dfc], 1
test ecx, ecx
jne 0x41b537
push 0x28
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
jne 0x41b537
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
push ecx
call fcn.0041b860
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x41b630
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431025
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x44100c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [0x442df8], 0x28
jl 0x41b68c
push 0x442dfc
call fcn.0041fe10
mov esi, dword [0x442df4]
add esp, 4
test esi, esi
je 0x41b67e
mov eax, dword [esi]
mov dword [0x442df4], eax
mov dword [0x442dfc], 1
test esi, esi
jne 0x41b6ab
push 0x28
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x41b6ab
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
push ecx
mov ecx, esi
call fcn.0041b860
mov byte [ebp - 4], 1
mov ecx, esi
push edi
mov dword [esi], vtable.CVolObjectArray.0
call fcn.0041b7d0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41bb30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d28d
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x44100c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [0x442df8], 0xc
jl 0x41bb8b
push 0x442dfc
call fcn.0041fe10
mov ecx, dword [0x442df4]
add esp, 4
test ecx, ecx
je 0x41bb7d
mov eax, dword [ecx]
mov dword [0x442df4], eax
mov dword [0x442dfc], 1
test ecx, ecx
jne 0x41bbaa
push 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
jne 0x41bbaa
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov dword [ecx], vtable.CVolObject.0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 1
mov dword [ecx], vtable.CVolUserApp.0
mov dword [0x442e20], ecx
mov byte [ebp - 4], 2
mov dword [ecx], vtable.CVolUserApp.0
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41bee0
Capabilities:
Get system information on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43129b
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
mov eax, dword [0x44100c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x400000
mov dword [0x442de0], 0x435ce4
mov dword [0x442de8], 0x436134
push 0
mov dword [ebp - 0x14], 0x442de0
mov dword [0x442dfc], 1
mov dword [0x442df8], 0x100
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
jne 0x41bf57
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
lea eax, [ecx + 0x400000]
mov dword [0x442df4], ecx
mov dword [0x442df0], eax
mov edx, 0x1555
mov eax, dword [0x442df8]
mov dword [0x442dec], ecx
nop dword [eax + eax]
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x442df8]
add ecx, eax
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x442df8]
add ecx, eax
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x442df8]
add ecx, eax
sub edx, 1
jne 0x41bf80
mov dword [ecx], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0x442e00
mov dword [ebp - 0x18], 0x442e00
mov dword [ebp - 0x1c], 0x442e00
mov dword [0x442e00], 0x434578
mov dword [0x442e04], edx
mov dword [0x442e08], edx
mov byte [ebp - 4], 1
mov dword [0x442e00], 0x434514
mov dword [0x442e0c], edx
mov dword [0x442e14], edx
mov dword [0x442e10], edx
mov dword [0x442e18], 0x40
mov byte [ebp - 4], 2
mov dword [0x442e18], 0x80
mov byte [ebp - 4], 5
mov dword [0x442e1c], edx
mov byte [ebp - 4], 6
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x442e30
mov dword [ebp - 0x20], 0x442e30
call esi
mov byte [ebp - 4], 7
mov dword [0x442e48], 0
mov byte [ebp - 4], 8
push 0x442e54
mov dword [ebp - 0x24], 0x442e54
call esi
mov byte [ebp - 4], 9
mov dword [0x442e6c], 0x3e8
mov dword [ebp - 0x28], 0x442e80
mov dword [ebp - 0x2c], 0x442e80
mov dword [0x442e80], 0x434578
mov dword [0x442e84], 0
mov dword [0x442e88], 0
mov byte [ebp - 4], 0xa
mov dword [0x442e80], 0x434514
mov dword [0x442e8c], 0
mov dword [0x442e94], 0
mov dword [0x442e90], 0
mov dword [0x442e98], 0x40
mov byte [ebp - 4], 0xb
mov dword [0x442e98], 0x80
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x3c]
mov dword [0x442e74], 0x3e80
mov dword [0x442e78], 1
mov dword [0x442e7c], 0
lea eax, [eax*2 + 2]
mov dword [0x442e70], eax
mov byte [ebp - 4], 0xe
push 0x442e9c
call esi
mov byte [ebp - 4], 0xf
push ecx
mov ecx, 0x442eb4
call fcn.0041b860
mov byte [ebp - 4], 0x10
mov dword [0x442e20], 0
mov dword [0x442edc], 0
movsd xmm0, qword [0x436890]
movsd qword [0x442e28], xmm0
xorps xmm0, xmm0
mov dword [0x442ee0], 0
mov dword [0x442ee4], 0
mov dword [0x442ee8], 0
mov dword [0x442e24], 0
movq qword [0x442e4c], xmm0
mov dword [ebp - 4], 0xffffffff
mov eax, 0x442de0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41cd20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esi + 0x14], 0
test ebx, ebx
jne 0x41cd3f
pop esi
lea eax, [ebx + 1]
pop ebx
pop ebp
ret 0xc
mov eax, dword [ecx]
push edi
xor edi, edi
call dword [eax]
push dword [ebp + 0x10]
mov ecx, eax
movzx eax, bx
push eax
push ecx
mov dword [ebp + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x41ce15
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x41ce15
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x41ce0c
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [esi + 0x14], 0
cmp dword [esi + 0x10], edi
jl 0x41cdf0
cmp edi, 1
jne 0x41cdb5
mov eax, dword [esi + 0xc]
mov cl, byte [ebx]
mov byte [eax], cl
inc dword [esi + 0x14]
jmp 0x41ce07
cmp edi, 2
jne 0x41cdc8
mov eax, dword [esi + 0xc]
movzx ecx, word [ebx]
mov word [eax], cx
add dword [esi + 0x14], edi
jmp 0x41ce07
cmp edi, 4
jne 0x41cdd9
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov dword [eax], ecx
add dword [esi + 0x14], edi
jmp 0x41ce07
cmp edi, 8
jne 0x41cdf0
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
add dword [esi + 0x14], edi
jmp 0x41ce07
test edi, edi
jle 0x41ce07
push edi
mov ecx, esi
call fcn.0041f580
push edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edi, 1
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x41d150
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x442df8]
jg 0x41d18b
push 0x442dfc
call fcn.0041fe10
mov ecx, dword [0x442df4]
add esp, 4
test ecx, ecx
je 0x41d17d
mov eax, dword [ecx]
mov dword [0x442df4], eax
mov dword [0x442dfc], 1
test ecx, ecx
jne 0x41d1a9
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
jne 0x41d1a9
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov eax, ecx
pop esi
pop ebp
ret 4

Function at 0x41d210
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x442dec]
jb 0x41d284
cmp esi, dword [0x442df0]
jae 0x41d284
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x442df8]
jle 0x41d299
push edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x41d29d
push dword [0x442df8]
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
push 0x442dfc
call fcn.0041fe10
mov eax, dword [0x442df4]
add esp, 0x10
mov dword [esi], eax
mov dword [0x442df4], esi
mov esi, edi
mov dword [0x442dfc], 1
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
push dword [ebp + 0xc]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
test esi, esi
jne 0x41d27d
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ccdd
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
mov eax, dword [0x44100c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
test edx, edx
je 0x41e3b1
cmp word [edx], 0
je 0x41e3b1
lea ecx, [ebp - 0x38]
call fcn.004026b0
mov dword [ebp - 4], 0
cmp word [edx], 0
je 0x41e380
cmp word [edx + 2], 0
je 0x41e380
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e340
sub ecx, esi
sar ecx, 1
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x41e380
cmp word [edx + ecx*2 - 4], 0x3a
je 0x41e380
lea eax, [ecx - 1]
push eax
push edx
lea ecx, [ebp - 0x38]
call fcn.00421010
mov edx, dword [ebp - 0x2c]
test edx, edx
jne 0x41e380
cmp dword [ebp - 0x14], 0
mov edx, 0x433720
cmovne edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00401b80
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e6a0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
call fcn.00419c70
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
movzx eax, word [edx]
test ax, ax
je 0x41e6d9
mov ecx, eax
cmp cx, 0x20
ja 0x41e6d9
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
test ax, ax
jne 0x41e6c5
movzx eax, word [edx]
mov esi, eax
mov ecx, eax
mov dword [ebp - 8], esi
cmp eax, 0x22
jne 0x41e6ec
movzx ecx, word [edx + 2]
xor eax, eax
cmp esi, 0x22
lea esi, [edx + 2]
sete al
lea eax, [eax*2 + 0x20]
movzx edi, ax
mov eax, dword [ebp - 8]
cmp ax, 0x22
cmovne esi, edx
movzx edx, cx
cmp cx, di
je 0x41e72e
movzx ecx, cx
test cx, cx
je 0x41e738
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
mov edx, eax
cmp ax, di
jne 0x41e716
mov eax, dword [ebp - 8]
test dx, dx
je 0x41e73b
add esi, 2
jmp 0x41e73b
mov eax, dword [ebp - 8]
cmp ax, 0x22
jne 0x41e74a
cmp word [esi], 0x20
jne 0x41e74a
add esi, 2
movzx eax, word [esi]
test ax, ax
je 0x41e8a9
mov ecx, eax
nop dword [eax + eax]
cmp cx, 0x22
jne 0x41e807
movzx eax, word [esi + 2]
add esi, 2
mov ebx, esi
test ax, ax
je 0x41e794
mov ecx, eax
nop word [eax + eax]
cmp cx, 0x22
je 0x41e794
movzx eax, word [ebx + 2]
add ebx, 2
mov ecx, eax
test ax, ax
jne 0x41e780
mov edi, ebx
sub edi, esi
sar edi, 1
test edi, edi
jle 0x41e7c6
mov ecx, dword [ebp - 4]
add edi, edi
mov edx, dword [ecx]
lea eax, [edi + 2]
push eax
call dword [edx]
push edi
push esi
push eax
mov dword [ebp - 8], eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax], cx
mov edi, eax
jmp 0x41e7c8
xor edi, edi
mov ecx, dword [ebp - 4]
add ecx, 4
mov eax, dword [ecx + 0x10]
mov esi, dword [ecx + 0x14]
sub eax, esi
cmp eax, 4
jl 0x41e7e7
mov eax, dword [ecx + 0xc]
mov dword [esi + eax], edi
add dword [ecx + 0x14], 4
jmp 0x41e7f3
lea eax, [esi + 4]
push eax
call fcn.0041f580
mov dword [eax + esi], edi
cmp word [ebx], 0
mov esi, ebx
je 0x41e898
lea esi, [ebx + 2]
jmp 0x41e898
cmp cx, 0x20
jbe 0x41e895
mov ebx, esi
movzx ecx, cx
cmp cx, 0x22
je 0x41e830
cmp cx, 0x20
jbe 0x41e830
movzx eax, word [ebx + 2]
add ebx, 2
mov ecx, eax
test ax, ax
jne 0x41e816
mov edi, ebx
sub edi, esi
sar edi, 1
test edi, edi
jle 0x41e862
mov ecx, dword [ebp - 4]
add edi, edi
mov edx, dword [ecx]
lea eax, [edi + 2]
push eax
call dword [edx]
push edi
push esi
push eax
mov dword [ebp - 8], eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax], cx
mov edi, eax
jmp 0x41e864
xor edi, edi
mov ecx, dword [ebp - 4]
add ecx, 4
mov eax, dword [ecx + 0x10]
mov esi, dword [ecx + 0x14]
sub eax, esi
cmp eax, 4
jl 0x41e885
mov eax, dword [ecx + 0xc]
mov dword [esi + eax], edi
mov esi, ebx
add dword [ecx + 0x14], 4
jmp 0x41e898
lea eax, [esi + 4]
push eax
call fcn.0041f580
mov dword [eax + esi], edi
mov esi, ebx
jmp 0x41e898
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x41e760
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x18]
pop edi
pop esi
shr eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f810
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
test eax, eax
je 0x41f8e9
cmp word [eax], 0
je 0x41f8e9
push ebx
push esi
push 0x435d98
push eax
or esi, 0xffffffff
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x41f8bc
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 2
push 0
push ebx
call esi
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push 0
push 0
push ebx
mov dword [ebp + 8], eax
call esi
mov eax, dword [ebp + 8]
add esp, 0x1c
test eax, eax
jle 0x41f8ab
push ebx
push eax
push 1
push eax
mov ecx, edi
call fcn.0041f520
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push ebx
mov esi, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 0x14
test eax, eax
jne 0x41f8af
push esi
mov ecx, edi
call fcn.0041f580
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
ret 8
xor esi, esi
jmp 0x41f8b2
or esi, 0xffffffff
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x41f8cb
mov edx, dword [edi]
push ecx
mov ecx, edi
call dword [edx + 0xc]
mov eax, esi
mov dword [edi + 0xc], 0
pop esi
pop ebx
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
pop edi
pop ebp
ret 8
or eax, 0xffffffff
pop edi
pop ebp
ret 8