Function at 0x4b1e90
Capabilities:
Enumerate pe sections
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5dcf00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
mov ebp, ecx
push esi
push edi
push 1
lea esi, [ebp + 0x7c]
lea ecx, [esp + 0x24]
push esi
call fcn.0044b31e
xor ebx, ebx
push 1
push esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x54], ebx
call fcn.0044b31e
mov eax, dword [ebp + 0x70]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x10], edi
jle 0x4b1ef3
mov ecx, dword [ebp + 0x6c]
mov edx, dword [esp + 0x54]
cmp edx, dword [ecx]
je 0x4b1f01
inc edi
add ecx, 0x30
cmp edi, eax
jl 0x4b1ee3
mov dword [esp + 0x10], edi
mov byte [esp + 0x4c], 0
lea ecx, [esp + 0x2c]
jmp 0x4b256e
lea ecx, [esp + 0x2c]
mov dword [esp + 0x10], edi
mov byte [esp + 0x4c], 0
call fcn.0044b35a
cmp edi, 0xffffffff
je 0x4b2573
mov ecx, dword [esp + 0x58]
cmp dword [ecx], ebx
jne 0x4b1f8e
cmp dword [ecx + 4], 0x6d
jne 0x4b1f8e
lea eax, [ebp + 0x7c]
push 1
push eax
lea ecx, [esp + 0x40]
call fcn.0044b31e
mov eax, dword [ebp + 0x6c]
lea esi, [edi + edi*2]
shl esi, 4
add esi, eax
mov byte [esp + 0x4c], 2
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
je 0x4b1f5b
mov dword [esi + 4], ebx
jmp 0x4b1f62
mov dword [esi + 4], 0xffff
mov ecx, esi
call fcn.004b3040
push edi
mov ecx, ebp
mov dword [esi + 0x28], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.004b2860
mov byte [esp + 0x4c], 0
lea ecx, [esp + 0x38]
jmp 0x4b256e
mov edx, dword [ebp + 0x6c]
lea ebx, [edi + edi*2]
shl ebx, 4
mov esi, dword [ebx + edx + 0x20]
lea eax, [ebx + edx]
mov edx, dword [ecx + 0xc]
cmp esi, edx
je 0x4b1fb3
cmp dword [eax + 0x24], edx
je 0x4b236b
jmp 0x4b2573
mov edx, dword [eax + 4]
mov ecx, dword [ecx + 8]
test edx, edx
mov dword [esp + 0x58], ecx
je 0x4b1fca
cmp ecx, 0x20
jb case.0x4b1fe8.5
mov esi, dword [eax + 0x18]
cmp word [esi], 0xecec
je 0x4b1fdf
cmp word [esi + 2], 0
jne case.0x4b1fe8.5
cmp edx, 7
ja case.0x4b1fe8.5
jmp dword [edx*4 + 0x4b259c]
mov dword [eax + 4], 1
jmp case.0x4b1fe8.5
cmp word [esi + 6], 1
jne case.0x4b1fe8.5
mov ecx, dword [esi + 0x14]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 0x6c]
mov eax, ebx
add eax, ecx
mov ecx, ebp
mov dword [esp + 0x54], eax
call fcn.004b1e20
mov edx, dword [esp + 0x54]
push 0x20
push esi
push edi
mov dword [edx + 8], eax
mov word [esi + 2], 1
mov eax, dword [ebp + 0x6c]
mov ecx, dword [ebx + eax + 8]
mov dword [esi + 8], ecx
mov ecx, ebp
call fcn.004b25c0
mov edx, dword [ebp + 0x6c]
mov dword [ebx + edx + 4], 2
jmp case.0x4b1fe8.5
cmp word [esi + 6], 2
jne case.0x4b1fe8.5
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov eax, dword [eax + 0xc]
push ecx
push edx
push eax
mov ecx, ebp
call fcn.004b2aa0
test eax, eax
jne 0x4b208f
mov eax, 1
push 0x20
push esi
mov word [esi + 2], ax
mov word [esi + 4], ax
mov dword [esi + 0x14], 0
push edi
jmp 0x4b22bb
mov ecx, dword [ebp + 0x6c]
mov edx, dword [esi + 0x10]
push 0x20
push esi
mov dword [ebx + ecx + 0x10], edx
mov ecx, dword [ebp + 0x6c]
push edi
mov dword [ebx + ecx + 0x14], eax
mov ecx, ebp
mov word [esi + 2], 1
mov word [esi + 4], 0
mov dword [esi + 0x14], eax
call fcn.004b25c0
mov edx, dword [ebp + 0x6c]
mov ecx, dword [ebx + edx + 0xc]
lea eax, [ebx + edx]
cmp ecx, 1
jne 0x4b20d5
mov dword [eax + 4], 3
jmp case.0x4b1fe8.5
cmp ecx, 2
jne case.0x4b1fe8.5
mov dword [eax + 4], 7
jmp case.0x4b1fe8.5
mov ax, word [esi + 6]
cmp ax, 3
jne 0x4b211b
push 0x20
push esi
push edi
mov ecx, ebp
mov word [esi + 2], 1
mov word [esi + 4], 0
call fcn.004b25c0
mov eax, dword [ebp + 0x6c]
mov dword [ebx + eax + 4], 4
jmp case.0x4b1fe8.5
cmp ax, 5
jne case.0x4b1fe8.5
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push ecx
push edx
mov ecx, ebp
call fcn.004b2b80
test eax, eax
mov dword [esp + 0x54], eax
jge 0x4b2152
mov eax, 1
push 0x20
push esi
mov word [esi + 2], ax
mov word [esi + 4], ax
push edi
jmp 0x4b22bb
mov word [esi + 2], 1
mov eax, dword [ebp + 0x6c]
mov ecx, dword [ebx + eax + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [ebp + 0x6c]
mov ecx, ebp
mov eax, dword [ebx + edx + 0x14]
mov dword [esi + 0x14], eax
call fcn.004b1e20
mov dword [esi + 8], eax
mov ecx, dword [ebp + 0x6c]
mov eax, dword [esp + 0x54]
push 0x20
mov edx, dword [ebx + ecx + 8]
push esi
push eax
mov ecx, ebp
mov dword [esi + 0xc], edx
call fcn.004b25c0
mov ecx, dword [ebp + 0x6c]
mov dword [ebx + ecx + 4], 5
jmp case.0x4b1fe8.5
cmp word [esi + 6], 4
jne case.0x4b1fe8.5
mov edx, dword [esi + 0xc]
lea eax, [ebp + 0x7c]
push 1
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x1c], edx
call fcn.0044b31e
mov ecx, dword [ebp + 0x70]
mov dword [esp + 0x54], 0
test ecx, ecx
jle 0x4b21ed
mov eax, dword [ebp + 0x6c]
add eax, 8
mov edx, dword [eax]
cmp edx, dword [esp + 0x14]
je 0x4b2200
mov edx, dword [esp + 0x54]
add eax, 0x30
inc edx
cmp edx, ecx
mov dword [esp + 0x54], edx
jl 0x4b21d5
lea ecx, [esp + 0x38]
mov byte [esp + 0x4c], 0
call fcn.0044b35a
jmp case.0x4b1fe8.5
lea ecx, [esp + 0x38]
mov byte [esp + 0x4c], 0
call fcn.0044b35a
mov eax, dword [esp + 0x54]
test eax, eax
jl case.0x4b1fe8.5
mov ecx, dword [ebp + 0x6c]
lea eax, [eax + eax*2]
shl eax, 4
cmp dword [eax + ecx + 4], 5
jne case.0x4b1fe8.5
mov word [esi + 2], 1
mov word [esi + 6], 5
mov edx, dword [ebp + 0x6c]
mov eax, dword [ebx + edx + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [ebp + 0x6c]
mov eax, dword [esi + 8]
mov edx, dword [ebx + ecx + 0x14]
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0x58]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x54]
push edx
mov dword [esi + 8], ecx
push esi
jmp 0x4b22ba
cmp word [esi + 6], 6
jne case.0x4b1fe8.5
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push ecx
push edx
mov ecx, ebp
call fcn.004b2c40
test eax, eax
jl case.0x4b1fe8.5
mov word [esi + 2], 1
mov ecx, dword [ebp + 0x6c]
mov edx, dword [ebx + ecx + 0x10]
mov dword [esi + 0x10], edx
mov ecx, dword [ebp + 0x6c]
mov edx, dword [ebx + ecx + 0x14]
lea ecx, [eax + eax*2]
mov dword [esi + 0x14], edx
mov edx, dword [ebp + 0x6c]
shl ecx, 4
mov ecx, dword [ecx + edx + 8]
mov dword [esi + 0xc], ecx
mov edx, dword [ebp + 0x6c]
mov ecx, dword [ebx + edx + 8]
mov edx, dword [esp + 0x58]
push edx
mov dword [esi + 8], ecx
push esi
push eax
mov ecx, ebp
call fcn.004b25c0
push edi
mov ecx, ebp
call fcn.004b2780
test eax, eax
jne 0x4b2573
lea eax, [ebp + 0x7c]
push 1
push eax
lea ecx, [esp + 0x40]
call fcn.0044b31e
mov esi, dword [ebp + 0x6c]
mov byte [esp + 0x4c], 4
add ebx, esi
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
je 0x4b22ff
xor edi, edi
mov dword [ebx + 4], edi
jmp 0x4b2308
mov dword [ebx + 4], 0xffff
xor edi, edi
mov eax, dword [ebx + 0x2c]
cmp eax, edi
je 0x4b2342
cmp dword [eax + 0xc], edi
je 0x4b2342
mov esi, dword [eax + 4]
mov eax, dword [esi + 0xc]
add esi, 8
cmp eax, edi
je 0x4b232d
push eax
call fcn.005b83f5
add esp, 4
mov dword [esi + 4], edi
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebx + 0x2c]
call fcn.004b32b0
mov eax, dword [ebx + 0x2c]
cmp dword [eax + 0xc], edi
jne 0x4b2314
mov edx, dword [esp + 0x10]
mov ecx, ebp
push edx
mov dword [ebx + 0x28], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edi
call fcn.004b2860
mov byte [esp + 0x4c], 0
lea ecx, [esp + 0x38]
jmp 0x4b256e
mov esi, dword [eax + 0x2c]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
cmp dword [esi + 0xc], edi
je 0x4b23e8
cmp dword [esp + 0x18], edi
jne 0x4b23fa
mov eax, dword [esi + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x14], ecx
mov ecx, eax
mov edx, dword [eax + 0xc]
mov eax, dword [ecx]
mov dword [esp + 0x18], edx
cmp eax, edi
mov dword [esi + 4], eax
je 0x4b23a4
mov dword [eax + 4], edi
jmp 0x4b23a7
mov dword [esi + 8], edi
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
mov eax, dword [esi + 0xc]
dec eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0xc], eax
jne 0x4b23dc
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4b23c5
mov eax, dword [eax]
cmp eax, edi
jne 0x4b23bf
mov ecx, dword [esi + 0x14]
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 8], edi
mov dword [esi + 4], edi
call fcn.005b6db3
mov dword [esi + 0x14], edi
mov ecx, dword [ebp + 0x6c]
mov esi, dword [ebx + ecx + 0x2c]
cmp dword [esi + 0xc], edi
jne 0x4b237d
cmp dword [esp + 0x18], edi
jne 0x4b23fa
mov edx, dword [ebp + 0x6c]
mov dword [ebx + edx + 0x28], edi
jmp 0x4b2573
mov ecx, dword [esp + 0x14]
mov eax, 0x640
cmp ecx, eax
jbe 0x4b240b
mov dword [esp + 0x14], eax
mov edx, dword [ebp + 0x6c]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edi, dword [ebx + edx + 0x1c]
mov edx, ecx
mov esi, eax
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.005b83f5
mov eax, dword [ebp + 0x6c]
xor esi, esi
mov dword [esp + 0x58], esi
add esp, 4
mov ecx, dword [ebx + eax + 0x24]
mov dword [ecx], esi
mov edx, dword [ebp + 0x6c]
mov eax, dword [ebx + edx + 0x24]
mov dword [eax + 4], esi
mov ecx, dword [ebp + 0x6c]
mov edx, dword [ebx + ecx + 0x24]
mov dword [edx + 8], esi
mov eax, dword [ebp + 0x6c]
mov ecx, dword [ebx + eax + 0x24]
mov dword [ecx + 0xc], esi
mov edx, dword [ebp + 0x6c]
mov ecx, dword [ebx + edx + 0x24]
lea eax, [ebx + edx]
lea edx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [eax + 0x1c]
mov eax, dword [eax]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, esi
jne 0x4b2573
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4b2573
lea eax, [ebp + 0x7c]
push 1
push eax
lea ecx, [esp + 0x1c]
call fcn.0044b31e
mov esi, dword [ebp + 0x6c]
mov byte [esp + 0x4c], 5
add ebx, esi
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
je 0x4b24c8
xor edi, edi
mov dword [ebx + 4], edi
jmp 0x4b24d1
mov dword [ebx + 4], 0xffff
xor edi, edi
mov eax, dword [ebx + 0x2c]
cmp eax, edi
je 0x4b254a
cmp dword [eax + 0xc], edi
je 0x4b254a
mov esi, dword [eax + 4]
mov eax, dword [esi + 0xc]
add esi, 8
cmp eax, edi
je 0x4b24f6
push eax
call fcn.005b83f5
add esp, 4
mov dword [esi + 4], edi
mov esi, dword [ebx + 0x2c]
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
cmp eax, edi
mov dword [esi + 4], eax
je 0x4b250a
mov dword [eax + 4], edi
jmp 0x4b250d
mov dword [esi + 8], edi
mov edx, dword [esi + 0x10]
mov dword [ecx], edx
mov eax, dword [esi + 0xc]
dec eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0xc], eax
jne 0x4b2542
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4b252b
mov eax, dword [eax]
cmp eax, edi
jne 0x4b2525
mov ecx, dword [esi + 0x14]
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 8], edi
mov dword [esi + 4], edi
call fcn.005b6db3
mov dword [esi + 0x14], edi
mov eax, dword [ebx + 0x2c]
cmp dword [eax + 0xc], edi
jne 0x4b24dd
mov eax, dword [esp + 0x10]
mov ecx, ebp
push eax
mov dword [ebx + 0x28], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edi
call fcn.004b2860
mov byte [esp + 0x4c], 0
lea ecx, [esp + 0x14]
call fcn.0044b35a
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], 0xffffffff
call fcn.0044b35a
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 8