joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a740
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6596de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], 0
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x114]
add ecx, 4
call fcn.00401d90
push eax
push 0x100
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp + 0x14]
call fcn.00401d90
push eax
lea ecx, [ebp + 0x10]
call fcn.00401d90
push eax
lea ecx, [ebp + 0xc]
call fcn.00401d90
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x10c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.006225d4
mov edx, dword [ebp - 0x110]
or edx, 1
mov dword [ebp - 0x110], edx
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.00622566
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.00622566
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.00622566
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x41a806
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6596fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.00401d90
push eax
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp + 0xc]
call fcn.00401d90
push eax
lea ecx, [ebp + 8]
call fcn.00401d90
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00622566
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00622566
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41a884
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x659722
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov dword [ebp - 0x118], ecx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x110]
call fcn.00401d70
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x10]
push eax
push 0x757ee4
lea ecx, [ebp - 0x110]
push ecx
call fcn.00617593
add esp, 0xc
mov ecx, dword [ebp - 0x118]
add ecx, 4
call fcn.00401d90
push eax
push 0x100
lea edx, [ebp - 0x10c]
push edx
lea ecx, [ebp - 0x110]
call fcn.00401d90
push eax
lea ecx, [ebp + 0xc]
call fcn.00401d90
push eax
lea ecx, [ebp + 8]
call fcn.00401d90
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x10c]
push eax
call fcn.005fc307
add esp, 4
mov dword [ebp - 0x114], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x110]
call fcn.00622566
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00622566
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00622566
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41b719
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6597ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
mov dword [ebp - 0x1a0], ecx
push 0xa
mov ecx, dword [ebp - 0x1a0]
add ecx, 0x2c
call fcn.0041d340
mov dword [ebp - 4], 0
push 0xa
mov ecx, dword [ebp - 0x1a0]
add ecx, 0x48
call fcn.0041d340
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1a0]
add ecx, 0x7c
call fcn.004127d0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1a0]
mov dword [eax], 0x6933bc
mov ecx, 1
test ecx, ecx
je 0x41b79b
mov dword [ebp - 0x1a4], 0
jmp 0x41b7b5
mov edx, dword [ebp - 0x1a0]
push edx
push str.CIOCPServer_p_n
call fcn.00419990
add esp, 8
mov dword [ebp - 0x1a4], eax
lea eax, [ebp - 0x19c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x782600
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [ebp - 0x1a0]
mov dword [ecx + 0x70], 0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [ebp - 0x1a0]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 0x1a0]
mov dword [eax + 0x68], 0
mov ecx, dword [ebp - 0x1a0]
mov byte [ecx + 0x78], 0
mov edx, dword [ebp - 0x1a0]
mov byte [edx + 0x25], 0
mov eax, dword [ebp - 0x1a0]
mov dword [eax + 0x64], 0
mov ecx, dword [ebp - 0x1a0]
mov dword [ecx + 0x74], 0
mov edx, dword [ebp - 0x1a0]
mov byte [edx + 0x24], 0
mov eax, dword [ebp - 0x1a0]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x1a0]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0x1a0]
mov dword [edx + 0x14], 0
mov eax, dword [ebp - 0x1a0]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 0x1a0]
mov dword [ecx + 0x1c], 0x2710
mov edx, dword [ebp - 0x1a0]
mov dword [edx + 0x88], 0x2bf20
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x41bf44
Capabilities:
Create tcp socket
Create thread
Create udp socket
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x3c], ecx
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x41bf69
xor al, al
jmp 0x41c070
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x74], eax
mov edx, dword [ebp - 0x3c]
cmp dword [edx + 0x74], 0
jne 0x41bf99
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x41c070
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x1c]
shl eax, 1
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x8c], eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x8c]
mov dword [edx + 0x90], ecx
mov edx, dword [ebp - 0x3c]
mov dword [edx + 0x94], 0xa
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0x98], 0x4b
mov ecx, dword [ebp - 0x3c]
add ecx, 0x7c
call fcn.00412832
mov ecx, dword [ebp - 0x1c]
shl ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x3c]
mov dword [edx + 0x20], 0
mov dword [ebp - 0x34], 0
jmp 0x41c016
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 8]
jae 0x41c06e
lea edx, [ebp - 0x38]
push edx
push 0
mov eax, dword [ebp - 0x3c]
push eax
push 0x41c074
push 0
push 0
call fcn.005fceec
add esp, 0x18
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41c053
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x41c070
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x20]
add ecx, 1
mov edx, dword [ebp - 0x3c]
mov dword [edx + 0x20], ecx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41c00d
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x41c35c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x659861
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 0x28], ecx
push 0x18
call fcn.0061d6a5
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x24], 0
je 0x41c3a3
push 1
mov ecx, dword [ebp - 0x24]
call fcn.0041db30
mov dword [ebp - 0x2c], eax
jmp 0x41c3aa
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], 0x8000
push 0
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 1
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x41c40b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x41c40b
push 0
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x28]
call fcn.0041cc08
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x41cc08
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6598c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x20], ecx
push str.RemoveStaleClient
lea ecx, [ebp - 0x1c]
call fcn.006225d4
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push 0x782600
lea ecx, [ebp - 0x18]
call fcn.0041d9d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00622566
mov ecx, 1
test ecx, ecx
je 0x41cc69
mov dword [ebp - 0x24], 0
jmp 0x41cc79
push str.CIOCPServer::RemoveStaleClient_n
call fcn.00419990
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp + 0xc], 0
jne 0x41cca7
mov word [ebp - 0x10], 1
mov word [ebp - 0xe], 0
push 4
lea edx, [ebp - 0x10]
push edx
push 0x80
push 0xffff
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x20]
add ecx, 0x2c
call fcn.0041d620
test eax, eax
je 0x41cd19
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
je 0x41cce5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [ebp + 8]
mov dword [edx], 0xffffffff
mov eax, dword [ebp + 8]
cmp dword [eax], 0x103
jne 0x41ccfa
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41cce5
push 2
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x20]
call dword [ecx + 4]
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x20]
call fcn.0041cdda
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041da40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4203ad
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov dword [ebp - 0x16c], ecx
call fcn.00411e50
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x44
push 0
lea ecx, [ebp - 0x15c]
push ecx
call fcn.005fb270
add esp, 0xc
mov dword [ebp - 0x15c], 0x44
mov edx, dword [ebp - 0x16c]
cmp dword [edx + 0x198], 0
jne 0x4204b6
push 0x24
push 0x75a9c4
push 0x75a9d0
mov ecx, dword [ebp - 0x16c]
call fcn.0061ff13
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 6
je 0x420433
jmp 0x4204e7
push 0x75a9e0
mov eax, dword [ebp - 0x16c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x16c]
call dword [edx + 0xf8]
mov ecx, dword [ebp - 4]
add ecx, 0x25c
call fcn.0044e430
mov ecx, dword [0x7827d4]
call fcn.0041cd38
mov eax, dword [0x7827d4]
mov dword [ebp - 0x168], eax
mov ecx, dword [ebp - 0x168]
mov dword [ebp - 0x164], ecx
cmp dword [ebp - 0x164], 0
je 0x42049f
push 1
mov edx, dword [ebp - 0x164]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x164]
call dword [eax]
mov dword [ebp - 0x170], eax
jmp 0x4204a9
mov dword [ebp - 0x170], 0
mov ecx, dword [ebp - 0x16c]
call fcn.006357c8
jmp 0x4204e7
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x15c]
push edx
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [ebp - 0x16c]
call fcn.006357c8
mov esp, ebp
pop ebp
ret
Function at 0x427ac7
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x427ade
jmp 0x427b40
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebp + 0xc]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x427b3a
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.005fb2d0
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 4]
push eax
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov esp, ebp
pop ebp
ret 8

Function at 0x427b46
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x427b60
jmp 0x427c10
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x427b7c
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x427c10
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call fcn.0061d6a5
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov byte [ecx], 0x1b
mov edx, dword [ebp - 8]
sub edx, 1
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
push ecx
call fcn.005fb2d0
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x154]
push eax
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x158]
call fcn.0041c41b
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.0061d6ce
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x42da55
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
mov dword [ebp - 0x2c], ecx
push 1
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0xb1c]
add ecx, 0x24
call fcn.0040274a
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x20]
mov esi, dword [edx + 4]
xor edi, edi
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
xor edx, edx
mov ecx, 0x20
call fcn.005fcb60
or esi, eax
or edi, edx
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x78], esi
mov dword [ecx + 0x7c], edi
mov ecx, dword [ebp - 0x2c]
call fcn.0042dc00
mov edx, dword [ebp - 0x2c]
add edx, 0x78
mov eax, dword [ebp - 0x2c]
add eax, 0x70
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x42dae1
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
je 0x42daea
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 4], 0xffffffff
jne 0x42daf7
mov ecx, dword [ebp - 0x2c]
call fcn.0042dcb5
jmp 0x42dbfa
push 0
push 0x80
push 3
push 0
push 1
push bind
push 0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x6c
call fcn.00622996
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x42db2b
jmp 0x42dbfa
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x24], 9
mov edx, 0x2000
sub edx, dword [ebp - 0x24]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], 0
push 0x2000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov byte [eax], 5
push 4
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
add edx, 1
push edx
call fcn.005fb2d0
add esp, 0xc
push 4
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
add ecx, 5
push ecx
call fcn.005fb2d0
add esp, 0xc
mov byte [ebp - 4], 1
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0
jbe 0x42dbf0
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xb1c]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0xb20]
call fcn.0041c41b
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42dd9e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65ab5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
add eax, 0x6c
push eax
lea ecx, [ebp - 0x14]
call fcn.006222db
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 1
push bind
push 0
mov ecx, dword [ebp - 0x34]
add ecx, 0x6c
call fcn.00622996
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x42de68
lea ecx, [ebp - 0x28]
call fcn.00401d70
mov byte [ebp - 4], 1
push 0
mov ecx, dword [ebp - 0x34]
add ecx, 0x6c
call fcn.00622996
push eax
push 0x75f9c0
lea ecx, [ebp - 0x28]
push ecx
call fcn.00617593
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x28]
call fcn.00401d90
push eax
call fcn.0062be0f
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00622566
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00622566
mov eax, dword [ebp - 0x2c]
jmp 0x42df2c
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], edx
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 9
mov edx, dword [ebp - 0x18]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005fb270
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov byte [edx], 4
push 4
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 1
push ecx
call fcn.005fb2d0
add esp, 0xc
push 4
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x1c]
add eax, 5
push eax
call fcn.005fb2d0
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0xb1c]
push ecx
mov edx, dword [ebp - 0x34]
mov ecx, dword [edx + 0xb20]
call fcn.0041c41b
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00622566
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x42f3f8
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x42f40a
jmp 0x42f47a
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ecx, dword [ebp + 8]
call fcn.00402950
add eax, 1
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42f474
mov ecx, dword [ebp + 8]
call fcn.00402950
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.00622996
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.005fb2d0
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 4]
push edx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov esp, ebp
pop ebp
ret

Function at 0x43994f
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push 0x8004667e
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [ebp - 0x10], 0
jle 0x4399b8
push 0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jg 0x4399a4
jmp 0x4399b8
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
jmp 0x43997c
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x439c42
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x439c61
xor eax, eax
jmp 0x439ca8
mov word [ebp - 0x14], 2
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov cx, word [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
push 0x10
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x439c93
jmp 0x439ca6
mov eax, dword [ebp - 4]
jmp 0x439ca8
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x439ca8
jmp 0x439c98
mov esp, ebp
pop ebp
ret

Function at 0x439cc9
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x439ceb
xor eax, eax
jmp 0x439d70
mov word [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
mov word [ebp - 0x14], 2
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov dx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x439d32
jmp 0x439d6e
push 3
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WS2_32.dll_listen]
mov eax, dword [0x783c30]
add eax, 1
mov dword [0x783c30], eax
mov ecx, dword [0x783c30]
mov edx, dword [ebp - 4]
mov dword [ecx*4 + 0x782c30], edx
mov eax, dword [ebp - 4]
jmp 0x439d70
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x439d70
jmp 0x439d60
mov esp, ebp
pop ebp
ret

Function at 0x439d74
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov word [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov word [ebp - 0xa], ax
mov dword [ebp - 8], 0x10
push 0
push 0
call fcn.00439cc9
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
ja 0x439dad
jmp 0x439dec
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x439dc6
jmp 0x439dea
mov cx, word [ebp - 0x16]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov edx, dword [ebp + 8]
mov word [edx], ax
mov eax, dword [ebp - 4]
jmp 0x439dee
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x439dee
jmp 0x439ddc
jmp 0x439ddc
mov esp, ebp
pop ebp
ret