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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006021d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call dword [sym.imp.MSVCP140.dll__Thrd_id]
push eax
push str._WSServer__start____thread_id___d
push 0x2c9
push str.c:workspacechromasdkRC3.36CoreChromaConnectServerChromaConnectServer.cpp
push 3
call fcn.10012170
push eax
call fcn.10012510
add esp, 0x18
cmp byte [esi + 0x300], 0
jne 0x100195b0
push 4
call fcn.1005d247
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [eax], esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x1003b400
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x100195ca
cmp dword [esi + 0x2fc], 0
je 0x100195a1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x2f8], ecx
mov dword [esi + 0x2fc], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005c9d3
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebp - 0x18], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x1001ae20
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x34], 0
je 0x1001aedf
cmp dword [ebp + 8], 0
jne 0x1001aeef
mov ecx, dword [esi + 0x30]
push edi
call fcn.1000c500
mov edi, dword [esi + 0x34]
push 0xffffffffffffffff
push 0
mov eax, dword [edi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, 0x100821c0
lock xadd dword [ecx], eax
mov ecx, dword [edi + 4]
push 0
push ecx
test eax, eax
je 0x1001ae95
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1001aeab
push method.boost::asio::detail::execution_context_service_base_class_boost::asio::detail::win_iocp_socket_service_class_boost::asio::ip::tcp__.virtual_8
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esi + 0x34]
test edi, edi
je 0x1001aec6
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
push edi
call fcn.1005ce33
add esp, 8
pop edi
mov dword [esi + 0x34], 0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005c9d3
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp + 8], 0
je 0x1001aeef
mov eax, dword [esi + 0x30]
xor ecx, ecx
add eax, 0x1c
xchg dword [eax], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1005c9d3
mov esp, ebp
pop ebp
ret 4
Function at 0x1001b960
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b4
mov eax, dword [0x1007d00c]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, 1
lock xadd dword [0x100821c4], eax
inc eax
mov ebx, 0x100821c8
cmp eax, 1
jne 0x1001b9a6
lea eax, [esp + 0x28]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [ebx], eax
cmp byte [ebp + 8], 0
je 0x1001ba31
xor esi, esi
lock xadd dword [ebx], esi
test esi, esi
je 0x1001ba31
mov ecx, dword [0x1007d080]
mov eax, dword [0x1007d084]
cmp ecx, 0x257edfd1
jne 0x1001b9d4
cmp eax, 0xb2ab117a
je 0x1001b9e3
cmp ecx, 0x257edfd0
jne 0x1001b9e7
cmp eax, 0xb2ab117a
jne 0x1001b9e7
mov al, 1
jmp 0x1001b9f7
mov eax, dword [0x1007d078]
mov ecx, 0x1007d078
push esi
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
add eax, 2
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0x1007d078
mov dword [esp + 0xc], str.c:workspacechromasdkRC3.36Corepackages_boost.1.84.0lib_nativeinclude_boost_asiodetailimplwinsock_init.ipp
mov dword [esp + 0x10], str.throw_on_error
mov dword [esp + 0x14], 0x48
mov dword [esp + 0x18], 0x1a
test al, 1
jne 0x1001ba4a
mov ecx, dword [esp + 0x1bc]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1005c9d3
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0xc]
mov edx, str.winsock
push eax
lea ecx, [esp + 0x20]
call fcn.1000a080
int3

