joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48e6ac
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404954
mov eax, dword [ebp - 0xc]
call fcn.00404954
mov eax, dword [ebp + 8]
call fcn.00404954
xor eax, eax
push ebp
push 0x48e82e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x70], 0
je 0x48e75d
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x5c]
call fcn.0040452c
mov byte [ebp - 0xd], 0
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0048ba0c
test al, al
je 0x48e74b
mov eax, dword [ebp + 8]
call fcn.00404764
inc eax
push eax
mov eax, dword [ebp + 8]
call fcn.00404964
push eax
push 1
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404964
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete byte [ebp - 0xd]
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0048ba0c
jmp 0x48e7fb
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x5c]
call fcn.0040452c
mov byte [ebp - 0xd], 0
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0048ba0c
test al, al
jne 0x48e78f
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0048ba0c
jmp 0x48e7fb
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0048a37c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x10], 3
mov eax, dword [ebp + 8]
call fcn.00404764
inc eax
call fcn.00402828
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x14], eax
mov eax, dword [ebp + 8]
call fcn.00404764
mov ecx, eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x14]
call fcn.0040a2c0
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x63], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x62], 0
jne 0x48e7ee
mov eax, dword [ebp - 4]
call fcn.0048d94c
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0048ba0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e835
lea eax, [ebp - 0x1c]
call fcn.00404494
lea eax, [ebp - 0x14]
call fcn.00404494
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004044b8
lea eax, [ebp + 8]
call fcn.00404494
ret
Function at 0x48e8d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404954
mov eax, dword [ebp - 0xc]
call fcn.00404954
xor eax, eax
push ebp
push 0x48ea92
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x70], 0
je 0x48e9b4
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x5c]
call fcn.0040452c
mov byte [ebp - 0xd], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0048ba0c
test al, al
je 0x48e9a2
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404964
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x48e9a2
cmp dword [ebp - 0x20], 3
jne 0x48e9a2
cmp dword [ebp - 0x18], 8
jne 0x48e9a2
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404964
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete byte [ebp - 0xd]
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0048ba0c
jmp 0x48ea67
mov byte [ebp - 0xd], 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x30]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x48ea59
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x10], 6
jne 0x48e9f3
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x18]
mov dword [eax], ecx
mov ecx, dword [edx + 0x1c]
mov dword [eax + 4], ecx
mov byte [ebp - 0xd], 1
jmp 0x48ea67
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x10], 2
jne 0x48ea0e
mov eax, dword [ebp - 0x14]
fild dword [eax + 0x14]
mov eax, dword [ebp + 8]
fstp qword [eax]
wait
mov byte [ebp - 0xd], 1
jmp 0x48ea67
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x10], 3
jne 0x48ea49
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x14]
call fcn.0040469c
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
mov edx, dword [ebp + 8]
call fcn.0047cdcc
cmp dword [ebp - 0x18], 0
jle 0x48ea67
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
jmp 0x48ea67
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
jmp 0x48ea67
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ea99
lea eax, [ebp - 0x24]
call fcn.00404494
lea eax, [ebp - 0x1c]
call fcn.00404494
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004044b8
ret
Function at 0x48eaa4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404954
mov eax, dword [ebp - 0xc]
call fcn.00404954
xor eax, eax
push ebp
push 0x48ebec
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x70], 0
je 0x48eb40
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x5c]
call fcn.0040452c
mov byte [ebp - 0xd], 0
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0048ba0c
test al, al
je 0x48eb2e
push 8
lea eax, [ebp + 8]
push eax
push 3
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404964
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete byte [ebp - 0xd]
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0048ba0c
jmp 0x48ebc1
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x5c]
call fcn.0040452c
mov byte [ebp - 0xd], 0
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0048ba0c
test al, al
jne 0x48eb72
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0048ba0c
jmp 0x48ebc1
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0048a37c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x10], 6
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
mov dword [eax + 0x18], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x1c], edx
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x63], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x62], 0
jne 0x48ebb4
mov eax, dword [ebp - 4]
call fcn.0048d94c
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0048ba0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ebf3
lea eax, [ebp - 0x1c]
call fcn.00404494
lea eax, [ebp - 0x14]
call fcn.00404494
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004044b8
ret
Function at 0x4d5638
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d5724
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_GetKeyboardLayout
and eax, 0xffff
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0x1004
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.00404af0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404964
push eax
push 0x1004
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
call sub.kernel32.dll_GetACP
mov edx, eax
mov eax, dword [ebp - 0x10]
call fcn.004095b4
mov dword [ebp - 0xc], eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404764
push eax
mov eax, dword [ebp - 4]
call fcn.00404964
push eax
push 5
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_MultiByteToWideChar_1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
call fcn.0040510c
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00404d98
push eax
mov eax, dword [ebp - 4]
call fcn.00404764
push eax
mov eax, dword [ebp - 4]
call fcn.00404964
push eax
push 5
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_MultiByteToWideChar_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d572b
lea eax, [ebp - 0x10]
call fcn.00404494
ret
Function at 0x4d8490
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d857c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_GetKeyboardLayout
and eax, 0xffff
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0x1004
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.00404af0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404964
push eax
push 0x1004
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
call sub.kernel32.dll_GetACP
mov edx, eax
mov eax, dword [ebp - 0x10]
call fcn.004095b4
mov dword [ebp - 0xc], eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404764
push eax
mov eax, dword [ebp - 4]
call fcn.00404964
push eax
push 5
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_MultiByteToWideChar_1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
call fcn.0040510c
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00404d98
push eax
mov eax, dword [ebp - 4]
call fcn.00404764
push eax
mov eax, dword [ebp - 4]
call fcn.00404964
push eax
push 5
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_MultiByteToWideChar_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8583
lea eax, [ebp - 0x10]
call fcn.00404494
ret
Function at 0x4de700
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4dea99
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
test byte [eax + 9], 8
je 0x4dea53
mov eax, dword [ebp - 4]
call fcn.0045eca0
push eax
call sub.imm32.dll_ImmGetContext
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4dea5e
mov eax, dword [ebp - 4]
cmp byte [eax + 0x250], 0
jne 0x4dea5e
mov eax, dword [0x5be60c]
cmp byte [eax], 0
je 0x4de863
xor eax, eax
push ebp
push 0x4de81f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
call fcn.00404bb0
push 0x4deaa4
call sub.kernel32.dll_GetModuleHandleA_2
test eax, eax
je 0x4de7ff
push 0x4deaac
push 0x4deaa4
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4de7ff
push 0
push 0
push 0x800
mov eax, dword [ebp - 0xc]
push eax
call dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x18]
call fcn.0040510c
mov eax, dword [ebp - 0x14]
call fcn.00404d98
xor ecx, ecx
mov edx, dword [ebp - 0x18]
call fcn.0047b6d4
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404d98
push eax
push 0x800
mov eax, dword [ebp - 0xc]
push eax
call dword [ebp - 0x20]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4de826
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0045eca0
push eax
call sub.imm32.dll_ImmReleaseContext
ret
lea eax, [ebp - 0x10]
call fcn.00404494
xor eax, eax
push ebp
push 0x4de8d4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0x800
mov eax, dword [ebp - 0xc]
push eax
call sub.imm32.dll_ImmGetCompositionStringA
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.00404af0
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404964
push eax
push 0x800
mov eax, dword [ebp - 0xc]
push eax
call sub.imm32.dll_ImmGetCompositionStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4de8db
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0045eca0
push eax
call sub.imm32.dll_ImmReleaseContext
ret
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx - 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4deaa0
lea eax, [ebp - 0x40]
call fcn.00404bb0
lea eax, [ebp - 0x3c]
call fcn.00404bb0
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00404bc8
lea eax, [ebp - 0x14]
call fcn.00404bb0
lea eax, [ebp - 0x10]
call fcn.00404494
ret
Function at 0x4e4888
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e49a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.004e5ae0
mov eax, dword [eax + 0x30]
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.004e5ae0
lea ecx, [ebp - 0x18]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
call fcn.00404da8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 1
jmp 0x4e491a
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.004e5ae0
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.00404da8
add dword [ebp - 0x10], eax
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jle 0x4e493a
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.004e5ae0
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp - 0x14]
jg 0x4e48f3
mov eax, dword [ebp - 0x14]
dec eax
mov edx, dword [ebp + 8]
add dword [edx], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.004e5ae0
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0x14]
dec edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x20]
call fcn.00404da8
push eax
mov eax, dword [ebp - 0x10]
pop edx
sub eax, edx
sub eax, dword [ebp - 0xc]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jge 0x4e498a
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e49ac
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404bc8
ret
Function at 0x509148
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff74
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x509170
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045c8ac
jmp 0x5092ff
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x70]
push eax
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x84]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
push eax
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x5092f8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 4]
call fcn.0045eca0
push eax
call sub.user32.dll_BeginPaint
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_GetClipBox
lea eax, [ebp - 0x6c]
push eax
call sub.user32.dll_IsRectEmpty
test eax, eax
je 0x509219
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
jmp 0x509226
push 1
push 1
lea eax, [ebp - 0x6c]
push eax
call sub.user32.dll_InflateRect
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x6c]
push eax
call sub.gdi32.dll_CreateRectRgn
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_SelectClipRgn
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.004595c4
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00509148
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_SelectClipRgn
mov eax, dword [ebp - 0x1c]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 4], edx
push 0xcc0020
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 4]
call fcn.0045eca0
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5092ff
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_DeleteObject
ret
mov esp, ebp
pop ebp
ret
Function at 0x51223c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x512264
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045c8ac
jmp 0x5123da
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x6c]
push eax
lea edx, [ebp - 0x88]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x80]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
push eax
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x5123d3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 4]
call fcn.0045eca0
push eax
call sub.user32.dll_BeginPaint
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_GetClipBox
lea eax, [ebp - 0x68]
call fcn.00406d48
test al, al
je 0x512307
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
push 0
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_InvalidateRect
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.004595c4
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0051223c
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 4], edx
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_GetClipBox
lea eax, [ebp - 0x68]
call fcn.00406d48
test al, al
je 0x51236a
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x44]
push 0xcc0020
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 4]
call fcn.0045eca0
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5123da
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_DeleteObject
ret
mov esp, ebp
pop ebp
ret