joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406810
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x435dfb
mov eax, dword fs:[0]
push eax
mov eax, 0x3acc
call fcn.00420520
mov eax, dword [0x443d3c]
xor eax, esp
mov dword [esp + 0x3ac8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x443d3c]
xor eax, esp
push eax
lea eax, [esp + 0x3ae0]
mov dword fs:[0], eax
xor eax, eax
xor ebx, ebx
push 0x3a97
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov word [esp + 0x45], ax
mov byte [esp + 0x47], al
lea eax, [esp + 0x49]
push ebx
push eax
mov esi, ecx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x3c], bl
mov byte [esp + 0x50], bl
call fcn.00420550
mov eax, dword [esi + 0x84]
push 0x3b
push eax
call fcn.00420d00
add esp, 0x14
cmp eax, ebx
je 0x406982
lea ebp, [esi + 0x68]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0x84]
push 1
push 5
push edi
lea ecx, [esp + 0x24]
call fcn.0040cd20
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esp + 0x3aec], ebx
call edi
push 0x438e20
call edi
push 0x14
lea ecx, [esp + 0x34]
push ecx
push 1
lea ecx, [esp + 0x24]
call fcn.0040cf90
test al, al
je 0x406967
push 0x3a98
lea edx, [esp + 0x48]
push edx
push 2
lea ecx, [esp + 0x24]
call fcn.0040cf90
test al, al
je 0x406967
lea eax, [esi + 0x90]
push eax
push 3
lea ecx, [esp + 0x20]
call fcn.0040d110
test al, al
je 0x406967
lea ecx, [esp + 0x14]
push ecx
push 4
lea ecx, [esp + 0x20]
call fcn.0040d110
test al, al
je 0x406967
add esi, 0x2c
push esi
push 5
lea ecx, [esp + 0x20]
call fcn.0040d110
test al, al
je 0x406967
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
mov dword [esp + 0x3ae8], 0xffffffff
call fcn.0040cf50
mov eax, esi
jmp 0x406985
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x18]
mov dword [esp + 0x3ae8], 0xffffffff
call fcn.0040cf50
or eax, 0xffffffff
mov ecx, dword [esp + 0x3ae0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3ac8]
xor ecx, esp
call fcn.0042050e
add esp, 0x3ad8
ret
Function at 0x406a70
Capabilities:
Print debug messages

Disassembly:
mov eax, 0xb1d0
call fcn.00420520
mov eax, dword [0x443d3c]
xor eax, esp
mov dword [esp + 0xb1cc], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x50]
push edi
mov edi, dword [esp + 0xb1e0]
call fcn.00401b40
mov ecx, dword [esi + 0x50]
call fcn.00401b60
push str.SET_CLIENT_UPG_INFO_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi + 0x50]
push 0x3ec
call fcn.00401d10
xor ebx, ebx
push 0x1ff
lea eax, [esp + 0x15]
push ebx
push eax
mov byte [esp + 0x1c], bl
call fcn.00420550
push 0x3a97
lea ecx, [esp + 0x221]
push ebx
push ecx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x228], bl
call fcn.00420550
push 0x3a97
lea edx, [esp + 0x3cc5]
push ebx
push edx
mov byte [esp + 0x3ccc], bl
call fcn.00420550
push 0x3a97
lea eax, [esp + 0x7769]
push ebx
push eax
mov byte [esp + 0x7770], bl
call fcn.00420550
lea ecx, [esp + 0x3c]
push ecx
call fcn.00401590
lea edx, [esp + 0x244]
push edx
call fcn.004040e0
lea eax, [esp + 0x3ce0]
push eax
call fcn.00404120
lea ecx, [esp + 0x777c]
push ecx
call fcn.00404160
mov eax, dword [esp + 0x4c]
add esp, 0x40
cmp eax, ebx
jne 0x406b74
push str.dwUserID__0
call fcn.00404f70
add esp, 4
xor al, al
jmp 0x406c6a
push 1
push eax
lea edx, [esp + 0x18]
push str._d_c
push edx
call fcn.004200a5
mov ecx, dword [esi + 0x50]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
call fcn.00401b00
lea ecx, [esp + 0x210]
push ecx
mov ecx, dword [esi + 0x50]
call fcn.00401b00
push 1
lea edx, [esp + 0x14]
push 0x439650
push edx
call fcn.004200a5
mov ecx, dword [esi + 0x50]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call fcn.00401b00
lea ecx, [esp + 0x3ca8]
push ecx
mov ecx, dword [esi + 0x50]
call fcn.00401b00
mov ecx, dword [esi + 0x50]
lea edx, [esp + 0x10]
push edx
call fcn.00401b00
mov ecx, dword [esi + 0x50]
lea eax, [esp + 0x7740]
push eax
call fcn.00401b00
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 0x50]
call fcn.00401b00
mov ecx, dword [esi + 0x50]
push 0x4395a0
call fcn.00401b00
mov ecx, dword [esi + 0x50]
call fcn.00401cd0
test al, al
jne 0x406c2b
push str.SendReq
call fcn.00404f70
add esp, 4
xor al, al
jmp 0x406c6a
mov ecx, dword [esi + 0x50]
push 1
call fcn.00401ab0
test al, al
jne 0x406c4a
push str.RecvReply
call fcn.00404f70
add esp, 4
xor al, al
jmp 0x406c6a
mov ecx, dword [esi + 0x50]
push edi
call fcn.00401d70
test al, al
jne 0x406c68
push str.GetReqReply
call fcn.00404f70
add esp, 4
xor al, al
jmp 0x406c6a
mov al, 1
mov ecx, dword [esp + 0xb1d8]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042050e
add esp, 0xb1d0
ret 4

Function at 0x406d70
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x443d3c]
xor eax, esp
mov dword [esp + 0x94], eax
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.00420550
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x94]
sbb eax, eax
xor ecx, esp
add eax, 1
call fcn.0042050e
add esp, 0x98
ret
Function at 0x407000
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x435e3e
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x443d3c]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
push esi
push edi
mov eax, dword [0x443d3c]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x22c]
push 0x1ff
lea eax, [esp + 0x1d]
push 0
push eax
mov edi, ecx
mov byte [esp + 0x24], 0
call fcn.00420550
mov ecx, dword [edi + 0x50]
add esp, 0xc
test ecx, ecx
mov dword [esp + 0x10], 0
je 0x4070f8
call fcn.00401b40
mov ecx, dword [edi + 0x50]
call fcn.00401b60
push str.REGISTER_ERROR___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [edi + 0x50]
push 0x3e8
call fcn.00401d10
lea ecx, [esp + 0x10]
push ecx
call fcn.00401590
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x4070f1
push 0x4395a0
push 1
push ebp
push 1
push eax
lea edx, [esp + 0x2c]
push str._d_c_s_c_s
push edx
call fcn.004200a5
mov ecx, dword [edi + 0x50]
add esp, 0x1c
lea eax, [esp + 0x18]
push eax
call fcn.00401b00
mov ecx, dword [edi + 0x50]
call fcn.00401cd0
test al, al
je 0x4070f1
mov ecx, dword [edi + 0x50]
push 1
call fcn.00401ab0
test al, al
jne 0x40721c
xor al, al
jmp 0x40721e
push 0x34
call fcn.00415a5a
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x224], 0
je 0x407120
mov ecx, eax
call fcn.00401780
mov esi, eax
jmp 0x407122
xor esi, esi
cmp dword [edi + 4], 0
mov dword [esp + 0x224], 0xffffffff
jne 0x40713b
call fcn.004040a0
mov dword [edi + 4], eax
call fcn.00404e00
test al, al
jne 0x40715f
test esi, esi
je 0x407158
mov ecx, esi
call fcn.00401830
push esi
call fcn.00415a85
add esp, 4
xor al, al
jmp 0x40721e
cmp dword [edi + 8], 0
jne 0x40716d
call fcn.004010c0
mov dword [edi + 8], eax
call fcn.00401100
test al, al
je 0x407144
push 0
push 0
mov ecx, esi
call fcn.00401c80
test al, al
je 0x407144
mov ecx, esi
call fcn.00401b40
mov ecx, esi
call fcn.00401b60
push str.REGISTER_ERROR___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x3e8
mov ecx, esi
call fcn.00401d10
lea ecx, [esp + 0x10]
push ecx
call fcn.00401590
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x407144
push 0x4395a0
push 1
push ebp
push 1
push eax
lea edx, [esp + 0x2c]
push str._d_c_s_c_s
push edx
call fcn.004200a5
add esp, 0x1c
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00401b00
mov ecx, esi
call fcn.00401cd0
test al, al
je 0x407144
push 1
mov ecx, esi
call fcn.00401ab0
test al, al
je 0x407144
test esi, esi
je 0x40721c
mov ecx, esi
call fcn.00401830
push esi
call fcn.00415a85
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042050e
add esp, 0x218
ret 4
Function at 0x4081e0
Capabilities:
Create process on windows
Delete file

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0x43982c
push edi
mov esi, ecx
call fcn.0042157f
add esp, 8
test eax, eax
jne 0x408278
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
push ebx
push edi
push str._s_s.zip
push ebp
call fcn.004200a5
mov eax, dword [esi + 0x4c]
push ebp
mov ebp, dword [esp + 0x34]
push eax
push str._sUpdate_s
push ebp
call fcn.004200a5
mov ecx, dword [esi + 0x4c]
mov edx, dword [esp + 0x44]
push ecx
push str._sreg.exe
push edx
call fcn.004200a5
add esp, 0x2c
push ebp
mov ecx, esi
call fcn.00406f60
test al, al
je 0x408265
mov eax, dword [esp + 0x24]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push ebx
push edi
call fcn.00404980
add esp, 8
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push edi
call fcn.00404240
add esp, 8
pop ebp
pop ebx
pop edi
mov al, 1
pop esi
ret 0x14
pop edi
xor al, al
pop esi
ret 0x14

Function at 0x408280
Capabilities:
Delete file

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x10]
push str.clientupdate
push esi
mov ebp, ecx
call fcn.0042157f
add esp, 8
test eax, eax
je 0x4082f1
push ebx
mov ebx, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x1c]
push edi
push esi
push str._s_s.zip
push ebx
call fcn.004200a5
mov eax, dword [ebp + 0x4c]
push ebx
mov ebx, dword [esp + 0x34]
push eax
push str._sUpdate_s
push ebx
call fcn.004200a5
add esp, 0x20
push ebx
mov ecx, ebp
call fcn.00406f60
test al, al
push edi
push esi
je 0x4082e7
call fcn.00404980
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
push esi
call fcn.00404240
add esp, 8
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x409010
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x334
mov eax, dword [0x443d3c]
xor eax, esp
mov dword [esp + 0x330], eax
push esi
mov esi, ecx
mov ecx, dword [esi + 0x50]
push edi
mov edi, dword [esp + 0x340]
call fcn.00401b40
mov ecx, dword [esi + 0x50]
call fcn.00401b60
push str.SET_CLIENT_SYS_INFO_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi + 0x50]
push 0x3e9
call fcn.00401d10
push 0x1ff
lea eax, [esp + 0x13d]
push 0
push eax
mov byte [esp + 0x144], 0
call fcn.00420550
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0
call fcn.00401590
mov eax, dword [esp + 0x18]
add esp, 0x10
test eax, eax
jne 0x409097
xor al, al
jmp 0x40912e
push 1
push eax
lea edx, [esp + 0x140]
push str._d_c
push edx
call fcn.004200a5
mov ecx, dword [esi + 0x50]
add esp, 0x10
lea eax, [esp + 0x138]
push eax
call fcn.00401b00
push 0x12b
lea ecx, [esp + 0x11]
push 0
push ecx
mov byte [esp + 0x18], 0
call fcn.00420550
add esp, 0xc
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00406c90
test al, al
je 0x409090
mov ecx, dword [esi + 0x50]
lea eax, [esp + 0xc]
push eax
call fcn.00401b00
mov ecx, dword [esi + 0x50]
push 0x4395a0
call fcn.00401b00
mov ecx, dword [esi + 0x50]
call fcn.00401cd0
test al, al
je 0x409090
mov ecx, dword [esi + 0x50]
push 0
call fcn.00401ab0
test al, al
je 0x409090
mov ecx, dword [esi + 0x50]
push edi
call fcn.00401d70
test al, al
setne al
mov ecx, dword [esp + 0x338]
pop edi
pop esi
xor ecx, esp
call fcn.0042050e
add esp, 0x334
ret 4

Function at 0x409150
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x3c9c
call fcn.00420520
mov eax, dword [0x443d3c]
xor eax, esp
mov dword [esp + 0x3c98], eax
push esi
mov esi, ecx
mov ecx, dword [esi + 0x50]
push edi
mov edi, dword [esp + 0x3ca8]
call fcn.00401b40
mov ecx, dword [esi + 0x50]
call fcn.00401b60
push str.GET_UPD_VER_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi + 0x50]
push 0x3ea
call fcn.00401d10
push 0x1ff
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.00420550
push 0x3a97
lea ecx, [esp + 0x219]
push 0
push ecx
mov byte [esp + 0x220], 0
call fcn.00420550
lea edx, [esp + 0x220]
push edx
call fcn.004040e0
add esp, 0x1c
lea eax, [esp + 0x208]
push eax
mov ecx, esi
call fcn.00407890
lea ecx, [esp + 0x208]
push ecx
mov ecx, dword [esi + 0x50]
call fcn.00401b00
push 1
lea edx, [esp + 0xc]
push 0x439650
push edx
call fcn.004200a5
mov ecx, dword [esi + 0x50]
add esp, 0xc
lea eax, [esp + 8]
push eax
call fcn.00401b00
mov ecx, dword [esi + 0x50]
push 0x4395a0
call fcn.00401b00
mov ecx, dword [esi + 0x50]
call fcn.00401cd0
test al, al
jne 0x40923a
xor al, al
jmp 0x409256
mov ecx, dword [esi + 0x50]
push 1
call fcn.00401ab0
test al, al
je 0x409236
mov ecx, dword [esi + 0x50]
push edi
call fcn.00401d70
test al, al
setne al
mov ecx, dword [esp + 0x3ca0]
pop edi
pop esi
xor ecx, esp
call fcn.0042050e
add esp, 0x3c9c
ret 4
Function at 0x409740
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x240
mov eax, dword [0x443d3c]
xor eax, esp
mov dword [esp + 0x23c], eax
push esi
push edi
mov edi, dword [esp + 0x24c]
push 0x38
lea eax, [esp + 0x10]
push 0
push eax
mov esi, ecx
call fcn.00420550
push 0x1ff
lea ecx, [esp + 0x55]
push 0
push ecx
mov dword [esp + 0x20], 0x3c
mov dword [esp + 0x24], 0x100
mov dword [esp + 0x30], edi
mov dword [esp + 0x3c], 5
mov byte [esp + 0x5c], 0
call fcn.00420550
add esp, 0x18
push 0x200
lea edx, [esp + 0x48]
push edx
mov ecx, esi
call fcn.004080f0
lea ecx, [esp + 8]
lea eax, [esp + 0x44]
push ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x244]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.0042050e
add esp, 0x240
ret 4

Function at 0x409a20
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push 0x439d60
push ebp
mov esi, ecx
call fcn.0042157f
add esp, 8
test eax, eax
jne 0x409b5d
mov eax, dword [esp + 0x14]
push ebx
push edi
mov edi, dword [esp + 0x18]
push eax
push ebp
push str._s_s.zip
push edi
call fcn.004200a5
mov ecx, dword [esi + 0x4c]
mov edx, dword [esp + 0x30]
push edi
push ecx
push str._sUpdate_s
push edx
call fcn.004200a5
mov eax, dword [esi + 0x4c]
mov ebx, dword [esp + 0x44]
push eax
push str._sUpdateExtractZip.dll
push ebx
call fcn.004200a5
mov ecx, dword [esi + 0x88]
mov edx, dword [esp + 0x54]
push ecx
push str._sbinExtractZip.dll
push edx
call fcn.004200a5
mov eax, dword [esi + 0xd4]
lea edi, [esi + 0xd0]
add esp, 0x38
test eax, eax
je 0x409ab0
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x409b0b
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x20]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x409b46
mov ecx, dword [esp + 0x28]
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x409b46
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esi + 0x88]
push edx
mov ecx, edi
call fcn.00406350
test al, al
jne 0x409b14
push str.Cant_Initialize_The_ExtractZip.dll_Dll
call fcn.00408470
mov ecx, eax
call fcn.00407000
pop edi
pop ebx
pop esi
xor al, al
pop ebp
ret 0x18
mov esi, dword [esp + 0x1c]
push esi
push ebp
call fcn.00404980
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
push ebp
call fcn.00404240
push str.Replace__ExtractZip.dll_:_Finish
call fcn.00404f70
add esp, 0xc
pop edi
pop ebx
pop esi
mov al, 1
pop ebp
ret 0x18
mov eax, dword [esp + 0x1c]
push eax
push ebp
call fcn.00404240
add esp, 8
pop edi
pop ebx
pop esi
mov al, 1
pop ebp
ret 0x18
pop esi
xor al, al
pop ebp
ret 0x18
Function at 0x40c380
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
test eax, eax
jle 0x40c3a5
cmp byte [eax + esi], 0x40
je 0x40c3a2
sub eax, 1
test eax, eax
jg 0x40c393
jmp 0x40c3a5
add eax, 1
add eax, esi
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x40c3bb
pop edi
mov eax, 2
pop esi
ret 0xc
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
movzx ecx, byte [eax]
movzx edx, byte [eax + 1]
mov byte [esp + 0xc], cl
movzx ecx, byte [eax + 2]
mov byte [esp + 0xd], dl
movzx edx, byte [eax + 3]
mov byte [esp + 0xe], cl
mov byte [esp + 0xf], dl
mov eax, dword [esp + 0xc]
push eax
call sub.WSOCK32.dll_inet_ntoa
mov esi, eax
test esi, esi
je 0x40c3b1
push esi
call edi
add eax, 1
cmp eax, dword [esp + 0x14]
jle 0x40c405
pop edi
mov eax, 1
pop esi
ret 0xc
mov ecx, dword [esp + 0x10]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
xor eax, eax
pop esi
ret 0xc

Function at 0x40c480
Capabilities:
Initialize winsock library

Disassembly:
push ebx
push esi
mov esi, ecx
lea eax, [esi + 0x34]
push eax
xor ebx, ebx
push 0x101
mov dword [esi], vtable.CUT_WSClient.0
mov dword [esi + 4], ebx
mov byte [esi + 8], bl
call sub.WSOCK32.dll_WSAStartup
neg eax
sbb eax, eax
add eax, 1
push 0x7530
mov ecx, esi
mov dword [esi + 0x1ec], eax
call fcn.0040c320
push 0x7530
mov ecx, esi
call fcn.0040c350
or eax, 0xffffffff
mov dword [esi + 0x1c4], eax
mov dword [esi + 0x1d8], eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x1f0], ebx
mov dword [esi + 0x5fc], ebx
mov dword [esi + 0x600], ebx
mov eax, esi
pop esi
pop ebx
ret

Function at 0x40cc90
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
mov ecx, dword [esp + 4]
je 0x40ccb2
push eax
mov eax, dword [esp + 0xc]
push 0
push eax
push ecx
push 0
push 0
call fcn.004235ad
add esp, 0x18
ret
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push 0
push eax
push ecx
push 0
push 0
mov dword [esp + 0x24], 0
call fcn.004235ad
add esp, 0x18
ret

Function at 0x40d290
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx + 8]
test eax, eax
jne 0x40d29c
xor al, al
ret 0x10
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete al
ret 0x10

Function at 0x40d2d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 8]
test eax, eax
jne 0x40d2dc
xor al, al
ret 0x10
mov edx, dword [esp + 8]
lea ecx, [esp + 0x10]
push ecx
push edx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete al
ret 0x10

Function at 0x40d3c0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x443d3c]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov ecx, dword [esp + 0x190]
test eax, eax
sete al
xor ecx, esp
call fcn.0042050e
add esp, 0x194
ret
Function at 0x40d410
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov ecx, dword [esp + 4]
cmp eax, 0xffffffff
mov dword [ecx], eax
setne al
ret

Function at 0x40d430
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x40d45c
mov eax, dword [eax]
test eax, eax
je 0x40d45c
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je 0x40d45c
test eax, eax
setne al
ret
xor al, al
ret

Function at 0x40d460
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x40d4ad
cmp dword [ebx], 0
je 0x40d4ad
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor esi, esi
test edi, edi
je 0x40d49f
mov ebp, dword [esp + 0x18]
nop
mov ecx, dword [ebx]
push 0
push edi
lea eax, [esi + ebp]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x40d4a6
test eax, eax
je 0x40d4a6
add esi, eax
sub edi, eax
jne 0x40d480
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
xor al, al
pop ebx
ret

Function at 0x40d530
Capabilities:
Get socket status

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10c
test eax, eax
push edi
je 0x40d5b7
mov edi, dword [eax]
test edi, edi
je 0x40d5b7
push esi
mov esi, dword [esp + 0x11c]
mov eax, esi
test eax, eax
mov dword [esp + 8], eax
fild dword [esp + 8]
jge 0x40d561
fadd qword [0x43a470]
fdiv qword [0x43a468]
call fcn.00423660
mov dword [esp + 8], eax
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul edx, edx, 0x3e8
lea ecx, [esp + 8]
push ecx
sub esi, edx
push 0
lea edx, [esp + 0x18]
push edx
push 0
push 0xffffffffffffffff
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], 1
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 1
pop esi
sete al
pop edi
add esp, 0x10c
ret
xor al, al
pop edi
add esp, 0x10c
ret
Function at 0x40d5d0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
sub esp, 0x14
mov eax, dword [0x443d3c]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
push edi
mov edi, dword [esp + 0x24]
je 0x40d64f
cmp dword [esi], 0
je 0x40d64f
push 1
push esi
call fcn.0040d4f0
add esp, 8
test al, al
je 0x40d64f
mov eax, dword [esp + 0x28]
push eax
mov word [esp + 0xc], 2
call dword [sym.imp.WSOCK32.dll_htons]
push edi
mov word [esp + 0xe], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov edx, dword [esi]
push 0x10
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x40d662
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
je 0x40d662
push 0
push esi
call fcn.0040d4f0
add esp, 8
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0042050e
add esp, 0x14
ret
mov eax, dword [esp + 0x2c]
push eax
push esi
call fcn.0040d530
add esp, 8
test al, al
push 0
push esi
je 0x40d647
call fcn.0040d4f0
mov ecx, dword [esp + 0x20]
add esp, 8
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.0042050e
add esp, 0x14
ret
Function at 0x40faf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040f7d0
push 0
push 0
push 3
push 0
push 0
push connect
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40fb2a
xor eax, eax
jmp 0x40fc47
push 2
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 8], eax
push 0
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 8]
add eax, 4
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x320], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x320], 0
jne 0x40fb78
xor eax, eax
jmp 0x40fc47
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x320]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x324], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x324], 0
jne 0x40fbac
mov ecx, dword [ebp - 0x10]
call fcn.0040f7d0
xor eax, eax
jmp 0x40fc47
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x324]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x32c], 4
mov edx, dword [ebp - 8]
add edx, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x328], edx
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x328]
sub eax, 4
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x324]
add edx, 4
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
call fcn.00410330
test eax, eax
jne 0x40fc32
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 0x10]
call fcn.0040f7d0
xor eax, eax
jmp 0x40fc47
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x320]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, 1
mov esp, ebp
pop ebp
ret 4