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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45640c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4563ed
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4563fc
or bl, 4
test esi, 0x20000000
je 0x456407
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45cab4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45cac6
add esp, 0xfffffff0
call fcn.0040390c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00427354
mov eax, dword [0x597a4c]
mov dword [eax + 4], ebx
mov dword [eax], 0x45ce58
mov eax, dword [0x597a5c]
mov dword [eax + 4], ebx
mov dword [eax], 0x45ce64
mov eax, ebx
call fcn.0045ce70
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41c06c]
call fcn.00403590
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41c06c]
call fcn.00403590
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41c06c]
call fcn.00403590
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41c06c]
call fcn.00403590
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41c06c]
call fcn.00403590
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, 0x45928c
push eax
push 0
push 0
mov eax, dword [0x597cd4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x428da4]
call fcn.0042a1e8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x428da4]
call fcn.0042a1e8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x428da4]
call fcn.0042a1e8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045d290
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45d16c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45d16c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45d16c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45cc03
call fcn.00403964
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45cf50
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 0x45d0fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45d0dc
mov dl, 1
mov eax, dword [0x41c6d0]
call fcn.00403590
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004043dc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45d0cb
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.0044af40
test al, al
je 0x45d0be
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, 0x45d10c
lea eax, [ebp - 0x254]
call fcn.0040a3a4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45d0be
xor eax, eax
push ebp
push 0x45d0b7
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 0x45d144
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45d0a0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040465c
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 0x45d0a0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040465c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d0be
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45cfc1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00420e94
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 0x45d102
lea eax, [ebp - 0x260]
call fcn.004043dc
ret

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

Disassembly:
push ecx
mov eax, dword [0x599bbc]
cmp byte [eax + 0xa5], 0
jne 0x45daa1
cmp dword [0x599bd4], 0
jne 0x45da62
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45d9ec
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x599bd4], eax
cmp dword [0x599bd0], 0
jne 0x45da7d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x599bd0], eax
cmp dword [0x599bd8], 0
jne 0x45daa1
push esp
push 0
push 0
push 0x45d990
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x599bd8], eax
pop edx
ret
Function at 0x45db98
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45dbaf
add esp, 0xfffffff0
call fcn.0040390c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00427354
mov eax, dword [0x597cb8]
cmp word [eax + 2], 0
jne 0x45dbd7
mov eax, dword [0x597cb8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045f270
mov eax, dword [0x597e10]
cmp word [eax + 2], 0
jne 0x45dbf1
mov eax, dword [0x597e10]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045f468
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41c06c]
call fcn.00403590
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41c06c]
call fcn.00403590
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 [0x429554]
call fcn.0042f5f4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45dd78
mov eax, dword [0x597b10]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042f9c4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45fa08
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x597b10]
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.0040e8f0
test eax, eax
je 0x45dce6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409d84
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e918
test eax, eax
je 0x45dcfa
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.0040465c
mov eax, dword [0x5978a8]
cmp byte [eax], 0
jne 0x45dd2e
mov eax, ebx
call fcn.0045dea0
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.0045fbe4
mov eax, ebx
call fcn.004605a8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45dd6e
call fcn.00403964
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e120
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x599bbc]
cmp dword [eax + 0x30], 0
je 0x45e1ca
cmp dword [ebx + 0x94], 0
jne 0x45e1c4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45e0b0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45e1c4
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 0x45e18a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45e1c4
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.0041e8fc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45e199
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45ed2c
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 0x45ed61
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.004044cc
jmp 0x45ed6e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404430
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45fdc0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45fe01
mov eax, esi
call fcn.0044656c
test al, al
je 0x45fe01
mov eax, dword [ebx + 0x84]
call fcn.00446268
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45fe01
push 0
mov eax, dword [ebx + 0x84]
call fcn.00446268
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x478d4c
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push ebx
push esi
test dl, dl
je 0x478d65
add esp, 0xfffffff0
call fcn.0040390c
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x478dda
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.0041f2f4
xor edx, edx
mov eax, esi
call fcn.00478f04
xor edx, edx
mov eax, esi
call fcn.00478f28
xor eax, eax
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [esi + 0x28], eax
xor eax, eax
mov dword [esi + 0x2c], eax
lea eax, [ebp - 0x10]
call fcn.00419c6c
lea edx, [ebp - 0x10]
lea eax, [esi + 0x18]
call fcn.004118bc
mov byte [esi + 0x39], 0
mov byte [esi + 0x30], 1
lea eax, [esi + 0x10]
call fcn.004043dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478de1
lea eax, [ebp - 0x10]
call fcn.004115a8
ret
Function at 0x4c1ef8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
test esi, esi
je 0x4c1f7e
mov eax, dword [ebp + 8]
shr eax, 2
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
and eax, 3
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x4c1f3c
inc eax
xor ebx, ebx
mov edx, dword [ebp - 4]
add edx, ebx
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + ebx*4]
xor dword [esi + edx*4], ecx
inc ebx
dec eax
jne 0x4c1f2a
cmp dword [ebp - 0x10], 0
jle 0x4c1f7e
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov edi, dword [esi + eax*4]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
xor edi, dword [eax + edx*4]
mov ebx, dword [ebp - 0x10]
cmp ebx, 1
jl 0x4c1f7e
mov eax, edi
push eax
mov ecx, dword [ebp - 4]
shl ecx, 2
add ecx, dword [ebp + 8]
sub ecx, ebx
mov edx, esi
mov eax, dword [0x480168]
call fcn.00481bc0
shr edi, 8
dec ebx
test ebx, ebx
jne 0x4c1f5c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4c1f88
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
test edx, edx
je 0x4c1fb2
mov esi, ecx
dec esi
test esi, esi
jl 0x4c1fb2
inc esi
xor ecx, ecx
xor ebx, ebx
mov bl, byte [edx + ecx]
xor eax, ebx
imul eax, eax, 0x8088405
inc eax
mov ebx, eax
shr ebx, 0x18
mov byte [edx + ecx], bl
inc ecx
dec esi
jne 0x4c1f98
pop esi
pop ebx
ret
Function at 0x4c449c
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov ebx, dword [ebp + 8]
add ebx, 0xffffffdc
mov esi, dword [ebp + 8]
add esi, 0xfffffffc
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
push ebp
call fcn.004c4424
pop ecx
jmp 0x4c45d3
mov eax, ebx
mov edx, dword [ebx + edx*4 - 0x1c]
shr edx, 8
and edx, 0xff
mov dl, byte [edx + 0x58cc4c]
xor dl, byte [eax]
mov ecx, dword [ebp - 0xc]
xor dl, byte [ecx + 0x591ab4]
mov byte [eax], dl
inc eax
mov edx, dword [esi]
mov edx, dword [edx + 0x40]
mov edx, dword [ebx + edx*4 - 0x1c]
shr edx, 0x10
and edx, 0xff
mov dl, byte [edx + 0x58cc4c]
xor byte [eax], dl
inc eax
mov edx, dword [esi]
mov edx, dword [edx + 0x40]
mov edx, dword [ebx + edx*4 - 0x1c]
shr edx, 0x18
mov dl, byte [edx + 0x58cc4c]
xor byte [eax], dl
inc eax
mov edx, dword [esi]
mov edx, dword [edx + 0x40]
mov edx, dword [ebx + edx*4 - 0x1c]
and edx, 0xff
mov dl, byte [edx + 0x58cc4c]
xor byte [eax], dl
inc dword [ebp - 0xc]
mov eax, dword [esi]
mov eax, dword [eax + 0x40]
cmp eax, 0xe
jne 0x4c45b6
mov edx, 3
mov eax, ebx
mov ecx, dword [eax]
xor dword [eax + 4], ecx
add eax, 4
dec edx
jne 0x4c4549
lea eax, [ebx + 0x10]
mov edx, dword [ebx + 0xc]
and edx, 0xff
mov dl, byte [edx + 0x58cc4c]
xor byte [eax], dl
inc eax
mov edx, dword [ebx + 0xc]
shr edx, 8
and edx, 0xff
mov dl, byte [edx + 0x58cc4c]
xor byte [eax], dl
inc eax
mov edx, dword [ebx + 0xc]
shr edx, 0x10
and edx, 0xff
mov dl, byte [edx + 0x58cc4c]
xor byte [eax], dl
inc eax
mov edx, dword [ebx + 0xc]
shr edx, 0x18
mov dl, byte [edx + 0x58cc4c]
xor byte [eax], dl
mov edx, 3
lea eax, [ebx + 0x10]
mov ecx, dword [eax]
xor dword [eax + 4], ecx
add eax, 4
dec edx
jne 0x4c45a9
jmp 0x4c45cc
mov edx, eax
sub edx, 7
test edx, edx
jle 0x4c45cc
mov eax, ebx
mov ecx, dword [eax]
xor dword [eax + 4], ecx
add eax, 4
dec edx
jne 0x4c45c1
push ebp
call fcn.004c4424
pop ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x40]
cmp edx, dword [ebp - 4]
jge 0x4c44cb
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c45e8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x30]
mov ebx, eax
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov esi, dword [edx + 0x34]
shr esi, 1
push ebx
push esi
push esi
mov edx, dword [ebp + 8]
mov edx, eax
xor ecx, ecx
mov eax, dword [0x480168]
call fcn.00481ad0
test esi, esi
jns 0x4c461f
add esi, 3
sar esi, 2
add esi, 4
mov eax, esi
shl eax, 2
add ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov esi, dword [eax + 0x40]
shl esi, 2
sub esi, 5
test esi, esi
jl 0x4c46ab
inc esi
mov edi, dword [ebx]
mov eax, edi
shr eax, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x58ee4c]
mov edx, 8
call fcn.004c1e84
and edi, 0xff
xor eax, dword [edi*4 + 0x58ee4c]
push eax
mov eax, dword [ebx]
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x58ee4c]
mov edx, 0x10
call fcn.004c1e84
pop edx
xor edx, eax
push edx
mov eax, dword [ebx]
shr eax, 0x18
mov eax, dword [eax*4 + 0x58ee4c]
mov edx, 0x18
call fcn.004c1e84
pop edx
xor edx, eax
mov dword [ebx], edx
add ebx, 4
dec esi
jne 0x4c4640
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4c4aa0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov dword [ebp - 4], edx
lea eax, [ebp - 0x100]
xor ecx, ecx
mov edx, 0x80
call fcn.00402f28
mov dword [ebp - 8], 0x38
mov eax, 0x58f24c
lea edx, [ebp - 0x48]
mov bl, byte [eax]
mov ecx, ebx
and cl, 7
mov esi, 0x80
shr esi, cl
xor ecx, ecx
mov cl, bl
shr ecx, 3
add ecx, dword [ebp + 0x14]
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebx + ecx]
and esi, ecx
je 0x4c4af7
mov byte [edx], 1
jmp 0x4c4afa
mov byte [edx], 0
inc edx
inc eax
dec dword [ebp - 8]
jne 0x4c4acf
xor eax, eax
mov dword [ebp - 8], eax
mov esi, 0x591ad4
cmp byte [ebp + 8], 0
je 0x4c4b20
mov eax, 0xf
sub eax, dword [ebp - 8]
add eax, eax
mov dword [ebp - 0xc], eax
jmp 0x4c4b28
mov eax, dword [ebp - 8]
add eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0x10], eax
xor eax, eax
lea edx, [ebp - 0x80]
xor ecx, ecx
mov cl, byte [esi]
add ecx, eax
cmp ecx, 0x1c
jae 0x4c4b47
mov cl, byte [ebp + ecx - 0x48]
mov byte [edx], cl
jmp 0x4c4b4d
mov cl, byte [ebp + ecx - 0x64]
mov byte [edx], cl
inc eax
inc edx
cmp eax, 0x1c
jne 0x4c4b34
mov eax, 0x1c
lea edx, [ebp - 0x64]
xor ecx, ecx
mov cl, byte [esi]
add ecx, eax
cmp ecx, 0x38
jae 0x4c4b6f
mov cl, byte [ebp + ecx - 0x48]
mov byte [edx], cl
jmp 0x4c4b75
mov cl, byte [ebp + ecx - 0x64]
mov byte [edx], cl
inc eax
inc edx
cmp eax, 0x38
jne 0x4c4b5c
mov ecx, 0x1000000
mov eax, 0x18
mov edx, 0x58f284
shr ecx, 1
xor ebx, ebx
mov bl, byte [edx]
cmp byte [ebp + ebx - 0x80], 0
je 0x4c4ba2
mov ebx, dword [ebp - 0xc]
or dword [ebp + ebx*4 - 0x100], ecx
xor ebx, ebx
mov bl, byte [edx + 0x18]
cmp byte [ebp + ebx - 0x80], 0
je 0x4c4bb8
mov ebx, dword [ebp - 0x10]
or dword [ebp + ebx*4 - 0x100], ecx
inc edx
dec eax
jne 0x4c4b8b
inc dword [ebp - 8]
inc esi
cmp dword [ebp - 8], 0x10
jne 0x4c4b0b
mov eax, dword [ebp + 0xc]
shl eax, 2
add dword [ebp + 0x10], eax
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp + eax*4 - 0x100]
mov ecx, eax
and ecx, 0xfc0000
shl ecx, 6
and eax, 0xfc0
shl eax, 0xa
or ecx, eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + eax*4 - 0x100]
mov eax, edx
and eax, 0xfc0000
shr eax, 0xa
or ecx, eax
and edx, 0xfc0
shr edx, 6
or ecx, edx
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
add dword [ebp + 0x10], 4
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp + eax*4 - 0x100]
mov ecx, eax
and ecx, 0x3f000
shl ecx, 0xc
and eax, 0x3f
shl eax, 0x10
or ecx, eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + eax*4 - 0x100]
mov eax, edx
and eax, 0x3f000
shr eax, 4
or ecx, eax
and edx, 0x3f
or ecx, edx
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
add dword [ebp + 0x10], 4
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x10
jne 0x4c4bd8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4c63d4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, eax
xor edx, edx
mov eax, 8
add edx, edx
mov ecx, ebx
and cl, 1
or dl, cl
xor ecx, ecx
mov cl, bl
shr ecx, 1
mov ebx, ecx
dec eax
jne 0x4c63e3
mov ebx, edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 0x30
xor ecx, ecx
mov edx, 0x200
call fcn.00402f28
xor eax, eax
mov ecx, eax
mov edx, 8
mov esi, dword [ebp + 8]
mov esi, dword [esi - 4]
shl word [esi + eax*2 + 0x30], 1
test cl, 0x80
je 0x4c643a
mov esi, ebx
and esi, 0xff
mov edi, dword [ebp + 8]
mov edi, dword [edi - 4]
xor word [edi + eax*2 + 0x30], si
add ecx, ecx
dec edx
jne 0x4c6417
inc eax
cmp eax, 0x100
jne 0x4c6410
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4d0aa4
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4d0af1
test esi, esi
jle 0x4d0af1
push 0
push 0x3e8
mov eax, esi
cdq
call fcn.00405530
mov dword [esp], eax
mov dword [esp + 4], edx
push 8
lea eax, [esp + 4]
push eax
push 0x1005
push 0xffff
push ebx
call sub.wsock32.dll_setsockopt
test eax, eax
sete al
neg al
sbb eax, eax
call fcn.0040f108
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4d0af8
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4d0b41
push 0
push 0x3e8
mov eax, esi
cdq
call fcn.00405530
mov dword [esp], eax
mov dword [esp + 4], edx
push 8
lea eax, [esp + 4]
push eax
push 0x1006
push 0xffff
push ebx
call sub.wsock32.dll_setsockopt
test eax, eax
sete al
neg al
sbb eax, eax
call fcn.0040f108
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4d0b64
Capabilities:
Get socket status

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef4
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [esp + 8]
call fcn.004d0888
lea edx, [esp + 8]
mov eax, ebx
call fcn.004d0878
test esi, esi
jge 0x4d0b8f
xor esi, esi
jmp 0x4d0bb2
mov eax, esi
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [esp], eax
mov eax, esi
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [esp + 4], eax
mov esi, esp
push esi
push 0
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [ebx + 1]
push eax
call sub.wsock32.dll_select
test eax, eax
jge 0x4d0bd4
call fcn.004d0a9c
mov dword [edi], eax
xor eax, eax
jmp 0x4d0be3
xor eax, eax
mov dword [edi], eax
lea edx, [esp + 8]
mov eax, ebx
call fcn.004d0860
add esp, 0x10c
pop edi
pop esi
pop ebx
ret
Function at 0x4d1230
Capabilities:
Resolve dns

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov esi, edx
lea edi, [esp]
push ecx
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop ecx
mov ebx, ecx
mov edi, eax
push edi
call sub.wsock32.dll_inet_addr
mov esi, eax
cmp esi, 0xffffffff
jne 0x4d1267
push edi
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4d1267
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, 0xffffffff
jne 0x4d1279
call sub.wsock32.dll_WSAGetLastError
mov ebp, eax
xor eax, eax
mov dword [ebx], eax
jmp 0x4d12e0
xor ebp, ebp
mov edx, 0x20
mov eax, dword [0x47fd0c]
call fcn.00480344
mov dword [ebx], eax
mov eax, dword [ebx]
xor ecx, ecx
mov edx, 0x20
call fcn.00402f28
mov eax, dword [ebx]
mov edx, dword [esp + 8]
mov dword [eax + 8], edx
mov eax, dword [ebx]
mov edx, dword [esp + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebx]
mov edx, dword [esp + 4]
mov dword [eax + 4], edx
mov eax, dword [ebx]
mov edx, 0x10
mov dword [eax + 0x10], edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
mov eax, dword [0x47fd0c]
call fcn.00480344
mov edi, eax
mov eax, dword [ebx]
mov dword [eax + 0x18], edi
mov ax, word [esp + 4]
mov word [edi], ax
mov dword [edi + 4], esi
mov eax, ebp
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4d1dd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x20], edx
xor eax, eax
push ebp
push 0x4d1ea5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
lea eax, [edx + eax]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.wsock32.dll_recv
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4d1e87
call fcn.004d1450
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [eax + 8], ebx
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0x20]
mov eax, dword [ebp + 8]
mov eax, ebx
call fcn.0040d208
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov esi, dword [eax + 8]
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0
lea edx, [ebp - 0x1c]
mov ecx, 2
mov eax, 0x4d1ebc
call fcn.0040a424
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 4
call fcn.00404430
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1eac
lea eax, [ebp - 0x20]
call fcn.004043dc
lea eax, [ebp - 4]
call fcn.004043dc
ret