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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
mov dword [ebp - 0xc], esi
cmp dword [0x49dcd8], ebx
jne 0x43f06a
push 0x49dcbc
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x49dcd8], 1
push 0x49dcbc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x49dcd4]
mov edi, eax
cmp eax, ebx
je 0x43f0ce
cmp dword [ebp - 4], ebx
jne 0x43f20e
xor eax, eax
inc eax
lea ecx, [edi + 0x114]
cmp esi, dword [ecx]
je 0x43f0a1
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x43f092
jmp 0x43f0bf
push dword [ebp + 0xc]
lea esi, [edi + eax*4 + 0x210]
push dword [ebp + 8]
call fcn.0043ee89
mov esi, dword [ebp - 0xc]
pop ecx
pop ecx
mov dword [ebp - 4], 1
mov edi, dword [edi]
cmp edi, ebx
jne 0x43f080
cmp dword [ebp - 4], ebx
jne 0x43f20e
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push ebx
push 0x100000
lea eax, [ebp - 8]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x43f20e
mov edi, dword [0x49dcd4]
jmp 0x43f10e
cmp dword [edi + 0xc], 0x3f
jl 0x43f1a8
mov edi, dword [edi]
cmp edi, ebx
jne 0x43f102
push 0x310
push 8
push dword [0x49d224]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x43f205
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [edi + 8], eax
cmp eax, ebx
je 0x43f1f7
push ebx
push ebx
push edi
push 0x43eeda
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x114], esi
push 0x1000
lea esi, [edi + 0x214]
push ebx
mov dword [edi + 0x14], eax
mov dword [esi], ebx
mov dword [edi + 0xc], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x43f1ee
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043ee89
mov eax, dword [0x49dcd4]
pop ecx
pop ecx
mov dword [edi + 4], ebx
mov dword [edi], eax
cmp eax, ebx
je 0x43f1a0
mov dword [eax + 4], edi
mov dword [0x49dcd4], edi
jmp 0x43f20e
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 8]
push dword [ebp + 0xc]
mov dword [edi + eax*4 + 0x10], ecx
mov eax, dword [edi + 0xc]
push dword [ebp + 8]
mov dword [edi + eax*4 + 0x110], esi
mov eax, dword [edi + 0xc]
mov dword [edi + eax*4 + 0x210], ebx
mov eax, dword [edi + 0xc]
lea esi, [edi + eax*4 + 0x210]
call fcn.0043ee89
inc dword [edi + 0xc]
pop ecx
pop ecx
push ebx
push 1
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x43f20e
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push dword [0x49d224]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x49dcbc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x44059c
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x158
push 8
push dword [0x49d224]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x49e084]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x49e088], esi
and dword [esi + 0x88], 0
or dword [esi + 0x8c], 0xffffffff
or dword [esi + 0x90], 0xffffffff
push esi
mov dword [esi + 0x84], 0xffffff
mov dword [esi + 0x6c], 2
mov dword [esi + 0x70], 0x3f
call fcn.00446621
mov dword [esi + 0x58], 0x44051b
mov dword [esi + 0x5c], 0x44055a
mov dword [esi + 0x10], fcn.0043f6b9
mov dword [esi + 0x30], 0x43f83e
mov dword [esi + 0x64], 0x43f947
mov dword [esi + 0x60], 0x43f994
mov dword [esi + 0x34], 0x4400ba
mov dword [esi + 0x24], 0x43ff59
mov dword [esi + 0x28], 0x43ff82
mov dword [esi + 0x2c], 0x43ffad
mov dword [esi + 0x44], 0x4403ab
mov eax, esi
pop esi
ret 4

Function at 0x441a84
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x1c], 0
mov ecx, dword [esi + 0xb4]
mov dword [ebp - 4], ecx
je 0x441af9
imul ecx, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x14]
add eax, dword [ebp + 8]
push ebx
lea edx, [eax + edx*4]
push edi
mov eax, dword [esi + 0xac]
imul eax, dword [ebp + 0x10]
add eax, dword [esi + 0xa8]
mov edi, edx
add eax, ecx
cmp dword [ebp + 0x18], 0
jle 0x441ae8
mov ebx, dword [ebp + 0x18]
mov dword [ebp + 0x14], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add eax, dword [ebp - 4]
add edi, 4
dec dword [ebp + 0x14]
jne 0x441acd
dec dword [ebp + 0x1c]
add edx, dword [ebp + 0xc]
inc dword [ebp + 0x10]
cmp dword [ebp + 0x1c], 0
jne 0x441aad
pop edi
pop ebx
leave
ret 0x18

