joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403160
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
xor esi, esi
cmp dword [0x8fb080], 0x594
mov dword [ebp - 0xc], eax
jne 0x403195
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov ecx, dword [0x4dbef8]
mov edx, dword [0x4dbefc]
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], edx
call fcn.00403150
mov ebx, dword [ebp - 8]
mov eax, dword [0x4dbf00]
mov ecx, dword [0x4dbf04]
add ebx, 0x23f
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], 0x20
jmp 0x4031e2
xor esi, esi
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov ecx, dword [0x8fb080]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x403244
push esi
lea edx, [ebp - 0x42c]
push edx
push 0x4025c0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
xor eax, eax
xor ecx, ecx
mov word [ebp - 0x14], ax
mov word [ebp - 0x12], cx
mov edx, dword [ebp - 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
mov eax, dword [ebp - 4]
mov ecx, dword [0x8fb080]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x40325e
mov dword [0x8fa61c], 0xedeb2e40
jmp 0x40326c
cmp ecx, 0x3eb
jne 0x40326c
mov dword [0x8f9fd0], esi
mov ecx, dword [ebp - 8]
mov edx, edi
shr edx, cl
lea eax, [ebx + edi]
mov dword [ebp - 0x10], eax
mov dword [0x8fa618], 0xf4ea3dee
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
cmp dword [0x8fb080], 0xc
jne 0x4032bf
lea ecx, [ebp - 0x10]
push ecx
push esi
push esi
lea edx, [ebp - 0x2c]
push edx
push esi
push esi
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_BackupRead]
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 4]
lea esi, [ebx + edx]
add ebx, 0x61c88647
add eax, dword [ebp - 0x20]
xor eax, esi
xor ecx, eax
sub edi, ecx
sub dword [ebp - 0x18], 1
mov dword [ebp - 4], ecx
jne 0x4031e0
cmp dword [0x8fb080], 0xa6d
mov esi, dword [ebp + 8]
mov dword [esi], edi
pop ebx
jne 0x403327
push 0
push 0x4025f4
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [esi + 4], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
mov dword [esi + 4], edx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x403340
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x8fb080]
mov ecx, dword [0x8f9fd4]
shr eax, 3
sub esp, 0x408
test eax, eax
jbe 0x40341a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnumDateFormatsExA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
lea ebx, [ebx]
cmp dword [0x8fb080], 0x959
jne 0x403400
push 0
call esi
push 0
push 0
call edi
push 0
push 0
push 0
call ebx
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push 0x402628
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0
call dword [sym.imp.KERNEL32.dll_HeapLock]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 4]
push ecx
call fcn.00403160
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x403380
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4045a0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4db0c8]
jne 0x4045aa
repz ret
jmp fcn.00406d0e

Function at 0x40692f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404621
and dword [ebp - 4], 0
cmp dword [0x4dca10], 0
mov ebx, eax
jne 0x4069e0
push 0x4019f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406a91
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4019ec
push edi
call esi
test eax, eax
je 0x406a91
push eax
call fcn.004045af
mov dword [esp], 0x4019dc
push edi
mov dword [0x4dca10], eax
call esi
push eax
call fcn.004045af
mov dword [esp], 0x4019c8
push edi
mov dword [0x4dca14], eax
call esi
push eax
call fcn.004045af
mov dword [esp], 0x4019ac
push edi
mov dword [0x4dca18], eax
call esi
push eax
call fcn.004045af
pop ecx
mov dword [0x4dca20], eax
test eax, eax
je 0x4069e0
push 0x401994
push edi
call esi
push eax
call fcn.004045af
pop ecx
mov dword [0x4dca1c], eax
mov eax, dword [0x4dca1c]
cmp eax, ebx
je 0x406a38
cmp dword [0x4dca20], ebx
je 0x406a38
push eax
call fcn.0040462a
push dword [0x4dca20]
mov esi, eax
call fcn.0040462a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406a38
test edi, edi
je 0x406a38
call esi
test eax, eax
je 0x406a2f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406a2f
test byte [ebp - 0xc], 1
jne 0x406a38
or dword [ebp + 0x10], 0x200000
jmp 0x406a71
mov eax, dword [0x4dca14]
cmp eax, ebx
je 0x406a71
push eax
call fcn.0040462a
pop ecx
test eax, eax
je 0x406a71
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406a71
mov eax, dword [0x4dca18]
cmp eax, ebx
je 0x406a71
push eax
call fcn.0040462a
pop ecx
test eax, eax
je 0x406a71
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4dca10]
call fcn.0040462a
pop ecx
test eax, eax
je 0x406a91
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406a93
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x40915c
mov ecx, 0x652716ee
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..reloc_1
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x2c266070
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x40220a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, eax
sub ecx, dword [esi + 0x14]
mov eax, dword [ebp + 0xc]
sub eax, dword [esi + 0x10]
mov edx, dword [esi]
push edi
push 1
push ecx
xor ebx, ebx
mov dword [ebp + 0x10], ecx
push eax
mov ecx, esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [edx + 0x8c]
mov edi, dword [esi + 0x174]
cmp edi, ebx
mov dword [ebp - 0x10], eax
je 0x402351
push edi
call fcn.00431cc3
mov ebx, eax
test ebx, ebx
pop ecx
je 0x402321
mov eax, dword [ebx + 0xc]
push 2
mov dword [ebp - 0xc], eax
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax + 0x38]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x48]
test eax, eax
je 0x402287
lea eax, [ebx + 0x10]
push eax
call fcn.00426f7a
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, ebx
push 0x202
call fcn.00431f51
mov eax, dword [ebp - 0x10]
cmp dword [esi + 0x174], eax
jne 0x4022de
mov eax, dword [ebx + 0x3c]
xor ecx, ecx
cmp eax, ecx
je 0x4022d0
cmp word [eax], cx
je 0x4022d0
push 1
push ecx
push ecx
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x402321
cmp dword [ebx + 0xc], ecx
je 0x402321
mov dword [ebp - 4], 1
jmp 0x402321
mov eax, dword [ebx]
push 1
push 0
mov ecx, ebx
call dword [eax + 0x38]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x48]
test eax, eax
je 0x4022fd
lea eax, [ebx + 0x10]
push eax
call fcn.00426f7a
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, ebx
push 0x2a3
call fcn.00431f51
mov dword [ebp - 8], 1
xor ecx, ecx
cmp dword [ebp - 4], ecx
mov dword [esi + 0x174], ecx
je 0x402332
push 0x67
jmp 0x40234a
cmp dword [ebp - 8], ecx
je 0x402351
cmp dword [ebp - 0xc], ecx
je 0x402351
lea eax, [esi + 0x170]
cmp edi, dword [eax]
jne 0x402348
mov dword [eax], ecx
push 0x6a
mov edi, ebx
call fcn.00401e15
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x403af4
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x59c14a
call fcn.00596170
sub esp, 0x10
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
call fcn.0043238b
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
push str.__02d__02d__02d__03d__n
lea ecx, [ebp + 8]
call fcn.00412e96
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004011c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x406590
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.0049cee0
add esp, 0xc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x4065e9
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x406697
mov eax, dword [ebp - 0x94]
dec eax
je 0x406683
dec eax
jne 0x406697
cmp dword [ebp - 0xa0], 6
jne 0x406634
inc eax
cmp dword [ebp - 0x9c], eax
jne 0x40661c
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
add ecx, 8
jmp 0x406630
cmp dword [ebp - 0x9c], edi
jne 0x406670
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
lea ecx, [ecx + ecx + 7]
mov edi, ecx
jmp 0x406697
cmp dword [ebp - 0xa0], 5
jne 0x406663
cmp dword [ebp - 0x9c], 2
jne 0x40664a
push 5
jmp 0x406680
cmp dword [ebp - 0x9c], 1
jne 0x406657
push 6
jmp 0x406680
cmp dword [ebp - 0x9c], edi
jne 0x406697
push 3
jmp 0x406680
cmp dword [ebp - 0xa0], 4
ja 0x406697
push 4
jmp 0x406680
cmp dword [ebp - 0x9c], 2
jne 0x406697
cmp byte [ebp + 0x76], al
jne 0x406697
push 0xa
pop edi
jmp 0x406697
mov eax, dword [ebp - 0x98]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret
Function at 0x40966e
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x597f02
call fcn.00596170
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esi], edi
mov dword [ebp - 4], edi
mov eax, vtable.KEvent.0
mov dword [esi + 4], eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov byte [ebp - 4], 3
call fcn.00446e89
lea ecx, [esi + 0x3c]
mov dword [ecx], eax
mov byte [eax + 0x15], 1
mov eax, dword [ecx]
mov dword [eax + 4], eax
mov eax, dword [ecx]
mov dword [eax], eax
mov ecx, dword [ecx]
mov dword [ecx + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40a9c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
inc edi
cmp dword [ebp + 0xc], 0x4e
jne 0x40a9f5
mov eax, dword [ebp + 0x14]
cmp dword [eax + 4], 0x3e8
jne 0x40a9f5
mov ecx, esi
mov dword [esi + 0x52c], edi
call fcn.0040a92e
mov dword [ebx], eax
cmp dword [esi + 0x52c], 0
je 0x40a9f5
mov eax, edi
jmp 0x40aa3c
push 0
push ebx
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043d991
test eax, eax
jne 0x40a9f1
mov eax, dword [ebp + 0xc]
cmp eax, 0x402
jne 0x40aa41
push 5
push dword [esi + 4]
lea eax, [esi + 0x52c]
mov dword [ebp + 0xc], eax
mov dword [eax], edi
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [ebx], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x40a9f1
xor eax, eax
pop edi
pop ebp
ret 0x10
cmp eax, 0x403
jne 0x40aa7b
mov eax, dword [esi + 0x530]
mov dword [esi + 0x28], eax
xor eax, eax
push eax
push eax
push eax
mov dword [esi + 0x52c], edi
mov dword [esi + 0x51c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
and dword [ebx], 0
cmp dword [esi + 0x52c], 0
jmp 0x40aa38
cmp eax, 0x465
jne 0x40aaa8
lea ecx, [esi + 0x2c]
mov dword [esi + 0x52c], edi
call fcn.0040b9ec
mov dword [esi + 0x5a4], eax
mov eax, dword [esi + 0x30]
push 5
lea ecx, [esi + 0x568]
call fcn.0048e3f6
jmp 0x40aa6f
cmp eax, 0x110
jne 0x40aa3a
lea eax, [esi + 0x52c]
push ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax], edi
mov dword [ebp + 0xc], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, esi
call fcn.0040a38a
mov dword [ebx], eax
jmp 0x40aa32
Function at 0x40b145
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [ebp + 0xc], 0x4e
push edi
mov edi, eax
jne 0x40b17d
mov eax, dword [ebp + 0x14]
cmp dword [eax + 4], 0x3e8
jne 0x40b17d
mov ecx, edi
mov dword [edi + 0x528], esi
call fcn.0040b0bb
mov dword [ebx], eax
cmp dword [edi + 0x528], 0
je 0x40b17d
mov eax, esi
jmp 0x40b1c4
push 0
push ebx
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043d991
test eax, eax
jne 0x40b179
mov eax, dword [ebp + 0xc]
cmp eax, 0x402
jne 0x40b1ca
push 5
push dword [edi + 4]
lea eax, [edi + 0x528]
mov dword [ebp + 0xc], eax
mov dword [eax], esi
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [ebx], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x40b179
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x10
cmp eax, 0x403
jne 0x40b204
mov eax, dword [edi + 0x530]
mov dword [edi + 0x28], eax
xor eax, eax
push eax
push eax
push eax
mov dword [edi + 0x528], esi
mov dword [edi + 0x51c], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
and dword [ebx], 0
cmp dword [edi + 0x528], 0
jmp 0x40b1c0
cmp eax, 0x465
jne 0x40b231
lea ecx, [edi + 0x2c]
mov dword [edi + 0x528], esi
call fcn.0040b9ec
mov dword [edi + 0x590], eax
mov eax, dword [edi + 0x30]
push 5
lea ecx, [edi + 0x560]
call fcn.004494aa
jmp 0x40b1f8
cmp eax, 0x110
jne 0x40b1c2
lea eax, [edi + 0x528]
push ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax], esi
mov dword [ebp + 0xc], eax
mov eax, esp
mov dword [eax], ecx
call fcn.0040ad85
mov dword [ebx], eax
jmp 0x40b1ba
Function at 0x40ce3e
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
xor esi, esi
cmp ebp, esi
push edi
mov ebx, eax
mov dword [esp + 0x18], esi
jne 0x40ce75
mov eax, dword [0x61f65c]
cmp eax, esi
je 0x40ce63
mov ebp, dword [eax + 4]
jmp 0x40ce65
xor ebp, ebp
cmp ebp, esi
jne 0x40ce75
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebp, eax
cmp ebp, esi
je 0x40ce9a
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebp, eax
je 0x40ce9a
push ebp
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40ce9a
push esi
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x18], 1
push ecx
mov eax, esp
mov dword [ebx + 0x51c], esi
push ebp
mov dword [eax], esi
call fcn.0040e389
cmp eax, esi
mov dword [esp + 0x14], eax
jne 0x40cec3
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x40cf9f
mov edx, eax
call fcn.0041a204
mov dword [esp + 0x1c], eax
mov eax, ebp
call fcn.0043ddb4
cmp dword [ebx + 0x510], esi
je 0x40cf45
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push 0x2001
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp edi, dword [esp + 0x24]
je 0x40cf29
push 1
push edi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp edi, dword [esp + 0x24]
je 0x40cf45
push esi
push edi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, ebx
call fcn.0040e53f
push 0x97
push esi
push esi
push esi
push esi
push esi
push dword [ebx + 4]
mov dword [ebx + 0x51c], esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x18], esi
je 0x40cf8a
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
cmp ebp, esi
je 0x40cf8a
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx + 4]
jne 0x40cf8a
push ebp
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x1c]
call fcn.0041a204
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x40d031
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
xor esi, esi
cmp ebp, esi
push edi
mov ebx, eax
mov dword [esp + 0x18], esi
jne 0x40d068
mov eax, dword [0x61f65c]
cmp eax, esi
je 0x40d056
mov ebp, dword [eax + 4]
jmp 0x40d058
xor ebp, ebp
cmp ebp, esi
jne 0x40d068
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebp, eax
cmp ebp, esi
je 0x40d08d
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebp, eax
je 0x40d08d
push ebp
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40d08d
push esi
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x18], 1
push ecx
mov eax, esp
mov dword [ebx + 0x51c], esi
push ebp
mov dword [eax], esi
call fcn.0040e5b7
cmp eax, esi
mov dword [esp + 0x14], eax
jne 0x40d0b6
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x40d192
mov edx, eax
call fcn.0041a204
mov dword [esp + 0x1c], eax
mov eax, ebp
call fcn.0043ddb4
cmp dword [ebx + 0x510], esi
je 0x40d138
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push 0x2001
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp edi, dword [esp + 0x24]
je 0x40d11c
push 1
push edi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp edi, dword [esp + 0x24]
je 0x40d138
push esi
push edi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, ebx
call fcn.0040e53f
push 0x97
push esi
push esi
push esi
push esi
push esi
push dword [ebx + 4]
mov dword [ebx + 0x51c], esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x18], esi
je 0x40d17d
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
cmp ebp, esi
je 0x40d17d
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx + 4]
jne 0x40d17d
push ebp
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x1c]
call fcn.0041a204
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x410bf6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x2c]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x44]
mov edi, eax
test edi, edi
jne 0x410c42
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x188]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x44]
mov edi, eax
test edi, edi
jne 0x410c42
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x2e4]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x44]
mov edi, eax
cmp dword [esi + 0x45c], 0
je 0x410cba
lea ebx, [esi + 0x46c]
cmp dword [ebx], 0
je 0x410c5f
call dword [sym.imp.USER32.dll_ReleaseCapture]
and dword [ebx], 0
cmp dword [esi + 0x45c], edi
jne 0x410cb3
push edi
call fcn.00431cc3
mov edi, eax
movzx eax, word [ebp + 0x10]
pop ecx
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x205
call fcn.00431f51
mov eax, dword [esi + 4]
or dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xd
mov dword [ebp - 0x14], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x14]
push ecx
push 0xffffffffffffffff
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [esi + 0x45c], 0
pop edi
pop ebx
leave
ret 0xc