joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400883f0
Capabilities:
Log keystrokes

Disassembly:
push rdi
sub rsp, 0x220
lea rdi, [rsp + 0x40]
mov ecx, 0x78
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400e7f40]
xor rax, rsp
mov qword [rsp + 0x210], rax
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
mov r8d, 0x6d1
xor edx, edx
lea rcx, [0x14013a432]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x40], 0x20
jmp 0x140088455
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x15c
jg 0x140088659
movsxd rax, dword [rsp + 0x40]
lea rcx, [0x14013a178]
movsx eax, word [rcx + rax*2]
mov dword [rsp + 0x168], eax
cmp dword [rsp + 0x168], 0xffffffff
jne 0x140088486
jmp 0x14008844b
cmp dword [rsp + 0x40], 0x140
jl 0x140088562
cmp dword [rsp + 0x40], 0x14e
jg 0x140088562
mov dword [rsp + 0x1b8], 0x60
mov dword [rsp + 0x1bc], 0x61
mov dword [rsp + 0x1c0], 0x62
mov dword [rsp + 0x1c4], 0x63
mov dword [rsp + 0x1c8], 0x64
mov dword [rsp + 0x1cc], 0x65
mov dword [rsp + 0x1d0], 0x66
mov dword [rsp + 0x1d4], 0x67
mov dword [rsp + 0x1d8], 0x68
mov dword [rsp + 0x1dc], 0x69
mov dword [rsp + 0x1e0], 0x6e
mov dword [rsp + 0x1e4], 0x6f
mov dword [rsp + 0x1e8], 0x6a
mov dword [rsp + 0x1ec], 0x6d
mov dword [rsp + 0x1f0], 0x6b
mov eax, dword [rsp + 0x40]
sub eax, 0x140
cdqe
mov eax, dword [rsp + rax*4 + 0x1b8]
mov dword [rsp + 0x164], eax
jmp 0x14008857b
mov edx, 1
mov ecx, dword [rsp + 0x168]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov dword [rsp + 0x164], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10
lea r9, [rsp + 0x178]
lea r8, [rsp + 0x60]
mov edx, dword [rsp + 0x168]
mov ecx, dword [rsp + 0x164]
call qword [sym.imp.USER32.dll_ToUnicode]
mov dword [rsp + 0x16c], eax
cmp dword [rsp + 0x16c], 0xffffffff
jne 0x1400885f5
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10
lea r9, [rsp + 0x178]
lea r8, [rsp + 0x60]
mov edx, dword [rsp + 0x168]
mov ecx, dword [rsp + 0x164]
call qword [sym.imp.USER32.dll_ToUnicode]
mov dword [rsp + 0x16c], eax
cmp dword [rsp + 0x16c], 1
jge 0x140088604
jmp 0x14008844b
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 5
lea rcx, [0x14013a432]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [rsp + 0x178]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x14008844b
mov rcx, rsp
lea rdx, [0x1400aacd0]
call fcn.14008d760
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.14008cd20
add rsp, 0x220
pop rdi
ret
Function at 0x14008b6e0
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400e7f40]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rax, str.libOSMesa.dll
mov qword [rsp + 0x38], rax
lea rax, str.OSMesa.dll
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
cmp qword [0x14013ad88], 0
je 0x14008b73b
mov eax, 1
jmp 0x14008b8bb
mov dword [rsp + 0x20], 0
jmp 0x14008b74f
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + rax*8 + 0x38], 0
je 0x14008b781
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + rax*8 + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x14013ad88], rax
cmp qword [0x14013ad88], 0
je 0x14008b77f
jmp 0x14008b781
jmp 0x14008b745
cmp qword [0x14013ad88], 0
jne 0x14008b7a3
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.140080d60
xor eax, eax
jmp 0x14008b8bb
lea rdx, str.OSMesaCreateContextExt
mov rcx, qword [0x14013ad88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14013ad90], rax
lea rdx, str.OSMesaCreateContextAttribs
mov rcx, qword [0x14013ad88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14013ad98], rax
lea rdx, str.OSMesaDestroyContext
mov rcx, qword [0x14013ad88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14013ada0], rax
lea rdx, str.OSMesaMakeCurrent
mov rcx, qword [0x14013ad88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14013ada8], rax
lea rdx, str.OSMesaGetColorBuffer
mov rcx, qword [0x14013ad88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14013adb0], rax
lea rdx, str.OSMesaGetDepthBuffer
mov rcx, qword [0x14013ad88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14013adb8], rax
lea rdx, str.OSMesaGetProcAddress
mov rcx, qword [0x14013ad88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14013adc0], rax
cmp qword [0x14013ad90], 0
je 0x14008b89c
cmp qword [0x14013ada0], 0
je 0x14008b89c
cmp qword [0x14013ada8], 0
je 0x14008b89c
cmp qword [0x14013adb0], 0
je 0x14008b89c
cmp qword [0x14013adb8], 0
je 0x14008b89c
cmp qword [0x14013adc0], 0
jne 0x14008b8b6
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.140080d60
call fcn.14008b8f0
xor eax, eax
jmp 0x14008b8bb
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1400ab120]
call fcn.14008d760
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14008cd20
add rsp, 0x70
pop rdi
ret

Function at 0x14008db74
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14008dbbe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14008dbbe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14008dbbe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14008dbbe
cmp dword [rcx + 0x84], 0xe
jbe 0x14008dbbe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14008dbc0
xor al, al
add rsp, 0x28
ret
Function at 0x1400111f4
Capabilities:
Terminate process

Disassembly:
jmp 0x140014ff0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011271
Capabilities:
Parse pe header

Disassembly:
jmp 0x140012cf0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012d10
xor al, al
jmp 0x140012d91
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012d23
xor al, al
jmp 0x140012d91
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140012d4d
xor al, al
jmp 0x140012d91
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140012d61
xor al, al
jmp 0x140012d91
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140012d73
xor al, al
jmp 0x140012d91
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140012d8f
xor al, al
jmp 0x140012d91
mov al, 1
add rsp, 0x38
ret
Function at 0x18000ff30
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf0
mov r13, rcx
xor edi, edi
mov ecx, 0xa000
mov r15, r9
mov rbx, r8
mov r12, rdx
mov esi, edi
call fcn.18001416c
mov edx, 0x4000
mov rcx, rax
mov rbp, rax
call fcn.1800142c8
mov edi, 0x400
mov rcx, rbp
mov edx, edi
mov qword [rsp + 0x68], rax
call fcn.1800142c8
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x60], rax
call fcn.1800142c8
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x70], rax
call fcn.1800142c8
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x78], rax
call fcn.1800142c8
lea r14d, [rsi + 0x68]
lea rcx, [rsp + 0x80]
mov r8d, r14d
xor edx, edx
mov rdi, rax
call fcn.18001aa90
xor eax, eax
mov dword [rsp + 0x80], r14d
mov r14, qword [rsp + 0x148]
lea rcx, [rsp + 0x80]
mov qword [r14], rax
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov rdx, qword [rsp + 0x68]
xor eax, eax
mov r8d, 0x4000
mov rcx, r15
mov dword [rsp + 0xbc], 0x101
mov word [rsp + 0xc0], ax
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x90], rax
call fcn.18000f208
mov rdx, qword [rsp + 0x70]
mov r8d, 0x400
mov rcx, r12
call fcn.18000f208
mov rdx, qword [rsp + 0x78]
mov r8d, 0x400
mov rcx, rbx
call fcn.18000f208
mov rdx, qword [rsp + 0x60]
mov ebx, 0x400
mov r8d, ebx
mov rcx, r13
call fcn.18000f208
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebx
jae 0x18001009d
mov rdx, rdi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rsi, rdi
mov eax, dword [rsp + 0x140]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x50], r14
xor edi, edi
or eax, 0x8000400
lea rcx, [rsp + 0x80]
lea ebx, [rdi + 1]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov r9d, ebx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
jne 0x18001011f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._s_ss__s_s:__d
lea ecx, [rdi + 0x35]
mov dword [rsp + 0x28], eax
mov r9, r13
mov r8, r15
mov qword [rsp + 0x20], r12
call fcn.18000db8c
mov ebx, edi
mov rcx, rbp
call fcn.180014260
lea r11, [rsp + 0xf0]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400129c0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140012960
mov rcx, qword [0x1401932a8]
call sub.KERNEL32.dll_HeapDestroy
movsxd rcx, dword [0x1401932b0]
add rsp, 0x28
jmp fcn.140021510

Function at 0x1400220a4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400220ee
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400220ee
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400220ee
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400220ee
cmp dword [rcx + 0x84], 0xe
jbe 0x1400220ee
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400220f0
xor al, al
add rsp, 0x28
ret

Function at 0x140026a0c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140026a7b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140026a7b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140026a7b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140026a7b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140026a7b
cmp dword [rcx + 0x84], 0xe
jbe 0x140026a7b
cmp dword [rcx + 0xf8], 0
je 0x140026a7b
mov ecx, ebx
call fcn.140026b80
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140026840
nop
cmp dword [rbp + 0x20], 0
je 0x140026ac9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140026ad4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140026a0c

Function at 0x140026c6c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140026a0c
Function at 0x140032800
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140028ab0
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400328a1
cmp ebx, dword [rsp + 0x30]
je 0x14003289a
test esi, esi
je 0x14003289a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140032875
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140032882
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14003285f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140032886
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400328a3
mov eax, 1
jmp 0x1400328a3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140033b38
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140033b68
xor eax, eax
jmp 0x140033c2b
mov rbp, rbx
cmp word [rax], si
je 0x140033b8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140033b74
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140033b70
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140033e30
movsxd r14, eax
test eax, eax
jne 0x140033bcb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140033b61
mov rcx, r14
call fcn.140029534
mov rdi, rax
test rax, rax
jne 0x140033be4
xor ecx, ecx
call fcn.140027864
jmp 0x140033bc0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140033e30
test eax, eax
jne 0x140033c15
mov rcx, rdi
call fcn.140027864
jmp 0x140033c1f
xor ecx, ecx
call fcn.140027864
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140033c48
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140033ccf
mov rsi, rbx
cmp word [rax], bp
je 0x140033c8e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140033c78
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140033c74
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140029534
mov rdi, rax
test rax, rax
je 0x140033cbc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140041f10
mov rbp, rdi
xor ecx, ecx
call fcn.140027864
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003be68
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14002ca58
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14003bef2
cmp byte [rbp - 0x21], r15b
je 0x14003beed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14003bf28
call fcn.14002a7d4
test eax, eax
jne 0x14003bf14
cmp byte [rbp - 0x21], r15b
je 0x14003bf0c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14003bf28
cmp byte [rbp - 0x21], r15b
je 0x14003bf25
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14002daf8
test eax, eax
jne 0x14003bfc8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14002ca58
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14003bf67
cmp byte [rbp - 0x21], r15b
je 0x14003bf9c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14003bf9c
call fcn.14002a7d4
test eax, eax
jne 0x14003bf88
cmp byte [rbp - 0x21], r15b
je 0x14003bf81
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14003bf9c
cmp byte [rbp - 0x21], r15b
je 0x14003bf99
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14002daf8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14003bfc8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003bfcb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14003bfd9
mov rcx, rdi
call fcn.140027864
cmp byte [rbp + 0x3f], r15b
je 0x14003bfe8
mov rcx, qword [rbp + 0x27]
call fcn.140027864
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14003e580
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140194160]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14003e5d7
cmp word [rdx], r13w
jne 0x14003e5d7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14003e5dc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14003e701
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14003e722
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14003e615
mov rdx, r9
mov word [rbx], cx
jmp 0x14003e63c
cmp r9, r8
jae 0x14003e64c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14003e5f6
jmp 0x14003e701
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003e6f6
cmp dword [rsp + 0x80], esi
je 0x14003e6f6
lea r8, [0x140194160]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14003e6ce
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14003e69e
mov word [rbx], r13w
jmp 0x14003e6fe
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14003e6ab
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14003e6fe
cmp word [rsp + 0x70], r13w
jne 0x14003e6db
cmp rbx, r14
je 0x14003e698
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14003fb1c
cmp word [rsp + 0x70], r13w
je 0x14003e701
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140194160]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14003e6fb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14003e701
Function at 0x14004f494
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 0x14004f558
lea rcx, [0x140195a40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401947f0]
jmp 0x14004f51e
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14004f51b
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x1401947f0]
mov rdx, rsi
call fcn.14006f528
jmp 0x14004f51e
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14004f4eb
mov rdi, qword [0x140190400]
lea rcx, [0x1401947f0]
lea rdx, [rdi + 1]
mov qword [0x140190400], rdx
lea edx, [rbx + 0x20]
call fcn.14006f570
lea rcx, [0x140195a40]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rax, rdi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400505c0
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14005063c
movsxd rdx, ecx
lea rcx, [0x140050520]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x140194a50]
test rbx, rbx
je 0x1400506af
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140050632
cmp byte [rbx + 0x20], 0
je 0x140050632
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
xor r8d, r8d
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x1400505f8
jmp 0x1400506af
mov rbx, qword [0x140194a50]
test rbx, rbx
je 0x1400506af
mov rsi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x1400506a7
cmp byte [rbx + 0x21], 0
je 0x14005066b
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140050697
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
xor r8d, r8d
and dword [rsp + 0x28], 0
or rdx, 0xffffffffffffffff
and dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x140194a50]
call fcn.14006f528
mov rbx, rsi
test rsi, rsi
jne 0x140050648
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140054fa8
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, 1
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, 2
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov ecx, 4
or edi, 2
bt ax, 0xf
cmovae edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov rbx, qword [rsp + 0x30]
movzx ecx, ax
mov rsi, qword [rsp + 0x38]
mov eax, edi
or eax, 4
bt cx, 0xf
cmovae eax, edi
add rsp, 0x20
pop rdi
ret