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

Disassembly:
sub esp, 0x5c
mov eax, dword [0x10005004]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push ebp
mov ebx, ecx
push esi
push edi
test ebx, ebx
je 0x1000235b
cmp byte [ebx + 0xc08], 0
lea ecx, [ebx + 0xc08]
je 0x1000235b
mov eax, dword [ebx + 0x101c]
mov dword [ebx + 0x1018], 0
mov dword [ebx + 0x1010], 0
mov dword [ebx + 0x1014], 0
mov dword [ebx + 0x1028], 0
mov dword [ebx + 0x1020], 0
mov dword [ebx + 0x1024], 0
mov dword [ebx + 0x1038], 0
mov dword [ebx + 0x1030], 0
mov dword [ebx + 0x1034], 0
cmp eax, 1
je 0x10001eff
cmp eax, 2
jne 0x1000235b
cmp byte [ebx + 0xd08], 0
lea edi, [ebx + 0xd08]
je 0x1000235b
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
push 7
push str.http:__
push edi
call esi
add esp, 0xc
test eax, eax
je 0x10001e74
push 8
push str.https:__
push edi
call esi
add esp, 0xc
test eax, eax
je 0x10001e74
mov eax, 8
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10001000
add esp, 0x5c
ret
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001e80
sub ecx, edx
cmp ecx, 8
jbe 0x10001ee1
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x10001e93
sub edx, ecx
cmp byte [ebx + edx + 0xd07], 0x2f
je 0x10001ed7
mov ebp, 0x1000b4a0
mov esi, ebp
nop dword [eax]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x10001eb0
sub ebp, esi
dec edi
nop dword [eax + eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10001ec0
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
inc edx
rep movsb byte es:[edi], byte [esi]
lea eax, [edx + 8]
cmp eax, 0x100
jl 0x10001ef9
mov eax, 9
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10001000
add esp, 0x5c
ret
lea ecx, [ebx + 0xc08]
mov eax, dword [ebx]
cmp eax, 1
je 0x10001f2d
cmp eax, 2
je 0x10001f2d
cmp eax, 3
je 0x10001f2d
cmp eax, 0xffffffff
je 0x10001f2d
mov eax, 7
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10001000
add esp, 0x5c
ret
mov eax, dword [ebx + 4]
cmp eax, 1
je 0x10001f57
cmp eax, 2
je 0x10001f57
cmp eax, 3
je 0x10001f57
mov eax, 0xf
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10001000
add esp, 0x5c
ret
lea edx, [esp + 0x20]
call fcn.10003030
test eax, eax
jne 0x10002360
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x1008], eax
cmp eax, 3
je 0x10001f80
cmp eax, 4
jne 0x1000216b
mov ecx, dword [ebx]
cmp ecx, 1
jne 0x1000208b
cmp dword [esp + 0x38], 2
je 0x1000209f
cmp eax, 3
jne 0x1000216b
cmp byte [ebx + 0x208], 0
je 0x10002191
mov esi, dword [esp + 0x30]
mov edx, 0x14c
mov eax, 0x78
mov ecx, 0x88
mov edi, dword [esi + 0x3c]
add edi, esi
cmp word [edi + 4], dx
cmovne eax, ecx
add eax, edi
je 0x10002161
mov edx, dword [eax]
test edx, edx
je 0x10002161
mov ecx, esi
call fcn.10003440
cmp eax, 0xffffffff
je 0x10002161
mov ecx, dword [esi + eax + 0x18]
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x10002161
mov edx, dword [esi + eax + 0x20]
mov ecx, esi
call fcn.10003440
movzx ecx, word [edi + 0x14]
add eax, esi
movzx ebp, word [edi + 6]
lea esi, [edi + 0x18]
add esi, ecx
mov ecx, dword [esp + 0x14]
dec ecx
mov dword [esp + 0x1c], esi
lea ecx, [eax + ecx*4]
mov dword [esp + 0x18], ecx
mov edi, dword [ecx]
xor edx, edx
test ebp, ebp
je 0x1000204d
lea ecx, [esi + 0x10]
mov esi, dword [ecx - 4]
cmp edi, esi
jb 0x10002045
mov eax, dword [ecx]
add eax, esi
cmp edi, eax
jb 0x10002124
inc edx
add ecx, 0x28
cmp edx, ebp
jb 0x10002032
or edx, 0xffffffff
mov eax, dword [esp + 0x30]
lea ecx, [ebx + 0x208]
add eax, edx
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10002138
test dl, dl
je 0x10002084
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10002138
add eax, 2
add ecx, 2
test dl, dl
jne 0x10002060
xor eax, eax
jmp 0x1000213d
cmp ecx, 2
jne 0x10001f96
cmp dword [esp + 0x38], 1
jne 0x10001f96
mov edi, 0xd
mov eax, dword [ebx + 0x1018]
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
je 0x100020c4
push eax
call esi
add esp, 4
mov dword [ebx + 0x1018], 0
mov eax, dword [ebx + 0x1028]
test eax, eax
je 0x100020de
push eax
call esi
add esp, 4
mov dword [ebx + 0x1028], 0
mov eax, dword [ebx + 0x1038]
test eax, eax
je 0x100020f8
push eax
call esi
add esp, 4
mov dword [ebx + 0x1038], 0
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10001000
add esp, 0x5c
ret
lea eax, [edx + edx*4]
mov edx, dword [esp + 0x1c]
mov edx, dword [edx + eax*8 + 0x14]
sub edx, esi
add edx, edi
jmp 0x10002050
sbb eax, eax
or eax, 1
test eax, eax
je 0x10002191
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
dec eax
mov esi, dword [esp + 0x1c]
sub ecx, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
test eax, eax
jne 0x10002027
mov edi, 0xc
jmp 0x100020a4
cmp eax, 1
jne 0x1000218c
cmp byte [ebx + 0x108], 0
je 0x10002182
cmp byte [ebx + 0x208], 0
jne 0x100021ad
mov edi, 5
jmp 0x100020a4
cmp eax, 3
jne 0x100021ad
cmp byte [ebx + 0x308], 0
je 0x100021ad
cmp byte [ebx + 0x208], 0
jne 0x100021ad
mov edi, 0xe
jmp 0x100020a4
lea edx, [esp + 0x20]
mov ecx, ebx
call fcn.10002a50
mov edi, eax
test edi, edi
jne 0x100020a4
mov ecx, ebx
call fcn.10002380
mov edi, eax
test edi, edi
jne 0x100020a4
cmp dword [ebx + 0x101c], 2
jne 0x10002216
lea eax, [ebx + 0xf08]
push 0x1000b35c
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x10002216
push esi
push dword [ebx + 0x1010]
push 1
push dword [ebx + 0x1018]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
mov eax, dword [ebx]
cmp eax, 1
jne 0x1000222b
mov ecx, dword [ebx + 0x1020]
add ecx, 0x1dda
jmp 0x1000224f
cmp eax, 2
jne 0x1000223e
mov ecx, dword [ebx + 0x1020]
add ecx, 0x3fc0
jmp 0x1000224f
cmp eax, 3
jne 0x10002264
mov ecx, dword [ebx + 0x1020]
add ecx, 0x5d7a
mov eax, dword [ebx + 0x1024]
adc eax, 0
mov dword [ebx + 0x1030], ecx
mov dword [ebx + 0x1034], eax
push dword [ebx + 0x1030]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
mov dword [ebx + 0x1038], esi
test esi, esi
jne 0x10002287
lea edi, [eax + 6]
jmp 0x100020a4
mov byte [esi], 0xe8
mov eax, dword [ebx + 0x1020]
mov dword [esi + 1], eax
add esi, 5
push dword [ebx + 0x1020]
push dword [ebx + 0x1028]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esi, dword [ebx + 0x1020]
add esp, 0xc
mov byte [esi], 0x59
inc esi
mov eax, dword [ebx]
cmp eax, 1
jne 0x100022e0
mov word [esi], 0x515a
push 0x1dba
mov byte [esi + 2], 0x52
add esi, 3
push 0x100093e8
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x100020f8
cmp eax, 2
jne 0x100022fd
push 0x3fa0
push 0x10005448
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x100020f8
cmp eax, 3
jne 0x100020f8
mov dword [esi], 0xf48c031
mov byte [esi + 4], 0x88
push 0x3fa0
mov dword [esi + 5], 0x3fa0
add esi, 9
push 0x10005448
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov word [esi + 0x3fa0], 0x515a
mov byte [esi + 0x3fa2], 0x52
add esi, 0x3fa3
push 0x1dba
push 0x100093e8
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x100020f8
mov eax, 0xa
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10001000
add esp, 0x5c
ret