Function at 0x10004083
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
push 8
call fcn.1001d065
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0x100234d8
push ebx
add ebx, 4
push ebx
push 0xc
call fcn.1001d065
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
pop ebx
pop ebx
call fcn.100037e7
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10004b3c
mov dword [ebp - 0xc], esp
push str.advapi32.dll
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1000411c
push 6
call fcn.1001d077
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1000414d
mov dword [ebp - 0xc], esp
push str.advapi32.dll
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1000414d
push 6
call fcn.1001d077
add esp, 4
mov dword [ebp - 0xc], esp
push str.ws2_32.dll
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10004171
push 6
call fcn.1001d077
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x100041a2
mov dword [ebp - 0xc], esp
push str.ws2_32.dll
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x100041a2
push 6
call fcn.1001d077
add esp, 4
push 0x80000006
push 0
push 0x10006320
push 1
mov ebx, 8
mov eax, 0x10020e30
call fcn.1001d650
add esp, 0x10
push eax
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push 1
mov eax, str.CreateFileW
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 1
mov eax, str.kernel32.dll
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0x10026601
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x1000420d
push ebx
call fcn.1001d06b
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1000421d
push ebx
call fcn.1001d06b
add esp, 4
push 0x80000006
push 0
push 0x1000656c
push 1
mov ebx, 0x9dc
call fcn.1001d6f0
add esp, 0x10
push eax
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push 1
mov eax, str.RegQueryValueExW
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 1
mov eax, str.kernel32.dll
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0x10026605
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x10004283
push ebx
call fcn.1001d06b
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10004293
push ebx
call fcn.1001d06b
add esp, 4
push 0x80000006
push 0
push 0x100067b8
push 1
mov ebx, 0x9dc
call fcn.1001d6f0
add esp, 0x10
push eax
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push 1
mov eax, str.RegQueryValueExW
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 1
mov eax, str.advapi32.dll
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0x10026609
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x100042f9
push ebx
call fcn.1001d06b
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10004309
push ebx
call fcn.1001d06b
add esp, 4
push 0x80000006
push 0
push 0x1000695d
push 1
mov ebx, 0x9dc
call fcn.1001d6f0
add esp, 0x10
push eax
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push 1
mov eax, str.getaddrinfo
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 1
mov eax, str.ws2_32.dll
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0x1002660d
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x1000436f
push ebx
call fcn.1001d06b
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1000437f
push ebx
call fcn.1001d06b
add esp, 4
push 0x80000006
push 0
push 0x10006ec1
push 1
mov ebx, 8
mov eax, 0x10020e30
call fcn.1001d650
add esp, 0x10
push eax
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push 1
mov eax, str.CreateMutexW
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 1
mov eax, str.kernel32.dll
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0x10026611
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x100043ea
push ebx
call fcn.1001d06b
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x100043fa
push ebx
call fcn.1001d06b
add esp, 4
push 0x80000006
push 0
push 0x10008e0e
push 1
mov ebx, 0x9dc
call fcn.1001d6f0
add esp, 0x10
push eax
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push 1
mov eax, str.CallWindowProcW
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 1
mov eax, str.user32.dll
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0x10026615
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x10004460
push ebx
call fcn.1001d06b
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10004470
push ebx
call fcn.1001d06b
add esp, 4
mov dword [ebp - 0xc], esp
push str.WeChatWin.dll
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10004494
push 6
call fcn.1001d077
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0x1f4
xor eax, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x100044bb
push 6
call fcn.1001d077
add esp, 4
cmp dword [ebp - 4], 0
je 0x10004470
push dword [ebp - 4]
call fcn.10004b50
push 0x80000006
push 0
push 0x100091fc
push 1
mov ebx, 0x9dc
call fcn.1001d6f0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
mov eax, 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 1
push dword [ebp - 0xc]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x1000452c
push 6
call fcn.1001d077
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 0x18]
xor eax, eax
call dword [0x1002665d]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x10004551
push 6
call fcn.1001d077
add esp, 4
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x1002344a]
fstp qword [ebp - 0x18]
push 0x80000006
push 0
push 0x100092c1
push 1
mov ebx, 8
mov eax, 0x10020e30
call fcn.1001d650
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
push 5
fld qword [ebp - 0x18]
call fcn.10001de7
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x100045c5
push ebx
call fcn.1001d06b
add esp, 4
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x10023452]
fstp qword [ebp - 0x18]
push 0x80000006
push 0
push 0x1000936e
push 1
mov ebx, 8
mov eax, 0x10020e30
call fcn.1001d650
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
push 5
fld qword [ebp - 0x18]
call fcn.10001de7
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10004639
push ebx
call fcn.1001d06b
add esp, 4
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x1002345a]
fstp qword [ebp - 0x18]
push 0x80000006
push 0
push 0x10009458
push 1
mov ebx, 8
mov eax, 0x10020e30
call fcn.1001d650
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 1
mov eax, 0x10023462
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
push 5
fld qword [ebp - 0x18]
call fcn.10001de7
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x100046ae
push ebx
call fcn.1001d06b
add esp, 4
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x1002346c]
fstp qword [ebp - 0x18]
push 0x80000006
push 0
push 0x10009542
push 1
mov ebx, 8
mov eax, 0x10020e30
call fcn.1001d650
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 1
mov eax, 0x10023474
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
push 6
fld qword [ebp - 0x18]
call fcn.10001de7
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10004723
push ebx
call fcn.1001d06b
add esp, 4
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x10023482]
fstp qword [ebp - 0x18]
push 0x80000006
push 0
push 0x1000c165
push 1
mov ebx, 8
mov eax, 0x10020e30
call fcn.1001d650
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 1
mov eax, 0x10023462
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
push 6
fld qword [ebp - 0x18]
call fcn.10001de7
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10004798
push ebx
call fcn.1001d06b
add esp, 4
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x1002348a]
fstp qword [ebp - 0x18]
push 0x80000006
push 0
push 0x1000cedb
push 1
mov ebx, 8
mov eax, 0x10020e30
call fcn.1001d650
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
push 5
fld qword [ebp - 0x18]
call fcn.10001de7
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x1000480c
push ebx
call fcn.1001d06b
add esp, 4
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x10023492]
fstp qword [ebp - 0x18]
push 0x80000006
push 0
push 0x1000cedb
push 1
mov ebx, 8
mov eax, 0x10020e30
call fcn.1001d650
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
push 5
fld qword [ebp - 0x18]
call fcn.10001de7
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10004880
push ebx
call fcn.1001d06b
add esp, 4
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x1002349a]
fstp qword [ebp - 0x18]
push 0x80000006
push 0
push 0x1000cedb
push 1
mov ebx, 8
mov eax, 0x10020e30
call fcn.1001d650
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
push 5
fld qword [ebp - 0x18]
call fcn.10001de7
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x100048f4
push ebx
call fcn.1001d06b
add esp, 4
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x100234a2]
fstp qword [ebp - 0x18]
push 0x80000006
push 0
push 0x1000cedb
push 1
mov ebx, 8
mov eax, 0x10020e30
call fcn.1001d650
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 1
mov eax, 0x100234aa
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
push 6
fld qword [ebp - 0x18]
call fcn.10001de7
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10004969
push ebx
call fcn.1001d06b
add esp, 4
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x100234b8]
fstp qword [ebp - 0x18]
push 0x80000006
push 0
push 0x1000cedb
push 1
mov ebx, 8
mov eax, 0x10020e30
call fcn.1001d650
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
push 5
fld qword [ebp - 0x18]
call fcn.10001de7
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x100049dd
push ebx
call fcn.1001d06b
add esp, 4
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x100234c0]
fstp qword [ebp - 0x18]
push 0x80000006
push 0
push 0x1000d138
push 1
mov ebx, 8
mov eax, 0x10020e30
call fcn.1001d650
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 1
mov eax, 0x10023462
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
push 5
fld qword [ebp - 0x18]
call fcn.10001de7
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10004a52
push ebx
call fcn.1001d06b
add esp, 4
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x100234c8]
fstp qword [ebp - 0x18]
push 0x80000006
push 0
push 0x1000d222
push 1
mov ebx, 8
mov eax, 0x10020e30
call fcn.1001d650
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 1
mov eax, 0x10023462
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
push 6
fld qword [ebp - 0x18]
call fcn.10001de7
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10004ac7
push ebx
call fcn.1001d06b
add esp, 4
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0x100234d0]
fstp qword [ebp - 0x18]
push 0x80000006
push 0
push 0x1000d30c
push 1
mov ebx, 8
mov eax, 0x10020e30
call fcn.1001d650
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 1
mov eax, 0x10023462
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
push 6
fld qword [ebp - 0x18]
call fcn.10001de7
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10004b3c
push ebx
call fcn.1001d06b
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.1001d06b
add esp, 4
mov esp, ebp
pop ebp
ret