joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014d90
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100f5930]
and eax, 1
jne 0x10014dbc
mov ecx, dword [0x100f5930]
or ecx, 1
mov dword [0x100f5930], ecx
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x100f592c], eax
mov dword [ebp - 4], 8
jmp 0x10014dce
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0xdf
jge 0x10014e72
cmp dword [ebp - 4], 0x10
jne 0x10014de3
jmp 0x10014dc5
cmp dword [ebp - 4], 0x11
jne 0x10014deb
jmp 0x10014dc5
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx ecx, ax
cmp ecx, 0xffff8001
jne 0x10014e6d
mov edx, dword [0x100f592c]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov dword [ebp - 0xc], eax
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
xor edx, edx
test ecx, ecx
setl dl
mov byte [ebp - 5], dl
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0
mov edx, dword [ebp + 8]
mov ax, word [ebp - 0xc]
mov word [edx], ax
movzx ecx, byte [ebp - 5]
neg ecx
sbb ecx, ecx
neg ecx
and cl, 1
shl cl, 2
mov edx, dword [ebp + 8]
mov al, byte [edx + 2]
and al, 0xfb
or al, cl
mov ecx, dword [ebp + 8]
mov byte [ecx + 2], al
mov al, 1
jmp 0x10014e74
jmp 0x10014dc5
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x100161d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push 0xc8
push 0
lea eax, [ebp - 0xd0]
push eax
call fcn.1009eb40
add esp, 0xc
push 0x64
lea ecx, [ebp - 0xd0]
push ecx
push 0x3f5
mov edx, dword [0x100f4c58]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [0x100f4c54]
call fcn.1000a720
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], edx
lea eax, [ebp - 0xd0]
push eax
mov ecx, dword [0x100f4c54]
call fcn.1000a600
xor ecx, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
lea edx, [ebp - 0xd0]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xd4]
push edx
mov eax, dword [ebp - 0xd8]
push eax
push str.Hash_compare__I64d_to__I64d___s_
call fcn.10010cb0
add esp, 0x18
mov ecx, dword [ebp - 0xd8]
cmp ecx, dword [ebp - 8]
jne 0x1001628e
mov edx, dword [ebp - 0xd4]
cmp edx, dword [ebp - 4]
jne 0x1001628e
mov dword [ebp - 0xdc], 1
jmp 0x10016298
mov dword [ebp - 0xdc], 0
mov al, byte [ebp - 0xdc]
mov esp, ebp
pop ebp
ret
Function at 0x1001a260
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1001a281
xor eax, eax
jmp 0x1001a2c5
lea ecx, [ebp - 0x10]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x10020150
Capabilities:
Migrate process to active window station

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0x2000000
push 0
push str.WinSta0
call dword [sym.imp.USER32.dll_OpenWindowStationW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1002017e
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
push 0x2000000
push 0
push 0
call dword [sym.imp.USER32.dll_OpenInputDesktop]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_SetThreadDesktop]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_SwitchDesktop]
mov esp, ebp
pop ebp
ret

Function at 0x100201b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.10020150
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x68], eax
push 0x400
mov edx, dword [ebp - 4]
add edx, 0x6c
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x68]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [ebp - 4]
add edx, 0x6c
push edx
push str.Found_Current_Window:__s
call fcn.10010cb0
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x10020200
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x100200f0
push 0x800
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esp, ebp
pop ebp
ret
Function at 0x10020400
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cb308
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov byte [eax], 0
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 1], eax
mov edx, dword [ebp - 0x18]
cmp dword [edx + 1], 0
jne 0x10020443
jmp 0x10020587
push str.WSAStartup
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 1]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x18]
mov dword [edx + 9], eax
push str.send
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 1]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0xd], eax
push str.recv
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 1]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x11], eax
push str.connect
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 1]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x15], eax
push str.gethostbyname
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 1]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x1d], eax
push str.socket
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 1]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x19], eax
push str.WSACleanup
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 1]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x21], eax
push str.inet_addr
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 1]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x25], eax
push str.htons
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 1]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x29], eax
push str.htonl
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 1]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x2d], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 9], 0
je 0x10020587
mov ecx, dword [ebp - 0x18]
mov byte [ecx], 1
lea ecx, [ebp - 0x14]
call fcn.100012a0
mov dword [ebp - 4], 0
push 0x200
lea ecx, [ebp - 0x14]
call fcn.10001390
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x14]
push edx
push 2
push 2
push 0
mov ecx, dword [ebp - 0x18]
call fcn.10020380
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100012d0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10045a10
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
jne 0x10045a21
xor eax, eax
jmp 0x10045b9b
push 0x48
mov eax, dword [ebp + 8]
push eax
call fcn.10023450
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10045a3f
xor eax, eax
jmp 0x10045b9b
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov al, byte [edx + 5]
mov byte [ecx + 5], al
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10045600
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10045760
add esp, 8
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10045470
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10045600
add esp, 8
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10045470
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10045600
add esp, 8
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dl, byte [ecx + 4]
mov byte [eax + 4], dl
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10045a10
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10045470
add esp, 8
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x30]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10045470
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x30], eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], 0xffffffff
mov eax, dword [ebp - 4]
mov dword [eax + 0x38], 0xffffffff
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov al, byte [edx + 6]
mov byte [ecx + 6], al
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov al, byte [edx + 7]
mov byte [ecx + 7], al
mov ecx, dword [ebp - 4]
mov byte [ecx + 8], 0
mov edx, dword [ebp - 4]
mov byte [edx + 9], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x28], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x3c], 0xffffffff
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], 0xffffffff
mov eax, dword [ebp - 4]
mov dword [eax + 0x44], 0xffffffff
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10070860
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x25], 0
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x29], 0
mov dword [ecx + 0x2d], 0
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x15], 0
mov dword [edx + 0x19], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x1d], 0
mov dword [eax + 0x21], 0
mov dword [ebp - 4], 0x1000
push 0x1000
call fcn.1009ead1
add esp, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx + 0x31], edx
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x39], 0x1000
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x35], 0
mov edx, dword [ebp - 0xc]
mov byte [edx], 0
push 0x40
mov eax, dword [ebp - 0xc]
add eax, 0x3d
push eax
push 0x100df6ec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0x100
mov ecx, dword [ebp - 0xc]
add ecx, 0x7d
push ecx
push str.COMPUTERNAME
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x1007ba50
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
push ecx
push str.Compare_Port___d__to_80
call fcn.10010cb0
add esp, 8
push str.SOAPAction
mov edx, dword [ebp + 0x10]
push edx
call fcn.1009fc80
add esp, 8
test eax, eax
je 0x1007ba89
xor al, al
jmp 0x1007bc33
push str.SOAPACTION
mov eax, dword [ebp + 0x10]
push eax
call fcn.1009fc80
add esp, 8
test eax, eax
je 0x1007baa5
xor al, al
jmp 0x1007bc33
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 0xc]
add ecx, 0xc
push ecx
mov ecx, dword [ebp - 0x3c]
add ecx, 0xed4
call fcn.1007df70
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1007bbc4
mov byte [ebp - 0x11], 0
push 5
push str.GET__
mov edx, dword [ebp + 0x10]
push edx
call fcn.1009fe99
add esp, 0xc
test eax, eax
jne 0x1007baed
mov byte [ebp - 0x11], 1
push 6
push str.POST__
mov eax, dword [ebp + 0x10]
push eax
call fcn.1009fe99
add esp, 0xc
test eax, eax
jne 0x1007bb08
mov byte [ebp - 0x11], 1
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
jne 0x1007bb17
xor al, al
jmp 0x1007bc33
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
push eax
push str.Add_Handle__x_for_web
call fcn.10010cb0
add esp, 8
mov ecx, dword [ebp - 0x3c]
add ecx, 0xed4
call fcn.1007dfe0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x19
jle 0x1007bb61
mov ecx, dword [ebp - 0x10]
push ecx
push str.NC_d_n
lea edx, [ebp - 0x28]
push edx
call fcn.1009fac8
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x206f
call fcn.1009ead1
add esp, 4
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x1007bb84
mov ecx, dword [ebp - 0x34]
call fcn.1007a010
mov dword [ebp - 0x40], eax
jmp 0x1007bb8b
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0xc], edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0xc
push ecx
mov ecx, dword [ebp - 0x3c]
add ecx, 0xed4
call fcn.1007df10
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x58], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xf]
mov dword [eax + 0x44], edx
jmp 0x1007bbd3
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], 0
jmp 0x1007bbeb
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 0x14]
sub edx, 1
cmp dword [ebp - 0x2c], edx
jge 0x1007bc1d
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x2c]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x1007bc1b
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x2c]
movsx eax, byte [edx + 1]
cmp eax, 0x20
jne 0x1007bc1b
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x2c]
mov byte [ecx], 0x3a
jmp 0x1007bbe2
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.100779b0
mov al, 1
jmp 0x1007bc33
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10081610
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10085f40
add esp, 4
test eax, eax
je 0x10081669
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x40], 0
je 0x10081664
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
cmp dword [eax], 0
je 0x10081664
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x40]
mov eax, dword [edx]
call eax
add esp, 0xc
jmp 0x1008167f
or eax, 0xffffffff
jmp 0x1008167f
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 1
mov eax, dword [ebp + 0xc]
push eax
call fcn.100a4c3f
add esp, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x10081690
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10085f40
add esp, 4
test eax, eax
je 0x100816eb
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x40], 0
je 0x100816e6
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
cmp dword [eax + 4], 0
je 0x100816e6
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x40]
mov eax, dword [edx + 4]
call eax
add esp, 0xc
jmp 0x10081701
or eax, 0xffffffff
jmp 0x10081701
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 1
mov eax, dword [ebp + 0xc]
push eax
call fcn.1009e7b7
add esp, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x10087140
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], 1
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x10087170
or eax, 0xffffffff
jmp 0x10087215
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0xffff
mov ecx, dword [ebp - 4]
push ecx
call sub.WSOCK32.dll_setsockopt
test eax, eax
jge 0x10087197
push str.setsockopt
call fcn.100a5783
add esp, 4
push 0x10
push 0
lea edx, [ebp - 0x18]
push edx
call fcn.1009eb40
add esp, 0xc
mov eax, 2
mov word [ebp - 0x18], ax
movzx ecx, word [ebp + 8]
push ecx
call sub.WSOCK32.dll_htons
mov word [ebp - 0x16], ax
push 0
call sub.WSOCK32.dll_htonl
mov dword [ebp - 0x14], eax
push 0x10
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.WSOCK32.dll_bind
test eax, eax
jge 0x100871f6
push str.bind
call fcn.100a5783
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call sub.WSOCK32.dll_closesocket
or eax, 0xffffffff
jmp 0x10087215
push 5
mov edx, dword [ebp - 4]
push edx
call sub.WSOCK32.dll_listen
test eax, eax
jge 0x10087212
push str.listen
call fcn.100a5783
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10087220
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0x10
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], 0
jl 0x1008725f
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_getsockname
test eax, eax
jl 0x1008725f
movzx eax, word [ebp - 0x16]
push eax
call sub.WSOCK32.dll_ntohs
movzx ecx, ax
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x10087360
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov dword [ebp - 0x118], 0
cmp dword [ebp - 0x118], 0x40
jae 0x1008739b
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x114], ecx
mov edx, dword [ebp - 0x118]
add edx, 1
mov dword [ebp - 0x118], edx
xor eax, eax
jne 0x10087373
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
lea edx, [ebp - 0xc]
push edx
push 0
push 0
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp + 8]
add ecx, 1
push ecx
call sub.WSOCK32.dll_select
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], 0
setg al
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x100f5228], 0
je 0x10087406
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10087610
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x1008741c
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_recv
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x10087427
mov eax, dword [ebp - 4]
jmp 0x10087438
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 4
jne 0x10087435
xor eax, eax
jmp 0x10087438
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x10087440
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov dword [ebp - 0x118], 0
cmp dword [ebp - 0x118], 0x40
jae 0x1008747b
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x114], ecx
mov edx, dword [ebp - 0x118]
add edx, 1
mov dword [ebp - 0x118], edx
xor eax, eax
jne 0x10087453
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
lea edx, [ebp - 0xc]
push edx
push 0
lea eax, [ebp - 0x118]
push eax
push 0
mov ecx, dword [ebp + 8]
add ecx, 1
push ecx
call sub.WSOCK32.dll_select
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], 0
setg al
mov esp, ebp
pop ebp
ret
Function at 0x100874c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x100f5228], 0
je 0x100874e6
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10087630
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x100874fc
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_send
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x10087507
mov eax, dword [ebp - 4]
jmp 0x10087520
cmp dword [ebp - 4], 0
je 0x10087519
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x1008751d
xor eax, eax
jmp 0x10087520
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x1008a630
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov byte [0x100f4f88], 0
cmp dword [ebp + 8], 0
je 0x1008a64d
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x1008a656
call fcn.100a5daa
jmp 0x1008a6c6
mov dword [ebp - 4], 0
push 0
call fcn.1009e296
add esp, 4
push eax
call fcn.1009f018
add esp, 4
call fcn.1009f02a
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0xc]
push edx
push str._03d
lea eax, [ebp - 8]
push eax
call fcn.1009fac8
add esp, 0xc
push 0x100f4f88
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1008a6c3
push 0x100ebf50
push 0x100f4f88
call fcn.1009fa5e
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1009a360
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x2c]
push ebp
push esi
mov ebp, dword [edi + 0x3c]
sub ebp, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea edx, [ebx + ecx - 0x106]
sub ebp, eax
cmp eax, edx
jb 0x1009a3de
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.1009e2f0
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x1009a3b1
sub eax, ebx
jmp 0x1009a3b3
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x1009a3a2
mov ecx, dword [edi + 0x40]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x1009a3d2
sub eax, ebx
jmp 0x1009a3d4
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x1009a3c3
add ebp, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x1009a439
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x6c]
mov ecx, ebp
add edx, dword [edi + 0x38]
push edx
call fcn.1009a060
add dword [edi + 0x74], eax
mov edx, dword [edi + 0x74]
add esp, 4
cmp edx, 3
jb 0x1009a425
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp edx, 0x106
jae 0x1009a439
mov edx, dword [edi]
cmp dword [edx + 4], 0
jne 0x1009a366
pop esi
pop ebp
pop ebx
ret