joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cbadc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x5a57e4], 0
je 0x4cbc2b
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x5a03b0]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x4cbc2b
mov eax, dword [0x5a57e8]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x5a57e4]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4cbbfa
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x5a57e4]
call fcn.00421a3c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4cbbf2
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x4cbbf2
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x4cbbf2
mov eax, dword [ebp - 0x14]
call fcn.004d493c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4cbbf2
push ebp
call fcn.004cba98
pop ecx
test al, al
jne 0x4cbbf2
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x4cbbae
mov eax, dword [ebp - 0x14]
call fcn.004d3434
dec eax
jle 0x4cbbf2
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.00404114
cmp byte [ebp - 1], 0
je 0x4cbbf2
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x4cbbf2
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5a57e8]
call fcn.004cb264
inc edi
dec ebx
jne 0x4cbb41
mov eax, dword [0x5a57e8]
cmp dword [eax + 8], 0
jle 0x4cbc12
mov eax, dword [0x5a57e8]
call fcn.004cb2f4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4cbc2b
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004cb900
pop ecx
test al, al
jne 0x4cbc2b
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cf274
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x4cf2c0
mov eax, esi
call fcn.004be190
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4cf2c0
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x4cf2c0
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x4cf3ff
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x4cf300
cmp eax, 0x108
ja 0x4cf300
mov eax, esi
call fcn.004be190
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4cf3f6
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x4cf3ff
jmp 0x4cf3f6
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x4cf3df
cmp eax, 0x20a
ja 0x4cf3df
test byte [esi + 0x50], 0x80
jne 0x4cf332
sub eax, 0x203
je 0x4cf32f
sub eax, 3
je 0x4cf32f
sub eax, 3
jne 0x4cf332
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x4cf346
dec eax
je 0x4cf35b
dec eax
je 0x4cf378
dec eax
je 0x4cf35b
jmp 0x4cf37f
mov ecx, ebx
mov eax, dword [0x5a03b0]
mov eax, dword [eax]
mov edx, esi
call fcn.004c7bc4
jmp 0x4cf3f6
cmp byte [esi + 0x5d], 1
jne 0x4cf371
mov eax, esi
mov si, 0xffed
call fcn.00404114
jmp 0x4cf3ff
or word [esi + 0x54], 1
jmp 0x4cf3f6
and word [esi + 0x54], 0xfffe
jmp 0x4cf3f6
mov eax, dword [0x5a57a0]
cmp byte [eax + 0x20], 0
je 0x4cf3f6
mov eax, dword [0x5a57a0]
cmp dword [eax + 0x1c], 0
je 0x4cf3f6
mov eax, dword [ebx]
mov edx, dword [0x5a57a0]
cmp eax, dword [edx + 0x1c]
jne 0x4cf3f6
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.004be0d4
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00404114
jmp 0x4cf3ff
cmp eax, 0xb00b
jne 0x4cf3f6
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.004cdb40
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d2a94
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 0x4d2ab0
cmp dword [esi + 4], 0
je 0x4d2add
test byte [ebx + 0x55], 1
jne 0x4d2acf
mov eax, ebx
call fcn.004d1634
test eax, eax
jne 0x4d2acf
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4d2bed
mov edx, esi
mov eax, ebx
call fcn.004d25b8
jmp 0x4d2bed
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 0x4d2be6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004d493c
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.004cf1a8
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004d2a94
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.004d493c
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d2bed
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 0x4d93ac
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x5a07b4]
cmp byte [eax + 0xc], 0
je 0x4d9519
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d9512
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5a57f4], 0
jne 0x4d9400
push 0x4d9520
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4d9528
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5a57f4], eax
cmp dword [0x594d20], 0
jne 0x4d94fb
push 0x4d9538
call sub.kernel32.dll_LoadLibraryA
mov dword [0x594d20], eax
cmp dword [0x594d20], 0
je 0x4d94fb
push 0x4d9544
mov eax, dword [0x594d20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5a57f8], eax
push 0x4d9554
mov eax, dword [0x594d20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5a57fc], eax
push 0x4d9568
mov eax, dword [0x594d20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5a5800], eax
push 0x4d9580
mov eax, dword [0x594d20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5a5804], eax
push 0x4d9598
mov eax, dword [0x594d20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5a5808], eax
push 0x4d95ac
mov eax, dword [0x594d20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5a580c], eax
push 0x4d95c4
mov eax, dword [0x594d20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5a5810], eax
push 0x4d95dc
mov eax, dword [0x594d20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5a5814], eax
push 0x4d95f8
mov eax, dword [0x594d20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5a5818], eax
push 0x4d9604
mov eax, dword [0x594d20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5a581c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d9519
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4daa48
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.00404e5c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4daa97
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.004050cc
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e4574
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e47d4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4e45d7
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004e4208
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.00410ea8
cmp al, 1
jne 0x4e45d7
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004e44d8
test al, al
je 0x4e4763
cmp dword [ebp - 8], 0
jge 0x4e45f5
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004e4208
mov eax, dword [ebp - 0x210]
call fcn.00405138
cmp ebx, eax
jge 0x4e463f
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004e4208
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x5a0790]
and eax, 0xff
bt dword [edx], eax
jae 0x4e463f
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4e4653
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004e454c
cmp ebx, dword [ebp - 8]
je 0x4e4755
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4e467f
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00404114
and eax, 0x7f
movzx eax, word [eax*2 + 0x594e40]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4e4742
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00404114
and eax, 0x7f
movzx eax, word [eax*2 + 0x594e40]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.004d493c
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00404114
and eax, 0x7f
movzx eax, word [eax*2 + 0x594e40]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.004d493c
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e4749
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4e47b6
cmp dword [ebp - 8], 0
jge 0x4e476e
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004e4208
mov eax, dword [ebp - 0x218]
call fcn.00405138
cmp eax, dword [ebp - 8]
jg 0x4e47a8
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004e4208
mov eax, dword [ebp - 0x21c]
call fcn.00405138
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004e454c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e47db
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404e80
ret
Function at 0x4e8058
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x41e46c]
call fcn.004058d0
xor eax, eax
push ebp
push 0x4e819c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x594e4c], 0
jne 0x4e80ab
mov ecx, dword [0x59fc94]
mov dl, 1
mov eax, dword [0x40acc4]
call fcn.00410558
call fcn.004047b0
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00403774
mov eax, ebx
call fcn.0040571c
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4e81ac
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406cf4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.0040572c
test eax, eax
jle 0x4e8143
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4e813c
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00405100
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004050cc
mov eax, dword [ebp - 0x48]
pop edx
call fcn.0040bbcc
test eax, eax
jne 0x4e813c
mov ebx, 0x15
jmp 0x4e8148
mov ebx, 0x10
jmp 0x4e8148
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x594e4c]
call fcn.004e7ef8
mov eax, dword [ebp - 8]
call fcn.004e7ef8
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406d0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e81a3
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404e80
lea eax, [ebp - 0x10]
mov edx, dword [0x41e46c]
call fcn.004059a0
ret

Function at 0x4f0868
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4f0896
mov eax, ebx
call fcn.004f131c
cmp dword [ebx + 0x40], 0
je 0x4f088f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4f0907
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4f08f9
cmp dword [ebx + 8], 0
je 0x4f08b8
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 0x4f08ca
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4f08f9
cmp dword [ebx + 8], 0
je 0x4f08ab
cmp eax, 3
je 0x4f08dd
dec eax
jne 0x4f08ab
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 0x4f08ab
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4f08ab
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4f0925
cmp dword [ebx + 0x14], 0xcc
je 0x4f0925
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.004f0930
pop ebx
ret
Function at 0x508ee0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe70
push ebx
push esi
push edi
test dl, dl
je 0x508ef8
add esp, 0xfffffff0
call fcn.00404284
mov esi, ecx
mov ebx, edx
mov edi, eax
lea eax, [edi + 0x64]
mov edx, 0x508f68
call fcn.00404eb0
lea eax, [ebp - 0x190]
push eax
push 0x202
call sub.wsock32.dll_WSAStartup
lea eax, [edi + 0x58]
mov edx, 0x508f78
call fcn.00404eb0
mov dword [edi + 0x48], 0xffffffff
mov eax, edi
call fcn.005096cc
mov ecx, esi
xor edx, edx
mov eax, edi
call fcn.0042ade8
mov eax, edi
test bl, bl
je 0x508f57
call fcn.004042dc
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x509312
push dword fs:[eax]
mov dword fs:[eax], esp
or esi, 0xffffffff
cmp dword [ebx + 0x48], 0xffffffff
je 0x5092fc
mov eax, dword [ebx + 0x64]
call fcn.00405338
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.005091b4
test al, al
je 0x509290
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00509c1c
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x64]
call fcn.00404eb0
mov eax, ebx
call fcn.005091b4
test al, al
je 0x50927f
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x509290
mov eax, dword [ebx + 0x64]
call fcn.00405338
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 8], eax
push 4
lea eax, [ebp - 8]
push eax
push 2
push 0
mov eax, dword [ebx + 0x48]
push eax
call sub.wsock32.dll_setsockopt
test eax, eax
je 0x5092bf
xor eax, eax
mov dword [ebp - 8], eax
push 4
lea eax, [ebp - 8]
push eax
push 2
push 0
mov eax, dword [ebx + 0x48]
push eax
call sub.wsock32.dll_setsockopt
mov word [ebp - 0x18], 2
mov ax, word [ebx + 0x34]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x16], ax
mov eax, dword [ebx + 0x3c]
call fcn.00405338
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x14], eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebx + 0x48]
push eax
call sub.wsock32.dll_sendto
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x509319
lea eax, [ebp - 0x1c]
call fcn.00404e5c
ret
Function at 0x509914
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00405328
xor eax, eax
push ebp
push 0x509a1e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404e5c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040bc3c
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00404ef4
cmp dword [ebp - 4], 0
je 0x5099f4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00509714
test al, al
je 0x509991
mov eax, dword [ebp - 4]
call fcn.00405338
push eax
call sub.wsock32.dll_inet_addr
inc eax
je 0x509a00
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404eb0
jmp 0x509a00
mov eax, dword [ebp - 4]
call fcn.00405338
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x509a00
mov esi, dword [ebp - 8]
push ebx
mov eax, dword [esi + 0xc]
mov edi, dword [eax]
xor eax, eax
mov al, byte [edi]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
xor eax, eax
mov al, byte [edi + 1]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
xor eax, eax
mov al, byte [edi + 2]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
xor eax, eax
mov al, byte [edi + 3]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
lea edx, [ebp - 0x2c]
mov ecx, 3
mov eax, 0x509a34
call fcn.0040d570
jmp 0x509a00
mov eax, ebx
mov edx, 0x509a48
call fcn.00404eb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x509a25
lea eax, [ebp - 0xc]
call fcn.00404e5c
lea eax, [ebp - 4]
call fcn.00404e5c
ret

Function at 0x509ac0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov ebx, edx
mov esi, eax
test bl, bl
je 0x509af7
cmp dword [esi + 0x5c], 0
je 0x509b7c
mov eax, dword [esi + 0x5c]
mov edx, 0x509b8c
call fcn.00405284
je 0x509b7c
cmp dword [esi + 0x48], 0xffffffff
je 0x509b7c
test byte [esi + 0x1c], 0x10
jne 0x509b7c
test byte [esi + 0x1c], 1
jne 0x509b7c
mov eax, dword [esi + 0x64]
call fcn.00405338
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x5c]
call fcn.00405338
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 8], eax
test bl, bl
je 0x509b65
cmp byte [esi + 0x60], 0
jne 0x509b7c
push 8
lea eax, [ebp - 8]
push eax
push 5
push 0
mov eax, dword [esi + 0x48]
push eax
call sub.wsock32.dll_setsockopt
test eax, eax
sete al
mov byte [esi + 0x60], al
mov byte [ebp - 9], 0x40
push 1
lea eax, [ebp - 9]
push eax
push 3
push 0
mov eax, dword [esi + 0x48]
push eax
call sub.wsock32.dll_setsockopt
test eax, eax
jmp 0x509b7c
push 8
lea eax, [ebp - 8]
push eax
push 6
push 0
mov eax, dword [esi + 0x48]
push eax
call sub.wsock32.dll_setsockopt
mov byte [esi + 0x60], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x509c1c
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x509d47
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404e5c
lea eax, [ebp - 0xc]
call fcn.00404e5c
mov eax, 0x65
call fcn.00402bf4
mov edi, eax
push 0x65
mov ebx, edi
push ebx
call sub.wsock32.dll_gethostname
test eax, eax
jne 0x509cd7
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0040d058
push ebx
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movsx ebx, word [eax + 0xa]
dec ebx
test ebx, ebx
jl 0x509cb7
inc ebx
xor esi, esi
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + esi]
call fcn.0040bf68
lea eax, [ebp - 0x18]
mov edx, 0x509d60
call fcn.00405140
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0xc]
call fcn.00405140
inc esi
dec ebx
jne 0x509c87
mov eax, dword [ebp - 0xc]
call fcn.00405138
mov edx, eax
dec edx
lea eax, [ebp - 0xc]
call fcn.004054c4
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00404eb0
jmp 0x509d18
call sub.wsock32.dll_WSAGetLastError
sub eax, 0x2734
je 0x509d0b
sub eax, 0xe
je 0x509cfc
sub eax, 0x2b
jne 0x509d18
lea eax, [ebp - 0x10]
mov edx, 0x509d6c
call fcn.00404ef4
jmp 0x509d18
lea eax, [ebp - 0x10]
mov edx, 0x509d88
call fcn.00404ef4
jmp 0x509d18
lea eax, [ebp - 0x10]
mov edx, 0x509d9c
call fcn.00404ef4
mov edx, 0x65
mov eax, edi
call fcn.00402c24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x509d4e
lea eax, [ebp - 0x18]
call fcn.00404e5c
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404e80
ret