joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b7480
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x18]
mov ebx, ecx
mov dword [esp + 0xc], 0
add dword [edi + 0x10], eax
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 4]
mov ebp, dword [edi + 8]
mov dword [esp + 0x10], ecx
cmp eax, dword [edi + 0xc]
jge 0x100b74e0
push 0
mov dword [edi + 0x18], 0
add dword [ebp + 4], eax
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 0x10]
push ecx
mov dword [ebp], eax
lea eax, [esp + 0x14]
push 0
push eax
push 1
push ebp
push dword [edi + 0x14]
mov dword [esp + 0x34], 0
call dword [sym.imp.WS2_32.dll_WSASend]
jmp 0x100b752f
push esi
push 0x1000
lea esi, [edi + 0x1c]
mov dword [edi + 0x18], 1
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 8]
add esp, 0xc
mov dword [eax + 4], esi
mov eax, dword [edi + 8]
push 0
push dword [esp + 0x18]
mov dword [eax], 0x1000
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], 0
push eax
push 1
push ebp
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_WSARecv]
pop esi
cmp eax, 0xffffffff
jne 0x100b7549
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x100b7549
push edi
mov ecx, ebx
call sym.WMCommon.dll_protected:_void___thiscall_WM::GMIocpServer::RemoveFromClientListAndFreeMemory_class_WM::GMClientContext__
pop edi
pop ebp
pop ebx
add esp, 8
ret 8

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

Disassembly:
mov eax, 0x1004
call fcn.1006fb30
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1014]
mov ebx, ecx
push edi
mov dword [esp + 0x10], 0
mov ecx, dword [esi + 8]
lea edx, [esi + 0x1c]
mov ebp, dword [esi + 4]
mov al, byte [edx]
lea edx, [edx + 1]
test al, al
jne 0x100b7588
mov eax, dword [esp + 0x101c]
push 0
push ebp
mov dword [esi + 0xc], eax
push 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x10], 0
mov dword [ecx], eax
lea eax, [esp + 0x1c]
push eax
push 1
push ecx
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x100b75db
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x100b75db
push esi
mov ecx, ebx
call sym.WMCommon.dll_protected:_void___thiscall_WM::GMIocpServer::RemoveFromClientListAndFreeMemory_class_WM::GMClientContext__
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret 8
Function at 0x100b7640
Capabilities:
Create tcp socket
Create thread
Create udp socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x18
push esi
push edi
push 1
push 0
push 0
push 0
push 1
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x100b7677
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov cx, word [ebp + 0xc]
xorps xmm0, xmm0
mov eax, 2
movaps xmmword [esp + 0x10], xmm0
mov word [esp + 0x10], ax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x14], eax
mov ax, word [ebp + 8]
movzx edi, ax
cmp ax, cx
ja 0x100b76cb
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
lea eax, [esp + 0x10]
push 0x10
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_bind]
mov cx, word [ebp + 0xc]
cmp eax, 0xffffffff
jne 0x100b76cb
inc edi
cmp di, cx
jbe 0x100b76a0
mov word [esi + 8], di
cmp di, cx
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
ja 0x100b76f9
push accept
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x100b770f
push dword [esi + 4]
call edi
mov dword [esi + 4], 0
push dword [esi + 4]
call edi
mov dword [esi + 4], 0
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 0x18], eax
test eax, eax
je 0x100b76f9
push 8
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x100b7738
push dword [esi + 0x18]
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
jmp 0x100b76f9
lea eax, [esp + 0xc]
push eax
push 0
push esi
push sym.WMCommon.dll_private:_static_unsigned_long_int___stdcall_WM::GMIocpServer::AcceptThread_void__
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x14], eax
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x100b7840
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100b7979
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ebx, [esi + 0x18]
nop dword [eax + eax]
push 0
push 0x64
push 0
push ebx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0x102
je 0x100b7966
lea eax, [esp + 0x2c]
push eax
push dword [ebx]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test byte [esp + 0x2c], 8
je 0x100b7966
cmp dword [esp + 0x3c], 0
jne 0x100b7966
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x10
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100b7961
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str._nClient_connected_from:__s
push esi
call sym.WMCommon.dll_protected:_void___cdecl_WM::GMIocpServer::DebugTrace_char_const__
mov eax, dword [esi]
add esp, 0xc
mov ecx, esi
push ebx
call dword [eax + 4]
mov edi, eax
mov ecx, esi
push edi
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], ebx
call sym.WMCommon.dll_protected:_void___thiscall_WM::GMIocpServer::AddToClientList_class_WM::GMClientContext__
push 0
push edi
push dword [esi + 0x20]
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
jne 0x100b7928
push edi
mov ecx, esi
call sym.WMCommon.dll_protected:_void___thiscall_WM::GMIocpServer::RemoveFromClientListAndFreeMemory_class_WM::GMClientContext__
jmp 0x100b7963
push 0
push dword [edi + 4]
lea eax, [esp + 0x1c]
mov dword [edi + 0x18], 1
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0
push eax
push 1
push dword [edi + 8]
mov dword [esp + 0x30], 0
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x100b7963
call ebp
lea ebx, [esi + 0x18]
push 0
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100b7870
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100b7b30
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x10
push eax
lea eax, [esp + 0x1c]
mov edi, ecx
push eax
push dword [esp + 0x34]
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100b7bf1
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str._nClient_connected_from:__s
push edi
call sym.WMCommon.dll_protected:_void___cdecl_WM::GMIocpServer::DebugTrace_char_const__
mov eax, dword [edi]
add esp, 0xc
mov ecx, edi
push ebx
call dword [eax + 4]
mov esi, eax
mov ecx, edi
push esi
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], ebx
call sym.WMCommon.dll_protected:_void___thiscall_WM::GMIocpServer::AddToClientList_class_WM::GMClientContext__
push 0
push esi
push dword [edi + 0x20]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
jne 0x100b7bb8
push esi
mov ecx, edi
call sym.WMCommon.dll_protected:_void___thiscall_WM::GMIocpServer::RemoveFromClientListAndFreeMemory_class_WM::GMClientContext__
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 4
push 0
push dword [esi + 4]
lea eax, [esp + 0x34]
mov dword [esi + 0x18], 1
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x38], 0
push eax
push 1
push dword [esi + 8]
mov dword [esp + 0x2c], 0
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x100b7bf7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 4

