joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409891
Capabilities:
Get disk information

Disassembly:
push ebp
push ebx
push edi
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x409899
call fcn.00427280
push edx
call fcn.004270a0
pop edx
push eax
push edx
call fcn.004270a0
pop edx
push eax
push 0x104
call fcn.00424e80
lea eax, [esp + 0x10]
push eax
call fcn.004270e0
lea eax, [esp + 0x10]
mov edx, 0x42b02e
push edx
push 3
push eax
call fcn.004271b0
lea eax, [esp + 0x18]
mov edx, 0x42b02e
push edx
push 7
push eax
call fcn.004271b0
mov dword [esp + 0x28], 0
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0xc]
push eax
push 0x104
call sub.KERNEL32.dll_GetLogicalDriveStringsW
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
jmp 0x409923
mov ebx, dword [esp + 0x28]
mov eax, ebx
mov ecx, 4
cdq
idiv ecx
mov ebx, eax
dec ebx
cmp ebx, dword [esp + 0x2c]
jl 0x409a26
push 0
push 0xc
lea eax, [esp + 8]
push eax
call fcn.00426200
push edx
call fcn.004270a0
pop edx
push eax
push edx
call fcn.004270a0
pop edx
push eax
mov eax, dword [esp + 0x14]
mov ebx, eax
mov edi, dword [esp + 0x34]
shl edi, 2
add edi, edi
add ebx, edi
push ebx
call fcn.004261b0
lea eax, [esp + 0x14]
push 3
push eax
call fcn.00427170
push edx
call fcn.004270a0
pop edx
push eax
mov edx, str.._
push edx
call fcn.004271e0
lea edx, [esp + 0x14]
push 3
push edx
call fcn.00427370
lea eax, [esp + 0x1c]
push 7
push eax
call fcn.00427170
push edx
call fcn.004270a0
pop edx
push eax
lea eax, [esp + 4]
push eax
lea edx, [esp + 0x20]
push edx
call fcn.004270a0
pop edx
push eax
push 7
push edx
call fcn.00427370
call fcn.00414362
add dword [esp], edx
call fcn.00409c5e
call fcn.00414380
and eax, eax
je 0x409a1c
lea ebp, [esp]
mov ebx, dword [ebp + 4]
cmp ebx, dword [esp + 0x44]
jne 0x409a0f
mov ebx, dword [ebp + 8]
cmp ebx, dword [esp + 0x48]
jne 0x409a0f
mov eax, 1
jmp 0x409a11
xor eax, eax
and eax, eax
je 0x409a1c
mov byte [esp + 0x30], 1
jmp 0x409a26
inc dword [esp + 0x2c]
jno 0x409923
movsx eax, byte [esp + 0x30]
movsx eax, al
jmp 0x409a32
push dword [esp + 0xc]
call fcn.00427310
add esp, 0x34
pop edi
pop ebx
pop ebp
ret 8

Function at 0x409c5e
Capabilities:
Get disk information via ioctl

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
call fcn.00427280
mov edx, dword [esp + 0x18]
lea ecx, [esp]
call fcn.00414060
mov byte [esp + 0xc], 0
push 0
push 3
push 0
push dword [esp + 0xc]
call fcn.004038a6
mov dword [esp + 8], eax
mov ebx, dword [esp + 8]
cmp ebx, 0xffffffff
je 0x409cd8
push 0
lea eax, [esp + 8]
push eax
push 0xc
push dword [esp + 0x28]
push 0
push 0
push 0x2d1080
push dword [esp + 0x24]
call sub.KERNEL32.dll_DeviceIoControl
mov byte [esp + 0xc], al
push dword [esp + 8]
call sub.KERNEL32.dll_CloseHandle
movsx eax, byte [esp + 0xc]
movsx eax, al
jmp 0x409ce4
push dword [esp]
call fcn.00427310
add esp, 0x10
pop ebx
ret 8
Function at 0x40aa01
Capabilities:
Capture screenshot
Open clipboard
Write clipboard data

Disassembly:
mov edx, 0x3c
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40aa06
call fcn.00427280
mov edx, 0x42b02e
lea ecx, [esp + 4]
call fcn.00414068
lea eax, [esp + 8]
push eax
mov eax, 0x42b02e
push eax
mov eax, 0x42b02e
push eax
mov eax, str.DISPLAY
push eax
call sub.GDI32.dll_CreateDCW
mov dword [esp + 0xe4], eax
push dword [esp + 0xe4]
call sub.GDI32.dll_CreateCompatibleDC
mov dword [esp + 0xe8], eax
push dword [esp + 0x100]
push dword [esp + 0x100]
push dword [esp + 0xec]
call sub.GDI32.dll_CreateCompatibleBitmap
mov dword [esp + 0xec], eax
push dword [esp + 0xec]
push dword [esp + 0xec]
call sub.GDI32.dll_SelectObject
push 0xcc0020
push dword [esp + 0xfc]
push dword [esp + 0xfc]
push dword [esp + 0xf0]
push dword [esp + 0x110]
push dword [esp + 0x110]
push 0
push 0
push dword [esp + 0x108]
call sub.GDI32.dll_BitBlt
push 0
call sub.USER32.dll_OpenClipboard
call sub.USER32.dll_EmptyClipboard
push dword [esp + 0xec]
push 2
call sub.USER32.dll_SetClipboardData
call sub.USER32.dll_CloseClipboard
push dword [esp + 0xe8]
call sub.GDI32.dll_DeleteDC
push dword [esp + 0xe4]
push dword [esp + 0xf0]
call sub.USER32.dll_ReleaseDC
xor eax, eax
push dword [esp + 4]
call fcn.00427310
add esp, 0xf0
ret 0x14

Function at 0x40b094
Capabilities:
Get disk information

Disassembly:
mov edx, 0x83
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40b099
call fcn.00427280
push dword [esp + 0x214]
call fcn.00414380
mov edx, dword [esp + 0x210]
lea ecx, [esp]
call fcn.00414060
push edx
call fcn.004270a0
pop edx
push eax
push edx
call fcn.004270a0
pop edx
push eax
push 0x104
call fcn.00424e80
lea eax, [esp + 8]
push 0x104
push eax
call fcn.00427170
push edx
call fcn.004270a0
pop edx
push eax
push edx
call fcn.004270a0
pop edx
push eax
mov eax, 0x42b184
push eax
mov eax, 0x42d0f2
push eax
push dword [esp + 0x10]
call fcn.004252d0
lea eax, [esp + 4]
push eax
call fcn.004270e0
push edx
call fcn.004270a0
pop edx
push eax
push edx
call fcn.004270a0
pop edx
push eax
mov eax, 0x42b442
push eax
mov eax, 0x42dc78
push eax
push dword [esp + 0x10]
call fcn.004252d0
lea eax, [esp + 4]
push eax
call fcn.004270e0
push edx
call fcn.004270a0
pop edx
push eax
push edx
call fcn.004270a0
pop edx
push eax
mov eax, 0x42b02e
push eax
mov eax, str.__
push eax
push dword [esp + 0x10]
call fcn.004252d0
lea eax, [esp + 4]
push eax
call fcn.004270e0
push edx
call fcn.004270a0
pop edx
push eax
push edx
call fcn.004270a0
pop edx
push eax
mov eax, 0x42b02e
push eax
mov eax, str.._
push eax
push dword [esp + 0x10]
call fcn.004252d0
lea eax, [esp + 4]
push eax
call fcn.004270e0
push 0x104
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_QueryDosDeviceW
push edx
call fcn.004270a0
pop edx
push eax
push edx
call fcn.004270a0
pop edx
push eax
lea edx, [esp + 0xc]
push edx
call fcn.004270a0
pop edx
push eax
push 0x104
push edx
call fcn.00427370
call fcn.00414362
add dword [esp], edx
call fcn.00424d20
pop eax
push eax
call fcn.00414350
pop edx
add eax, edx
jmp 0x40b208
push dword [esp]
call fcn.00427310
add esp, 0x20c
ret 4
Function at 0x40e8b6
Capabilities:
Get disk information

Disassembly:
push ebx
push edi
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40e8bd
call fcn.00427280
push dword [esp + 0x2c]
call fcn.00414380
mov edx, dword [esp + 0x28]
lea ecx, [esp]
call fcn.00414060
mov dword [esp + 8], 0
push edx
call fcn.004270a0
pop edx
push eax
push edx
call fcn.004270a0
pop edx
push eax
push 0x104
call fcn.00424e80
lea eax, [esp + 0x10]
push eax
call fcn.004270e0
lea eax, [esp + 0x10]
mov edx, 0x42b02e
push edx
push 3
push eax
call fcn.004271b0
mov edx, 0x42b02e
lea ecx, [esp + 0x18]
call fcn.00414068
mov eax, dword [esp + 0xc]
push eax
push 0x104
call sub.KERNEL32.dll_GetLogicalDriveStringsW
mov dword [esp + 8], eax
mov dword [esp + 4], 0
jmp 0x40e950
mov ebx, dword [esp + 8]
mov eax, ebx
mov ecx, 4
cdq
idiv ecx
mov ebx, eax
dec ebx
cmp ebx, dword [esp + 4]
jl 0x40e9eb
push edx
call fcn.004270a0
pop edx
push eax
push edx
call fcn.004270a0
pop edx
push eax
mov eax, dword [esp + 0x14]
mov ebx, eax
mov edi, dword [esp + 0xc]
shl edi, 2
add edi, edi
add ebx, edi
push ebx
call fcn.004261b0
lea eax, [esp + 0x14]
push 3
push eax
call fcn.00427170
push dword [esp]
push edx
call fcn.004270a0
pop edx
push eax
lea edx, [esp + 0x18]
push edx
call fcn.004270a0
pop edx
push eax
push 3
push edx
call fcn.00427370
call fcn.00414362
add dword [esp], edx
call fcn.0040b094
call fcn.00414390
mov edx, eax
pop ecx
call fcn.004143a0
je 0x40e9e1
jmp 0x40e9eb
inc dword [esp + 4]
jno 0x40e950
lea edx, [esp + 0x10]
push edx
call fcn.004270a0
pop edx
push eax
push 3
push edx
call fcn.00427370
pop eax
push eax
call fcn.00414350
pop edx
add eax, edx
jmp 0x40ea18
push dword [esp]
call fcn.00427310
push dword [esp + 0xc]
call fcn.00427310
push dword [esp + 0x18]
call fcn.00427310
add esp, 0x1c
pop edi
pop ebx
ret 4
Function at 0x40fa15
Capabilities:
Get disk information

Disassembly:
push ebx
push edi
mov edx, 8
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40fa1c
call fcn.00427280
push dword [esp + 0x30]
call fcn.00414380
mov edx, dword [esp + 0x2c]
lea ecx, [esp]
call fcn.00414060
mov dword [esp + 4], 0
mov edx, 0x42b02e
lea ecx, [esp + 8]
call fcn.00414068
push edx
call fcn.004270a0
pop edx
push eax
push edx
call fcn.004270a0
pop edx
push eax
push 0x104
call fcn.00424e80
lea eax, [esp + 0x10]
push eax
call fcn.004270e0
mov edx, 0x42b02e
lea ecx, [esp + 0x10]
call fcn.00414068
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
push 0
call sub.KERNEL32.dll_SetLastError
add dword [esp + 0x1c], 0x6400
push edx
call fcn.004270a0
pop edx
push eax
push edx
call fcn.004270a0
pop edx
push eax
push dword [esp + 0x24]
call fcn.00424e80
lea eax, [esp + 0x14]
push eax
call fcn.004270e0
push dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push eax
push 0
call sub.KERNEL32.dll_QueryDosDeviceW
mov dword [esp + 0x18], eax
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
cmp ebx, 0x7a
je 0x40faa3
mov ebx, dword [esp + 4]
mov edi, dword [esp + 0x18]
add edi, edi
cmp ebx, edi
jge 0x40fbe7
push edx
call fcn.004270a0
pop edx
push eax
push edx
call fcn.004270a0
pop edx
push eax
mov eax, dword [esp + 0x18]
mov ebx, eax
add ebx, dword [esp + 0xc]
push ebx
call fcn.004261b0
lea eax, [esp + 0x10]
push eax
call fcn.004270e0
push 1
push dword [esp + 4]
push dword [esp + 0x14]
call fcn.004254b0
and eax, eax
je 0x40fbca
push edx
call fcn.004270a0
pop edx
push eax
push edx
call fcn.004270a0
pop edx
push eax
push edx
call fcn.004270a0
pop edx
push eax
push 1
mov eax, 0x42b02e
push eax
push dword [esp + 0x14]
push dword [esp + 0x24]
call fcn.00424f70
call fcn.00414362
add dword [esp], edx
call fcn.0040f356
call fcn.00414380
and eax, eax
je 0x40fbca
mov edx, dword [esp + 8]
push edx
call fcn.004270a0
pop edx
push eax
push edx
call fcn.004271e0
mov edx, 0x42ddba
push edx
call fcn.004271e0
mov edx, dword [esp + 0x10]
push edx
call fcn.004271e0
lea eax, [esp + 0xc]
push eax
call fcn.004270e0
mov ebx, dword [esp + 4]
push dword [esp + 0xc]
call fcn.00424ed0
mov edi, eax
inc edi
add edi, edi
add ebx, edi
mov dword [esp + 4], ebx
jmp 0x40fb01
push dword [esp + 8]
call fcn.00424ed0
mov ebx, eax
cmp ebx, 2
jle 0x40fc49
push edx
call fcn.004270a0
pop edx
push eax
push edx
call fcn.004270a0
pop edx
push eax
mov eax, 0x42b052
push eax
push dword [esp + 0x14]
call fcn.00424a70
lea eax, [esp + 0xc]
push eax
call fcn.004270e0
push edx
call fcn.004270a0
pop edx
push eax
push edx
call fcn.004270a0
pop edx
push eax
mov eax, 0x42b04e
push eax
push dword [esp + 0x14]
call fcn.00424a70
lea eax, [esp + 0xc]
push eax
call fcn.004270e0
mov edx, dword [esp + 8]
push edx
call fcn.004270a0
pop edx
push eax
push edx
call fcn.004271e0
pop eax
push eax
call fcn.00414350
pop edx
add eax, edx
jmp 0x40fc71
push dword [esp + 8]
call fcn.00427310
push dword [esp]
call fcn.00427310
push dword [esp + 0x10]
call fcn.00427310
push dword [esp + 0xc]
call fcn.00427310
add esp, 0x20
pop edi
pop ebx
ret 4
Function at 0x412714
Capabilities:
Get storage device properties

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x41271a
call fcn.00427280
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00414060
mov byte [esp + 0x18], 0
push 0
push 3
push 0
push dword [esp + 0xc]
call fcn.004038a6
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
cmp ebx, 0xffffffff
je 0x41279a
push 0
lea eax, [esp + 0x14]
push eax
push 0x428
push dword [esp + 0x34]
push 0xc
lea eax, [esp + 0x18]
push eax
push 0x2d1400
push dword [esp + 0x30]
call sub.KERNEL32.dll_DeviceIoControl
mov byte [esp + 0x18], al
push dword [esp + 0x14]
call sub.KERNEL32.dll_CloseHandle
movsx eax, byte [esp + 0x18]
movsx eax, al
jmp 0x4127a6
push dword [esp]
call fcn.00427310
add esp, 0x1c
pop ebx
ret 8
Function at 0x4148e1
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x414979
push edi
push 0x43129c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4308c0]
test edi, edi
je 0x41494d
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x414946
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x4308c0
call fcn.00426fa5
pop ecx
pop ecx
jmp 0x414948
mov edi, dword [edi]
test edi, edi
jne 0x41491d
pop ebx
mov eax, dword [0x42e74c]
mov esi, eax
inc eax
push 0x10
push 0x4308c0
mov dword [0x42e74c], eax
call fcn.00426fe5
pop ecx
pop ecx
push 0x43129c
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8
Function at 0x415aad
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x415b02
push dword [esp + 0x10]
push 0x415a2c
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x430ae4]
test esi, esi
je 0x415b5b
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x415afa
cmp byte [esi + 0x10], 0
je 0x415afa
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 0x415ad6
jmp 0x415b5b
mov esi, dword [0x430ae4]
test esi, esi
je 0x415b5b
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 0x415b54
cmp byte [esi + 0x11], 0
je 0x415b30
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x415b47
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 0x430ae4
call fcn.00426fa5
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x415b0f
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x416358
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x4312c8]
call fcn.00426678
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 0x416458
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x4163ae
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x4163a6
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x4163ee
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x416430
push 0x22
pop edx
cmp cx, dx
je 0x4163e0
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4163d0
xor ecx, ecx
cmp word [eax], cx
je 0x416430
mov ecx, eax
add eax, 2
jmp 0x416432
test dx, dx
je 0x416438
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x4163e0
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x416426
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x416430
cmp cx, dx
je 0x416423
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x416413
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x4163f8
jmp 0x4163e0
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x41643a
xor edx, edx
cmp dword [ebp], ebx
jne 0x416443
test edi, edi
jne 0x416460
test edx, edx
je 0x416448
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x41639c
test edi, edi
jne 0x416471
mov eax, ebx
jmp 0x416475
test esi, esi
je 0x416471
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x416475
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x416e14
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x4312e8]
call fcn.00426678
mov edi, dword [eax + 0x24]
test edi, edi
je 0x416ed2
cmp dword [edi + 8], 1
je 0x416ed2
mov edi, dword [edi + 0xc]
test edi, edi
je 0x416ed2
mov al, byte [edi]
cmp al, 0x20
je 0x416e4d
cmp al, 9
jne 0x416e50
inc edi
jmp 0x416e43
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push edi
push eax
push 0xfde9
call esi
push dword [esp + 0x14]
mov ebx, eax
lea ecx, [ebx - 1]
push ecx
call fcn.004274f0
push ebx
mov ebp, eax
push ebp
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
test ebx, ebx
jle 0x416ea1
push 9
pop edx
lea eax, [ebp - 2]
lea eax, [eax + ebx*2]
movzx ecx, word [eax]
push 0x20
pop esi
cmp cx, si
je 0x416ebd
cmp cx, dx
je 0x416ebd
pop edi
pop esi
pop ebp
pop ebx
ret 4
movzx ecx, word [eax]
cmp cx, si
je 0x416eb5
cmp cx, dx
jne 0x416ec1
xor ecx, ecx
mov word [eax], cx
sub eax, 2
cmp eax, ebp
jae 0x416ea8
push ebp
call sub.MSVCRT.dll_wcslen
pop ecx
sub ebx, eax
push ebx
call fcn.004275d0
jmp 0x416ea1
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.004277d0
Function at 0x417ba8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x431320]
call fcn.004267e9
mov ebx, eax
test ebx, ebx
je 0x417c0c
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x417bd1
push dword [esp + 0xc]
push ebx
call eax
jmp 0x417c0c
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.004274f0
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.004275d0
pop edi
pop esi
pop ebx
ret 8

Function at 0x41d0a6
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41d21c
mov eax, dword [esp + 0x24]
dec eax
je 0x41d1ff
dec eax
jne 0x41d21c
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.0041d05f
pop ecx
test eax, eax
je 0x41d15d
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x41d120
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x41d1fb
dec ebx
je 0x41d1f7
dec ebx
je 0x41d1d6
dec ebx
je 0x41d190
sub ebx, 4
jne 0x41d21c
test edi, edi
jne 0x41d21c
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x41d21c
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x41d120
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x41d11b
sub edi, 0
je 0x41d1c8
dec edi
je 0x41d1ba
dec edi
je 0x41d1ac
dec edi
jne 0x41d21c
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x41d21c
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x41d21c
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x41d21c
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x41d21c
sub edi, 0
je 0x41d1f3
dec edi
je 0x41d1ef
dec edi
jne 0x41d21c
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x41d21c
push 0x3c
jmp 0x41d21b
push 0x32
jmp 0x41d21b
push 0x14
jmp 0x41d21b
push 5
jmp 0x41d21b
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41d219
cmp eax, 0xa
je 0x41d215
cmp eax, 0x5a
jne 0x41d21c
push 0x28
jmp 0x41d21b
push 0x1e
jmp 0x41d21b
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x41da88
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x431330]
call fcn.004267e9
mov esi, eax
test esi, esi
je 0x41db62
cmp dword [ebp + 0xc], 0
je 0x41dad4
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x41dac5
cmp dword [esi + 0x1c], 0
jne 0x41dac5
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41db62
test byte [ebp + 0x10], 3
je 0x41daef
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.0041ec7e
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x41db14
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x41db28
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x41db45
test ebx, ebx
je 0x41db39
push 8
jmp 0x41db4b
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x41db58
test ebx, ebx
je 0x41db4e
push 3
pop ecx
jmp 0x41db58
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x41e98a
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x41ea22
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x41ea1f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x41ea1f
lea eax, [esi - 1]
push eax
push dword [0x431330]
call fcn.004267e9
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x41ea21
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x41ea16
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x41eb09
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x41e9fc
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x41eac8
push eax
call esi
test al, al
jns 0x41eac8
push 0x11
call esi
test al, al
js 0x41eac8
push 0x10
call esi
test al, al
js 0x41eac8
push 0x12
call esi
test al, al
js 0x41eac8
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x41eac8
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x41ea9c
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x41eab3
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x41eb13
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x41eb13
test ebp, ebp
je 0x41eaec
push 0x11
call esi
test al, al
js 0x41eae4
push 0x10
call esi
test al, al
js 0x41eae4
push 0x12
call esi
test al, al
jns 0x41eaec
push 1
push ebp
call fcn.0041eb1f
test ebx, ebx
je 0x41eb00
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x41eb13
test edi, edi
je 0x41eb13
mov eax, dword [edi + 8]
jmp 0x41eb15
and dword [esp + 0x14], 0
jmp 0x41ea21
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4