joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5103c998
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 0x5103cb43
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x5103cb24
mov dl, 1
mov eax, dword [0x51018a5c]
call fcn.51003720
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.51004540
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5103cb13
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.510510a4
test al, al
je 0x5103cb06
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, 0x5103cb54
lea eax, [ebp - 0x254]
call fcn.510097b4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x5103cb06
xor eax, eax
push ebp
push 0x5103caff
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 0x5103cb8c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x5103cae8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.510047a8
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 0x5103cae8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.510047a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5103cb06
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5103ca09
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.5101cde8
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 0x5103cb4a
lea eax, [ebp - 0x260]
call fcn.51004540
ret

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

Disassembly:
push ecx
mov eax, dword [0x5107ec70]
cmp byte [eax + 0xa5], 0
jne 0x5103d4e9
cmp dword [0x5107ec8c], 0
jne 0x5103d4aa
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x5103d434
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x5107ec8c], eax
cmp dword [0x5107ec88], 0
jne 0x5103d4c5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x5107ec88], eax
cmp dword [0x5107ec90], 0
jne 0x5103d4e9
push esp
push 0
push 0
push 0x5103d3d8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5107ec90], eax
pop edx
ret
Function at 0x5103d5e0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x5103d5f7
add esp, 0xfffffff0
call fcn.51003ab4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.51022d9c
mov eax, dword [0x5107d8a8]
cmp word [eax + 2], 0
jne 0x5103d61f
mov eax, dword [0x5107d8a8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.5103eb20
mov eax, dword [0x5107d93c]
cmp word [eax + 2], 0
jne 0x5103d639
mov eax, dword [0x5107d93c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.5103ed18
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x5101856c]
call fcn.51003720
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x5101856c]
call fcn.51003720
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], 0x80000018
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 [0x510251cc]
call fcn.5102c900
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x5103d7c0
mov eax, dword [0x5107d7c4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.5102ccd0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x5103f298
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x5107d7c4]
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.5100d078
test eax, eax
je 0x5103d72e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.5100913c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.5100d0a0
test eax, eax
je 0x5103d742
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.510047a8
mov eax, dword [0x5107d6a8]
cmp byte [eax], 0
jne 0x5103d776
mov eax, ebx
call fcn.5103d8e8
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.5103f474
mov eax, ebx
call fcn.5103fe30
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5103d7b6
call fcn.51003b0c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5103db5c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x5107ec70]
cmp dword [eax + 0x30], 0
je 0x5103dc06
cmp dword [ebx + 0x94], 0
jne 0x5103dc00
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5103daec
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x5103dc00
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 0x5103dbc6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5103dc00
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.5101ac68
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5103dbd5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x5103e734
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 0x5103e769
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.51004630
jmp 0x5103e776
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.51004594
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x5103f65c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x5103f69d
mov eax, esi
call fcn.5104c0b8
test al, al
je 0x5103f69d
mov eax, dword [ebx + 0x84]
call fcn.5104bdb4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5103f69d
push 0
mov eax, dword [ebx + 0x84]
call fcn.5104bdb4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x51046010
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 0x5104605c
mov eax, esi
call fcn.51035d14
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5104605c
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x258], 0
je 0x5104605c
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x258]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x510461a5
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x5104609c
cmp eax, 0x108
ja 0x5104609c
mov eax, esi
call fcn.51035d14
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5104619c
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x510461a5
jmp 0x5104619c
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x51046185
cmp eax, 0x20a
ja 0x51046185
test byte [esi + 0x50], 0x80
jne 0x510460ce
sub eax, 0x203
je 0x510460cb
sub eax, 3
je 0x510460cb
sub eax, 3
jne 0x510460ce
sub dword [ebx], 2
mov eax, dword [ebx]
mov edx, eax
sub edx, 0x200
je 0x510460e5
dec edx
je 0x510460fa
dec edx
je 0x5104611e
dec edx
je 0x510460fa
jmp 0x51046125
mov ecx, ebx
mov eax, dword [0x5107d928]
mov eax, dword [eax]
mov edx, esi
call fcn.5103f508
jmp 0x5104619c
cmp eax, 0x203
je 0x51046117
cmp byte [esi + 0x5d], 1
jne 0x51046117
mov eax, esi
mov si, 0xffed
call fcn.5100394c
jmp 0x510461a5
or word [esi + 0x54], 1
jmp 0x5104619c
and word [esi + 0x54], 0xfffe
jmp 0x5104619c
mov eax, dword [0x5107ec98]
cmp byte [eax + 0x20], 0
je 0x5104619c
mov eax, dword [0x5107ec98]
cmp dword [eax + 0x1c], 0
je 0x5104619c
mov eax, dword [ebx]
mov edx, dword [0x5107ec98]
cmp eax, dword [edx + 0x1c]
jne 0x5104619c
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.51035c58
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.5100394c
jmp 0x510461a5
cmp eax, 0xb00b
jne 0x5104619c
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.5104492c
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 0x51049b24
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd90
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1f8], 0
je 0x51049b46
cmp dword [ebx + 4], 0
je 0x51049b79
mov eax, dword [ebp - 4]
test byte [eax + 0x55], 1
jne 0x51049b6a
mov eax, dword [ebp - 4]
call fcn.51048340
test eax, eax
jne 0x51049b6a
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x51049c91
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.51049244
jmp 0x51049c91
push 0
call sub.user32.dll_GetDC
mov esi, eax
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x54]
push eax
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x68]
push eax
push esi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 0xc], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x51049c8a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 4]
call fcn.5104bdb4
push eax
call sub.user32.dll_BeginPaint
mov esi, eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.51045f44
mov eax, dword [ebp - 8]
mov dword [ebx + 4], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.51049b24
xor eax, eax
mov dword [ebx + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 8]
push eax
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x54]
push eax
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x68]
push eax
push 0
push 0
push esi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 4]
call fcn.5104bdb4
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51049c91
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_DeleteObject
ret
lea edx, [ebp - 0x170]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.510036a0
lea eax, [ebp - 0x170]
mov edx, 0x51049d00
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.51002fec
je 0x51049cdf
lea edx, [ebp - 0x270]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.510036a0
lea eax, [ebp - 0x270]
mov edx, 0x51049d0c
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.51002fec
jne 0x51049cf8
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4c], 0x11
jne 0x51049cf8
call fcn.51049678
test al, al
je 0x51049cf8
push ebp
call fcn.51049a98
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51050d44
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x5107da9c]
cmp byte [eax + 0xc], 0
je 0x51050eb1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x51050eaa
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5107ecf8], 0
jne 0x51050d98
push 0x51050eb8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x51050ec0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5107ecf8], eax
cmp dword [0x5107cbac], 0
jne 0x51050e93
push 0x51050ed0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x5107cbac], eax
cmp dword [0x5107cbac], 0
je 0x51050e93
push 0x51050edc
mov eax, dword [0x5107cbac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5107ecfc], eax
push 0x51050eec
mov eax, dword [0x5107cbac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5107ed00], eax
push 0x51050f00
mov eax, dword [0x5107cbac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5107ed04], eax
push 0x51050f18
mov eax, dword [0x5107cbac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5107ed08], eax
push 0x51050f30
mov eax, dword [0x5107cbac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5107ed0c], eax
push 0x51050f44
mov eax, dword [0x5107cbac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5107ed10], eax
push 0x51050f5c
mov eax, dword [0x5107cbac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5107ed14], eax
push 0x51050f74
mov eax, dword [0x5107cbac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5107ed18], eax
push 0x51050f90
mov eax, dword [0x5107cbac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5107ed1c], eax
push 0x51050f9c
mov eax, dword [0x5107cbac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5107ed20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51050eb1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x51052344
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.51004540
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x51052393
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.510047a8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5105e804
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 0x5105e88d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5107edcc
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x5105e877
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.5100babc
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, 0x5105e8a4
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x5107d9ac]
mov dl, 1
mov eax, dword [0x5105e03c]
call fcn.5100c40c
call fcn.51003f1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5105e894
lea eax, [ebp - 0x1c]
call fcn.51004540
ret

Function at 0x5105ef34
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.5105ee58
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.5100394c
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x5105ef98
call fcn.5105e74c
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x5105ef8a
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.5100394c
pop esi
pop ebx
ret

Function at 0x5105efbc
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.510049f0
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.5100305c
test ebx, ebx
je 0x5105f007
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 0x5105f0e4
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 0x5105f115
mov ecx, dword [0x5107d8e8]
mov dl, 1
mov eax, dword [0x5105e03c]
call fcn.5100c3d0
call fcn.51003f1c
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 0x5105f142
mov ecx, dword [0x5107d8a4]
mov dl, 1
mov eax, dword [0x5105e03c]
call fcn.5100c3d0
call fcn.51003f1c
xor eax, eax
push ebp
push 0x5105f1be
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.5100394c
cmp byte [ebp + 8], 0
je 0x5105f19a
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.5105f04c
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.5105ef34
jmp 0x5105f1b4
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.5105ea38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5105f1db
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5105f374
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.5105ecf4
xor eax, eax
push ebp
push 0x5105f4e6
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 0x5105f4d0
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x5105f3bf
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x5105f3c9
call fcn.51003fc8
jmp 0x5105f4ed
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.5101ce98
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 0x5105f4c5
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 0x5105f477
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x5105f464
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.5100394c
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.5105f358
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x5105f4f8]
cmp dl, byte [eax + 0x28]
je 0x5105f4cc
call fcn.5100c2b8
jmp 0x5105f4cc
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.5101ceb8
jmp 0x5105f4cc
cmp ecx, ebx
jge 0x5105f493
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.5101ceb8
jmp 0x5105f3c9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.5101ce98
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.5101cecc
cmp edx, dword [esp + 4]
jne 0x5105f4b4
cmp eax, dword [esp]
pop edx
pop eax
jne 0x5105f3c9
push ebp
call fcn.5105f358
pop ecx
jmp 0x5105f4cc
push ebp
call fcn.5105f358
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5105f4ed
mov eax, dword [ebp - 4]
call fcn.5105ed00
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5105fba8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
add ebx, 0xfffffff8
xor esi, esi
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
mov edx, 0xc8
call fcn.5102fd30
test al, al
je 0x5105fc44
mov eax, dword [ebx]
cmp byte [eax + 0x10], 0
jne 0x5105fbfc
mov eax, dword [ebx]
cmp word [eax + 0x1a], 0
je 0x5105fbe6
mov edi, dword [ebx]
mov edx, dword [ebx]
mov eax, dword [edi + 0x1c]
call dword [edi + 0x18]
jmp 0x5105fbfc
mov ecx, 0x5105fcdc
mov dl, 1
mov eax, dword [0x51007aec]
call fcn.5100c314
call fcn.51003f1c
mov eax, dword [ebx]
cmp word [eax + 0x22], 0
je 0x5105fc0f
mov edi, dword [ebx]
mov edx, dword [ebx]
mov eax, dword [edi + 0x24]
call dword [edi + 0x20]
add esi, 0xc8
mov eax, dword [ebx]
cmp esi, dword [eax + 8]
jl 0x5105fc2b
mov eax, dword [ebp + 8]
mov dword [eax - 4], 0xffffffff
jmp 0x5105fcce
push 0
push 0
push 0x409
mov eax, dword [0x5107edc4]
push eax
call sub.user32.dll_SendMessageA
jmp 0x5105fbb6
push 0
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
mov eax, dword [ebp + 8]
add eax, 0xffffffe4
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_GetOverlappedResult
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
call fcn.5102fd78
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebx]
sub eax, dword [edx + 0x14]
cmp eax, 0xc8
jbe 0x5105fc9b
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebx]
mov dword [edx + 0x14], eax
push 0
push 0
push 0x409
mov eax, dword [0x5107edc4]
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [ebx]
cmp byte [eax + 0x10], 0
jne 0x5105fcce
mov eax, dword [ebx]
cmp word [eax + 0x1a], 0
je 0x5105fcb8
mov esi, dword [ebx]
mov edx, dword [ebx]
mov eax, dword [esi + 0x1c]
call dword [esi + 0x18]
jmp 0x5105fcce
mov ecx, 0x5105fcdc
mov dl, 1
mov eax, dword [0x51007aec]
call fcn.5100c314
call fcn.51003f1c
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x510610b8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
push esp
push 5
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.510047a8
mov eax, dword [ebx]
call fcn.510047f8
test eax, eax
jle 0x51061111
mov eax, dword [ebx]
call fcn.510047f8
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x51061111
mov eax, ebx
mov edx, 0x51061124
call fcn.51004800
add esp, 0x10c
pop ebx
ret