joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4079f0
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 0x407a1d
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x407a1d
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 0x407a4b
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x407a4b
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 0x407a60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
test eax, eax
je 0x407af7
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 0x407a90
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x407ab7
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x407ab7
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 0x407ae4
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x407ae4
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 0x407a90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40eed0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, eax
call fcn.00406390
mov eax, dword [ebx + 0x10]
lea esi, [ebx + 4]
add eax, 8
cmp eax, dword [esi + 0x10]
jb 0x40eef0
call fcn.0040cac0
mov eax, dword [esi + 0xc]
lea ecx, [eax + 8]
mov dword [esi + 0xc], ecx
test eax, eax
je 0x40ef07
mov dword [eax], 0
mov byte [eax + 4], 1
mov edx, dword [ebx]
mov esi, dword [edx]
push 0x5b
call fcn.004079f0
mov eax, dword [ebp + 8]
mov esi, dword [eax]
add esp, 4
cmp esi, dword [eax + 4]
je 0x40ef39
nop
movzx edi, byte [esi]
call fcn.00406390
push edi
mov ecx, ebx
call fcn.004127d0
mov eax, dword [ebp + 8]
inc esi
cmp esi, dword [eax + 4]
jne 0x40ef20
add dword [ebx + 0x10], 0xfffffff8
mov eax, dword [ebx + 0x10]
cmp dword [eax], 0
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
je 0x40efc4
mov ecx, dword [ebx]
mov esi, dword [ecx]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40ef72
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40ef72
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 0x40ef9e
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40ef9e
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.00407a60
add esp, 8
mov edx, dword [ebx]
mov esi, dword [edx]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40efeb
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40efeb
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 0x40f017
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f017
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 0x40f04a
mov eax, dword [ebx]
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f04a
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 0x40f060
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.00406390
mov eax, dword [ebx + 0x10]
lea esi, [ebx + 4]
add eax, 8
cmp eax, dword [esi + 0x10]
jb 0x40f085
call fcn.0040cac0
mov eax, dword [esi + 0xc]
lea ecx, [eax + 8]
mov dword [esi + 0xc], ecx
test eax, eax
je 0x40f09c
mov dword [eax], 0
mov byte [eax + 4], 1
mov edx, dword [ebx]
mov esi, dword [edx]
push 0x5b
call fcn.004079f0
add esp, 4
lea eax, [ebp - 0xc]
mov ecx, edi
call fcn.00413b00
lea eax, [ebp - 0x18]
mov edx, edi
call fcn.00416b90
mov esi, dword [ebp - 4]
cmp esi, dword [eax + 8]
je 0x40f0ff
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40f0d1
xor ecx, ecx
jmp 0x40f0d3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov eax, esi
cmp edx, esi
ja 0x40f0de
sub eax, edx
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax*4]
push edx
mov eax, ebx
call fcn.0040e6f0
add esp, 4
lea eax, [ebp - 0x18]
mov edx, edi
inc esi
call fcn.00416b90
cmp esi, dword [eax + 8]
jne 0x40f0c6
add dword [ebx + 0x10], 0xfffffff8
mov eax, dword [ebx + 0x10]
cmp dword [eax], 0
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
je 0x40f18a
mov eax, dword [ebx]
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40f138
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f138
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 0x40f164
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f164
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.00407a60
add esp, 8
mov edx, dword [ebx]
mov esi, dword [edx]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40f1b1
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f1b1
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 0x40f1dd
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f1dd
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 0x40f210
mov eax, dword [ebx]
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f210
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 0x40f220
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.00406390
mov eax, dword [ebx + 0x10]
lea esi, [ebx + 4]
add eax, 8
cmp eax, dword [esi + 0x10]
jb 0x40f245
call fcn.0040cac0
mov eax, dword [esi + 0xc]
lea ecx, [eax + 8]
mov dword [esi + 0xc], ecx
test eax, eax
je 0x40f25c
mov dword [eax], 0
mov byte [eax + 4], 1
mov edx, dword [ebx]
mov esi, dword [edx]
push 0x5b
call fcn.004079f0
add esp, 4
lea eax, [ebp - 0xc]
mov ecx, edi
call fcn.00413b00
lea eax, [ebp - 0x18]
mov edx, edi
call fcn.00416b90
mov esi, dword [ebp - 4]
cmp esi, dword [eax + 8]
je 0x40f2bf
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40f291
xor ecx, ecx
jmp 0x40f293
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov eax, esi
cmp edx, esi
ja 0x40f29e
sub eax, edx
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax*4]
push edx
mov eax, ebx
call fcn.0040e8c0
add esp, 4
lea eax, [ebp - 0x18]
mov edx, edi
inc esi
call fcn.00416b90
cmp esi, dword [eax + 8]
jne 0x40f286
add dword [ebx + 0x10], 0xfffffff8
mov eax, dword [ebx + 0x10]
cmp dword [eax], 0
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
je 0x40f34a
mov eax, dword [ebx]
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40f2f8
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f2f8
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 0x40f324
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f324
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.00407a60
add esp, 8
mov edx, dword [ebx]
mov esi, dword [edx]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40f371
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f371
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 0x40f39d
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f39d
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 0x40f3d0
mov eax, dword [ebx]
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f3d0
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 0x40f3e0
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.00406390
mov eax, dword [ebx + 0x10]
lea esi, [ebx + 4]
add eax, 8
cmp eax, dword [esi + 0x10]
jb 0x40f405
call fcn.0040cac0
mov eax, dword [esi + 0xc]
lea ecx, [eax + 8]
mov dword [esi + 0xc], ecx
test eax, eax
je 0x40f41c
mov dword [eax], 0
mov byte [eax + 4], 1
mov edx, dword [ebx]
mov esi, dword [edx]
push 0x5b
call fcn.004079f0
add esp, 4
lea eax, [ebp - 0xc]
mov ecx, edi
call fcn.00413b00
lea eax, [ebp - 0x18]
mov edx, edi
call fcn.00416b90
mov esi, dword [ebp - 4]
cmp esi, dword [eax + 8]
je 0x40f47b
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40f451
xor ecx, ecx
jmp 0x40f453
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov eax, esi
cmp edx, esi
ja 0x40f45e
sub eax, edx
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax*4]
mov ecx, ebx
call fcn.0040ea90
lea eax, [ebp - 0x18]
mov edx, edi
inc esi
call fcn.00416b90
cmp esi, dword [eax + 8]
jne 0x40f446
add dword [ebx + 0x10], 0xfffffff8
mov eax, dword [ebx + 0x10]
cmp dword [eax], 0
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
je 0x40f506
mov edx, dword [ebx]
mov esi, dword [edx]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40f4b4
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f4b4
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 0x40f4e0
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f4e0
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.00407a60
add esp, 8
mov edx, dword [ebx]
mov esi, dword [edx]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40f52d
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f52d
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 0x40f559
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f559
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 0x40f58c
mov eax, dword [ebx]
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f58c
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 0x40f5a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov ebx, ecx
mov edi, eax
call fcn.00406390
mov eax, dword [ebx + 0x10]
lea esi, [ebx + 4]
add eax, 8
cmp eax, dword [esi + 0x10]
jb 0x40f5c5
call fcn.0040cac0
mov eax, dword [esi + 0xc]
lea ecx, [eax + 8]
mov dword [esi + 0xc], ecx
test eax, eax
je 0x40f5dc
mov dword [eax], 0
mov byte [eax + 4], 1
mov edx, dword [ebx]
mov esi, dword [edx]
push 0x5b
call fcn.004079f0
add esp, 4
lea eax, [ebp - 0xc]
mov ecx, edi
call fcn.00413b00
lea eax, [ebp - 0x18]
mov edx, edi
call fcn.00416b90
mov esi, dword [ebp - 4]
cmp esi, dword [eax + 8]
je 0x40f63f
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40f611
xor ecx, ecx
jmp 0x40f613
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov eax, esi
cmp edx, esi
ja 0x40f61e
sub eax, edx
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax*4]
push edx
mov eax, ebx
call fcn.0040ece0
add esp, 4
lea eax, [ebp - 0x18]
mov edx, edi
inc esi
call fcn.00416b90
cmp esi, dword [eax + 8]
jne 0x40f606
add dword [ebx + 0x10], 0xfffffff8
mov eax, dword [ebx + 0x10]
cmp dword [eax], 0
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
je 0x40f6ca
mov eax, dword [ebx]
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40f678
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f678
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 0x40f6a4
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f6a4
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.00407a60
add esp, 8
mov edx, dword [ebx]
mov esi, dword [edx]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x40f6f1
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f6f1
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 0x40f71d
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f71d
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 0x40f750
mov eax, dword [ebx]
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40f750
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 0x4127d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x433018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x10]
test eax, eax
jns 0x4127f6
mov byte [ebp - 0x10], 0x2d
lea ecx, [ebp - 0xf]
neg eax
push edi
call fcn.00405180
lea edi, [ebp - 0x10]
mov edx, edi
mov dword [ebp - 0x14], eax
cmp edx, eax
je 0x412887
push ebx
push esi
lea ebx, [ebx]
movsx ax, byte [edi]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov esi, dword [edx]
movzx ebx, ax
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x412845
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x412845
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 ecx, dword [esi + 0xc]
mov byte [ecx], bl
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x412874
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x412874
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 ecx, dword [esi + 0xc]
shr ebx, 8
mov byte [ecx], bl
inc dword [esi + 0xc]
inc edi
cmp edi, dword [ebp - 0x14]
jne 0x412810
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop edi
call fcn.00424ffa
mov esp, ebp
pop ebp
ret 4

Function at 0x4128a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x433018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp - 0x10]
call fcn.00405180
lea edi, [ebp - 0x10]
mov ecx, edi
mov dword [ebp - 0x14], eax
cmp ecx, eax
je 0x412947
push ebx
push esi
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov esi, dword [ecx]
movsx dx, byte [edi]
mov eax, dword [esi + 0xc]
movzx ebx, dx
cmp eax, dword [esi + 8]
jb 0x412905
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x412905
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 ecx, dword [esi + 0xc]
mov byte [ecx], bl
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x412934
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x412934
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 ecx, dword [esi + 0xc]
shr ebx, 8
mov byte [ecx], bl
inc dword [esi + 0xc]
inc edi
cmp edi, dword [ebp - 0x14]
jne 0x4128d0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop edi
call fcn.00424ffa
mov esp, ebp
pop ebp
ret 8
Function at 0x412960
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x433018]
xor eax, ebp
mov dword [ebp - 4], eax
fld qword [ebp + 0xc]
mov eax, dword [ebp + 8]
fld st(0)
push ebx
fld st(1)
mov dword [ebp - 0x2c], eax
fldz
push esi
fld st(0)
push edi
fucomp st(2)
lea esi, [ebp - 0x20]
fnstsw ax
fstp st(1)
test ah, 0x44
jp 0x4129ab
fstp st(2)
mov al, 0x30
fstp st(0)
lea ecx, [ebp - 0x1d]
fstp st(0)
mov word [ebp - 0x20], 0x2e30
mov byte [ebp - 0x1e], al
mov dword [ebp - 0x24], ecx
jmp 0x4129e9
fcomp st(2)
fnstsw ax
test ah, 0x41
jne 0x4129c1
fstp st(0)
mov byte [ebp - 0x20], 0x2d
lea esi, [ebp - 0x1f]
fchs
jmp 0x4129c3
fstp st(1)
sub esp, 8
lea edx, [ebp - 0x28]
fstp qword [esp]
push edx
push esi
lea eax, [ebp - 0x24]
call fcn.004057b0
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
add esp, 0x10
mov ecx, esi
call fcn.00405910
mov dword [ebp - 0x24], eax
lea edi, [ebp - 0x20]
mov eax, edi
cmp eax, dword [ebp - 0x24]
je 0x412a68
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov esi, dword [eax]
movsx cx, byte [edi]
mov eax, dword [esi + 0xc]
movzx ebx, cx
cmp eax, dword [esi + 8]
jb 0x412a28
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x412a28
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 ecx, dword [esi + 0xc]
mov byte [ecx], bl
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x412a57
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x412a57
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 ecx, dword [esi + 0xc]
shr ebx, 8
mov byte [ecx], bl
inc dword [esi + 0xc]
inc edi
cmp edi, dword [ebp - 0x24]
jne 0x4129f3
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00424ffa
mov esp, ebp
pop ebp
ret 0xc