joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140028980
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x140028aa8
cmp eax, 1
je 0x1400289db
call fcn.1400278f0
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.140027220
mov r12d, dword [rbx]
test r12d, r12d
je 0x1400289f0
cmp r12d, 1
jne 0x140028a80
mov rcx, rbp
call fcn.1400274f0
test rdi, rdi
je 0x1400289db
mov rcx, rdi
call fcn.140027c80
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x140027d60]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140028000
mov ecx, dword [0x1400c8368]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x140028ae8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140028000
mov ecx, dword [0x1400c8368]
call r12
test rax, rax
je 0x140028ad0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140028000
mov ecx, dword [0x1400c8368]
call r12
test rax, rax
je 0x140028ac0
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x1400289c6
mov ecx, 2
call qword [fcn.140025510]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400289c6
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1400280b0
test rax, rax
jne 0x140028a69
jmp 0x1400c7055
call fcn.1400280b0
test rax, rax
jne 0x140028a45
jmp 0x1400c706e
call fcn.1400280b0
test rax, rax
jne 0x140028a1f
jmp 0x1400c7064
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x140028d70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.140028000
mov ecx, dword [0x1400c8368]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140028de8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140027800
cmp esi, dword [rbx + 0x48]
jae 0x140028dc3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140028dc3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140027840
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1400280b0
mov rbx, rax
jmp 0x140028d9d
Function at 0x140028e00
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.140028000
mov ecx, dword [0x1400c8368]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140028f00
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.140027800
cmp esi, dword [rbx + 0x48]
jae 0x140028e80
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.140027840
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x140028f0d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x140028f0d
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x140028e4f
call fcn.1400280b0
mov rbx, rax
jmp 0x140028e3a
mov rcx, r13
call fcn.140027840
mov eax, 0xc
jmp 0x140028e6d

Function at 0x140028f90
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140028000
mov ecx, dword [0x1400c8368]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140028fb8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.1400280b0
test rax, rax
jne 0x140028faa
add rsp, 0x28
ret

Function at 0x140029020
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140028000
mov ecx, dword [0x1400c8368]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140029048
add rax, 0x18
add rsp, 0x28
ret
call fcn.1400280b0
test rax, rax
jne 0x14002903a
jmp 0x14002903e

Function at 0x140029160
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400fad68]
test eax, eax
jne 0x140029178
xor eax, eax
add rsp, 0x28
ret
call fcn.140028000
mov ecx, dword [0x1400c8368]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400291a8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14002916e
test byte [rax + 0x40], 3
je 0x14002916e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140029170
call fcn.1400280b0
test rax, rax
jne 0x14002918e
jmp 0x14002916e

Function at 0x1400291c0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140028000
mov ecx, dword [0x1400c8368]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140029200
test ebx, ebx
jle 0x1400291f0
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.1400280b0
test rax, rax
jne 0x1400291dd
add rsp, 0x20
pop rbx
ret
Function at 0x1400292f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140028000
mov ecx, dword [0x1400c8368]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140029368
test byte [rbx + 0x40], 0xc
jne 0x14002931f
mov eax, dword [0x1400fad68]
test eax, eax
jne 0x140029330
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140027220
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140029353
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140029353
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14002937c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400274f0
call fcn.1400280b0
mov rbx, rax
test rax, rax
jne 0x14002930f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14002939a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.1400274f0
call fcn.140029210
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140029420
call fcn.140026fd0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140029458
call fcn.140028000
mov ecx, dword [0x1400c8368]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400294b0
test esi, esi
je 0x140029436
call fcn.1400292f0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140029490
mov edx, edi
call fcn.140027080
call fcn.1400292f0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140028000
mov ecx, dword [0x1400c8368]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400294a0
call fcn.1400292f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400292f0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140028000
mov ecx, dword [0x1400c8368]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400293f5
call fcn.1400280b0
mov rbx, rax
jmp 0x1400293f5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002940e
call fcn.1400280b0
jmp 0x140029436
call fcn.1400280b0
mov rbx, rax
jmp 0x1400293f1
Function at 0x1400293b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140028000
mov ecx, dword [0x1400c8368]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140029368
test byte [rbx + 0x40], 0xc
jne 0x14002931f
mov eax, dword [0x1400fad68]
test eax, eax
jne 0x140029330
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140027220
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140029353
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140029353
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14002937c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400274f0
call fcn.1400280b0
mov rbx, rax
test rax, rax
jne 0x14002930f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14002939a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.1400274f0
call fcn.140029210
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140029420
call fcn.140026fd0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140029458
call fcn.140028000
mov ecx, dword [0x1400c8368]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400294b0
test esi, esi
je 0x140029436
call fcn.1400292f0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140029490
mov edx, edi
call fcn.140027080
call fcn.1400292f0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140028000
mov ecx, dword [0x1400c8368]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400294a0
call fcn.1400292f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400292f0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140028000
mov ecx, dword [0x1400c8368]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400293f5
call fcn.1400280b0
mov rbx, rax
jmp 0x1400293f5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002940e
call fcn.1400280b0
jmp 0x140029436
call fcn.1400280b0
mov rbx, rax
jmp 0x1400293f1

