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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x46adb0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46ad91
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46ada0
or bl, 4
test esi, 0x20000000
je 0x46adab
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x471478
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x47148a
add esp, 0xfffffff0
call fcn.00403a3c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004265b0
mov eax, dword [0x644058]
mov dword [eax + 4], ebx
mov dword [eax], 0x47181c
mov eax, dword [0x64406c]
mov dword [eax + 4], ebx
mov dword [eax], 0x471828
mov eax, ebx
call fcn.00471834
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41aebc]
call fcn.004036a8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41aebc]
call fcn.004036a8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41aebc]
call fcn.004036a8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41aebc]
call fcn.004036a8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41aebc]
call fcn.004036a8
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, 0x46dc50
push eax
push 0
push 0
mov eax, dword [0x6443d0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x428084]
call fcn.00429898
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x428084]
call fcn.00429898
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x428084]
call fcn.00429898
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00471c54
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x471b30
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x471b30
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x471b30
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4715c7
call fcn.00403a94
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x471914
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 0x471abf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x471aa0
mov dl, 1
mov eax, dword [0x41b520]
call fcn.004036a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004044ec
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x471a8f
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.0045f554
test al, al
je 0x471a82
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, 0x471ad0
lea eax, [ebp - 0x254]
call fcn.0040a60c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x471a82
xor eax, eax
push ebp
push 0x471a7b
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 0x471b08
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x471a64
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040475c
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 0x471a64
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040475c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x471a82
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x471985
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00420054
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 0x471ac6
lea eax, [ebp - 0x260]
call fcn.004044ec
ret

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

Disassembly:
push ecx
mov eax, dword [0x645bc0]
cmp byte [eax + 0xa5], 0
jne 0x472465
cmp dword [0x645bd8], 0
jne 0x472426
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4723b0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x645bd8], eax
cmp dword [0x645bd4], 0
jne 0x472441
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x645bd4], eax
cmp dword [0x645bdc], 0
jne 0x472465
push esp
push 0
push 0
push 0x472354
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x645bdc], eax
pop edx
ret
Function at 0x47255c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x472573
add esp, 0xfffffff0
call fcn.00403a3c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004265b0
mov eax, dword [0x6443a0]
cmp word [eax + 2], 0
jne 0x47259b
mov eax, dword [0x6443a0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00473cdc
mov eax, dword [0x6445a8]
cmp word [eax + 2], 0
jne 0x4725b5
mov eax, dword [0x6445a8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00473ed4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41aebc]
call fcn.004036a8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41aebc]
call fcn.004036a8
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 [0x428c04]
call fcn.004310c0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x47273c
mov eax, dword [0x644164]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00431490
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x474484
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x644164]
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.0040e69c
test eax, eax
je 0x4726aa
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409fa8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e6c4
test eax, eax
je 0x4726be
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.0040475c
mov eax, dword [0x643e34]
cmp byte [eax], 0
jne 0x4726f2
mov eax, ebx
call fcn.00472864
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.00474660
mov eax, ebx
call fcn.00475024
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x472732
call fcn.00403a94
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x472ae4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x645bc0]
cmp dword [eax + 0x30], 0
je 0x472b8e
cmp dword [ebx + 0x94], 0
jne 0x472b88
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x472a74
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x472b88
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 0x472b4e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x472b88
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.0041d84c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x472b5d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4736f0
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 0x473725
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.004045dc
jmp 0x473732
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404540
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x47483c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x47487d
mov eax, esi
call fcn.0045aaf8
test al, al
je 0x47487d
mov eax, dword [ebx + 0x84]
call fcn.0045a7f4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x47487d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045a7f4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x47553c
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 [0x41a45c]
call fcn.00405064
xor eax, eax
push ebp
push 0x475680
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x63d1a0], 0
jne 0x47558f
mov ecx, dword [0x643e70]
mov dl, 1
mov eax, dword [0x4080b8]
call fcn.0040d7dc
call fcn.00403ea4
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.0040301c
mov eax, ebx
call fcn.00404d78
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x475690
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.00406428
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404d88
test eax, eax
jle 0x475627
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 0x475620
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404790
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.0040475c
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408fe8
test eax, eax
jne 0x475620
mov ebx, 0x15
jmp 0x47562c
mov ebx, 0x10
jmp 0x47562c
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 [0x63d1a0]
call fcn.00475494
mov eax, dword [ebp - 8]
call fcn.00475494
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406440
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475687
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404510
lea eax, [ebp - 0x10]
mov edx, dword [0x41a45c]
call fcn.00405134
ret
Function at 0x47cd14
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 0x47cf74
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x47cd77
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0047c82c
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040e11c
cmp al, 1
jne 0x47cd77
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0047caf4
test al, al
je 0x47cf03
cmp dword [ebp - 8], 0
jge 0x47cd95
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.0047c82c
mov eax, dword [ebp - 0x210]
call fcn.004047c8
cmp ebx, eax
jge 0x47cddf
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0047c82c
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x6448f8]
and eax, 0xff
bt dword [edx], eax
jae 0x47cddf
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x47cdf3
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0047ccf0
cmp ebx, dword [ebp - 8]
je 0x47cef5
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 0x47ce1f
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004038d4
and eax, 0x7f
movzx eax, word [eax*2 + 0x63d208]
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 0x47cee2
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004038d4
and eax, 0x7f
movzx eax, word [eax*2 + 0x63d208]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0045a7f4
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004038d4
and eax, 0x7f
movzx eax, word [eax*2 + 0x63d208]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0045a7f4
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47cee9
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 0x47cf56
cmp dword [ebp - 8], 0
jge 0x47cf0e
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0047c82c
mov eax, dword [ebp - 0x218]
call fcn.004047c8
cmp eax, dword [ebp - 8]
jg 0x47cf48
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0047c82c
mov eax, dword [ebp - 0x21c]
call fcn.004047c8
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0047ccf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47cf7b
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404510
ret
Function at 0x49d3e4
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x58
call fcn.0040301c
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret

Function at 0x49d584
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
dec ecx
test ecx, ecx
jl 0x49d5a9
inc ecx
xor esi, esi
mov bl, byte [eax + esi]
xor bl, byte [edx + esi]
mov edi, dword [ebp - 4]
mov byte [edi + esi], bl
inc esi
dec ecx
jne 0x49d599
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x49ebd4
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x1c]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, 0x10
mov eax, 0x63db28
mov ecx, 0x1000
call fcn.00402b40
mov edx, dword [ebp - 4]
add edx, 0x1010
mov eax, 0x63dae0
mov ecx, 0x48
call fcn.00402b40
test esi, esi
jne 0x49ec46
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, 8
call fcn.0040301c
mov eax, dword [ebp - 4]
add eax, 8
xor ecx, ecx
mov edx, 8
call fcn.0040301c
jmp 0x49ec67
mov edx, dword [ebp - 4]
mov eax, esi
mov ecx, 8
call fcn.00402b40
mov edx, dword [ebp - 4]
add edx, 8
mov eax, esi
mov ecx, 8
call fcn.00402b40
xor eax, eax
mov dword [ebp - 0x10], eax
mov esi, 0x12
mov ebx, dword [ebp - 4]
add ebx, 0x1010
mov eax, dword [ebp - 0x10]
add eax, 3
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov cl, byte [eax + edx]
mov eax, dword [ebp - 0x10]
add eax, 2
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + edx]
shl eax, 8
add ecx, eax
mov eax, dword [ebp - 0x10]
inc eax
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + edx]
shl eax, 0x10
add ecx, eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
movzx eax, byte [eax + edx]
shl eax, 0x18
add ecx, eax
xor dword [ebx], ecx
mov eax, dword [ebp - 0x10]
add eax, 4
cdq
idiv dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
add ebx, 4
dec esi
jne 0x49ec7a
mov eax, edi
xor ecx, ecx
mov edx, 8
call fcn.0040301c
mov esi, 9
mov ebx, dword [ebp - 4]
add ebx, 0x1010
mov ecx, edi
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0049d5b4
xor eax, eax
mov al, byte [edi + 3]
xor edx, edx
mov dl, byte [edi + 2]
shl edx, 8
add eax, edx
xor edx, edx
mov dl, byte [edi + 1]
shl edx, 0x10
add eax, edx
xor edx, edx
mov dl, byte [edi]
shl edx, 0x18
add eax, edx
mov dword [ebx], eax
xor eax, eax
mov al, byte [edi + 7]
xor edx, edx
mov dl, byte [edi + 6]
shl edx, 8
add eax, edx
xor edx, edx
mov dl, byte [edi + 5]
shl edx, 0x10
add eax, edx
xor edx, edx
mov dl, byte [edi + 4]
shl edx, 0x18
add eax, edx
mov dword [ebx + 4], eax
add ebx, 8
dec esi
jne 0x49ecf6
mov dword [ebp - 0x10], 4
mov eax, dword [ebp - 4]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov esi, 0x80
mov eax, dword [ebp - 0x20]
mov ebx, eax
mov ecx, edi
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0049d5b4
xor eax, eax
mov al, byte [edi + 3]
xor edx, edx
mov dl, byte [edi + 2]
shl edx, 8
add eax, edx
xor edx, edx
mov dl, byte [edi + 1]
shl edx, 0x10
add eax, edx
xor edx, edx
mov dl, byte [edi]
shl edx, 0x18
add eax, edx
mov dword [ebx], eax
xor eax, eax
mov al, byte [edi + 7]
xor edx, edx
mov dl, byte [edi + 6]
shl edx, 8
add eax, edx
xor edx, edx
mov dl, byte [edi + 5]
shl edx, 0x10
add eax, edx
xor edx, edx
mov dl, byte [edi + 4]
shl edx, 0x18
add eax, edx
mov dword [ebx + 4], eax
add ebx, 8
dec esi
jne 0x49ed6c
add dword [ebp - 0x20], 0x400
dec dword [ebp - 0x10]
jne 0x49ed62
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a00bc
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4a0145
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x645e90
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x4a012f
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040cee8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x4a015c
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x6446c4]
mov dl, 1
mov eax, dword [0x49f0c8]
call fcn.0040d818
call fcn.00403ea4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a014c
lea eax, [ebp - 0x1c]
call fcn.004044ec
ret

Function at 0x4a0810
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.004a0734
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004038d4
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x4a0874
call fcn.004a0004
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x4a0866
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.004038d4
pop esi
pop ebx
ret

Function at 0x4a0940
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.004049c8
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.0040301c
test ebx, ebx
je 0x4a098b
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 0x4a0a68
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
je 0x4a0a99
mov ecx, dword [0x6448f4]
mov dl, 1
mov eax, dword [0x49f0c8]
call fcn.0040d7dc
call fcn.00403ea4
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
jne 0x4a0ac6
mov ecx, dword [0x644384]
mov dl, 1
mov eax, dword [0x49f0c8]
call fcn.0040d7dc
call fcn.00403ea4
xor eax, eax
push ebp
push 0x4a0b47
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.004038d4
cmp byte [ebp + 8], 0
je 0x4a0b21
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004a09d0
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 edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004a0790
jmp 0x4a0b3d
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004a02f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a0b64
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4a0b70
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
je 0x4a0ba1
mov ecx, dword [0x6444a4]
mov dl, 1
mov eax, dword [0x49f0c8]
call fcn.0040d7dc
call fcn.00403ea4
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
jne 0x4a0bce
mov ecx, dword [0x644384]
mov dl, 1
mov eax, dword [0x49f0c8]
call fcn.0040d7dc
call fcn.00403ea4
xor eax, eax
push ebp
push 0x4a0c4a
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.004038d4
cmp byte [ebp + 8], 0
je 0x4a0c26
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.004a09d0
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.004a0810
jmp 0x4a0c40
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.004a02f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a0c67
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc