joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49c874
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004072d8
xor eax, eax
push ebp
push 0x49ca09
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x49c9d7
xor edx, edx
push ebp
push 0x49c9d0
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00407344
mov eax, dword [ebp - 8]
test eax, eax
je 0x49c8e3
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x49c8e3
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00406760
test eax, eax
je 0x49c8ec
sub eax, 4
mov eax, dword [eax]
add eax, eax
add eax, 2
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x49c9a5
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor edx, edx
push ebp
push 0x49c994
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00407344
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x49c94e
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x49c94e
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00406760
test eax, eax
je 0x49c957
sub eax, 4
mov eax, dword [eax]
mov esi, eax
add esi, esi
mov eax, dword [ebp - 4]
call fcn.0040737c
lea ecx, [esi + 2]
mov edx, ebx
call fcn.004043ec
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 0x10]
push eax
push 0xd
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c99b
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x62ab50]
mov dl, 1
mov eax, dword [0x40e384]
call fcn.004197f4
call fcn.00405d8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ca10
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004072e8
ret

Function at 0x4a0d34
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004072f0
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x4a0d7b
push pe_nt_image_headers32
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.004074f0
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x4a6578
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a66b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x44d410]
call fcn.0044e614
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4a6687
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0044e6fc
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.004074f0
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x4a66cc
call fcn.004077c4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0044e978
test al, al
je 0x4a6671
lea ecx, [ebp - 4]
mov edx, 0x4a6740
mov eax, dword [ebp - 0xc]
call fcn.0044f274
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0041c43c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4a666a
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4a6758
mov eax, dword [ebp - 8]
push eax
call fcn.0040c26c
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x62273c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6671
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a668e
mov eax, dword [ebp - 0xc]
call fcn.004052b4
ret

Function at 0x4a67bc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x4a6803
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4a67e6
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4a67f7
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x4a6803
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4dba38
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 0x4dba5e
mov eax, esp
push eax
push 0x4dba00
call sub.user32.dll_EnumWindows
jmp 0x4dba71
mov eax, esp
push eax
push 0x4db9e0
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 0x4dbb34
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x4dbb84]
test bl, 4
je 0x4dbb48
or si, 1
test bl, 8
je 0x4dbb51
or si, 4
test bl, 1
je 0x4dbb5a
or si, 8
test bl, 2
je 0x4dbb63
or si, 0x10
test bl, 0x10
je 0x4dbb6c
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4dbb7c
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4dbb88
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x4dbbc4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4dbba3
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4dbbb3
or bx, 4
test esi, 0x20000000
je 0x4dbbbf
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4e4e6c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e5019
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4e4ffa
mov dl, 1
mov eax, dword [0x42d684]
call fcn.00439d10
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
xor edx, edx
call fcn.004072f0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4e4fe9
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.004c66fc
test al, al
je 0x4e4fdc
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4e5028
lea eax, [ebp - 0x394]
call fcn.00415364
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4e4fdc
xor eax, eax
push ebp
push 0x4e4fd5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4e5098
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4e4fbe
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.004074f0
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
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 + 0x40]
jne 0x4e4fbe
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.004074f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e4fdc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4e4edf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.00439c4c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e5020
lea eax, [ebp - 0x3a0]
call fcn.004072e0
ret

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

Disassembly:
push ecx
mov eax, dword [0x6312bc]
cmp byte [eax + 0xad], 0
jne 0x4e5bea
cmp dword [0x6312d4], 0
jne 0x4e5baa
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x622ac8]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x6312d4], eax
cmp dword [0x6312d0], 0
jne 0x4e5bc5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x6312d0], eax
cmp dword [0x6312d8], 0
jne 0x4e5bea
push esp
push 0
push 0
mov eax, dword [0x622ac4]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x6312d8], eax
pop edx
ret
Function at 0x4e5f10
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4e5f27
add esp, 0xfffffff0
call fcn.004057e8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00442824
mov eax, dword [0x62aa18]
cmp byte [eax], 0
jne 0x4e5f54
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x62b1d0]
cmp word [eax + 2], 0
jne 0x4e5f6e
mov eax, dword [0x62b1d0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004e8008
mov eax, dword [0x62b460]
cmp word [eax + 2], 0
jne 0x4e5f88
mov eax, dword [0x62b460]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004e8218
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x450b3c]
call fcn.00456e10
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4e87c8
mov dl, 1
mov eax, dword [0x42af84]
call fcn.00405284
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x42af84]
call fcn.00405284
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 [0x454fd4]
call fcn.004602e8
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4e6168
mov eax, dword [0x62aecc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0046077c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4e8ab0
mov dl, 1
mov eax, dword [0x42af84]
call fcn.00405284
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x62aecc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0041515c
test eax, eax
je 0x4e6099
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00414f24
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00415140
test eax, eax
je 0x4e60b1
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.004074f0
push ebx
push 0x4e79d8
call fcn.004dbb18
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x62aa18]
cmp byte [eax], 0
jne 0x4e6102
mov eax, ebx
call fcn.004e62dc
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004e8cdc
mov eax, ebx
call fcn.004e9910
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4e615f
call fcn.00405840
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e7624
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4e768f
cmp byte [ebx + 0xd3], 0
jne 0x4e768f
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040742c
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4e767c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4e769c
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004072f0
jmp 0x4e769c
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004072f0
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4e8ec4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4e8f32
mov eax, esi
call fcn.004c0608
test al, al
je 0x4e8f32
mov eax, dword [ebx + 0x84]
call fcn.004c025c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4e8f32
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4e8f26
push 0
mov eax, dword [ebx + 0x84]
call fcn.004c025c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004b7230
jmp 0x4e8f32
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004e8cfc
pop esi
pop ebx
ret

Function at 0x4ea790
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00408e10
xor eax, eax
push ebp
push 0x4ea84b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 4]
call fcn.00408ac4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
call sub.Crypt32.dll_CryptUnprotectData
test eax, eax
je 0x4ea82f
mov eax, dword [ebp - 0x1c]
inc eax
push eax
mov eax, dword [ebp - 8]
mov ecx, 1
mov edx, dword [0x4e9f08]
call fcn.00408c8c
add esp, 4
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00408ac4
mov edx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
xor ecx, ecx
call fcn.00404b1c
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
call fcn.004043ec
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ea852
lea eax, [ebp - 4]
mov edx, dword [0x4e9f08]
call fcn.00408dac
ret
Function at 0x5bee28
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0
cmp dword [ebp - 4], 0
jne 0x5bee4a
push 0
call sub.kernel32.dll_GetModuleHandleW_2
mov dword [ebp - 0x10], eax
jmp 0x5bee5b
mov eax, dword [ebp - 4]
call fcn.0040737c
push eax
call sub.kernel32.dll_GetModuleHandleW_2
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5bef1a
push 0x10
push 1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindResourceW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5bef1a
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x5bef1a
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x30]
mov dword [eax], edx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x34]
shr eax, 0x10
mov edx, dword [ebp - 8]
mov word [edx + 4], ax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov dx, word [edx + 0x34]
mov word [eax + 6], dx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x44]
and eax, 1
cmp eax, 1
sete al
mov edx, dword [ebp - 8]
mov byte [edx + 8], al
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x44]
and eax, 2
cmp eax, 2
sete al
mov edx, dword [ebp - 8]
mov byte [edx + 9], al
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x44]
and eax, 8
cmp eax, 8
sete al
mov edx, dword [ebp - 8]
mov byte [edx + 0xa], al
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x44]
and eax, 0x20
cmp eax, 0x20
sete al
mov edx, dword [ebp - 8]
mov byte [edx + 0xb], al
mov byte [ebp - 9], 1
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret
Function at 0x5ca1a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], 0
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x5ca339
xor eax, eax
push ebp
push 0x5ca32f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
push 4
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
mov eax, dword [ebp - 0x18]
push eax
call sub.wsock32.dll_setsockopt
mov word [ebp - 0x1c], 0
mov word [ebp - 0x1a], 0
push 4
lea eax, [ebp - 0x1c]
push eax
push 0x80
push 0xffff
mov eax, dword [ebp - 0x18]
push eax
call sub.wsock32.dll_setsockopt
push 4
lea eax, [ebp - 0x14]
push eax
push 1
push 6
mov eax, dword [ebp - 0x18]
push eax
call sub.wsock32.dll_setsockopt
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x10
call fcn.00404b1c
mov word [ebp - 0x3c], 2
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_ntohl
mov dword [ebp - 0x38], eax
mov ax, word [ebp - 8]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x3a], ax
mov dword [ebp - 0x28], 1
lea eax, [ebp - 0x28]
push eax
push 0x8004667e
mov eax, dword [ebp - 0x18]
push eax
call sub.wsock32.dll_ioctlsocket
push 0x10
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wsock32.dll_connect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ca339
lea eax, [ebp - 0x140]
call fcn.004e9ea0
lea edx, [ebp - 0x140]
mov eax, dword [ebp - 0x18]
call fcn.004e9e90
mov eax, dword [ebp - 0xc]
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0x24]
push eax
push 0
lea eax, [ebp - 0x140]
push eax
push 0
push 0
call sub.wsock32.dll_select
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 0x8004667e
mov eax, dword [ebp - 0x18]
push eax
call sub.wsock32.dll_ioctlsocket
xor eax, eax
push ebp
push 0x5ca31c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
call sub.wsock32.dll_closesocket
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5ca326
cmp dword [ebp - 0x2c], 0
setne byte [ebp - 0xd]
ret
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x604898
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
mov word [ebp - 6], dx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004072d8
xor eax, eax
push ebp
push 0x604956
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 7], 0
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.00404b1c
mov dword [ebp - 0x50], 0x44
mov dword [ebp - 0x24], 0x41
mov ax, word [ebp - 6]
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040737c
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x60493b
push 0x64
mov eax, dword [ebp - 0x60]
mov dword [0x631d10], eax
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x60490c
test eax, eax
sete byte [ebp - 7]
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [0x631d10], eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60495d
lea eax, [ebp - 4]
call fcn.004072e0
ret

Function at 0x60f704
Capabilities:
Get networking parameters

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x60f808
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 0x18]
push eax
push 0
call sub.Iphlpapi.dll_GetNetworkParams
mov eax, dword [ebp - 0x18]
call fcn.00404200
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.Iphlpapi.dll_GetNetworkParams
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x60f763
mov eax, dword [ebp - 0x10]
call fcn.00404250
jmp 0x60f7ed
mov eax, dword [ebp - 0x10]
add eax, 0x10c
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
xor edx, edx
call fcn.00407344
cmp dword [ebp - 0x14], 0
je 0x60f7b7
push dword [ebp - 0x20]
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x14]
add edx, 4
mov ecx, 0x10
call fcn.004074d8
push dword [ebp - 0x24]
push 0x60f824
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004078a8
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x60f77e
mov eax, dword [ebp - 8]
push dword [eax]
push 0x60f834
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x20]
call fcn.00413808
push dword [ebp - 0x28]
push 0x60f84c
mov eax, dword [ebp - 8]
mov edx, 4
call fcn.004078a8
mov eax, dword [ebp - 0x10]
call fcn.00404250
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60f80f
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.004072e8
ret
Function at 0x10009a50
Capabilities:
Read file on windows

Disassembly:
push dword [esp + 0x18]
push dword [esp + 0x14]
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.10048d8e
add esp, 0x10
xor edx, edx
ret

Function at 0x10009b2d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
not edx
push edi
mov edi, dword [esp + 0xc]
test esi, esi
je 0x10009b59
movzx eax, byte [edi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x1005e5e8]
inc edi
sub esi, 1
jne 0x10009b41
not edx
pop edi
mov eax, edx
pop esi
ret

Function at 0x10009b60
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
not ebx
push edi
mov edi, dword [esp + 0x14]
mov edx, ebx
test edi, edi
je 0x10009bc6
mov al, byte [esi]
dec edi
inc esi
cmp al, 0x23
jne 0x10009b8e
cmp edi, 2
jb 0x10009b8e
cmp byte [esi], al
jne 0x10009b8e
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x1005e5e8]
test edi, edi
jne 0x10009b77
jmp 0x10009bcd
cmp al, 0x23
jne 0x10009bb4
cmp byte [esi], al
jne 0x10009bb4
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x1005e5e8]
mov al, byte [esi]
inc esi
test al, al
jne 0x10009ba6
pop edi
not edx
pop esi
mov eax, edx
pop ebx
ret