Function at 0x1400294c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140028000
mov ecx, dword [0x1400c8368]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140029530
test esi, esi
je 0x140029510
call fcn.1400292f0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140029540
mov edx, esi
call fcn.140027080
call fcn.1400292f0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400292f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400292f0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400280b0
mov rbx, rax
jmp 0x1400294e1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400294fa
Function at 0x14008b6b0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x14008b6f8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14008b6ca
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400c4c20
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbx, rcx
call fcn.1400c4360
mov rax, qword [rbx - 0x10]
mov rcx, qword [rbx - 0x40]
mov rbp, qword [rbx - 0x18]
movsxd rsi, dword [rbx - 0x24]
mov qword [rsp + 0x30], rax
mov rdi, qword [rbx - 0x38]
call fcn.14002bac0
mov rcx, rax
jmp 0x1400c4b10
call fcn.1400c4360
call fcn.1400c45b0
mov rbx, qword [rax]
test byte [rbx + 0x50], 1
je 0x1400c4b97
mov rbx, qword [rbx]
lea r12, [rsp + 0x20]
mov rdx, rbp
xor ecx, ecx
mov r8, r12
call fcn.14002b690
mov rdx, qword [rbx - 0x90]
mov r9, rsi
mov r8, rbx
mov rcx, r12
call fcn.14002b780
test al, al
jne 0x1400c4bb5
lea rbx, [0x1400d3c90]
mov r9, rsi
xor r8d, r8d
mov rcx, r12
mov rdx, rbx
call fcn.14002b780
test al, al
je 0x1400c4bba
mov ecx, 8
call fcn.1400c42f0
lea r8, [0x140091910]
mov rdx, rbx
mov rcx, rax
mov rax, qword [0x1400d17c0]
add rax, 0x10
mov qword [rcx], rax
call fcn.1400c4870
add rbx, 0x90
jmp 0x1400c4b26
call fcn.1400c4820
mov rcx, rdi
call fcn.14002baa0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call sub.msvcrt.dll_abort
mov rcx, rax
call fcn.1400c4360
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, 8
call fcn.1400c42f0
lea r8, [fcn.1400bc860]
lea rdx, [0x1400d4900]
mov rcx, rax
mov rax, qword [0x1400d1a70]
add rax, 0x10
mov qword [rcx], rax
call fcn.1400c4870
nop
nop
nop
mov rcx, rax
mov rax, rdx
sub rax, 1
jne 0x1400c4c9c
call fcn.1400c4360
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sub.msvcrt.dll_fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sub.msvcrt.dll_fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sub.msvcrt.dll_fputc
call fcn.1400c4490
call sub.msvcrt.dll_abort
mov rcx, rdi
call sub.msvcrt.dll_free
call fcn.1400c4820
call fcn.1400c4360
call fcn.1400c4490
jmp 0x1400c4c8a
Function at 0x1808159fc
Capabilities:
Encode data using xor

Disassembly:
add r8, 0xc
xor ebx, ebx
test rsi, rsi
jmp 0x180815c3d
lea rsp, [rsp + 8]
je 0x180815cb8
mov r11d, 0x4a87f296
push r8
xor r11d, 0xc61fcc86
lea r11, [0x180832238]
mov r8d, 0x1f8dfe90
neg r8b
lea r8, [r8 + r8*2 + 0x34830227]
movzx r8d, byte [rax]
xor r8d, ebx
push 0xfffffffff230e990
and r8d, 0xff
mov r8d, dword [r11 + r8*4]
shr ebx, 8
inc dword [rsp + 3]
xor ebx, r8d
not byte [rsp + 6]
shl byte [rsp + 5], 0xe2
inc rax
xor ebx, 0x722556bd
dec rsi
lea rsp, [rsp + 8]
jne 0x180815c5e
mov r8d, 0x4416398d
pop r8
jmp 0x18083f4df
push 0x663fd022
not ebx
mov dword [r8], ebx
lea rsp, [rsp + 8]
jmp fcn.18083b9e5
jmp 0x180819845
Function at 0x1400033f0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
xor esi, esi
lea rax, [0x140001328]
lea rbx, [0x1400118f0]
mov qword [0x140011908], 1
lea rdi, [0x140011918]
mov qword [0x140011918], rax
mov qword [0x140011900], rsi
mov qword [0x1400118f0], rsi
mov qword [0x140011038], rbx
mov r8, qword [rdi]
lea rax, [rbx + 8]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x48], r8
lea rcx, [0x1400032d8]
mov r9d, 1
mov rdx, rbx
mov qword [rsp + 0x28], rsi
lea rdi, [rdi + 8]
mov qword [rsp + 0x20], rax
mov qword [rbx + 0x20], r8
call qword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsW]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140003442
cmp byte [0x1400118b4], sil
je 0x1400034a0
or edi, 0xffffffff
jmp 0x1400034c8
mov dword [rsp + 0x40], esi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rsp + 0x40]
mov rdx, rax
call fcn.140005c44
cmp al, 1
jne 0x1400034c4
call fcn.140005e88
mov edi, eax
jmp 0x1400034c8
mov edi, dword [rsp + 0x40]
mov rbx, qword [0x140011038]
lea rbp, [0x140011038]
cmp rbx, rbp
je 0x14000353b
test byte [rbx + 0x1c], 1
je 0x140003512
cmp byte [rbx + 0x19], 2
jb 0x140003512
call fcn.140007e1c
mov rcx, qword [0x140011038]
lea r8, [0x140001d00]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0xa
call fcn.140007ea4
mov rbx, qword [0x140011038]
cmp rbx, rbp
je 0x14000353b
jmp 0x14000352f
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000352c
call qword [sym.imp.ADVAPI32.dll_UnregisterTraceGuids]
mov qword [rbx + 8], rsi
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140003519
mov qword [0x140011038], rbp
lea r11, [rsp + 0x60]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140005e88
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x60
mov rdi, qword [0x140011280]
mov ebx, 1
jmp 0x140005f1b
test ebx, ebx
js 0x140005f26
mov rsi, qword [rdi]
test rsi, rsi
je 0x140005f17
mov rax, qword [rsi + 0x10]
and qword [rsp + 0x70], 0
test rax, rax
jne 0x140005ecc
xor ebx, ebx
jmp 0x140005f17
mov rcx, qword [rsi + 0x18]
lea r8, [rsp + 0x70]
lea rdx, [0x1400012d8]
call rax
mov ebx, eax
test eax, eax
js 0x140005f07
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsi]
mov r9d, 1
lea rax, [rsi + 0x28]
lea r8d, [r9 + 3]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoRegisterClassObject]
mov ebx, eax
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140005f17
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
add rdi, 8
cmp rdi, qword [0x140011288]
jb 0x140005ead
test ebx, ebx
jne 0x140005f8d
cmp byte [0x140011980], 0
je 0x140005f94
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140011970], rax
test rax, rax
je 0x140005f86
lea rax, [rsp + 0x78]
lea r9, [0x140011920]
lea r8, [0x14000653c]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x140005f94
mov rcx, qword [0x140011970]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x80004005
jmp 0x140005f94
mov byte [0x140011980], 0
test ebx, ebx
jne 0x140005fde
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x140005fe0
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jg 0x140005faf
test ebx, ebx
js 0x140006028
mov rdi, qword [0x140011280]
xor ebx, ebx
jmp 0x14000600a
test ebx, ebx
jne 0x140006013
mov rax, qword [rdi]
test rax, rax
je 0x140006006
mov ecx, dword [rax + 0x28]
test ecx, ecx
je 0x140006006
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov ebx, eax
add rdi, 8
cmp rdi, qword [0x140011288]
jb 0x140005feb
cmp byte [0x140011980], 0
je 0x140006028
mov ecx, dword [0x14001197c]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140009098
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140011020]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor eax, eax
mov rdi, rcx
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
mov r9d, 0x2001f
xor r8d, r8d
mov rsi, rdx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x14000919b
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140009114
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x48], rcx
test ebx, ebx
jne 0x14000919b
jmp 0x14000913e
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140009098
mov ebx, eax
test eax, eax
jne 0x14000919b
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor edx, edx
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140009124
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000918e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x48], 0
mov rdx, rsi
mov rcx, rdi
call fcn.140009200
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400091ab
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14000e330
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140009e14
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x140011020]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r14, r9
mov rdi, r8
mov rax, rdx
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x70], rbx
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140009e88
call fcn.1400085c4
mov ebx, eax
jmp 0x140009fb8
xor r9d, r9d
mov r8, rdi
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rdi, rax
test rax, rax
jne 0x140009eac
call fcn.1400085c4
jmp 0x140009fac
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140009ea2
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x140009efe
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140009ef4
lea rcx, [rsp + 0x70]
call fcn.140008560
nop
mov eax, 0x8007000e
jmp 0x140009fd1
mov ecx, eax
test eax, eax
je 0x140009f3b
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140009f31
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140009f3b
lea rcx, [rsp + 0x70]
call fcn.140008590
mov rax, qword [rsp + 0x70]
jmp 0x140009f45
mov ecx, 0x80070057
call fcn.14000a2c4
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140009f5c
test rax, rax
jne 0x140009f68
mov ebx, 0x8007000e
jmp 0x140009fae
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140009ea2
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140009c54
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140009fcf
lea rcx, [rsp + 0x70]
call fcn.140008560
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14000e330
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r14
pop rdi
pop rsi
ret
Function at 0x14000e9ec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000ea38
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000ea30
cmp dword [rcx + 0x3c], edx
jl 0x14000ea30
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000ea30
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000ea38
mov rax, rdx
add rsp, 0x18
ret