joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434ce0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47c0c9
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x49a618]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
push edi
mov eax, dword [0x49a618]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x14], esi
push eax
mov dword [esp + 0x14], 0
call fcn.00436710
mov dword [esp + 0x50], 1
lea edx, [esp + 0x2c]
cmp dword [esp + 0x40], 8
mov ecx, esi
mov eax, dword [esp + 0x3c]
cmovae edx, dword [esp + 0x2c]
add eax, eax
push eax
call fcn.0041eef0
add esp, 4
mov eax, dword [esi + 0x10]
mov dword [esp + 0xc], 1
test eax, eax
je 0x434df1
cmp dword [esi + 0x14], 8
jb 0x434d7b
mov edx, dword [esi]
jmp 0x434d7d
mov edx, esi
add eax, eax
lea ecx, [esp + 0x14]
push eax
call fcn.0041eef0
add esp, 4
mov edi, eax
mov byte [esp + 0x50], 2
cmp esi, edi
je 0x434dc2
cmp dword [esi + 0x14], 8
jb 0x434da7
push dword [esi]
call fcn.00459528
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.00408970
mov byte [esp + 0x50], 1
cmp dword [esp + 0x28], 8
jb 0x434dda
push dword [esp + 0x14]
call fcn.00459528
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov byte [esp + 0x50], 0
cmp dword [esp + 0x40], 8
jb 0x434e09
push dword [esp + 0x2c]
call fcn.00459528
add esp, 4
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0045952d
add esp, 0x48
ret 8
Function at 0x436a30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47c461
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x49a618]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x30], 0
mov edi, dword [esp + 0x44]
push 0
push edi
push dword [esp + 0x48]
mov dword [esp + 0x18], 0
push dword [esp + 0x48]
mov esi, dword [esp + 0x48]
push esi
call fcn.00436b30
mov dword [esp + 0x30], 0
cmp dword [esi + 0x10], 0
mov dword [esp + 0xc], 1
jne 0x436b18
push 0x100
push edi
push dword [esp + 0x48]
lea eax, [esp + 0x1c]
push dword [esp + 0x48]
push eax
call fcn.00436b30
mov edi, eax
mov dword [esp + 0x30], 1
cmp esi, edi
je 0x436ae9
cmp dword [esi + 0x14], 8
jb 0x436ace
push dword [esi]
call fcn.00459528
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.00408970
mov byte [esp + 0x30], 0
cmp dword [esp + 0x24], 8
jb 0x436b01
push dword [esp + 0x10]
call fcn.00459528
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 0x10
Function at 0x43bc40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47cbf6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x49a618]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esp + 0x14], 0
cmp dword [esi + 0x30], 8
jb 0x43bc81
push dword [esi + 0x1c]
call fcn.00459528
add esp, 4
mov dword [esi + 0x30], 7
xor eax, eax
mov dword [esi + 0x2c], 0
mov word [esi + 0x1c], ax
mov dword [esp + 0x14], 0xffffffff
cmp dword [esi + 0x18], 8
jb 0x43bcae
push dword [esi + 4]
call fcn.00459528
add esp, 4
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x441450
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x47bb13
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x49a618]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push esi
mov word [edi], ax
call fcn.00402500
mov dword [esp + 0x18], 0
lea ecx, [edi + 0x18]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x18]
push eax
call fcn.00402500
mov byte [esp + 0x18], 1
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
mov dword [esp + 0x18], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x44c3a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x47bb13
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x49a618]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push esi
mov word [edi], ax
call fcn.00402500
mov dword [esp + 0x18], 0
lea ecx, [edi + 0x18]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x18]
push eax
call fcn.00402500
mov byte [esp + 0x18], 1
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov ax, word [esi + 0x34]
mov word [edi + 0x34], ax
mov dword [esp + 0x18], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x44c450
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47e76e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x49a618]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push esi
mov word [edi], ax
call fcn.00402500
mov dword [esp + 0x18], 0
lea ecx, [edi + 0x18]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x18]
push eax
call fcn.00402500
mov byte [esp + 0x18], 1
lea ecx, [edi + 0x30]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x30]
push eax
call fcn.00402500
mov dword [esp + 0x18], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x44c510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47e798
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x49a618]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push edi
mov eax, dword [0x49a618]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, edx
mov dword [esp + 0xc], eax
mov edi, ecx
mov ecx, eax
mov dword [esp + 0x20], 0
sub ecx, edi
mov eax, 0x81848da9
imul ecx
xorps xmm0, xmm0
movdqu xmmword [esp + 0x10], xmm0
mov dword [esp + 0x10], 0
add edx, ecx
mov dword [esp + 0x14], 0
sar edx, 9
mov esi, edx
mov dword [esp + 0x18], 0
shr esi, 0x1f
add esi, edx
lea eax, [esi + 1]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], 0
mov ecx, edi
push dword [esp + 0x40]
mov edx, dword [esp + 0x10]
push eax
push esi
call fcn.0044c640
add esp, 0xc
mov dword [esp + 0x30], 0xffffffff
mov esi, dword [esp + 0x10]
test esi, esi
je 0x44c5f0
cmp esi, dword [esp + 0x18]
je 0x44c5e7
mov edi, edi
mov ecx, esi
call fcn.0044ed80
add esi, 0x3f4
cmp esi, dword [esp + 0x18]
jne 0x44c5d0
mov esi, dword [esp + 0x10]
push esi
call fcn.00459528
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0045952d
add esp, 0x28
ret
Function at 0x44d530
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47ea00
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49a618]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov dword [esp + 0x1c], edx
mov ebp, ecx
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
mov dword [esp + 0x20], eax
test ebx, ebx
je 0x44d700
test esi, esi
je 0x44d700
cmp ebx, esi
jg 0x44d631
mov ecx, edi
call fcn.0044c9e0
cmp ebx, eax
jg 0x44d631
mov ecx, dword [edi + 0x10]
sub esp, 0x14
mov dword [esp + 0x2c], esp
mov eax, dword [ecx]
mov dword [ecx + 4], eax
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov eax, dword [edi + 0x10]
mov dword [ecx + 0x10], eax
mov dword [esp + 0x54], 0
mov esi, dword [esp + 0x30]
push esi
mov dword [esp + 0x58], 0xffffffff
mov edx, ebp
lea ecx, [esp + 0x3c]
call fcn.0044d330
add esp, 0x18
lea ecx, [esp + 0x24]
call fcn.0044c610
push dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
mov ecx, esi
push ebp
mov edx, ebx
call fcn.0044ddc0
mov eax, dword [edi + 0x10]
push dword [esp + 0x20]
push ebx
mov edx, dword [eax + 4]
mov ecx, dword [eax]
call fcn.0044dcb0
add esp, 0x10
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov ecx, edi
call fcn.0044c9e0
cmp esi, eax
jg 0x44d6d9
mov ecx, dword [edi + 0x10]
sub esp, 0x14
mov dword [esp + 0x2c], esp
mov eax, dword [ecx]
mov dword [ecx + 4], eax
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov eax, dword [edi + 0x10]
mov dword [ecx + 0x10], eax
mov dword [esp + 0x54], 1
mov ebx, dword [esp + 0x34]
push ebx
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x3c]
mov edx, dword [esp + 0x34]
call fcn.0044d330
add esp, 0x18
lea ecx, [esp + 0x24]
call fcn.0044c610
push dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ecx, ebp
push ebx
call fcn.0044dcb0
mov eax, dword [edi + 0x10]
push dword [esp + 0x20]
push ebp
mov edx, dword [eax + 4]
mov ecx, dword [eax]
call fcn.0044ddc0
add esp, 0x10
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov ebx, dword [esp + 0x20]
mov ecx, ebp
mov edx, dword [esp + 0x1c]
push ebx
call fcn.0044dbc0
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
imul eax, esi, 0x3f4
add eax, ebp
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x44d810
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x47ea59
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49a618]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, edx
mov eax, ecx
mov dword [esp + 0x1c], eax
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x40], 1
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x50]
cmp esi, ebp
je 0x44d897
cmp edi, ebx
je 0x44d897
push esi
mov ecx, edi
call fcn.0044f030
lea ecx, [esp + 0x54]
test al, al
je 0x44d887
push edi
call fcn.0044dc00
add edi, 0x3f4
cmp edi, ebx
jmp 0x44d895
push esi
call fcn.0044dc00
add esi, 0x3f4
cmp esi, ebp
jne 0x44d867
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x2c], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov eax, dword [esp + 0x78]
mov dword [ecx + 0x10], eax
mov byte [esp + 0x54], 2
push ebp
mov byte [esp + 0x58], 1
mov edx, esi
lea ecx, [esp + 0x3c]
call fcn.0044d330
add esp, 0x18
mov byte [esp + 0x40], 3
mov eax, dword [eax + 0x10]
mov dword [esp + 0x64], eax
mov byte [esp + 0x40], 1
mov esi, dword [esp + 0x24]
test esi, esi
je 0x44d920
cmp esi, dword [esp + 0x2c]
je 0x44d917
lea ebx, [ebx]
mov ecx, esi
call fcn.0044ed80
add esi, 0x3f4
cmp esi, dword [esp + 0x2c]
jne 0x44d900
mov esi, dword [esp + 0x24]
push esi
call fcn.00459528
add esp, 4
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x2c], esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov eax, dword [esp + 0x78]
mov dword [ecx + 0x10], eax
mov byte [esp + 0x54], 4
push ebx
mov byte [esp + 0x58], 1
mov edx, edi
mov edi, dword [esp + 0x34]
mov ecx, edi
call fcn.0044d330
add esp, 0x18
mov dword [esp + 0x14], 1
mov byte [esp + 0x40], 0
mov esi, dword [esp + 0x54]
test esi, esi
je 0x44d9a1
cmp esi, dword [esp + 0x5c]
je 0x44d998
mov ecx, esi
call fcn.0044ed80
add esi, 0x3f4
cmp esi, dword [esp + 0x5c]
jne 0x44d981
mov esi, dword [esp + 0x54]
push esi
call fcn.00459528
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x44eb50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x47ebcf
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x49a618]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [esp + 0x14], eax
mov dword [esi + 0x2c], 7
mov dword [esi + 0x28], eax
mov word [esi + 0x18], ax
mov byte [esp + 0x14], 1
mov dword [esi + 0x44], 7
mov dword [esi + 0x40], eax
mov word [esi + 0x30], ax
mov byte [esp + 0x14], 2
mov dword [esi + 0x5c], 7
mov dword [esi + 0x58], eax
mov word [esi + 0x48], ax
mov byte [esp + 0x14], 3
mov dword [esi + 0x74], 7
mov dword [esi + 0x70], eax
mov word [esi + 0x60], ax
mov byte [esp + 0x14], 4
mov dword [esi + 0x8c], 7
mov dword [esi + 0x88], eax
mov word [esi + 0x78], ax
mov byte [esp + 0x14], 5
push 0x35c
push eax
lea eax, [esi + 0x98]
push eax
call fcn.0045c590
add esp, 0xc
xor eax, eax
mov dword [esi + 0x90], eax
mov word [esi + 0x94], ax
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x44f460
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47ed30
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x49a618]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push esi
push edi
mov eax, dword [0x49a618]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx]
push eax
mov dword [esp + 0x14], eax
call fcn.0044f6e0
mov edi, eax
cmp edi, ebx
jne 0x44f5a2
cmp dword [edi + 8], 0
je 0x44f521
mov dword [esp + 0x14], esi
test esi, esi
je 0x44f4c8
mov eax, dword [esi]
test eax, eax
je 0x44f4c8
push eax
call dword [0x48128c]
mov dword [esp + 0x28], 0
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 4]
call fcn.0044fc10
mov ecx, dword [edi + 8]
mov edi, dword [0x481298]
mov dword [eax], ecx
test esi, esi
je 0x44f4fb
mov eax, dword [esi]
test eax, eax
je 0x44f4f5
push eax
call edi
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x28], 0xffffffff
test esi, esi
je 0x44f5c0
mov eax, dword [esi]
test eax, eax
je 0x44f514
push eax
call edi
mov dword [esp + 0x14], 0
jmp 0x44f5c0
mov dword [esp + 0x18], esi
test esi, esi
je 0x44f536
mov eax, dword [esi]
test eax, eax
je 0x44f536
push eax
call dword [0x48128c]
mov dword [esp + 0x28], 1
cmp dword [esi + 8], 0
je 0x44f574
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 4]
call fcn.0044fd00
mov eax, dword [esi + 4]
cmp dword [esp + 0x14], eax
je 0x44f574
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 4]
call fcn.0044fc90
mov eax, dword [esi]
test eax, eax
je 0x44f581
push eax
call dword [0x481298]
push dword [edi + 4]
mov dword [esp + 0x1c], 0
push 0xfffffffffffffffc
push dword [esp + 0x18]
call dword [0x481400]
mov dword [esp + 0x28], 0xffffffff
jmp 0x44f5c0
cmp dword [edi + 8], ebx
lea eax, [edi + 8]
je 0x44f5ba
lea ebx, [ebx]
mov edi, dword [eax]
cmp dword [edi + 8], ebx
lea eax, [edi + 8]
jne 0x44f5b0
mov eax, dword [ebx + 8]
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0045952d
add esp, 0x1c
ret 4
Function at 0x457d89
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x47fc84
call fcn.0045edc3
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x457e81
cmp byte [esi + 0x46], bl
je 0x457e81
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x457dc5
xor al, al
jmp 0x457e83
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.00452760
mov dword [ebp - 4], ebx
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ebx, edi
cmp eax, 0x10
jae 0x457df2
lea ebx, [ebp - 0x28]
mov edi, ebx
mov ecx, dword [esi + 0x40]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, ebx
mov edx, dword [ecx]
push eax
push edi
lea eax, [esi + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x457e19
dec eax
je 0x457e1d
dec eax
dec eax
je 0x457e6f
xor bl, bl
jmp 0x457e71
mov byte [esi + 0x46], 0
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov ecx, edi
cmp eax, 0x10
jae 0x457e2d
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
sub ebx, ecx
je 0x457e55
cmp eax, 0x10
jae 0x457e3c
lea edi, [ebp - 0x28]
push dword [esi + 0x50]
push ebx
push 1
push edi
call fcn.0046018b
add esp, 0x10
cmp ebx, eax
jne 0x457e15
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
cmp byte [esi + 0x46], 0
je 0x457e6f
test ebx, ebx
jne 0x457de6
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.00423e60
jmp 0x457de0
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401df0
mov al, bl
jmp 0x457e83
mov al, 1
call fcn.0045ed72
ret
Function at 0x404940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40496c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x404994
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40499a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x404a24
jg 0x4049b1
test esi, esi
je 0x404a24
test ecx, ecx
jl 0x404a07
jg 0x4049bb
test eax, eax
je 0x404a07
cmp edi, ecx
jg 0x4049cf
jl 0x4049c5
cmp esi, eax
jae 0x4049cf
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 8]
add edx, ecx
sub esi, ecx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x404a24
jg 0x404a0a
test esi, esi
je 0x404a24
jmp 0x404a0a
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x404a24
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404a40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x404a6c
jl 0x404a60
test ecx, ecx
jne 0x404a6c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x404a85
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x404ad3
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x404ad9
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x404ad9
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x404b46
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x404b02
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x404b34
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x404b46
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x404b10
test edi, edi
je 0x404b46
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc