joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45682c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x456852
mov eax, esp
push eax
push 0x4567f4
call sub.user32.dll_EnumWindows
jmp 0x456865
mov eax, esp
push eax
push 0x4567d4
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x45690c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x456960]
test si, 4
je 0x456921
or bl, 1
test si, 8
je 0x45692b
or bl, 4
test si, 1
je 0x456935
or bl, 8
test si, 2
je 0x45693f
or bl, 0x10
test si, 0x10
je 0x456949
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x456958
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x456964
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4569a0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45697e
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45698d
or bl, 4
test esi, 0x20000000
je 0x456998
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45ea0c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45ea1e
add esp, 0xfffffff0
call fcn.00403fd4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e9bc
mov eax, dword [0x48c7a8]
mov dword [eax + 4], ebx
mov dword [eax], 0x45edb0
mov eax, dword [0x48c7b4]
mov dword [eax + 4], ebx
mov dword [eax], 0x45edbc
mov eax, ebx
call fcn.0045edc8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415ee8]
call fcn.00403c80
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415ee8]
call fcn.00403c80
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415ee8]
call fcn.00403c80
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415ee8]
call fcn.00403c80
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415ee8]
call fcn.00403c80
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, 0x45a270
push eax
push 0
push 0
mov eax, dword [0x48c93c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x424bb8]
call fcn.0042640c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x424bb8]
call fcn.0042640c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x424bb8]
call fcn.0042640c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045f240
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45f110
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45f110
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45f110
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45eb5b
call fcn.0040402c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45eef4
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 0x45f09f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45f080
mov dl, 1
mov eax, dword [0x41630c]
call fcn.00403c80
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404bd4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45f06f
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.00450648
test al, al
je 0x45f062
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, 0x45f0b0
lea eax, [ebp - 0x254]
call fcn.0040a03c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45f062
xor eax, eax
push ebp
push 0x45f05b
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 0x45f0e8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45f044
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404e44
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 0x45f044
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404e44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f062
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45ef65
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041a11c
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 0x45f0a6
lea eax, [ebp - 0x260]
call fcn.00404bd4
ret

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

Disassembly:
push ecx
mov eax, dword [0x491c9c]
cmp byte [eax + 0xad], 0
jne 0x45fa89
cmp dword [0x491cb8], 0
jne 0x45fa4a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45f9d4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x491cb8], eax
cmp dword [0x491cb4], 0
jne 0x45fa65
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x491cb4], eax
cmp dword [0x491cbc], 0
jne 0x45fa89
push esp
push 0
push 0
push 0x45f978
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x491cbc], eax
pop edx
ret
Function at 0x45fc8c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45fca3
add esp, 0xfffffff0
call fcn.00403fd4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e9bc
mov eax, dword [0x48c924]
cmp word [eax + 2], 0
jne 0x45fccb
mov eax, dword [0x48c924]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004619ec
mov eax, dword [0x48c9e8]
cmp word [eax + 2], 0
jne 0x45fce5
mov eax, dword [0x48c9e8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00461bf8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415ee8]
call fcn.00403c80
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415ee8]
call fcn.00403c80
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x415ee8]
call fcn.00403c80
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x4256c8]
call fcn.0042d10c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x45fe9c
mov eax, dword [0x48c824]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042d4e0
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4622cc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x48c824]
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.0040d964
test eax, eax
je 0x45fdec
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004099e0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d998
test eax, eax
je 0x45fe00
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404e44
mov byte [ebx + 0xd4], 0
push ebx
push 0x461460
call fcn.0041fb38
mov dword [ebx + 0xc8], eax
mov eax, dword [0x48c6e0]
cmp byte [eax], 0
jne 0x45fe51
mov eax, ebx
call fcn.0045ffe0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004624e0
mov eax, ebx
call fcn.00463044
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45fe91
call fcn.0040402c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x460260
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4602ff
cmp dword [ebx + 0x94], 0
jne 0x4602f9
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4601e8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4602f9
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 0x4602bf
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4602f9
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.004182e8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4602ce
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x460518
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x491c9c]
cmp dword [eax + 0x30], 0
je 0x460675
test bl, bl
jne 0x4605c6
cmp dword [esi + 0x9c], 0
jne 0x4605bb
mov eax, esi
call fcn.00462ec0
push eax
push 0x460444
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x46058c
mov eax, dword [0x491c9c]
call fcn.004635a0
test al, al
je 0x46058c
mov eax, dword [0x491cc0]
call fcn.00405d18
mov edi, eax
cmp edi, 0
jl 0x46058c
push 0
mov eax, dword [0x491cc0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x460576
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4605bb
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004182e8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x46059b
inc dword [esi + 0x9c]
jmp 0x460675
cmp dword [esi + 0x9c], 0
jle 0x460675
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x460675
cmp dword [esi + 0x44], 0
je 0x460621
mov eax, dword [0x491c9c]
call fcn.004635a0
test al, al
je 0x460621
mov eax, dword [0x491cc0]
call fcn.00405d18
mov edi, eax
cmp edi, 0
jl 0x460621
push 5
mov eax, dword [0x491cc0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x46060b
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x460650
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004182e8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x460630
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x491cc0
mov ecx, 1
mov edx, dword [0x460424]
call fcn.00405ecc
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x46115c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4611c6
mov eax, ebx
call fcn.004635a0
test al, al
jne 0x4611c6
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.00404cc4
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x4611b3
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4611d3
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404c28
jmp 0x4611d3
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404c28
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x4626c4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x462732
mov eax, esi
call fcn.0044b278
test al, al
je 0x462732
mov eax, dword [ebx + 0x84]
call fcn.0044aed8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x462732
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x462726
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044aed8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00442d48
jmp 0x462732
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00462500
pop esi
pop ebx
ret

Function at 0x463690
Capabilities:
Read file via mapping

Disassembly:
push 0x463730
push 0
push 0xf001f
call sub.kernel32.dll_OpenFileMappingA
mov dword [0x491cd4], eax
cmp dword [0x491cd4], 0
jne 0x463700
push 0x463730
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov dword [0x491cd4], eax
push 0
push 0
push 0
push 6
mov eax, dword [0x491cd4]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x491cd8], eax
cmp dword [0x491cd8], 0
jne 0x4636f5
mov eax, dword [0x491cd4]
push eax
call sub.kernel32.dll_CloseHandle
ret
mov eax, dword [0x491cd8]
xor edx, edx
mov dword [eax], edx
jmp 0x46372c
push 0
push 0
push 0
push 6
mov eax, dword [0x491cd4]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x491cd8], eax
cmp dword [0x491cd8], 0
jne 0x46372c
mov eax, dword [0x491cd4]
push eax
call sub.kernel32.dll_CloseHandle
ret
Function at 0x46665c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x46668a
mov eax, ebx
call fcn.00467110
cmp dword [ebx + 0x40], 0
je 0x466683
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4666fb
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4666ed
cmp dword [ebx + 8], 0
je 0x4666ac
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 0x4666be
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4666ed
cmp dword [ebx + 8], 0
je 0x46669f
cmp eax, 3
je 0x4666d1
dec eax
jne 0x46669f
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 0x46669f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x46669f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x466719
cmp dword [ebx + 0x14], 0xcc
je 0x466719
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.00466724
pop ebx
ret
Function at 0x47bc90
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47bd4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x12], 6
xor eax, eax
lea edx, [ebp - 0x10]
movzx ecx, byte [ebx + eax + 0x11e0]
mov byte [edx], cl
inc eax
inc edx
cmp eax, 4
jne 0x47bcbd
xor eax, eax
lea edx, [ebp - 0xc]
movzx ecx, byte [ebx + eax + 0x11e4]
mov byte [edx], cl
inc eax
inc edx
cmp eax, 6
jne 0x47bcd3
movzx eax, word [ebx + 0x11ea]
xchg al, ah
mov word [ebp - 6], ax
push 0xe
lea eax, [ebp - 0x12]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push esi
mov eax, dword [ebx + 0x1034]
push eax
call sub.wsock32.dll_sendto
inc eax
jne 0x47bd38
call sub.wsock32.dll_WSAGetLastError
push eax
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
lea ecx, [ebp - 0x18]
mov eax, ebx
call fcn.0047c67c
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x47aef4]
call fcn.0047b374
call fcn.00404524
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bd55
lea eax, [ebp - 0x18]
call fcn.00404bd4
ret

Function at 0x47bec4
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x47bf61
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [esi + 0x1034], 0xffffffff
je 0x47bf45
test bl, bl
je 0x47bef9
mov dword [ebp - 4], 1
jmp 0x47befe
xor eax, eax
mov dword [ebp - 4], eax
push 4
lea eax, [ebp - 4]
push eax
push 0x20
push 0xffff
mov eax, dword [esi + 0x1034]
push eax
call sub.wsock32.dll_setsockopt
inc eax
jne 0x47bf45
call sub.wsock32.dll_WSAGetLastError
push eax
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
lea ecx, [ebp - 8]
mov eax, esi
call fcn.0047c67c
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x47aef4]
call fcn.0047b374
call fcn.00404524
mov byte [esi + 0x11c8], bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bf68
lea eax, [ebp - 8]
call fcn.00404bd4
ret

Function at 0x47bf70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x47c010
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [esi + 0x1034], 0xffffffff
je 0x47bff4
test bl, bl
je 0x47bfa5
mov dword [ebp - 4], 1
jmp 0x47bfaa
xor eax, eax
mov dword [ebp - 4], eax
push 4
lea eax, [ebp - 4]
push eax
push 0x4005
push 0x3e8
mov eax, dword [esi + 0x1034]
push eax
call sub.wsock32.dll_setsockopt
inc eax
jne 0x47bff4
call sub.wsock32.dll_WSAGetLastError
push eax
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
lea ecx, [ebp - 8]
mov eax, esi
call fcn.0047c67c
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x47aef4]
call fcn.0047b374
call fcn.00404524
mov byte [esi + 0x11ca], bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c017
lea eax, [ebp - 8]
call fcn.00404bd4
ret
Function at 0x47c44c
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x47c52c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edi, dword [esi + 0x1034]
cmp edi, 0xffffffff
je 0x47c50b
test bl, bl
je 0x47c4c4
push 4
lea eax, [esi + 0x11f0]
push eax
push 0x4001
push 0x3e8
push edi
call sub.wsock32.dll_setsockopt
inc eax
jne 0x47c50b
call sub.wsock32.dll_WSAGetLastError
push eax
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
lea ecx, [ebp - 4]
mov eax, esi
call fcn.0047c67c
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x47aef4]
call fcn.0047b374
call fcn.00404524
jmp 0x47c50b
push 4
lea eax, [esi + 0x11f0]
push eax
push 0x4003
push 0x3e8
push edi
call sub.wsock32.dll_setsockopt
inc eax
jne 0x47c50b
call sub.wsock32.dll_WSAGetLastError
push eax
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
lea ecx, [ebp - 8]
mov eax, esi
call fcn.0047c67c
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x47aef4]
call fcn.0047b374
call fcn.00404524
mov byte [esi + 0x11ec], bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c533
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404bf8
ret

Function at 0x47c5e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47c66e
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 0x1034]
cmp esi, 0xffffffff
je 0x47c64f
push 4
lea eax, [ebp - 4]
push eax
push 0x4000
push 0x3e8
push esi
call sub.wsock32.dll_setsockopt
inc eax
jne 0x47c64f
call sub.wsock32.dll_WSAGetLastError
push eax
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
lea ecx, [ebp - 8]
mov eax, ebx
call fcn.0047c67c
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x47aef4]
call fcn.0047b374
call fcn.00404524
mov eax, dword [ebp - 4]
mov dword [ebx + 0x11f4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c675
lea eax, [ebp - 8]
call fcn.00404bd4
ret

Function at 0x47e81c
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x3f
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004052f4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00405064
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x47e85d
mov edx, dword [ebp - 8]
dec edx
mov eax, dword [ebp - 4]
call fcn.004052f4
jmp 0x47e86a
mov edx, dword [ebp - 4]
mov eax, dword [0x48c7d4]
call fcn.00406a90
pop ecx
pop ecx
pop ebp
ret
Function at 0x48055c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x480583
mov eax, dword [ebp - 0x18]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
call fcn.004052f4
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4805a5
mov eax, dword [ebp - 0x1c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x4805fd
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0xc]
call fcn.004050c4
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
mov cl, byte [ecx + ebx - 1]
mov ebx, dword [ebp - 8]
shr ebx, 8
xor cl, bl
mov byte [eax + edx - 1], cl
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
movzx eax, byte [eax + edx - 1]
add eax, dword [ebp - 8]
imul eax, eax, 0xce6d
add eax, 0x58bf
mov dword [ebp - 8], eax
inc dword [ebp - 0x10]
dec dword [ebp - 0x14]
jne 0x4805b6
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x480604
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x48062b
mov eax, dword [ebp - 0x18]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
call fcn.004052f4
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x48064d
mov eax, dword [ebp - 0x1c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x4806a3
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0xc]
call fcn.004050c4
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
mov cl, byte [ecx + ebx - 1]
mov ebx, dword [ebp - 8]
shr ebx, 8
xor cl, bl
mov byte [eax + edx - 1], cl
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
movzx eax, byte [eax + edx - 1]
add eax, dword [ebp - 8]
imul eax, eax, 0xce6d
add eax, 0x58bf
mov dword [ebp - 8], eax
inc dword [ebp - 0x10]
dec dword [ebp - 0x14]
jne 0x48065e
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48366c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, 0x104
call fcn.004052f4
push 0x104
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00405064
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004052f4
pop ecx
pop ecx
pop ebp
ret