joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f2e8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4ccbc4]
cmp dword [eax + 0x30], 0
je 0x47f392
cmp dword [ebx + 0x94], 0
jne 0x47f38c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x47f278
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x47f38c
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 0x47f352
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x47f38c
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.0041bba0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x47f361
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x47fef4
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 0x47ff29
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.004044f4
jmp 0x47ff36
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404458
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x481028
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x481069
mov eax, esi
call fcn.004666e8
test al, al
je 0x481069
mov eax, dword [ebx + 0x84]
call fcn.004663e4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x481069
push 0
mov eax, dword [ebx + 0x84]
call fcn.004663e4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x489534
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
call fcn.004039a8
mov ebx, edx
mov esi, eax
mov eax, dword [esi + 0xd018]
test eax, eax
je 0x489565
push 0
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [esi + 0xd018]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [esi + 0xd018], eax
mov edx, ebx
and dl, 0xfc
mov eax, esi
call fcn.004035cc
test bl, bl
jle 0x48957c
mov eax, esi
call fcn.00403990
pop esi
pop ebx
ret
Function at 0x497c18
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x497e78
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x497c7b
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004976e0
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040cc58
cmp al, 1
jne 0x497c7b
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004979f8
test al, al
je 0x497e07
cmp dword [ebp - 8], 0
jge 0x497c99
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004976e0
mov eax, dword [ebp - 0x210]
call fcn.004046e0
cmp ebx, eax
jge 0x497ce3
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004976e0
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4cb9f4]
and eax, 0xff
bt dword [edx], eax
jae 0x497ce3
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x497cf7
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00497bf4
cmp ebx, dword [ebp - 8]
je 0x497df9
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x497d23
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004037d8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4cb3f0]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x497de6
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004037d8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4cb3f0]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.004663e4
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004037d8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4cb3f0]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.004663e4
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497ded
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x497e5a
cmp dword [ebp - 8], 0
jge 0x497e12
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004976e0
mov eax, dword [ebp - 0x218]
call fcn.004046e0
cmp eax, dword [ebp - 8]
jg 0x497e4c
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004976e0
mov eax, dword [ebp - 0x21c]
call fcn.004046e0
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00497bf4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497e7f
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404428
ret
Function at 0x4baae4
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 1
push 0x4bab1c
push 0x4bab1c
mov eax, edi
call fcn.004048e0
push eax
mov eax, esi
call fcn.004048e0
push eax
mov eax, ebx
call fcn.004663e4
push eax
call sub.shell32.dll_ShellExecuteA
pop edi
pop esi
pop ebx
ret
Function at 0x1003c33a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x1003c349
pop dword [ebp - 0x44]
mov eax, 0x81d23840
sub eax, 0x71ce74f7
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x82e4e077
sub dword [ebp - 0x54], 0x34929b2c
mov dword [ebp - 0x50], 0x2487ec22
add dword [ebp - 0x50], 0xdab6023
mov dword [ebp - 0x4c], 0xb07e6b4f
sub dword [ebp - 0x4c], 0x64322721
mov dword [ebp - 0x48], 0xa3e4f925
add dword [ebp - 0x48], 0x5c1b06db
lea eax, [ebp - 0x54]
push eax
mov eax, 0x7ae9486a
add eax, 0x951a9812
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x137e1890
add dword [ebp - 0x54], 0x60f450c6
mov dword [ebp - 0x50], 0xce065c8d
sub dword [ebp - 0x50], 0x8c99fb18
mov dword [ebp - 0x4c], 0x1406612e
sub dword [ebp - 0x4c], 0xb096f4c2
mov dword [ebp - 0x48], 0x47fdbbe8
sub dword [ebp - 0x48], 0x47fdbbe8
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x8d15e083
add eax, 0x82ee0001
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3d72a
push 0
call eax
mov ecx, 0xa1acda45
add ecx, 0x5e536d14
xor esi, esi
add esi, eax
mov edi, 0x10071200
add edi, dword [ebp - 0x44]
mov ebx, 0x3fff3fd7
mov edx, dword [edi]
add dword [ebp - 0xc], esi
xor edx, ebx
sub dword [ebp - 0x40], ecx
mov dword [esi], edx
mov dword [ebp - 4], 0xb07e1859
add esi, 0xa8a4fcee
add esi, 0x575b0316
add edi, 0x3e05a8c3
add edi, 0xc1fa5741
loop 0x1003c461
add eax, 0xb5be34d0
add eax, 0x4a42db67
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x4062ca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4062ee
xor eax, eax
test eax, eax
je 0x406300
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406300
xor ecx, ecx
jmp 0x406303
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x4063ef
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x448e04], 0
push esi
jne 0x406426
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406400
mov dword [ecx*4 + 0x448e00], eax
inc ecx
cmp ecx, 0x100
jl 0x4063fb
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406457
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x448e00]
xor eax, esi
inc ecx
dec edx
jne 0x406439
pop edi
not eax
pop esi
ret 0xc

Function at 0x43b64b
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x43b3c1
add edi, 0x2475ec5
add edi, 0x5bac7a93
call fcn.0043b68b
sub edi, esi
inc esi
xor dword [ecx], ebx
add esi, 0xfe71295a
add ecx, 1
mov esi, esi
sub esi, edi
dec esi
cmp ecx, eax
jne fcn.0043b64b
add esi, edi
dec edi
sub esi, 1
ret
Function at 0x46f160
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x52000]
push edi
or ebp, 0xffffffff
jmp 0x46f182
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x46f189
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46f178
mov eax, 1
add ebx, ebx
jne 0x46f19b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46f1ac
jne 0x46f1cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46f1cb
dec eax
add ebx, ebx
jne 0x46f1b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x46f190
add ebx, ebx
jne 0x46f1c7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x46f21d
xor ecx, ecx
sub eax, 3
jb 0x46f1e3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46f252
sar eax, 1
mov ebp, eax
jmp 0x46f1ee
add ebx, ebx
jne 0x46f1ee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46f1bc
inc ecx
add ebx, ebx
jne 0x46f1fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46f1bc
add ebx, ebx
jne 0x46f209
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46f1fe
jne 0x46f21a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46f1fe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46f23c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46f22e
jmp 0x46f17e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46f23c
add edi, ecx
jmp 0x46f17e
pop esi
mov edi, esi
mov ecx, 0x6b8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46f25a
cmp byte [edi], 9
jne 0x46f25a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x46f25f
lea edi, [esi + 0x6c000]
mov eax, dword [edi]
or eax, eax
je 0x46f2d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x88634]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x886bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46f28c
mov ecx, edi
jns 0x46f2bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x886c4]
or eax, eax
je 0x46f2d1
mov dword [ebx], eax
add ebx, 4
jmp 0x46f2a9
call dword [esi + 0x886c0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x46f308
cmp al, 0xef
ja 0x46f2fb
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x46f2dd
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x46f2ea
mov ebp, dword [esi + 0x886c8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x46f33c
sub esp, 0xffffff80
jmp 0x40a60b
Function at 0x40bca7
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
xor ebx, ebx
push esi
mov esi, ebx
test eax, eax
je 0x40be4d
cmp word [eax], bx
je 0x40be4d
push ebx
push pe_nt_image_headers32
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
je 0x40be49
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test ebp, ebp
jle 0x40be3e
push edi
push dword [esp + 0x20]
call fcn.0040c206
mov edi, eax
test edi, edi
je 0x40be3d
cmp dword [esp + 0x20], 0xffffffff
mov ebx, dword [esp + 0x18]
jne 0x40bd1d
push 2
jmp 0x40bd21
push dword [esp + 0x20]
push ebx
call fcn.0040c695
mov esi, eax
test esi, esi
je 0x40be36
cmp ebx, 0xffffffff
jne 0x40bd38
mov ebx, esi
mov eax, dword [esi + 4]
mov dword [esi + 0x30], ebx
lea ebx, [ebp + 8]
mov dword [esi + 0x38], eax
xor eax, eax
push ebx
push eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x14], eax
push dword [0x50803c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x28], eax
test eax, eax
je 0x40bd79
mov dword [eax + 4], ebx
mov eax, dword [esi + 0x28]
and dword [eax], 0
mov eax, dword [esi + 0x28]
add eax, 8
mov dword [esi + 0x44], eax
cmp dword [esp + 0x20], 0xffffffff
je 0x40bd87
mov dword [esi + 0x34], 1
push esi
push edi
call fcn.0042b910
pop ecx
pop ecx
xor ebx, ebx
mov ecx, 0x4000
mov dword [esp + 0x20], ecx
test ebp, ebp
jle 0x40be32
lea eax, [ecx + ebx]
cmp eax, ebp
jle 0x40bdb2
mov ecx, ebp
sub ecx, ebx
mov dword [esp + 0x20], ecx
push ecx
push edi
call fcn.0042b2a0
mov dword [esp + 0x20], eax
pop ecx
pop ecx
test eax, eax
je 0x40be24
push 0
lea ecx, [esp + 0x20]
push ecx
push dword [esp + 0x28]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x1c]
add ebx, eax
cmp dword [esi + 0x14], 0
jne 0x40bdf6
push eax
push dword [esp + 0x1c]
call fcn.0040c2b1
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x1c]
cmp ebx, ebp
jl 0x40bdfe
push 1
jmp 0x40be00
push 0
push eax
push edi
call fcn.0042b570
add esp, 0xc
test eax, eax
je 0x40be18
mov ecx, dword [esp + 0x20]
cmp ebx, ebp
jl 0x40bda3
jmp 0x40be32
push edi
call fcn.0042b550
pop ecx
mov dword [esi + 0x18], eax
jmp 0x40be2b
mov dword [esi + 0x18], 1
push edi
push esi
call fcn.0040c36b
and dword [esi + 0x2c], 0
push edi
call fcn.0042b6b0
pop ecx
pop edi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov eax, esi
jmp 0x40be4f
xor eax, eax
pop esi
pop ebx
pop ecx
ret 0xc
Function at 0x40c8b9
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x40c90e
push dword [esp + 0x10]
push 0x40c838
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x5091a0]
test esi, esi
je 0x40c967
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40c906
cmp byte [esi + 0x10], 0
je 0x40c906
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x40c8e2
jmp 0x40c967
mov esi, dword [0x5091a0]
test esi, esi
je 0x40c967
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x40c960
cmp byte [esi + 0x11], 0
je 0x40c93c
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x40c953
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x5091a0
call fcn.00424ce6
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x40c91b
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x40ca0a
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x50e258]
call fcn.0042455b
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x40cb0a
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x40ca60
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x40ca58
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x40caa0
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x40cae2
push 0x22
pop edx
cmp cx, dx
je 0x40ca92
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x40ca82
xor ecx, ecx
cmp word [eax], cx
je 0x40cae2
mov ecx, eax
add eax, 2
jmp 0x40cae4
test dx, dx
je 0x40caea
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x40ca92
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x40cad8
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x40cae2
cmp cx, dx
je 0x40cad5
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x40cac5
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x40caaa
jmp 0x40ca92
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x40caec
xor edx, edx
cmp dword [ebp], ebx
jne 0x40caf5
test edi, edi
jne 0x40cb12
test edx, edx
je 0x40cafa
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x40ca4e
test edi, edi
jne 0x40cb23
mov eax, ebx
jmp 0x40cb27
test esi, esi
je 0x40cb23
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x40cb27
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x40f021
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x50e2b0]
call fcn.00424a8f
mov ebx, eax
test ebx, ebx
je 0x40f085
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x40f04a
push dword [esp + 0xc]
push ebx
call eax
jmp 0x40f085
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.00425010
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.DLL_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.004250e0
pop edi
pop esi
pop ebx
ret 8

Function at 0x40f0f2
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.DLL_GetKeyState]
xor esi, esi
push 1
call edi
mov ebx, 0x8000
test bx, ax
je 0x40f10c
inc esi
push 2
call edi
test bx, ax
je 0x40f118
or esi, 2
push 4
call edi
test bx, ax
je 0x40f124
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x40f706
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
push dword [edi]
call dword [sym.imp.USER32.DLL_GetClientRect]
mov esi, dword [esp + 0x2c]
test esi, esi
jne 0x40f73e
push dword [edi]
call dword [sym.imp.USER32.DLL_GetDC]
mov esi, eax
mov dword [esp + 0x10], 1
test byte [edi + 0x14], 8
je 0x40f823
call dword [sym.imp.USER32.DLL_GetFocus]
cmp dword [edi], eax
jne 0x40f823
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
sub ebp, dword [esp + 0x18]
mov dword [esp + 0x28], eax
test eax, eax
jle 0x40f851
test ebp, ebp
jle 0x40f851
push esi
call dword [sym.imp.GDI32.DLL_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x40f851
push ebp
push dword [esp + 0x2c]
push esi
call dword [sym.imp.GDI32.DLL_CreateCompatibleBitmap]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x40f81a
push eax
push ebx
call dword [sym.imp.GDI32.DLL_SelectObject]
cmp dword [edi + 0x10], 0
je 0x40f7c4
push 4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [edi + 0x10]
push eax
push eax
push ebx
call dword [sym.imp.USER32.DLL_DrawStateW]
jmp 0x40f7d9
push 0
call dword [sym.imp.GDI32.DLL_GetStockObject]
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.DLL_FillRect]
push 2
pop eax
add dword [esp + 0x14], eax
add dword [esp + 0x18], eax
sub dword [esp + 0x1c], eax
sub dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.USER32.DLL_DrawFocusRect]
push 0xcc0020
xor eax, eax
push eax
push eax
push ebx
push ebp
push dword [esp + 0x3c]
push eax
push eax
push esi
call dword [sym.imp.GDI32.DLL_BitBlt]
push dword [esp + 0x2c]
call dword [sym.imp.GDI32.DLL_DeleteObject]
push ebx
call dword [sym.imp.GDI32.DLL_DeleteDC]
jmp 0x40f851
cmp dword [edi + 0x10], ebx
je 0x40f83d
push 4
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [edi + 0x10]
push ebx
push ebx
push esi
call dword [sym.imp.USER32.DLL_DrawStateW]
jmp 0x40f851
push ebx
call dword [sym.imp.GDI32.DLL_GetStockObject]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.USER32.DLL_FillRect]
cmp dword [esp + 0x10], 0
je 0x40f861
push esi
push dword [edi]
call dword [sym.imp.USER32.DLL_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x40f869
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
xor ebx, ebx
call dword [sym.imp.USER32.DLL_GetMessagePos]
mov edi, dword [esp + 0x20]
mov esi, eax
push 0xfffffffffffffff4
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowLongW]
push dword [edi]
mov dword [esp + 0x14], eax
call fcn.00410dc4
push eax
call fcn.00411292
push dword [0x5091b4]
mov dword [esp + 0x24], eax
call fcn.004245b8
mov ebp, eax
movsx ecx, si
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
push dword [edi]
shr esi, 0x10
movsx ecx, si
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.DLL_ScreenToClient]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
push 0x10
call esi
mov edi, 0x8000
test di, ax
je 0x40f8dd
inc ebx
push 0x12
call esi
test di, ax
je 0x40f8e9
or ebx, 2
push 0x11
call esi
test di, ax
je 0x40f8f5
or ebx, 4
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], eax
call fcn.0040f0f2
push 0x40f94a
push ebp
push dword [esp + 0x2c]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x34]
push dword [esp + 0x2c]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x3c]
push dword [esp + 0x20]
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x44]
movzx eax, ax
push 0x332c
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x18], eax
call fcn.00412d6f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x412127
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov ebx, eax
test ebx, ebx
je 0x4121a1
push 9
call esi
test al, al
jns 0x4121a1
push 0x11
call esi
test al, al
js 0x4121a1
push 0x10
call esi
test al, al
js 0x4121a1
push 0x12
call esi
test al, al
js 0x4121a1
push 5
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.DLL_GetClassNameW]
push 4
lea eax, [ebp - 0x10]
push str.Rich
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x4121a1
push eax
push eax
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x4121a1
xor eax, eax
jmp 0x412222
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4121c9
push 0x11
call esi
test al, al
js 0x4121c1
push 0x10
call esi
test al, al
js 0x4121c1
push 0x12
call esi
test al, al
jns 0x4121c9
push 1
push edi
call fcn.0041222a
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test ebx, ebx
je 0x4121df
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x41221f
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x41221f
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x41221f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x41221f
lea eax, [esi - 1]
push eax
push dword [0x50e2c0]
call fcn.00424a8f
test eax, eax
je 0x41221f
mov eax, dword [eax + 8]
jmp 0x412221
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4