joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5cfb04
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 0x5cfb4b
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5cfb2e
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5cfb3f
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x5cfb4b
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x5dc0fc
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 0x5dc11d
test edi, 0x40000
je 0x5dc137
test bl, bl
jne 0x5dc1b8
mov eax, 0x40000
and eax, edi
cmp eax, 0x40000
jne 0x5dc1b8
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 0x5dc16a
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x5dc17f
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x5dc18e
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x5dc19f
cmp byte [esp + 2], 0
je 0x5dc1b8
cmp byte [esp + 2], 0
je 0x5dc1b0
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x5dc1b8
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x5dc45c
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 0x5dc482
mov eax, esp
push eax
push 0x5dc424
call sub.user32.dll_EnumWindows
jmp 0x5dc495
mov eax, esp
push eax
push 0x5dc404
call sub.kernel32.dll_GetCurrentThreadId
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x5dc558
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
xor eax, eax
mov si, ax
test bl, 4
je 0x5dc56a
or si, 1
test bl, 8
je 0x5dc573
or si, 4
test bl, 1
je 0x5dc57c
or si, 8
test bl, 2
je 0x5dc585
or si, 0x10
test bl, 0x10
je 0x5dc58e
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5dc59e
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x5dc5a4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
xor eax, eax
mov bx, ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5dc5bd
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5dc5cd
or bx, 4
test esi, 0x20000000
je 0x5dc5d9
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x5eac8c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x5eac9e
add esp, 0xfffffff0
call fcn.004096c4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004d05d4
mov eax, dword [0x6279b4]
mov dword [eax + 4], ebx
mov dword [eax], 0x5eb17c
mov eax, dword [0x6279c4]
mov dword [eax + 4], ebx
mov dword [eax], 0x5eb188
mov eax, ebx
call fcn.005eb194
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x48fa9c]
call fcn.004090a4
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x48fa9c]
call fcn.004090a4
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x48fa9c]
call fcn.004090a4
mov dword [ebx + 0x64], eax
mov dl, 1
mov eax, dword [0x48fa9c]
call fcn.004090a4
mov dword [ebx + 0x68], eax
mov dl, 1
mov eax, dword [0x48fa9c]
call fcn.004090a4
mov dword [ebx + 0x84], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x50], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x68]
push eax
mov eax, 0x5e4390
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x51327c]
call fcn.0051b81c
mov esi, eax
mov dword [ebx + 0x8c], esi
mov byte [esi + 0x25], 1
mov dl, 1
mov eax, dword [0x51327c]
call fcn.0051b81c
mov esi, eax
mov dword [ebx + 0x90], esi
mov byte [esi + 0x25], 1
mov dl, 1
mov eax, dword [0x51327c]
call fcn.0051b81c
mov esi, eax
mov dword [ebx + 0x88], esi
mov byte [esi + 0x25], 1
mov dl, 1
mov eax, dword [0x51327c]
call fcn.0051b81c
mov esi, eax
mov dword [ebx + 0x94], esi
mov byte [esi + 0x25], 1
mov dl, 1
mov eax, dword [0x51327c]
call fcn.0051b81c
mov esi, eax
mov dword [ebx + 0x98], esi
mov byte [esi + 0x25], 1
mov eax, ebx
call fcn.005eb8f4
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5eb5a4
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5eb5a4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5eb5a4
mov eax, dword [ebx + 0x94]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5eb5a4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5eb5a4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5eae3c
call fcn.0040971c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5eb340
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 0x5eb4f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x5eb4cf
mov dl, 1
mov eax, dword [0x49395c]
call fcn.004bf910
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.0040aeac
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5eb4be
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.0055c514
test al, al
je 0x5eb4b1
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x5eb500
lea eax, [ebp - 0x394]
call fcn.00430744
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x5eb4b1
xor eax, eax
push ebp
push 0x5eb4aa
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 0x5eb570
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x5eb491
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040bac0
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
jne 0x5eb491
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040bac0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5eb4b1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5eb3b1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x2d], 0
mov dl, 1
call fcn.004bf838
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5eb4f7
lea eax, [ebp - 0x3a0]
call fcn.0040aeac
pop eax
jmp eax

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

Disassembly:
push ecx
mov eax, dword [0x640800]
cmp byte [eax + 0xc5], 0
jne 0x5ec2fa
cmp dword [0x640824], 0
jne 0x5ec2ba
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x62759c]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x640824], eax
cmp dword [0x640820], 0
jne 0x5ec2d5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x640820], eax
cmp dword [0x640828], 0
jne 0x5ec2fa
push esp
push 0
push 0
mov eax, dword [0x627598]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x640828], eax
pop edx
ret
Function at 0x5ec6f4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x5ec70b
add esp, 0xfffffff0
call fcn.004096c4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004d05d4
mov eax, dword [0x627840]
cmp byte [eax], 0
jne 0x5ec738
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x19c], al
mov eax, dword [0x627c14]
cmp word [eax + 2], 0
jne 0x5ec752
mov eax, dword [0x627c14]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005eebb8
mov eax, dword [0x627d6c]
cmp word [eax + 2], 0
jne 0x5ec76c
mov eax, dword [0x627d6c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005eefd0
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x51327c]
call fcn.0051b81c
mov esi, eax
mov dword [ebx + 0x54], esi
mov byte [esi + 0x25], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x5ef57c
mov dl, 1
mov eax, dword [0x48fa9c]
call fcn.004090a4
mov dword [ebx + 0xa8], eax
mov dl, 1
mov eax, dword [0x48fa9c]
call fcn.004090a4
mov dword [ebx + 0xc8], eax
xor eax, eax
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x70], 0xff000018
mov dword [ebx + 0x8c], 0x1f4
mov byte [ebx + 0x90], 1
xor eax, eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x88], 0x9c4
mov byte [ebx + 0xbd], 1
mov byte [ebx + 0xd4], 1
mov dl, 1
mov eax, dword [0x518624]
call fcn.00526030
mov esi, eax
mov dword [ebx + 0xb8], esi
push 0x5ec960
mov eax, dword [0x627a7c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00526628
mov eax, dword [ebx + 0xb8]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x5ef868
mov dl, 1
mov eax, dword [0x48fa9c]
call fcn.004090a4
mov dword [ebx + 0xb0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x627a7c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00430544
test eax, eax
je 0x5ec883
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00430348
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00430528
test eax, eax
je 0x5ec89b
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0xa4]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.0040bac0
push ebx
push 0x5ee590
call fcn.005dc53c
mov dword [ebx + 0x198], eax
mov byte [ebx + 0xe8], 0
mov eax, dword [0x627840]
cmp byte [eax], 0
jne 0x5ec8ec
mov eax, ebx
call fcn.005ecb28
mov byte [ebx + 0x6d], 1
mov byte [ebx + 0x6e], 1
mov byte [ebx + 0x6f], 1
mov byte [ebx + 0xbe], 1
mov byte [ebx + 0xe9], 0
mov byte [ebx + 0xf4], 0
xor eax, eax
mov dword [ebx + 0xec], eax
mov byte [ebx + 0xeb], 0
xor eax, eax
mov dword [ebx + 0xc0], eax
mov eax, ebx
call fcn.005efc10
mov eax, ebx
call fcn.005f0748
mov byte [ebx + 0x19e], 0
mov byte [ebx + 0xf5], 1
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5ec957
call fcn.0040971c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5ece58
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x190]
test eax, eax
je 0x5ecefa
cmp dword [ebx + 0xac], 0
jne 0x5ecef4
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5ecd98
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x5ecef4
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 0x5eceba
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5ecef4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [ebx + 0xa8]
mov edx, esi
call fcn.004ba754
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5ecec9
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x640800]
cmp dword [eax + 0x190], 0
je 0x5ed395
test bl, bl
jne 0x5ed2ea
cmp dword [esi + 0xb4], 0
jne 0x5ed2df
mov eax, esi
call fcn.005f0598
push eax
push 0x5ed138
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x5ed2b0
mov eax, dword [0x640800]
cmp byte [eax + 0xeb], 0
je 0x5ed2b0
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x5ed291
mov eax, dword [eax - 4]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5ed2b0
push 0
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5ed299
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5ed2df
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.004ba754
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5ed2bf
inc dword [esi + 0xb4]
jmp 0x5ed395
cmp dword [esi + 0xb4], 0
jle 0x5ed395
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x5ed395
cmp dword [esi + 0x58], 0
je 0x5ed34a
mov eax, dword [0x640800]
cmp byte [eax + 0xeb], 0
je 0x5ed34a
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x5ed32b
mov eax, dword [eax - 4]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5ed34a
push 5
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5ed333
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5ed379
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.004ba754
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5ed359
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xf0]
mov edx, dword [0x5d88dc]
call fcn.0040e0ac
pop edi
pop esi
pop ebx
ret
Function at 0x5ee19c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x5ee1f7
cmp byte [ebx + 0xeb], 0
jne 0x5ee1f7
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x190]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040b044
mov eax, dword [esi]
test eax, eax
je 0x5ee1e4
mov eax, dword [eax - 4]
test eax, eax
jne 0x5ee204
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040b29c
jmp 0x5ee204
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040b29c
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5efe24
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x5efe95
mov eax, esi
call fcn.00555f60
test al, al
je 0x5efe95
mov eax, dword [ebx + 0x98]
call fcn.00555af8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5efe95
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x17c]
test al, al
je 0x5efe86
push 0
mov eax, dword [ebx + 0x98]
call fcn.00555af8
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x98]
xor edx, edx
call fcn.0054b7fc
jmp 0x5efe95
mov edx, dword [ebx + 0x88]
mov cl, 1
mov eax, ebx
call fcn.005efc30
pop esi
pop ebx
ret
Function at 0x5f8744
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x98], 0
jne 0x5f87ca
mov eax, dword [ebx + 8]
call fcn.00555af8
mov ecx, eax
mov dl, 1
mov eax, dword [0x5654b8]
call fcn.0054f3e8
mov dword [ebx + 0x98], eax
mov esi, dword [ebx + 0x98]
xor edx, edx
mov eax, esi
call fcn.0056ba50
mov dword [esi + 0x2f4], ebx
mov dword [esi + 0x2f0], 0x5f8014
push 8
mov edx, 3
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe8]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x98]
call fcn.00555af8
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x98]
call fcn.00555af8
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0xa8], 0
jne 0x5f884c
mov eax, dword [ebx + 8]
call fcn.00555af8
mov ecx, eax
mov dl, 1
mov eax, dword [0x5654b8]
call fcn.0054f3e8
mov dword [ebx + 0xa8], eax
mov esi, dword [ebx + 0xa8]
mov dl, 1
mov eax, esi
call fcn.0056ba50
mov dword [esi + 0x2f4], ebx
mov dword [esi + 0x2f0], 0x5f8060
push 8
push 0
mov edx, 2
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe8]
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0xa8]
call fcn.00555af8
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0xa8]
call fcn.00555af8
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0xa0], 0
jne 0x5f88ca
mov eax, dword [ebx + 8]
call fcn.00555af8
mov ecx, eax
mov dl, 1
mov eax, dword [0x565ffc]
call fcn.0054f3e8
mov dword [ebx + 0xa0], eax
mov esi, dword [ebx + 0xa0]
mov byte [esi + 0x2c8], 1
push 8
mov edx, 3
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe8]
push eax
mov edx, 2
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe8]
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0xa0]
call fcn.00555af8
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0xa0]
call fcn.00555af8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x5fd5b8
Capabilities:
Allocate or change rwx memory
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [edx + 0x38]
mov dword [esp + 8], eax
mov eax, dword [esp + 4]
mov eax, dword [eax]
lea ebx, [eax + 0x18]
movzx edx, word [eax + 0x14]
add ebx, edx
movzx edi, word [eax + 6]
dec edi
test edi, edi
jl 0x5fd64c
inc edi
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
add eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
test edx, edx
jne 0x5fd61f
mov esi, dword [esp + 8]
test esi, esi
jle 0x5fd646
push 0x40
push 0x1000
push esi
push eax
call sub.kernel32.dll_VirtualAlloc
mov ebp, eax
mov dword [ebx + 8], ebp
mov edx, esi
mov eax, ebp
xor ecx, ecx
call fcn.004083e0
jmp 0x5fd646
mov esi, edx
push 0x40
push 0x1000
push esi
push eax
call sub.kernel32.dll_VirtualAlloc
mov ebp, eax
mov eax, dword [ebx + 0x14]
mov edx, dword [esp]
lea eax, [edx + eax]
mov ecx, esi
mov edx, ebp
call fcn.00407500
mov dword [ebx + 8], ebp
add ebx, 0x28
dec edi
jne 0x5fd5e6
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5fd9d4
Capabilities:
Inspect section memory permissions

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, eax
xor esi, esi
mov ebx, dword [edi]
add ebx, 0xf8
mov eax, dword [edi]
movzx ebp, word [eax + 6]
dec ebp
test ebp, ebp
jl 0x5fdab6
inc ebp
xor edx, edx
mov eax, dword [ebx + 0x24]
mov ecx, eax
and ecx, 0x20000000
cmp ecx, 0x20000000
jne 0x5fda0d
or edx, 0x10
mov ecx, eax
and ecx, 0x40000000
cmp ecx, 0x40000000
jne 0x5fda20
or edx, 2
mov ecx, eax
and ecx, 0x80000000
cmp ecx, 0x80000000
jne 0x5fda33
or edx, 8
mov ecx, eax
and ecx, 0x4000000
cmp ecx, 0x4000000
jne 0x5fda49
or edx, 0x200
and eax, 0x2000000
cmp eax, 0x2000000
jne 0x5fda6b
push 0x4000
mov eax, dword [ebx + 0x10]
push eax
mov eax, dword [ebx + 8]
or eax, esi
push eax
call sub.kernel32.dll_VirtualFree
jmp 0x5fdaaf
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x5fda9a
mov ecx, dword [ebx + 0x24]
and ecx, 0x40
cmp ecx, 0x40
jne 0x5fda84
mov eax, dword [edi]
mov eax, dword [eax + 0x20]
jmp 0x5fda9a
mov ecx, dword [ebx + 0x24]
and ecx, 0x80
cmp ecx, 0x80
jne 0x5fda9a
mov eax, dword [edi]
mov eax, dword [eax + 0x24]
test eax, eax
jle 0x5fdaac
push esp
push edx
push eax
mov eax, dword [ebx + 8]
or eax, esi
push eax
call sub.kernel32.dll_VirtualProtect
add ebx, 0x28
dec ebp
jne 0x5fd9f5
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x6023d8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x640c3c], 0
jne 0x6023ef
call fcn.00602394
mov eax, edi
dec eax
test eax, eax
jl 0x602417
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x64083c]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x6023f9
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x6054e4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x605515
dec al
je 0x605550
dec al
je 0x605594
dec al
je 0x605606
jmp 0x6056a1
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x6056a1
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x605525
jmp 0x6056a1
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x6056a1
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
movzx ecx, al
mov ecx, dword [ebx + ecx*4 + 0x40]
add dl, byte [ecx + esi]
and dl, 0xff
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x605560
jmp 0x6056a1
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x6056a1
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, dword [ebx + 0x24]
mov ecx, esi
dec ecx
cmp edx, ecx
jbe 0x6055c7
xor edx, edx
mov dword [esp + 4], edx
jmp 0x6055dc
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov ebp, dword [ebx + edx*4 + 0x40]
movzx edx, byte [ebp + esi]
add eax, dword [esp + 4]
sar eax, 1
jns 0x6055f4
adc eax, 0
add dl, al
and dl, 0xff
mov byte [ebp + esi], dl
inc esi
dec edi
jne 0x6055a4
jmp 0x6056a1
xor eax, eax
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 8], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x6056a1
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, dword [ebx + 0x24]
mov ecx, esi
dec ecx
cmp edx, ecx
ja 0x60566d
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 8], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 8]
push eax
movzx eax, byte [esp + 8]
pop edx
call fcn.00602420
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [esp]
and al, 0xff
mov byte [edx + esi], al
inc esi
dec edi
jne 0x605622
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret