Function at 0x100504c0
Capabilities:
Receive http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088459
mov eax, dword fs:[0]
push eax
mov eax, 0xc4d0
mov dword fs:[0], esp
call fcn.10062960
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x7c], edi
cmp byte [edi + 0x4c], 0
lea esi, [edi + 0x38]
jne 0x10050515
push esi
lea eax, [edi + 0x10]
mov byte [edi + 0x4c], 1
push eax
push dword [edi + 0x1c]
push dword [edi + 0x14]
push 0
push dword [edi + 0xc]
push dword [edi + 8]
push dword [edi + 0x20]
call dword [sym.imp.HTTPAPI.dll_HttpReceiveHttpRequest]
mov dword [edi], eax
mov eax, dword [edi]
cmp eax, 0x3e5
je 0x10050526
test eax, eax
jne 0x10050e17
push 0
lea eax, [ebp - 0xcc]
push eax
push esi
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x10050e17
lea ecx, [ebp - 0x60]
mov byte [edi + 0x4c], 0
call fcn.1000b640
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x14]
cmp dword [eax + 0x48], 0
mov ecx, dword [eax + 0x44]
push ecx
lea ecx, [ebp - 0x28]
je 0x10050603
call fcn.1000acd0
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x78]
call fcn.1005de40
push 0xffffffffffffffff
push 1
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.1000af10
push eax
lea ecx, [ebp - 0x60]
call fcn.1000b450
lea ecx, [ebp - 0x98]
call fcn.1000b430
lea ecx, [ebp - 0x78]
call fcn.1000b430
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.1000abe0
push 0
push 0x100a0db4
lea ecx, [ebp - 0x60]
call fcn.10043aa0
cmp eax, 0xffffffff
je 0x10050655
push 0
push 0x100a0db4
lea ecx, [ebp - 0x60]
call fcn.10043aa0
push eax
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x60]
call fcn.1000af10
push eax
lea ecx, [ebp - 0x60]
call fcn.1000b450
lea ecx, [ebp - 0x28]
call fcn.1000b430
jmp 0x10050655
call fcn.1000acd0
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x78]
call fcn.1005de40
push 0xffffffffffffffff
push 1
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 4
push ecx
mov ecx, eax
call fcn.1000af10
push eax
lea ecx, [ebp - 0x60]
call fcn.1000b450
lea ecx, [ebp - 0x98]
call fcn.1000b430
lea ecx, [ebp - 0x78]
call fcn.1000b430
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.1000abe0
lea edx, [edi + 0x68]
lea ecx, [ebp - 0x60]
call fcn.10051f90
test al, al
je 0x10050e0f
lea ecx, [edi + 0x68]
call fcn.1000a830
lea ecx, [ebp - 0x60]
lea esi, [eax + 1]
call fcn.1000a830
cmp eax, esi
jbe 0x10050e0f
lea eax, [ebp - 0x2c]
mov byte [ebp - 0xe], 0x5c
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 0xd], 0x2f
call fcn.1000b220
lea ecx, [ebp - 0x60]
mov esi, dword [eax]
lea eax, [ebp - 0x48]
push eax
call fcn.1000b290
lea ecx, [ebp - 0xe]
push ecx
lea ecx, [ebp - 0xd]
push ecx
push esi
push dword [eax]
call fcn.10013d20
add esp, 0x10
lea ecx, [edi + 0x68]
push 0xffffffffffffffff
call fcn.1000a830
inc eax
lea ecx, [ebp - 0x60]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1000af10
push eax
lea ecx, [ebp - 0x60]
call fcn.1000b450
lea ecx, [ebp - 0x28]
call fcn.1000b430
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx + 0x24]
sub eax, 4
je 0x10050bd4
sub eax, 2
jne 0x10050dff
push eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push 0xc350
lea eax, [ebp - 0xc4dc]
push eax
push 1
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push dword [edi + 0x20]
call dword [sym.imp.HTTPAPI.dll_HttpReceiveRequestEntityBody]
lea ecx, [ebp - 0x78]
mov dword [edi], eax
call fcn.1000b640
mov byte [ebp - 4], 0xd
mov eax, dword [edi + 0x14]
cmp dword [eax + 0x48], 0
mov ecx, dword [eax + 0x44]
push ecx
lea ecx, [ebp - 0x28]
je 0x100507db
call fcn.1000acd0
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x44]
call fcn.1005de40
push 0xffffffffffffffff
push 1
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0xf
push ecx
mov ecx, eax
call fcn.1000af10
push eax
lea ecx, [ebp - 0x78]
call fcn.1000b450
lea ecx, [ebp - 0x98]
call fcn.1000b430
lea ecx, [ebp - 0x44]
call fcn.1000b430
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xd
call fcn.1000abe0
push 0
push 0x100a0db4
lea ecx, [ebp - 0x78]
call fcn.10043aa0
cmp eax, 0xffffffff
je 0x1005082d
push 0
push 0x100a0db4
lea ecx, [ebp - 0x78]
call fcn.10043aa0
push eax
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x78]
call fcn.1000af10
push eax
lea ecx, [ebp - 0x78]
call fcn.1000b450
lea ecx, [ebp - 0x28]
call fcn.1000b430
jmp 0x1005082d
call fcn.1000acd0
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x44]
call fcn.1005de40
push 0xffffffffffffffff
push 1
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0x11
push ecx
mov ecx, eax
call fcn.1000af10
push eax
lea ecx, [ebp - 0x78]
call fcn.1000b450
lea ecx, [ebp - 0x98]
call fcn.1000b430
lea ecx, [ebp - 0x44]
call fcn.1000b430
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xd
call fcn.1000abe0
lea eax, [ebp - 0x48]
mov byte [ebp - 0xd], 0x5c
push eax
lea ecx, [ebp - 0x78]
mov byte [ebp - 0xe], 0x2f
call fcn.1000b220
lea ecx, [ebp - 0x78]
mov esi, dword [eax]
lea eax, [ebp - 0x80]
push eax
call fcn.1000b290
lea ecx, [ebp - 0xd]
push ecx
lea ecx, [ebp - 0xe]
push ecx
push esi
push dword [eax]
call fcn.10013d20
add esp, 0x10
lea ecx, [edi + 0x68]
push 0xffffffffffffffff
call fcn.1000a830
inc eax
lea ecx, [ebp - 0x78]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1000af10
push eax
lea ecx, [ebp - 0x78]
call fcn.1000b450
lea ecx, [ebp - 0x28]
call fcn.1000b430
push str.cmd_
lea ecx, [ebp - 0x28]
call fcn.1000b5b0
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x78]
call fcn.10051f90
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.1000b430
test bl, bl
je 0x10050ba4
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x80], esp
push str.cmd_
call fcn.1000b5b0
sub esp, 0x18
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x78]
mov ecx, esp
push eax
call fcn.1000b6b0
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0xd
call fcn.1005e100
add esp, 0x30
push 0xffffffffffffffff
push 4
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x13
push ecx
mov ecx, eax
call fcn.1000af10
lea ecx, [ebp - 0xb0]
call fcn.1000b430
lea ecx, [ebp - 0x38]
call fcn.10009ab0
push 1
push 1
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x16
push eax
lea ecx, [ebp - 0x18c]
call fcn.1000dee0
lea ecx, [ebp - 0x98]
call fcn.1000b640
push 0x3b
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 0x18
push eax
lea eax, [ebp - 0x18c]
push eax
call fcn.10013fa0
add esp, 0xc
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call fcn.10003ba0
test al, al
je 0x10050997
nop
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x38]
call fcn.1000a2d0
push 0x3b
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x18c]
push eax
call fcn.10013fa0
add esp, 0xc
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call fcn.10003ba0
test al, al
jne 0x10050960
push str.savetofile
push 0
lea ecx, [ebp - 0x38]
call fcn.10009950
push eax
call fcn.10013fd0
add esp, 8
test al, al
je 0x10050b72
cmp dword [ebp - 0x2c], 0x4e20
jae 0x10050b72
push 0x100a0dc4
push 1
lea ecx, [ebp - 0x38]
call fcn.10009950
mov ecx, eax
call fcn.1000b0a0
push eax
call fcn.10062f20
add esp, 8
test eax, eax
jne 0x10050b14
push 1
lea ecx, [ebp - 0x38]
call fcn.10009950
mov edx, eax
lea ecx, [ebp - 0xc8]
call fcn.1005db60
mov esi, eax
push 0x100a0dc8
add edi, 0x1a0
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0xe4]
push edi
push eax
call fcn.10013680
push esi
push eax
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 0x1a
push eax
call fcn.10013940
add esp, 0x18
mov ecx, eax
call fcn.1000a850
push eax
call fcn.10067773
add esp, 4
lea ecx, [ebp - 0xb0]
call fcn.1000abe0
lea ecx, [ebp - 0xe4]
call fcn.1000abe0
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0x18
call fcn.1000abe0
push 1
lea ecx, [ebp - 0x38]
call fcn.10009950
mov edx, eax
lea ecx, [ebp - 0xb0]
call fcn.1005db60
mov esi, eax
push 0x100a0dc8
lea eax, [ebp - 0xe4]
mov byte [ebp - 4], 0x1b
push edi
push eax
call fcn.10013680
push esi
push eax
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 0x1c
push eax
call fcn.10013940
add esp, 0x18
mov ecx, eax
push 0x100a0df8
call fcn.1000a850
push eax
call fcn.1006bcfd
add esp, 8
lea ecx, [ebp - 0xc8]
mov esi, eax
call fcn.1000abe0
lea ecx, [ebp - 0xe4]
call fcn.1000abe0
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0x18
call fcn.1000abe0
test esi, esi
je 0x10050b11
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10050b08
push esi
push eax
lea eax, [ebp - 0xc4dc]
push 1
push eax
call fcn.1006bb58
add esp, 0x10
push esi
call fcn.10067812
add esp, 4
mov edi, dword [ebp - 0x7c]
push 0xffffffffffffffff
push 0x100a0dc0
push 0x100a0dc0
push 0xc8
push dword [edi + 0x14]
mov ecx, edi
push dword [edi + 0x20]
call fcn.10050e30
movzx eax, al
lea ecx, [ebp - 0x38]
mov dword [edi], eax
call fcn.10043760
lea ecx, [ebp - 0x98]
call fcn.1000b430
lea ecx, [ebp - 0x18c]
call fcn.10009020
lea ecx, [ebp - 0x38]
call fcn.1000a3f0
lea ecx, [ebp - 0x28]
call fcn.1000b430
lea ecx, [ebp - 0x78]
call fcn.1000b430
jmp 0x10050dff
lea ecx, [ebp - 0x38]
call fcn.10043760
lea ecx, [ebp - 0x98]
call fcn.1000b430
lea ecx, [ebp - 0x18c]
call fcn.10009020
lea ecx, [ebp - 0x38]
call fcn.1000a3f0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xd
call fcn.1000b430
push 0xffffffffffffffff
push 0x100a0dc0
push 0x100a0dc0
push 0xc8
push dword [edi + 0x14]
mov ecx, edi
push dword [edi + 0x20]
call fcn.10050e30
movzx eax, al
lea ecx, [ebp - 0x78]
mov dword [edi], eax
call fcn.1000b430
jmp 0x10050dff
push str.cmd_
lea ecx, [ebp - 0x28]
call fcn.1000b5b0
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x60]
call fcn.10051f90
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.1000b430
test bl, bl
je 0x10050cb3
lea ecx, [ebp - 0x60]
call fcn.1000a830
cmp eax, 4
ja 0x10050c33
push 0xffffffffffffffff
push 0x100a0dc0
push 0x100a0dc0
push 0x194
push dword [edi + 0x14]
mov ecx, edi
push dword [edi + 0x20]
call fcn.10050e30
movzx eax, al
mov dword [edi], eax
jmp 0x10050dff
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x80], esp
push str.cmd_
call fcn.1000b5b0
sub esp, 0x18
mov byte [ebp - 4], 5
lea eax, [ebp - 0x60]
mov ecx, esp
push eax
call fcn.1000b6b0
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0
call fcn.1005e100
add esp, 0x30
push 0xffffffffffffffff
push 4
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
push ecx
mov ecx, eax
call fcn.1000af10
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 8
call fcn.1000b430
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0x14]
mov eax, dword [edi + 0x1d4]
push dword [edi + 0x20]
push dword [edi + 0x1dc]
call eax
add esp, 0x10
lea ecx, [ebp - 0x28]
call fcn.1000b430
jmp 0x10050dff
lea ecx, [ebp - 0x38]
call fcn.10009ab0
push 0x100a0dc4
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 9
call fcn.1000b0a0
push eax
call fcn.10062f20
add esp, 8
test eax, eax
jne 0x10050dd4
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0xb0]
call fcn.1005db60
mov esi, eax
push 0x100a0dc8
lea ecx, [edi + 0x1a0]
mov byte [ebp - 4], 0xa
push ecx
lea eax, [ebp - 0xe4]
push eax
call fcn.10013680
push esi
push eax
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 0xb
push eax
call fcn.10013940
add esp, 0x18
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.1000a850
lea edx, [ebp - 0x38]
mov ecx, eax
call fcn.1005e040
lea ecx, [ebp - 0xc8]
mov bl, al
call fcn.1000abe0
lea ecx, [ebp - 0xe4]
call fcn.1000abe0
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 9
call fcn.1000abe0
test bl, bl
je 0x10050dd4
lea ecx, [ebp - 0x38]
call fcn.1000a410
test eax, eax
jne 0x10050d9a
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], 0x4f
push eax
lea ecx, [ebp - 0x38]
call fcn.1000a470
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], 0x4b
push eax
lea ecx, [ebp - 0x38]
call fcn.1000a470
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], 0
push eax
lea ecx, [ebp - 0x38]
call fcn.1000a470
lea ecx, [ebp - 0x38]
call fcn.1000a410
lea ecx, [ebp - 0x38]
mov esi, eax
call fcn.1000a430
push esi
push eax
push 0x100a0dc0
push 0xc8
push dword [edi + 0x14]
mov ecx, edi
push dword [edi + 0x20]
call fcn.10050e30
movzx eax, al
lea ecx, [ebp - 0x38]
mov dword [edi], eax
call fcn.10009fc0
jmp 0x10050df7
push 0xffffffffffffffff
push str.File_Not_Found_:__r_n
push 0x100a0dc0
push 0x194
push dword [edi + 0x14]
mov ecx, edi
push dword [edi + 0x20]
call fcn.10050e30
movzx eax, al
mov dword [edi], eax
lea ecx, [ebp - 0x38]
call fcn.1000a5a0
push dword [edi + 0x1c]
push 0
push dword [edi + 0x14]
call fcn.10063ea0
add esp, 0xc
lea ecx, [ebp - 0x60]
call fcn.1000b430
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret