joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4027c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x48
mov eax, dword [0x439300]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x5c]
mov esi, ecx
test edi, edi
jl 0x4027ea
mov eax, dword [esi + 8]
push 0
push edi
push eax
call fcn.00415084
add esp, 0xc
mov ecx, dword [esi + 8]
push ecx
push 1
lea edx, [esp + 0x14]
push 0x20
push edx
call fcn.00414bb9
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
jne 0x4028b3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x402836
push eax
mov eax, dword [esp + 0x5c]
push eax
mov ecx, esi
call fcn.004027c0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0041389c
add esp, 0x48
ret 8
mov ebx, dword [esp + 0x58]
test ebx, ebx
jl 0x40284d
mov ecx, dword [esi + 8]
push 0
push ebx
push ecx
call fcn.00415084
add esp, 0xc
mov edx, dword [esi + 8]
push edx
push 1
lea eax, [esp + 0x34]
push 0x20
push eax
call fcn.00414bb9
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
jne 0x4028b3
mov dword [esp + 0x10], ebx
mov dword [esp + 0x34], edi
test edi, edi
jl 0x402886
mov ecx, dword [esi + 8]
push eax
push edi
push ecx
call fcn.00415084
add esp, 0xc
mov edx, dword [esi + 8]
push edx
push 1
lea eax, [esp + 0x14]
push 0x20
push eax
call fcn.00414d6d
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
jne 0x4028b3
push 0x20
lea ecx, [esp + 0x30]
push ecx
mov eax, ebx
call fcn.00404140
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041389c
add esp, 0x48
ret 8

Function at 0x4028d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [0x439300]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x1c]
push esi
mov esi, ecx
test eax, eax
jne 0x402906
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0041389c
add esp, 0x10
ret 8
mov eax, dword [eax + 0x14]
push edi
xor edi, edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x402971
push 0
push eax
mov eax, dword [esi + 8]
push eax
call fcn.00415084
mov ecx, dword [esi + 8]
push ecx
push 1
lea edx, [esp + 0x20]
push 0xa
push edx
call fcn.00414bb9
push 4
lea eax, [esp + 0x2c]
push str.DAT
push eax
call fcn.00413c15
add esp, 0x28
test eax, eax
jne 0x402987
mov ecx, dword [esi + 8]
movzx edx, word [esp + 0x14]
push ecx
push 1
push edx
lea eax, [ebx + edi]
push eax
call fcn.00414bb9
movzx ecx, word [esp + 0x24]
mov eax, dword [esp + 0x20]
add esp, 0x10
add edi, ecx
test eax, eax
jne 0x402914
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0041389c
add esp, 0x10
ret 8
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 2
call fcn.0041389c
add esp, 0x10
ret 8
Function at 0x4029a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [0x439300]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
mov esi, edx
push 0
mov edi, ecx
call fcn.00405960
mov dword [esp + 0xc], edi
test edi, edi
je 0x402a18
mov edi, dword [esi + 4]
lea eax, [edi + 1]
push eax
call fcn.00405960
mov ecx, dword [esi]
mov edx, dword [esp + 0xc]
mov dword [ecx + edi*4], edx
mov eax, dword [esp + 0xc]
mov ecx, dword [ebx + 8]
push 0
push eax
push ecx
call fcn.00415084
mov edx, dword [ebx + 8]
push edx
push 1
lea eax, [esp + 0x1c]
push 0xa
push eax
call fcn.00414bb9
push 4
lea ecx, [esp + 0x28]
push str.DAT
push ecx
call fcn.00413c15
add esp, 0x28
test eax, eax
jne 0x402a2b
cmp dword [esp + 0xc], eax
jne 0x4029c3
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0041389c
add esp, 0x10
ret
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor ecx, esp
mov eax, 2
call fcn.0041389c
add esp, 0x10
ret

Function at 0x402a60
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
push edi
mov edi, dword [esp + 0x10]
mov ebx, dword [edi + 0x18]
call edx
neg eax
sbb eax, eax
and eax, 4
add eax, 0x18
lea eax, [ebx + eax - 8]
push 0
push eax
mov eax, dword [esi + 8]
push eax
call fcn.00415084
mov ecx, dword [esi + 8]
push ecx
push 1
push 4
add edi, 0xc
push edi
call fcn.00414d6d
add esp, 0x1c
dec eax
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
ret 4
Function at 0x402ab0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x20
mov eax, dword [0x439300]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
push ebp
mov bp, word [esp + 0x34]
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, ecx
cmp dword [edi + 0x10], 0
je 0x402b01
movsx ecx, bp
and ecx, 0x80000001
jns 0x402ae6
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x402b01
pop edi
pop esi
mov eax, 6
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0041389c
add esp, 0x20
ret 0x10
mov ecx, dword [esp + 0x38]
push ebx
movsx edx, bp
lea ebx, [edx + ecx]
push 1
push ebx
lea ecx, [esi + 0x14]
push eax
call fcn.004047a0
test eax, eax
jne 0x402c15
mov eax, dword [esi + 0x18]
mov word [esi + 8], bp
mov dword [esi + 4], ebx
mov ebx, dword [edi + 0x44]
test eax, eax
jl 0x402b40
mov edx, dword [edi + 8]
push 0
push eax
push edx
call fcn.00415084
add esp, 0xc
mov eax, dword [edi + 8]
push eax
push 1
lea ecx, [esp + 0x18]
push ebx
push ecx
call fcn.00414bb9
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
jne 0x402c15
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x402b72
mov edx, dword [esi + 0x14]
mov dword [esp + 0x1c], edx
jmp 0x402b79
mov eax, dword [esi + 0x14]
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x402b86
mov edx, dword [esi + 4]
mov dword [esp + 0x20], edx
jmp 0x402b8d
mov eax, dword [esi + 4]
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x402ba1
movsx eax, word [esi + 8]
cdq
sub eax, edx
sar eax, 1
mov word [esp + 0x28], ax
jmp 0x402baa
mov dx, word [esi + 8]
mov word [esp + 0x24], dx
mov eax, dword [esi + 0xc]
test ecx, ecx
je 0x402bc8
test eax, eax
je 0x402bbb
mov dword [esp + 0x24], eax
jmp 0x402be0
push 0
call fcn.0041524d
mov dword [esp + 0x28], eax
jmp 0x402bdd
test eax, eax
je 0x402bd2
mov dword [esp + 0x20], eax
jmp 0x402be0
push 0
call fcn.0041524d
mov dword [esp + 0x24], eax
add esp, 4
mov esi, dword [esi + 0x18]
mov ebx, dword [edi + 0x44]
test esi, esi
jl 0x402bf9
mov eax, dword [edi + 8]
push 0
push esi
push eax
call fcn.00415084
add esp, 0xc
mov ecx, dword [edi + 8]
push ecx
push 1
lea edx, [esp + 0x18]
push ebx
push edx
call fcn.00414d6d
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
mov ecx, dword [esp + 0x2c]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0041389c
add esp, 0x20
ret 0x10
Function at 0x402db0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esi + 8]
mov dword [0x43bd08], esi
test eax, eax
je 0x402fa3
push 0
push 0
push eax
call fcn.00415084
mov eax, dword [esi + 8]
push eax
push 1
lea ecx, [esp + 0x14]
push 4
push ecx
call fcn.00414bb9
add esp, 0x1c
test eax, eax
je 0x402fa3
push edi
push 4
lea edx, [esp + 8]
push str.HDR
push edx
call fcn.00413c15
add esp, 0xc
test eax, eax
jne 0x402e0c
lea edi, [esi + 0x14]
mov dword [edi], eax
jmp 0x402eb8
mov eax, dword [esi + 8]
push 2
push 0xfffffe00
push eax
call fcn.00415084
mov ecx, dword [esi + 8]
push ecx
push 1
lea edx, [esp + 0x18]
push 4
push edx
call fcn.00414bb9
add esp, 0x1c
test eax, eax
je 0x402fa2
push 4
lea eax, [esp + 8]
push str.TRL
push eax
call fcn.00413c15
add esp, 0xc
test eax, eax
jne 0x402fa2
mov ecx, dword [esi + 8]
push ecx
push 1
lea edi, [esi + 0x14]
push 4
push edi
call fcn.00414bb9
add esp, 0x10
test eax, eax
je 0x402fa2
mov edx, dword [edi]
mov eax, dword [esi + 8]
push 0
push edx
push eax
call fcn.00415084
mov ecx, dword [esi + 8]
push ecx
push 1
lea edx, [esp + 0x18]
push 4
push edx
call fcn.00414bb9
add esp, 0x1c
test eax, eax
je 0x402fa2
push 4
lea eax, [esp + 8]
push str.HDR
push eax
call fcn.00413c15
add esp, 0xc
test eax, eax
jne 0x402fa2
mov ecx, dword [edi]
mov edx, dword [esi + 8]
push 0
add ecx, 4
push ecx
push edx
call fcn.00415084
mov eax, dword [esi + 8]
push eax
push 1
lea ecx, [esp + 0x18]
push 4
push ecx
call fcn.00414bb9
add esp, 0x1c
test eax, eax
je 0x402fa2
mov eax, dword [esp + 4]
cmp eax, 0x6f0050
jne 0x402efa
mov dword [esi + 0x10], 1
jmp 0x402f0c
cmp eax, 0x65776f50
jne 0x402fa2
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0x10]
mov edx, eax
neg edx
sbb edx, edx
and edx, 0x200
add edx, 0x400
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 0x200
add ecx, 0x200
mov dword [esi + 0x20], edx
xor edx, edx
test eax, eax
setne dl
mov dword [esi + 0x24], ecx
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 4], 1
mov dword [esi + 0x40], 0
lea edx, [edx*4 + 0x18]
mov dword [esi + 0x44], edx
inc ecx
mov dword [esi + 0x48], ecx
test eax, eax
je 0x402f71
mov dword [esi + 0x4c], 0xa
pop edi
pop ecx
ret
mov edx, dword [edi]
mov eax, dword [esi + 8]
push 0
add edx, 0x12
push edx
push eax
call fcn.00415084
mov ecx, dword [esi + 8]
push ecx
push 1
lea edx, [esp + 0x18]
push 4
push edx
call fcn.00414bb9
movsx eax, byte [esp + 0x21]
add esp, 0x1c
sub eax, 0x30
mov dword [esi + 0x4c], eax
pop edi
pop ecx
ret
Function at 0x403960
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x208
mov eax, dword [0x439300]
xor eax, esp
mov dword [esp + 0x204], eax
push 4
lea eax, [esp + 4]
push str.TRL
push eax
call fcn.004145f0
push 0x1f8
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.00416090
mov edx, dword [esp + 0x224]
push 2
push 0
push esi
mov dword [esp + 0x28], edx
call fcn.00415084
push esi
push 1
lea eax, [esp + 0x2c]
push 8
push eax
call fcn.00414d6d
push esi
push 1
lea ecx, [esp + 0x44]
push 0x1f8
push ecx
call fcn.00414d6d
mov ecx, dword [esp + 0x248]
add esp, 0x44
xor ecx, esp
xor eax, eax
call fcn.0041389c
add esp, 0x208
ret

Function at 0x403b00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x439300]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x21c]
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 0x40], ebx
jne 0x403c21
mov eax, dword [ebp + 0x14]
xor edi, edi
add eax, dword [ebp + 0x24]
mov dword [esp + 0x1c], eax
je 0x403b64
add eax, 4
push ebx
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00415084
mov ecx, dword [ebp + 8]
push ecx
push 1
lea edx, [esp + 0x30]
push 4
push edx
call fcn.00414bb9
mov eax, dword [esp + 0x38]
add esp, 0x1c
inc edi
cmp eax, ebx
jne 0x403b38
mov eax, dword [ebp + 0x28]
lea esi, [ebp + 0x28]
cmp eax, ebx
je 0x403b7c
push eax
call fcn.00414c00
add esp, 4
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov eax, edi
imul eax, eax, 0xfc0
call fcn.004010d0
lea esi, [ebp + 0x30]
push edi
call fcn.00405640
mov eax, dword [ebp + 0x14]
add eax, dword [ebp + 0x24]
mov dword [esp + 0x1c], eax
je 0x403c1a
mov dword [esp + 0x14], ebx
mov ecx, dword [ebp + 0x30]
xor esi, esi
mov dword [ebx + ecx + 4], esi
mov edx, dword [ebp + 0x30]
mov eax, dword [esp + 0x1c]
mov dword [ebx + edx], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 8]
push esi
push ecx
push edx
call fcn.00415084
mov eax, dword [ebp + 8]
push eax
push 1
lea ecx, [esp + 0x2c]
push 0x200
push ecx
call fcn.00414bb9
mov ecx, dword [ebp + 0x28]
add esp, 0x1c
xor edi, edi
add ecx, dword [esp + 0x14]
mov al, 0x80
jmp 0x403bf0
test byte [esp + esi + 0x20], al
setne dl
mov byte [ecx + edi], dl
inc edi
shr al, 1
jne 0x403bf0
inc esi
cmp esi, 0x1f8
jb 0x403be5
add dword [esp + 0x14], 0xfc0
add ebx, 8
cmp dword [esp + 0x1c], 0
jne 0x403ba2
mov dword [ebp + 0x40], 1
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0041389c
add esp, 0x210
ret 4
Function at 0x403cd0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x439300]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x21c]
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 0x40], ebx
je 0x403db5
mov eax, dword [ebp + 0x34]
cmp eax, ebx
jle 0x403db5
mov dword [esp + 0x10], ebx
mov ecx, dword [ebp + 0x30]
lea ecx, [ecx + ebx*8]
xor edi, edi
mov dword [esp + 0x14], ecx
cmp dword [ecx + 4], edi
je 0x403da1
lea edx, [ebx + 1]
cmp edx, eax
jge 0x403d2e
mov eax, dword [ecx + 8]
mov dword [esp + 0x1c], eax
jmp 0x403d32
mov dword [esp + 0x1c], edi
mov esi, dword [ebp + 0x28]
add esi, dword [esp + 0x10]
mov dword [esp + 0x18], 0x2a455246
xor ecx, ecx
mov al, 0x80
cmp byte [ecx + esi], 0
je 0x403d51
or byte [esp + edi + 0x20], al
jmp 0x403d59
mov dl, al
not dl
and byte [esp + edi + 0x20], dl
inc ecx
shr al, 1
jne 0x403d45
inc edi
cmp edi, 0x1f8
jb 0x403d43
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
push 0
push ecx
push edx
call fcn.00415084
mov eax, dword [ebp + 8]
push eax
push 1
lea ecx, [esp + 0x2c]
push 0x200
push ecx
call fcn.00414d6d
add esp, 0x1c
cmp eax, 1
jl 0x403dd2
mov edx, dword [ebp + 0x30]
mov dword [edx + ebx*8 + 4], 0
mov eax, dword [ebp + 0x34]
add dword [esp + 0x10], 0xfc0
inc ebx
cmp ebx, eax
jl 0x403d09
xor eax, eax
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041389c
add esp, 0x210
ret 4
mov eax, 5
jmp 0x403db7
Function at 0x403f80
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42e8b8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x439300]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push esi
push edi
mov eax, dword [0x439300]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
mov eax, 0x10
xor ecx, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004152b9
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
push 1
lea eax, [esp + 0x18]
push eax
push 6
push esi
mov dword [esp + 0x64], 0
call fcn.00403de0
mov ebx, eax
test ebx, ebx
je 0x404020
mov dword [esp + 0x54], 0xffffffff
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00414c00
add esp, 4
mov eax, ebx
jmp 0x404115
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
mov ecx, dword [esp + 0x5c]
mov dword [edi], eax
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [edi]
mov edx, 0xbe0
mov dword [esp + 0x24], 0x2a444f4e
mov dword [esp + 0x2c], ecx
mov word [esp + 0x34], dx
test eax, eax
jl 0x404079
push 0
push eax
mov eax, dword [esi + 8]
push eax
call fcn.00415084
add esp, 0xc
mov ecx, dword [esi + 8]
push ecx
push 1
lea edx, [esp + 0x2c]
push 0x20
push edx
call fcn.00414d6d
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
mov ebx, eax
je 0x4040b3
mov dword [esp + 0x54], 0xffffffff
mov eax, dword [esp + 0x14]
push eax
call fcn.00414c00
add esp, 4
mov eax, ebx
jmp 0x404115
mov edi, dword [edi]
add edi, 0xbff
js 0x4040cc
mov ecx, dword [esi + 8]
push 0
push edi
push ecx
call fcn.00415084
add esp, 0xc
mov edx, dword [esi + 8]
push edx
push 1
push 1
push 0x433dd4
call fcn.00414d6d
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
mov esi, eax
mov dword [esp + 0x54], 0xffffffff
je 0x404106
mov eax, dword [esp + 0x14]
push eax
call fcn.00414c00
add esp, 4
mov eax, esi
jmp 0x404115
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00414c00
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0041389c
add esp, 0x48
ret 4

Function at 0x404140
Capabilities:
Write file on windows

Disassembly:
test eax, eax
jl 0x404153
push 0
push eax
mov eax, dword [esi + 8]
push eax
call fcn.00415084
add esp, 0xc
mov ecx, dword [esi + 8]
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push ecx
push 1
push edx
push eax
call fcn.00414d6d
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
ret 8

Function at 0x404180
Capabilities:
Read file on windows

Disassembly:
test eax, eax
jl 0x404193
push 0
push eax
mov eax, dword [esi + 8]
push eax
call fcn.00415084
add esp, 0xc
mov ecx, dword [esi + 8]
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push ecx
push 1
push edx
push eax
call fcn.00414bb9
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
ret 8
Function at 0x4041c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x44
mov eax, dword [0x439300]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
push esi
push edi
mov esi, ecx
mov edi, edx
test ebp, ebp
jne 0x40421b
mov eax, dword [esp + 0x60]
test eax, eax
jl 0x4041f4
push ebp
push eax
mov eax, dword [esi + 8]
push eax
call fcn.00415084
add esp, 0xc
mov ecx, dword [esi + 8]
push ecx
push 1
lea edx, [esp + 0x34]
push 0x20
push edx
call fcn.00414bb9
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
jne 0x40437c
lea ebp, [esp + 0x2c]
cmp dword [edi + 0xc], 0
jne 0x40422e
push 0
call fcn.0041524d
add esp, 4
mov dword [edi + 0xc], eax
lea eax, [esp + 0x10]
push eax
mov ebx, eax
call fcn.004043a0
movzx eax, word [ebp + 0x10]
movzx ebx, word [ebp + 0x14]
mov ecx, 0xc00
sub ecx, eax
movzx ecx, cx
test bx, bx
jne 0x40425e
mov dx, word [esi + 0x44]
add dx, cx
mov word [ebp + 0x16], dx
jmp 0x404280
cmp dword [esp + 0x58], 0
je 0x404272
mov dx, word [esi + 0x44]
add dx, cx
mov word [ebp + 0x16], dx
jmp 0x404284
cmp dword [esp + 0x5c], 0
je 0x404284
mov dx, word [esi + 0x44]
add dx, cx
mov word [ebp + 0x12], dx
movzx edx, word [esp + 0x2a]
inc ebx
mov word [ebp + 0x14], bx
cmp dword [esi + 0x10], 0
jne 0x404299
movzx edx, word [esp + 0x26]
sub ax, word [esi + 0x44]
mov ebx, dword [esp + 0x60]
sub ax, dx
mov word [ebp + 0x10], ax
movzx eax, cx
add eax, ebx
mov dword [edi + 0x18], eax
mov dword [edi + 0x10], ebx
cmp dword [esi + 0x10], 0
je 0x4042fb
test eax, eax
jl 0x4042cc
mov ecx, dword [esi + 8]
push 0
push eax
push ecx
call fcn.00415084
add esp, 0xc
mov edx, dword [esi + 8]
push edx
push 1
lea eax, [esp + 0x18]
push 0x1c
push eax
call fcn.00414d6d
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
jne 0x40437c
mov eax, dword [edi + 0x1c]
mov ecx, dword [esi + 8]
add eax, 2
push ecx
jmp 0x404335
test eax, eax
jl 0x40430e
mov edx, dword [esi + 8]
push 0
push eax
push edx
call fcn.00415084
add esp, 0xc
mov eax, dword [esi + 8]
push eax
push 1
lea ecx, [esp + 0x18]
push 0x18
push ecx
call fcn.00414d6d
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
jne 0x40437c
mov eax, dword [edi + 0x1c]
mov edx, dword [esi + 8]
inc eax
push edx
mov edi, dword [edi]
push 1
push eax
push edi
call fcn.00414d6d
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
test eax, eax
jne 0x40437c
test ebx, ebx
jl 0x404361
push eax
mov eax, dword [esi + 8]
push ebx
push eax
call fcn.00415084
add esp, 0xc
mov ecx, dword [esi + 8]
push ecx
push 1
push 0x20
push ebp
call fcn.00414d6d
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
jne 0x40437c
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041389c
add esp, 0x44
ret 0x10
Function at 0x404510
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24c
mov eax, dword [0x439300]
xor eax, esp
mov dword [esp + 0x248], eax
mov eax, dword [esp + 0x250]
push ebx
mov ebx, dword [esp + 0x258]
push esi
mov esi, ecx
mov dword [esp + 8], eax
test ebx, ebx
jne 0x404546
lea eax, [ebx + 6]
jmp 0x404665
mov eax, dword [esi + 0x14]
push edi
mov edi, dword [esi + 0x10]
neg edi
sbb edi, edi
and edi, 0x112
add edi, 0x124
test eax, eax
jl 0x404570
mov ecx, dword [esi + 8]
push 0
push eax
push ecx
call fcn.00415084
add esp, 0xc
mov edx, dword [esi + 8]
push edx
push 1
lea eax, [esp + 0x24]
push edi
push eax
call fcn.00414bb9
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
jne 0x404664
mov edi, dword [ebx]
test edi, edi
jne 0x4045b4
mov eax, dword [esp + 0x24e]
cmp dword [esi + 0x10], edi
jne 0x4045ab
mov eax, dword [esp + 0x13c]
mov dword [ebx], eax
xor eax, eax
jmp 0x404664
mov ecx, dword [esi + 0x10]
mov eax, dword [esp + 0x13c]
push ebp
mov ebp, dword [esp + 0x252]
mov edx, ebp
test ecx, ecx
jne 0x4045ce
mov edx, eax
cmp edi, edx
jge 0x4045dc
mov eax, 6
jmp 0x404663
test ecx, ecx
je 0x4045e2
mov eax, ebp
mov dword [ebx], eax
mov eax, dword [esp + 0x24e]
xor edi, edi
cmp dword [esi + 0x10], edi
jne 0x4045f9
mov eax, dword [esp + 0x13c]
mov dword [esp + 0x18], eax
test eax, eax
je 0x404661
mov ecx, dword [esi + 8]
push 0
push eax
push ecx
call fcn.00415084
mov edx, dword [esi + 8]
push edx
push 1
lea eax, [esp + 0x28]
push 0xa
push eax
call fcn.00414bb9
push 4
lea ecx, [esp + 0x34]
push str.DAT
push ecx
call fcn.00413c15
add esp, 0x28
test eax, eax
jne 0x40467e
mov edx, dword [esi + 8]
movzx eax, word [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push edx
push 1
push eax
add ecx, edi
push ecx
call fcn.00414bb9
movzx edx, word [esp + 0x2c]
mov eax, dword [esp + 0x28]
add esp, 0x10
add edi, edx
test eax, eax
jne 0x404601
xor eax, eax
pop ebp
pop edi
mov ecx, dword [esp + 0x250]
pop esi
pop ebx
xor ecx, esp
call fcn.0041389c
add esp, 0x24c
ret 8
mov eax, 2
jmp 0x404663
Function at 0x404690
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x23c
mov eax, dword [0x439300]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
mov ebx, dword [esp + 0x244]
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
neg esi
sbb esi, esi
and esi, 0x112
add esi, 0x124
test eax, eax
jl 0x4046d9
push 0
push eax
mov eax, dword [edi + 8]
push eax
call fcn.00415084
add esp, 0xc
mov ecx, dword [edi + 8]
push ecx
push 1
lea edx, [esp + 0x14]
push esi
push edx
call fcn.00414bb9
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
jne 0x40477b
lea ecx, [esp + 0x23a]
cmp dword [edi + 0x10], eax
jne 0x40470e
lea ecx, [esp + 0x128]
mov esi, dword [esp + 0x250]
push 0
push esi
push ebx
call fcn.004047a0
test eax, eax
jne 0x40477b
mov eax, dword [edi + 0x10]
test eax, eax
je 0x404732
mov dword [esp + 0x23e], esi
jmp 0x404739
mov dword [esp + 0x12c], esi
mov ecx, dword [edi + 0x14]
neg eax
sbb eax, eax
and eax, 0x112
add eax, 0x124
mov esi, eax
test ecx, ecx
jl 0x40475f
mov eax, dword [edi + 8]
push 0
push ecx
push eax
call fcn.00415084
add esp, 0xc
mov ecx, dword [edi + 8]
push ecx
push 1
lea edx, [esp + 0x14]
push esi
push edx
call fcn.00414d6d
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041389c
add esp, 0x23c
ret 8
Function at 0x404ad0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x23c
mov eax, dword [0x439300]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
mov ebx, dword [esp + 0x248]
push ebp
mov ebp, dword [esp + 0x248]
push edi
mov edi, ecx
test ebx, ebx
jne 0x404b05
mov eax, 6
jmp 0x404bb6
mov eax, dword [edi + 0x14]
push esi
mov esi, dword [edi + 0x10]
neg esi
sbb esi, esi
and esi, 0x112
add esi, 0x124
test eax, eax
jl 0x404b2f
push 0
push eax
mov eax, dword [edi + 8]
push eax
call fcn.00415084
add esp, 0xc
mov ecx, dword [edi + 8]
push ecx
push 1
lea edx, [esp + 0x18]
push esi
push edx
call fcn.00414bb9
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
pop esi
jne 0x404bb6
mov ecx, dword [edi + 0x10]
lea eax, [esp + 0x3a]
test ecx, ecx
jne 0x404b78
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404b60
sub eax, edx
mov ecx, dword [ebx]
inc eax
imul eax, dword [edi + 0x48]
test ecx, ecx
jne 0x404b91
mov dword [ebx], eax
jmp 0x404bb4
lea edx, [eax + 2]
jmp 0x404b80
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404b80
sub eax, edx
sar eax, 1
jmp 0x404b69
cmp ecx, eax
jl 0x404afb
mov dword [ebx], eax
cmp dword [edi + 0x10], 0
lea ecx, [esp + 0x3a]
jne 0x404ba9
lea ecx, [esp + 0x28]
push eax
push ecx
push ebp
call fcn.00416390
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x244]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041389c
add esp, 0x23c
ret 8