joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423060
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x423081
push esi
call fcn.004220f0
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
cmp ebx, edi
jl 0x4230f5
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x4230e2
dec ecx
je 0x4230cd
sub ecx, 2
je 0x4230ba
push edi
push eax
push dword [esp + 0x1c]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x14]
mov word [eax], cx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esp + 0x14]
mov dl, byte [eax]
mov eax, edi
mov byte [ecx], dl
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
push ebp
mov ebp, dword [esp + 0x18]
sub eax, ebx
add eax, dword [esi + 4]
push ebx
push eax
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
push 0
cmp edi, eax
jl 0x42313a
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
add eax, ebx
pop esi
pop ebx
ret 0xc
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp edi, eax
jle 0x42315b
mov edi, eax
push edi
push dword [esi + 4]
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
lea eax, [ebx + edi]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x423180
Capabilities:
Read file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [edi + 4], 0
je 0x4231a7
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00423060
mov dword [esp + 4], eax
jmp 0x4231c1
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0x18]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
cmp eax, 1
je 0x4231cd
xor eax, eax
pop edi
pop ecx
ret 8
mov cl, byte [esp + 0xc]
test cl, cl
js 0x4231e9
mov eax, dword [esp + 0x10]
pop edi
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, 1
pop ecx
ret 8
mov al, cl
and al, 0xe0
push esi
cmp al, 0xc0
jne 0x4231f9
mov esi, 2
jmp 0x423215
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x423208
mov esi, 3
jmp 0x423215
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x423272
mov esi, 4
mov edx, dword [esp + 0x14]
mov byte [edx], cl
cmp dword [edi + 4], 0
je 0x423244
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push edi
call fcn.00423060
mov edx, eax
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 8]
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
mov eax, dword [esp + 0x14]
pop esi
pop edi
mov word [eax], 0x3f
mov eax, 1
pop ecx
ret 8
Function at 0x423f54
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
xor esi, esi
push edi
mov ebx, esi
call fcn.00430eca
mov edi, eax
test edi, edi
je 0x42404a
cmp dword [edi + 0x14], esi
je 0x42404a
cmp dword [edi], 0xf
jne 0x42404a
push dword [edi + 0x18]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x42404a
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x42403f
push dword [edi + 0x18]
push dword [edi + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push esi
push 0xffffffffffffffff
push ebp
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
jle 0x42403f
lea ebx, [edi - 1]
mov eax, esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
push esi
push esi
push eax
push ebp
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
add ebx, eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, edi
jl 0x423fdc
push dword [esp + 0x20]
mov dword [esp + 0x1c], ebx
push ebx
call fcn.004387e0
mov edi, eax
cmp dword [esp + 0x14], esi
jle 0x424039
lea eax, [ebx + 1]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
push eax
push edi
push esi
push ebp
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
push 0xa
lea edi, [edi + eax*2]
pop eax
mov word [edi], ax
add edi, 2
mov eax, dword [esp + 0x10]
inc esi
cmp esi, ebx
jl 0x424016
mov ebx, dword [esp + 0x18]
xor eax, eax
mov word [edi - 2], ax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
jne 0x424056
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
jmp fcn.004388f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4

Function at 0x424819
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x7b3364]
call fcn.00437b9f
mov ebx, eax
test ebx, ebx
je 0x42487d
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x424842
push dword [esp + 0xc]
push ebx
call eax
jmp 0x42487d
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.004387e0
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.004388c0
pop edi
pop esi
pop ebx
ret 8
Function at 0x427998
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x7b3374]
call fcn.00437a2e
xor ebp, ebp
mov esi, eax
cmp dword [0x7b1038], ebp
jne 0x427a74
xor ebx, ebx
inc ebx
mov dword [0x7b1038], ebx
call fcn.0042cab5
mov edi, 0xa4
push edi
push ebp
push 0x7b1040
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x7b1040], 0x13
lea eax, [esp + 0x10]
mov dword [0x7b1044], edi
mov dword [0x7b1050], 0x4278e3
mov dword [0x7b1054], 0x427c2e
push eax
mov dword [0x7b10a8], 0x4278be
mov dword [0x7b10ac], 0x427b79
mov dword [0x7b104c], 0x427899
mov dword [0x7b10d0], 0x4278fe
mov dword [0x7b10e4], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x427a74
cmp dword [esp + 0x20], ebx
je 0x427a5c
cmp dword [esp + 0x20], 2
jne 0x427a74
cmp dword [esp + 0x14], 5
jae 0x427a64
mov dword [0x7b10e4], ebp
jmp 0x427a74
jne 0x427a74
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x7b10e4], eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.004317a7
mov eax, dword [esp + 0x140]
push ebp
push dword [0x7b0140]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebp
push str.BUTTON
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x427b4a
push dword [esp + 0x128]
push dword [0x7b3364]
call fcn.00437bde
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x427b19
push edi
call fcn.0043378f
test eax, eax
je 0x427b19
push ebp
push ebp
push edi
call fcn.004333fe
mov dword [esi + 0x18], eax
jmp 0x427b1c
mov dword [esi + 0x18], ebp
push 0x4275e8
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x7b1040
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x7b103c], eax
call fcn.0042c6a1
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x42d892
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [ebp + 8]
or eax, 0x4000
push eax
push 0x2b4
lea eax, [ebp - 0x4bc]
push eax
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esp, ebp
pop ebp
ret 4

Function at 0x42d8d7
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x42d953
cmp dword [0x7b2c70], 1
je 0x42d953
push ebx
mov ebx, 0x7b2c78
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x7b2c94]
and dword [0x7b2c9c], 0
mov dword [0x7b2c98], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x7b2c90]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x7b2c94]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42d94b
push 0
push dword [0x7b2c74]
mov dword [0x7b2c70], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop esi
ret 4
Function at 0x42dc14
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x7b2798], 0
jne 0x42dce5
push ebx
push ebp
push esi
xor ebp, ebp
inc ebp
push 0x7b3394
mov dword [0x7b2798], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov eax, 0x640
push eax
push 8
push dword [0x7b013c]
mov dword [0x7b2c5c], eax
mov dword [0x7b279c], 0x1f4
call esi
mov dword [0x7b2c6c], eax
mov eax, dword [0x7b279c]
add eax, eax
push eax
push 8
push dword [0x7b013c]
call esi
xor ebx, ebx
mov dword [0x7b2c68], eax
push 0x7b2c78
mov dword [0x7b2c60], ebx
mov dword [0x7b2c64], ebp
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push ebp
push ebx
call esi
push ebx
push ebx
push ebp
push ebx
mov dword [0x7b2c90], eax
call esi
mov dword [0x7b2c94], eax
cmp dword [0x7b2c90], ebx
je 0x42dcdc
test eax, eax
je 0x42dcdc
lea eax, [esp + 0xc]
mov dword [0x7b2c70], ebx
push eax
push ebx
push ebx
push 0x42d697
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x7b2c74], eax
jmp 0x42dce2
mov dword [0x7b2c70], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x42dce7
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x42dd8c
cmp dword [esp + 0xc], 0
je 0x42dd8c
cmp dword [0x7b2c70], 1
je 0x42dd8c
push edi
push 0x1f
push 0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42dd8b
push ebp
mov ebp, 0x7b2c78
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x7b2c94]
mov dword [0x7b2c98], esi
mov dword [0x7b2c9c], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x7b2c90]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [0x7b2c94]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42dd83
push 0
push dword [0x7b2c74]
mov dword [0x7b2c70], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
pop edi
pop esi
ret 8
Function at 0x42e18c
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x42e2d4
xor ecx, ecx
cmp word [eax], cx
je 0x42e2d4
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x42e1e5
cmp eax, 3
jne 0x42e21f
cmp word [esp + 0xa], 0x3a
jne 0x42e21f
cmp eax, 2
jne 0x42e203
lea eax, [esp + 8]
push 0x50f580
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x42e2d4
push 0xfffffffffffffffe
pop edi
jmp 0x42e2d4
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x42e234
cmp ax, bx
jne 0x42e23e
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x42e227
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x42e27d
test byte [esp + 0x21c], 0x10
je 0x42e264
push 0xfffffffffffffffe
pop edi
jmp 0x42e274
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x42e2d2
cmp word [esp + 0x10], bp
jne 0x42e28b
cmp word [esp + 0x12], bp
je 0x42e2aa
cmp word [esp + 0x10], bx
jne 0x42e299
cmp word [esp + 0x12], bx
je 0x42e2aa
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x42e2d2
cmp word [esp + 0x12], ax
jne 0x42e2d2
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x42e2bf
test al, 0x10
je 0x42e2d2
jmp 0x42e2cf
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x42e2d2
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x42e2e3
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x42e2f1
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8
Function at 0x42e366
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x7b2ca8]
push esi
test eax, eax
jne 0x42e38b
push 0x42e493
push 0x10
push 0x258
call fcn.00437c72
mov dword [0x7b2ca8], eax
push dword [esp + 0xc]
push eax
call fcn.00437bde
mov esi, eax
test esi, esi
je 0x42e48c
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x42e3ad
mov edi, 0x50f074
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x42e3bd
xor eax, eax
cmp word [ebx], ax
jne 0x42e3c2
mov ebx, 0x50f564
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x7b013c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x42e473
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x42e423
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x42e427
push 0x50f580
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x42e427
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x42e44b
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x42e461
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x42e45f
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x7b013c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x42e48a
cmp dword [esp + 0x14], 0xffffffff
je 0x42e47e
mov esi, dword [esp + 0x14]
push esi
push dword [0x7b2ca8]
call fcn.00437b50
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x42e64b
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x42e674
test byte [esp + 8], 2
je 0x42e668
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x42e676
xor eax, eax
ret 8
Function at 0x42ecc4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x42ed3c
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x42ed1d
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x42ed1a
cmp ecx, 0x5c
je 0x42ed1a
cmp ecx, 0x2f
jne 0x42ed27
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x42ed07
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x42ed3e
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x42ed5d
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x42ed7d
cmp dword [esp + 8], 0
je 0x42ed7d
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x42ed7f
xor eax, eax
ret 8

Function at 0x42ef9d
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 0x42f113
mov eax, dword [esp + 0x24]
dec eax
je 0x42f0f6
dec eax
jne 0x42f113
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.0042ef56
pop ecx
test eax, eax
je 0x42f054
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x42f017
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x42f0f2
dec ebx
je 0x42f0ee
dec ebx
je 0x42f0cd
dec ebx
je 0x42f087
sub ebx, 4
jne 0x42f113
test edi, edi
jne 0x42f113
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x42f113
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 0x42f017
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x42f012
sub edi, 0
je 0x42f0bf
dec edi
je 0x42f0b1
dec edi
je 0x42f0a3
dec edi
jne 0x42f113
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x42f113
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x42f113
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x42f113
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x42f113
sub edi, 0
je 0x42f0ea
dec edi
je 0x42f0e6
dec edi
jne 0x42f113
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x42f113
push 0x3c
jmp 0x42f112
push 0x32
jmp 0x42f112
push 0x14
jmp 0x42f112
push 5
jmp 0x42f112
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42f110
cmp eax, 0xa
je 0x42f10c
cmp eax, 0x5a
jne 0x42f113
push 0x28
jmp 0x42f112
push 0x1e
jmp 0x42f112
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x42f35a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x7b3368]
call fcn.00437b9f
mov esi, eax
test esi, esi
je 0x42f434
cmp dword [ebp + 0xc], 0
je 0x42f3a6
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x42f397
cmp dword [esi + 0x1c], 0
jne 0x42f397
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x42f434
test byte [ebp + 0x10], 3
je 0x42f3c1
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.0042fc6c
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x42f3e6
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 0x42f3fa
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 0x42f417
test ebx, ebx
je 0x42f40b
push 8
jmp 0x42f41d
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x42f42a
test ebx, ebx
je 0x42f420
push 3
pop ecx
jmp 0x42f42a
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 0x42fdff
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 0x42fe97
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x42fe94
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x42fe94
lea eax, [esi - 1]
push eax
push dword [0x7b3368]
call fcn.00437b9f
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x42fe96
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x42fe8b
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x42ff7e
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x42fe71
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x42ff3d
push eax
call esi
test al, al
jns 0x42ff3d
push 0x11
call esi
test al, al
js 0x42ff3d
push 0x10
call esi
test al, al
js 0x42ff3d
push 0x12
call esi
test al, al
js 0x42ff3d
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x42ff3d
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x42ff11
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x42ff28
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x42ff88
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x42ff88
test ebp, ebp
je 0x42ff61
push 0x11
call esi
test al, al
js 0x42ff59
push 0x10
call esi
test al, al
js 0x42ff59
push 0x12
call esi
test al, al
jns 0x42ff61
push 1
push ebp
call fcn.0042ff94
test ebx, ebx
je 0x42ff75
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x42ff88
test edi, edi
je 0x42ff88
mov eax, dword [edi + 8]
jmp 0x42ff8a
and dword [esp + 0x14], 0
jmp 0x42fe96
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x43183b
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor esi, esi
push esi
mov ebx, esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x43187c
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x431874
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x431874
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
mov ebx, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x43187f
mov edi, dword [ebp + 8]
push dword [ebp + 8]
push ebx
call fcn.004387e0
test esi, esi
je 0x4318a7
lea ecx, [ebx*2 + 2]
push ecx
push esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x4318ac
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
pop ebx
pop ebp
ret 4