Function at 0x1001d000
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x1001d031
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x1001d020
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x10029be0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100616fd
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
call fcn.1005d247
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ecx + 4], eax
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push ecx
push 0x1003b3a0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x10029c6c
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005c9d3
mov esp, ebp
pop ebp
ret 8
push 6
mov dword [edi], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x1002d120
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061ad8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1007d00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.boost::exception_detail::clone_base.0
mov ebx, dword [ebp + 8]
lea eax, [edi + 8]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [edi + 4], vtable.std::exception.0
push eax
movq qword [eax], xmm0
lea eax, [ebx + 8]
push eax
call dword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
mov dword [edi + 4], vtable.boost::system::system_error.0
add esp, 8
movq xmm0, qword [ebx + 0x10]
movq qword [edi + 0x10], xmm0
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x18], eax
lea esi, [edi + 0x1c]
mov byte [ebp - 4], 1
mov dword [esi], vtable.boost::exception.0
mov ecx, dword [ebx + 0x20]
mov dword [ebp + 8], esi
mov dword [esi + 4], ecx
test ecx, ecx
je 0x1002d1b0
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebx + 0x24]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x2c]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x30]
mov dword [esi + 0x14], eax
mov eax, edi
mov dword [edi], vtable.boost::wrapexcept_class_boost::system::system_error_.2.0
mov dword [edi + 4], vtable.boost::wrapexcept_class_boost::system::system_error_.1.0
mov dword [esi], vtable.boost::wrapexcept_class_boost::system::system_error_.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100386a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10062983
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1007d00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x14], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
lea edx, [esi + 0x40]
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x20]
mov byte [ebp - 4], 2
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x58], edi
mov dword [esi + 0x60], ecx
mov byte [esi + 0x64], 0
mov dword [esi + 0x68], eax
test byte [edi + 8], 8
je 0x1003878b
test cl, 0x10
jne 0x1003878b
mov al, 1
jmp 0x1003878d
xor al, al
mov byte [esi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x70], eax
mov ebx, dword [edx + 4]
mov ecx, ebx
mov edi, dword [edi + 0x18]
sar ecx, 3
cmp edi, ecx
jae 0x100387b1
lea ecx, [edi*8]
mov dword [edx + 4], ecx
jmp 0x100387e8
jbe 0x100387e8
mov eax, dword [edx + 8]
sar eax, 3
cmp edi, eax
jbe 0x100387c8
push ecx
push edi
mov ecx, edx
call fcn.10046e10
jmp 0x100387e8
sub edi, ecx
je 0x100387e5
lea eax, [edi*8]
push eax
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ebx, [ebx + edi*8]
lea edx, [esi + 0x40]
mov dword [edx + 4], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10042540
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, ecx
mov ecx, dword [ebp + 0x10]
push ebx
push esi
cmp byte [eax + 0xd], 0
lea ebx, [eax + 0x48]
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], ecx
jge 0x100425a2
mov eax, dword [ebx]
xor ecx, ecx
mov edi, dword [eax + 8]
mov dword [ebp - 8], edi
test esi, esi
je 0x10042593
nop
mov eax, ecx
and eax, 3
mov al, byte [ebp + eax - 8]
xor byte [edx + ecx], al
inc ecx
cmp ecx, esi
jb 0x10042580
mov eax, dword [ebx]
mov ecx, esi
and ecx, 3
je 0x1004259f
shl ecx, 3
ror edi, cl
mov dword [eax + 8], edi
mov eax, dword [ebx]
mov edi, dword [eax]
add edi, 0x38
mov ecx, dword [edi + 0x10]
lea eax, [edi + 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
mov eax, dword [edi + 0x14]
sub eax, ecx
cmp esi, eax
ja 0x100425f4
cmp dword [edi + 0x14], 0x10
lea eax, [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], edi
mov dword [ecx], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
jb 0x100425d9
mov eax, dword [edi]
mov dword [ebp - 8], eax
push esi
push edx
add eax, ecx
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add eax, esi
mov byte [eax + ecx], 0
jmp 0x10042608
push esi
push edx
mov byte [ebp - 8], 0
mov ecx, edi
push dword [ebp - 8]
push esi
call fcn.10029f90
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebx]
mov eax, dword [ebx]
cmp dword [eax + 0x50], 1
jne 0x1004268c
cmp dword [edi + 0x14], 0x10
jb 0x10042625
mov edx, dword [ebp - 0x10]
mov eax, dword [edi]
mov edi, eax
mov edx, dword [edx]
add edx, eax
jmp 0x1004262c
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
add edx, edi
lea eax, [ecx + edi]
cmp eax, edx
je 0x1004268c
nop dword [eax]
nop word [eax + eax]
cmp dword [ebx + 0xc], 0
movzx edi, byte [eax]
movzx ecx, byte [edi + 0x1006dcc0]
mov dword [ebp - 8], ecx
je 0x10042660
mov ecx, dword [ebx + 0x10]
and edi, 0x3f
shl ecx, 6
or edi, ecx
jmp 0x10042669
mov esi, 0xff
sar esi, cl
and edi, esi
mov esi, dword [ebp - 8]
mov dword [ebx + 0x10], edi
mov ecx, dword [ebx + 0xc]
add ecx, ecx
movzx ecx, byte [esi + ecx*8 + 0x1006ddc0]
mov dword [ebx + 0xc], ecx
cmp ecx, 1
je 0x100426a7
inc eax
cmp eax, edx
jne 0x10042640
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
sub dword [eax + 0x18], esi
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005c9d3
mov esp, ebp
pop ebp
ret 0xc
call fcn.10011060
mov ecx, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword [ecx + 4], eax
xor eax, eax
mov dword [ecx], 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005c9d3
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10052310
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10064ba5
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0x28]
add eax, 0x38
push eax
call fcn.1001d6b0
sub esp, 0x18
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], esp
mov ecx, esp
push eax
call fcn.1001d6b0
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x34]
push dword [eax + 0x908]
add eax, 0x90c
sub esp, 0x18
mov ecx, esp
push eax
call fcn.1001d6b0
mov byte [ebp - 4], 0
mov ecx, dword [esi + 0x30]
call fcn.10017330
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x100523c1
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100523b7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100523b7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005ce33
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005c9d3
mov esp, ebp
pop ebp
ret
Function at 0x100588d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006546d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1007d00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [0x100821a4]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov edi, dword [eax]
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x14], esi
mov ebx, dword [eax + ecx*4]
cmp byte [ebx + 8], 0
jne 0x10058926
call fcn.1005d36f
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x1005893b
cmp dword [eax], edi
je 0x1005895b
mov eax, dword [eax + 8]
test eax, eax
jne 0x10058930
cmp byte [ebx + 8], 0
mov dword [ebp - 0x24], esi
jne 0x1005894c
call fcn.1005d36f
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x100589ad
mov ecx, dword [eax + 4]
jmp 0x100589af
cmp dword [eax + 4], 0
je 0x1005893b
lea eax, [esi + 0x40]
mov dword [ebp - 4], 0
push eax
sub esp, 0x28
mov edi, esp
mov dword [ebp - 0x10], edi
mov dword [edi + 0x24], 0
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x1005898e
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [edi + 0x24], eax
mov byte [ebp - 4], 0
mov ecx, dword [esi + 0x38]
mov eax, dword [esi]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor ecx, ecx
push 8
push dword [ebp - 0x10]
mov edx, 0x78
call fcn.100282e0
add esp, 8
mov ebx, eax
mov dword [ebp - 4], 2
lea edi, [esi + 8]
mov dword [ebx + 0x14], 0
lea ecx, [ebx + 0x28]
mov dword [ebx + 0x18], 0x10059000
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x1c], 0
mov eax, dword [esi]
push edi
mov dword [ebx + 0x20], eax
call fcn.10023f40
mov eax, dword [edi + 0x30]
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 0x58], eax
mov eax, dword [ebp - 0x14]
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
movq xmm0, qword [eax + 0x40]
movq qword [ebx + 0x60], xmm0
mov eax, dword [eax + 0x48]
mov dword [ebx + 0x68], eax
mov dword [ebp - 0x20], 0
call fcn.1000e1f0
lea ecx, [ebp - 0x24]
call fcn.10058f50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10058a70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100654ad
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1007d00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [0x100821a4]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov edi, dword [eax]
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x14], esi
mov ebx, dword [eax + ecx*4]
cmp byte [ebx + 8], 0
jne 0x10058ac6
call fcn.1005d36f
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x10058adb
cmp dword [eax], edi
je 0x10058afb
mov eax, dword [eax + 8]
test eax, eax
jne 0x10058ad0
cmp byte [ebx + 8], 0
mov dword [ebp - 0x24], esi
jne 0x10058aec
call fcn.1005d36f
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x10058b4d
mov ecx, dword [eax + 4]
jmp 0x10058b4f
cmp dword [eax + 4], 0
je 0x10058adb
lea eax, [esi + 0x40]
mov dword [ebp - 4], 0
push eax
sub esp, 0x28
mov edi, esp
mov dword [ebp - 0x10], edi
mov dword [edi + 0x24], 0
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x10058b2e
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [edi + 0x24], eax
mov byte [ebp - 4], 0
mov ecx, dword [esi + 0x38]
mov eax, dword [esi]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor ecx, ecx
push 8
push dword [ebp - 0x10]
mov edx, 0x78
call fcn.100282e0
add esp, 8
mov ebx, eax
mov dword [ebp - 4], 2
lea edi, [esi + 8]
mov dword [ebx + 0x14], 0
lea ecx, [ebx + 0x28]
mov dword [ebx + 0x18], 0x10058e20
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x1c], 0
mov eax, dword [esi]
push edi
mov dword [ebx + 0x20], eax
call fcn.10023f40
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
mov eax, dword [edi + 0x30]
mov dword [ebx + 0x58], eax
mov eax, dword [edi + 0x34]
mov dword [ebx + 0x5c], eax
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
movq xmm0, qword [edx + 0x40]
movq qword [ebx + 0x60], xmm0
mov eax, dword [edx + 0x48]
push ebx
push dword [ebp - 0x18]
mov dword [ebx + 0x68], eax
mov eax, dword [edx + 0x4c]
mov dword [ebx + 0x6c], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
call fcn.1000e1f0
lea ecx, [ebp - 0x24]
call fcn.10058260
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1005b0e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1005b13b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1005b13b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1005b128
cmp esi, edx
jae 0x1005b13b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x1005b116
cmp esi, edx
jae 0x1005b13b
xor eax, eax
cmp word [esi], ax
pop edi
cmove esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x1005bd10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10065acd
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1007d00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0x30]
push esi
push str.WSEndpoint::RegisterFnCallback
push str._WSEndpoint___s__type___d
push 0x61
push str.c:workspacechromasdkRC3.36CoreChromaConnectServerWSEndpoint.cpp
push 3
mov dword [ebp - 4], 0
call fcn.10012170
push eax
call fcn.10012510
add esp, 0x1c
sub esi, 0
je 0x1005bd7a
sub esi, 1
jne 0x1005bde1
lea eax, [ebp + 8]
push eax
lea ecx, [edi + 0x50]
call fcn.1001af90
jmp 0x1005bde1
lea eax, [ebp + 8]
push eax
lea ecx, [edi + 0x28]
call fcn.1001af90
push str.WSEndpoint::CreatePingScheduler
push str._WSEndpoint___s
push 0x78
push str.c:workspacechromasdkRC3.36CoreChromaConnectServerWSEndpoint.cpp
push 3
call fcn.10012170
push eax
call fcn.10012510
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
add esp, 0x18
push 0
push 0
push 1
push 0
call esi
push 0
push 0
push 1
push 0
mov dword [edi + 0x84], eax
call esi
push 0
push 0
push edi
push 0x1005bd00
push 0
push 0
mov dword [edi + 0x7c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x78], eax
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x1005bdf9
mov edx, dword [ecx]
lea eax, [ebp + 8]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x2c
Function at 0x10001040
Capabilities:
Create thread
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x200
cmp eax, 1
jne 0x10001156
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
push str.Bot:Main_dll_Load
call esi
push str.DLL_PROCESS_ATTACH
call esi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x210]
push 0xff
stosw word es:[edi], ax
lea eax, [esp + 0x10]
mov dword [0x100093d0], ebp
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll__mbslwr]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
rep stosd dword es:[edi], eax
add esp, 4
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea edx, [esp + 0xc]
push eax
push edx
lea eax, [esp + 0x114]
push str.NSP_Dll_Main_ProcessName___s__ProcessID___d_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x10c]
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push ebp
push 0x10001190
push 0
push 0
call edi
test eax, eax
mov dword [0x100093d4], eax
jne 0x10001117
push 0x10009030
call esi
push 0
push 0
push 0
push 0
mov dword [0x100093d8], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0x10001500
push 0
push 0
mov dword [0x10009390], eax
call edi
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x200
ret 0xc
test eax, eax
jne 0x10001178
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [0x10009390]
mov dword [0x100093d8], 1
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 1
add esp, 0x200
ret 0xc
Function at 0x10002e90
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
mov eax, 0x55555556
push esi
lea ecx, [ebp*4]
imul ecx
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 4]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov esi, eax
test eax, eax
jne 0x10002ec3
pop esi
or eax, 0xffffffff
pop ebp
ret
xor ecx, ecx
push edi
test ebp, ebp
jle 0x10002f50
mov edi, dword [esp + 0x10]
push ebx
xor edx, edx
mov dl, byte [ecx + edi]
inc ecx
shl edx, 8
cmp ecx, ebp
jge 0x10002ee7
xor ebx, ebx
mov bl, byte [ecx + edi]
add edx, ebx
inc ecx
shl edx, 8
cmp ecx, ebp
jge 0x10002ef6
xor ebx, ebx
mov bl, byte [ecx + edi]
add edx, ebx
mov ebx, edx
inc ecx
sar ebx, 0x12
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], bl
mov ebx, edx
sar ebx, 0xc
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], bl
mov ebx, edx
sar ebx, 6
and ebx, 0x3f
and edx, 0x3f
cmp ecx, ebp
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], bl
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], dl
jle 0x10002f3d
mov byte [esi + 3], 0x3d
lea edx, [ebp + 1]
cmp ecx, edx
jle 0x10002f48
mov byte [esi + 2], 0x3d
add esi, 4
cmp ecx, ebp
jl 0x10002ed3
pop ebx
mov ecx, dword [esp + 0x18]
mov byte [esi], 0
mov edi, eax
mov dword [ecx], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
pop esi
mov eax, ecx
pop ebp
ret