Function at 0x100b7ce0
Capabilities:
Create thread
Get system information on windows

Disassembly:
sub esp, 0x28
push esi
push 0
push 0
push 0
push 0xffffffffffffffff
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x20], eax
test eax, eax
jne 0x100b7d0a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor al, al
pop esi
add esp, 0x28
ret 4
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x1c]
mov ecx, 1
mov edx, dword [esp + 0x30]
test eax, eax
cmove eax, ecx
test edx, edx
jne 0x100b7d2e
lea edx, [eax + eax]
mov dword [esi + 0xc], edx
xor ecx, ecx
mov eax, edx
mov edx, 4
mul edx
push edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1006e70d
xor edi, edi
mov dword [esi + 0x10], eax
add esp, 4
cmp dword [esi + 0xc], edi
jle 0x100b7d80
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
nop
lea eax, [esp + 0xc]
push eax
push 0
push esi
push sym.WMCommon.dll_private:_static_unsigned_long_int___stdcall_WM::GMIocpServer::WorkerThread_void__
push 0
push 0
call ebx
mov ecx, dword [esi + 0x10]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, dword [esi + 0xc]
jl 0x100b7d60
pop ebx
pop edi
mov al, 1
pop esi
add esp, 0x28
ret 4
Function at 0x100bbe20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, ecx
push edi
test esi, esi
jle 0x100bbe52
mov ebp, dword [sym.imp.WS2_32.dll_recv]
mov edi, dword [esp + 0x14]
push 0
push esi
push edi
push dword [ebx + 0x14]
call ebp
cmp eax, 0xffffffff
je 0x100bbe5b
test eax, eax
je 0x100bbe5b
sub esi, eax
add edi, eax
test esi, esi
jg 0x100bbe38
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 8

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

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, ecx
push edi
test esi, esi
jle 0x100bbea2
mov ebp, dword [sym.imp.WS2_32.dll_send]
mov edi, dword [esp + 0x14]
push 0
push esi
push edi
push dword [ebx + 0x14]
call ebp
cmp eax, 0xffffffff
je 0x100bbeab
test eax, eax
je 0x100bbeab
sub esi, eax
add edi, eax
test esi, esi
jg 0x100bbe88
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 8

Function at 0x100bbec0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
push ecx
push edi
push 6
push 1
push 2
mov edi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0x14], eax
cmp eax, 0xffffffff
je 0x100bbf50
push esi
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [esp + 8]
push 4
push ecx
push 0x1005
push 0xffff
push eax
mov dword [esp + 0x1c], 0x1d4c0
call esi
push 4
lea eax, [esp + 0xc]
push eax
push 0x1006
push 0xffff
push dword [edi + 0x14]
call esi
push dword [esp + 0x10]
mov eax, 2
lea esi, [edi + 4]
mov word [esi], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10267f7c
mov word [esi + 2], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x10
push esi
push dword [esi + 0x10]
mov dword [esi + 4], eax
call dword [sym.imp.WS2_32.dll_connect]
pop esi
test eax, eax
jne 0x100bbf50
mov al, 1
pop edi
pop ecx
ret 4
xor al, al
pop edi
pop ecx
ret 4
Function at 0x100c1970
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1024e548
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], reloc.WS2_32.dll_accept
xor eax, eax
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 7
mov word [esi + 0x1c], ax
push dword [ebp + 8]
mov byte [ebp - 4], 2
mov byte [esi + 0x34], al
call sym.WMCommon.dll_private:_bool___thiscall_WM::GMRegKey::ParseRegFullPath_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x100c2150
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1024e609
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x1c], vtable.WM::GMFile.0
mov dword [ebp - 0x18], 0xffffffff
push 0x80
push 3
push 1
push accept
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call sym.WMCommon.dll_public:_bool___thiscall_WM::GMFile::Create_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int__unsigned_int__unsigned_int__unsigned_int_
test al, al
je 0x100c2225
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x100c2228
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100c21c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100c2225
mov ecx, dword [ebp - 0x14]
xor esi, esi
add esi, edi
mov eax, esi
adc ecx, 0
or eax, ecx
je 0x100c2225
mov edi, dword [ebp + 0xc]
lea eax, [esi + 3]
push eax
mov ecx, edi
call fcn.10020ab0
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x1c]
cmp esi, eax
mov dword [ebp - 0x10], 0
cmovbe eax, esi
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x10]
push eax
push esi
push dword [edi + 8]
call sym.WMCommon.dll_public_virtual:_bool___thiscall_WM::GMFile::Read_void___unsigned_int__unsigned_int__
test al, al
je 0x100c2225
cmp dword [ebp - 0x10], esi
jne 0x100c2225
mov eax, dword [edi + 8]
xor ecx, ecx
mov bl, 1
mov word [eax + esi], cx
mov byte [eax + esi + 2], cl
mov eax, dword [ebp - 0x18]
jmp 0x100c222a
mov eax, dword [ebp - 0x18]
xor bl, bl
mov dword [ebp - 0x1c], vtable.WM::GMFile.0
cmp eax, 0xffffffff
je 0x100c223d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100c23d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1024e640
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
mov dword [edi], vtable.WM::GMRegParser.0
mov dword [edi + 4], vtable.WM::GMBuffer_unsigned_char_.0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
lea esi, [edi + 0x14]
mov byte [ebp - 4], 1
push 8
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.1006e6a7
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword [esi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov eax, edi
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x100c51c0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x30]
test eax, eax
je 0x100c51f0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x100c51e9
test eax, eax
je 0x100c51e9
push dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, esi
call sym.WMCommon.dll_private:_void___thiscall_WM::GMProcessShell::CloseAllHandle_void_
pop esi
ret 4
Function at 0x100c5580
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1024e91c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x440
push esi
push edi
push 0x400
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x10], 0
mov edi, ecx
push 0
push eax
mov dword [ebp - 0x38], edi
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov esi, 0xf
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x30], al
mov dword [ebp - 4], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x4c]
push eax
push dword [edi + 0x3c]
mov dword [ebp - 0x4c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
nop dword [eax + eax]
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x10]
push eax
push 0x400
lea eax, [ebp - 0x44c]
push eax
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
push 0
test eax, eax
je 0x100c574c
cmp dword [ebp - 0x14], 0
je 0x100c574c
lea eax, [ebp - 0x10]
push eax
push 0x400
lea eax, [ebp - 0x44c]
push eax
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100c5701
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x100c56cd
mov ecx, dword [ebp - 0x18]
mov eax, esi
sub eax, ecx
push edi
cmp edi, eax
ja 0x100c5697
lea eax, [ecx + edi]
cmp esi, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
lea esi, [eax + ecx]
lea eax, [ebp - 0x44c]
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x100c56ae
lea eax, [ebp - 0x44c]
mov byte [ebp - 0x34], 0
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
push edi
call fcn.1001c8e0
mov eax, dword [ebp - 0x10]
cmp eax, 0x400
jb 0x100c56cd
test eax, eax
je 0x100c56cd
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
jmp 0x100c5600
mov eax, dword [ebp + 8]
movups xmm0, xmmword [ebp - 0x30]
pop edi
pop esi
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [eax + 0x10], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
push 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
push 0x10265063
mov ecx, edi
call fcn.1001c2f0
cmp esi, 0x10
jb 0x100c576c
mov ecx, dword [ebp - 0x30]
inc esi
mov eax, ecx
cmp esi, 0x1000
jb 0x100c5762
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100c5762
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov edi, dword [ebp + 8]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
jmp 0x100c5717
push esi
push ecx
call fcn.1006e6d7
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x100c5780
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1024e92e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x440
push esi
push edi
push 0x400
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x10], 0
mov edi, ecx
push 0
push eax
mov dword [ebp - 0x38], edi
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov esi, 0xf
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x30], al
mov dword [ebp - 4], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x4c]
push eax
push dword [edi + 0x38]
mov dword [ebp - 0x4c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
nop dword [eax + eax]
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x10]
push eax
push 0x400
lea eax, [ebp - 0x44c]
push eax
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
push 0
test eax, eax
je 0x100c594c
cmp dword [ebp - 0x14], 0
je 0x100c594c
lea eax, [ebp - 0x10]
push eax
push 0x400
lea eax, [ebp - 0x44c]
push eax
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100c5901
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x100c58cd
mov ecx, dword [ebp - 0x18]
mov eax, esi
sub eax, ecx
push edi
cmp edi, eax
ja 0x100c5897
lea eax, [ecx + edi]
cmp esi, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
lea esi, [eax + ecx]
lea eax, [ebp - 0x44c]
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x100c58ae
lea eax, [ebp - 0x44c]
mov byte [ebp - 0x34], 0
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
push edi
call fcn.1001c8e0
mov eax, dword [ebp - 0x10]
cmp eax, 0x400
jb 0x100c58cd
test eax, eax
je 0x100c58cd
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
jmp 0x100c5800
mov eax, dword [ebp + 8]
movups xmm0, xmmword [ebp - 0x30]
pop edi
pop esi
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [eax + 0x10], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
push 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
push 0x10265063
mov ecx, edi
call fcn.1001c2f0
cmp esi, 0x10
jb 0x100c596c
mov ecx, dword [ebp - 0x30]
inc esi
mov eax, ecx
cmp esi, 0x1000
jb 0x100c5962
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100c5962
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov edi, dword [ebp + 8]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
jmp 0x100c5917
push esi
push ecx
call fcn.1006e6d7
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x100c5980
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x30]
test eax, eax
je 0x100c59ae
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x100c59a7
test eax, eax
je 0x100c59a7
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, esi
call sym.WMCommon.dll_private:_void___thiscall_WM::GMProcessShell::CloseAllHandle_void_
lea ecx, [esi + 0x18]
call fcn.1001a5a0
mov ecx, esi
pop esi
jmp fcn.1001a5a0

Function at 0x100c5dc0
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0x208
lea eax, [esp]
push 0x104
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x218]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x100c5de8
mov eax, dword [eax]
push esi
push 0
push 0x80
push 3
push 0
push 3
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100c5e1c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
add esp, 0x208
ret 8
push ebx
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x100c5f21
test eax, eax
je 0x100c5f21
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x100c5f21
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x100c5f03
cmp dword [edi], 0x4c
jne 0x100c5efc
cmp dword [edi + 4], 0x21401
jne 0x100c5efc
cmp dword [edi + 8], 0
jne 0x100c5efc
cmp dword [edi + 0xc], 0xc0
jne 0x100c5efc
cmp dword [edi + 0x10], 0x46000000
jne 0x100c5efc
test byte [edi + 0x14], 1
je 0x100c5efc
lea eax, [esp + 0xc]
push eax
lea eax, [edi + 0x4e]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x100c5efc
lea ecx, [esp + 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100c5eb6
sub ecx, edx
lea eax, [esp + 0xc]
sar ecx, 1
push ecx
mov ecx, dword [esp + 0x220]
push eax
call fcn.1001a600
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call edi
test esi, esi
je 0x100c5eee
push esi
call edi
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x208
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call edi
test esi, esi
je 0x100c5f2c
push esi
call edi
pop edi
pop ebx
xor al, al
pop esi
add esp, 0x208
ret 8
test esi, esi
je 0x100c5f2c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
xor al, al
pop esi
add esp, 0x208
ret 8