joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400cbce0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
test rcx, rcx
je 0x1400cbeb4
mov r14, rdx
mov rbx, rcx
movsxd rcx, dword [rcx + 0x3c]
mov r15d, dword [rcx + rbx + 0x88]
mov r13d, dword [r15 + rbx + 0x1c]
add r13, rbx
mov rax, rdx
shr rax, 0x10
test ax, ax
je 0x1400cbd74
mov ebp, dword [rbx + r15 + 0x18]
test ebp, ebp
je 0x1400cbeb4
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], r8
mov r12d, dword [rbx + r15 + 0x20]
mov esi, dword [rbx + r15 + 0x24]
add r12, rbx
add rsi, rbx
xor edi, edi
nop dword [rax + rax]
mov ecx, dword [r12]
add rcx, rbx
mov rdx, r14
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x1400cbd8a
add r12, 4
add rsi, 2
dec ebp
jne 0x1400cbd50
jmp 0x1400cbebb
movzx eax, r14w
mov ecx, dword [rbx + r15 + 0x10]
sub rax, rcx
mov edi, dword [r13 + rax*4]
jmp 0x1400cbeb8
movzx eax, word [rsi]
mov edi, dword [r13 + rax*4]
cmp r15d, edi
ja 0x1400cbeb8
mov rax, qword [rsp + 0x38]
add r15d, dword [rbx + rax + 0x8c]
cmp edi, r15d
jae 0x1400cbeb8
add rdi, rbx
mov rcx, rdi
mov edx, 0x2e
call sub.msvcrt.dll_strchr
mov rbx, rax
inc rbx
mov rsi, rbx
sub rsi, rdi
lea rcx, [rsi + 4]
mov edx, 2
call sub.msvcrt.dll_calloc
test rax, rax
je 0x1400cbeb4
mov r14, rax
lea r8, [rsi + 1]
mov qword [rsp + 0x20], rsi
xor ecx, ecx
mov rdx, rax
mov r9, rdi
call qword [sym.imp.msvcrt.dll_mbstowcs_s]
mov dword [r14 + rsi*2], 0x6c0064
mov word [r14 + rsi*2 + 4], 0x6c
lea rdx, [0x1400cf002]
mov r8d, 4
mov rcx, r14
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
je 0x1400cbe42
lea rdx, str.ext_
mov r8d, 4
mov rcx, r14
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x1400cbe90
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
mov rdx, r14
call fcn.1400cb070
test rax, rax
je 0x1400cbe90
mov rsi, rax
mov rcx, r14
call sub.msvcrt.dll_free
mov rdi, qword [rsp + 0x40]
lea rcx, [rdi + 1]
mov edx, 2
call sub.msvcrt.dll_calloc
test rax, rax
je 0x1400cbeb4
mov r14, rax
add rdi, rdi
mov rcx, rax
mov rdx, rsi
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov rdx, rbx
mov r8, r14
call fcn.1400cbce0
mov rdi, rax
mov rcx, r14
call sub.msvcrt.dll_free
jmp 0x1400cbebb
xor edi, edi
jmp 0x1400cbebb
add rdi, rbx
mov rax, rdi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400cc200
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.1400cd070
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.1400cd070
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 0x1400cc270
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400d20a4]
mov rbx, rcx
test esi, esi
jle 0x1400cc3a0
mov rax, qword [0x1400d20a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400cc2bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400cc345
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400cc2a0
mov rcx, rbx
call fcn.1400ccce0
mov rdi, rax
test rax, rax
je 0x1400cc3c2
mov rax, qword [0x1400d20a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400cce20
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400d20a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400cc3a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400cc33e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400cc350
add dword [0x1400d20a4], 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 [0x1400d20a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400cc33e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400cc200
nop dword [rax]
xor esi, esi
jmp 0x1400cc2c8
mov rax, qword [0x1400d20a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400cc200
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400cc200
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400cc950
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400d2100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400d20e0]
test rbx, rbx
je 0x1400cc9ac
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 rsi, rsi
je 0x1400cc9a3
test eax, eax
jne 0x1400cc9a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400cc988
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 0x1400ccce0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400cf380]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400ccd00
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400ccd08
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400ccd00
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400ccd5d
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 0x1400ccd54
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400ccd00
add rax, 0x28
cmp rax, r9
jne 0x1400ccd40
xor eax, eax
ret

Function at 0x1400ccd60
Capabilities:
Parse pe header

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

Function at 0x1400cce20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400cf380]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400cce3f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400cce48
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x18000fdff
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180039000]
jne 0x18000edba
rol rcx, 0x10
test cx, 0xffff
jne 0x18000edb6
repz ret
ror rcx, 0x10
jmp 0x18000fd58
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18003aac0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x18003abb8]
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 0x18000fddd
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, [0x18003aac0]
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 0x18000fdff
mov rax, qword [rsp + 0x88]
mov qword [0x18003abb8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18003ab58], rax
mov rax, qword [0x18003abb8]
mov qword [0x18003aa30], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18003ab40], rax
mov dword [0x18003aa20], 0xc0000409
mov dword [0x18003aa24], 1
mov rax, qword [0x180039000]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180039008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18003aab8], eax
mov ecx, 1
call fcn.180013bb4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18002b558]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18003aab8], 0
jne 0x18000fe86
mov ecx, 1
call fcn.180013bb4
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 0x180015e74
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 [0x180039000]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.18000fea4
xor ebx, ebx
cmp qword [0x18003b9f8], rbx
mov rdi, rax
jne 0x180015f87
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x18001605e
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18001605e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x18002ce70]
mov rcx, rsi
mov qword [0x18003b9f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x18002ce58]
mov rcx, rsi
mov qword [0x18003ba00], 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 [0x18003ba08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x18003ba18], rax
test rax, rax
je 0x180015f7e
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 [0x18003ba10], rax
jmp 0x180015f8e
mov rax, qword [0x18003ba10]
jmp 0x180015f95
mov rax, qword [0x18003ba10]
mov r11, qword [0x18003ba18]
cmp rax, rdi
je 0x180015ffc
cmp r11, rdi
je 0x180015ffc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x18003ba18]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180015ffc
test rax, rax
je 0x180015ffc
call rsi
test rax, rax
je 0x180015ff6
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 0x180015ff6
test byte [rsp + 0x40], 1
jne 0x180015ffc
bts ebp, 0x15
jmp 0x18001603c
mov rcx, qword [0x18003ba00]
cmp rcx, rdi
je 0x18001603c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18001603c
call rax
mov rbx, rax
test rax, rax
je 0x18001603c
mov rcx, qword [0x18003ba08]
cmp rcx, rdi
je 0x18001603c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18001603c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18003b9f8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18001605e
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180016060
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18000eda0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18001e030
Capabilities:
Encrypt data using aes via x86 extensions
Reference processor manufacturer constants

Disassembly:
push rbx
sub rsp, 0x20
mov r8d, 1
mov eax, r8d
xor ecx, ecx
cpuid
mov dword [rsp + 0x10], eax
mov dword [rsp + 0x14], ebx
mov dword [rsp + 0x1c], edx
bt ecx, 0x19
jae 0x18001e05a
mov eax, r8d
jmp 0x18001e0d0
test ecx, ecx
jns 0x18001e0ce
mov eax, 0x40000000
xor ecx, ecx
cpuid
mov dword [rsp + 0x10], eax
cmp ebx, 0x7263694d
jne 0x18001e0ce
cmp ecx, 0x666f736f
jne 0x18001e0ce
cmp edx, 0x76482074
jne 0x18001e0ce
movdqa xmm0, xmmword [0x180033030]
aesenc xmm0, xmmword [0x180033040]
movdqa xmmword [rsp + 0x10], xmm0
movabs rax, 0x5f77774d4b7b7b54
cmp qword [rsp + 0x10], rax
jne 0x18001e0bc
movabs rax, 0x63636367427c7c58
cmp qword [rsp + 0x18], rax
je 0x18001e0bf
xor r8d, r8d
mov dword [rsp], r8d
jmp 0x18001e055
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x18001e620
Capabilities:
Encode data using xor

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, 0x40
mov rax, qword [rsp + 0x90]
mov rbp, r8
mov rdi, rdx
mov r13, rcx
shr r9, 9
mov qword [rsp + 0x28], 0
lea r15, [rax + 0x1670]
lea r14, [rax + 0x1e0]
nop dword [rax + rax]
inc r9
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov r8, r15
mov qword [rsp + 0x20], r9
call fcn.18000dd70
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov r12d, 0x20
nop word [rax + rax]
mov rax, qword [r13]
mov r8, r14
mov rdx, rdi
xor rax, rbx
mov rcx, rdi
mov qword [rdi], rax
mov rax, qword [r13 + 8]
xor rax, rsi
mov qword [rdi + 8], rax
call fcn.18000e530
xor qword [rdi], rbx
xor qword [rdi + 8], rsi
mov rdx, rsi
mov rcx, rbx
shr rdx, 0x3f
shr rcx, 0x3f
lea rax, [rsi + rsi]
add rbx, rbx
mov rsi, rcx
add r13, 0x10
imul rdx, rdx, 0x87
xor rbx, rdx
add rdi, 0x10
or rsi, rax
dec r12
jne 0x18001e6a0
sub rbp, 0x200
je 0x18001e70f
mov r9, qword [rsp + 0x20]
jmp 0x18001e670
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18001e740
Capabilities:
Encode data using xor

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, 0x40
mov rax, qword [rsp + 0x90]
mov rbp, r8
mov rdi, rdx
mov r13, rcx
shr r9, 9
mov qword [rsp + 0x28], 0
lea r15, [rax + 0x1670]
lea r14, [rax + 0x1e0]
nop dword [rax + rax]
inc r9
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov r8, r15
mov qword [rsp + 0x20], r9
call fcn.18000dd70
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov r12d, 0x20
nop word [rax + rax]
mov rax, qword [r13]
mov r8, r14
mov rdx, rdi
xor rax, rbx
mov rcx, rdi
mov qword [rdi], rax
mov rax, qword [r13 + 8]
xor rax, rsi
mov qword [rdi + 8], rax
call fcn.18000dd70
xor qword [rdi], rbx
xor qword [rdi + 8], rsi
mov rdx, rsi
mov rcx, rbx
shr rdx, 0x3f
shr rcx, 0x3f
lea rax, [rsi + rsi]
add rbx, rbx
mov rsi, rcx
add r13, 0x10
imul rdx, rdx, 0x87
xor rbx, rdx
add rdi, 0x10
or rsi, rax
dec r12
jne 0x18001e7c0
sub rbp, 0x200
je 0x18001e82f
mov r9, qword [rsp + 0x20]
jmp 0x18001e790
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x18001f030
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
or r8d, 0xffffffff
lea r9, [rcx + 1]
mov r10d, 0x1ee
lea r11, [0x180032a00]
nop word [rax + rax]
movzx ecx, byte [r9 - 1]
movzx eax, r8b
shr r8d, 8
xor rcx, rax
movzx eax, byte [r9]
add r9, 4
mov edx, dword [r11 + rcx*4]
xor edx, r8d
movzx ecx, dl
shr edx, 8
xor rcx, rax
mov r8d, dword [r11 + rcx*4]
movzx ecx, byte [r9 - 3]
xor r8d, edx
movzx eax, r8b
shr r8d, 8
xor rcx, rax
mov edx, dword [r11 + rcx*4]
movzx ecx, byte [r9 - 2]
xor edx, r8d
movzx eax, dl
shr edx, 8
xor rcx, rax
mov r8d, dword [r11 + rcx*4]
xor r8d, edx
dec r10
jne 0x18001f050
not r8d
mov eax, r8d
ret
Function at 0x18001f290
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov r11, rsp
push rbx
push rdi
sub rsp, 0x58
mov qword [r11 + 0x18], rbp
mov qword [r11 - 0x20], r12
mov rbp, rdx
xor edx, edx
mov r12, rcx
mov ecx, dword [rcx + 0xc]
mov rax, r9
mov qword [r11 - 0x28], r13
mov qword [r11 - 0x30], r14
div rcx
mov qword [r11 - 0x38], r15
mov rbx, r9
movsxd r14, r8d
test rdx, rdx
jne 0x18001f2e3
mov eax, r14d
div ecx
test edx, edx
jne 0x18001f2e3
mov r15d, dword [rsp + 0x70]
mov qword [r11 + 0x10], rbx
mov r13d, r14d
mov rdi, rbp
jmp 0x18001f318
mov ecx, dword [r12 + 0xc]
xor edx, edx
mov rax, rbx
div rcx
mov eax, edx
mov r15, rdx
lea r13d, [rdx + r14]
sub rbx, rax
xor edx, edx
mov eax, r13d
mov qword [rsp + 0x78], rbx
div ecx
sub ecx, edx
add r13d, ecx
mov ecx, r13d
call fcn.18000f9a8
mov rdi, rax
test rdi, rdi
jne 0x18001f325
lea ebx, [rdi + 9]
jmp 0x18001f3cd
mov rcx, qword [r12]
lea r8, [rsp + 0x7c]
xor r9d, r9d
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x70], eax
cmp eax, 0xffffffff
jne 0x18001f34c
mov ebx, 0xf
jmp 0x18001f3cd
mov rcx, qword [r12]
mov qword [rsp + 0x50], rsi
xor esi, esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x70]
mov r8d, r13d
mov rdx, rdi
cmp rdi, rbp
je 0x18001f3b6
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18001f37b
lea ebx, [rsi + 0xf]
jmp 0x18001f3c8
mov ecx, r15d
mov r8, r14
mov rdx, rbp
add rcx, rdi
call fcn.18000f4b0
mov edx, dword [rsp + 0x78]
mov rcx, qword [r12]
lea r8, [rsp + 0x7c]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [r12]
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x70]
mov r8d, r13d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, 0xf
test eax, eax
cmove esi, ebx
mov ebx, esi
mov rsi, qword [rsp + 0x50]
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
cmp rdi, rbp
mov rbp, qword [rsp + 0x80]
je 0x18001f3f6
mov rcx, rdi
call fcn.18000f924
mov eax, ebx
add rsp, 0x58
pop rdi
pop rbx
ret
Function at 0x18001f410
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov rbp, rdx
xor edx, edx
mov rdi, rcx
mov ecx, dword [rcx + 0xc]
mov rax, r9
mov qword [rsp + 0x70], rbx
div rcx
mov qword [rsp + 0x78], r14
mov rbx, r9
movsxd r12, r8d
test rdx, rdx
jne 0x18001f45d
mov eax, r12d
div ecx
test edx, edx
jne 0x18001f45d
mov r13d, dword [rsp + 0x60]
mov qword [rsp + 0x68], rbx
mov r14d, r12d
mov rsi, rbp
jmp 0x18001f490
mov ecx, dword [rdi + 0xc]
xor edx, edx
mov rax, rbx
div rcx
mov eax, edx
mov r13, rdx
lea r14d, [rdx + r12]
sub rbx, rax
xor edx, edx
mov eax, r14d
mov qword [rsp + 0x68], rbx
div ecx
sub ecx, edx
add r14d, ecx
mov ecx, r14d
call fcn.18000f9a8
mov rsi, rax
test rsi, rsi
jne 0x18001f49a
lea edi, [rsi + 9]
jmp 0x18001f4e4
mov rcx, qword [rdi]
lea r8, [rsp + 0x6c]
xor r9d, r9d
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x60], eax
cmp eax, 0xffffffff
jne 0x18001f4bd
mov edi, 0xf
jmp 0x18001f4e4
mov rcx, qword [rdi]
lea r9, [rsp + 0x60]
xor ebx, ebx
mov r8d, r14d
mov rdx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, 0xf
test eax, eax
cmove ebx, edi
mov edi, ebx
mov r14, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
cmp rsi, rbp
je 0x18001f510
test edi, edi
jne 0x18001f508
mov edx, r13d
mov r8, r12
mov rcx, rbp
add rdx, rsi
call fcn.18000f4b0
mov rcx, rsi
call fcn.18000f924
mov eax, edi
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x18001f7b0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
mov rbp, r8
mov rsi, rdx
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x18001f7fd
lea eax, [rbx + 0xd]
jmp 0x18001f85b
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rcx, eax
mov dword [rbp], eax
call fcn.18000f9a8
mov qword [rsi], rax
test rax, rax
jne 0x18001f820
lea ebx, [rax + 9]
jmp 0x18001f84b
mov r8d, dword [rbp]
lea r9, [rsp + 0x68]
mov rdx, rax
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18001f84b
mov rcx, qword [rsi]
call fcn.18000f924
mov ebx, 0xf
test rdi, rdi
je 0x18001f859
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x18001f880
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor r9d, r9d
mov edi, r8d
mov rsi, rdx
mov qword [rsp + 0x30], 0
lea r8d, [r9 + 1]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18001f901
lea r9, [rsp + 0x68]
mov r8d, edi
mov rdx, rsi
mov rcx, rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov eax, 0xd
add rsp, 0x40
pop rdi
ret

Function at 0x18001f920
Capabilities:
Get token membership

Disassembly:
push rdi
sub rsp, 0x80
mov rax, qword [0x180039000]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor edi, edi
lea rax, [rsp + 0x68]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
lea r8d, [rdi + 0x20]
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x70], 0
mov word [rsp + 0x74], 0x500
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x60], edi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov rdx, qword [rsp + 0x68]
test rdx, rdx
jne 0x18001f99a
lea eax, [rdi + 9]
jmp 0x18001f9de
lea r8, [rsp + 0x60]
xor ecx, ecx
mov qword [rsp + 0x90], rbx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x18001f9b8
lea ebx, [rax + 1]
jmp 0x18001f9c4
cmp dword [rsp + 0x60], edi
mov ebx, 0x1b
cmovne ebx, edi
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18001f9d4
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18000eda0
add rsp, 0x80
pop rdi
ret
Function at 0x18001fc20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
sub rsp, 0x50
mov dword [rsp + 0x48], ecx
mov edi, ecx
mov edx, ecx
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x18001fc52
add rsp, 0x50
pop rdi
ret
mov ecx, dword [0x18003cd00]
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18001fcb0
mov qword [rsp + 0x30], rsi
lea rcx, str..dcrypt
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18001fcef
mov ecx, dword [0x18003cd00]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x60]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov r9d, 0xc
mov edx, 0x220060
mov rcx, rbx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x18001fcfd
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x18001fcfd
mov rcx, qword [rsp + 0x40]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualLock]
mov rax, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret