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

Disassembly:
mov eax, dword [0x648114]
test eax, eax
je 0x4e1fdf
mov eax, 1
ret
call fcn.004e1790
test eax, 0x4003
jne 0x4e1fee
xor eax, eax
ret
push esi
push edi
push str.HSTxtCap.dll
xor edi, edi
call dword [sym.imp.kernel32.dll_LoadLibraryA]
test eax, eax
mov dword [0x648114], eax
je 0x4e2106
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.GetSharedData
push eax
call esi
mov dword [0x648118], eax
mov eax, dword [0x648114]
push str.CaptureConsoleText
push eax
call esi
mov ecx, dword [0x648118]
mov dword [0x64813c], eax
test ecx, ecx
je 0x4e20e6
test eax, eax
je 0x4e20e6
call ecx
test eax, eax
mov dword [0x648128], eax
je 0x4e20e6
mov ecx, dword [0x648104]
test ecx, ecx
je 0x4e206d
cmp dword [eax + 8], ecx
jne 0x4e206d
mov edi, 1
mov eax, edi
pop edi
pop esi
ret
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4e20e6
mov ecx, dword [0x648114]
push str.InstallTxMsgHook
push ecx
call esi
mov edx, dword [0x648114]
push str.ReleaseTxMsgHook
push edx
mov dword [0x64811c], eax
call esi
mov dword [0x648120], eax
mov eax, dword [0x648114]
push str.TxSnap_SetSnapMoreMode
push eax
call esi
mov ecx, dword [esp + 0xc]
mov dword [0x648124], eax
mov eax, dword [esp + 0x10]
xor edx, edx
test eax, eax
sete dl
test eax, eax
mov dword [0x648138], ecx
mov edi, 1
mov dword [0x648130], edx
je 0x4e2106
push 0
push 0
push 0x4e1820
call fcn.004f990c
add esp, 0xc
mov eax, edi
pop edi
pop esi
ret
mov eax, dword [0x648114]
push eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov dword [0x648114], 0
mov dword [0x648128], 0
mov eax, edi
pop edi
pop esi
ret
Function at 0x4e23d0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword [0x62fb3c]
push ebx
mov ebx, dword [sym.imp.user32.dll_SetClipboardData]
push ebp
push esi
xor ebp, ebp
xor esi, esi
push edi
test al, 1
je 0x4e2428
test ah, 0x40
jne 0x4e2428
call fcn.004e3f20
mov edi, eax
test edi, edi
je 0x4e2423
push esi
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x4e241c
call dword [sym.imp.user32.dll_EmptyClipboard]
push edi
push 0xd
mov ebp, 1
call ebx
call dword [sym.imp.user32.dll_CloseClipboard]
mov esi, ebp
jmp 0x4e2423
push edi
call dword [sym.imp.kernel32.dll_GlobalFree]
mov eax, dword [0x62fb3c]
test eax, 0x4002
je 0x4e247d
shr eax, 0xe
and eax, 1
push eax
call fcn.004e4650
mov edi, eax
add esp, 4
test edi, edi
je 0x4e247d
push 0
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x4e2476
test ebp, ebp
jne 0x4e245a
call dword [sym.imp.user32.dll_EmptyClipboard]
push edi
push str.Rich_Text_Format
call dword [sym.imp.user32.dll_RegisterClipboardFormatA_1]
push eax
call ebx
call dword [sym.imp.user32.dll_CloseClipboard]
mov esi, 1
jmp 0x4e247d
push edi
call dword [sym.imp.kernel32.dll_GlobalFree]
mov eax, dword [0x648138]
xor edi, edi
cmp eax, edi
je 0x4e24b7
cmp esi, edi
je 0x4e24d2
mov ecx, dword [0x648110]
push edi
push 4
push ecx
push eax
call dword [sym.imp.user32.dll_PostMessageA]
mov edx, dword [0x648128]
mov dword [edx + 0x38], edi
mov eax, dword [0x648128]
pop edi
pop esi
pop ebp
mov dword [eax + 0x48], 1
pop ebx
ret
mov ecx, dword [0x648128]
mov dword [ecx + 0x38], edi
mov edx, dword [0x648128]
pop edi
pop esi
pop ebp
mov dword [edx + 0x48], 1
pop ebx
ret
mov eax, dword [0x648128]
mov dword [eax + 0x38], edi
mov ecx, dword [0x648128]
pop edi
pop esi
pop ebp
mov dword [ecx + 0x48], 1
pop ebx
ret
Function at 0x4e2ec0
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x5d0858
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
call fcn.00593595
mov edi, dword [sym.imp.user32.dll_GetSystemMetrics]
push 0x4c
mov dword [esp + 0x3c], 0
mov dword [esi], method.CWnd.virtual_0
call edi
push 0x4d
mov ebp, eax
call edi
mov ebx, eax
push 0x4e
mov dword [esp + 0x28], ebx
call edi
add eax, ebp
push 0x4f
mov dword [esp + 0x2c], eax
call edi
push 0
push 0
add eax, ebx
push 0
push str.DISPLAY
mov dword [esp + 0x3c], eax
call dword [sym.imp.gdi32.dll_CreateDCA]
mov edi, eax
push edi
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x24]
mov ebx, eax
mov eax, dword [esp + 0x2c]
sub eax, ecx
mov ecx, dword [esp + 0x28]
sub ecx, ebp
push eax
push ecx
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.gdi32.dll_CreateCompatibleBitmap]
push eax
push ebx
mov dword [esi + 0x3c], eax
call dword [sym.imp.gdi32.dll_SelectObject]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
push 0x40cc0020
push eax
push ebp
push edi
push ecx
push edx
push 0
push 0
push ebx
call dword [sym.imp.gdi32.dll_BitBlt]
mov eax, dword [esp + 0x18]
push eax
push ebx
call dword [sym.imp.gdi32.dll_SelectObject]
push ebx
mov ebx, dword [sym.imp.gdi32.dll_DeleteDC]
call ebx
push edi
call ebx
mov ebx, 1
xor edi, edi
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0x74], 0xffffffff
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
cmp dword [0x648144], edi
jne 0x4e2fe7
push edi
push edi
push edi
push 8
call fcn.00594739
mov dword [0x648144], eax
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
cmp ecx, edi
mov dword [esi + 0x40], 2
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], eax
jne 0x4e3011
cmp eax, edi
jne 0x4e3011
mov ebx, 0x80000000
jmp 0x4e301a
cmp eax, edi
mov ebx, 0x40000000
jne 0x4e3026
call dword [sym.imp.user32.dll_GetDesktopWindow]
push eax
call fcn.005939c0
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edi
push edi
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [0x648144]
push eax
push ecx
push ebp
push ebx
push 0x63df70
push edx
push 0x80
mov ecx, esi
call fcn.00593f63
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x30]
mov dword [0x63df64], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
Function at 0x4e64a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, ecx
test edi, edi
je 0x4e6561
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4e6561
mov ax, word [esi + 0x2e]
cmp ax, word [edi + 0x2e]
jne 0x4e6561
mov ecx, dword [esi + 0x24]
push ebx
mov ebx, dword [edi + 0x448]
and eax, 0xffff
push ebp
mov ebp, dword [esi + 0x448]
push eax
push ecx
call fcn.004e5a10
xor ecx, ecx
mov dword [esp + 0x18], eax
mov cx, word [esi + 0x2e]
mov eax, dword [edi + 0x24]
push ecx
push eax
call fcn.004e5a10
mov edx, dword [esp + 0x20]
add esp, 0x10
cmp edx, eax
mov dword [esp + 0x1c], edx
jl 0x4e6510
mov dword [esp + 0x1c], eax
mov edi, dword [edi + 0x28]
mov ecx, dword [esi + 0x28]
cmp ecx, edi
jl 0x4e651c
mov ecx, edi
test ecx, ecx
jle 0x4e6552
mov esi, ebp
mov ebp, ebx
mov dword [esp + 0x14], ecx
mov edi, dword [esp + 0x1c]
mov ecx, esi
test edi, edi
jle 0x4e6543
mov edx, ebp
sub edx, esi
mov bl, byte [edx + ecx]
xor byte [ecx], bl
inc ecx
dec edi
jne 0x4e6536
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add ebp, eax
add esi, edx
dec ecx
mov dword [esp + 0x14], ecx
jne 0x4e6528
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 8
ret 4
pop edi
xor eax, eax
pop esi
add esp, 8
ret 4

Function at 0x4e7820
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push eax
push 0x20019
push 0
push str.Control_PanelCursors
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4e78ca
push ebx
mov ebx, dword [sym.imp.advapi32.dll_RegQueryValueExA]
push ebp
mov ebp, dword [sym.imp.user32.dll_LoadCursorFromFileA]
push esi
mov esi, 0x63030c
mov eax, dword [esi]
test eax, eax
je 0x4e786b
push eax
call dword [sym.imp.user32.dll_DestroyCursor]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esi - 0x18]
push 0
push ecx
mov dword [esi], 0
push edx
mov dword [esi - 4], 0
mov dword [esp + 0x28], 0x100
call ebx
test eax, eax
jne 0x4e78bc
lea eax, [esp + 0x18]
push eax
call ebp
test eax, eax
mov dword [esi], eax
je 0x4e78bc
mov ecx, dword [esi - 0x1c]
push ecx
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [esi - 4], eax
add esi, 0x20
cmp esi, str.GetCursorInfo
jl 0x4e785e
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x4e78e0
Capabilities:
Check os version
Log keystrokes

Disassembly:
mov eax, dword [0x630490]
sub esp, 0xb4
push esi
push edi
xor edi, edi
cmp eax, 1
jne 0x4e79da
push str.user32.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov esi, eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [esp + 0x38], 2
jne 0x4e79be
cmp dword [esp + 0x2c], 5
jae 0x4e79be
mov dword [0x630490], edi
push ebx
lea eax, [esp + 0x24]
push ebp
push eax
call dword [sym.imp.user32.dll_GetCursorPos]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
push edx
call dword [sym.imp.user32.dll_WindowFromPoint]
mov edi, dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push 1
mov esi, eax
call edi
mov ebx, dword [sym.imp.user32.dll_GetWindowThreadProcessId]
push eax
push 0
push esi
call ebx
mov ebp, dword [sym.imp.user32.dll_AttachThreadInput]
push eax
call ebp
call dword [sym.imp.user32.dll_GetCursor]
push 0
mov dword [esp + 0x14], eax
call edi
push eax
push 0
push esi
call ebx
push eax
call ebp
mov edx, dword [esp + 0x10]
pop ebp
pop ebx
test edx, edx
je 0x4e79b3
mov eax, 0x63030c
cmp edx, dword [eax - 4]
jne 0x4e79a9
mov ecx, dword [eax]
test ecx, ecx
je 0x4e79a9
mov dword [esp + 8], ecx
mov edx, ecx
add eax, 0x20
cmp eax, str.GetCursorInfo
jl 0x4e7998
pop edi
mov eax, edx
pop esi
add esp, 0xb4
ret
test esi, esi
je 0x4e79d5
push str.GetCursorInfo
push esi
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x630490], eax
jmp 0x4e79da
mov eax, dword [0x630490]
test eax, eax
je 0x4e7934
xor ecx, ecx
lea edx, [esp + 0xc]
mov dword [esp + 0xc], ecx
push edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0x14
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
call eax
test eax, eax
je 0x4e7a1c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4e7a1c
mov edx, dword [esp + 0x14]
jmp 0x4e798f
mov eax, edi
pop edi
pop esi
add esp, 0xb4
ret
Function at 0x4eb9c0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x4eba05
push ebx
push 2
mov ecx, esi
call fcn.005bf89a
test eax, eax
jne 0x4eb9ed
push ebx
push 8
mov ecx, esi
call fcn.005bf89a
test eax, eax
je 0x4eba1b
mov ebp, dword [sym.imp.user32.dll_GetClipboardData]
xor edi, edi
cmp esi, ebx
je 0x4eba48
push ebx
push 2
mov ecx, esi
call fcn.005bf7bc
jmp 0x4eba4c
mov edi, dword [sym.imp.user32.dll_IsClipboardFormatAvailable]
push 2
call edi
test eax, eax
jne 0x4eba2c
push 8
call edi
test eax, eax
jne 0x4eba2c
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword [eax], ebx
mov dword [eax + 4], ebx
pop ebx
add esp, 0x18
ret
push ebx
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
jne 0x4eb9ed
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword [eax], ebx
mov dword [eax + 4], ebx
pop ebx
add esp, 0x18
ret
push 2
call ebp
mov ebx, eax
test ebx, ebx
jne 0x4eba62
test esi, esi
je 0x4ebaa6
push eax
push 8
mov ecx, esi
call fcn.005bf7bc
mov edi, eax
test esi, esi
jne 0x4eba6c
call dword [sym.imp.user32.dll_CloseClipboard]
test ebx, ebx
je 0x4ebaae
lea eax, [esp + 0x10]
push eax
push 0x18
push ebx
call dword [sym.imp.gdi32.dll_GetObjectA]
test eax, eax
je 0x4ebae2
test esi, esi
je 0x4eba8d
push ebx
call dword [sym.imp.kernel32.dll_GlobalFree]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov dword [eax + 4], edx
pop ebx
add esp, 0x18
ret
push 8
call ebp
mov edi, eax
jmp 0x4eba66
test edi, edi
je 0x4ebae2
push edi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov ebx, dword [eax + 4]
mov ebp, dword [eax + 8]
push edi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
test esi, esi
je 0x4ebad1
push edi
call dword [sym.imp.kernel32.dll_GlobalFree]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
mov dword [eax + 4], ebp
mov dword [eax], ebx
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword [eax], 0
mov dword [eax + 4], 0
pop ebx
add esp, 0x18
ret
Function at 0x4f6fcf
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4f6fef
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.004fa942
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4f7012
test byte [esp + 8], 2
je 0x4f7012
call fcn.004fa9b5
mov dword [eax], 0xd
call fcn.004fa9be
mov dword [eax], 5
jmp 0x4f6feb
xor eax, eax
ret

Function at 0x5073d0
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
push edi
mov edi, dword [sym.imp.user32.dll_GetAsyncKeyState]
cmp esi, 0x60
jb 0x5073f8
cmp esi, 0x69
ja 0x5073f8
push 0x12
call edi
test ah, 0x80
je 0x50740b
mov eax, dword [0x64b20c]
test eax, eax
je 0x507469
cmp esi, 0x41
jb 0x507469
cmp esi, 0x5a
ja 0x507469
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.user32.dll_GetKeyboardState]
call fcn.0059890a
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.user32.dll_GetKeyboardLayout]
push eax
lea edx, [esp + 0xe]
push 1
lea eax, [esp + 0x14]
push edx
push eax
push 0
push esi
call dword [sym.imp.user32.dll_MapVirtualKeyA]
push eax
push esi
call dword [sym.imp.user32.dll_ToAsciiEx]
mov cl, byte [esp + 0xa]
lea edx, [esp + 8]
push edx
mov byte [esp + 0xc], cl
mov byte [esp + 0xd], 0
call dword [sym.imp.user32.dll_CharUpperA]
movsx eax, byte [esp + 8]
pop edi
pop esi
add esp, 0x104
ret
push 0x12
call edi
test ah, 0x80
je 0x50747d
mov eax, esi
pop edi
pop esi
add esp, 0x104
ret
push esi
call fcn.004f7788
add esp, 4
pop edi
pop esi
add esp, 0x104
ret
Function at 0x507520
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d3148
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov ecx, 0xc
xor eax, eax
push esi
push edi
lea edi, [esp + 0xc]
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.user32.dll_GetKeyboardLayout]
mov esi, dword [esp + 0x54]
push eax
push 0
push esi
call dword [sym.imp.user32.dll_MapVirtualKeyExA]
shl eax, 0x10
or al, 1
cmp esi, 0x21
jb 0x507574
cmp esi, 0x2f
ja 0x507574
or eax, 0x1000000
push ebx
lea ecx, [esp + 0x10]
push 0x32
push ecx
push eax
call dword [sym.imp.user32.dll_GetKeyNameTextA]
lea edx, [esp + 0x10]
lea ecx, [esp + 0xc]
push edx
call fcn.005980a0
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0
call fcn.00598566
mov eax, dword [esp + 0xc]
xor esi, esi
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x5075f2
mov edi, dword [sym.imp.user32.dll_IsCharLowerA]
mov bl, byte [esi + eax]
mov byte [esp + 0x58], bl
mov eax, dword [esp + 0x58]
push eax
call edi
test eax, eax
jne 0x5075d3
mov eax, dword [esp + 0xc]
inc esi
cmp esi, dword [eax - 8]
jl 0x5075b5
jmp 0x5075f2
movsx ecx, bl
push ecx
call fcn.004f7788
mov byte [esp + 0x5c], al
add esp, 4
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0xc]
push edx
push esi
call fcn.00598578
mov esi, dword [esp + 0x54]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.0059844a
mov eax, dword [esp + 0x5c]
pop ebx
test eax, eax
jne 0x507614
push 0x2b
mov ecx, esi
call fcn.00598435
lea ecx, [esp + 8]
mov dword [esp + 0x48], 0xffffffff
call fcn.00598032
mov ecx, dword [esp + 0x40]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x44
ret 0xc

Function at 0x50793c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5d3173
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x63094c]
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 4]
mov dword [edi], eax
mov ecx, dword [esp + 0x20]
xor ebx, ebx
mov dword [esi + 0x38], ecx
mov dword [esi], 0x5f0ea0
mov dword [0x64aa9c], esi
push str.BCGWorkspace
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
call fcn.005980a0
lea edx, [esp + 0x20]
mov ecx, edi
push edx
mov byte [esp + 0x1c], 1
call fcn.0059816b
or eax, 0xffffffff
lea ecx, [esp + 0x20]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], 1
mov dword [esi + 0x3c], ebx
mov byte [esp + 0x18], bl
call fcn.00598032
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x508a58
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d3350
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
call fcn.00596cc1
test eax, eax
je 0x508b1d
call fcn.005b2355
mov ecx, dword [eax + 4]
call fcn.00597060
lea eax, [esi + 0x110]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00597da7
mov ecx, dword [esp + 4]
mov byte [esp + 0x14], 1
mov eax, dword [ecx - 8]
test eax, eax
jne 0x508aa9
lea edx, [esp + 4]
mov ecx, esi
push edx
call fcn.005943d1
lea eax, [esp + 4]
lea ecx, [esi + 0x114]
push eax
lea edx, [esp + 0xc]
push ecx
push edx
call fcn.00598261
mov eax, dword [eax]
push 0
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.shell32.dll_ShellExecuteA]
lea ecx, [esp + 8]
call fcn.00598032
mov eax, dword [esi + 0x1c]
push 1
push 0
push eax
mov dword [esi + 0x64], 0
call dword [sym.imp.user32.dll_InvalidateRect]
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.user32.dll_UpdateWindow]
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.00598032
mov dword [esp + 0x14], 0xffffffff
call fcn.005b2355
mov ecx, dword [eax + 4]
call fcn.00597075
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x509630
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5d3558
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [sym.imp.user32.dll_GetSysColor]
mov esi, ecx
push 0xf
call edi
push 0x10
mov dword [esi + 8], eax
call edi
push 0x15
mov dword [esi + 0xc], eax
call edi
push 0x16
mov dword [esi + 0x1c], eax
call edi
push 0x14
mov dword [esi + 0x20], eax
call edi
push 0x12
mov dword [esi + 0x10], eax
call edi
push 0x11
mov dword [esi + 0x14], eax
call edi
push 6
mov dword [esi + 0x24], eax
call edi
push 0xd
mov dword [esi + 0x18], eax
call edi
push 0xe
mov dword [esi + 0x28], eax
call edi
mov edi, dword [sym.imp.user32.dll_GetSysColorBrush]
push 0x10
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0xff0000
call edi
push 0x14
mov dword [esi + 4], eax
call edi
lea ebx, [esi + 0x34]
mov dword [esi], eax
mov ecx, ebx
call fcn.0059c0df
push 0xf
call edi
push eax
mov ecx, ebx
call fcn.0059c0b2
lea ebx, [esi + 0x3c]
mov ecx, ebx
call fcn.0059c0df
push 0xd
call edi
push eax
mov ecx, ebx
call fcn.0059c0b2
lea ebx, [esi + 0x4c]
mov ecx, ebx
call fcn.0059c0df
push 0x15
call edi
push eax
mov ecx, ebx
call fcn.0059c0b2
xor ebx, ebx
lea ecx, [esp + 0x14]
push ebx
call fcn.0059bebe
mov eax, dword [esp + 0x1c]
push 0xc
push eax
mov dword [esp + 0x38], ebx
call dword [sym.imp.gdi32.dll_GetDeviceCaps]
lea edi, [esi + 0x44]
mov dword [esi + 0xa0], eax
cmp edi, ebx
je 0x50972b
cmp dword [edi + 4], ebx
je 0x50972b
mov ecx, edi
call fcn.0059c109
cmp dword [esi + 0xa0], 8
jle 0x5097bf
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x10]
shr ecx, 0x10
shr eax, 0x10
mov edx, ecx
and eax, 0xff
and edx, 0xff
mov bx, word [esi + 8]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add al, cl
xor ecx, ecx
mov ch, al
xor eax, eax
mov al, byte [esi + 0x11]
shr bx, 8
mov edx, ebx
and eax, 0xff
and edx, 0xff
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add al, bl
mov cl, al
xor eax, eax
mov al, byte [esi + 0x10]
shl ecx, 8
mov dword [esp + 0xc], ecx
mov cl, byte [esi + 8]
mov edx, ecx
and edx, 0xff
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add al, cl
mov ecx, dword [esp + 0xc]
and eax, 0xff
or eax, ecx
push eax
call dword [sym.imp.gdi32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0059c0b2
jmp 0x509827
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
neg eax
sbb eax, eax
mov ecx, esi
and eax, edx
push eax
call fcn.00509920
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], vtable.CBitmap.0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 1
call fcn.0059c0b2
mov esi, dword [esp + 0x10]
lea eax, [esp + 0xc]
neg eax
sbb eax, eax
and eax, esi
push eax
call dword [sym.imp.gdi32.dll_CreatePatternBrush]
push eax
mov ecx, edi
call fcn.0059c0b2
mov dword [esp + 0xc], vtable.CGdiObject.0
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 2
call fcn.0059c109
mov byte [esp + 0x30], bl
call fcn.00537180
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.0059bf30
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x509850
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5d3578
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
mov esi, ecx
push edi
push 0
lea ecx, [esp + 0x10]
call fcn.0059bebe
lea eax, [esi + 0x64]
lea ecx, [esp + 0xc]
push eax
mov dword [esp + 0x64], 0
call fcn.0059b609
mov edx, dword [esp + 0x14]
mov ebx, dword [sym.imp.gdi32.dll_GetTextMetricsA]
lea ecx, [esp + 0x20]
mov edi, eax
push ecx
push edx
call ebx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
add ecx, eax
add ecx, edx
lea edx, [esi + 0x84]
mov dword [esi + 0xa4], ecx
push edx
lea ecx, [esp + 0x10]
call fcn.0059b609
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push ecx
call ebx
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add eax, edx
add eax, ecx
push edi
lea ecx, [esp + 0x10]
mov dword [esi + 0xa8], eax
call fcn.0059b609
lea ecx, [esp + 0xc]
mov dword [esp + 0x60], 0xffffffff
call fcn.0059bf30
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret

Function at 0x50a710
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
push ebp
push esi
push edi
mov edi, ecx
lea eax, [esp + 0xc]
xor ebp, ebp
push eax
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0x14]
push ebp
push ecx
push ebp
push edx
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, ebp
jne 0x50a7af
mov eax, dword [esp + 0xc]
cmp eax, ebp
jbe 0x50a7af
mov ebp, eax
inc eax
push ebx
push eax
call fcn.00596900
add esp, 4
lea ecx, [esp + 0x10]
mov ebx, eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [edi + 0x10]
lea edx, [esp + 0x18]
push ebx
push edx
push 0
push eax
push ecx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x50a79a
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x50a79a
mov ecx, dword [esp + 0x20]
push ebx
call fcn.005981bb
push ebx
call fcn.00596929
add esp, 4
pop ebx
jmp 0x50a7b8
mov ecx, dword [esp + 0x20]
call fcn.00597fbd
push ebx
call fcn.00596929
add esp, 4
pop ebx
jmp 0x50a7b8
mov ecx, dword [esp + 0x1c]
call fcn.00597fbd
mov edx, dword [esp + 0x10]
mov dword [edi + 4], esi
mov dword [edi + 8], edx
mov dword [edi + 0xc], ebp
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebp
sete al
add esp, 8
ret 8