joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d83c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4561cc]
cmp byte [eax + 0xc], 0
je 0x43d9a9
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43d9a2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x457b64], 0
jne 0x43d890
push 0x43d9b0
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43d9b8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457b64], eax
cmp dword [0x455b80], 0
jne 0x43d98b
push 0x43d9c8
call sub.kernel32.dll_LoadLibraryA
mov dword [0x455b80], eax
cmp dword [0x455b80], 0
je 0x43d98b
push 0x43d9d4
mov eax, dword [0x455b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457b68], eax
push 0x43d9e4
mov eax, dword [0x455b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457b6c], eax
push 0x43d9f8
mov eax, dword [0x455b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457b70], eax
push 0x43da10
mov eax, dword [0x455b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457b74], eax
push 0x43da28
mov eax, dword [0x455b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457b78], eax
push 0x43da3c
mov eax, dword [0x455b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457b7c], eax
push 0x43da54
mov eax, dword [0x455b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457b80], eax
push 0x43da6c
mov eax, dword [0x455b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457b84], eax
push 0x43da88
mov eax, dword [0x455b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457b88], eax
push 0x43da94
mov eax, dword [0x455b80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x457b8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43d9a9
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x441834
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.00403e4c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x441883
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.004040bc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x448fc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x449010]
test si, 4
je 0x448fd4
or bl, 1
test si, 8
je 0x448fde
or bl, 4
test si, 1
je 0x448fe8
or bl, 8
test si, 2
je 0x448ff2
or bl, 0x10
test si, 0x10
je 0x448ffc
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44900b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x449014
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44904c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44902d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44903c
or bl, 4
test esi, 0x20000000
je 0x449047
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44f6f4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44f706
add esp, 0xfffffff0
call fcn.00403420
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041925c
mov eax, dword [0x455e88]
mov dword [eax + 4], ebx
mov dword [eax], 0x44fa98
mov eax, dword [0x455e94]
mov dword [eax + 4], ebx
mov dword [eax], 0x44faa4
mov eax, ebx
call fcn.0044fab0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411554]
call fcn.004030cc
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411554]
call fcn.004030cc
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411554]
call fcn.004030cc
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411554]
call fcn.004030cc
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411554]
call fcn.004030cc
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, 0x44becc
push eax
push 0
push 0
mov eax, dword [0x455fd8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41acb0]
call fcn.0041c424
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41acb0]
call fcn.0041c424
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41acb0]
call fcn.0041c424
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044fed0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44fdac
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44fdac
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44fdac
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f843
call fcn.00403478
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44fb90
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 0x44fd3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44fd1c
mov dl, 1
mov eax, dword [0x411970]
call fcn.004030cc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e4c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44fd0b
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.0043db9c
test al, al
je 0x44fcfe
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, 0x44fd4c
lea eax, [ebp - 0x254]
call fcn.00408a30
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44fcfe
xor eax, eax
push ebp
push 0x44fcf7
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 0x44fd84
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44fce0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
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 0x44fce0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44fcfe
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44fc01
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041544c
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 0x44fd42
lea eax, [ebp - 0x260]
call fcn.00403e4c
ret

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

Disassembly:
push ecx
mov eax, dword [0x457bb0]
cmp byte [eax + 0xa5], 0
jne 0x4506e1
cmp dword [0x457bc8], 0
jne 0x4506a2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45062c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x457bc8], eax
cmp dword [0x457bc4], 0
jne 0x4506bd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x457bc4], eax
cmp dword [0x457bcc], 0
jne 0x4506e1
push esp
push 0
push 0
push 0x4505d0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x457bcc], eax
pop edx
ret
Function at 0x4507d8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4507ef
add esp, 0xfffffff0
call fcn.00403420
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041925c
mov eax, dword [0x455fc4]
cmp word [eax + 2], 0
jne 0x450817
mov eax, dword [0x455fc4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00451eb0
mov eax, dword [0x456074]
cmp word [eax + 2], 0
jne 0x450831
mov eax, dword [0x456074]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004520a8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411554]
call fcn.004030cc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411554]
call fcn.004030cc
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b790]
call fcn.00422af0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4509b8
mov eax, dword [0x455ee8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00422ec0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x452648
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x455ee8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c0f8
test eax, eax
je 0x450926
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408424
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c120
test eax, eax
je 0x45093a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
mov eax, dword [0x455dd8]
cmp byte [eax], 0
jne 0x45096e
mov eax, ebx
call fcn.00450ae0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00452824
mov eax, ebx
call fcn.004531e8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4509ae
call fcn.00403478
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x450d60
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x457bb0]
cmp dword [eax + 0x30], 0
je 0x450e0a
cmp dword [ebx + 0x94], 0
jne 0x450e04
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x450cf0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x450e04
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 0x450dca
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x450e04
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.004138bc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x450dd9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45196c
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 0x4519a1
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.00403f3c
jmp 0x4519ae
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ea0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452a00
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x452a41
mov eax, esi
call fcn.004391c8
test al, al
je 0x452a41
mov eax, dword [ebx + 0x84]
call fcn.00438ec4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x452a41
push 0
mov eax, dword [ebx + 0x84]
call fcn.00438ec4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4017d0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x431008], 0x8088405
inc edx
mov dword [ebx + 0x431008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402288
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x4355a4
mov esi, section.DATA
mov edi, 0x435030
cmp byte [ebx + 0x28], 0
jne 0x4022b7
cmp dword [edi], 0
je 0x4022b7
mov edx, dword [edi]
mov eax, edx
xor edx, edx
mov dword [edi], edx
mov ebp, eax
call ebp
cmp dword [edi], 0
jne 0x4022a6
cmp dword [0x431004], 0
je 0x4022c6
call dword [0x43106c]
cmp byte [ebx + 0x28], 2
jne 0x4022d6
cmp dword [esi], 0
jne 0x4022d6
xor eax, eax
mov dword [ebx + 0xc], eax
call dword [0x431034]
cmp byte [ebx + 0x28], 1
jbe 0x4022e7
cmp dword [esi], 0
je 0x402309
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x402309
call dword [0x431024]
mov edx, dword [ebx + 0x10]
mov eax, dword [edx + 0x10]
cmp eax, dword [edx + 4]
je 0x402309
test eax, eax
je 0x402309
push eax
call sub.KERNEL32.DLL_InitializeCriticalSection
call dword [0x431038]
cmp byte [ebx + 0x28], 1
jne 0x402318
call dword [ebx + 0x24]
cmp byte [ebx + 0x28], 0
je 0x402323
call fcn.00402258
cmp dword [ebx], 0
jne 0x40233f
cmp dword [0x43501c], 0
je 0x402337
call dword [0x43501c]
mov eax, dword [esi]
push eax
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebx]
push esi
mov esi, eax
mov edi, ebx
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x4022c6

Function at 0x40240c
Capabilities:
Create process on windows

Disassembly:
push eax
call sub.KERNEL32.DLL_WinExec
ret

Function at 0x4058fc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
mov ebx, esp
add esp, 0xfffff800
mov esi, esp
inc ecx
je 0x405916
mov edi, dword [edx + ecx*8 - 8]
push edi
loop 0x40590f
push esp
push eax
push esi
call sub.KERNEL32.DLL_GetTempPathA
mov edx, esi
mov eax, dword [ebp + 8]
call fcn.00402540
mov esp, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40e4b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
mov eax, dword [0x435680]
mov dword [0x4317b0], eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x4317c4]
push eax
mov eax, dword [0x435680]
push eax
call sub.KERNEL32.DLL_HeapAlloc
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x40e4ea
mov edx, fcn.00403a88
cmp edx, dword [ebp - 0x24]
je 0x40e509
test al, al
je 0x40e4ff
mov eax, dword [0x435680]
push eax
mov eax, dword [0x4317c4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
push 0x4317a0
call sub.KERNEL32.DLL_FindNextFileA
push 0x80000000
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x435680]
push eax
push 0
mov ecx, 0x40e560
mov edx, dword [0x4317c4]
mov eax, 0x80
call fcn.00403ce0
mov ebx, eax
cmp word [ebp + 0xa], 0
je 0x40e554
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e3f4
push eax
push 0xfffffffffffffffc
push ebx
call sub.KERNEL32.DLL_GetEnvironmentVariableA
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40f67c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
mov eax, dword [0x435680]
mov dword [0x4317f8], eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x43180c]
push eax
mov eax, dword [0x435680]
push eax
call sub.KERNEL32.DLL_HeapAlloc
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x40f6b6
mov edx, fcn.00403a88
cmp edx, dword [ebp - 0x24]
je 0x40f6d5
test al, al
je 0x40f6cb
mov eax, dword [0x435680]
push eax
mov eax, dword [0x43180c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
push 0x4317e8
call sub.KERNEL32.DLL_FindNextFileA
push 0x80000000
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x435680]
push eax
push 0
mov ecx, 0x40f72c
mov edx, dword [0x43180c]
mov eax, 0x80
call fcn.00403ce0
mov ebx, eax
cmp word [ebp + 0xa], 0
je 0x40f720
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040f5d0
push eax
push 0xfffffffffffffffc
push ebx
call sub.KERNEL32.DLL_GetEnvironmentVariableA
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40fd6c
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0040fc90
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00401c7c
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x40fdd0
call fcn.0040f778
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x40fdc2
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00401c7c
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040fb60
xor eax, eax
push ebp
push 0x40fe73
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00402414
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x40fe2d
call fcn.00402020
jmp 0x40fe7a
mov dword [ebp - 8], 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_getsockname
test eax, eax
jne 0x40fe5d
push dword [ebp - 0x14]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, ebx
call fcn.00402540
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fe7a
mov eax, dword [ebp - 4]
call fcn.0040fb6c
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40fe80
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.004027b0
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.004017b0
test ebx, ebx
je 0x40fecb
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret
Function at 0x40ff90
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x410061
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
je 0x410061
xor eax, eax
push ebp
push 0x410044
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00401c7c
cmp byte [ebp + 8], 0
je 0x410020
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0040ff10
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.0040fd6c
jmp 0x41003a
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0040f8b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x410061
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410244
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040fb60
xor eax, eax
push ebp
push 0x4103b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x4103a3
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x41028f
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x410299
call fcn.00402020
jmp 0x4103c0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0040e9b0
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 8]
mov ebx, eax
test ebx, ebx
jle 0x410398
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x41034a
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x410337
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00401c7c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.004101fc
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x4103cc]
cmp dl, byte [eax + 0x28]
je 0x41039f
call fcn.00402020
jmp 0x4103c0
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0040e9d0
jmp 0x41039f
cmp ecx, ebx
jge 0x410366
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0040e9d0
jmp 0x410299
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0040e9b0
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0040e9e4
cmp edx, dword [esp + 4]
jne 0x410387
cmp eax, dword [esp]
pop edx
pop eax
jne 0x410299
push ebp
call fcn.004101fc
pop ecx
jmp 0x41039f
push ebp
call fcn.004101fc
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4103c0
mov eax, dword [ebp - 4]
call fcn.0040fb6c
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret