Function at 0x10034010
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a1487
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2d4
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.FindFirstStreamW
push str.kernel32.dll
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.FindNextStreamW
push str.kernel32.dll
mov ebx, eax
call edi
push eax
call esi
mov dword [ebp - 0x74], eax
test ebx, ebx
je 0x100344ee
test eax, eax
je 0x100344ee
push 8
call fcn.10079cc9
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
push 0x30
mov dword [ebp - 0x24], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10079cc9
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
xor al, al
mov edi, dword [ebp + 8]
push 0
mov byte [ebp - 0x11], al
lea eax, [ebp - 0x2dc]
push eax
push 0
push edi
call ebx
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x100344cd
mov bl, byte [ebp - 0x11]
lea esp, [esp]
test bl, bl
jne 0x10034154
or esi, 0xffffffff
xor edi, edi
lea esp, [esp]
test esi, esi
js 0x100340fb
mov eax, esi
dec esi
test eax, eax
jle 0x1003413b
movzx eax, word [ebp + edi - 0x2d4]
push eax
call fcn.10086fcc
add esp, 4
movzx ebx, ax
movzx eax, word [edi + str.::_DATA]
push eax
call fcn.10086fcc
movzx eax, ax
add esp, 4
cmp bx, ax
jne 0x10034131
test bx, bx
je 0x1003413b
add edi, 2
jmp 0x100340f0
test ax, ax
jne 0x10034145
cmp esi, 0xffffff9d
jne 0x10034145
mov bl, 1
mov byte [ebp - 0x11], bl
jmp 0x100344a6
mov esi, dword [ebp - 0x18]
cmp bx, ax
mov edi, dword [ebp + 8]
sete al
mov byte [ebp - 0x11], al
xor eax, eax
lea ecx, [ebp - 0x2d4]
mov dword [ebp - 0x54], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10034171
sub ecx, edx
lea eax, [ebp - 0x2d4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.10005340
mov dword [ebp - 4], 3
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
call fcn.10034820
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x40]
cmp ecx, 7
jbe 0x100341e5
mov edx, dword [ebp - 0x54]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100341db
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10034501
push ecx
push edx
call fcn.10079cf9
add esp, 8
xor eax, eax
mov dword [ebp - 0x44], 0
mov word [ebp - 0x54], ax
mov ecx, edi
mov eax, dword [ebp - 0x2dc]
mov dword [ebp - 0x40], 7
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
jmp 0x10034220
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10034220
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x3c]
call fcn.10005340
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x2d4]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10034250
sub ecx, edx
lea eax, [ebp - 0x2d4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.10011a30
cmp dword [ebp - 0x28], 7
lea eax, [ebp - 0x3c]
jbe 0x1003427b
mov eax, dword [ebp - 0x3c]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
je 0x10034452
push dword [ebx + 4]
call fcn.10079e9e
mov ecx, dword [ebx]
add esp, 4
mov dword [ebx], eax
test ecx, ecx
je 0x100342bc
push ecx
call fcn.10079d07
add esp, 4
mov edi, dword [ebx]
test edi, edi
je 0x10034449
mov esi, dword [ebx + 4]
test esi, esi
je 0x10034449
mov eax, esi
cmp esi, 0x10000
jb 0x100342e0
mov eax, 0x10000
push 0
lea ecx, [ebp - 0x70]
push ecx
push eax
push edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003430f
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x10034307
add edi, eax
sub esi, eax
jne 0x100342d1
jmp 0x10034449
sub dword [ebx + 4], esi
jmp 0x10034449
test esi, esi
je 0x10034449
xor eax, eax
lea ecx, [ebp - 0x2d4]
mov dword [ebp - 0x6c], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10034334
sub ecx, edx
lea eax, [ebp - 0x2d4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.10005340
mov byte [ebp - 4], 5
lea eax, [ebp - 0x6c]
mov ecx, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.10034ca0
mov esi, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], esi
mov edi, dword [eax]
cmp esi, dword [edi]
jne 0x100343a0
cmp byte [ebx + 0xd], 0
je 0x100343a0
push dword [edi + 4]
mov ecx, eax
push eax
call fcn.10035050
mov eax, dword [ebp - 0x18]
mov dword [edi + 4], edi
mov dword [edi], edi
mov dword [edi + 8], edi
mov dword [eax + 4], 0
jmp 0x100343f7
cmp esi, ebx
je 0x100343f7
lea ecx, [ebp - 0x1c]
call fcn.10034890
mov ecx, dword [ebp - 0x18]
push esi
call fcn.100348f0
mov edi, eax
lea esi, [edi + 0x10]
mov dword [ebp - 0x78], esi
mov byte [ebp - 4], 6
lea ecx, [esi + 0x18]
mov dword [ebp - 0x7c], ecx
mov byte [ebp - 4], 6
mov eax, dword [ecx]
test eax, eax
je 0x100343da
push eax
call fcn.10079d07
add esp, 4
mov byte [ebp - 4], 5
mov ecx, esi
call fcn.10004df0
push 0x30
push edi
call fcn.10079cf9
mov esi, dword [ebp - 0x1c]
add esp, 8
cmp esi, ebx
jne 0x100343a4
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x58]
cmp ecx, 7
jbe 0x10034435
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003442b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10034501
push ecx
push edx
call fcn.10079cf9
add esp, 8
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
cmp ecx, 7
jbe 0x1003448f
mov edx, dword [ebp - 0x3c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10034485
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10034501
push ecx
push edx
call fcn.10079cf9
add esp, 8
mov bl, byte [ebp - 0x11]
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x2dc]
push eax
push esi
call dword [ebp - 0x74]
test eax, eax
je 0x100344c3
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp + 8]
jmp 0x100340e0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x18]
cmp dword [esi + 4], 0
je 0x100344e6
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, esi
call fcn.10034510
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.100807af
int3