joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18015b4d0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x20
call fcn.18024a760
sub rsp, rax
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x18015b563
movzx eax, byte [rcx]
test al, al
je 0x18015b563
mov qword [rsp + 0x30], rsi
mov esi, 0x100
nop
movsx ecx, al
call fcn.180158710
mov r9d, eax
mov edx, ebx
or r9d, esi
lea rdi, [rdi + 1]
mov eax, ebx
mov r8d, r9d
shr r8d, 2
mov ecx, 0x20
xor r8d, r9d
add esi, 0x100
and r8d, 0xf
imul r9d, r9d
sub ecx, r8d
shr rdx, cl
mov ecx, r8d
shl eax, cl
mov ebx, edx
or ebx, eax
movzx eax, byte [rdi]
xor ebx, r9d
test al, al
jne 0x18015b500
mov rsi, qword [rsp + 0x30]
mov eax, ebx
shr eax, 0x10
xor eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x1801785e0
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x28
call fcn.18024a760
sub rsp, rax
mov r9d, r8d
mov r8, rdx
mov rdx, rcx
xor ecx, ecx
add rsp, 0x28
jmp fcn.1801789a0
Function at 0x1801f8a70
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x38
call fcn.18024a760
sub rsp, rax
cmp dword [rsp + 0x68], 0
je 0x1801f8a99
lea rax, [0x1801f70d0]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.1801f0050
lea rax, [0x1801f6280]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.1801efd90

Function at 0x18023c090
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r15
mov eax, 0xd8
call fcn.18024a760
sub rsp, rax
mov rax, qword [0x180350010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r12, qword [rdx + 8]
xor esi, esi
mov r15, qword [rdx + 0x10]
mov rax, r12
sub rax, r8
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov rdi, r8
mov r13, rdx
mov ebp, esi
cmp r15, r8
jb 0x18023c276
cmp r8, 0x40
ja 0x18023c276
lea rax, [rsp + 0x40]
mov qword [rsp + 0x118], rbx
neg rax
mov qword [rsp + 0xd0], r14
and eax, 0x3f
lea r14, [rsp + 0x40]
add r14, rax
lea rax, [r8 + 0x100]
cmp r15, rax
jbe 0x18023c12a
mov rbp, r15
sub rbp, r8
sub rbp, 0x100
xor edx, edx
mov qword [rsp + 0x20], rsi
mov rcx, r14
mov rbx, rsi
call fcn.18012d546
mov r9, rsi
cmp rbp, r15
jae 0x18023c1e7
mov r11, qword [r13 + 0x20]
mov r10, qword [rsp + 0x28]
lea r13, [r11 + r12]
nop word [rax + rax]
lea rdx, [r11 + rbp]
mov rax, rbp
xor rax, r10
mov rcx, rdx
sub rcx, r13
xor rcx, r12
lea r8, [rax - 1]
not rax
shr rax, 0x3f
shr r8, 0x3f
and r8, rax
mov rax, rbp
xor rax, r12
neg r8
or rcx, rax
mov rax, r8
xor rcx, rbp
or rax, rsi
shr rcx, 0x3f
and r8, r9
neg rcx
or rbx, r8
mov rsi, rcx
inc rbp
and rsi, rax
movzx eax, byte [rdx]
and al, sil
or byte [r9 + r14], al
inc r9
mov rcx, r9
mov rax, rdi
sub rcx, rdi
xor rax, r9
xor rcx, rdi
or rcx, rax
xor rcx, r9
shr rcx, 0x3f
neg rcx
and r9, rcx
cmp rbp, r15
jb 0x18023c160
xor esi, esi
test rdi, rdi
je 0x18023c25f
mov r9, qword [rsp + 0x30]
mov rax, rbx
and rax, 0xffffffffffffffdf
movzx r8d, byte [rax + r14]
mov rax, rbx
or rax, 0x20
movzx edx, byte [rax + r14]
mov eax, ebx
and eax, 0x20
inc rbx
dec eax
shr eax, 0x1f
neg al
movzx eax, al
mov dword [rsp + 0x28], eax
not eax
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x20]
mov eax, dword [rsp + 0x28]
and cl, dl
and al, r8b
or al, cl
mov rcx, rbx
sub rcx, rdi
mov byte [r9 + rsi], al
xor rcx, rdi
mov rax, rdi
xor rax, rbx
inc rsi
or rcx, rax
xor rcx, rbx
shr rcx, 0x3f
neg rcx
and rbx, rcx
cmp rsi, rdi
jb 0x18023c1f1
mov r14, qword [rsp + 0xd0]
mov eax, 1
mov rbx, qword [rsp + 0x118]
jmp 0x18023c278
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.18012c2e0
add rsp, 0xd8
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400291bc
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001c7b4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c7b4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002930c
cmp rax, 0xffffffffffffffff
je 0x14002930c
xor edi, edi
test rbp, rbp
jle 0x1400292b7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f0c8
mov rbx, rax
test rax, rax
jne 0x140029244
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400292ad
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a0e8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d490
cmp eax, 0xffffffff
je 0x14002928d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029254
mov edx, r15d
mov ecx, r14d
call fcn.14001a0e8
jmp 0x1400292ad
cmp byte [rsi + 0x38], dil
je 0x1400292a4
cmp dword [rsi + 0x34], 5
jne 0x1400292a4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400292ad
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001ae7c
jmp 0x140029320
jns 0x140029320
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c7b4
cmp rax, 0xffffffffffffffff
jne 0x1400292d8
cmp byte [rsi + 0x30], dil
je 0x140029320
mov edi, dword [rsi + 0x2c]
jmp 0x140029320
mov ecx, r14d
call fcn.1400185a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029320
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029320
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029319
mov eax, dword [rsi + 0x2c]
jmp 0x14002931e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c7b4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140edc5d8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140edc5e2
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140edc60b
pop rbp
sub rbp, 0x33
sub rbp, 0xedc5d8
sub rsp, 0x20
jmp 0x140edc62a
mov rax, 0xedc5d8
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x161b744d
xor byte [rax], dl
inc rax
dec rcx
jne 0x140edc649
jmp 0x140edc660
add eax, 0xc4c6a4c4
jno 0x140edc6b4
add rax, 0x4c458ccc
add rax, 0xffffffff8a05a44c
lea ecx, [rdx + 0x4d]
add rax, 0x4d658f8a
add rax, 0x4c05afba
mov esi, es
int3
movsb byte [rdi], byte [rsi]
pop rbx
mov word [r13 + 0x55c7c4f], fs
int3
Function at 0x1401dda40
Capabilities:
Terminate process

Disassembly:
cdq
or esp, 0x3367d88a
imul esi, esi, 0x59ee202
push rsp
fild dword [rbx + 0x20]
scasd eax, dword [rdi]
pop rbp
rol edx, 1
cmp eax, dword [0x18c59b658]
or eax, 0x8736b7b0
push rsi
or eax, 0xed83b2bb
test al, 0x48
xchg byte [rdi], bh
and dword [rdi + 0x74], 0xd86a92f8
cmp byte [r8 + 0xe0d810d], 0x49
invalid
cld
pop r11
jmp 0x1401dda4d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1401dda5d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1401dda45
lea eax, [rcx + 1]
jmp 0x1401dda6b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1401dda7e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1401dda64
sub eax, 3
jb 0x1401dda9e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1401ddaed
sar eax, 1
movsxd rbp, eax
jb 0x1401ddad4
jmp 0x1401ddaac
add ebx, ebx
jne 0x1401ddaaa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401ddad4
inc ecx
add ebx, ebx
jne 0x1401ddaba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401ddad4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1401ddacd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1401ddabc
add ecx, 2
jmp 0x1401ddad9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1401dda02
jmp 0x1401dda4d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x169e00
mov dl, 0x29
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1401ddb39
cmp rsi, rcx
jae 0x1401ddb41
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1401ddb20
cmp al, 0x8f
ja 0x1401ddb20
cmp byte [rsi - 2], 0xf
je 0x1401ddb26
sub al, 0xe8
cmp al, 1
ja 0x1401ddb0a
cmp rsi, rcx
jae 0x1401ddb41
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1401ddb10
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1401ddb41
lodsb al, byte [rsi]
jmp 0x1401ddb20
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1da000]
mov eax, dword [rdi]
or eax, eax
je 0x1401ddbaa
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1dd000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1401ddb4e
jns 0x1401ddb83
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1401ddb8d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1401ddba4
mov qword [rbx], rax
add rbx, 8
jmp 0x1401ddb6e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1401ddc02
sub rsp, 0xffffffffffffff80
jmp 0x14013e4b0
Function at 0x1400060a0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rsi
sub rsp, 0x70
mov qword [rax - 0x48], 0
xor r9d, r9d
mov dword [rax - 0x50], 0x80
lea rcx, [0x140024200]
lea r8d, [r9 + 1]
mov edx, 0x40000000
mov dword [rax - 0x58], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400061f2
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], rbp
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], r12
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x40]
lea rdx, str.DRV64:
mov r8d, 0xe
mov rcx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x80]
lea r12, [rsp + 0x88]
mov rdx, r12
call fcn.140008974
mov rbp, 0xffffffffffffffff
add eax, 3
movsxd rdi, eax
mov eax, 2
mul rdi
cmovo rax, rbp
mov rcx, rax
call fcn.140007d50
mov r8, qword [rsp + 0x80]
mov r9, r12
mov rcx, rax
mov rdx, rdi
mov rbx, rax
call fcn.140008ce0
lea r8, [0x14001bf50]
mov rdx, rdi
mov rcx, rbx
call fcn.140008d00
xor eax, eax
mov rcx, rbp
mov rdi, rbx
lea r9, [rsp + 0x40]
mov rdx, rbx
repne scasw ax, word [rdi]
mov qword [rsp + 0x20], rax
not rcx
lea r8d, [rcx + rcx - 2]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call fcn.140008cf8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
add rsp, 0x70
pop rsi
ret
Function at 0x140006500
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x140021410]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov qword [r11 - 0x20], 7
xor ebx, ebx
mov qword [r11 - 0x28], rbx
mov word [rsp + 0x70], bx
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x54], ebx
lea rcx, str.rdev
call fcn.1400021c0
mov rdx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x70]
call fcn.140004090
lea rcx, [rsp + 0x70]
cmp qword [rsp + 0x88], 8
cmovae rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
call fcn.140006210
mov dword [rsp + 0x58], eax
test eax, eax
jne 0x1400065b0
lea rcx, str.Device_removed_succesfully
call fcn.1400060a0
mov edx, ebx
cmp dword [rsp + 0x50], ebx
setne dl
mov dword [rsp + 0x54], edx
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf023f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareIntelDifx64
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Code
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Reboot
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rsp + 0x88], 8
jb 0x140006665
mov rcx, qword [rsp + 0x70]
call fcn.1400087dc
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140007dd0
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret
Function at 0x14000caff
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140021410]
jne 0x140007dea
rol rcx, 0x10
test cx, 0xffff
jne 0x140007de6
repz ret
ror rcx, 0x10
jmp 0x14000ca58
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140023110]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140023208]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000cadd
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140023110]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000caff
mov rax, qword [rsp + 0x88]
mov qword [0x140023208], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400231a8], rax
mov rax, qword [0x140023208]
mov qword [0x140023080], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140023190], rax
mov dword [0x140023070], 0xc0000409
mov dword [0x140023074], 1
mov rax, qword [0x140021410]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140021418]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140023108], eax
mov ecx, 1
call fcn.1400143bc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400191a0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140023108], 0
jne 0x14000cb86
mov ecx, 1
call fcn.1400143bc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140015740
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140021410]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14000d768
xor ebx, ebx
cmp qword [0x1400241c0], rbx
mov rdi, rax
jne 0x140015853
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14001592a
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001592a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400241c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400241c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1400241d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1400241e0], rax
test rax, rax
je 0x14001584a
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1400241d8], rax
jmp 0x14001585a
mov rax, qword [0x1400241d8]
jmp 0x140015861
mov rax, qword [0x1400241d8]
mov r11, qword [0x1400241e0]
cmp rax, rdi
je 0x1400158c8
cmp r11, rdi
je 0x1400158c8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1400241e0]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1400158c8
test rax, rax
je 0x1400158c8
call rsi
test rax, rax
je 0x1400158c2
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400158c2
test byte [rsp + 0x40], 1
jne 0x1400158c8
bts ebp, 0x15
jmp 0x140015908
mov rcx, qword [0x1400241c8]
cmp rcx, rdi
je 0x140015908
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140015908
call rax
mov rbx, rax
test rax, rax
je 0x140015908
mov rcx, qword [0x1400241d0]
cmp rcx, rdi
je 0x140015908
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140015908
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400241c0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14001592a
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14001592c
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140007dd0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002dd0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400097a0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400097a0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002e40
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000f0a4]
mov rbx, rcx
test esi, esi
jle 0x140002f70
mov rax, qword [0x14000f0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002e8b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002f15
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002e70
mov rcx, rbx
call fcn.140003890
mov rdi, rax
test rax, rax
je 0x140002f92
mov rax, qword [0x14000f0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400039d0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000f0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002f77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002f0e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002f20
add dword [0x14000f0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000f0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002f0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002dd0
nop dword [rax]
xor esi, esi
jmp 0x140002e98
mov rax, qword [0x14000f0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002dd0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002dd0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003500
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000f100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000f0e0]
test rbx, rbx
je 0x14000355c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003553
test rsi, rsi
je 0x140003553
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003538
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003890
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000be20]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400038b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400038b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400038b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000390d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003904
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400038b0
add rax, 0x28
cmp rax, r9
jne 0x1400038f0
xor eax, eax
ret

Function at 0x140003910
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000be20]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000392f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003938
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000392f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400039d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000be20]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400039ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400039f8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret