joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10033863
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x100866fe
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10086552

Function at 0x10086709
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100865d6

Function at 0x10089d6f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x101010c0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10089db0
cmp byte [edx], 0xa
jne 0x10089db0
or byte [eax + edi + 0x28], 4
jmp 0x10089db5
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x10089ea6
mov al, byte [ebx]
cmp al, 0x1a
je 0x10089e87
cmp al, 0xd
je 0x10089dde
mov byte [esi], al
inc esi
inc ebx
jmp 0x10089e7c
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x10089dfe
cmp byte [eax], 0xa
jne 0x10089df3
push 2
mov byte [esi], 0xa
pop eax
jmp 0x10089df9
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x10089e7c
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10089e75
cmp dword [ebp - 0x14], 0
je 0x10089e75
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x101010c0]
test byte [eax + edi + 0x28], 0x48
je 0x10089e4c
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x10089e3c
mov byte [esi], dl
jmp 0x10089e78
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101010c0]
mov byte [eax + edi + 0x2a], dl
jmp 0x10089e78
cmp byte [ebp - 1], 0xa
jne 0x10089e5e
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x10089e5e
mov byte [esi], 0xa
jmp 0x10089dfb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100996de
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10089e79
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x10089dc7
jmp 0x10089ea6
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x101010c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10089ea1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10089ea6
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10089eb1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x101010c0]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x10089ef5
cmp word [edx], bx
jne 0x10089ef5
or byte [edi + eax + 0x28], 4
jmp 0x10089efa
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x1008a04e
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x1008a02e
cmp ax, word [ebp - 0x10]
je 0x10089f33
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x1008a023
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x10089f59
push 0xa
pop ecx
cmp word [eax], cx
jne 0x10089f49
push ecx
pop eax
push 4
jmp 0x10089f4e
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x1008a01d
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1008a014
cmp dword [ebp - 0x18], 0
je 0x1008a014
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x101010c0]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x10089fe0
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x10089fa4
mov word [esi], ax
jmp 0x10089fd8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x101010c0]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x101010c0]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x101010c0]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x1008a023
cmp word [ebp - 4], ax
jne 0x10089ff5
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x10089ff5
mov word [esi], ax
add esi, 2
jmp 0x1008a023
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100996de
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1008a020
jmp 0x1008a017
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x10089f13
jmp 0x1008a04e
mov ecx, dword [ecx*4 + 0x101010c0]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x1008a045
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x1008a04e
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1008ab37
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1008a737

Function at 0x10091079
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10090833

