Function at 0x405810
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4359c3
mov eax, dword fs:[0]
push eax
sub esp, 0x344
mov eax, dword [0x44b004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x94], ecx
sub esp, 0xc
mov dword [ebp - 4], 1
lea eax, [ebp - 0xac]
mov byte [ebp - 0x51], 1
lea ecx, [ebp + 8]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x60], 0
push eax
mov dword [ebp - 0x70], 0
call fcn.0040a570
cmp dword [eax + 0x14], 0x10
jb 0x405884
mov eax, dword [eax]
push eax
push str._DevAct__SendRequest____s
call fcn.00404620
mov edx, dword [ebp - 0x98]
add esp, 8
cmp edx, 0x10
jb 0x4058cc
mov ecx, dword [ebp - 0xac]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4058c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405eb4
push edx
push ecx
call fcn.00415293
add esp, 8
sub esp, 0xc
mov byte [ebp - 4], 2
lea eax, [ebp - 0xac]
lea ecx, [ebp + 8]
push eax
call fcn.0040a570
cmp dword [eax + 0x14], 0x10
jb 0x4058ea
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
mov edx, str.RequestAndResponseForAsusAprpApi
mov ecx, eax
call fcn.00401ca0
mov esi, dword [ebp - 0x18]
add esp, 4
mov edi, eax
mov dword [ebp - 0x58], edi
lea esi, [esi*2 + 1]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
push 0
push eax
mov dword [ebp - 0x68], eax
call fcn.00417ec0
xor ebx, ebx
add esp, 0xc
cmp dword [ebp - 0x18], ebx
jle 0x40598f
nop dword [eax]
movzx eax, byte [ebx + edi]
push eax
lea eax, [ebp - 0x1c]
push str._02X
push eax
call fcn.00415000
lea edx, [ebp - 0x1c]
add esp, 0xc
mov esi, edx
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x405960
mov edi, dword [ebp - 0x68]
sub edx, esi
dec edi
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405970
mov ecx, edx
inc ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x58]
cmp ebx, dword [ebp - 0x18]
jl 0x405940
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x68]
test eax, eax
mov edx, dword [ebp - 0x98]
sete bl
mov dword [ebp - 0x6c], eax
cmp edx, 0x10
jb 0x4059e6
mov ecx, dword [ebp - 0xac]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4059dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405eb9
push edx
push ecx
call fcn.00415293
add esp, 8
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0xf
mov byte [ebp - 0xac], 0
test bl, bl
jne 0x405ebe
cmp dword [ebp + 0x2c], 0x10
lea eax, [ebp - 0x5c]
lea ecx, [ebp + 0x18]
mov dword [ebp - 0x5c], 0
cmovae ecx, dword [ebp + 0x18]
mov edx, str.UrlForAsusAprpApi
push eax
call fcn.00401ca0
mov esi, dword [ebp - 0x5c]
add esp, 4
mov dword [ebp - 0x60], eax
lea esi, [esi*2 + 1]
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0x58], edi
call fcn.00417ec0
xor ebx, ebx
add esp, 0xc
cmp dword [ebp - 0x5c], ebx
jle 0x405aaf
nop dword [eax]
mov eax, dword [ebp - 0x60]
movzx eax, byte [ebx + eax]
push eax
lea eax, [ebp - 0x18]
push str._02X
push eax
call fcn.00415000
lea edx, [ebp - 0x18]
add esp, 0xc
mov esi, edx
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x405a80
sub edx, esi
dec edi
nop word [eax + eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405a90
mov ecx, edx
inc ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x58]
cmp ebx, dword [ebp - 0x5c]
jl 0x405a60
push dword [ebp - 0x60]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x60], edi
test edi, edi
je 0x405ee0
push edi
push dword [ebp - 0x64]
lea eax, [ebp - 0x50]
push str._s__s
push eax
call fcn.00404a30
add esp, 0x10
mov byte [ebp - 4], 3
cmp dword [ebp - 0x40], 0
je 0x405f02
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x240]
cmovae eax, dword [ebp - 0x50]
push eax
call fcn.0040a010
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push dword [eax]
call esi
test eax, eax
mov dword [0x44cf3c], eax
mov eax, dword [ebp - 0x240]
lea ecx, [ebp - 0x23c]
sete bl
cmp eax, ecx
je 0x405b33
push eax
call fcn.0041d53d
add esp, 4
test bl, bl
jne 0x405f24
push dword [ebp - 0x68]
lea ecx, [ebp - 0x348]
call fcn.0040a010
push dword [eax]
call esi
test eax, eax
mov dword [0x44cf38], eax
mov eax, dword [ebp - 0x348]
lea ecx, [ebp - 0x344]
sete bl
cmp eax, ecx
je 0x405b70
push eax
call fcn.0041d53d
add esp, 4
test bl, bl
jne 0x405f46
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 0
push 0
push 0x404b30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [0x44cf34]
test esi, esi
je 0x405f6e
lea eax, [ebp - 0x134]
mov dword [ebp - 0x138], eax
test esi, esi
jne 0x405bca
xor eax, eax
mov dword [ebp - 0x138], eax
jmp 0x405c89
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405bd0
sub ecx, edx
lea eax, [ebp - 0x134]
sar ecx, 1
push ecx
push eax
lea edi, [ecx + 1]
lea ebx, [edi*4]
mov edx, ebx
lea ecx, [ebp - 0x138]
call fcn.004124d0
add esp, 8
push 0
push 0
push ebx
push dword [ebp - 0x138]
push edi
push esi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x405c7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x405c7b
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push edi
push esi
push 0
push 3
call ebx
push ecx
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x64], eax
push ecx
mov edx, eax
lea ecx, [ebp - 0x138]
call fcn.004124d0
add esp, 8
push 0
push 0
push dword [ebp - 0x64]
push dword [ebp - 0x138]
push edi
push esi
push 0
push 3
call ebx
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
test ebx, ebx
jne 0x405f96
mov eax, dword [ebp - 0x138]
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.0040ac10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x134]
mov eax, dword [ebp - 0x138]
cmp eax, ecx
je 0x405cb3
push eax
call fcn.0041d53d
add esp, 4
cmp dword [ebp - 0x28], 0
je 0x405fb0
cmp dword [ebp - 0x24], 0x10
lea ecx, [ebp - 0x38]
mov edx, str.RequestAndResponseForAsusAprpApi
cmovae ecx, dword [ebp - 0x38]
call fcn.004020e0
mov esi, eax
mov dword [ebp - 0x70], esi
test esi, esi
je 0x405fd8
sub esp, 0x10
mov edi, esp
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x64], esp
mov dword [eax + 0x24], 0
sub esp, 8
mov byte [ebp - 4], 7
mov ecx, esp
push esi
call fcn.00412150
xor dl, dl
mov byte [ebp - 4], 6
mov ecx, edi
call fcn.0040a140
mov ecx, dword [ebp - 0x94]
add esp, 0x30
call fcn.0040a7e0
mov edx, dword [ebp - 0x24]
cmp edx, 0x10
jb 0x405d51
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405d47
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406000
push edx
push ecx
call fcn.00415293
add esp, 8
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
cmp edx, 0x10
jb 0x405d97
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405d8d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406000
push edx
push ecx
call fcn.00415293
add esp, 8
mov edi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
jmp 0x405dca
test eax, eax
je 0x405de2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call ebx
jmp 0x405de8
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x405dfc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call edi
push eax
call ebx
jmp 0x405e02
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test esi, esi
je 0x405e0e
push esi
push 0
call edi
push eax
call ebx
mov eax, dword [0x44cf3c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test eax, eax
je 0x405e2a
push eax
call esi
mov dword [0x44cf3c], 0
mov eax, dword [0x44cf38]
test eax, eax
je 0x405e40
push eax
call esi
mov dword [0x44cf38], 0
mov eax, dword [0x44cf34]
test eax, eax
je 0x405e56
push eax
call esi
mov dword [0x44cf34], 0
push dword [ebp + 8]
lea ecx, [ebp + 0x10]
call fcn.0040b5e0
mov edx, dword [ebp + 0x2c]
cmp edx, 0x10
jb 0x405e95
mov ecx, dword [ebp + 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405e8b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406005
push edx
push ecx
call fcn.00415293
add esp, 8
mov al, byte [ebp - 0x51]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041525a
mov esp, ebp
pop ebp
ret
call fcn.0041d76b
call fcn.0041d76b
push str._DevAct__SendRequest___fail_to_encrypt_request
call fcn.00404620
add esp, 4
mov dword [ebp - 0x74], 0
lea eax, [ebp - 0x74]
push 0x449224
push eax
call fcn.00417e47
push str._DevAct__SendRequest___fail_to_encrypt_uuid
call fcn.00404620
add esp, 4
mov dword [ebp - 0x78], 0
lea eax, [ebp - 0x78]
push 0x449224
push eax
call fcn.00417e47
push str._DevAct__SendRequest___fail_to_format_url_string
call fcn.00404620
add esp, 4
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
push 0x449224
push eax
call fcn.00417e47
push str._DevAct__SendRequest___fail_to_convert_ansi_url_string_to_unicode_url_string
call fcn.00404620
add esp, 4
mov dword [ebp - 0x80], 0
lea eax, [ebp - 0x80]
push 0x449224
push eax
call fcn.00417e47
push str._DevAct__SendRequest___fail_to_convert_ansi_playload_string_to_unicode_payload_string
call fcn.00404620
add esp, 4
mov dword [ebp - 0x84], 0
lea eax, [ebp - 0x84]
push 0x449224
push eax
call fcn.00417e47
push str._DevAct__SendRequest___unable_to_connect_to_server
call fcn.00404620
add esp, 4
mov dword [ebp - 0x88], 0
lea eax, [ebp - 0x88]
push 0x449224
push eax
call fcn.00417e47
push ecx
mov ecx, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.004124a0
add esp, 4
call fcn.004044e0
push str._DevAct__SendRequest___fail_to_convert_unicode_response_to_ansi_response
call fcn.00404620
add esp, 4
mov dword [ebp - 0x8c], 0
lea eax, [ebp - 0x8c]
push 0x449224
push eax
call fcn.00417e47
push str._DevAct__SendRequest___fail_to_decrypt_the_response
call fcn.00404620
add esp, 4
mov dword [ebp - 0x90], 0
lea eax, [ebp - 0x90]
push 0x449224
push eax
call fcn.00417e47
call fcn.0041d76b
call fcn.0041d76b
int3