joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b3f0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x47ee60
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4b445c]
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x40b45b
push str.local
lea ecx, [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp]
push edx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov dword [ebp - 0x18], eax
push eax
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
add esi, 0x1508
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.0045e17e
add ebp, 0x108
mov esp, ebp
pop ebp
ret

Function at 0x40cbb0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x47f1a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x4b445c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
push ecx
mov dword [esp + 0x10], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00401ab0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret
Function at 0x40cc20
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f1e0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4b445c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, 1
mov dword [ebp - 4], esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x40cd45
lea eax, [ebp - 0x14]
push eax
push 0x49b7c8
push esi
push 0
push 0x49b7d8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40cd3f
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push 0x49b7f8
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x40cd34
call dword [0x4b5b14]
mov ebx, eax
mov eax, dword [ebp + 0xc]
cmp dword [eax - 4], esi
jle 0x40cccb
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00402140
mov eax, dword [ebp + 0xc]
test eax, eax
mov edi, eax
je 0x40cce5
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 1
cmp esi, 0x3fffffff
jle 0x40cce9
xor eax, eax
jmp 0x40ccfc
lea eax, [esi + esi]
call fcn.0045e8d0
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.00401090
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
push 0
push eax
mov eax, dword [edx + 0x18]
push ecx
call eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401ab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401ab0
mov al, 1
jmp 0x40cd62
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401ab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401ab0
xor al, al
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045e17e
mov esp, ebp
pop ebp
ret
Function at 0x40e510
Capabilities:
Access peb ldr_data
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x47f662
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4b445c]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push esi
mov eax, dword [0x4b445c]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x22c], ebx
mov esi, dword [esp + 0x234]
push 0x48a0f8
mov ecx, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
call fcn.00407010
mov dword [esp + 0x22c], ebx
push 0x103
lea eax, [esp + 0x121]
push ebx
push eax
mov dword [esp + 0x1c], 1
mov byte [esp + 0x128], bl
call fcn.0045eb50
push 0x103
lea ecx, [esp + 0x29]
push ebx
push ecx
mov byte [esp + 0x30], bl
call fcn.0045eb50
mov eax, dword [esp + 0x250]
add esp, 0x18
lea edx, [esp + 0xc]
push edx
push eax
push ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x40e5f8
lea ecx, [esp + 0x11c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x40e5f8
push 0x104
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [esp + 0x18]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40e600
sub eax, edx
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00402320
mov eax, esi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0045e17e
add esp, 0x224
ret
Function at 0x40e640
Capabilities:
Enumerate process modules

Disassembly:
push 0xffffffffffffffff
push 0x47f69b
mov eax, dword fs:[0]
push eax
mov eax, 0x211c
call fcn.0045f370
mov eax, dword [0x4b445c]
xor eax, esp
mov dword [esp + 0x2118], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b445c]
xor eax, esp
push eax
lea eax, [esp + 0x2130]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x2144]
mov eax, dword [esp + 0x2140]
mov edi, dword [esp + 0x2148]
push 0xffffffffffffffff
mov dword [esp + 0x20], ecx
xor ebx, ebx
push ebx
mov ecx, edi
mov dword [esp + 0x28], eax
call fcn.00457dca
lea edx, [esp + 0x18]
push edx
push 0x1000
lea eax, [esp + 0x1030]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x40e79a
mov ecx, dword [esp + 0x18]
shr ecx, 2
xor ebp, ebp
test ecx, ecx
jle 0x40e798
mov edx, dword [esp + ebp*4 + 0x1028]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea eax, [esp + 0x24]
push eax
push 0x1000
lea ecx, [esp + 0x30]
push ecx
push esi
call sub.PSAPI.DLL_EnumProcessModules
mov eax, dword [esp + 0x28]
push 0x104
lea edx, [esp + 0x202c]
push edx
push eax
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x202c]
push edx
call fcn.0045f4e0
add esp, 8
test eax, eax
je 0x40e786
lea eax, [esp + 0x2028]
push eax
lea ecx, [esp + 0x18]
call fcn.00407010
mov dword [esp + 0x2138], 0
mov eax, dword [edi + 8]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, edi
call fcn.00458015
mov edx, dword [esp + ebp*4 + 0x1028]
mov eax, dword [esp + 0x1c]
mov dword [eax + ebx*4], edx
add ebx, 1
mov dword [esp + 0x2138], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00401ab0
mov ecx, dword [esp + 0x18]
add ebp, 1
shr ecx, 2
cmp ebp, ecx
jl 0x40e6d8
mov eax, ebx
mov ecx, dword [esp + 0x2130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2118]
xor ecx, esp
call fcn.0045e17e
add esp, 0x2128
ret 0xc
Function at 0x40f8c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x47f8b8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4b445c]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x20], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [esi + 0x1300]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407010
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 0xc], ebx
je 0x40fa73
lea edx, [ebp - 0x1c]
push edx
call fcn.0040bc30
sub esp, 8
mov dword [ebp - 0x24], esp
mov eax, esp
mov dword [eax], 0xf
mov dword [eax + 4], ebx
mov eax, dword [esi + 0x3c3c]
mov ecx, dword [esi + 0x3c40]
mov edx, dword [ebp - 0x1c]
sub edx, eax
mov eax, dword [ebp - 0x18]
sbb eax, ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x1c]
call fcn.0040a620
cmp al, bl
jne 0x40fa3d
cmp byte [esi + 0x3c44], bl
jne 0x40fa3d
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0040bc30
mov edx, dword [eax]
mov dword [esi + 0x3c3c], edx
mov eax, dword [eax + 4]
mov dword [esi + 0x3c40], eax
mov byte [esi + 0x3c44], 1
mov ecx, dword [ebp - 0x14]
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
cmp edi, ebx
je 0x40fa6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
cmp eax, 0xb7
jne 0x40fa4c
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0x40c], bl
jne 0x40fa02
mov edx, dword [0x4b5c34]
push edx
push str.Local_Remote_make_you_see_many_windows_of_your_desktop.
lea eax, [ebp]
push eax
push str.LocalRemoteMsg
lea ecx, [esi + 0x1814]
call fcn.00423240
lea ecx, [esi + 0x1e34]
push ecx
lea edx, [ebp]
push edx
jmp 0x40fa2c
mov eax, dword [0x4b5c34]
push eax
push str.Local_Remote_make_you_see_many_windows_of_your_desktop.
lea ecx, [ebp]
push ecx
push str.LocalRemoteControlMsg
lea ecx, [esi + 0x1814]
call fcn.00423240
lea edx, [esi + 0x1e34]
push edx
lea eax, [ebp]
push eax
lea ecx, [esi + 0x4f8]
call fcn.004078f0
mov byte [esi + 0x3c44], bl
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00401ab0
mov al, 1
jmp 0x40fab5
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00401ab0
mov dword [ebp - 4], 0xffffffff
jmp 0x40faad
mov byte [esi + 0x3c44], bl
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00401ab0
jmp 0x40fab3
mov byte [esi + 0x3c44], bl
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.0045e17e
add ebp, 0x404
mov esp, ebp
pop ebp
ret 4
Function at 0x411260
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47fb41
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4b445c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x60], edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x5c], esi
xor eax, eax
mov dword [ebp - 0x50], eax
mov ebx, 1
mov dword [ebp - 4], ebx
mov dword [ebp - 0x54], eax
push 0x48a0f8
lea ecx, [ebp - 0x4c]
call fcn.00407010
mov byte [ebp - 4], 2
lea eax, [ebp - 0x54]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftInternet_Explorer
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41130f
mov eax, dword [edi + 0x27f0]
test eax, eax
je 0x4112f1
push str.GetIeVersion_faile___RegOpenKeyEx.
push eax
call fcn.00430fd0
add esp, 8
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, esi
call fcn.00408c10
mov dword [ebp - 0x50], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4c]
call fcn.00401ab0
jmp 0x4113c7
mov dword [ebp - 0x58], 0x32
mov dword [ebp - 0x64], ebx
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x64]
push ecx
push 0
push str.Version
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x411377
mov eax, dword [edi + 0x27f0]
test eax, eax
je 0x411352
push str.GetIeVersion_faile___RegQueryValueEx.
push eax
call fcn.00430fd0
add esp, 8
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, esi
call fcn.00408c10
mov dword [ebp - 0x50], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4c]
call fcn.00401ab0
jmp 0x4113c7
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x4c]
call fcn.004023f0
jmp 0x411352
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045e17e
mov esp, ebp
pop ebp
ret 4
Function at 0x4159e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x480079
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4b445c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.00401a40
xor edi, edi
mov dword [esp + 0x18], edi
lea ecx, [esi + 4]
call fcn.00401a40
mov byte [esp + 0x18], 1
mov dword [esi + 0x2c], edi
mov byte [esp + 0x18], 2
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
mov byte [esp + 0x18], 3
push edi
mov ecx, esi
call fcn.00439e50
mov dword [esi + 0x28], edi
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x415a60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4800c9
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4b445c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], 2
lea ecx, [esi + 0x30]
call fcn.00415800
mov byte [esp + 0x18], 1
cmp dword [esi + 0x2c], 0
lea edi, [esi + 0x2c]
je 0x415aae
mov ecx, edi
call fcn.00415970
mov dword [edi], 0
mov byte [esp + 0x18], 0
lea ecx, [esi + 4]
call fcn.00401ab0
mov dword [esp + 0x18], 0xffffffff
mov ecx, esi
call fcn.00401ab0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x4167a0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x4167e9
push edi
mov edi, dword [esp + 0xc]
push edi
push eax
mov byte [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4167d3
cmp edi, 0xffffffff
je 0x4167d3
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov byte [esi + 4], 0
pop edi
pop esi
ret 4
Function at 0x417bd0
Capabilities:
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x764]
sub esp, 0x764
push 0xffffffffffffffff
push 0x480776
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4b445c]
xor eax, ebp
mov dword [ebp + 0x760], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x18], edi
mov esi, dword [ebp + 0x76c]
xor ebx, ebx
cmp dword [edi + 8], ebx
jg 0x417e21
mov dword [edi + 8], ebx
mov byte [ebp - 0x11], bl
mov dword [ebp - 4], ebx
mov al, byte [0x4b5cf0]
mov byte [esi + 0x88], al
push 0x4b5cfa
lea ecx, [esi + 0x89]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [0x4b5d3c]
mov dword [esi + 0x10c], edx
mov eax, dword [0x4bae60]
cmp eax, ebx
je 0x417c6b
push str.CTcpMultiplexer_:_Set_proxy_info...
push eax
call fcn.00430fd0
add esp, 8
lea ecx, [ebp + 0x450]
call fcn.004233e0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x450]
call fcn.00423230
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebx
lea ecx, [ebp + 0x450]
cmp byte [esi + 0x1a0], 0
je 0x417ca3
push str.RTSServer.ini
jmp 0x417ca8
push str.RTSClient.ini
call fcn.004234b0
push ebx
push str.HasLogger
push str.RTS_Options_With_Int_Type
lea ecx, [ebp + 0x450]
call fcn.00423030
push 0x4740
call fcn.00449d87
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x417ce6
mov ecx, eax
call fcn.0041a540
mov edx, eax
jmp 0x417ce8
xor edx, edx
mov byte [ebp - 4], 1
mov dword [edi], edx
push esi
mov ecx, edi
call fcn.00417b10
mov bl, al
neg bl
sbb ebx, ebx
add ebx, 1
mov byte [ebp - 0x11], bl
test bl, bl
jne 0x417d16
lea edi, [edx + 0xac]
mov ecx, 0x121
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x450]
call fcn.00422f00
mov dword [ebp - 4], 0xffffffff
test bl, bl
jne 0x417dfa
mov eax, 1
mov dword [edi + 8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x760]
xor ecx, ebp
call fcn.0045e17e
add ebp, 0x764
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 6
mov ecx, dword [edi]
test ecx, ecx
je 0x417e15
mov edx, dword [ecx]
push 1
mov eax, dword [edx]
call eax
mov dword [edi], 0
mov dword [ebp - 4], 0xffffffff
call fcn.00439fb0
xor eax, eax
jmp 0x417d3c
Function at 0x418a90
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x48082b
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x4b445c]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b445c]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov eax, dword [0x4bae60]
test eax, eax
mov ebp, dword [esp + 0x13c]
mov bl, byte [esp + 0x134]
mov edi, ecx
je 0x418af7
movzx ecx, bl
push ecx
push ebp
push str.CMultiplexer::InitChannel:_port___d__ChannelID___d
push eax
call fcn.00430fd0
add esp, 0x10
movzx esi, bl
push esi
push ebp
push str.CMultiplexer::InitChannel:_port___d__ChannelID___d
lea edx, [esp + 0x28]
push 0x104
push edx
call fcn.0045f21c
add esp, 0x14
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp bl, 5
jae 0x418b8b
lea ebx, [edi + 0xa0]
mov dword [esp + 0x18], ebx
mov ecx, dword [ebx + 4]
push 0xffffffffffffffff
push ecx
mov dword [esp + 0x1c], vtable.extension::generic_lock_class_extension::mutex_class_extension::automatic_object_void___struct_extension::_mutex_manager___.0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x12c], 0
mov edx, dword [esp + 0x140]
mov eax, dword [esp + 0x138]
push edx
push ebp
push eax
push esi
imul esi, esi, 0x5c
push edi
lea ecx, [esi + edi + 0x538]
call fcn.0041b890
mov dword [esp + 0x12c], 0xffffffff
mov ecx, dword [ebx + 4]
push ecx
mov dword [esp + 0x18], vtable.extension::generic_lock_class_extension::mutex_class_extension::automatic_object_void___struct_extension::_mutex_manager___.0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0045e17e
add esp, 0x11c
ret 0x10
Function at 0x41a540
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x480cca
mov eax, dword fs:[0]
push eax
sub esp, 0x454
push ebx
push esi
mov eax, dword [0x4b445c]
xor eax, esp
push eax
lea eax, [esp + 0x460]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
lea eax, [esp + 0xc]
push eax
push 4
push esi
xor ebx, ebx
push 0x4181c0
push ebx
push ebx
mov dword [esi], vtable.extension::thread.0
mov byte [esi + 4], bl
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 8], eax
jne 0x41a5c3
push 0x51
push str..._common_mylib__process.h
push str.Failed_to_create_thread
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x24]
call fcn.00416ba0
push 0x4a2bd8
lea ecx, [esp + 0x18]
push ecx
call fcn.0045f257
mov dword [esp + 0x468], ebx
push ebx
lea ecx, [esi + 0xa0]
mov dword [esi], vtable.CMultiplexer.0
call fcn.0041a3d0
mov byte [esp + 0x468], 1
push fcn.0041b8f0
push 0x41b9a0
push 5
push 0x5c
lea edx, [esi + 0x538]
push edx
call fcn.00460915
mov byte [esp + 0x468], 2
push ebx
lea ecx, [esi + 0x708]
call fcn.00418f60
mov byte [esp + 0x468], 3
push ebx
lea ecx, [esi + 0x714]
call fcn.00418f00
mov byte [esp + 0x468], 4
push ebx
lea ecx, [esi + 0x720]
call fcn.00418e60
mov byte [esp + 0x468], 5
or eax, 0xffffffff
mov byte [esi + 0x240], bl
mov word [esi + 0x472c], 0x1fe0
mov dword [esi + 0x94], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x704], eax
mov dword [esi + 0x4734], 0x1bb
mov dword [esi + 0x4738], ebx
mov dword [esp + 0x468], eax
mov eax, esi
mov ecx, dword [esp + 0x460]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x460
ret

Function at 0x41a6a0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [ecx + 0x68]
cmp eax, 0xffffffff
je 0x41a6e5
xor ecx, ecx
cmp byte [esp + 4], cl
lea edx, [esp + 4]
sete cl
push edx
push 0x8004667e
push eax
mov dword [esp + 0x10], ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x41a6e5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [0x4bae60]
push str.CTcpLink::set_blocking_mode_error__WSAGetLastError___d
push eax
call fcn.004310b0
add esp, 0xc
ret 4

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

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x68]
cmp eax, 0xffffffff
je 0x41a804
mov cx, word [esi + 0x1a]
cmp cx, word [esi + 0x1c]
ja 0x41a804
movzx edx, word [esp + 0xc]
mov ecx, dword [esp + 8]
push 0
push edx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x41a807
push str.CTcpLink::DirectSend
lea edx, [esi + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
call fcn.0041a770
xor ax, ax
pop esi
ret 8
Function at 0x41a810
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
movzx eax, word [esi + 0x1c]
push edi
movzx edi, word [esi + 0x1a]
cmp di, ax
jbe 0x41a865
mov edx, dword [esi + 0x68]
cmp edx, 0xffffffff
je 0x41a865
mov ecx, dword [esi + 0x14]
mov ecx, dword [ecx + 8]
movzx eax, ax
movzx edi, di
push 0
sub edi, eax
push edi
add eax, ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x41a861
push str.CTcpLink::DoSend
lea edx, [esi + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
mov ecx, esi
pop esi
jmp fcn.0041a770
add word [esi + 0x1c], ax
pop edi
pop esi
ret

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

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x68]
cmp eax, 0xffffffff
je 0x41a93a
movzx ecx, word [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x41a93d
push str.CTcpLink::Receive
lea eax, [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
call fcn.0041a770
xor ax, ax
pop esi
ret 8