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

Disassembly:
sub esp, 0x10
mov eax, dword fs:[0x30]
push ebx
push ebp
push esi
mov ebx, dword [eax + 0xc]
add ebx, 0xc
mov dword [esp + 0x18], ecx
push edi
mov dword [esp + 0x18], ebx
mov ebp, dword [ebx]
cmp ebp, ebx
je 0x3c408d
mov esi, dword [ebp + 0x30]
mov dword [esp + 0x10], 0x4090
or dword [esp + 0x10], 0x31656b5b
imul eax, dword [esp + 0x10], 0x51
mov dword [esp + 0x10], eax
mov eax, 0xb02c0b03
mov ecx, dword [esp + 0x10]
mul ecx
shr edx, 6
mov dword [esp + 0x10], edx
shl dword [esp + 0x10], 0x10
or dword [esp + 0x10], 0xecb0ddf8
add dword [esp + 0x10], 0x637e
xor dword [esp + 0x10], 0xeef54176
mov dword [esp + 0x14], 0x5ef
add dword [esp + 0x14], 0x6fab
or dword [esp + 0x14], 0x1ac9183b
shl dword [esp + 0x14], 8
shr dword [esp + 0x14], 2
xor dword [esp + 0x14], 0x325f6ec6
mov dword [esp + 0x14], 0xc1f4
add dword [esp + 0x14], 0x1c7b
or dword [esp + 0x14], 0x28c630b6
add dword [esp + 0x14], 0xffff17a2
shl dword [esp + 0x14], 0xb
xor dword [esp + 0x14], 0x30b50810
cmp word [esi], 0
je 0x3c4073
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x14], 0x5ef
add dword [esp + 0x14], 0x6fab
or dword [esp + 0x14], 0x1ac9183b
shl dword [esp + 0x14], 8
shr dword [esp + 0x14], 2
xor dword [esp + 0x14], 0x325f6ec6
movzx ecx, byte [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], 0xc1f4
add dword [esp + 0x14], 0x1c7b
or dword [esp + 0x14], 0x28c630b6
add dword [esp + 0x14], 0xffff17a2
shl dword [esp + 0x14], 0xb
xor dword [esp + 0x14], 0x30b50810
shl edx, cl
movzx ecx, byte [esp + 0x14]
mov edi, dword [esp + 0x10]
movzx eax, word [esi]
shl edi, cl
cmp eax, 0x41
jb 0x3c4052
cmp eax, 0x5a
ja 0x3c4052
add eax, 0x20
mov dword [esp + 0x10], eax
add esi, 2
add dword [esp + 0x10], edx
add dword [esp + 0x10], edi
sub dword [esp + 0x10], ebx
cmp word [esi], 0
jne 0x3c3fd1
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
xor eax, 0x14d5ed60
cmp eax, dword [esp + 0x1c]
je 0x3c4097
mov ebp, dword [ebp]
cmp ebp, ebx
jne 0x3c3f25
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x3c4370
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub esp, 0x14
push ebp
mov ebp, ecx
mov dword [esp + 0x10], ebp
push edi
cmp edx, 0x40
jb 0x3c450e
mov eax, 0x5a4d
cmp word [ebp], ax
jne 0x3c450e
mov edi, dword [ebp + 0x3c]
add edi, ebp
mov dword [esp + 0x18], edi
cmp dword [edi], 0x4550
jne 0x3c450e
mov eax, 0x10b
cmp word [edi + 0x18], ax
jne 0x3c450e
mov eax, dword [0x3ce2a4]
test eax, eax
jne 0x3c43db
mov ecx, 0x9bab0b12
call fcn.003c3f00
mov edx, 0x24897df
mov ecx, eax
call fcn.003c3e60
mov dword [0x3ce2a4], eax
push ebx
push 0x40
push 0x3000
push dword [edi + 0x50]
push 0
call eax
mov ebx, eax
test ebx, ebx
je 0x3c4505
movzx ecx, word [edi + 0x14]
push esi
lea esi, [edi + 0x18]
add esi, ecx
movzx ecx, word [edi + 6]
mov dword [esp + 0x18], esi
lea ecx, [ecx + ecx*4]
lea eax, [esi + ecx*8]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [0x3ce1e0]
test eax, eax
jne 0x3c443b
mov ecx, 0xc6fbcd74
call fcn.003c3f00
mov edx, 0x624eee2
mov ecx, eax
call fcn.003c3e60
mov dword [0x3ce1e0], eax
push dword [esp + 0x10]
push ebp
push ebx
call eax
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp esi, ecx
jae 0x3c44be
sub ecx, dword [esp + 0x18]
mov eax, 0xcccccccd
dec ecx
add esi, 0x10
mul ecx
mov ecx, edx
shr ecx, 5
inc ecx
mov edi, ecx
mov ebp, dword [esi]
cmp dword [esi - 8], ebp
mov eax, dword [esi + 4]
cmovb ebp, dword [esi - 8]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esi - 4]
add eax, ebx
mov dword [esp + 0x14], eax
mov eax, dword [0x3ce1e0]
test eax, eax
jne 0x3c44a6
mov ecx, 0xc6fbcd74
call fcn.003c3f00
mov edx, 0x624eee2
mov ecx, eax
call fcn.003c3e60
mov dword [0x3ce1e0], eax
push ebp
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call eax
add esp, 0xc
add esi, 0x28
dec edi
jne 0x3c4465
mov edi, dword [esp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.003c4640
mov edx, edi
mov ecx, ebx
call fcn.003c4550
pop esi
test eax, eax
jne 0x3c4505
mov eax, dword [0x3ce3cc]
test eax, eax
jne 0x3c44f9
mov ecx, 0x9bab0b12
call fcn.003c3f00
mov edx, 0xc16beec2
mov ecx, eax
call fcn.003c3e60
mov dword [0x3ce3cc], eax
push 0x8000
push 0
push ebx
call eax
xor ebx, ebx
mov eax, ebx
pop ebx
pop edi
pop ebp
add esp, 0x14
ret
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
Function at 0x100018a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov dword [ebp - 4], 0
test eax, eax
je 0x100019e1
test edi, edi
je 0x100019e1
push esi
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10001901
test ebx, ebx
je 0x100018f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CprjWriteFileTestDlg::WriteTextToTxtFileAppend_:_CreateFile_failed__Error_Code___d
mov edx, ebx
call fcn.10003e80
add esp, 8
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1000193c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x100018f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CprjWriteFileTestDlg::WriteTextToTxtFileAppend_:_SetFilePointer_failed__Error_Code___d
mov edx, ebx
call fcn.10003e80
add esp, 8
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push edi
call fcn.100017b0
mov edi, eax
add esp, 4
test edi, edi
jne 0x10001977
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x100018f9
mov eax, str.CprjWriteFileTestDlg::WriteTextToTxtFileAppend_:_CStaticPubFunc::pwcharTopcharEx_failed_
mov edx, ebx
sub edx, eax
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10001960
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001980
push 0
lea ecx, [ebp - 4]
push ecx
sub eax, edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100019c9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x100018f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CprjWriteFileTestDlg::WriteTextToTxtFileAppend_:_WriteFile_failed__Error_Code___d
mov edx, ebx
call fcn.10003e80
add esp, 8
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push edi
call fcn.10009a52
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x100019ff
mov eax, 0x1001ef08
mov edx, ebx
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x100019f0
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10001a10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
test eax, eax
je 0x10001afc
cmp dword [ebp + 8], 0
je 0x10001afc
test ebx, ebx
je 0x10001afc
push esi
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10001a77
test edi, edi
je 0x10001a70
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CprjWriteFileTestDlg::WriteTextToTxtFileAppend_:_CreateFile_failed__Error_Code___d
mov edx, edi
call fcn.10003e80
add esp, 8
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10001ab1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x10001a70
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CprjWriteFileTestDlg::WriteTextToTxtFileAppend_:_SetFilePointer_failed__Error_Code___d
mov edx, edi
call fcn.10003e80
add esp, 8
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x10001aef
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x10001a70
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CprjWriteFileTestDlg::WriteTextToTxtFileAppend_:_WriteFile_failed__Error_Code___d
mov edx, edi
call fcn.10003e80
add esp, 8
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x10001b1f
mov eax, str.CprjWriteFileTestDlg::WriteTextToTxtFileAppend_:_lpszTxtFileFullPathName_is_NULL_or_pbyteBuffer_is_NULL
mov edx, edi
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10001b10
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x10002750
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001a8db
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100223b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.10008961
push 4
mov dword [ebp - 4], 0
call fcn.1000952e
mov edi, eax
add esp, 4
test edi, edi
je 0x100027cc
call fcn.10008c71
mov dword [edi], eax
call fcn.10008a30
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.10008922
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x100027c2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.1000894a
jmp 0x100027ce
xor edi, 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
mov dword [esi + 0x38], edi
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 eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10004390
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b298
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x100223b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], ebx
mov ecx, dword [0x10024738]
test ecx, ecx
jne 0x10004485
lea edx, [ebp - 0x64]
push edx
call fcn.10001400
add esp, 4
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.10004e50
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.10002440
mov esi, 8
cmp dword [ebp - 0x34], esi
jb 0x1000441a
mov eax, dword [ebp - 0x48]
push eax
call fcn.1000935c
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x50], esi
jb 0x1000443c
mov edx, dword [ebp - 0x64]
push edx
call fcn.1000935c
add esp, 4
xor eax, eax
mov word [ebp - 0x64], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
cmp dword [ebp - 0x18], esi
jae 0x10004453
lea eax, [ebp - 0x2c]
push eax
push ebx
push str.WriteDebugLog
push str.GeneralOption
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x10024734], eax
mov dword [0x10024738], 1
cmp dword [ebp - 0x18], esi
jb 0x10004485
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1000935c
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000934d
mov esp, ebp
pop ebp
ret

Function at 0x1000934d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100223b8]
jne 0x10009357
repz ret
jmp fcn.1000d09f
Function at 0x10016c0a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100223b8]
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.1000edcb
and dword [ebp - 0x14], 0
cmp dword [0x1002470c], 0
mov dword [ebp - 0x18], eax
jne 0x10016cbd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10016d65
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10016d65
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1002470c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10024710], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10024714], eax
call edi
push eax
call esi
mov dword [0x1002471c], eax
test eax, eax
je 0x10016cbd
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10024718], eax
mov eax, dword [0x10024718]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10016d16
cmp dword [0x1002471c], ecx
je 0x10016d16
push eax
call esi
push dword [0x1002471c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10016d16
test ebx, ebx
je 0x10016d16
call edi
test eax, eax
je 0x10016d0d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10016d0d
test byte [ebp - 8], 1
jne 0x10016d16
or dword [ebp + 0x10], 0x200000
jmp 0x10016d49
mov eax, dword [0x10024710]
cmp eax, dword [ebp - 0x18]
je 0x10016d49
push eax
call esi
test eax, eax
je 0x10016d49
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10016d49
mov eax, dword [0x10024714]
cmp eax, dword [ebp - 0x18]
je 0x10016d49
push eax
call esi
test eax, eax
je 0x10016d49
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1002470c]
call esi
test eax, eax
je 0x10016d65
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10016d67
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000934d
leave
ret
Function at 0x403340
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x120
mov eax, dword [0x447010]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x104
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xf
lea edx, [ecx + 1]
mov byte [esp], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403390
push esi
sub ecx, edx
lea eax, [esp + 0x1c]
push ecx
push eax
lea ecx, [esp + 0xc]
call fcn.004028f0
lea eax, [esp + 4]
push eax
call fcn.004030f0
mov edx, dword [esp + 0x1c]
add esp, 4
mov esi, eax
cmp edx, 0x10
jb 0x4033ea
mov ecx, dword [esp + 4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4033e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403404
push edx
push ecx
call fcn.00413f32
add esp, 8
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00413f45
add esp, 0x120
ret 0x10
call fcn.00418cac
int3

Function at 0x4057b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x447010]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x405872
cmp byte [esi + 0x3d], 0
je 0x405872
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40585f
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x405824
sub eax, 1
je 0x405828
sub eax, 2
jne 0x40585f
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00413f45
add esp, 0x28
ret
mov byte [esi + 0x3d], 0
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
sub edi, eax
je 0x405847
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0041a1e6
add esp, 0x10
cmp edi, eax
jne 0x40585f
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00413f45
add esp, 0x28
ret
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00413f45
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
mov al, 1
pop esi
xor ecx, esp
call fcn.00413f45
add esp, 0x28
ret
Function at 0x408cc0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x447010]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x408cf0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00413f45
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x408d2d
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x408d2d
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00413f45
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
je 0x408e22
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x408d55
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x408d89
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00419891
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00413f45
add esp, 0x30
ret 4
mov byte [esp + 0xc], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1d]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x408e22
cmp eax, 1
jle 0x408df1
cmp eax, 3
jne 0x408e22
push dword [esi + 0x4c]
push dword [esp + 0x10]
call fcn.004038a0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00413f45
add esp, 0x30
ret 4
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x18]
sub edi, eax
je 0x408e10
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0041a1e6
add esp, 0x10
cmp edi, eax
jne 0x408e22
lea eax, [esp + 0xc]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x14], eax
jne 0x408d17
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00413f45
add esp, 0x30
ret 4
Function at 0x409d40
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, ecx
test eax, eax
jg 0x409d61
jl 0x409d57
test esi, esi
jne 0x409d61
pop edi
xor eax, eax
xor edx, edx
pop esi
pop ecx
ret 0xc
cmp dword [edi + 0x38], 0
push ebx
push ebp
mov ebx, esi
je 0x409e14
mov ebp, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
nop dword [eax]
mov ecx, edi
call fcn.004059e0
mov esi, eax
mov eax, edx
mov dword [esp + 0x10], eax
test eax, eax
jl 0x409dd1
jg 0x409d99
test esi, esi
je 0x409dd1
cmp ebp, eax
jg 0x409da9
jl 0x409da3
cmp ebx, esi
jae 0x409da9
mov esi, ebx
mov dword [esp + 0x10], ebp
mov eax, dword [edi + 0x1c]
push esi
push dword [eax]
push dword [esp + 0x20]
call fcn.004156d0
mov eax, dword [edi + 0x2c]
add esp, 0xc
sub ebx, esi
sbb ebp, dword [esp + 0x10]
sub dword [eax], esi
mov eax, dword [edi + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x18]
jmp 0x409df0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x409e00
mov eax, dword [esp + 0x18]
add ebx, 0xffffffff
mov esi, 1
adc ebp, 0xffffffff
mov byte [eax], cl
add eax, esi
mov dword [esp + 0x18], eax
test ebp, ebp
jg 0x409d80
jl 0x409e00
test ebx, ebx
jne 0x409d80
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, ebx
sbb edx, ebp
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret 0xc
mov eax, dword [edi + 0x1c]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x10], esi
mov ecx, dword [eax]
test ecx, ecx
je 0x409e58
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x409e58
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
cmovb esi, eax
push esi
push ecx
push ebp
call fcn.004156d0
mov eax, dword [edi + 0x2c]
sub ebx, esi
add ebp, esi
mov dword [esp + 0x1c], ebx
add esp, 0xc
sub dword [eax], esi
mov eax, dword [edi + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
cmp dword [edi + 0x4c], 0
je 0x409efc
mov ecx, dword [edi + 0xc]
lea eax, [edi + 0x3c]
cmp dword [ecx], eax
jne 0x409e83
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 0x54]
mov ecx, dword [edi + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [edi + 0x1c]
mov dword [eax], ecx
mov eax, dword [edi + 0x2c]
mov dword [eax], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], edx
cmp edx, 0xfff
jbe 0x409ebb
push dword [edi + 0x4c]
push 0xfff
push 1
push ebp
call fcn.00419b79
sub ebx, eax
add esp, 0x10
add ebp, eax
mov dword [esp + 0x18], ebx
mov edx, ebx
cmp eax, 0xfff
jne 0x409ee9
cmp ebx, eax
ja 0x409e93
mov ecx, edx
test edx, edx
je 0x409f00
push dword [edi + 0x4c]
push ebx
push 1
push ebp
call fcn.00419b79
mov ecx, dword [esp + 0x28]
add esp, 0x10
mov edx, dword [esp + 0x20]
sub ecx, eax
sub esi, ecx
mov eax, esi
pop ebp
pop ebx
pop edi
sbb edx, 0
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x20]
sub esi, ebx
pop ebp
pop ebx
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ecx
ret 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
sub esi, ecx
pop ebp
pop ebx
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ecx
ret 0xc