joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47bad8
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x47baf4
cmp dword [esi + 4], 0
je 0x47bb21
test byte [ebx + 0x55], 1
jne 0x47bb13
mov eax, ebx
call fcn.0047a678
test eax, eax
jne 0x47bb13
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x47bc31
mov edx, esi
mov eax, ebx
call fcn.0047b5fc
jmp 0x47bc31
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x47bc2a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0047d948
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00478314
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0047bad8
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0047d948
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bc31
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x482368
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x58cb04]
cmp byte [eax + 0xc], 0
je 0x4824d5
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4824ce
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x58dbcc], 0
jne 0x4823bc
push 0x4824dc
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x4824e4
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x58dbcc], eax
cmp dword [0x4fe120], 0
jne 0x4824b7
push 0x4824f4
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4fe120], eax
cmp dword [0x4fe120], 0
je 0x4824b7
push 0x482500
mov eax, dword [0x4fe120]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x58dbd0], eax
push 0x482510
mov eax, dword [0x4fe120]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x58dbd4], eax
push 0x482524
mov eax, dword [0x4fe120]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x58dbd8], eax
push 0x48253c
mov eax, dword [0x4fe120]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x58dbdc], eax
push 0x482554
mov eax, dword [0x4fe120]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x58dbe0], eax
push 0x482568
mov eax, dword [0x4fe120]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x58dbe4], eax
push 0x482580
mov eax, dword [0x4fe120]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x58dbe8], eax
push 0x482598
mov eax, dword [0x4fe120]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x58dbec], eax
push 0x4825b4
mov eax, dword [0x4fe120]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x58dbf0], eax
push 0x4825c0
mov eax, dword [0x4fe120]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x58dbf4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4824d5
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4869d8
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404b28
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x486a27
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404d98
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48ecdc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x48ed2c]
test si, 4
je 0x48ecf0
or bl, 1
test si, 8
je 0x48ecfa
or bl, 4
test si, 1
je 0x48ed04
or bl, 8
test si, 2
je 0x48ed0e
or bl, 0x10
test si, 0x10
je 0x48ed18
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x48ed27
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x48ed30
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x48ed68]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x48ed49
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x48ed58
or bl, 4
test esi, 0x20000000
je 0x48ed63
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x495544
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x495556
add esp, 0xfffffff0
call fcn.00404050
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422fa8
mov eax, dword [0x58c69c]
mov dword [eax + 4], ebx
mov dword [eax], 0x4958e8
mov eax, dword [0x58c6ac]
mov dword [eax + 4], ebx
mov dword [eax], 0x4958f4
mov eax, ebx
call fcn.00495900
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x417810]
call fcn.00403ca8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x417810]
call fcn.00403ca8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x417810]
call fcn.00403ca8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x417810]
call fcn.00403ca8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x417810]
call fcn.00403ca8
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x491d18
push eax
push 0
push 0
mov eax, dword [0x58c878]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x424adc]
call fcn.004262bc
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x424adc]
call fcn.004262bc
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x424adc]
call fcn.004262bc
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00495d98
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x495c60
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x495c60
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x495c60
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x495693
call fcn.004040a8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x495a44
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x495bef
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x495bd0
mov dl, 1
mov eax, dword [0x417e74]
call fcn.00403ca8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404b28
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x495bbf
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004826c8
test al, al
je 0x495bb2
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x495c00
lea eax, [ebp - 0x254]
call fcn.0040a2c0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x495bb2
xor eax, eax
push ebp
push 0x495bab
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x495c38
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x495b94
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404d98
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x495b94
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404d98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495bb2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x495ab5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041c91c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495bf6
lea eax, [ebp - 0x260]
call fcn.00404b28
ret

Function at 0x496538
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x58dc18]
cmp byte [eax + 0xa5], 0
jne 0x4965a9
cmp dword [0x58dc30], 0
jne 0x49656a
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x4964f4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x58dc30], eax
cmp dword [0x58dc2c], 0
jne 0x496585
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x58dc2c], eax
cmp dword [0x58dc34], 0
jne 0x4965a9
push esp
push 0
push 0
push 0x496498
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x58dc34], eax
pop edx
ret
Function at 0x496cc8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x58dc18]
cmp dword [eax + 0x30], 0
je 0x496d72
cmp dword [ebx + 0x94], 0
jne 0x496d6c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x496c58
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x496d6c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x496d32
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x496d6c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041a0bc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x496d41
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4978d0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x497905
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404c18
jmp 0x497912
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404b7c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x498adc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x498b1d
mov eax, esi
call fcn.0047dc4c
test al, al
je 0x498b1d
mov eax, dword [ebx + 0x84]
call fcn.0047d948
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x498b1d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0047d948
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x49e174
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x49e1a2
mov eax, ebx
call fcn.0049ec28
cmp dword [ebx + 0x40], 0
je 0x49e19b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x49e213
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x49e205
cmp dword [ebx + 8], 0
je 0x49e1c4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x49e1d6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x49e205
cmp dword [ebx + 8], 0
je 0x49e1b7
cmp eax, 3
je 0x49e1e9
dec eax
jne 0x49e1b7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x49e1b7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x49e1b7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x49e231
cmp dword [ebx + 0x14], 0xcc
je 0x49e231
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0049e23c
pop ebx
ret
Function at 0x4b119c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
mov dword [ebp - 4], eax
lea eax, [ebp - 0x104]
push eax
push pe_nt_image_headers32
call sub.KERNEL32.DLL_GetTempPathA
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404d98
mov esp, ebp
pop ebp
ret

Function at 0x4b9a40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov al, byte [0x4b9a84]
mov byte [ebp - 1], al
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4b9a5c
or byte [ebp - 1], 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4b9a6c
or byte [ebp - 1], 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4b9a7c
or byte [ebp - 1], 2
mov al, byte [ebp - 1]
pop ecx
pop ebp
ret

Function at 0x4bb478
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [0x58c910]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4bb4a5
push 0
mov eax, dword [0x58c910]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
pop ecx
pop ebp
ret
Function at 0x4d1c0c
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
push eax
call sub.wsock32.dll_getsockname
push dword [ebp - 0x18]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.00404d20
mov esp, ebp
pop ebp
ret

Function at 0x4d1c4c
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c], 0
je 0x4d1ce2
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4d1c93
lea eax, [ebp - 0x10]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
push eax
call sub.wsock32.dll_ioctlsocket
inc eax
jne 0x4d1ce2
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 4]
call fcn.004d1e60
jmp 0x4d1ce2
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4d1cbc
mov eax, dword [ebp - 4]
call fcn.004d1e60
jmp 0x4d1ce2
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4d1ce2
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
jne 0x4d1cda
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x4d1ce2
mov eax, dword [ebp - 4]
call fcn.004d1e60
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x4d1d2c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004d1e60
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov word [ebp - 0x18], 2
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x14]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
call fcn.00404fe8
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4d1da6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
call fcn.00404fe8
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4d1da6
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
push 0x10
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
push eax
call sub.wsock32.dll_connect
test eax, eax
jne 0x4d1dc6
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x4d1dcc
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4d1e04
mov eax, dword [ebp - 4]
call fcn.004d1e60
jmp 0x4d1e2a
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4d1e2a
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
jne 0x4d1e22
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x4d1e2a
mov eax, dword [ebp - 4]
call fcn.004d1e60
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4d8a8c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov dword [ebp - 4], eax
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x108]
push eax
call sub.KERNEL32.DLL_GetComputerNameA
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x108]
mov ecx, pe_nt_image_headers32
call fcn.00404d98
mov esp, ebp
pop ebp
ret

Function at 0x4d8ac8
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov dword [ebp - 4], eax
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x108]
push eax
call sub.advapi32.dll_GetUserNameA
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x108]
mov ecx, pe_nt_image_headers32
call fcn.00404d98
mov esp, ebp
pop ebp
ret
Function at 0x4e6e0c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
mov dword [ebp - 4], eax
lea eax, [ebp - 0x104]
push eax
push pe_nt_image_headers32
call sub.KERNEL32.DLL_GetTempPathA
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404d98
mov esp, ebp
pop ebp
ret

Function at 0x4e9824
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fd8
xor eax, eax
push ebp
push 0x4e989e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00404fe8
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4e987f
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetFileSize
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e98a5
lea eax, [ebp - 4]
call fcn.00404b28
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 0x10], eax
mov word [ebp - 0x20], 2
mov ax, word [ebp - 4]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x1e], ax
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0x10
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wsock32.dll_bind
test eax, eax
je 0x4e9f22
mov eax, dword [ebp - 0x10]
push eax
call sub.wsock32.dll_closesocket
jmp 0x4e9f70
push 5
mov eax, dword [ebp - 0x10]
push eax
call sub.wsock32.dll_listen
test eax, eax
je 0x4e9f3c
mov eax, dword [ebp - 0x10]
push eax
call sub.wsock32.dll_closesocket
jmp 0x4e9f70
mov cl, 1
mov dl, 1
mov eax, dword [0x4e9c9c]
call fcn.00422b40
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [eax + 0x44], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x40], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [eax + 0x48], edx
mov eax, dword [ebp - 0xc]
call fcn.00422ed4
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x4e9fcc
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x4e9ffd
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x8004667e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x180]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x4ea01c
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0xc]
push eax
push 0x8004667e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x180]
push eax
call sub.wsock32.dll_ioctlsocket
mov esp, ebp
pop ebp
ret