Function at 0x4428be
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x20], 0
mov edx, dword [esi + 0xb4]
je 0x44293e
push ebx
imul eax, eax, 3
push edi
mov edi, dword [ebp + 0x14]
mov ecx, edx
imul ecx, dword [ebp + 0x10]
mov dword [ebp + 0x10], edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x18]
add edi, dword [ebp + 8]
add eax, edi
mov edi, eax
mov dword [ebp + 0x18], eax
mov eax, dword [esi + 0xac]
imul eax, dword [ebp + 0x10]
add eax, dword [esi + 0xa8]
add eax, ecx
cmp dword [ebp + 0x1c], 0
jle 0x442927
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x14], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add edi, 3
add eax, edx
dec dword [ebp + 0x14]
jne 0x44290d
mov edi, dword [ebp + 0x18]
add edi, dword [ebp + 0xc]
dec dword [ebp + 0x20]
inc dword [ebp + 0x10]
cmp dword [ebp + 0x20], 0
mov dword [ebp + 0x18], edi
jne 0x4428ef
pop edi
pop ebx
pop ebp
ret 0x1c
Function at 0x442998
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
imul eax, eax, 3
cmp dword [ebp + 0x1c], 0
mov dword [ebp - 4], eax
je 0x442a32
mov eax, dword [ebp + 0x14]
imul ecx, ecx, 3
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x10]
imul eax, dword [ebp + 0x18]
add eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, edx
imul esi, esi, 3
add ecx, eax
push edi
mov edi, ecx
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xac]
imul ecx, dword [ebp + 0x14]
add ecx, dword [eax + 0xa8]
mov edx, dword [ebp - 4]
add ecx, esi
test edx, edx
jle 0x442a1a
mov eax, 0xff
sub eax, dword [ebp + 0x20]
mov dword [ebp + 0x18], edx
mov dword [ebp - 8], eax
movzx eax, byte [ecx]
movzx edx, byte [edi]
imul eax, dword [ebp - 8]
imul edx, dword [ebp + 0x20]
add eax, edx
cdq
mov ebx, 0xff
idiv ebx
inc edi
mov byte [ecx], al
inc ecx
dec dword [ebp + 0x18]
jne 0x4429f9
mov edi, dword [ebp + 0xc]
add edi, dword [ebp + 0x10]
dec dword [ebp + 0x1c]
inc dword [ebp + 0x14]
cmp dword [ebp + 0x1c], 0
mov dword [ebp + 0xc], edi
jne 0x4429cf
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x401400
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 [0x5bce2c]
push 0x82
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 0x4fe654
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], 0x8004
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 0x401850
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 0x401892
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 0x4fe654
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.0042f310
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 [0x5bce2c], eax
mov dword [0x5bce40], ebx
call fcn.00401030
add esp, 4
push esi
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
call fcn.0042f0d0
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x4fe69c
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
call fcn.0042f260
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x4fe698
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
call fcn.0042f260
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.0042ebc0
mov eax, dword [esp + 0x20]
add esp, 8
xor edi, edi
xor esi, esi
cmp eax, ebx
jle 0x4019a0
jmp 0x401940
cmp esi, ebx
jl 0x401a07
cmp esi, eax
jge 0x401a07
mov eax, dword [esp + 0x14]
lea ecx, [eax + esi*4]
push ecx
lea ecx, [esp + 0x48]
call dword [0x4fe0e4]
push str.use_rcc
lea ecx, [esp + 0x48]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x401988
push str.USE_RCC
lea ecx, [esp + 0x48]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
jne 0x40198d
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 0x401940
cmp edi, ebx
mov dword [0x3876148], ebx
mov dword [0x3876144], ebx
mov dword [0x3876140], ebx
je 0x4019d0
mov dword [0x3876148], ebx
mov dword [0x3876144], 1
mov dword [0x3876140], 1
mov edx, dword [0x5bce2c]
push ebx
push 0x401540
push ebx
push 0x82
push edx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
lea ecx, [esp + 0x10]
call fcn.0046a6c8
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 0x401a30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46ebd3
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 [0x4fe1b8]
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 0x401ab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46ebd3
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 [0x4fe1ac]
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 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 + 0x68]
test eax, eax
je 0x404acc
push eax
call ebp
mov dword [esi + 0x68], 0xffffffff
mov al, byte [esi + 0x8e0]
test al, al
je 0x404ae7
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x68], eax
lea eax, [esp + 8]
push eax
push 4
push esi
push 0x404650
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 + 0x64], eax
jne 0x404b4f
push ebx
push edi
call fcn.00405c70
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 + 0x68]
add esp, 0xc
test eax, eax
pop edi
mov byte [esi + 0x8e], 0
pop ebx
je 0x404b48
push eax
call ebp
mov dword [esi + 0x68], 0xffffffff
pop esi
or eax, 0xffffffff
pop ebp
pop ecx
ret
cmp dword [esi + 0x40], 2
jbe 0x404b5e
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
call fcn.00405c70
mov ecx, dword [eax]
push str.Server_Update_Thread_Create_OK
push eax
call dword [ecx + 4]
mov al, byte [esi + 0x8e0]
add esp, 8
test al, al
je 0x404b92
mov dword [esi + 0x74], 0x64
mov dword [esi + 0x6c], 0xa
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x70], eax
mov edx, dword [esi + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
mov eax, 1
pop ebp
pop ecx
ret
Function at 0x405880
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46ede1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x4ff218
mov dword [esp + 0x14], 2
call fcn.00407b40
call fcn.004076c0
mov ecx, dword [esi + 0x20]
xor ebx, ebx
cmp ecx, ebx
mov dword [0x67cf08], ebx
je 0x4058ce
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x20], ebx
mov ecx, dword [esi + 0x24]
cmp ecx, ebx
je 0x4058de
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi + 0x24], ebx
mov ecx, dword [esi + 0x2c]
cmp ecx, ebx
je 0x4058ee
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x2c], ebx
call fcn.00407630
call fcn.00406de0
call fcn.00413590
call fcn.00413600
call fcn.00405c70
call fcn.00405990
call sub.WS2_32.dll_WSACleanup
call fcn.004130b0
call fcn.00413400
call fcn.0040ff50
call fcn.0040ffc0
lea ecx, [esi + 0x8f4]
mov byte [esp + 0x14], 1
call fcn.00405660
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], bl
call fcn.00419450
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.00412dc0
mov ecx, dword [esp + 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x405a10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46ee32
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], 0x4ff254
call fcn.00412da0
xor ebx, ebx
push 0x290
mov dword [esp + 0x20], ebx
mov dword [esi], 0x4ff28c
mov dword [edi], 0x4ff288
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 0x405a93
push str.NETWORK
mov ecx, eax
call fcn.00413fa0
jmp 0x405a95
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 0x405ac4
push str.NPROTECT
mov ecx, eax
call fcn.00413fa0
jmp 0x405ac6
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 0x405af5
push 0x4ff270
mov ecx, eax
call fcn.00413fa0
jmp 0x405af7
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 0x405b26
push str.APEX
mov ecx, eax
call fcn.00413fa0
jmp 0x405b28
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 0x405b57
push str.CharSave
mov ecx, eax
call fcn.00413fa0
jmp 0x405b59
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 0x4071a0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46ef0c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
xor ebx, ebx
mov dword [esp + 8], ebx
xor eax, eax
push esi
push edi
mov dword [esp + 0x1d], eax
mov byte [esp + 0x28], bl
mov byte [esp + 0x21], al
mov ecx, 0x3e
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
stosw word es:[edi], ax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov esi, dword [ebp + 0xc]
lea ecx, [esp + 0x24]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 2
push ebx
push esi
push 3
mov dword [esp + 0x150], ebx
call sub.ODBC32.dll_SQLGetDiagField
lea eax, [esp + 0x24]
push eax
push 0xfa
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push eax
push 1
push esi
push 3
mov dword [esp + 0x34], 1
call sub.ODBC32.dll_SQLGetDiagRec
cmp ax, 0x64
je 0x4072a3
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push ecx
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
push str._s__NativeError:_d___s
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
mov eax, dword [esp + 0x28]
add esp, 0x14
lea edx, [esp + 0x24]
push edx
push 0xfa
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x2c]
push ecx
inc eax
push eax
push esi
push 3
mov dword [esp + 0x34], eax
call sub.ODBC32.dll_SQLGetDiagRec
cmp ax, 0x64
jne 0x407250
mov esi, dword [ebp + 8]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call dword [0x4fe0e4]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x12c]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x407430
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46ef4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov ecx, edi
mov dword [esp + 8], esi
mov dword [esi], 0x4ff2d8
call fcn.00412da0
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esi], 0x4ff578
mov dword [edi], 0x4ff570
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
call fcn.004280c0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40e640
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.00428690
cmp eax, 0xffffffff
jne 0x40e6af
mov eax, dword [esi + 0x81c]
test eax, eax
push esi
jne 0x40e690
mov ecx, dword [edi + 0x8c]
jmp 0x40e696
mov ecx, dword [edi + 0x90]
call fcn.00412410
push 1
push ebp
mov ecx, edi
call fcn.0040e5b0
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 0x40e708
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x3e5
je 0x40e708
mov edx, dword [edi + 0x88]
push esi
push ebp
push 0
push edx
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
call fcn.00405c70
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
Function at 0x412700
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x14]
add esp, 0x24
ret