Function at 0x43ba94
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov dl, byte [ebp - 5]
mov byte [ebp - 0xd], dl
mov dword [ebx], 0x45061c
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 4], ecx
mov dword [ebx + 8], 0x200000
mov al, byte [ebp - 0xd]
mov byte [ebx + 0xc], al
mov byte [ebx + 0xd], 0
mov word [ebx + 0xe], 0
mov edx, dword [ebx + 4]
test edx, edx
jg 0x43bae8
or byte [ebx + 0xd], 1
mov dword [ebx + 4], 0xac44
mov cl, byte [ebx + 0xc]
test cl, cl
jne 0x43baf7
or byte [ebx + 0xd], 1
mov byte [ebx + 0xc], 1
mov dword [ebx], 0x459f98
add esp, 0xfffffffc
mov al, byte [ebp + 0x1c]
mov byte [esp], al
add esp, 0xfffffffc
mov dl, byte [ebp + 0x18]
mov byte [esp], dl
lea eax, [ebx + 0x10]
mov edx, 0x32
call fcn.0043061c
add esp, 0xfffffffc
mov cl, byte [ebp + 0x14]
lea eax, [ebx + 0x434]
mov byte [esp], cl
push dword [ebp + 0x10]
push dword [ebp + 0xc]
add esp, 0xfffffffc
mov dl, byte [ebp + 8]
mov byte [esp], dl
call fcn.0042cb58
lea edx, [ebx + 0x548]
mov dword [ebp - 0x14], edx
push 0x42d7e1
push 0x83
push pe_nt_image_headers32
push 1
mov ecx, dword [ebp - 0x14]
inc ecx
push ecx
call fcn.0044cf68
add esp, 0x14
mov eax, dword [ebp - 0x14]
mov byte [eax], 0
lea edx, [ebx + 0x649]
mov dword [ebp - 0x18], edx
push 0x42d7e1
push 0x83
push pe_nt_image_headers32
push 1
mov ecx, dword [ebp - 0x18]
inc ecx
push ecx
call fcn.0044cf68
mov eax, dword [ebp - 0x18]
add esp, 0x14
mov byte [eax], 0
mov edx, dword [ebp + 0x2c]
mov dword [ebx + 0x534], edx
mov ecx, dword [ebp + 0x28]
mov dword [ebx + 0x538], ecx
xor ecx, ecx
mov eax, dword [ebp + 0x30]
mov dword [ebx + 0x53c], eax
mov edx, dword [ebp + 0x24]
mov dword [ebx + 0x540], edx
mov dword [ebx + 0x544], ecx
mov al, byte [ebx + 0xc]
xor ecx, ecx
mov byte [ebp - 0x19], al
mov dl, byte [ebp - 0x19]
mov byte [ebx + 0x548], dl
mov cl, byte [ebx + 0xc]
shl ecx, 3
push ecx
call fcn.0044cdb4
pop ecx
mov dword [ebx + 0x74a], eax
lea eax, [ebx + 0x649]
mov edx, dword [ebp + 0x34]
call fcn.0043dbd9
xor eax, eax
jmp 0x43bc31
xor edx, edx
mov dl, al
movsx edx, byte [ebx + edx + 0x64a]
neg edx
cmp edx, 0x7f
jle 0x43bc12
mov cl, 0x7f
jmp 0x43bc1d
cmp edx, 0xffffff81
jge 0x43bc1b
mov cl, 0x81
jmp 0x43bc1d
mov ecx, edx
mov byte [ebp - 0x60], cl
xor ecx, ecx
lea edx, [ebp - 0x60]
mov cl, al
mov dl, byte [edx]
mov byte [ebx + ecx + 0x64a], dl
inc eax
mov dl, byte [ebx + 0x649]
cmp al, dl
jb 0x43bbfb
mov al, byte [ebp + 0x20]
test al, al
je 0x43bf8e
mov ecx, dword [ebp + 0x34]
mov al, byte [ecx]
test al, al
jne 0x43bc55
mov byte [ebp - 0x70], 0x81
jmp 0x43bca5
mov edx, dword [ebp + 0x34]
mov cl, byte [edx]
cmp cl, 1
jne 0x43bc73
mov eax, dword [ebp + 0x34]
inc eax
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x70]
mov edx, dword [ebp - 0x74]
mov cl, byte [edx]
mov byte [ebp - 0x70], cl
jmp 0x43bca5
mov edx, dword [ebp + 0x34]
mov eax, dword [ebp + 0x34]
mov cl, byte [edx + 1]
mov dl, byte [eax + 2]
cmp cl, dl
setg cl
and ecx, 1
test cl, cl
je 0x43bc91
mov eax, dword [ebp + 0x34]
inc eax
jmp 0x43bc97
mov eax, dword [ebp + 0x34]
add eax, 2
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x70]
mov edx, dword [ebp - 0x78]
mov cl, byte [edx]
mov byte [ebp - 0x70], cl
mov dl, 0x17
mov byte [ebp - 0x7f], dl
movsx ecx, byte [ebp - 0x70]
movsx eax, byte [ebp - 0x7f]
sub ecx, eax
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x88], edx
mov ecx, dword [ebp - 0x88]
cmp ecx, 0x7f
jle 0x43bcd5
mov al, 0x7f
jmp 0x43bcea
mov edx, dword [ebp - 0x88]
cmp edx, 0xffffff81
jge 0x43bce4
mov al, 0x81
jmp 0x43bcea
mov al, byte [ebp - 0x88]
mov byte [ebp - 0x6f], al
jmp 0x43bdce
push 0
push 0
add eax, 0xfffffffe
xor edx, edx
mov dl, byte [ebx + 0xc]
imul edx
push eax
push dword [ebx + 0x538]
call sub.KERNEL32.dll_SetFilePointer
lea eax, [ebx + 0x549]
test eax, eax
je 0x43bddd
push 0
lea edx, [ebp - 0x8c]
push edx
xor ecx, ecx
mov cl, byte [ebx + 0x548]
push ecx
push eax
push dword [ebx + 0x538]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x43bddd
xor eax, eax
mov al, byte [ebx + 0x548]
mov edx, dword [ebp - 0x8c]
cmp eax, edx
jne 0x43bddd
lea eax, [ebx + 0x548]
mov cl, byte [eax]
test cl, cl
jne 0x43bd71
mov byte [ebp - 0xcf], 0x81
lea ecx, [ebp - 0xcf]
jmp 0x43bdb3
mov cl, byte [eax]
cmp cl, 1
jne 0x43bd8b
lea edx, [eax + 1]
lea ecx, [ebp - 0xcf]
mov dl, byte [edx]
mov byte [ebp - 0xcf], dl
jmp 0x43bdb3
mov dl, byte [eax + 1]
mov cl, byte [eax + 2]
cmp dl, cl
setg dl
and edx, 1
test dl, dl
je 0x43bda2
lea esi, [eax + 1]
jmp 0x43bda5
lea esi, [eax + 2]
mov al, byte [esi]
lea ecx, [ebp - 0xcf]
mov byte [ebp - 0xcf], al
mov dl, byte [ebp - 0xcf]
mov al, byte [ebp - 0x6f]
cmp dl, al
setg dl
and edx, 1
test dl, dl
jne 0x43bddd
dec dword [ebx + 0x53c]
mov eax, dword [ebx + 0x53c]
cmp eax, 2
jg 0x43bcf2
mov dl, 8
mov byte [ebp - 0xd0], dl
movsx ecx, byte [ebp - 0x6f]
movsx eax, byte [ebp - 0xd0]
add ecx, eax
mov dword [ebp - 0xd4], ecx
mov edx, dword [ebp - 0xd4]
mov dword [ebp - 0xd8], edx
mov ecx, dword [ebp - 0xd8]
cmp ecx, 0x7f
jle 0x43be13
mov al, 0x7f
jmp 0x43be28
mov edx, dword [ebp - 0xd8]
cmp edx, 0xffffff81
jge 0x43be22
mov al, 0x81
jmp 0x43be28
mov al, byte [ebp - 0xd8]
mov byte [ebp - 0xdf], al
lea edx, [ebp - 0xdf]
mov cl, byte [edx]
mov byte [ebp - 0x6f], cl
push 0
push 0
push 0
push dword [ebx + 0x538]
call sub.KERNEL32.dll_SetFilePointer
push 0
push 0
push 0
push dword [ebx + 0x534]
call sub.KERNEL32.dll_SetFilePointer
xor esi, esi
jmp 0x43bf7e
lea eax, [ebx + 0x549]
test eax, eax
je 0x43bfb0
lea edx, [ebp - 0xe4]
push 0
push edx
xor ecx, ecx
mov cl, byte [ebx + 0x548]
lea eax, [ebx + 0x549]
push ecx
push eax
push dword [ebx + 0x538]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x43bfb0
xor edx, edx
mov dl, byte [ebx + 0x548]
mov ecx, dword [ebp - 0xe4]
cmp edx, ecx
jne 0x43bfb0
lea eax, [ebx + 0x548]
mov cl, byte [eax]
test cl, cl
jne 0x43becd
mov byte [ebp - 0xef], 0x81
lea ecx, [ebp - 0xef]
jmp 0x43bf1b
mov cl, byte [eax]
cmp cl, 1
jne 0x43bee7
lea edx, [eax + 1]
lea ecx, [ebp - 0xef]
mov dl, byte [edx]
mov byte [ebp - 0xef], dl
jmp 0x43bf1b
mov dl, byte [eax + 1]
mov cl, byte [eax + 2]
cmp dl, cl
setg dl
and edx, 1
test dl, dl
je 0x43befe
lea ecx, [eax + 1]
jmp 0x43bf01
lea ecx, [eax + 2]
mov dword [ebp - 0xf4], ecx
lea ecx, [ebp - 0xef]
mov eax, dword [ebp - 0xf4]
mov dl, byte [eax]
mov byte [ebp - 0xef], dl
mov al, byte [ebp - 0xef]
mov dl, byte [ebp - 0x6f]
cmp al, dl
setg al
and eax, 1
test al, al
je 0x43bf77
test esi, esi
jle 0x43bf3b
dec esi
inc dword [ebx + 0x53c]
push 0
push 0
xor edx, edx
mov dl, byte [ebx + 0xc]
imul edx, esi
push edx
push dword [ebx + 0x538]
call sub.KERNEL32.dll_SetFilePointer
push 0
push 0
xor ecx, ecx
mov cl, byte [ebx + 0xc]
imul ecx, esi
imul ecx, dword [ebx + 0x540]
shl ecx, 2
push ecx
push dword [ebx + 0x534]
call sub.KERNEL32.dll_SetFilePointer
jmp 0x43bfb0
inc esi
dec dword [ebx + 0x53c]
mov eax, dword [ebx + 0x53c]
test eax, eax
jg 0x43be62
jmp 0x43bfb0
push 0
push 0
push 0
push dword [ebx + 0x538]
call sub.KERNEL32.dll_SetFilePointer
push 0
push 0
push 0
push dword [ebx + 0x534]
call sub.KERNEL32.dll_SetFilePointer
xor edx, edx
mov dword [ebp - 0xf8], edx
mov ecx, dword [ebp - 0xf8]
mov eax, dword [ebx + 0x53c]
cmp ecx, eax
jge 0x43c0e4
lea edx, [ebx + 0x549]
test edx, edx
je 0x43c0e4
lea ecx, [ebp - 0xfc]
push 0
push ecx
xor eax, eax
mov al, byte [ebx + 0x548]
lea edx, [ebx + 0x549]
push eax
push edx
push dword [ebx + 0x538]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x43c0e4
xor eax, eax
jmp 0x43c06d
xor ecx, ecx
mov cl, al
add ecx, ebx
add ecx, 0x64a
mov dword [ebp - 0x100], ecx
xor ecx, ecx
mov esi, dword [ebp - 0x100]
mov cl, al
movsx ecx, byte [ebx + ecx + 0x549]
movsx esi, byte [esi]
add ecx, esi
mov dword [ebp - 0x104], ecx
mov edx, dword [ebp - 0x104]
cmp edx, 0x7f
jle 0x43c048
mov cl, 0x7f
jmp 0x43c053
cmp edx, 0xffffff81
jge 0x43c051
mov cl, 0x81
jmp 0x43c053
mov ecx, edx
mov byte [ebp - 0x14f], cl
xor ecx, ecx
lea edx, [ebp - 0x14f]
mov cl, al
mov dl, byte [edx]
mov byte [ebx + ecx + 0x549], dl
inc eax
mov dl, byte [ebx + 0x548]
cmp al, dl
jb 0x43c00a
add esp, 0xfffffffc
lea eax, [ebx + 0x548]
mov cl, byte [eax]
test cl, cl
jne 0x43c08e
mov byte [esp], 0x81
mov edx, esp
jmp 0x43c0da
mov cl, byte [eax]
cmp cl, 1
jne 0x43c0ad
lea edx, [eax + 1]
mov dword [ebp - 0x154], edx
mov ecx, dword [ebp - 0x154]
mov dl, byte [ecx]
mov byte [esp], dl
mov edx, esp
jmp 0x43c0da
mov cl, byte [eax + 1]
mov dl, byte [eax + 2]
cmp cl, dl
setg cl
and ecx, 1
test cl, cl
je 0x43c0c4
lea edx, [eax + 1]
jmp 0x43c0c7
lea edx, [eax + 2]
mov dword [ebp - 0x158], edx
mov edx, esp
mov eax, dword [ebp - 0x158]
mov cl, byte [eax]
mov byte [esp], cl
lea eax, [ebx + 0x10]
call fcn.00430751
jmp 0x43c0ec
lea eax, [ebx + 0x10]
call fcn.00430964
inc dword [ebp - 0xf8]
mov edx, dword [ebp - 0xf8]
cmp edx, 0x33
jl 0x43bfb8
xor eax, eax
jmp 0x43c2d6
mov cl, byte [ebp + 0x20]
test cl, cl
je 0x43c116
xor ecx, ecx
jmp 0x43c2c8
movsx edx, byte [ebx + 0x42b]
neg edx
cmp edx, 0x7f
jle 0x43c128
mov cl, 0x7f
jmp 0x43c133
cmp edx, 0xffffff81
jge 0x43c131
mov cl, 0x81
jmp 0x43c133
mov ecx, edx
xor edx, edx
mov byte [ebp - 0x15f], cl
mov dl, al
movsx ecx, byte [ebp - 0x15f]
movsx edx, byte [ebx + edx + 0x64a]
add edx, ecx
mov dword [ebp - 0x164], edx
mov esi, dword [ebp - 0x164]
cmp esi, 0x7f
jle 0x43c163
mov dl, 0x7f
jmp 0x43c16e
cmp esi, 0xffffff81
jge 0x43c16c
mov dl, 0x81
jmp 0x43c16e
mov edx, esi
mov byte [ebp - 0x16f], dl
lea ecx, [ebx + 0x10]
mov dword [ebp - 0x174], ecx
mov edx, dword [ebp - 0x174]
mov ecx, dword [edx + 2]
test ecx, ecx
je 0x43c1a3
mov edx, dword [ebp - 0x174]
mov ecx, dword [edx + 2]
mov edx, dword [ebp - 0x174]
mov edx, dword [edx + 0x417]
add ecx, edx
jmp 0x43c1b0
mov byte [ebp - 0x17f], 0
lea ecx, [ebp - 0x17f]
mov dword [ebp - 0x178], ecx
mov edx, dword [ebp - 0x178]
mov cl, byte [edx]
mov byte [ebp - 0x180], cl
movsx edx, byte [ebx + 0x42b]
neg edx
mov dword [ebp - 0x184], edx
mov ecx, dword [ebp - 0x184]
cmp ecx, 0x7f
jle 0x43c1e2
mov dl, 0x7f
jmp 0x43c1f7
mov ecx, dword [ebp - 0x184]
cmp ecx, 0xffffff81
jge 0x43c1f1
mov dl, 0x81
jmp 0x43c1f7
mov dl, byte [ebp - 0x184]
mov byte [ebp - 0x1cf], dl
movsx ecx, byte [ebp - 0x180]
movsx edx, byte [ebp - 0x1cf]
add ecx, edx
mov dword [ebp - 0x1d4], ecx
mov ecx, dword [ebp - 0x1d4]
mov dword [ebp - 0x1d8], ecx
mov edx, dword [ebp - 0x1d8]
cmp edx, 0x7f
jle 0x43c22e
mov cl, 0x7f
jmp 0x43c243
mov edx, dword [ebp - 0x1d8]
cmp edx, 0xffffff81
jge 0x43c23d
mov cl, 0x81
jmp 0x43c243
mov cl, byte [ebp - 0x1d8]
mov byte [ebp - 0x1df], cl
movsx edx, byte [ebp - 0x1df]
add edx, ebx
add edx, 0x4b4
mov dword [ebp - 0x1e4], edx
mov edx, dword [ebp - 0x1e4]
mov cl, byte [edx]
mov byte [ebp - 0x1ef], cl
movsx edx, byte [ebp - 0x16f]
movsx ecx, byte [ebp - 0x1ef]
add edx, ecx
mov dword [ebp - 0x1f4], edx
mov edx, dword [ebp - 0x1f4]
mov dword [ebp - 0x1f8], edx
mov ecx, dword [ebp - 0x1f8]
cmp ecx, 0x7f
jle 0x43c29d
mov dl, 0x7f
jmp 0x43c2b2
mov ecx, dword [ebp - 0x1f8]
cmp ecx, 0xffffff81
jge 0x43c2ac
mov dl, 0x81
jmp 0x43c2b2
mov dl, byte [ebp - 0x1f8]
mov byte [ebp - 0x1ff], dl
mov edx, dword [0x46df20]
movsx ecx, byte [ebp - 0x1ff]
mov ecx, dword [edx + ecx*4]
xor edx, edx
mov dl, al
mov esi, dword [ebx + 0x74a]
mov dword [esi + edx*8], ecx
inc eax
mov dl, byte [ebx + 0xc]
cmp al, dl
jb 0x43c108
xor eax, eax
mov dword [ebx + 0x74e], eax
mov eax, ebx
mov ecx, dword [ebx + 0x53c]
imul ecx, dword [ebx + 0x540]
mov dword [ebx + 0x752], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30