Function at 0x10091084
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10090a72
Function at 0x401bc0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1e8
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
mov ecx, 0x7a
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
mov eax, dword [0x57027c]
push 0x83
push eax
mov dword [esp + 0x10], 0x1e8
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], 7
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x4f4728
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 8]
push edx
push 0
mov dword [esp + 0x20], 0x8003
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402050
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x34
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call sub.MFC71.DLL_AfxWinInit
test eax, eax
jne 0x402092
push ebx
push str.ERROR
push str.Fatal_Error:_MFC_initialization_failed
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x34
ret 0x10
push 1
push 1
push 0x4f4728
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push eax
call fcn.0042af60
add esp, 0xc
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x4c]
push esi
mov dword [0x57027c], eax
mov dword [0x570290], ebx
call fcn.00401600
add esp, 4
push esi
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
call fcn.0042ad20
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x4f4770
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
call fcn.0042aeb0
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x4f476c
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
call fcn.0042aeb0
add esp, 4
lea ecx, [esp + 0x10]
call sub.MFC71.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.0042a7e0
mov eax, dword [esp + 0x20]
add esp, 8
xor edi, edi
xor esi, esi
cmp eax, ebx
jle 0x4021a0
jmp 0x402140
cmp esi, ebx
jl 0x402207
cmp esi, eax
jge 0x402207
mov eax, dword [esp + 0x14]
lea ecx, [eax + esi*4]
push ecx
lea ecx, [esp + 0x48]
call dword [0x4f40ec]
push str.use_rcc
lea ecx, [esp + 0x48]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x402188
push str.USE_RCC
lea ecx, [esp + 0x48]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
jne 0x40218d
mov edi, 1
lea ecx, [esp + 0x44]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x402140
cmp edi, ebx
mov dword [0x2ea1a08], ebx
mov dword [0x2ea1a04], ebx
mov dword [0x2ea1a00], ebx
je 0x4021d0
mov dword [0x2ea1a08], ebx
mov dword [0x2ea1a04], 1
mov dword [0x2ea1a00], 1
mov edx, dword [0x57027c]
push ebx
push 0x401cb0
push ebx
push 0x81
push edx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
lea ecx, [esp + 0x10]
call fcn.00466434
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x34
ret 0x10
call sub.MFC71.DLL_AfxThrowInvalidArgException
int3
Function at 0x402210
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46ab03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x402fb0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46ab92
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0x910]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
lea ecx, [esp + 0x34]
jne 0x403001
mov dword [esp + 0x2c], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
pop edi
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 0x1c
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
test eax, eax
jne 0x403030
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
pop edi
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 0x1c
mov eax, dword [edi + 0xb0]
push esi
mov esi, 0x64
cmp eax, esi
jle 0x4030e7
push ebp
jmp 0x403050
mov ecx, dword [edi + 0x910]
push esi
call fcn.004066f0
test al, al
je 0x4030d7
mov ecx, dword [edi + 0x910]
push esi
call fcn.00406750
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 1
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
test eax, eax
lea ecx, [esp + 0x10]
je 0x4030cd
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.MSVCP71.dll_public:_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::compare_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__const]
test eax, eax
jne 0x4030c9
call fcn.00405c60
mov ebp, eax
mov ebx, dword [ebp]
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push esi
push str.IPFILTER_Drop_Client:_d_IP:_s
push ebp
call dword [ebx + 4]
add esp, 0x10
push esi
mov ecx, edi
call fcn.00402560
xor ebx, ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [edi + 0xb0]
inc esi
cmp esi, eax
jl 0x403050
pop ebp
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x28]
pop esi
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 0x1c
Function at 0x403f80
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket

Disassembly:
sub esp, 0x18
push ebp
push esi
push edi
push 1
push 0
push 0
push 6
push 1
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x403fc9
call fcn.00405c60
mov esi, eax
mov edi, dword [esi]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.ERROR:WSASocket_sSessionINVALID_SOCKET__d
push esi
call dword [edi + 4]
add esp, 0xc
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret 8
lea eax, [esp + 0x14]
mov ecx, 0x10
mov byte [eax], 0
inc eax
dec ecx
jne 0x403fd2
mov eax, dword [esp + 0x2c]
push eax
mov word [esp + 0x18], 2
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0x28]
push 0x10
lea edx, [esp + 0x18]
push edx
push ebp
mov word [esp + 0x22], ax
mov dword [esp + 0x24], ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40403a
call fcn.00405c60
mov esi, eax
mov edi, dword [esi]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.ERROR:CLoginServer::SessionConnect_connect__d
push esi
call dword [edi + 4]
add esp, 0xc
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret 8
mov ecx, dword [esi + 0x910]
push ebp
push 0x63
call fcn.0040a5e0
mov eax, dword [esi + 0x58]
push 0
push 0x63
push eax
push ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
jne 0x404091
call fcn.00405c60
mov ecx, dword [eax]
push str.CreateIoCompletionPort_Error
push eax
call dword [ecx + 4]
add esp, 8
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret 8
push 1
mov ecx, esi
call fcn.00404d30
mov edi, eax
test edi, edi
je 0x403fbd
mov dword [esp + 0xc], 8
mov dword [edi + 0x828], 0
mov edx, dword [esp + 0xc]
push 0
mov dword [edi + 0x820], edx
mov ecx, dword [esi + 0x910]
push 0x63
call fcn.00406720
push 0
push edi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push 1
add edi, 0x14
push edi
push ebp
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ecx, esi
call fcn.00403df0
mov ecx, esi
call fcn.00403ec0
mov ecx, esi
call fcn.00403e50
call fcn.00405c60
mov edx, dword [eax]
push 0x4f480c
push eax
call dword [edx + 4]
call fcn.00405c60
mov ecx, dword [eax]
push str.Session_Server_Connection_OK
push eax
call dword [ecx + 4]
call fcn.00405c60
mov edx, dword [eax]
push 0x4f480c
push eax
call dword [edx + 4]
add esp, 0x18
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x18
ret 8
Function at 0x404ab0
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, ecx
mov eax, dword [esi + 0x64]
test eax, eax
je 0x404acc
push eax
call ebp
mov dword [esi + 0x64], 0xffffffff
mov al, byte [esi + 0x8dc]
test al, al
je 0x404ae7
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x64], eax
lea eax, [esp + 8]
push eax
push 4
push esi
push 0x404660
push 0
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.MSVCR71.dll__beginthreadex]
add esp, 0x18
test eax, eax
mov dword [esi + 0x60], eax
jne 0x404b4f
push ebx
push edi
call fcn.00405c60
mov edi, eax
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Server_Update_Thread_Create_Failed_Error_code_:__d
push edi
call dword [ebx + 4]
mov eax, dword [esi + 0x64]
add esp, 0xc
test eax, eax
pop edi
mov byte [esi + 0x8a], 0
pop ebx
je 0x404b48
push eax
call ebp
mov dword [esi + 0x64], 0xffffffff
pop esi
or eax, 0xffffffff
pop ebp
pop ecx
ret
cmp dword [esi + 0x3c], 2
jbe 0x404b5e
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
call fcn.00405c60
mov ecx, dword [eax]
push str.Server_Update_Thread_Create_OK
push eax
call dword [ecx + 4]
mov al, byte [esi + 0x8dc]
add esp, 8
test al, al
je 0x404b92
mov dword [esi + 0x70], 0x64
mov dword [esi + 0x68], 0xa
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x6c], eax
mov edx, dword [esi + 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
mov eax, 1
pop ebp
pop ecx
ret
Function at 0x405a00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46ad32
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov ecx, edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x4f52e8
call fcn.004065c0
xor ebx, ebx
push 0x290
mov dword [esp + 0x20], ebx
mov dword [esi], 0x4f5320
mov dword [edi], 0x4f531c
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
call sub.MFC71.DLL_operator_new
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x1c], 1
je 0x405a83
push str.NETWORK
mov ecx, eax
call fcn.00411060
jmp 0x405a85
xor eax, eax
push 0x290
mov byte [esp + 0x20], bl
mov dword [esi + 0x20], eax
call sub.MFC71.DLL_operator_new
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x1c], 2
je 0x405ab4
push str.NPROTECT
mov ecx, eax
call fcn.00411060
jmp 0x405ab6
xor eax, eax
push 0x290
mov byte [esp + 0x20], bl
mov dword [esi + 0x24], eax
call sub.MFC71.DLL_operator_new
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x1c], 3
je 0x405ae5
push 0x4f5304
mov ecx, eax
call fcn.00411060
jmp 0x405ae7
xor eax, eax
push 0x290
mov byte [esp + 0x20], bl
mov dword [esi + 0x28], eax
call sub.MFC71.DLL_operator_new
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x1c], 4
je 0x405b16
push str.APEX
mov ecx, eax
call fcn.00411060
jmp 0x405b18
xor eax, eax
push 0x290
mov byte [esp + 0x20], bl
mov dword [esi + 0x2c], eax
call sub.MFC71.DLL_operator_new
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x1c], 5
je 0x405b47
push str.CharSave
mov ecx, eax
call fcn.00411060
jmp 0x405b49
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x40], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x40a880
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, ecx
mov ecx, ebp
imul ecx, ecx, 0x218
lea ebx, [esi + 0x14]
mov dword [esi + 0x81c], 0
mov dword [ebx], eax
add ecx, dword [edi + 0x84]
mov dword [esp + 0x1c], eax
call fcn.00411a70
cmp eax, 0xffffffff
jne 0x40a8ef
mov eax, dword [esi + 0x81c]
test eax, eax
push esi
jne 0x40a8d0
mov ecx, dword [edi + 0x8c]
jmp 0x40a8d6
mov ecx, dword [edi + 0x90]
call fcn.0040f4d0
push 1
push ebp
mov ecx, edi
call fcn.0040a7f0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 0xc
push 0
push esi
push 0
lea ecx, [esp + 0x28]
push ecx
push 1
push ebx
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x40a948
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x3e5
je 0x40a948
mov edx, dword [edi + 0x88]
push esi
push ebp
push 0
push edx
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
call fcn.00405c60
mov ecx, dword [eax]
push ebx
push ebp
push str.ERROR:CClientManager::SendClient_Client__d_ERR__d_
push eax
call dword [ecx + 4]
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc