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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x489fc4]
cmp byte [eax + 0xc], 0
je 0x44a315
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44a30e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x48abe4], 0
jne 0x44a1fc
push 0x44a31c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44a324
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48abe4], eax
cmp dword [0x487bfc], 0
jne 0x44a2f7
push 0x44a334
call sub.kernel32.dll_LoadLibraryA
mov dword [0x487bfc], eax
cmp dword [0x487bfc], 0
je 0x44a2f7
push 0x44a340
mov eax, dword [0x487bfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48abe8], eax
push 0x44a350
mov eax, dword [0x487bfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48abec], eax
push 0x44a364
mov eax, dword [0x487bfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48abf0], eax
push 0x44a37c
mov eax, dword [0x487bfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48abf4], eax
push 0x44a394
mov eax, dword [0x487bfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48abf8], eax
push 0x44a3a8
mov eax, dword [0x487bfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48abfc], eax
push 0x44a3c0
mov eax, dword [0x487bfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48ac00], eax
push 0x44a3d8
mov eax, dword [0x487bfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48ac04], eax
push 0x44a3f4
mov eax, dword [0x487bfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48ac08], eax
push 0x44a400
mov eax, dword [0x487bfc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48ac0c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44a315
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44e094
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.004044fc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44e0e3
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.00404764
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x455f30
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x455f80]
test si, 4
je 0x455f44
or bl, 1
test si, 8
je 0x455f4e
or bl, 4
test si, 1
je 0x455f58
or bl, 8
test si, 2
je 0x455f62
or bl, 0x10
test si, 0x10
je 0x455f6c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x455f7b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x455f84
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x455fbc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x455f9d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x455fac
or bl, 4
test esi, 0x20000000
je 0x455fb7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45c5d8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45c5ea
add esp, 0xfffffff0
call fcn.00403af4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00421e0c
mov eax, dword [0x489c60]
mov dword [eax + 4], ebx
mov dword [eax], 0x45c97c
mov eax, dword [0x489c6c]
mov dword [eax + 4], ebx
mov dword [eax], 0x45c988
mov eax, ebx
call fcn.0045c994
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x417dcc]
call fcn.00403760
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x417dcc]
call fcn.00403760
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x417dcc]
call fcn.00403760
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x417dcc]
call fcn.00403760
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x417dcc]
call fcn.00403760
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, 0x458e5c
push eax
push 0
push 0
mov eax, dword [0x489dac]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4237ec]
call fcn.00424f00
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4237ec]
call fcn.00424f00
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4237ec]
call fcn.00424f00
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045cdb4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45cc90
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45cc90
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45cc90
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45c727
call fcn.00403b4c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45ca74
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 0x45cc1f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45cc00
mov dl, 1
mov eax, dword [0x4182bc]
call fcn.00403760
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004044fc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45cbef
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.0044a508
test al, al
je 0x45cbe2
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, 0x45cc30
lea eax, [ebp - 0x254]
call fcn.00409564
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45cbe2
xor eax, eax
push ebp
push 0x45cbdb
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 0x45cc68
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45cbc4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404764
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 0x45cbc4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404764
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45cbe2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45cae5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041c418
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 0x45cc26
lea eax, [ebp - 0x260]
call fcn.004044fc
ret

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

Disassembly:
push ecx
mov eax, dword [0x48ac28]
cmp byte [eax + 0xa5], 0
jne 0x45d5c5
cmp dword [0x48ac40], 0
jne 0x45d586
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45d510
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x48ac40], eax
cmp dword [0x48ac3c], 0
jne 0x45d5a1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x48ac3c], eax
cmp dword [0x48ac44], 0
jne 0x45d5c5
push esp
push 0
push 0
push 0x45d4b4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x48ac44], eax
pop edx
ret
Function at 0x45d6bc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45d6d3
add esp, 0xfffffff0
call fcn.00403af4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00421e0c
mov eax, dword [0x489d9c]
cmp word [eax + 2], 0
jne 0x45d6fb
mov eax, dword [0x489d9c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045ed98
mov eax, dword [0x489e48]
cmp word [eax + 2], 0
jne 0x45d715
mov eax, dword [0x489e48]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045ef90
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x417dcc]
call fcn.00403760
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x417dcc]
call fcn.00403760
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 [0x42426c]
call fcn.0042b9e4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45d89c
mov eax, dword [0x489cc4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042bdb4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45f500
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x489cc4]
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.0040c928
test eax, eax
je 0x45d80a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408ec0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c950
test eax, eax
je 0x45d81e
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.00404764
mov eax, dword [0x489bb0]
cmp byte [eax], 0
jne 0x45d852
mov eax, ebx
call fcn.0045d9c4
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.0045f6dc
mov eax, ebx
call fcn.0046008c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45d892
call fcn.00403b4c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45dc38
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x48ac28]
cmp dword [eax + 0x30], 0
je 0x45dce2
cmp dword [ebx + 0x94], 0
jne 0x45dcdc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45dbc8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45dcdc
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 0x45dca2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45dcdc
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.0041a46c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45dcb1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45e7c0
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 0x45e7f5
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.004045ec
jmp 0x45e802
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404550
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45f8b8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45f8f9
mov eax, esi
call fcn.00445c88
test al, al
je 0x45f8f9
mov eax, dword [ebx + 0x84]
call fcn.00445984
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45f8f9
push 0
mov eax, dword [ebx + 0x84]
call fcn.00445984
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4607fc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov eax, dword [0x487e38]
inc ecx
dec ecx
test ecx, ecx
jl 0x460848
inc ecx
mov ebx, dword [edx]
mov esi, eax
shr esi, 0x1b
and esi, 0x1f
xor dword [edx], esi
xor eax, ebx
mov ebx, eax
shl ebx, 5
xor eax, ebx
mov ebx, eax
shl ebx, 0xa
xor eax, ebx
mov ebx, eax
shl ebx, 0xf
xor eax, ebx
mov ebx, eax
shl ebx, 0x14
xor eax, ebx
mov ebx, eax
shl ebx, 0x19
xor eax, ebx
mov ebx, eax
shl ebx, 0x1e
xor eax, ebx
add edx, 4
dec ecx
jne 0x46080a
pop esi
pop ebx
ret

Function at 0x460fdc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00460b8c
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004049ac
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x46103a
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x489db4]
mov dl, 1
mov eax, dword [0x460a84]
call fcn.0040bd68
call fcn.00403f5c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x461044
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004049ac
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x46109c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x489fd0]
mov dl, 1
mov eax, dword [0x460a84]
call fcn.0040bd68
call fcn.00403f5c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00460bbc
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x461c58
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ecx, 0xe7f931c2
mov edi, edx
sub edi, 9
sub edi, 8
jl 0x461ca2
inc edi
mov esi, 8
mov edx, ecx
shr edx, 0x18
xor ebx, ebx
mov bl, byte [eax + esi]
xor ebx, edx
and ebx, 0xff
mov edx, ebx
mov byte [eax + esi], dl
xor ecx, edx
mov edx, ecx
shr edx, 8
xor ecx, edx
mov edx, ecx
shr edx, 0x10
xor ecx, edx
mov edx, ecx
shr edx, 0x18
xor ecx, edx
inc esi
dec edi
jne 0x461c70
mov eax, ecx
pop edi
pop esi
pop ebx
ret

Function at 0x461ca8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ecx
mov ecx, 0xe7f931c2
mov edi, edx
sub edi, 9
sub edi, 8
jl 0x461cfd
inc edi
mov edx, 8
mov bl, byte [eax + edx]
mov byte [esp], bl
movzx esi, byte [eax + edx]
mov ebx, ecx
shr ebx, 0x18
xor esi, ebx
and esi, 0xff
mov ebx, esi
mov byte [eax + edx], bl
xor ebx, ebx
mov bl, byte [esp]
xor ecx, ebx
mov ebx, ecx
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
shr ebx, 0x10
xor ecx, ebx
mov ebx, ecx
shr ebx, 0x18
xor ecx, ebx
inc edx
dec edi
jne 0x461cc1
mov eax, ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x462794
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
lea eax, [ebp - 4]
call fcn.00404f1c
xor eax, eax
push ebp
push 0x46284c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404c78
mov eax, ebx
mov ecx, 0x481
cdq
idiv ecx
mov ebx, edx
test ebx, ebx
jne 0x4627dc
mov ebx, 1
mov esi, ebx
dec esi
test esi, esi
jl 0x462826
inc esi
mov eax, dword [ebp - 8]
call fcn.00404d9c
mov ecx, eax
test ecx, ecx
jle 0x462823
mov edx, 1
mov eax, dword [ebp - 8]
movzx eax, word [eax + edx*2 - 2]
mov ebx, eax
and ebx, 0xff00
and eax, 0xff
mov eax, dword [eax*4 + 0x48829c]
or ebx, eax
mov eax, ebx
mov ebx, dword [ebp - 8]
mov word [ebx + edx*2 - 2], ax
inc edx
dec ecx
jne 0x4627f7
dec esi
jne 0x4627e4
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
call fcn.004625a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462853
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404c30
ret
Function at 0x46285c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
lea eax, [ebp - 4]
call fcn.00404f1c
xor eax, eax
push ebp
push 0x462916
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004625a0
mov eax, ebx
mov ecx, 0x481
cdq
idiv ecx
mov ebx, edx
test ebx, ebx
jne 0x4628a4
mov ebx, 1
mov eax, dword [ebp - 8]
call fcn.00404d9c
mov dword [ebp - 0xc], eax
dec ebx
test ebx, ebx
jl 0x4628f0
inc ebx
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jle 0x4628ed
mov edx, 1
mov eax, dword [ebp - 8]
movzx eax, word [eax + edx*2 - 2]
mov esi, eax
and esi, 0xff00
and eax, 0xff
mov eax, dword [eax*4 + 0x487e9c]
or esi, eax
mov eax, esi
mov esi, dword [ebp - 8]
mov word [esi + edx*2 - 2], ax
inc edx
dec ecx
jne 0x4628c1
dec ebx
jne 0x4628b5
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
call fcn.00404c54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46291d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404c30
ret

Function at 0x463e4c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x463f88
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x463fa0
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.00465558
mov eax, dword [ebp - 4]
call fcn.00464de8
xor edx, edx
push ebp
push 0x463f6b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
jne 0x463f0a
test si, si
jne 0x463ebc
mov eax, dword [ebp - 8]
call fcn.00408e84
mov esi, eax
cmp esi, 0xffff
jbe 0x463ebc
call fcn.004036d0
movzx ebx, si
push 0
push ebx
movzx eax, si
sub eax, ebx
mov edx, dword [ebp - 8]
lea eax, [edx + eax]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10290]
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x463f0a
cmp eax, 0xffffffff
jle 0x463eeb
sub ebx, eax
jmp 0x463efa
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.0046548c
test ebx, ebx
je 0x463f0a
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x463ebf
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x463f55
mov eax, dword [ebp - 4]
mov byte [eax + 0x10090], 0
mov ecx, 0x463fb8
mov dl, 1
mov eax, dword [0x463434]
call fcn.0040bc70
call fcn.00403f5c
mov eax, dword [ebp - 4]
cmp word [eax + 0x1028a], 0
je 0x463f55
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1028c]
call dword [ebx + 0x10288]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463f72
mov eax, dword [ebp - 4]
call fcn.00464e40
ret
Function at 0x4644b8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0040499c
xor eax, eax
push ebp
push 0x464680
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x464698
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.00465558
push 0
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4184bc]
call fcn.0041c9d8
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x464610
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
jne 0x4645cb
mov eax, dword [ebp - 4]
lea edx, [eax + 0x30]
mov ecx, 0x10000
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x10]
push 0
push ebx
mov eax, dword [ebp - 0x10]
sub eax, ebx
cmp eax, 0x10000
jbe 0x46454f
call fcn.004036d0
mov edx, dword [ebp - 4]
lea eax, [edx + eax + 0x30]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10290]
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x4645cb
cmp eax, 0xffffffff
jle 0x46459c
sub ebx, eax
mov edx, dword [ebp - 4]
add dword [edx + 0x1008c], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0x100ca], 0
je 0x4645ab
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x100cc]
call dword [esi + 0x100c8]
jmp 0x4645ab
lea ecx, [ebp - 0x14]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.0046548c
mov eax, dword [0x489e34]
mov eax, dword [eax]
call fcn.0045eaec
test ebx, ebx
je 0x4645cb
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x46453b
mov eax, dword [ebp - 0xc]
call fcn.0041c4c8
push edx
push eax
mov eax, dword [ebp - 0xc]
call fcn.0041c4fc
cmp edx, dword [esp + 4]
jne 0x4645e6
cmp eax, dword [esp]
pop edx
pop eax
je 0x4645fa
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x464512
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464617
mov eax, dword [ebp - 0xc]
call fcn.00403790
ret
Function at 0x4646c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0040499c
xor eax, eax
push ebp
push 0x464896
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4648ac
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.00465558
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x100bc], edx
mov eax, dword [ebp - 4]
call fcn.00464de8
xor eax, eax
push ebp
push 0x464871
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffff
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4184bc]
call fcn.0041c9d8
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x464809
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x4647e3
push 0
push 0x10000
mov eax, dword [ebp - 4]
add eax, 0x30
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10290]
push eax
call sub.wsock32.dll_recv
mov ebx, eax
test ebx, ebx
jle 0x4647a7
mov eax, dword [ebp - 4]
lea edx, [eax + 0x30]
mov ecx, ebx
mov eax, dword [ebp - 0xc]
call fcn.0041c72c
mov eax, dword [ebp - 4]
add dword [eax + 0x100bc], ebx
mov eax, dword [ebp - 4]
cmp word [eax + 0x100c2], 0
je 0x46479f
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x100c4]
call dword [esi + 0x100c0]
mov eax, dword [ebp - 4]
call fcn.00464de8
cmp ebx, 0xffffffff
jne 0x4647d3
call sub.wsock32.dll_WSAGetLastError
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x10094], esi
cmp esi, 0x2749
je 0x4647f3
lea ecx, [ebp - 0x10]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.0046548c
test ebx, ebx
je 0x4647f3
mov eax, dword [0x489e34]
mov eax, dword [eax]
call fcn.0045eaec
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10090], 0
je 0x464743
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464810
mov eax, dword [ebp - 0xc]
call fcn.00403790
ret