joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140021e9c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140021e2c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x14029a8a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402995b0]
jmp 0x140021ed8
cmp qword [rbx + 0x18], rdi
je 0x140021edf
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140021ecf
jmp 0x140021ef9
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1402995b0]
call fcn.140037a04
lea rcx, [0x14029a8a0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140021f14
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x140021fda
lea rcx, [0x14029a8a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402995b0]
jmp 0x140021f9e
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140021f9b
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x1402995b0]
mov rdx, rsi
call fcn.140037a04
jmp 0x140021f9e
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140021f6b
mov rdx, qword [0x140296288]
lea rcx, [0x1402995b0]
mov rdi, rdx
inc rdx
mov qword [0x140296288], rdx
lea edx, [rbx + 0x20]
call fcn.140037a4c
lea rcx, [0x14029a8a0]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x1400221cc
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140022243
movsxd rdx, ecx
lea rcx, [0x140022128]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x1402995b8]
test rbx, rbx
je 0x1400222b6
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140022239
cmp byte [rbx + 0x20], 0
je 0x140022239
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x1400221ff
jmp 0x1400222b6
mov rbx, qword [0x1402995b8]
test rbx, rbx
je 0x1400222b6
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x1400222ae
cmp byte [rbx + 0x21], 0
je 0x140022272
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x14002229e
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.dll_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x1402995b8]
call fcn.140037a04
mov rbx, rdi
test rdi, rdi
jne 0x14002224f
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140022980
Capabilities:
Read file on windows

Disassembly:
mov rcx, qword [rcx + 0x18]
jmp 0x140022de8
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
xor eax, eax
mov r12, rcx
mov ecx, 0x1000
mov r15d, r8d
mov r14d, edx
mov edi, ecx
mov esi, eax
mov r13d, eax
cmp edx, 0x18
je 0x140022eff
cmp edx, 2
je 0x140022eff
mov rcx, qword [0x140298d48]
xor edx, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r9, [rbp - 0x14]
lea r8d, [r13 + 2]
lea rdx, [rbp - 0x18]
xor r14d, r14d
mov rcx, r12
mov rbx, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140022ee7
mov r13, qword [rbp + 0x48]
xor r15d, r15d
mov r12d, edi
cmp dword [rbp - 0x14], 2
jne 0x140022ee0
test edi, edi
jne 0x140022ea0
mov rcx, qword [0x140298d48]
movsxd r9, r12d
lea edx, [rdi + 8]
add r9, r9
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
movzx eax, word [rbp - 0x18]
cmp ax, 0xa
je 0x140022ee0
cmp ax, 0xd
je 0x140022ec0
mov word [r14 + rbx], ax
inc esi
inc r12d
add r14, 2
dec edi
lea r9, [rbp - 0x14]
lea rdx, [rbp - 0x18]
mov r8d, 2
mov rcx, r13
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140022e75
mov r15d, dword [rbp + 0x58]
xor r14d, r14d
movsxd rax, esi
mov edx, r15d
mov rcx, rbx
mov word [rbx + rax*2], r14w
call fcn.14003ca70
jmp 0x140022fc7
mov r8, rcx
mov rcx, qword [0x140298d48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and qword [rsp + 0x20], rsi
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r12
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140022fa8
mov r15, qword [rbp + 0x48]
mov r12d, edi
xor r14d, r14d
cmp dword [rbp - 0x14], 1
jne 0x140022fa0
test edi, edi
jne 0x140022f66
mov rcx, qword [0x140298d48]
lea edx, [rdi + 8]
movsxd r9, r12d
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
mov al, byte [rbp + 0x60]
cmp al, 0xa
je 0x140022fa0
cmp al, 0xd
je 0x140022f80
mov byte [r13 + rbx], al
inc esi
inc r12d
inc r13
dec edi
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r15
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140022f3e
mov r14d, dword [rbp + 0x50]
mov r15d, dword [rbp + 0x58]
movsxd rax, esi
mov edx, r15d
mov rcx, rbx
mov byte [rax + rbx], 0
cmp r14d, 0x18
jne 0x140022fc2
call fcn.14003cad0
jmp 0x140022fc7
call fcn.14003ce10
mov rcx, qword [0x140298d48]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140022b94
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x14029a980]
call fcn.140036de0
xor ebp, ebp
or esi, 0xffffffff
mov r14, rax
mov ebx, ebp
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
movzx edx, word [rax]
test dx, dx
je 0x140022c91
mov rcx, qword [rsp + 0x40]
mov r9w, 0x22
cmp dx, 0x20
jne 0x140022beb
add rax, 2
cmp word [rax], 0x20
je 0x140022be1
movzx edx, word [rax]
mov r8d, 1
cmp dx, r9w
jne 0x140022c29
add rax, 2
mov rbx, rax
movzx ecx, word [rax]
test cx, cx
je 0x140022c69
cmp cx, r9w
je 0x140022c1b
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140022c09
cmp word [rax], bp
je 0x140022c69
mov rcx, rax
add rax, 2
jmp 0x140022c71
test dx, dx
je 0x140022c6e
mov rbx, rax
cmp dx, 0x20
je 0x140022c1b
add rax, 2
cmp word [rax], r9w
jne 0x140022c5f
add rax, 2
movzx ecx, word [rax]
test cx, cx
je 0x140022c69
cmp cx, r9w
je 0x140022c5f
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140022c4d
movzx edx, word [rax]
test dx, dx
jne 0x140022c31
jmp 0x140022c1b
mov rcx, rax
jmp 0x140022c71
mov r8d, ebp
cmp dword [r14], esi
jne 0x140022c7b
test rdi, rdi
jne 0x140022c9b
test r8d, r8d
je 0x140022c82
inc esi
movzx edx, word [rax]
mov rbx, rbp
test dx, dx
jne 0x140022bdb
test rdi, rdi
jne 0x140022cb0
movsxd rax, esi
jmp 0x140022cb2
test rbx, rbx
je 0x140022cb0
sub rcx, rbx
mov rax, rbx
sar rcx, 1
mov dword [rdi], ecx
inc dword [r14]
jmp 0x140022cb2
mov dword [rdi], ebp
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140022cc8
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x14029a980]
call fcn.140036de0
xor ecx, ecx
add rsp, 0x28
jmp fcn.140022b94

Function at 0x140022d5c
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x14029a980]
xor ebp, ebp
mov esi, edx
mov dword [rax + 8], ebp
call fcn.140036de0
test ebx, ebx
js 0x140022d8b
mov dword [rax], ebx
lea rcx, [rsp + 0x30]
call fcn.140022b94
mov edi, dword [rsp + 0x30]
mov edx, esi
mov ecx, edi
mov rbx, rax
call fcn.140038280
mov ecx, ebp
jmp 0x140022dc7
test edi, edi
je 0x140022dcc
movzx edx, word [rbx]
cmp dx, 0x22
jne 0x140022dba
inc ecx
jmp 0x140022dc1
mov word [rax], dx
add rax, 2
add rbx, 2
dec edi
cmp word [rbx], bp
jne 0x140022da9
mov word [rax], bp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.1400383c0
Function at 0x140022de8
Capabilities:
Read file on windows

Disassembly:
mov rcx, qword [rcx + 0x18]
jmp 0x140022de8
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
xor eax, eax
mov r12, rcx
mov ecx, 0x1000
mov r15d, r8d
mov r14d, edx
mov edi, ecx
mov esi, eax
mov r13d, eax
cmp edx, 0x18
je 0x140022eff
cmp edx, 2
je 0x140022eff
mov rcx, qword [0x140298d48]
xor edx, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r9, [rbp - 0x14]
lea r8d, [r13 + 2]
lea rdx, [rbp - 0x18]
xor r14d, r14d
mov rcx, r12
mov rbx, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140022ee7
mov r13, qword [rbp + 0x48]
xor r15d, r15d
mov r12d, edi
cmp dword [rbp - 0x14], 2
jne 0x140022ee0
test edi, edi
jne 0x140022ea0
mov rcx, qword [0x140298d48]
movsxd r9, r12d
lea edx, [rdi + 8]
add r9, r9
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
movzx eax, word [rbp - 0x18]
cmp ax, 0xa
je 0x140022ee0
cmp ax, 0xd
je 0x140022ec0
mov word [r14 + rbx], ax
inc esi
inc r12d
add r14, 2
dec edi
lea r9, [rbp - 0x14]
lea rdx, [rbp - 0x18]
mov r8d, 2
mov rcx, r13
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140022e75
mov r15d, dword [rbp + 0x58]
xor r14d, r14d
movsxd rax, esi
mov edx, r15d
mov rcx, rbx
mov word [rbx + rax*2], r14w
call fcn.14003ca70
jmp 0x140022fc7
mov r8, rcx
mov rcx, qword [0x140298d48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and qword [rsp + 0x20], rsi
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r12
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140022fa8
mov r15, qword [rbp + 0x48]
mov r12d, edi
xor r14d, r14d
cmp dword [rbp - 0x14], 1
jne 0x140022fa0
test edi, edi
jne 0x140022f66
mov rcx, qword [0x140298d48]
lea edx, [rdi + 8]
movsxd r9, r12d
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
mov al, byte [rbp + 0x60]
cmp al, 0xa
je 0x140022fa0
cmp al, 0xd
je 0x140022f80
mov byte [r13 + rbx], al
inc esi
inc r12d
inc r13
dec edi
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r15
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140022f3e
mov r14d, dword [rbp + 0x50]
mov r15d, dword [rbp + 0x58]
movsxd rax, esi
mov edx, r15d
mov rcx, rbx
mov byte [rax + rbx], 0
cmp r14d, 0x18
jne 0x140022fc2
call fcn.14003cad0
jmp 0x140022fc7
call fcn.14003ce10
mov rcx, qword [0x140298d48]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400234a8
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, SafeArrayGetLBound
lea r8, [0x1400233bc]
lea ecx, [rbx + 0x28]
mov edx, ebx
call fcn.14003710c
xor r8d, r8d
xor edx, edx
mov ecx, ebx
mov qword [0x1402995d8], rax
call fcn.140036e78
xor ebx, ebx
cmp word [0x1402995d0], bx
mov qword [0x14029aa00], rax
jne 0x1400235cb
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
mov word [0x1402995d0], di
test eax, eax
je 0x140023519
mov word [0x1402995d0], bx
lea rcx, str.ws2_32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140299600], rax
test rax, rax
je 0x1400235cb
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140299600]
lea rdx, str.freeaddrinfo
mov qword [0x1402995e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140299600]
lea rdx, str.getnameinfo
mov qword [0x1402995e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140299600]
lea rdx, str.WSAStringToAddressA
mov qword [0x1402995f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1402995e0], rbx
mov qword [0x1402995f8], rax
je 0x1400235cb
cmp qword [0x1402995e8], rbx
je 0x1400235cb
cmp qword [0x1402995f0], rbx
je 0x1400235cb
mov ecx, dword [0x1402995d4]
test rax, rax
cmovne ecx, edi
mov dword [0x1402995d4], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret
Function at 0x1400272b4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x14029a7e0]
call fcn.140036fe4
xor ebp, ebp
mov rsi, rax
test rax, rax
je 0x140027334
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x1400272f9
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x140027334
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.140038280
lea r8d, [rdi + 1]
mov word [rax], bp
mov rcx, qword [rsi]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, rbx
call sub.msvcrt.dll_wcslen
sub edi, eax
mov ecx, edi
call fcn.1400383c0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140027ff8
Capabilities:
Check os version

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x298]
sub rsp, 0x380
lea rcx, [rbp + 0x40]
mov ebx, 0xc8
xor r14d, r14d
xor edi, edi
xor r15d, r15d
mov dword [rbp + 0x40], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1400281d3
mov eax, dword [rbp + 0x50]
dec eax
je 0x1400281b1
dec eax
jne 0x1400281d3
lea r8d, [rbx + 0x54]
lea rcx, [rsp + 0x20]
xor edx, edx
xor esi, esi
call fcn.140021490
lea rcx, str.ntdll.dll
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400280a4
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400280a4
lea rcx, [rsp + 0x20]
call rax
xor ecx, ecx
test eax, eax
sete cl
jmp 0x1400280a6
xor ecx, ecx
test ecx, ecx
je 0x1400280c6
mov r14d, dword [rsp + 0x24]
mov edi, dword [rsp + 0x28]
mov r15d, dword [rsp + 0x2c]
mov eax, 1
cmp byte [rbp + 0x3a], al
jne 0x1400280f6
mov esi, eax
jmp 0x1400280f6
lea rcx, [rbp + 0x160]
mov dword [rbp + 0x160], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1400280f6
mov r14d, dword [rbp + 0x44]
mov edi, dword [rbp + 0x48]
mov eax, 1
cmp byte [rbp + 0x27a], al
cmove esi, eax
sub r14d, 3
je 0x1400281aa
dec r14d
je 0x1400281a3
dec r14d
je 0x14002817d
dec r14d
je 0x140028139
cmp r14d, 4
jne 0x1400281d3
test edi, edi
jne 0x1400281d3
cmp r15d, 0x55f0
sbb ebx, ebx
and ebx, 0xfffffff6
add ebx, 0x78
jmp 0x1400281d3
test edi, edi
je 0x140028171
dec edi
je 0x140028165
dec edi
je 0x140028159
dec edi
jne 0x1400281d3
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x69
jmp 0x1400281d3
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x5f
jmp 0x1400281d3
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x55
jmp 0x1400281d3
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x4b
jmp 0x1400281d3
test edi, edi
je 0x14002819c
dec edi
je 0x140028195
dec edi
jne 0x1400281d3
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x41
jmp 0x1400281d3
mov ebx, 0x3c
jmp 0x1400281d3
mov ebx, gethostbyname
jmp 0x1400281d3
mov ebx, 0x14
jmp 0x1400281d3
mov ebx, 5
jmp 0x1400281d3
mov eax, dword [rbp + 0x48]
test eax, eax
je 0x1400281ce
cmp eax, 0xa
je 0x1400281c7
cmp eax, 0x5a
jne 0x1400281d3
lea ebx, [rax - 0x32]
jmp 0x1400281d3
mov ebx, 0x1e
jmp 0x1400281d3
mov ebx, 0xa
lea r11, [rsp + 0x380]
movsxd rax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140028734
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov rdx, rcx
mov rcx, qword [0x14029a800]
xor ebp, ebp
mov ebx, ebp
call fcn.140036fe4
mov rdi, rax
test rax, rax
je 0x140028770
mov rcx, qword [rax]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, eax
mov edx, esi
mov ecx, ebx
call fcn.140038280
test ebx, ebx
je 0x14002878f
mov rcx, qword [rdi]
lea r8d, [rbx + 1]
mov rdx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x140028792
mov word [rax], bp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140029924
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, rcx
xor ebx, ebx
call qword [sym.imp.USER32.dll_GetFocus]
lea rdx, str.PB_WindowID
mov rcx, r14
xor ebp, ebp
mov rdi, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rsi, rax
lea eax, [rbx + 9]
test rsi, rsi
je 0x1400299e6
lea rdx, [rsp + 0x68]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x140029b27
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x68], eax
jne 0x140029b27
mov rcx, qword [0x14029a800]
lea rdx, [rsi - 1]
call fcn.140036fe4
mov ebp, 1
cmp dword [rax + 0x20], 0
mov rbx, rax
jle 0x140029b27
mov rax, qword [rax + 8]
movsxd r8, dword [rbx + 0x20]
xor edx, edx
xor ecx, ecx
lea r10d, [rbp + 8]
cmp word [rcx + rax + 2], r10w
jne 0x1400299d7
mov r9d, 0xfa01
cmp word [rcx + rax + 4], r9w
je 0x140029b20
inc rdx
add rcx, 6
cmp rdx, r8
jl 0x1400299bd
mov eax, r10d
mov sil, pe_nt_image_headers64
test rdi, rdi
je 0x140029ab9
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x140029ab9
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElemsize
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140029ab9
mov ecx, SafeArrayGetLBound
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140029ab9
mov ecx, SafeArrayGetLBound
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140029ab9
lea rdx, [rsp + 0x20]
mov r8d, SafeArrayGetLBound
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetClassNameW]
test ebp, ebp
jne 0x140029ab9
lea r8d, [rbp + 5]
lea rdx, str.RichE
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcsncmp
test eax, eax
je 0x140029a85
lea r8d, [rbp + 4]
lea rdx, str.RICHE
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcsncmp
test eax, eax
jne 0x140029aa4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xb
jae 0x140029b31
lea rdx, str.Scintilla
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140029b31
test r14, r14
je 0x140029afb
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElemsize
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140029aee
mov ecx, SafeArrayGetLBound
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x140029aee
mov ecx, SafeArrayGetLBound
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x140029afb
mov edx, 1
mov rcx, r14
call fcn.140029b48
test rdi, rdi
je 0x140029b15
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetPropW]
test rax, rax
jne 0x140029b31
test rbx, rbx
je 0x140029b31
mov rax, qword [rbx + 0x10]
jmp 0x140029b33
xor ebp, ebp
jmp 0x1400299e3
mov eax, 9
jmp 0x1400299e6
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140029d10
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x230
xor ebx, ebx
test rcx, rcx
je 0x140029d9a
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_wcsncpy
lea rcx, [rsp + 0x20]
mov word [rsp + 0x228], bx
call sub.msvcrt.dll_wcslen
lea rcx, [rsp + 0x20]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x140029d86
lea rdx, [rcx - 2]
movzx eax, word [rdx]
sub ax, 0x20
cmp ax, 0x3c
ja 0x140029d86
movabs r8, 0x1000000000008001
bt r8, rax
jae 0x140029d86
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x140029d58
mov word [rcx], bx
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cdqe
jmp 0x140029d9c
xor eax, eax
add rsp, 0x230
pop rbx
ret

Function at 0x140029da8
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140029dd3
test dl, 2
je 0x140029dc6
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
jmp 0x140029dd5
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140029ddc
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x380]
sub rsp, 0x480
or rbx, 0xffffffffffffffff
xor edi, edi
test rcx, rcx
je 0x140029f3e
cmp word [rcx], di
je 0x140029f3e
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_wcsncpy
lea rcx, [rsp + 0x20]
mov word [rbp + 0x128], di
call sub.msvcrt.dll_wcslen
mov rdx, rax
cdqe
lea rcx, [rsp + rax*2 + 0x1e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x140029e7b
cmp word [rsp + 0x22], 0x3a
jne 0x140029e7b
cmp edx, 2
jne 0x140029e62
lea rdx, [0x14004b394]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscat
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140029f3e
jmp 0x140029f16
cmp word [rcx], 0x5c
je 0x140029e87
cmp word [rcx], 0x2f
jne 0x140029e90
mov word [rcx], di
sub rcx, 2
jmp 0x140029e7b
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x140029ed7
test byte [rbp + 0x130], 0x10
je 0x140029ebc
mov rbx, 0xfffffffffffffffe
jmp 0x140029ecf
mov ebx, dword [rbp + 0x14c]
mov eax, dword [rbp + 0x150]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140029f3e
movzx ecx, word [rsp + 0x20]
movzx eax, word [rsp + 0x22]
cmp cx, 0x5c
jne 0x140029eec
cmp ax, cx
je 0x140029f02
cmp cx, 0x2f
jne 0x140029ef7
cmp ax, cx
je 0x140029f02
cmp cx, 0x2e
jne 0x140029f3e
cmp ax, cx
jne 0x140029f3e
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140029f1f
test al, 0x10
je 0x140029f3e
mov rbx, 0xfffffffffffffffe
jmp 0x140029f3e
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov rcx, rbx
mov rbx, 0xfffffffffffffffe
cmp eax, 1
cmova rcx, rbx
mov rbx, rcx
lea r11, [rsp + 0x480]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret