joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4110a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x4110af
pop dword [ebp - 0x28]
mov eax, 0xe739c6ba
add eax, 0x190749f5
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x7cb26e64
add dword [ebp - 0x38], 0xd19fd6e7
mov dword [ebp - 0x34], 0x27cde593
add dword [ebp - 0x34], 0xa6566b2
mov dword [ebp - 0x30], 0xd3021867
add dword [ebp - 0x30], 0x794a2bc7
mov dword [ebp - 0x2c], 0x4792f8f2
add dword [ebp - 0x2c], 0xb86d070e
lea eax, [ebp - 0x38]
push eax
mov eax, 0xf082b7ec
sub eax, 0xf03fd694
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x98a84ded
sub dword [ebp - 0x38], 0x2435e497
mov dword [ebp - 0x34], 0x4c9715c5
sub dword [ebp - 0x34], 0xb2ab450
mov dword [ebp - 0x30], 0x5ab7e5dd
add dword [ebp - 0x30], 0x8b7868f
mov dword [ebp - 0x2c], 0xbae62e2c
add dword [ebp - 0x2c], 0x4519d1d4
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0xaed334e
sub eax, 0xaaa533a
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x4031a
push 0
call eax
mov ecx, 0x5091b6fc
sub ecx, 0x5091714f
xor esi, esi
add esi, eax
mov edx, 0x8d7262f8
sub edx, 0x8d2c52f8
add edx, dword [ebp - 0x28]
mov ebx, 0x11f808ca
add ebx, 0x9b0d6715
mov edi, dword [edx]
sub dword [ebp - 4], eax
add edi, ebx
xor dword [ebp - 0x14], eax
mov dword [esi], edi
add dword [ebp - 4], 0xbf4e70ef
add esi, 4
add edx, 4
loop 0x4111d3
add eax, 0xea7ba168
add eax, 0x1585681f
xor ebx, ebx
add ebx, eax
add eax, 0x6b8c9212
add eax, 0x94736df3
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x401040
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426c29
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x433018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 8]
mov dword [esi], vtable.CDVMFileIO.0
xor eax, eax
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], eax
mov dword [ebp - 0x238], esi
mov word [edi], cx
push eax
push 0x23
lea edx, [ebp - 0x218]
push edx
mov dword [ebp - 4], eax
push eax
mov dword [esi + 4], 0x23
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test ebx, ebx
je 0x401171
xor eax, eax
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
lea edx, [eax + 2]
jmp 0x4010e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4010e0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x234]
call fcn.00401b40
push 1
mov eax, 0x42953c
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00401a10
mov eax, ebx
lea edx, [eax + 2]
jmp 0x401120
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401120
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [ebp - 0x234]
call fcn.00401a10
push 0
lea ecx, [ebp - 0x234]
push ecx
or eax, 0xffffffff
mov ecx, edi
call fcn.00401880
cmp dword [ebp - 0x220], 8
jb 0x401169
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x238]
jmp 0x401173
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042543a
mov esp, ebp
pop ebp
ret
Function at 0x401480
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x427551
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x433018]
xor eax, esp
mov dword [esp + 0x2b0], eax
push ebx
push esi
push edi
mov eax, dword [0x433018]
xor eax, esp
push eax
lea eax, [esp + 0x2c8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
xor ecx, ecx
mov edi, edx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], cx
add eax, 8
push ebx
push eax
or eax, 0xffffffff
lea ecx, [esp + 0x3c]
mov dword [esp + 0x2d8], ebx
call fcn.00401880
push 1
mov eax, 0x42953c
lea ecx, [esp + 0x38]
call fcn.00401a10
push ebx
lea eax, [esp + 0x38]
xor edx, edx
push eax
or eax, 0xffffffff
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], dx
call fcn.00401880
push 1
mov eax, 0x429540
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2d4], 1
call fcn.00401a10
cmp esi, ebx
je 0x40156b
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401550
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [esp + 0x1c]
call fcn.00401a10
mov eax, dword [esp + 0x18]
mov esi, 8
cmp dword [esp + 0x2c], esi
jae 0x40157e
lea eax, [esp + 0x18]
lea ecx, [esp + 0x6c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
test byte [esp + 0x6c], 0x10
jne 0x401615
xor edx, edx
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], dx
push ebx
lea eax, [esp + 0x38]
push eax
or eax, 0xffffffff
lea ecx, [esp + 0x58]
mov byte [esp + 0x2d8], 2
call fcn.00401880
lea eax, [esp + 0x98]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4015d0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x54]
call fcn.00401a10
lea ecx, [esp + 0x50]
call fcn.00401740
mov byte [esp + 0x2d0], 1
cmp dword [esp + 0x64], esi
jb 0x401615
mov ecx, dword [esp + 0x50]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x6c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40158e
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x2c], esi
jb 0x40164c
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], ax
cmp dword [esp + 0x48], esi
jb 0x401673
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x2c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2b0]
xor ecx, esp
call fcn.0042543a
mov esp, ebp
pop ebp
ret 4
Function at 0x402380
Capabilities:
Hash data using fnv

Disassembly:
push esi
push edi
mov edi, dword [ebx + 0x10]
mov eax, 0xcccccccd
mul edi
shr edx, 3
xor ecx, ecx
inc edx
mov esi, 0x811c9dc5
test edi, edi
je 0x4023be
jmp 0x4023a0
cmp dword [ebx + 0x14], 8
jb 0x4023aa
mov eax, dword [ebx]
jmp 0x4023ac
mov eax, ebx
movzx eax, word [eax + ecx*2]
imul esi, esi, 0x1000193
add ecx, edx
xor esi, eax
cmp ecx, edi
jb 0x4023a0
pop edi
mov eax, esi
pop esi
ret

Function at 0x4027e0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov esi, ecx
test eax, eax
je 0x40282e
cmp word [eax], 0
je 0x40282e
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x40282e
cmp dword [ebp - 4], 1
jne 0x40281e
mov eax, dword [edi]
push 0x4333a4
call fcn.00401710
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x4333b4], 0
jne 0x402836
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x433210
push 0x67
push esi
call edi
push 0x64
push 0x4332d8
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00402f60
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x433210
push 0x4332d8
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x40282e
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [0x4333b8], 8
mov eax, dword [0x4333a4]
jae 0x4028b0
mov eax, 0x4333a4
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, dword [sym.imp.USER32.dll_ChangeWindowMessageFilter]
push 1
push 2
mov dword [0x4333a0], eax
call esi
push 1
push 0x800a
call esi
push 1
push 0x4a
call esi
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea edx, [ebp - 0x20]
push edx
call esi
test eax, eax
je 0x40291d
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
mov edi, edi
lea eax, [ebp - 0x20]
push eax
call edi
lea ecx, [ebp - 0x20]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [ebp - 0x20]
push edx
call esi
test eax, eax
jne 0x402900
pop ebx
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406450
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
cmp eax, dword [esi + 8]
jb 0x40647a
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40647a
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0xff
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x4064a6
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x4064a6
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0xfe
inc dword [esi + 0xc]
pop edi
ret

Function at 0x4065f0
Capabilities:
Write file on windows

Disassembly:
add dword [edi + 0x10], 0xfffffff8
mov eax, dword [edi + 0x10]
cmp dword [eax], 0
push esi
je 0x406625
mov eax, dword [edi]
mov esi, dword [eax]
push 0xa
call fcn.00407e30
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
movzx ecx, word [edi + 0x20]
mov edx, dword [edi]
shr eax, 3
imul eax, dword [edi + 0x24]
push ecx
push edx
call fcn.00407ea0
add esp, 0xc
mov eax, dword [edi]
mov esi, dword [eax]
push 0x7d
call fcn.00407e30
mov ecx, dword [edi + 0x10]
add esp, 4
cmp ecx, dword [edi + 0xc]
jne 0x406661
mov edx, dword [edi]
mov esi, dword [edx]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x406661
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov al, 1
pop esi
ret

Function at 0x406670
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426693
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x433018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor edi, edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], 0x400
mov byte [ebp - 4], 1
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
cmp dword [esi + 0x18], edi
jne 0x406702
push 0x14
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, edi
je 0x4066fa
mov dword [eax], edi
mov dword [eax + 4], 0x10000
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
jmp 0x4066fc
xor eax, eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
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 4
Function at 0x407e30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
cmp eax, dword [esi + 8]
jb 0x407e5d
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x407e5d
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov dl, byte [ebp + 8]
mov byte [ecx], dl
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x407e8b
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x407e8b
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0xc]
shr ecx, 8
mov byte [edx], cl
inc dword [esi + 0xc]
pop edi
pop ebp
ret

Function at 0x407ea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
test eax, eax
je 0x407f37
mov cx, word [ebp + 0xc]
push ebx
push esi
shr cx, 8
push edi
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
mov word [ebp - 2], cx
mov dword [ebp - 8], eax
mov ebx, 1
jmp 0x407ed0
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x407ef7
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x407ef7
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push ebx
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov dl, byte [ebp + 0xc]
mov byte [ecx], dl
add dword [esi + 0xc], ebx
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x407f24
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x407f24
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push ebx
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov dl, byte [ebp - 2]
mov byte [ecx], dl
add dword [esi + 0xc], ebx
sub dword [ebp - 8], ebx
jne 0x407ed0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, eax
call fcn.004067d0
mov eax, dword [ebx + 0x10]
lea esi, [ebx + 4]
add eax, 8
cmp eax, dword [esi + 0x10]
jb 0x40f2b0
call fcn.0040cef0
mov eax, dword [esi + 0xc]
lea ecx, [eax + 8]
mov dword [esi + 0xc], ecx
test eax, eax
je 0x40f2c7
mov dword [eax], 0
mov byte [eax + 4], 1
mov edx, dword [ebx]
mov esi, dword [edx]
push 0x5b
call fcn.00407e30
mov eax, dword [ebp + 8]
mov esi, dword [eax]
add esp, 4
cmp esi, dword [eax + 4]
je 0x40f2f9
nop
movzx edi, byte [esi]
call fcn.004067d0
push edi
mov ecx, ebx
call fcn.00412c50
mov eax, dword [ebp + 8]
inc esi
cmp esi, dword [eax + 4]
jne 0x40f2e0
add dword [ebx + 0x10], 0xfffffff8
mov eax, dword [ebx + 0x10]
cmp dword [eax], 0
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
je 0x40f384
mov ecx, dword [ebx]
mov esi, dword [ecx]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40f332
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f332
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0xa
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40f35e
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f35e
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0
inc dword [esi + 0xc]
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
movzx edx, word [ebx + 0x20]
mov ecx, dword [ebx]
shr eax, 3
imul eax, dword [ebx + 0x24]
push edx
push ecx
call fcn.00407ea0
add esp, 8
mov edx, dword [ebx]
mov esi, dword [edx]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40f3ab
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f3ab
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0x5d
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40f3d7
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f3d7
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0
inc dword [esi + 0xc]
mov edx, dword [ebx + 0x10]
cmp edx, dword [ebx + 0xc]
jne 0x40f40a
mov eax, dword [ebx]
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f40a
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x40f420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov ebx, ecx
mov edi, eax
call fcn.004067d0
mov eax, dword [ebx + 0x10]
lea esi, [ebx + 4]
add eax, 8
cmp eax, dword [esi + 0x10]
jb 0x40f445
call fcn.0040cef0
mov eax, dword [esi + 0xc]
lea ecx, [eax + 8]
mov dword [esi + 0xc], ecx
test eax, eax
je 0x40f45c
mov dword [eax], 0
mov byte [eax + 4], 1
mov edx, dword [ebx]
mov esi, dword [edx]
push 0x5b
call fcn.00407e30
add esp, 4
lea eax, [ebp - 0xc]
mov ecx, edi
call fcn.00411f80
lea eax, [ebp - 0x18]
mov edx, edi
call fcn.00412080
mov esi, dword [ebp - 4]
cmp esi, dword [eax + 8]
je 0x40f4bf
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40f491
xor ecx, ecx
jmp 0x40f493
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov eax, esi
cmp edx, esi
ja 0x40f49e
sub eax, edx
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax*4]
push edx
mov eax, ebx
call fcn.0040eab0
add esp, 4
lea eax, [ebp - 0x18]
mov edx, edi
inc esi
call fcn.00412080
cmp esi, dword [eax + 8]
jne 0x40f486
add dword [ebx + 0x10], 0xfffffff8
mov eax, dword [ebx + 0x10]
cmp dword [eax], 0
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
je 0x40f54a
mov eax, dword [ebx]
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40f4f8
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f4f8
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0xa
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40f524
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f524
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0
inc dword [esi + 0xc]
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
movzx edx, word [ebx + 0x20]
mov ecx, dword [ebx]
shr eax, 3
imul eax, dword [ebx + 0x24]
push edx
push ecx
call fcn.00407ea0
add esp, 8
mov edx, dword [ebx]
mov esi, dword [edx]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40f571
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f571
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0x5d
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40f59d
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f59d
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0
inc dword [esi + 0xc]
mov edx, dword [ebx + 0x10]
cmp edx, dword [ebx + 0xc]
jne 0x40f5d0
mov eax, dword [ebx]
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f5d0
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f5e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov ebx, ecx
mov edi, eax
call fcn.004067d0
mov eax, dword [ebx + 0x10]
lea esi, [ebx + 4]
add eax, 8
cmp eax, dword [esi + 0x10]
jb 0x40f605
call fcn.0040cef0
mov eax, dword [esi + 0xc]
lea ecx, [eax + 8]
mov dword [esi + 0xc], ecx
test eax, eax
je 0x40f61c
mov dword [eax], 0
mov byte [eax + 4], 1
mov edx, dword [ebx]
mov esi, dword [edx]
push 0x5b
call fcn.00407e30
add esp, 4
lea eax, [ebp - 0xc]
mov ecx, edi
call fcn.00411f80
lea eax, [ebp - 0x18]
mov edx, edi
call fcn.00412080
mov esi, dword [ebp - 4]
cmp esi, dword [eax + 8]
je 0x40f67f
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40f651
xor ecx, ecx
jmp 0x40f653
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov eax, esi
cmp edx, esi
ja 0x40f65e
sub eax, edx
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax*4]
push edx
mov eax, ebx
call fcn.0040ec80
add esp, 4
lea eax, [ebp - 0x18]
mov edx, edi
inc esi
call fcn.00412080
cmp esi, dword [eax + 8]
jne 0x40f646
add dword [ebx + 0x10], 0xfffffff8
mov eax, dword [ebx + 0x10]
cmp dword [eax], 0
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
je 0x40f70a
mov eax, dword [ebx]
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40f6b8
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f6b8
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0xa
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40f6e4
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f6e4
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0
inc dword [esi + 0xc]
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
movzx edx, word [ebx + 0x20]
mov ecx, dword [ebx]
shr eax, 3
imul eax, dword [ebx + 0x24]
push edx
push ecx
call fcn.00407ea0
add esp, 8
mov edx, dword [ebx]
mov esi, dword [edx]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40f731
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f731
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0x5d
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40f75d
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f75d
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0
inc dword [esi + 0xc]
mov edx, dword [ebx + 0x10]
cmp edx, dword [ebx + 0xc]
jne 0x40f790
mov eax, dword [ebx]
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f790
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret