joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40da9b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x46f06c]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x81c]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x800
xor esi, esi
lea eax, [ebp - 0x80c]
push esi
push eax
call fcn.004352b0
add esp, 0xc
push dword [edi + 0x64]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x400
lea eax, [ebp - 0x80c]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x40dba0
push 1
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetBkMode]
push esi
push esi
push 0x31
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xfffffffffffffff0
push dword [edi + 4]
mov dword [ebp - 0x820], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x300
je 0x40db3f
inc esi
jmp 0x40db54
test eax, 0x100
jne 0x40db54
push 1
pop esi
test eax, 0x200
push 2
pop eax
cmovne esi, eax
test byte [edi + 0x44], 4
je 0x40db6b
push 1
push 1
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [edi + 0x68]
or esi, 0x24
sub dword [ebp - 0x818], eax
lea eax, [ebp - 0x81c]
push esi
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0x820]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0043223c
mov esp, ebp
pop ebp
ret 4
Function at 0x40f693
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
push 5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push dword [edi + 0x344]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
ret

Function at 0x40f82e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x46f06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
xor ebx, ebx
push ebx
push ebx
push ebx
push 0x404776
push ebx
push ebx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi + 0x678], eax
inc ecx
test eax, eax
jne 0x40f8b9
mov edx, 0x879
lea ecx, [ebp - 0x34]
call fcn.00409c3f
mov edx, 0xadc
lea ecx, [ebp - 0x1c]
call fcn.00409c3f
mov ecx, esi
call fcn.0040f693
push 5
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040fead
push ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.0040182a
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.0040182a
xor ecx, ecx
inc ecx
mov dword [edi], ecx
mov eax, ecx
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043223c
mov esp, ebp
pop ebp
ret 0x10

Function at 0x411506
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x46f06c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x18]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
xor edi, edi
inc edi
push edi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x84]
cmp eax, 0xffffffff
jne 0x411548
push 9
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [esi + 0x24]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esi + 4]
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, eax
test ebx, ebx
jle 0x4115e2
lea eax, [ebx*2 + 2]
call fcn.004329f0
mov ecx, esp
lea eax, [ebx + 1]
push eax
push ecx
push dword [esi + 4]
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x4115e2
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, eax
test dl, 1
jne 0x4115b1
push 0
pop edi
push 2
test dl, 2
pop eax
cmovne edi, eax
mov eax, edx
mov ecx, edi
or ecx, 0x24
and al, 0xb
cmove ecx, edi
mov eax, ecx
or eax, 0x100000
and dl, 0x80
cmove eax, ecx
or eax, 0x200
push eax
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x1c]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0x20]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectObject]
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0043223c
mov esp, ebp
pop ebp
ret 4
Function at 0x412c18
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x370], 0
jne 0x412c84
mov eax, dword [0x472e14]
mov dword [0x471940], 1
test eax, eax
je 0x412c3e
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.0040cf2b
mov ecx, eax
call fcn.0040cf57
mov ecx, esi
mov byte [eax + 0x31c], 1
mov byte [esi + 0x370], 1
call fcn.00412cb3
push 0x467dd8
push dword [esi + 0x268]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x105
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_RedrawWindow]
jmp 0x412cad
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0040cf2b
mov ecx, eax
call fcn.0040cf57
push 0
push 0
push 0xa06
push dword [eax + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
pop esi
ret 0x10

Function at 0x412d35
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x46f06c]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x412d61
inc eax
jmp 0x412e35
cmp byte [esi + 0x370], 0
jne 0x412d79
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor eax, eax
jmp 0x412e35
mov eax, dword [0x472e10]
test eax, eax
je 0x412d89
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, 0x8f0
lea ecx, [esp + 0x24]
call fcn.00409c3f
mov edi, eax
cmp dword [edi + 0x14], 8
jb 0x412da1
mov edi, dword [edi]
mov edx, 0x8ef
lea ecx, [esp + 0xc]
call fcn.00409c3f
cmp dword [eax + 0x14], 8
jb 0x412db7
mov eax, dword [eax]
push 0x40044
push edi
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
lea ecx, [esp + 0xc]
push 0
sete bl
xor edi, edi
inc edi
push edi
call fcn.0040182a
push 0
push edi
lea ecx, [esp + 0x2c]
call fcn.0040182a
test bl, bl
je 0x412e1c
mov dword [esi + 0x380], edi
mov eax, dword [0x472e10]
test eax, eax
je 0x412e02
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xa
pop ecx
call fcn.00404114
call fcn.004040ef
jmp 0x412e33
and dword [esi + 0x380], 0
mov eax, dword [0x472e10]
test eax, eax
je 0x412e33
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, edi
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043223c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4132a6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x46f06c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4d8510], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x4132ce
xor al, al
jmp 0x4133fe
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.USER32.DLL
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UpdateLayeredWindow
push eax
call esi
mov dword [0x4d8510], eax
test eax, eax
je 0x4132c7
push 0x20a
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004352b0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.004352b0
push 0xffffffffffffffff
push str.dwmapi.dll
lea eax, [ebp - 0x218]
push eax
push str._s_s
lea eax, [ebp - 0x428]
push 0x104
push eax
call fcn.004146e1
add esp, 0x24
lea eax, [ebp - 0x428]
push eax
call ebx
test eax, eax
je 0x41336e
push str.DwmIsCompositionEnabled
push eax
call esi
mov dword [0x4d8514], eax
push 0x30
pop esi
push esi
xor ebx, ebx
mov dword [0x46fb24], edi
lea eax, [ebp - 0x458]
push ebx
push eax
call fcn.004352b0
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
add esp, 0xc
mov dword [ebp - 0x458], esi
mov dword [ebp - 0x454], 3
mov dword [ebp - 0x450], eax
push 0x7f00
push ebx
mov dword [ebp - 0x44c], ebx
mov dword [ebp - 0x448], ebx
mov dword [ebp - 0x444], edi
mov dword [ebp - 0x440], ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x43c], eax
lea eax, [ebp - 0x458]
push eax
mov dword [ebp - 0x438], 6
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x430], 0x467e40
mov dword [ebp - 0x42c], ebx
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043223c
mov esp, ebp
pop ebp
ret

Function at 0x414196
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
and byte [esi + 0xc], 9
mov al, byte [esi + 0xc]
test al, 1
je 0x4141d1
test al, 8
jne 0x4141d1
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x4141d1
or byte [esi + 0xc], 4
mov cl, byte [esi + 0xc]
test eax, 0x21000000
jne 0x4141d1
or cl, 2
mov byte [esi + 0xc], cl
test byte [esi + 0xc], 2
je 0x4141ee
push 8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.004136bd
jmp 0x4141f9
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 4
Function at 0x416bc0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x46f06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
call fcn.0043224d
mov ecx, eax
call fcn.004168a0
mov dword [0x4d8524], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [ebp - 8], 7
xor eax, eax
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
cmp word [edx], ax
jne 0x416c09
xor ecx, ecx
jmp 0x416c1f
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416c10
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.00401881
lea eax, [ebp - 0x1c]
push eax
call fcn.00417980
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x416c71
mov ecx, dword [ebp - 0x1c]
inc eax
cmp eax, 0x7fffffff
ja 0x416c82
add eax, eax
cmp eax, 0x1000
jb 0x416c68
test cl, 0x1f
jne 0x416c87
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x416c8c
sub ecx, eax
cmp ecx, 4
jb 0x416c91
cmp ecx, 0x23
ja 0x416c96
mov ecx, eax
push ecx
call fcn.00432237
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0043223c
mov esp, ebp
pop ebp
ret
call fcn.004377c0
call fcn.004377c0
call fcn.004377c0
call fcn.004377c0
call fcn.004377c0
int3

Function at 0x417980
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46f06c]
xor eax, ebp
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov edx, 0x468714
push esi
mov dword [ebp - 0x24], 0
xor eax, eax
push edi
mov edi, dword [0x4d8524]
lea esi, [edx + 2]
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4179c0
sub edx, esi
lea eax, [ebp - 0x20]
sar edx, 1
push edx
push 0x468714
push eax
call fcn.0041ab30
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x417a18
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], 0
cmovae eax, dword [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [ebp - 0x24]
call fcn.00416ca0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x417a57
mov ecx, dword [ebp - 0x20]
inc eax
cmp eax, 0x7fffffff
ja 0x417a69
add eax, eax
cmp eax, 0x1000
jb 0x417a4e
test cl, 0x1f
jne 0x417a6e
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x417a73
sub ecx, eax
cmp ecx, 4
jb 0x417a78
cmp ecx, 0x23
ja 0x417a7d
mov ecx, eax
push ecx
call fcn.00432237
add esp, 4
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0043223c
mov esp, ebp
pop ebp
ret 4
call fcn.004377c0
call fcn.004377c0
call fcn.004377c0
call fcn.004377c0
call fcn.004377c0
int3
Function at 0x41ccf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x41ccf8
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
ret

Function at 0x41cd10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x46f06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x218]
mov esi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x41cdfa
sub esp, 8
lea eax, [ebp - 0x218]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x218], 0
jne 0x41cd60
xor ecx, ecx
jmp 0x41cd7f
lea ecx, [ebp - 0x218]
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41cd70
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x248]
call fcn.0041d3f0
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x41cd9c
mov ecx, dword [eax]
jmp 0x41cd9e
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x230]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.0041d3f0
lea ecx, [ebp - 0x230]
call fcn.0041e150
lea eax, [ebp - 0x230]
cmp esi, eax
je 0x41cdd2
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00401aff
lea ecx, [ebp - 0x230]
call fcn.0041d490
lea ecx, [ebp - 0x248]
call fcn.0041d490
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043223c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0043223c
mov esp, ebp
pop ebp
ret

Function at 0x41ce10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x46f06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x210]
mov esi, ecx
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x41cebb
cmp word [ebp - 0x210], 0
je 0x41cebb
sub esp, 8
lea eax, [ebp - 0x210]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x210], 0
jne 0x41ce7f
xor ecx, ecx
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.0041d3f0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043223c
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x210]
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ce90
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.0041d3f0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043223c
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x214], 7
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
call fcn.0041cd10
mov ecx, esi
test al, al
je 0x41cf0d
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
push eax
mov word [esi], ax
lea eax, [ebp - 0x228]
push eax
call fcn.00401aff
jmp 0x41cf24
sub esp, 8
mov eax, esp
mov dword [eax], 0x4681a8
mov dword [eax + 4], 3
call fcn.0041d3f0
lea ecx, [ebp - 0x228]
call fcn.0041d490
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0043223c
mov esp, ebp
pop ebp
ret
Function at 0x41cf50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x46f06c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov word [ebp - 0x210], ax
mov esi, ecx
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x41d0c9
cmp eax, 0x104
ja 0x41d0c9
xor eax, eax
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
cmp word [ebp - 0x210], ax
jne 0x41cfbe
xor ecx, ecx
jmp 0x41cfd6
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41cfc7
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.00401881
sub esp, 8
lea eax, [ebp - 0x228]
cmp dword [ebp - 0x214], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x228]
mov dword [ecx], eax
mov eax, dword [ebp - 0x218]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x258]
call fcn.0041d3f0
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x41d027
mov ecx, dword [eax]
jmp 0x41d029
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x240]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.0041d3f0
lea ecx, [ebp - 0x240]
call fcn.0041e150
lea eax, [ebp - 0x240]
cmp esi, eax
je 0x41d05d
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00401aff
lea ecx, [ebp - 0x240]
call fcn.0041d490
lea ecx, [ebp - 0x258]
call fcn.0041d490
mov eax, dword [ebp - 0x214]
cmp eax, 8
jb 0x41d0b8
mov ecx, dword [ebp - 0x228]
inc eax
cmp eax, 0x7fffffff
ja 0x41d0da
add eax, eax
cmp eax, 0x1000
jb 0x41d0af
test cl, 0x1f
jne 0x41d0df
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x41d0e4
sub ecx, eax
cmp ecx, 4
jb 0x41d0e9
cmp ecx, 0x23
ja 0x41d0ee
mov ecx, eax
push ecx
call fcn.00432237
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043223c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0043223c
mov esp, ebp
pop ebp
ret
call fcn.004377c0
call fcn.004377c0
call fcn.004377c0
call fcn.004377c0
call fcn.004377c0
int3
Function at 0x41f300
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x46f06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x4d8524]
push str.enable_logging
mov dword [ebp - 0x214], 0
call fcn.00417370
test al, al
je 0x41f46c
cmp dword [0x4d8538], 0
je 0x41f34e
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043223c
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4d853c]
test eax, eax
jne 0x41f36d
push 0x18
call fcn.0043224d
add esp, 4
mov ecx, eax
call fcn.0041f220
mov dword [0x4d853c], eax
cmp dword [eax + 0x14], 8
jb 0x41f375
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x4d8538], eax
cmp eax, 0xffffffff
je 0x41f399
test eax, eax
jne 0x41f33e
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x41f46c
cmp eax, 0x104
ja 0x41f46c
cmp word [ebp - 0x210], 0
jne 0x41f3d5
xor ecx, ecx
jmp 0x41f3ef
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f3e0
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [0x4d853c]
lea eax, [ebp - 0x210]
push eax
call fcn.00401881
mov ecx, dword [0x4d853c]
call fcn.0041e260
cmp word [eax], 0x5c
je 0x41f423
push 0x467610
call fcn.00419a80
mov ecx, dword [0x4d853c]
push str.debug.log
call fcn.00419a80
mov eax, dword [0x4d853c]
cmp dword [eax + 0x14], 8
jb 0x41f43a
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x4d8538], eax
cmp eax, 0xffffffff
je 0x41f462
test eax, eax
jne 0x41f33e
mov dword [0x4d8538], 0
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.0043223c
mov esp, ebp
pop ebp
ret
Function at 0x41f690
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x46f06c]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 8]
push ebx
call fcn.00420050
add esp, 4
lea eax, [esp + 0x10]
lea ecx, [esi + 0xc]
push eax
call fcn.0041551c
mov eax, dword [0x4d8530]
test eax, eax
je 0x41f6f7
lea ecx, [esp + 0x10]
push ecx
push dword [esi + 0xa0]
push dword [esi + 0xa8]
push dword [esi + 0xa4]
push dword [esi]
call eax
add esp, 0x14
test al, al
jne 0x41f7e7
call fcn.0041f300
test al, al
je 0x41f726
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0x4d8538]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esi], 3
jne 0x41f7e7
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x41f75e
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00433fd0
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.00424960
add esp, 4
cmp dword [0x4d8540], 0
je 0x41f7d9
lea eax, [esp + 0x28]
push eax
lea ecx, [esi + 0xc]
call fcn.0041551c
lea eax, [esp + 0x28]
push eax
call dword [0x4d8540]
mov eax, dword [esp + 0x40]
add esp, 4
cmp eax, 0x10
jb 0x41f7e7
mov ecx, dword [esp + 0x28]
inc eax
cmp eax, 0x1000
jb 0x41f7ce
test cl, 0x1f
jne 0x41f89f
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x41f8a4
sub ecx, eax
cmp ecx, 4
jb 0x41f8a9
cmp ecx, 0x23
ja 0x41f8ae
mov ecx, eax
push ecx
call fcn.00432237
add esp, 4
jmp 0x41f7e7
cmp byte [0x4d8810], 0
jne 0x41f8b3
int3
mov eax, dword [esp + 0x24]
cmp eax, 0x10
jb 0x41f82f
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, 0x1000
jb 0x41f826
test cl, 0x1f
jne 0x41f8ba
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x41f8bf
sub ecx, eax
cmp ecx, 4
jb 0x41f8c4
cmp ecx, 0x23
ja 0x41f8c9
mov ecx, eax
push ecx
call fcn.00432237
add esp, 4
push dword [esi + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebx]
lea esi, [ebx + 0x50]
mov eax, dword [eax + 4]
mov dword [eax + esi - 0x50], 0x467ed0
mov eax, dword [esi - 0x50]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + esi - 0x54], eax
lea ecx, [esi - 0x4c]
call fcn.00415112
mov eax, dword [esi - 0x50]
push esi
mov eax, dword [eax + 4]
mov dword [eax + esi - 0x50], 0x45b318
mov eax, dword [esi - 0x50]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 0x54], eax
mov dword [esi], vtable.std::ios_base.0
call fcn.0043151e
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043223c
mov esp, ebp
pop ebp
ret
call fcn.004377c0
call fcn.004377c0
call fcn.004377c0
call fcn.004377c0
push 1
call fcn.00437a44
call fcn.004377c0
call fcn.004377c0
call fcn.004377c0
call fcn.004377c0
int3