Function at 0x6b4597b0
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x60
mov esi, dword [esp + 0x78]
test esi, esi
je 0x6b459867
mov ebx, dword [esp + 0x7c]
test ebx, ebx
jne 0x6b4597ce
mov ebx, dword [esi + 0x10]
mov ebp, dword [esp + 0x74]
xor edi, edi
test ebx, ebx
je 0x6b45997d
mov eax, dword [esi + 0x14]
and eax, 2
jne 0x6b45997d
cmp byte [ebx], 0
je 0x6b45997d
lea esi, [esp + 0x57]
push 9
push esi
push ebp
call fcn.6b475280
add esp, 0xc
mov edi, 2
test eax, eax
jne 0x6b459a8d
push esi
push ebx
push str._s._s.tmp
call sym.libcurl.dll_curl_maprintf
add esp, 0xc
test eax, eax
je 0x6b459936
push 0x6b72cdab
mov dword [esp + 4], eax
push eax
call fcn.6b44a550
add esp, 8
test eax, eax
je 0x6b459940
mov edi, eax
push eax
push 1
push 0x6f
push str._Your_HSTS_cache._https:__curl.se_docs_hsts.html_n_This_file_was_generated_by_libcurl__Edit_at_your_own_risk._n
call sub.msvcrt.dll_fwrite
add esp, 0x10
mov eax, dword [esp + 0x78]
mov esi, dword [eax]
test esi, esi
je 0x6b459912
mov dword [esp + 4], edi
jmp 0x6b45989a
xor edi, edi
jmp 0x6b459a8d
cmp dword [ebp + 0x10], 0
mov eax, 0x6b72ce40
mov ecx, 0x6b72ce42
cmove eax, ecx
push str.unlimited
push dword [ebp + 0xc]
push eax
push str._s_s___s__n
push edi
call sym.libcurl.dll_curl_mfprintf
add esp, 0x14
test esi, esi
je 0x6b459912
mov ebp, dword [esi]
mov esi, dword [esi + 8]
mov eax, dword [ebp + 0x18]
mov ecx, eax
xor ecx, 0x7fffffff
or ecx, dword [ebp + 0x1c]
je 0x6b45986e
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.6b4720e0
add esp, 8
test eax, eax
jne 0x6b45994e
cmp dword [ebp + 0x10], 0
mov eax, 0x6b72ce40
mov ecx, 0x6b72ce42
cmove eax, ecx
mov ecx, dword [esp + 0x24]
mov edx, 0x76c
add ecx, edx
mov edx, dword [esp + 0x20]
inc edx
push dword [esp + 0x10]
push dword [esp + 0x18]
push dword [esp + 0x20]
push dword [esp + 0x28]
push edx
push ecx
push dword [ebp + 0xc]
push eax
push str._s_s___d_02d_02d__02d:_02d:_02d__n
mov edi, dword [esp + 0x28]
push edi
call sym.libcurl.dll_curl_mfprintf
add esp, 0x28
test esi, esi
jne 0x6b45989a
push edi
call sub.msvcrt.dll_fclose
add esp, 4
push ebx
mov esi, dword [esp + 4]
push esi
call fcn.6b475310
add esp, 8
mov edi, 0x17
test eax, eax
jne 0x6b45995f
xor edi, edi
jmp 0x6b459968
mov edi, 0x1b
jmp 0x6b459a8d
mov edi, 0x17
mov esi, dword [esp + 0x78]
mov ecx, dword [esp]
jmp 0x6b459972
mov edi, eax
push dword [esp + 4]
call sub.msvcrt.dll_fclose
add esp, 4
mov esi, dword [esp]
push esi
call sub.msvcrt.dll__unlink
add esp, 4
mov ebp, dword [esp + 0x74]
mov ecx, esi
mov esi, dword [esp + 0x78]
mov eax, dword [0x6b83acf4]
push ecx
call dword [eax]
add esp, 4
cmp dword [ebp + 0x1c0], 0
je 0x6b459a8d
mov eax, dword [esi + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov esi, dword [esi]
test esi, esi
je 0x6b459a8d
lea ebp, [esp + 0x40]
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edi, dword [esi]
mov esi, dword [esi + 8]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x34], eax
push eax
call sub.msvcrt.dll_strlen
add esp, 4
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x10]
and eax, 1
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x18]
mov ecx, eax
xor ecx, 0x7fffffff
or ecx, dword [edi + 0x1c]
jne 0x6b459a00
mov word [ebp + 8], 0x64
mov dword [ebp + 4], 0x6574696d
mov dword [ebp], 0x696c6e75
jmp 0x6b459a46
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.6b4720e0
add esp, 8
mov edi, eax
test eax, eax
jne 0x6b459a7b
mov eax, dword [esp + 0x24]
mov ecx, 0x76c
add eax, ecx
mov ecx, dword [esp + 0x20]
inc ecx
push dword [esp + 0x10]
push dword [esp + 0x18]
push dword [esp + 0x20]
push dword [esp + 0x28]
push ecx
push eax
push str._d_02d_02d__02d:_02d:_02d
push 0x12
push ebp
call sym.libcurl.dll_curl_msnprintf
add esp, 0x24
mov eax, dword [esp + 0x74]
push dword [eax + 0x1c4]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x3c]
push ecx
push eax
call dword [eax + 0x1c0]
add esp, 0x10
xor ebx, ebx
test eax, eax
setne bl
cmp eax, 2
mov edi, 0
mov eax, 0x2b
cmove edi, eax
mov eax, edi
or eax, ebx
jne 0x6b459a8d
inc dword [esp + 8]
test esi, esi
jne 0x6b4599b0
mov eax, edi
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret