Function at 0x60123860
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60149c08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call fcn.60121f40
mov ebx, dword [ebp + 8]
push 4
lea eax, [ebp - 0x1c]
xor esi, esi
push eax
mov ecx, ebx
mov dword [ebp - 0x1c], esi
call fcn.6011e9b0
mov edi, eax
cmp edi, esi
jl 0x601239cf
mov dword [ebp - 0x18], esi
jmp 0x601238b0
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x1c]
jae 0x601239c3
mov ecx, dword [ebx + 8]
push esi
lea edx, [ebp - 0x20]
push edx
push 4
lea eax, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
jne 0x601239e2
call fcn.601180b0
mov edi, eax
cmp edi, esi
jl 0x601239c7
cmp byte [ebx], 0
je 0x6012393b
mov ecx, dword [ebx + 4]
mov esi, dword [ecx - 0xc]
xor eax, eax
xor edx, edx
div esi
mov al, byte [ebp - 0x14]
mov dl, byte [edx + ecx]
xor al, dl
mov byte [ebp - 0x14], al
xor edx, edx
mov eax, 1
div esi
mov al, byte [edx + ecx]
xor byte [ebp - 0x13], al
xor edx, edx
mov eax, 2
div esi
mov al, byte [ebp - 0x12]
mov dl, byte [edx + ecx]
xor al, dl
mov byte [ebp - 0x12], al
xor edx, edx
mov eax, 3
div esi
mov al, byte [edx + ecx]
xor byte [ebp - 0x11], al
xor esi, esi
cmp edi, esi
jl 0x601239c7
lea ecx, [ebp - 0x38]
call fcn.6011ea20
lea ecx, [ebp - 0x38]
push ecx
push ebx
mov dword [ebp - 4], esi
call fcn.6011f5f0
mov edi, eax
add esp, 8
cmp edi, esi
jge 0x601239f9
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x60123989
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x601239a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x601239c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp edi, esi
jge 0x601239cf
mov ecx, dword [ebp + 0xc]
call fcn.60121f40
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x20], 4
je 0x601239f2
mov edi, 0x80070026
jmp 0x6012393b
xor edi, edi
jmp 0x601238eb
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x38]
push eax
push ecx
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.60123040
jmp 0x60123a23
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
or edx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
cmp edi, esi
jge 0x60123a46
test edx, edx
jmp 0x6012397f
test edx, edx
jg 0x60123a52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x60123a6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x60123a8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
inc dword [ebp - 0x18]
jmp 0x601238b0