joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413e09
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0040b790
mov eax, dword [0x41b464]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x41bb84]
mov dword [ebp - 4], eax
jae 0x413f4c
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x41bba0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x413f4c
push 1
push esi
push ebx
call fcn.00412ced
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x413f56
push 2
push esi
push ebx
call fcn.00412ced
add esp, 0xc
cmp eax, 0xffffffff
je 0x413f56
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x413ef6
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0040c120
push 0x8000
push ebx
call fcn.00413f65
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x413eb5
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.00412d79
add esp, 0xc
cmp eax, 0xffffffff
je 0x413ed3
sub edi, eax
test edi, edi
jg 0x413eaa
jmp 0x413ee9
cmp dword [0x41b834], 5
jne 0x413ee6
mov dword [0x41b830], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.00413f65
pop ecx
pop ecx
jmp 0x413f36
jge 0x413f36
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00412ced
push ebx
call fcn.0040bb8d
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x413f36
mov dword [0x41b830], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x41b834], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.00412ced
add esp, 0xc
mov eax, esi
pop edi
jmp 0x413f59
mov dword [0x41b830], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040cf33
leave
ret
Function at 0x40118b
Capabilities:
Get common file path

Disassembly:
mov eax, 0x41b01a
call fcn.004086bc
sub esp, 0x110
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
call fcn.004037b6
and dword [ebp - 4], 0
lea ecx, [esi + 4]
call fcn.00413f8a
mov eax, dword [0x422a90]
mov dword [esi + 0x14], eax
mov eax, dword [0x422a90]
lea edi, [esi + 0x20]
mov dword [edi], eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 3
call fcn.00401285
mov eax, dword [0x422a90]
mov dword [esi + 0x40], eax
mov eax, dword [0x422a90]
mov dword [esi + 0x54], eax
mov ebx, 0x104
lea eax, [ebp - 0x11c]
push ebx
push 0
push eax
mov byte [ebp - 4], 6
mov dword [esi], 0x41c50c
call fcn.00408760
add esp, 0xc
lea eax, [ebp - 0x11c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x11c]
mov ecx, edi
push eax
call fcn.00413cf0
push str.NICS
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00413d96
push eax
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 7
call fcn.00413ca0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.00413bf7
and dword [esi + 0x1c], 0
mov ecx, esi
call fcn.00402906
mov ecx, dword [ebp - 0xc]
mov dword [0x4260b0], esi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x401397
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push esi
push 0x94
lea eax, [ebp - 0x94]
push 0
mov esi, ecx
push eax
call fcn.00408760
add esp, 0xc
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4014a0
mov eax, dword [ebp - 0x90]
push 4
pop ecx
sub eax, ecx
je 0x401444
dec eax
je 0x4013fe
dec eax
jne 0x4014a0
push 1
mov dword [esi + 0x18], 7
pop eax
jmp 0x4014a2
cmp dword [ebp - 0x8c], 0
push 1
pop eax
je 0x40143f
cmp dword [ebp - 0x8c], eax
jne 0x401424
cmp dword [ebp - 0x84], 2
jne 0x40143f
mov dword [esi + 0x18], 5
jmp 0x4014a2
cmp dword [ebp - 0x8c], 2
jne 0x40143f
cmp dword [ebp - 0x84], 2
jne 0x40143f
mov dword [esi + 0x18], 6
jmp 0x4014a2
mov dword [esi + 0x18], ecx
jmp 0x4014a2
cmp dword [ebp - 0x8c], 0
jne 0x40146e
cmp dword [ebp - 0x84], 1
jne 0x40145c
and dword [esi + 0x18], 0
jmp 0x4014a0
cmp dword [ebp - 0x84], 2
jne 0x4014a0
mov dword [esi + 0x18], 3
jmp 0x4014a0
cmp dword [ebp - 0x8c], 0xa
jne 0x401487
push 1
pop eax
cmp dword [ebp - 0x84], eax
jne 0x4014a0
mov dword [esi + 0x18], eax
jmp 0x4014a0
cmp dword [ebp - 0x8c], 0x5a
jne 0x4014a0
cmp dword [ebp - 0x84], 1
jne 0x4014a0
mov dword [esi + 0x18], 2
xor eax, eax
pop esi
leave
ret
Function at 0x40175a
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
mov eax, 0x41b10c
call fcn.004086bc
sub esp, 0x120
mov eax, 0x1388
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov eax, dword [0x422a90]
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
xor ebx, ebx
push str.host_info_start
push eax
mov dword [ebp - 4], ebx
call fcn.00413217
pop ecx
pop ecx
mov ecx, esi
call fcn.00403665
lea eax, [ebp - 0x10]
push str.host_info_end
push eax
call fcn.00413217
pop ecx
pop ecx
push 6
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi + 0x3c], eax
push eax
lea eax, [ebp - 0x10]
push str._x_sock
push eax
call fcn.00413217
mov eax, dword [esi + 0x3c]
add esp, 0xc
cmp eax, 0xffffffff
je 0x401882
cmp eax, ebx
je 0x401882
push edi
lea ecx, [ebp - 0x14]
push 4
push ecx
mov edi, 0xffff
push 0x1005
push edi
push eax
mov dword [ebp - 0x14], ebx
call sub.WS2_32.dll_setsockopt
lea eax, [ebp - 0x10]
push str.sock_opt
push eax
call fcn.00413217
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push 4
push eax
push 0x1006
push edi
push dword [esi + 0x3c]
call sub.WS2_32.dll_setsockopt
lea eax, [ebp - 0x10]
push str.binding
push eax
mov word [ebp - 0x28], 2
mov word [ebp - 0x26], bx
mov dword [ebp - 0x24], ebx
call fcn.00413217
pop ecx
lea eax, [ebp - 0x28]
pop ecx
push 0x10
push eax
push dword [esi + 0x3c]
call sub.WS2_32.dll_bind
cmp eax, 0xffffffff
pop edi
jne 0x40186d
call sub.WS2_32.dll_WSAGetLastError
lea ecx, [ebp - 0x12c]
push 0x104
mov esi, eax
mov eax, dword [0x4260c0]
push ecx
push 5
jmp 0x40189c
lea eax, [ebp - 0x10]
push str.bind_end
push eax
call fcn.00413217
pop ecx
pop ecx
push 1
pop ebx
jmp 0x4018c0
call sub.WS2_32.dll_WSAGetLastError
lea ecx, [ebp - 0x12c]
push 0x104
mov esi, eax
mov eax, dword [0x4260c0]
push ecx
push 3
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x12c]
push esi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00413217
lea eax, [ebp - 0x10]
push eax
call fcn.00402444
add esp, 0x10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00413bf7
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4018dc
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x41b138
call fcn.004086bc
sub esp, 0x754
mov eax, dword [0x422a90]
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
mov edi, 0x634
push edi
lea eax, [ebp - 0x760]
push 0
push eax
call fcn.00408760
mov eax, dword [ebp + 8]
push dword [esi + 0x54]
mov dword [ebp - 0x750], eax
lea eax, [ebp - 0x760]
push eax
mov dword [ebp - 0x648], 1
call fcn.004087c0
add esp, 0x14
lea eax, [ebp - 0x760]
push 0
push edi
push eax
push dword [esi + 0x3c]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x401a52
call sub.WS2_32.dll_WSAGetLastError
lea ecx, [ebp - 0x12c]
mov edi, eax
mov eax, dword [0x4260c0]
push 0x104
push ecx
push 8
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x12c]
push edi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00413217
lea eax, [ebp - 0x10]
push eax
call fcn.00402444
add esp, 0x10
lea ecx, [ebp - 0x28]
call fcn.004016cf
mov eax, dword [0x422a90]
mov dword [ebp + 8], eax
lea edi, [esi + 0x40]
push str.AutoClientUpdate.exe
lea eax, [ebp - 0x14]
push edi
push eax
mov byte [ebp - 4], 2
call fcn.00413d96
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.00413ca0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00413bf7
mov ecx, esi
call fcn.004022d1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp + 8]
lea ecx, [ebp - 0x24]
push eax
call fcn.00413ca0
push str.NULL
lea ecx, [ebp - 0x20]
call fcn.00413cf0
push edi
lea ecx, [ebp - 0x1c]
call fcn.00413ca0
push str.SW_HIDE
lea ecx, [ebp - 0x18]
call fcn.00413cf0
push str.open
lea ecx, [ebp - 0x28]
call fcn.00413cf0
mov ecx, dword [0x4260b0]
lea eax, [ebp - 0x28]
push eax
call fcn.00402144
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00413bf7
and byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004016fe
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00413bf7
xor eax, eax
jmp 0x401a61
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00413bf7
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x401f20
Capabilities:
Get file size

Disassembly:
mov eax, 0x41b1f2
call fcn.004086bc
sub esp, 0x108
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], edi
push 1
lea eax, [ebp - 0x114]
pop ebx
push edi
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
jne 0x401f7f
mov ecx, dword [ebp + 8]
push 0x4260b4
call fcn.00413c21
mov dword [ebp - 0x14], ebx
jmp 0x402048
push edi
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.0041396c
mov ecx, dword [ebp - 0x1c]
call fcn.00402068
mov esi, eax
test esi, esi
jne 0x401fb2
mov ecx, dword [ebp + 8]
push 0x4260b4
call fcn.00413c21
mov dword [ebp - 0x14], ebx
jmp 0x402048
lea ecx, [ebp - 0x8c]
call fcn.00403d4e
push edi
push esi
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 2
call fcn.00403d9e
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x8c]
push eax
call fcn.00403e43
lea ecx, [ebp - 0x18]
call fcn.00401000
push 0x4260b4
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00413c21
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push 0x10
push eax
mov byte [ebp - 4], 4
call fcn.0040102c
push esi
call fcn.004080c1
pop ecx
lea eax, [ebp - 0x10]
mov ecx, dword [ebp + 8]
push eax
call fcn.0041396c
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 3
call fcn.00413bf7
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00401025
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], bl
call fcn.00403d97
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00413bf7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x402144
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x41b260
call fcn.004086bc
sub esp, 0x160
mov eax, dword [0x422a90]
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
push str.NULL
mov dword [ebp - 4], ebx
mov eax, dword [edi + 0xc]
lea esi, [edi + 0xc]
push eax
call fcn.00408c40
pop ecx
test eax, eax
pop ecx
je 0x402194
mov eax, dword [esi]
push str.NO_DATA
push eax
call fcn.00408c40
pop ecx
test eax, eax
pop ecx
jne 0x4021c0
mov eax, dword [ebp - 0x14]
push 0x422364
add eax, 0x40
push eax
lea eax, [ebp + 8]
push eax
call fcn.00413d96
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00413ca0
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.00413bf7
mov eax, dword [ebp - 0x14]
push 0x422364
add eax, 0x40
push eax
lea eax, [ebp + 8]
push eax
call fcn.00413d96
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00413ca0
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.00413bf7
mov eax, dword [edi + 8]
push str.NULL
push eax
call fcn.00408c40
pop ecx
test eax, eax
pop ecx
je 0x40222d
mov eax, dword [edi + 8]
push str.NO_DATA
push eax
call fcn.00408c40
pop ecx
test eax, eax
pop ecx
je 0x40222d
push dword [edi + 8]
lea eax, [ebp - 0x16c]
push eax
call fcn.004087c0
pop ecx
pop ecx
lea ecx, [ebp - 0x16c]
jmp 0x40222f
xor ecx, ecx
mov esi, dword [esi]
lea edx, [ebp - 0x68]
push edx
mov eax, dword [edi + 4]
lea edx, [ebp - 0x58]
mov dword [ebp - 0x58], 0x44
push edx
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], str.WinSta0Default
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x28], 5
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x26], bx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402290
push dword [ebp - 0x68]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x64]
call esi
jmp 0x4022b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push dword [edi + 4]
push str.Error_in_Creating_process_from__s__Error_code_is__d
push eax
call fcn.00413217
lea eax, [ebp - 0x10]
push eax
call fcn.00402444
add esp, 0x14
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00413bf7
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4022df
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x41b284
call fcn.004086bc
sub esp, 0x220
mov eax, dword [0x422a90]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWARENICSTECHSafePC
push 0x80000002
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x402362
mov eax, dword [0x4260c0]
lea ecx, [ebp - 0x22c]
push 0x104
push ecx
push 0x1d
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x22c]
lea ecx, [ebp - 0x18]
push eax
call fcn.00413cf0
lea eax, [ebp - 0x18]
push eax
call fcn.00402444
pop ecx
jmp 0x402415
mov eax, 0x104
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0x128]
push ebx
push eax
call fcn.00408760
add esp, 0xc
lea eax, [ebp - 0x24]
mov esi, str.PROGRAM_PATH
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add edi, 0x40
push 0x422364
lea eax, [ebp - 0x20]
push edi
push eax
mov dword [ebp - 0x1c], 1
call fcn.00413d96
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00413ca0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00413bf7
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x10]
call fcn.00408c40
pop ecx
test eax, eax
pop ecx
je 0x402415
push dword [ebp - 0x10]
lea eax, [ebp - 0x128]
push eax
call fcn.004087c0
lea eax, [ebp - 0x128]
push eax
call fcn.004086e0
add esp, 0xc
push eax
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x1c]
push ebx
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00413bf7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00413bf7
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x402ac5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x41b36f
call fcn.004086bc
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
push str.218.36.6.254
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], ebx
call fcn.00413c21
push 1
pop esi
push 6
push str.SERVER_IP
push ebx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, ebx
jne 0x402b12
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0041396c
mov dword [ebp - 0x18], esi
jmp 0x402b72
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x402b63
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea ebx, [edi + 1]
push ebx
call fcn.00413938
push ebx
push 0
push eax
mov dword [ebp - 0x14], eax
call fcn.00408760
push edi
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.00408e20
add esp, 0x1c
lea ecx, [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.00413cf0
push dword [ebp - 0x14]
call fcn.00413961
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0041396c
mov dword [ebp - 0x18], esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00413bf7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x402b92
Capabilities:
Create directory
Read .ini file

Disassembly:
mov eax, 0x41b3b4
call fcn.004086bc
sub esp, 0x238
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x3c]
call fcn.00407297
mov eax, dword [0x422a90]
and dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
mov ebx, str.SafePC.INI
lea edi, [esi + 0x40]
push ebx
lea eax, [ebp - 0x20]
push edi
push eax
mov byte [ebp - 4], 4
call fcn.00413d96
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00413ca0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.00413bf7
cmp dword [esi + 0x18], 7
jne 0x402c0e
cmp dword [ebp + 8], 0x65
jne 0x402c07
push str.VISTA64
jmp 0x402c65
push str.VISTA32
jmp 0x402c65
push 0
lea ecx, [ebp - 0x3c]
push dword [ebp - 0x14]
call fcn.0040735a
test eax, eax
jne 0x402c6d
mov eax, dword [esi + 0x18]
cmp eax, 4
je 0x402c31
cmp eax, 5
je 0x402c31
cmp eax, 6
jne 0x402c38
push str.2000
jmp 0x402c65
cmp eax, 1
jne 0x402c44
push 0x4222ec
jmp 0x402c65
test eax, eax
jne 0x402c4f
push 0x422410
jmp 0x402c65
cmp eax, 2
jne 0x402c5b
push 0x42240c
jmp 0x402c65
cmp eax, 3
jne 0x402c6d
push 0x422408
lea ecx, [ebp - 0x10]
call fcn.00413cf0
push ebx
lea ecx, [ebp - 0x10]
call fcn.00413e69
mov eax, dword [edi]
xor ebx, ebx
push ebx
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040735a
test eax, eax
jne 0x402cd0
mov edi, dword [edi]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x402cd0
mov eax, dword [0x4260c0]
lea ecx, [ebp - 0x140]
push 0x104
push ecx
push 0x1e
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x140]
lea ecx, [ebp - 0x18]
push eax
call fcn.00413cf0
lea eax, [ebp - 0x18]
push eax
call fcn.00402444
pop ecx
xor esi, esi
jmp 0x402d6f
lea eax, [esi + 0x24]
mov ecx, esi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004037ef
push dword [ebp - 0x14]
mov edi, 0x104
lea eax, [ebp - 0x244]
push edi
push eax
push ebx
mov ebx, str.Server_Infomation
push str.SERVER_IP
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x402d1a
mov eax, dword [0x4260c0]
lea ecx, [ebp - 0x140]
push edi
push ecx
push 0x27
jmp 0x402ca9
add esi, 0x14
push 0x4223f0
lea eax, [ebp + 8]
push esi
push eax
call fcn.00413d96
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.00413ca0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.00413bf7
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x1c]
call fcn.00408c40
pop ecx
test eax, eax
pop ecx
je 0x402d6c
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push str.SERVER_IP
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 1
pop esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00413bf7
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00413bf7
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00413bf7
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00413bf7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004072d4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4030c0
Capabilities:
Connect socket
Resolve dns

Disassembly:
mov eax, 0x41b444
call fcn.004086bc
sub esp, 0x124
mov eax, dword [0x422a90]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], eax
push dword [esi + 0x14]
and dword [ebp - 4], 0
call sub.WS2_32.dll_gethostbyname
mov ebx, eax
test ebx, ebx
jne 0x4030f6
xor esi, esi
jmp 0x40322f
lea edi, [esi + 0x44]
push 0x15ba
mov word [edi], 2
call sub.WS2_32.dll_htons
mov word [esi + 0x46], ax
mov eax, dword [ebx + 0xc]
push 0x10
push edi
mov eax, dword [eax]
push dword [esi + 0x3c]
mov eax, dword [eax]
mov dword [esi + 0x48], eax
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x40322c
call sub.WS2_32.dll_WSAGetLastError
lea ecx, [ebp - 0x130]
mov edi, eax
mov eax, dword [0x4260c0]
push 0x104
push ecx
push 0x28
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x130]
push edi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00413217
lea eax, [ebp - 0x10]
push eax
call fcn.00402444
add esp, 0x10
lea ecx, [ebp - 0x2c]
call fcn.004016cf
mov eax, dword [0x422a90]
mov dword [ebp - 0x14], eax
lea edi, [esi + 0x40]
push str.AutoClientUpdate.exe
lea eax, [ebp - 0x18]
push edi
push eax
mov byte [ebp - 4], 2
call fcn.00413d96
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00413ca0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00413bf7
mov ecx, esi
call fcn.004022d1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x28]
push eax
call fcn.00413ca0
push str.NULL
lea ecx, [ebp - 0x24]
call fcn.00413cf0
push edi
lea ecx, [ebp - 0x20]
call fcn.00413ca0
push str.SW_HIDE
lea ecx, [ebp - 0x1c]
call fcn.00413cf0
push str.open
lea ecx, [ebp - 0x2c]
call fcn.00413cf0
mov ecx, dword [0x4260b0]
lea eax, [ebp - 0x2c]
push eax
call fcn.00402144
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00413bf7
and byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004016fe
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00413bf7
xor eax, eax
jmp 0x40323d
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00413bf7
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret