Function at 0x437ee0
Capabilities:
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d8a1c
mov eax, dword fs:[0]
push eax
mov eax, 0x14fc
call fcn.006d2420
mov eax, dword [0x831704]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebp + 0x28]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x1500]
mov dword [ebx + 0x84], 0
push eax
mov dword [ebx + 0x88], 0
mov dword [ebx + 0x70], 0
mov byte [ebx + 0x90], 1
mov dword [ebp - 0x14f4], 0
call fcn.005cdb20
mov eax, dword [ebp - 0x1500]
add esp, 8
cmp eax, dword [0x82e970]
jne 0x437f76
mov eax, dword [ebp - 0x14fc]
cmp eax, dword [0x82e974]
je 0x437f8c
lea ecx, [ebp - 0x1500]
call fcn.00436370
mov esi, eax
shr esi, 0x14
mov dword [ebp - 0x14f4], esi
push 0xa
lea eax, [ebp - 0x14ec]
push eax
lea ecx, [ebp + 0x48]
call fcn.005ca330
test al, al
jne 0x437fa6
or eax, 0xffffffff
jmp 0x437fb8
mov eax, dword [ebp - 0x14ec]
cdq
and edx, 0xfffff
add eax, edx
sar eax, 0x14
add dword [ebx + 0xb4], eax
lea ecx, [ebp - 0x14d8]
mov dword [ebp - 0x14ec], eax
call fcn.004755c0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1488], 0
je 0x43828f
xor eax, eax
mov dword [ebp - 0xc1c], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0xc30], ax
lea ecx, [ebp - 0xc30]
lea eax, [ebp - 0xc84]
mov dword [ebp - 0xc20], 0
push eax
call fcn.00419170
mov dword [ebp - 0xc18], 0
mov byte [ebp - 4], 4
mov eax, dword [0x87c828]
test eax, eax
jne 0x438033
call fcn.005c3860
mov dword [0x87c828], eax
push eax
lea eax, [ebp - 0x14dc]
push eax
lea ecx, [ebp - 0xc30]
call fcn.0041f710
lea edx, [ebp - 0x410]
mov eax, dword [eax]
mov ecx, dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x438050
call fcn.005c92f0
mov ecx, dword [ebp - 0x14dc]
cmp ecx, eax
je 0x4380aa
mov eax, 0xffff
add word [ecx + 8], ax
jne 0x43809f
mov esi, dword [ebp - 0x14dc]
test esi, esi
je 0x43809f
cmp byte [esi + 0xa], 0
je 0x438093
push dword [esi]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
push esi
call edi
add esp, 4
call fcn.005c92f0
mov dword [ebp - 0x14dc], eax
lea ecx, [ebp - 0x1484]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4380b3
mov eax, dword [0x87c820]
sub ecx, edx
je 0x438194
test eax, eax
jne 0x4380d5
call fcn.005c3760
mov dword [0x87c820], eax
push eax
lea eax, [ebp - 0x14e8]
push eax
lea ecx, [ebp + 8]
call fcn.0041f710
mov edi, eax
mov byte [ebp - 4], 5
mov eax, dword [0x87c820]
test eax, eax
jne 0x4380fe
call fcn.005c3760
mov dword [0x87c820], eax
push eax
lea eax, [ebp - 0x14e4]
push eax
lea ecx, [ebp + 0x28]
call fcn.0041f710
mov esi, eax
mov byte [ebp - 4], 6
mov eax, dword [0x87c820]
test eax, eax
jne 0x438127
call fcn.005c3760
mov dword [0x87c820], eax
push eax
lea eax, [ebp - 0x14e0]
mov ecx, 0x845d04
push eax
call fcn.0041f710
mov ecx, dword [edi]
mov eax, dword [eax]
mov edx, dword [ecx]
mov ecx, dword [esi]
push edx
push dword [ecx]
lea ecx, [ebp - 0x1284]
push ecx
lea ecx, [ebp - 0x1484]
push ecx
lea ecx, [ebp - 0x410]
push ecx
push dword [eax]
lea eax, [ebp - 0x810]
push str._scurl.exe__C_____insecure__x__s__U__s:_s___output___s____s_
push eax
call fcn.004397f0
add esp, 0x20
lea ecx, [ebp - 0x14e0]
call fcn.004181c0
lea ecx, [ebp - 0x14e4]
mov byte [ebp - 4], 5
call fcn.004181c0
lea ecx, [ebp - 0x14e8]
jmp 0x43824e
test eax, eax
jne 0x4381a2
call fcn.005c3760
mov dword [0x87c820], eax
push eax
lea eax, [ebp - 0x14e4]
push eax
lea ecx, [ebp + 8]
call fcn.0041f710
mov edi, eax
mov byte [ebp - 4], 7
mov eax, dword [0x87c820]
test eax, eax
jne 0x4381cb
call fcn.005c3760
mov dword [0x87c820], eax
push eax
lea eax, [ebp - 0x14e0]
push eax
lea ecx, [ebp + 0x28]
call fcn.0041f710
mov esi, eax
mov byte [ebp - 4], 8
mov eax, dword [0x87c820]
test eax, eax
jne 0x4381f4
call fcn.005c3760
mov dword [0x87c820], eax
push eax
lea eax, [ebp - 0x14e8]
mov ecx, 0x845d04
push eax
call fcn.0041f710
mov ecx, dword [edi]
mov eax, dword [eax]
mov edx, dword [ecx]
mov ecx, dword [esi]
push edx
push dword [ecx]
lea ecx, [ebp - 0x410]
push ecx
push dword [eax]
lea eax, [ebp - 0x810]
push str._scurl.exe__C_____insecure__x__s___output___s____s_
push eax
call fcn.004397f0
add esp, 0x18
lea ecx, [ebp - 0x14e8]
call fcn.004181c0
lea ecx, [ebp - 0x14e0]
mov byte [ebp - 4], 7
call fcn.004181c0
lea ecx, [ebp - 0x14e4]
mov byte [ebp - 4], 4
call fcn.004181c0
mov byte [ebp - 4], 3
push dword [ebp - 0xc18]
mov edi, dword [sym.imp.MSVCR120.dll_free]
call edi
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0xc1c], 8
jb 0x438455
push dword [ebp - 0xc30]
call esi
add esp, 4
jmp 0x438455
mov eax, dword [0x87c820]
test eax, eax
jne 0x4382a2
call fcn.005c3760
mov dword [0x87c820], eax
push eax
lea eax, [ebp - 0x14e0]
push eax
lea ecx, [ebp + 8]
call fcn.0041f710
mov edi, eax
mov byte [ebp - 4], 9
mov eax, dword [0x87c820]
test eax, eax
jne 0x4382cb
call fcn.005c3760
mov dword [0x87c820], eax
push eax
lea eax, [ebp - 0x14e4]
push eax
lea ecx, [ebp + 0x28]
call fcn.0041f710
mov esi, eax
mov byte [ebp - 4], 0xa
mov eax, dword [0x87c820]
test eax, eax
jne 0x4382f4
call fcn.005c3760
mov dword [0x87c820], eax
push eax
lea eax, [ebp - 0x14dc]
mov ecx, 0x845d04
push eax
call fcn.0041f710
mov ecx, dword [edi]
mov eax, dword [eax]
mov edx, dword [ecx]
mov ecx, dword [esi]
push edx
push dword [ecx]
push dword [eax]
lea eax, [ebp - 0x810]
push str._scurl.exe__C_____insecure___output___s____s_
push eax
call fcn.004397f0
add esp, 0x14
call fcn.005c92f0
mov ecx, dword [ebp - 0x14dc]
mov esi, 0xffff
cmp ecx, eax
je 0x4383a5
add word [ecx + 8], si
jne 0x43837a
mov esi, dword [ebp - 0x14dc]
test esi, esi
je 0x43838d
cmp byte [esi + 0xa], 0
je 0x43835c
push dword [esi]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
push esi
call edi
add esp, 4
mov esi, 0xffff
call fcn.005c92f0
mov dword [ebp - 0x14dc], eax
jmp 0x4383ab
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
call fcn.005c92f0
mov dword [ebp - 0x14dc], eax
jmp 0x4383ab
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov esi, 0xffff
call fcn.005c92f0
mov dword [ebp - 0x14dc], eax
jmp 0x4383ab
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov byte [ebp - 4], 9
call fcn.005c92f0
mov ecx, dword [ebp - 0x14e4]
cmp ecx, eax
je 0x4383f5
add word [ecx + 8], si
jne 0x4383ea
mov esi, dword [ebp - 0x14e4]
test esi, esi
je 0x4383e5
cmp byte [esi + 0xa], 0
je 0x4383df
push dword [esi]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
push esi
call edi
add esp, 4
mov esi, 0xffff
call fcn.005c92f0
mov dword [ebp - 0x14e4], eax
mov byte [ebp - 4], 3
call fcn.005c92f0
mov ecx, dword [ebp - 0x14e0]
cmp ecx, eax
je 0x438449
add word [ecx + 8], si
jne 0x43843c
mov esi, dword [ebp - 0x14e0]
test esi, esi
je 0x43843c
cmp byte [esi + 0xa], 0
je 0x438429
push dword [esi]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
push esi
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
call esi
add esp, 4
call fcn.005c92f0
jmp 0x43844f
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
call fcn.005c92f0
jmp 0x43844f
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov edi, dword [sym.imp.MSVCR120.dll_free]
push dword [0x77db98]
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0xc50]
push eax
call fcn.004291b0
add esp, 0xc
push eax
lea eax, [ebp - 0xc30]
mov byte [ebp - 4], 0xb
push str.Download_Command::
push eax
call fcn.005c7f90
sub esp, 0x14
mov byte [ebp - 4], 0xc
mov eax, esp
lea ecx, [ebp - 0xc30]
push ecx
push 0x7ca7b4
push eax
call fcn.005c7f90
add esp, 0xc
call fcn.00465350
mov edx, 3
lea ecx, [ebp - 0xc30]
call fcn.0041fbf0
push dword [ebp - 0xc18]
call edi
add esp, 0x24
cmp dword [ebp - 0xc1c], 8
jb 0x4384d9
push dword [ebp - 0xc30]
call esi
add esp, 4
mov byte [ebp - 4], 3
xor eax, eax
push dword [ebp - 0xc38]
mov dword [ebp - 0xc1c], 7
mov dword [ebp - 0xc20], 0
mov word [ebp - 0xc30], ax
call edi
add esp, 4
cmp dword [ebp - 0xc3c], 8
jb 0x438519
push dword [ebp - 0xc50]
call esi
add esp, 4
lea edx, [ebx + 0xf8]
lea ecx, [ebp - 0x810]
call fcn.0046bd40
push 0
lea ecx, [ebp - 0x14f0]
mov dword [ebp - 0x14dc], eax
push ecx
push 0x400
lea ecx, [ebp - 0xc10]
mov dword [ebp - 0x14e0], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x438730
mov edi, edi
mov eax, dword [ebp - 0x14f0]
test eax, eax
je 0x438730
push eax
lea eax, [ebp - 0xc10]
push eax
lea eax, [ebp - 0xc30]
push eax
call fcn.004291b0
add esp, 0xc
mov byte [ebp - 4], 0xd
xor esi, esi
jmp 0x438590
mov edi, dword [ebp - 0x14f0]
xor ecx, ecx
cmp esi, edi
jae 0x4385c4
lea edx, [ebp - 0x210]
sub edx, esi
mov al, byte [ebp + esi - 0xc10]
cmp al, 0xd
je 0x4385b8
mov byte [edx + esi], al
inc ecx
inc esi
cmp esi, edi
jb 0x4385a4
cmp ecx, 0x200
jae 0x43886b
inc esi
mov byte [ebp + ecx - 0x210], 0
cmp esi, edi
jae 0x4385dd
push 0xa
call fcn.005e2040
add esp, 4
jmp 0x438590
push dword [ebp - 0x14ec]
lea eax, [ebp - 0x14e8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0xc50]
push eax
call fcn.004372b0
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x14e0]
cmp eax, 2
jge 0x438617
inc eax
mov dword [ebp - 0x14e0], eax
jmp 0x438654
sub esp, 0x20
xor eax, eax
mov esi, esp
mov ecx, esi
push 0xffffffffffffffff
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push eax
mov word [esi], ax
lea eax, [ebp - 0xc50]
push eax
call fcn.00419170
push dword [ebp - 0x14e8]
mov ecx, ebx
mov dword [esi + 0x18], 0
call fcn.00438920
cmp dword [ebx + 0x70], 0
jne 0x4388e7
cmp dword [ebx + 0x84], 0xa
jge 0x4388e7
lea eax, [ebp - 0x14e4]
push eax
push dword [ebx + 0xf8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x14e4]
cmp eax, 0x103
jne 0x438870
push 0x1f4
call fcn.005e2040
mov edi, dword [sym.imp.MSVCR120.dll_free]
add esp, 4
push dword [ebp - 0xc38]
call edi
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0xc3c], 8
jb 0x4386c7
push dword [ebp - 0xc50]
call esi
add esp, 4
mov byte [ebp - 4], 3
xor eax, eax
push dword [ebp - 0xc18]
mov dword [ebp - 0xc3c], 7
mov dword [ebp - 0xc40], 0
mov word [ebp - 0xc50], ax
call edi
add esp, 4
cmp dword [ebp - 0xc1c], 8
jb 0x438707
push dword [ebp - 0xc30]
call esi
add esp, 4
push 0
lea eax, [ebp - 0x14f0]
push eax
push 0x400
lea eax, [ebp - 0xc10]
push eax
push dword [ebp - 0x14dc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x438560
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
push dword [ebx + 0xf8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp - 0x1508]
push eax
call fcn.005cdb20
mov eax, dword [ebp - 0x1508]
add esp, 8
cmp eax, dword [0x82e970]
jne 0x438771
mov eax, dword [ebp - 0x1504]
cmp eax, dword [0x82e974]
je 0x43878b
lea ecx, [ebp - 0x1508]
call fcn.00436370
shr eax, 0x14
sub eax, dword [ebp - 0x14f4]
add dword [ebx + 0x8c], eax
mov eax, dword [ebx + 0x78]
cmp eax, 0x12
je 0x43879d
cmp eax, 0x21
je 0x43879d
cmp eax, 0x24
jne 0x4387d2
sub esp, 0x20
xor eax, eax
mov esi, esp
mov ecx, esi
push 0xffffffffffffffff
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push eax
mov word [esi], ax
lea eax, [ebp + 0x28]
push eax
call fcn.00419170
mov dword [esi + 0x18], 0
call fcn.00465190
add esp, 0x20
lea ecx, [ebp - 0x14d8]
call fcn.00475d10
push dword [ebp + 0x20]
mov ebx, dword [sym.imp.MSVCR120.dll_free]
call ebx
add esp, 4
cmp dword [ebp + 0x1c], 8
jb 0x4387f9
push dword [ebp + 8]
call edi
add esp, 4
push dword [ebp + 0x40]
xor eax, eax
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
call ebx
add esp, 4
cmp dword [ebp + 0x3c], 8
jb 0x438823
push dword [ebp + 0x28]
call edi
add esp, 4
push dword [ebp + 0x60]
xor eax, eax
mov dword [ebp + 0x3c], 7
mov dword [ebp + 0x38], 0
mov word [ebp + 0x28], ax
call ebx
add esp, 4
cmp dword [ebp + 0x5c], 8
jb 0x43884d
push dword [ebp + 0x48]
call edi
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006d1ba7
mov esp, ebp
pop ebp
ret 0x60
call fcn.006d1f30
mov dword [ebx + 0x78], eax
push dword [ebp - 0xc38]
mov esi, dword [sym.imp.MSVCR120.dll_free]
call esi
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0xc3c], 8
jb 0x43889e
push dword [ebp - 0xc50]
call edi
add esp, 4
mov byte [ebp - 4], 3
xor eax, eax
push dword [ebp - 0xc18]
mov dword [ebp - 0xc3c], 7
mov dword [ebp - 0xc40], 0
mov word [ebp - 0xc50], ax
call esi
add esp, 4
cmp dword [ebp - 0xc1c], 8
jb 0x438736
push dword [ebp - 0xc30]
call edi
add esp, 4
jmp 0x438736
push dword [ebx + 0x70]
push dword [ebx + 0xf8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebx + 0x84], 0xa
mov eax, dword [ebx + 0x70]
mov dword [ebx + 0x78], eax
jl 0x438873
mov dword [ebx + 0x78], 0xfffffffd
jmp 0x438873