joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46372c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4638d7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4638b8
mov dl, 1
mov eax, dword [0x4186a4]
call fcn.00403e0c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404c4c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4638a7
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.00450f28
test al, al
je 0x46389a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4638e8
lea eax, [ebp - 0x254]
call fcn.0040a7ac
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46389a
xor eax, eax
push ebp
push 0x463893
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x463920
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46387c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404ebc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
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 + 0x3c]
jne 0x46387c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404ebc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46389a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46379d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041ce54
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4638de
lea eax, [ebp - 0x260]
call fcn.00404c4c
ret

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

Disassembly:
push ecx
mov eax, dword [0x532be4]
cmp byte [eax + 0xa5], 0
jne 0x464291
cmp dword [0x532bfc], 0
jne 0x464252
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4641dc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x532bfc], eax
cmp dword [0x532bf8], 0
jne 0x46426d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x532bf8], eax
cmp dword [0x532c00], 0
jne 0x464291
push esp
push 0
push 0
push 0x464180
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x532c00], eax
pop edx
ret
Function at 0x464924
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x532be4]
cmp dword [eax + 0x30], 0
je 0x4649ce
cmp dword [ebx + 0x94], 0
jne 0x4649c8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4648b4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4649c8
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_GetWindowLongA
test al, 8
je 0x46498e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4649c8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041a768
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46499d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46552c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x465561
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404d3c
jmp 0x46556e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404ca0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x466738
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x466779
mov eax, esi
call fcn.0044c510
test al, al
je 0x466779
mov eax, dword [ebx + 0x84]
call fcn.0044c20c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x466779
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044c20c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x46adc8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x46adf6
mov eax, ebx
call fcn.0046b87c
cmp dword [ebx + 0x40], 0
je 0x46adef
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x46ae67
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x46ae59
cmp dword [ebx + 8], 0
je 0x46ae18
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x46ae2a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x46ae59
cmp dword [ebx + 8], 0
je 0x46ae0b
cmp eax, 3
je 0x46ae3d
dec eax
jne 0x46ae0b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x46ae0b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x46ae0b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x46ae85
cmp dword [ebx + 0x14], 0xcc
je 0x46ae85
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0046ae90
pop ebx
ret
Function at 0x483ee4
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x483eec
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4840de
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4840f4
mov eax, esi
call fcn.00481c74
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404ca0
lea ecx, [ebp - 0x10]
mov edx, 0x484108
mov eax, esi
call fcn.00481c74
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404ca0
lea ecx, [ebp - 0x14]
mov edx, 0x484120
mov eax, esi
call fcn.00481c74
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404ca0
lea ecx, [ebp - 0x18]
mov edx, 0x48413c
mov eax, esi
call fcn.00481c74
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404ca0
lea ecx, [ebp - 0x1c]
mov edx, 0x484158
mov eax, esi
call fcn.00481c74
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404ca0
lea ecx, [ebp - 0x24]
mov edx, 0x484170
mov eax, esi
call fcn.00481c74
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00409454
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00409848
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x484188
mov eax, esi
call fcn.00481c74
mov eax, dword [ebp - 0x28]
call fcn.00480550
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x484198
mov eax, esi
call fcn.00481c74
mov eax, dword [ebp - 0x2c]
call fcn.00480550
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4841b0
mov eax, esi
call fcn.00481c74
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00409848
inc eax
je 0x484081
lea ecx, [ebp - 0x34]
mov edx, 0x4841b0
mov eax, esi
call fcn.00481c74
mov eax, dword [ebp - 0x34]
call fcn.0040980c
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040b5c0
fstp qword [ebp - 0x3c]
wait
call fcn.0040b930
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x48409c
lea ecx, [ebp - 0x40]
mov edx, 0x4841b0
mov eax, esi
call fcn.00481c74
mov eax, dword [ebp - 0x40]
call fcn.00480550
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4841c0
mov eax, esi
call fcn.00481c74
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404ca0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4840e5
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404c70
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404c70
ret
Function at 0x49037c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4903d6
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0049036c
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00481248
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00480e48
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4903dd
lea eax, [ebp - 4]
call fcn.00404c4c
ret
Function at 0x49eee0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffdc
mov ebp, edx
mov ebx, eax
cmp dword [ebx + 0x68], 0
jne 0x49eef8
mov eax, ebx
call fcn.0049ec40
cmp dword [ebx + 0x60], 0
jne 0x49ef05
mov eax, ebx
call fcn.0049eb98
mov esi, dword [ebx + 0x68]
test esi, esi
je 0x49f0a9
cmp dword [ebx + 0x60], 0
je 0x49f0a9
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [esp], eax
mov eax, dword [ebx + 0x68]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [esp + 4], eax
lea edx, [esp + 0x14]
mov eax, ebx
call fcn.0049eb1c
mov edx, dword [esp + 0x1c]
mov ecx, edx
mov esi, dword [esp + 0x14]
sub ecx, esi
mov eax, dword [esp]
cmp ecx, eax
je 0x49ef78
mov ecx, dword [esp + 4]
sub ecx, dword [esp + 0x20]
add ecx, dword [esp + 0x18]
sar ecx, 1
jns 0x49ef61
adc ecx, 0
push ecx
sub eax, edx
add eax, esi
sar eax, 1
jns 0x49ef6d
adc eax, 0
push eax
lea eax, [esp + 0x1c]
push eax
call sub.user32.dll_InflateRect
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + 0xe0]
test eax, eax
je 0x49ef8e
call fcn.0044c20c
mov esi, eax
jmp 0x49ef91
mov esi, dword [ebx + 0x48]
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
and eax, 8
cmp eax, 8
jne 0x49efa6
or esi, 0xffffffff
jmp 0x49efb0
push 3
push esi
call sub.user32.dll_GetWindow
mov esi, eax
mov edi, 0x610
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x60]
call fcn.0044517c
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 0x60]
call fcn.004451a0
mov edx, dword [esp]
mov eax, dword [ebx + 0x60]
call fcn.004451c8
mov edx, dword [esp + 4]
mov eax, dword [ebx + 0x60]
call fcn.004451ec
lea ecx, [esp + 8]
xor edx, edx
xor eax, eax
call fcn.004070e4
mov eax, ebp
mov byte [esp + 0x12], al
mov byte [esp + 0x10], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x13], 1
or edi, 2
or edi, 1
push edi
push 0
push 0
push 0
push 0
push esi
mov eax, dword [ebx + 0x60]
call fcn.0044c20c
push eax
call sub.user32.dll_SetWindowPos
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x60]
call fcn.0044c20c
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
or eax, 0x8000000
or eax, 0x20
push eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x60]
call fcn.0044c20c
push eax
call sub.user32.dll_SetWindowLongA
push 2
lea eax, [esp + 0x14]
push eax
push 0x1fffffff
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x68]
call fcn.00429f7c
call fcn.004258e4
push eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
mov eax, dword [ebx + 0x60]
call fcn.0044c20c
push eax
call dword [0x533390]
push 4
mov eax, dword [ebx + 0x60]
call fcn.0044c20c
push eax
call sub.user32.dll_ShowWindow
push esi
push 0
call sub.user32.dll_ReleaseDC
add esp, 0x24
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x49f7b4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x49f825
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x530df8]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x49f80f
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0049f7a4
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x49f57c]
call fcn.0049f84c
mov dword [0x530e5c], eax
mov eax, dword [ebp - 4]
call fcn.0049f754
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f82c
lea eax, [ebp - 8]
call fcn.004068d0
ret

Function at 0x49fa04
Capabilities:
Get file system object information

Disassembly:
add esp, 0xfffffea0
mov eax, esp
xor ecx, ecx
mov edx, 0x160
call fcn.004036d0
push 0x4001
push 0x160
lea eax, [esp + 8]
push eax
push 0
push 0x49fa9c
call sub.shell32.dll_SHGetFileInfoA
mov dword [0x530df0], eax
cmp dword [0x530df0], 0
je 0x49fa94
cmp dword [0x530df4], 0
jne 0x49fa94
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4ab7ac]
call fcn.004abef4
mov dword [0x530df4], eax
mov edx, dword [0x530df0]
mov eax, dword [0x530df4]
call fcn.00452ab0
mov eax, dword [0x530df4]
mov byte [eax + 0x42], 1
mov dl, 1
mov eax, dword [0x530df4]
call fcn.004ad620
push 0xffffffffffffffff
mov eax, dword [0x530df4]
call fcn.00452aec
push eax
call sub.comctl32.dll_ImageList_SetBkColor
add esp, 0x160
ret

Function at 0x4a1fb8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4a2072
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405394
mov eax, dword [0x5317d4]
cmp dword [eax], 2
jne 0x4a2027
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.004055dc
mov eax, dword [ebx]
call fcn.00405500
push eax
mov eax, dword [ebx]
call fcn.004054f0
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00405500
mov edx, eax
dec edx
mov eax, ebx
call fcn.004055dc
jmp 0x4a2059
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.0040a32c
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.004054e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2079
lea eax, [ebp - 0x3f0]
call fcn.00404c4c
ret
Function at 0x4c7e20
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, ecx
mov edi, edx
mov ebx, eax
mov eax, ebx
call fcn.004c7e0c
test eax, eax
jne 0x4c7e41
mov eax, esi
call fcn.00404c4c
jmp 0x4c7ed2
mov eax, ebx
call fcn.004c7f68
test al, al
je 0x4c7e87
push 0
push 0
push 0xe
mov eax, dword [ebx + 0x54]
push eax
call sub.user32.dll_SendMessageA
mov edi, eax
mov eax, esi
mov ecx, edi
xor edx, edx
call fcn.00404d3c
test edi, edi
je 0x4c7e7e
mov eax, dword [esi]
push eax
inc edi
push edi
push 0xd
mov eax, dword [ebx + 0x54]
push eax
call sub.user32.dll_SendMessageA
jmp 0x4c7ed2
mov eax, esi
call fcn.00404c4c
jmp 0x4c7ed2
mov ebp, dword [ebx + 0x78]
test ebp, ebp
je 0x4c7ecb
mov eax, dword [ebp + 0x208]
call fcn.0041b4c0
test eax, eax
jle 0x4c7eb9
mov eax, dword [ebx + 0x78]
mov eax, dword [eax + 0x208]
mov edx, edi
call fcn.00437738
mov edx, dword [eax + 0xc]
mov eax, esi
call fcn.00404ca0
jmp 0x4c7ed2
mov eax, esi
mov edx, dword [ebx + 0x78]
mov edx, dword [edx + 0x210]
call fcn.00404ca0
jmp 0x4c7ed2
mov eax, esi
call fcn.00404c4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4c9c38
Capabilities:
Capture webcam image

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
push 1
push esi
mov ecx, 1
xor edx, edx
xor eax, eax
call fcn.004070c8
push esi
push 0
push 0x419
mov eax, dword [ebx + 0x54]
push eax
call sub.user32.dll_SendMessageA
pop esi
pop ebx
ret
Function at 0x50e128
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffdc
mov ebp, edx
mov ebx, eax
cmp dword [ebx + 0x6c], 0
jne 0x50e140
mov eax, ebx
call fcn.0050d9b0
cmp dword [ebx + 0x68], 0
jne 0x50e14d
mov eax, ebx
call fcn.0050d90c
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x50e2fd
cmp dword [ebx + 0x68], 0
je 0x50e2fd
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [esp], eax
mov eax, dword [ebx + 0x6c]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [esp + 4], eax
lea edx, [esp + 0x14]
mov eax, ebx
call fcn.0050d77c
lea eax, [esp + 0x14]
xor edx, edx
call fcn.0050feac
cmp eax, dword [esp]
je 0x50e1cf
lea eax, [esp + 0x14]
xor edx, edx
call fcn.0050fec0
mov edx, dword [esp + 4]
sub edx, eax
sar edx, 1
jns 0x50e1ab
adc edx, 0
push edx
lea eax, [esp + 0x18]
xor edx, edx
call fcn.0050feac
mov edx, dword [esp + 4]
sub edx, eax
sar edx, 1
jns 0x50e1c4
adc edx, 0
push edx
lea eax, [esp + 0x1c]
push eax
call sub.user32.dll_InflateRect
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x50e1e2
mov eax, dword [eax + 0x18]
call fcn.0044c20c
mov esi, eax
jmp 0x50e1e5
mov esi, dword [ebx + 0x50]
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
and eax, 8
cmp eax, 8
jne 0x50e1fa
or esi, 0xffffffff
jmp 0x50e204
push 3
push esi
call sub.user32.dll_GetWindow
mov esi, eax
mov edi, 0x610
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x68]
call fcn.0044517c
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 0x68]
call fcn.004451a0
mov edx, dword [esp]
mov eax, dword [ebx + 0x68]
call fcn.004451c8
mov edx, dword [esp + 4]
mov eax, dword [ebx + 0x68]
call fcn.004451ec
lea ecx, [esp + 8]
xor edx, edx
xor eax, eax
call fcn.004070e4
mov eax, ebp
mov byte [esp + 0x12], al
mov byte [esp + 0x10], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x13], 1
or edi, 2
or edi, 1
push edi
push 0
push 0
push 0
push 0
push esi
mov eax, dword [ebx + 0x68]
call fcn.0044c20c
push eax
call sub.user32.dll_SetWindowPos
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x68]
call fcn.0044c20c
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
or eax, 0x8000000
or eax, 0x20
push eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x68]
call fcn.0044c20c
push eax
call sub.user32.dll_SetWindowLongA
push 2
lea eax, [esp + 0x14]
push eax
push 0x1fffffff
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x6c]
call fcn.00429f7c
call fcn.004258e4
push eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
mov eax, dword [ebx + 0x68]
call fcn.0044c20c
push eax
call dword [0x533390]
push 4
mov eax, dword [ebx + 0x68]
call fcn.0044c20c
push eax
call sub.user32.dll_ShowWindow
push esi
push 0
call sub.user32.dll_ReleaseDC
add esp, 0x24
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x50e53c
Capabilities:
Allocate or change rwx memory
Find taskbar
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa4
mov dword [esp], eax
mov eax, dword [esp]
xor ecx, ecx
mov edx, 0x10
call fcn.004036d0
lea eax, [esp + 0x38]
push eax
call sub.kernel32.dll_GetSystemInfo
call sub.user32.dll_GetDesktopWindow
test eax, eax
je 0x50e728
push 0
push 0x50e730
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x50e728
push 0
push 0x50e740
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x50e728
push 0
push 0x50e750
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x50e728
push 0
push 0x50e760
push 0
push eax
call sub.user32.dll_FindWindowExA
mov ebp, eax
test ebp, ebp
je 0x50e728
push 0
push 0
push 0x418
push ebp
call sub.user32.dll_SendMessageA
mov dword [esp + 4], eax
cmp dword [esp + 4], 1
jl 0x50e728
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push ebp
call sub.user32.dll_GetWindowThreadProcessId
cmp dword [esp + 8], 0
je 0x50e728
mov eax, dword [esp + 8]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov edi, eax
test edi, edi
je 0x50e728
push 0x40
push 0x1000
push 0x1000
push 0
push edi
call sub.kernel32.dll_VirtualAllocEx
mov esi, eax
test esi, esi
je 0x50e728
or ebx, 0xffffffff
cmp ebx, dword [esp + 4]
jge 0x50e714
inc ebx
push esi
push ebx
push 0x417
push ebp
call sub.user32.dll_SendMessageA
test eax, eax
je 0x50e70a
lea eax, [esp + 0xc]
push eax
push 0x18
lea eax, [esp + 0x1c]
push eax
push esi
push edi
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x50e70a
test byte [esp + 0x1d], 0xd
jne 0x50e70a
mov al, byte [esp + 0x1c]
and al, 8
cmp al, 8
je 0x50e70a
lea eax, [esp + 0xc]
push eax
push 4
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
push eax
push edi
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x50e70a
cmp dword [esp + 0xc], 0
je 0x50e70a
mov eax, dword [0x531558]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
cmp eax, dword [esp + 0x10]
jne 0x50e70a
push esi
push ebx
push 0x41d
push ebp
call sub.user32.dll_SendMessageA
test eax, eax
je 0x50e6e6
lea eax, [esp + 0xc]
push eax
push 0x10
mov eax, dword [esp + 8]
push eax
push esi
push edi
call sub.kernel32.dll_ReadProcessMemory
cmp dword [esp + 0xc], 0
je 0x50e714
lea eax, [esp + 0x28]
push eax
push ebp
call sub.user32.dll_GetWindowRect
mov eax, dword [esp]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
call fcn.00407128
jmp 0x50e714
cmp ebx, dword [esp + 4]
jl 0x50e64a
push 0x8000
push 0
push esi
push edi
call sub.kernel32.dll_VirtualFreeEx
push edi
call sub.kernel32.dll_CloseHandle_1
add esp, 0x5c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5108c0
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [esp], eax
mov eax, ebx
call fcn.00409cbc
test al, al
je 0x510947
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x160
call fcn.004036d0
or esi, 0x100
test esi, esi
jns 0x5108fb
call fcn.00403d70
push esi
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
mov eax, ebx
call fcn.0040510c
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x510947
mov dl, 1
mov eax, dword [0x423988]
call fcn.0042b548
mov dword [esp], eax
mov edx, dword [esp + 4]
mov eax, dword [esp]
call fcn.0042b954
mov eax, dword [esp]
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
je 0x510947
mov eax, esp
call fcn.0040f8bc
mov eax, dword [esp]
add esp, 0x164
pop esi
pop ebx
ret