joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bf19f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push 0
mov esi, dword [edi + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push 5
movzx edx, si
mov ebx, eax
push edx
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4bf1db
mov ecx, dword [ecx + 4]
jmp 0x4bf1dd
xor ecx, ecx
push 0
push 0x4bee44
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
push edi
push 0
push 0x110
push eax
mov dword [edi + 4], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop edi
pop esi
mov al, 1
pop ebx
ret

Function at 0x4bf3f8
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x194], eax
xor eax, eax
push 0x18e
push eax
mov word [esp + 8], ax
lea eax, [esp + 0xa]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4bf443
xor al, al
jmp 0x4bf44a
cmp byte [esp], 2
sete al
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00401000
mov esp, ebp
pop ebp
ret 8

Function at 0x4bf72a
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x4bf78d
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp ecx, 1
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x4bf818
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x2b8], 0
lea eax, [ebp - 0x2b4]
push esi
push 0x2b0
push 0
push eax
mov esi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2b8]
push 0x4010
push 0x2b4
push eax
push 0x80
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2b4]
xor ecx, ebp
pop esi
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x4bf87d
Capabilities:
Create process on windows

Disassembly:
cmp dword [edx + 4], 0
push esi
mov esi, 0x4ef644
push 1
mov eax, esi
cmovne eax, dword [edx + 4]
cmp dword [ecx + 4], 0
push 0
cmovne esi, dword [ecx + 4]
push eax
push esi
push str.open
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
pop esi
setg al
ret

Function at 0x4bf8b7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0x34
lea eax, [ebp - 0x34]
mov dword [ebp - 0x3c], 0x3c
push 0
push eax
mov edi, edx
mov esi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x38], 0xc
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ecx, dword [esi]
cmp dword [edi + 4], 0
mov dword [ebp - 0x18], ecx
mov ecx, 0x4ef644
cmovne ecx, dword [edi + 4]
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4bf9cd
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 1
mov esi, ecx
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
mov edi, eax
mov ecx, esi
push 3
lea eax, [ebp - 8]
push eax
call fcn.004ba02c
mov ecx, 0x4ef644
cmp dword [eax + 4], 0
cmovne ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
lea ecx, [ebp - 8]
mov dword [ebp - 8], vtable.micro::utils::QString.0
mov esi, eax
call fcn.004b9e50
push edi
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
cmp esi, 2
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4c013a
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
jne 0x4c016d
cmp dword [esi + 4], 0
mov eax, 0x4ef644
push 2
cmovne eax, dword [esi + 4]
push 0
push 0
push dword [ebp + 8]
push 1
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileExW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jmp 0x4c017b
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
je 0x4c018d
mov ecx, dword [ebp + 8]
call fcn.004c0029
test al, al
jne 0x4c0140
inc al
jmp 0x4c0198
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0xc], eax
xor al, al
pop esi
pop ebp
ret 4

Function at 0x4c08d1
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x2b8], 0
lea eax, [ebp - 0x2b4]
push esi
push 0x2b0
push 0
push eax
mov esi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2b8]
push 0x4008
push 0x2b4
push eax
push 0
push dword [esi]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2b4]
xor ecx, ebp
pop esi
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x4c0934
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp dword [esi], ebx
je 0x4c0951
push dword [esi]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push ebx
lea eax, [ebp - 4]
mov dword [esi], ebx
push eax
push 2
lea eax, [ebp - 8]
mov dword [ebp - 4], ebx
push eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4c09bf
cmp dword [ebp - 4], ebx
jbe 0x4c09bf
mov eax, dword [ebp - 8]
test ax, ax
je 0x4c09bb
movzx eax, ax
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
push ebx
mov ecx, eax
mov dword [ebp - 4], ebx
movzx eax, word [ebp - 8]
lea edx, [ebp - 4]
push edx
push eax
mov eax, dword [ebp + 8]
push ecx
mov dword [esi], ecx
push dword [eax + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4c09af
cmp dword [ebp - 4], ebx
ja 0x4c09bd
push dword [esi]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [esi], ebx
jmp 0x4c09bf
mov dword [esi], ebx
mov bl, 1
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4c1293
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, 0x4ef644
push 5
cmp dword [eax + 4], 0
cmovne edx, dword [eax + 4]
xor eax, eax
push eax
push eax
push edx
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
inc eax
pop ebp
ret 4

Function at 0x4c146a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push 0x17
mov esi, eax
push 0x9e
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4c1495
xor al, al
jmp 0x4c14ee
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x4c1491
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4c14b3
xor al, al
jmp 0x4c14ed
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov edi, eax
lea ecx, [edi + 2]
push ecx
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
push edi
mov esi, eax
push ebx
push esi
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 4]
add esp, 0x10
mov word [esi + edi], 0
push esi
call fcn.004ba792
push esi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov al, 1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c1cbd
Capabilities:
Delete registry value

Disassembly:
push 4
mov eax, 0x4d2761
call fcn.0040193b
cmp dword [ecx + 0x10], 0
lea edx, [ebp - 0x10]
push edx
mov esi, 0x4ef644
mov eax, esi
cmovne eax, dword [ecx + 0x10]
xor ebx, ebx
push 2
push ebx
push eax
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c1d11
cmp dword [ebp + 0xc], ebx
cmovne esi, dword [ebp + 0xc]
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4c1d11
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
mov dword [ebp + 8], vtable.micro::utils::QString.0
call fcn.004b9e50
mov al, bl
call fcn.00401a13
ret 8

Function at 0x4c1d2e
Capabilities:
Set registry value

Disassembly:
push 0x208
mov eax, 0x4d278c
call fcn.004019a4
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4c1d50
mov eax, dword [ecx - 8]
jmp 0x4c1d52
mov eax, ebx
cmp eax, 0xfe
jg 0x4c1e0f
mov esi, 0x4ef644
test ecx, ecx
mov eax, esi
cmovne eax, ecx
push eax
lea eax, [ebp - 0x210]
push 0xff
push eax
call dword [sym.imp.msvcrt.dll_wcscpy_s]
add esp, 0xc
lea ecx, [ebp - 0x214]
cmp dword [edi + 0x10], 0
mov eax, esi
cmovne eax, dword [edi + 0x10]
push ecx
push 0x20006
push ebx
push eax
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c1e0f
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4c1dad
sub ecx, edx
sar ecx, 1
cmp dword [ebp + 0xc], 0
cmovne esi, dword [ebp + 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x210]
push eax
xor eax, eax
inc eax
push eax
push ebx
push esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
inc ecx
movzx ebx, cl
xor ecx, ecx
test eax, eax
cmovne ebx, ecx
cmp byte [edi + 8], cl
jne 0x4c1e03
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
mov esi, vtable.micro::utils::QString.0
mov dword [ebp + 8], esi
call fcn.004b9e50
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x10], esi
call fcn.004b9e50
mov al, bl
call fcn.00401a27
ret 0x10
Function at 0x4c20f3
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
push 0x34
xor edx, edx
mov dword [ebp - 0x18], ebx
pop eax
div ebx
xor ecx, ecx
mov dword [ebp - 8], esi
add eax, 6
lea edx, [ebx - 1]
mov dword [ebp - 0x10], eax
movzx eax, byte [esi + ebx - 1]
mov ebx, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edx
sub ecx, 0x61c88647
xor edi, edi
mov esi, ecx
mov dword [ebp - 0xc], ecx
shr esi, 2
and esi, dword [ebp + 0xc]
test edx, edx
je 0x4c2191
movzx ebx, byte [edi + ebx + 1]
mov ecx, dword [ebp - 4]
mov edx, ebx
shl al, 4
shr edx, 3
xor dl, al
shr ecx, 5
mov al, bl
shl al, 2
xor cl, al
mov eax, edi
and eax, 3
add dl, cl
mov ecx, dword [ebp + 8]
xor eax, esi
movzx edx, dl
mov cl, byte [eax + ecx]
xor cl, byte [ebp - 4]
mov al, byte [ebp - 0xc]
xor al, bl
mov ebx, dword [ebp - 8]
add cl, al
movzx eax, cl
xor edx, eax
movzx eax, byte [edi + ebx]
add eax, edx
mov byte [edi + ebx], al
inc edi
movzx eax, al
mov dword [ebp - 4], eax
cmp edi, dword [ebp - 0x14]
jb 0x4c213c
movzx ebx, byte [ebx]
and edi, 3
mov ecx, dword [ebp - 4]
mov edx, ebx
shl al, 4
xor edi, esi
shr edx, 3
xor dl, al
shr ecx, 5
mov al, bl
shl al, 2
xor cl, al
mov eax, dword [ebp + 8]
add dl, cl
movzx edx, dl
mov cl, byte [edi + eax]
xor cl, byte [ebp - 4]
mov al, byte [ebp - 0xc]
xor al, bl
mov ebx, dword [ebp - 8]
add cl, al
movzx eax, cl
mov ecx, dword [ebp - 0x18]
xor edx, eax
movzx eax, byte [ebx + ecx - 1]
add eax, edx
dec dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov byte [ebx + ecx - 1], al
mov ecx, dword [ebp - 0xc]
movzx eax, al
mov dword [ebp - 4], eax
jne 0x4c2125
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c21f7
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0xc], ecx
push 0x34
xor edx, edx
mov dword [ebp - 0x10], esi
pop eax
div esi
lea edx, [esi - 1]
add eax, 6
mov dword [ebp - 0x14], edx
imul ebx, eax, 0x9e3779b9
movzx eax, byte [ecx]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov esi, ebx
mov edi, edx
shr esi, 2
and esi, dword [ebp + 0xc]
test edi, edi
je 0x4c2287
movzx ebx, byte [edi + ecx - 1]
mov ecx, dword [ebp - 4]
mov edx, ebx
shl al, 2
shr edx, 5
xor dl, al
shr ecx, 3
mov al, bl
shl al, 4
xor cl, al
mov eax, edi
and eax, 3
add dl, cl
mov ecx, dword [ebp + 8]
xor eax, esi
movzx edx, dl
mov cl, byte [eax + ecx]
mov al, byte [ebp - 8]
xor cl, bl
xor al, byte [ebp - 4]
add cl, al
movzx eax, cl
mov ecx, dword [ebp - 0xc]
xor edx, eax
movzx eax, byte [edi + ecx]
sub eax, edx
mov byte [edi + ecx], al
movzx eax, al
mov dword [ebp - 4], eax
dec edi
jne 0x4c2235
mov edx, dword [ebp - 0x10]
and edi, 3
shl al, 2
xor edi, esi
movzx ebx, byte [ecx + edx - 1]
mov ecx, dword [ebp - 4]
mov edx, ebx
shr edx, 5
xor dl, al
shr ecx, 3
mov al, bl
shl al, 4
xor cl, al
mov eax, dword [ebp + 8]
add dl, cl
movzx edx, dl
mov cl, byte [edi + eax]
xor cl, bl
mov ebx, dword [ebp - 8]
mov al, bl
xor al, byte [ebp - 4]
add cl, al
movzx eax, cl
mov ecx, dword [ebp - 0xc]
xor edx, eax
movzx eax, byte [ecx]
sub eax, edx
mov edx, dword [ebp - 0x14]
mov byte [ecx], al
add ebx, 0x61c88647
movzx eax, al
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
jne 0x4c2227
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c32cb
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi + 5]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esi + 1]
push eax
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov byte [esi], 1
pop esi
ret

Function at 0x4c32ea
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 5
push dword [esi + 5]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esi + 1]
push eax
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov byte [esi], 0
pop esi
ret
Function at 0x4c35d0
Capabilities:
Hide graphical window

Disassembly:
push 4
mov eax, 0x4d2869
call fcn.0040193b
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov ecx, esi
mov eax, dword [esi]
push edi
call dword [eax + 8]
test al, al
je 0x4c3692
push 0x20
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
pop ecx
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4c361f
push dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
push ecx
push esi
mov ecx, eax
call fcn.004c465a
jmp 0x4c3621
mov eax, ebx
mov byte [ebp - 4], bl
lea ecx, [edi + 0x54]
cmp dword [edi + 0x5c], ebx
push eax
sete bl
call fcn.00403b28
push 5
push dword [esi + 4]
test bl, bl
je 0x4c3651
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
and dword [edi + 0x1c], 0
jmp 0x4c3678
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
call esi
mov eax, dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x64]
push 0
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0xc]
push dword [eax + 4]
call esi
mov eax, dword [edi + 0x5c]
mov ecx, edi
dec eax
mov dword [edi + 0x1c], eax
call fcn.004c36d5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1b0]
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x10], vtable.micro::utils::QString.0
call fcn.004b9e50
mov al, bl
call fcn.00401a13
ret 0x10

Function at 0x4c4365
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x14], ebx
mov eax, dword [ebx]
call dword [eax + 0x1b0]
cmp dword [ebx + 0x5c], 1
jle 0x4c443b
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0xf]
or dword [esp + 0x10], 0xffffffff
mov ecx, ebx
push eax
lea eax, [esp + 0x14]
mov byte [esp + 0x13], 0
push eax
push esi
call fcn.004c386e
cmp byte [esp + 0xf], 0
je 0x4c43bc
mov eax, dword [esp + 0x10]
mov byte [ebx + 0x34], 1
mov dword [ebx + 0x38], eax
jmp 0x4c4432
test al, al
je 0x4c443b
mov edx, dword [ebx + 0x1c]
mov eax, dword [esp + 0x10]
cmp eax, edx
je 0x4c441a
mov ecx, dword [ebx + 0x64]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
mov eax, dword [ecx + eax*4]
mov ebx, dword [eax + 0xc]
mov eax, dword [ecx + edx*4]
push dword [ebx + 4]
mov edi, dword [eax + 0xc]
call esi
push 0
push dword [edi + 4]
call esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov ebx, dword [esp + 0x14]
mov ecx, ebx
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x1c], eax
call fcn.004c36d5
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1b0]
mov eax, dword [esp + 0x10]
mov esi, dword [ebp + 0xc]
test byte [ebx + 0x20], 8
je 0x4c443b
mov byte [ebx + 0x24], 1
mov dword [ebx + 0x28], eax
mov eax, dword [esi]
mov dword [ebx + 0x2c], eax
mov eax, dword [esi + 4]
mov dword [ebx + 0x30], eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetCapture]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4c4522
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, ecx
mov ecx, dword [ebp + 8]
push esi
mov dword [ebp - 4], eax
mov esi, dword [eax + 0x1c]
cmp ecx, esi
je 0x4c4580
mov edx, dword [eax + 0x64]
push ebx
push edi
push 5
mov eax, dword [edx + esi*4]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [eax + 0xc]
mov eax, dword [edx + ecx*4]
mov ebx, dword [eax + 0xc]
push dword [ebx + 4]
call esi
push 0
push dword [edi + 4]
call esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov esi, dword [ebp - 4]
mov ecx, esi
mov eax, dword [ebp + 8]
mov dword [esi + 0x1c], eax
call fcn.004c36d5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1b0]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4c4587
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
push 0x4f5278
mov ebx, ecx
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
cmp dword [ebp + 8], 0x7b
jne 0x4c45d8
mov edx, dword [ebx + 0x28]
mov eax, dword [ebx + 0x64]
push 0
push 0x28
mov edi, dword [eax + edx*4 + 4]
lea esi, [edi + 0x10]
push esi
call dword [sym.imp.USER32.dll_OffsetRect]
push 0
push 0xffffffffffffffff
mov ecx, ebx
call fcn.004c3fed
mov eax, dword [esi + 8]
add eax, dword [ebx + 0x44]
sub eax, dword [esi]
cmp dword [edi + 0x18], eax
jl 0x4c4618
push 0x7b
jmp 0x4c460f
cmp dword [ebp + 8], 0x7a
jne 0x4c4618
mov ecx, dword [ebx + 0x28]
mov eax, dword [ebx + 0x64]
push 0
push 0xffffffffffffffd8
mov esi, dword [eax + ecx*4 - 4]
add esi, 0x10
push esi
call dword [sym.imp.USER32.dll_OffsetRect]
push 0
push 0xffffffffffffffff
mov ecx, ebx
call fcn.004c3fed
mov eax, dword [ebx + 0x3c]
sub eax, dword [esi + 8]
add eax, dword [esi]
cmp dword [esi], eax
jg 0x4c4618
push 0x7a
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_KillTimer]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4c5655
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x12
xor esi, esi
call dword [sym.imp.USER32.dll_GetKeyState]
push 4
pop edi
xor edx, edx
mov ecx, 0x8000
inc edx
test cx, ax
mov eax, dword [ebp + 0xc]
push 2
pop ebx
je 0x4c5681
mov esi, dword [eax]
and esi, edi
jmp 0x4c5697
test byte [ebp + 8], 8
je 0x4c568d
mov esi, dword [eax]
and esi, edx
jmp 0x4c5697
test byte [ebp + 8], 4
je 0x4c569b
mov esi, dword [eax]
and esi, ebx
test esi, esi
jne 0x4c56b2
test byte [eax], 4
cmovne esi, edi
test byte [eax], 2
cmovne esi, ebx
test byte [eax], 1
cmovne esi, edx
test esi, esi
cmove esi, edx
pop edi
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4c56f4
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ax, word [esi]
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push edi
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
or ebx, 0xffffffff
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x4c575b
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x4c5745
xor al, al
jmp 0x4c57cd
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push dword [esi + 8]
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0xc], eax
cmp eax, ebx
je 0x4c573e
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 0x1c]
push 4
push ecx
push 4
push 0xffff
push eax
mov dword [ebp - 0x1c], 1
call edi
cmp eax, ebx
jne 0x4c579a
mov ecx, esi
call fcn.004c56dc
jmp 0x4c573e
xor eax, eax
push 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0x80
push 0xffff
push dword [esi + 0xc]
call edi
cmp eax, ebx
je 0x4c5791
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, ebx
je 0x4c5791
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret 8

Function at 0x4c593f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push 0x4de4d0
mov ebx, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov dword [ebp - 0xc], eax
mov esi, 0x80004005
test eax, eax
je 0x4c5988
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
mov ecx, esi
xor eax, eax
test edi, edi
cmovne ecx, eax
test ecx, ecx
js 0x4c59a9
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edx, eax
xor eax, eax
test edx, edx
mov dword [ebp - 8], edx
cmovne esi, eax
test esi, esi
js 0x4c59a9
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push ecx
push ecx
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov edx, eax
call fcn.004c59c2
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret