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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00406c14
xor eax, eax
push ebp
push 0x4aca0f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4ac9e2
xor edx, edx
push ebp
push 0x4ac9db
push dword fs:[edx]
mov dword fs:[edx], esp
mov esi, dword [ebp - 4]
mov eax, esi
test eax, eax
je 0x4ac91d
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 - 8], eax
xor edx, edx
push ebp
push 0x4ac9b0
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor edx, edx
push ebp
push 0x4ac99f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, esi
test eax, eax
je 0x4ac962
sub eax, 4
mov eax, dword [eax]
mov esi, eax
add esi, esi
mov eax, dword [ebp - 4]
call fcn.0040764c
lea ecx, [esi + 2]
mov edx, ebx
call fcn.004046d4
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 0xd
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ac9a6
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x5479d4]
mov dl, 1
mov eax, dword [0x418cb8]
call fcn.004238f4
call fcn.00406268
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aca16
lea eax, [ebp - 4]
call fcn.00406b30
ret

Function at 0x4cfa6c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.004cfb1c
test eax, eax
je 0x4cfaa7
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.004cfb1c
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406cb8
jmp 0x4cfab5
mov ecx, esi
mov edx, 0x4cfad4
mov eax, ebx
call fcn.004cf9b8
lea eax, [ebx + 0x1c]
mov edx, dword [esi]
call fcn.00406f10
add esp, 0x200
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406b30
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x4ec641
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.004076e0
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x4f1dc0
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 0x4f1f41
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 [0x459804]
call fcn.0045a950
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4f1f17
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0045aa38
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.004076e0
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x4f1f5c
call fcn.00407890
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0045acc4
test al, al
je 0x4f1f01
lea ecx, [ebp - 4]
mov edx, 0x4f1fd0
mov eax, dword [ebp - 0xc]
call fcn.0045b54c
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00425f40
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4f1efa
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.004f1d4c
test eax, eax
je 0x4f1eb4
push 0x4f1fe8
mov eax, dword [ebp - 8]
push eax
call fcn.0040da64
mov ebx, eax
call ebx
test eax, eax
je 0x4f1ea7
movzx eax, word [eax + 0x50]
and ax, 1
cmp ax, 1
je 0x4f1eab
xor eax, eax
jmp 0x4f1ead
mov al, 1
mov byte [0x54741c], al
jmp 0x4f1ee3
push 0x4f1fe8
mov eax, dword [ebp - 8]
push eax
call fcn.0040da64
mov ebx, eax
call ebx
test eax, eax
je 0x4f1ed8
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
je 0x4f1edc
xor eax, eax
jmp 0x4f1ede
mov al, 1
mov byte [0x54741c], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f1f01
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_2
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f1f1e
mov eax, dword [ebp - 0xc]
call fcn.00404ef4
ret

Function at 0x4f204c
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 0x4f2093
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4f2076
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4f2087
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x4f2093
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4fc07c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x4fc09d
test edi, 0x40000
je 0x4fc0b7
test bl, bl
jne 0x4fc138
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x4fc138
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x4fc0ea
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x4fc0ff
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x4fc10e
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x4fc11f
cmp byte [esp + 2], 0
je 0x4fc138
cmp byte [esp + 2], 0
je 0x4fc130
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x4fc138
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4fc3e4
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 0x4fc40a
mov eax, esp
push eax
push 0x4fc3ac
call sub.user32.dll_EnumWindows
jmp 0x4fc41d
mov eax, esp
push eax
push 0x4fc38c
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 0x4fc4e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x4fc530]
test bl, 4
je 0x4fc4f4
or si, 1
test bl, 8
je 0x4fc4fd
or si, 4
test bl, 1
je 0x4fc506
or si, 8
test bl, 2
je 0x4fc50f
or si, 0x10
test bl, 0x10
je 0x4fc518
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4fc528
or si, 2
mov eax, esi
pop esi
pop ebx
ret
Function at 0x505134
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x505146
add esp, 0xfffffff0
call fcn.00405500
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00450cd8
mov eax, dword [0x547ad8]
mov dword [eax + 4], ebx
mov dword [eax], 0x505578
mov eax, dword [0x547aec]
mov dword [eax + 4], ebx
mov dword [eax], 0x505584
mov eax, ebx
call fcn.00505590
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x436758]
call fcn.00404ec4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x436758]
call fcn.00404ec4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x436758]
call fcn.00404ec4
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x436758]
call fcn.00404ec4
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x436758]
call fcn.00404ec4
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 + 0x48], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x60]
push eax
mov eax, 0x4fff68
push eax
push 0
push 0
call fcn.00471be0
mov dl, 1
mov eax, dword [0x45f4c8]
call fcn.004654c8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x45f4c8]
call fcn.004654c8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x45f4c8]
call fcn.004654c8
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x45f4c8]
call fcn.004654c8
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x45f4c8]
call fcn.004654c8
mov dword [ebx + 0x90], eax
mov eax, ebx
call fcn.00505b88
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5059a4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5059a4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5059a4
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5059a4
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5059a4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5052c3
call fcn.00405558
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x505744
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 0x5058ef
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jne 0x5058d0
mov dl, 1
mov eax, dword [0x439ecc]
call fcn.00448364
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.00406b30
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5058bf
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.00493504
test al, al
je 0x5058b2
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, 0x505900
lea eax, [ebp - 0x394]
call fcn.0041f3e8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x5058b2
xor eax, eax
push ebp
push 0x5058ab
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 0x505970
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x505894
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.004076e0
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
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 + 0x44]
jne 0x505894
mov eax, dword [ebp - 4]
add eax, 0x40
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.004076e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5058b2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5057b5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.004482a0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x3c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5058f6
lea eax, [ebp - 0x3a0]
call fcn.00406b30
ret

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

Disassembly:
push ecx
mov eax, dword [0x54e2ec]
cmp byte [eax + 0xb1], 0
jne 0x50651a
cmp dword [0x54e30c], 0
jne 0x5064da
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x547534]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x54e30c], eax
cmp dword [0x54e308], 0
jne 0x5064f5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x54e308], eax
cmp dword [0x54e310], 0
jne 0x50651a
push esp
push 0
push 0
mov eax, dword [0x547530]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x54e310], eax
pop edx
ret
Function at 0x506f74
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x178]
test eax, eax
je 0x507016
cmp dword [ebx + 0x98], 0
jne 0x507010
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x506eb0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x94]
cmp dword [eax + 8], 0
je 0x507010
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_GetWindowLongW
test al, 8
je 0x506fd6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x94]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x507010
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x94]
call fcn.00443d3c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x506fe5
inc dword [ebx + 0x98]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x507234
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x54e2ec]
cmp dword [eax + 0x178], 0
je 0x507399
test bl, bl
jne 0x5072e7
cmp dword [esi + 0xa0], 0
jne 0x5072dc
mov eax, esi
call fcn.0050a0d0
push eax
push 0x507140
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x48], 0
je 0x5072ad
mov eax, dword [0x54e2ec]
cmp byte [eax + 0xd7], 0
je 0x5072ad
mov eax, dword [esi + 0xdc]
call fcn.0040879c
mov edi, eax
cmp edi, 0
jl 0x5072ad
push 0
mov eax, dword [esi + 0xdc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x507296
mov eax, dword [esi + 0x9c]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5072dc
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x9c]
call fcn.00443d3c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5072bc
inc dword [esi + 0xa0]
jmp 0x507399
cmp dword [esi + 0xa0], 0
jle 0x507399
dec dword [esi + 0xa0]
cmp dword [esi + 0xa0], 0
jne 0x507399
cmp dword [esi + 0x48], 0
je 0x507344
mov eax, dword [0x54e2ec]
cmp byte [eax + 0xd7], 0
je 0x507344
mov eax, dword [esi + 0xdc]
call fcn.0040879c
mov edi, eax
cmp edi, 0
jl 0x507344
push 5
mov eax, dword [esi + 0xdc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x50732d
mov eax, dword [esi + 0x9c]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x507373
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x9c]
call fcn.00443d3c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x507353
mov eax, dword [esi + 0x9c]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xdc]
mov ecx, 1
mov edx, dword [0x4f9448]
call fcn.00408948
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x507fec
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xb0], 0
je 0x508057
cmp byte [ebx + 0xd7], 0
jne 0x508057
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x178]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406cb8
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x508044
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x508064
mov eax, esi
mov edx, dword [ebx + 0x90]
call fcn.00406f10
jmp 0x508064
mov eax, esi
mov edx, dword [ebx + 0x90]
call fcn.00406f10
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x50983c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x5098aa
mov eax, esi
call fcn.0048d580
test al, al
je 0x5098aa
mov eax, dword [ebx + 0x88]
call fcn.0048d1d4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5098aa
mov eax, dword [ebx + 0x88]
mov edx, dword [eax]
call dword [edx + 0x108]
test al, al
je 0x50989e
push 0
mov eax, dword [ebx + 0x88]
call fcn.0048d1d4
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x88]
call fcn.0048403c
jmp 0x5098aa
mov cl, 1
mov edx, dword [ebx + 0x78]
mov eax, ebx
call fcn.00509674
pop esi
pop ebx
ret
Function at 0x520e10
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x520f38
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.00520cfc
mov eax, dword [esi]
call fcn.00408794
add eax, 0x28
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4187bc]
call fcn.00408948
add esp, 4
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov ecx, 0x1c
call fcn.004046d4
mov ebx, 0x1c
mov eax, dword [ebp - 4]
lea edx, [eax + ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
call fcn.004046d4
add ebx, 0x1c
mov eax, dword [esi]
call fcn.00408794
mov dword [ebp - 0xc], eax
mov eax, dword [0x548060]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 4]
mov ecx, ebx
call fcn.00511b90
add ebx, 4
mov eax, dword [ebp - 4]
add eax, ebx
xor ecx, ecx
mov edx, 3
call fcn.00404a48
add ebx, 3
mov eax, dword [ebp - 4]
mov byte [eax + ebx], 0x3a
inc ebx
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 0
push ebx
mov eax, dword [esi]
call fcn.00408794
push eax
lea ecx, [ebp - 4]
mov eax, dword [esi]
xor edx, edx
call fcn.00511b6c
mov edx, dword [ebp - 4]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x98]
mov ebx, eax
mov eax, ebx
call fcn.00511a84
mov edx, esi
mov ecx, dword [ebp + 0x10]
call fcn.00511b88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x520f3f
lea eax, [ebp - 4]
mov edx, dword [0x4187bc]
call fcn.00408954
ret

Function at 0x538ad8
Capabilities:
Create pipe

Disassembly:
push ebx
push esi
push ecx
mov ebx, eax
cmp byte [ebx + 0x44], 0
je 0x538b09
push 0
push 0
push 0x2800
push 0x2800
push 1
push 6
push 0x40080003
push 0x538b74
call sub.kernel32.dll_CreateNamedPipeW
mov dword [ebx + 0x40], eax
jmp 0x538b63
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
push 0x538b74
call sub.kernel32.dll_CreateFileW
mov esi, eax
mov dword [ebx + 0x40], esi
cmp esi, 0xffffffff
jne 0x538b46
xor eax, eax
mov dword [ebx + 0x40], eax
call sub.kernel32.dll_GetLastError_2
cmp eax, 0xe7
jne 0x538b6e
mov byte [ebx + 0x68], 1
jmp 0x538b6e
mov byte [ebx + 0x68], 0
mov dword [esp], 2
push 0
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [ebx + 0x40]
push eax
call sub.kernel32.dll_SetNamedPipeHandleState
cmp dword [ebx + 0x40], 0xffffffff
jne 0x538b6e
xor eax, eax
mov dword [ebx + 0x40], eax
pop edx
pop esi
pop ebx
ret
Function at 0x5397b8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9f0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x53987c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp byte [ebp + 8], 0
jne 0x5397f5
lea eax, [ebp - 4]
mov edx, 0x53989c
call fcn.00406f58
jmp 0x539802
lea eax, [ebp - 4]
mov edx, 0x5398b4
call fcn.00406f58
xor eax, eax
push ebp
push 0x53985c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x60e]
mov edx, dword [ebp + 0x10]
call fcn.0041f020
push eax
lea eax, [ebp - 0x40c]
mov edx, esi
call fcn.0041f020
push eax
lea eax, [ebp - 0x20a]
mov edx, ebx
call fcn.0041f020
push eax
mov eax, dword [ebp - 4]
call fcn.0040764c
push eax
push 0
call fcn.004a044c
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x539866
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x539883
lea eax, [ebp - 4]
call fcn.00406b30
ret

Function at 0x401426
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
xor eax, eax
mov edi, eax
mov dword [ebp - 0x4c], 0x30
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], 3
mov dword [0x4041b0], eax
mov eax, edi
mov dword [ebp - 0x44], 0x40132e
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], str.Hall
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
test eax, eax
je 0x4014f0
mov eax, 0x80000000
push edi
push dword [ebp - 0x38]
push edi
push edi
push eax
push eax
push eax
push eax
push 0
push str.moossi
push str.Hall
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [0x4041b8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4041b8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x4014f0
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x4014d5
mov esp, ebp
pop ebp
ret 0x10