joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002090
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x2a0
xor ebp, ebp
mov rbx, rcx
mov esi, r8d
lea rcx, [rsp + 0x54]
xor edx, edx
mov r8d, 0x24c
mov edi, ebp
mov dword [rsp + 0x2d8], ebp
mov dword [rsp + 0x50], ebp
call fcn.180006fc0
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], di
jne 0x1800020d4
add rcx, 5
cmp esi, 0x20
jg 0x1800022d4
cmp rcx, 0x8000
jae 0x1800022d4
mov edx, 2
call fcn.1800068b8
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1800022d4
lea r8, str._s.
mov r9, rbx
mov edx, 0x8000
mov rcx, rax
call fcn.180006960
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x30], rax
cmp rax, 0xffffffffffffffff
je 0x1800022b5
mov rsi, rax
nop dword [rax]
test byte [rsp + 0x50], 0x10
je 0x180002284
movzx ecx, word [rsp + 0x7c]
movzx eax, word [rsp + 0x7e]
cmp cx, word [0x180017d4c]
jne 0x18000217b
cmp ax, word [0x180017d4e]
je 0x180002254
cmp cx, word [0x180017d50]
jne 0x1800021a2
cmp ax, word [0x180017d52]
jne 0x1800021a2
movzx eax, word [rsp + 0x80]
cmp ax, word [0x180017d54]
je 0x180002254
or rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1800021b0
lea rdx, [rsp + 0x7c]
or rcx, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rdx + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1800021d0
lea rsi, [rax + rcx]
mov edx, 2
lea rcx, [rsi + 0x20]
call fcn.1800068b8
mov rdi, rax
test rax, rax
je 0x180002248
lea rax, [rsp + 0x7c]
lea r8, str._s_s
lea rdx, [rsi + 0x20]
mov r9, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.180006960
mov rax, qword [rsp + 0x2c8]
mov r8d, dword [rsp + 0x2d0]
movups xmm0, xmmword [rax]
lea rdx, [rsp + 0x40]
inc r8d
mov rcx, rdi
movaps xmmword [rsp + 0x40], xmm0
call fcn.180002090
mov rcx, rdi
mov ebp, eax
call fcn.1800068fc
mov rsi, qword [rsp + 0x30]
mov edi, dword [rsp + 0x2d8]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180002150
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
call fcn.1800068fc
mov eax, ebp
jmp 0x1800022d6
test edi, edi
jne 0x180002254
mov rax, qword [rsp + 0x2c8]
lea rdx, [rsp + 0x40]
mov rcx, rbx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x40], xmm0
call fcn.180001f30
mov edi, 1
mov ebp, eax
mov dword [rsp + 0x2d8], edi
jmp 0x180002254
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1800022c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rcx, rsi
call fcn.1800068fc
mov eax, ebp
jmp 0x1800022d6
xor eax, eax
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800033b0
Capabilities:
Get hostname

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov r14, rcx
xor r15d, r15d
mov qword [r11 + 0x18], r15
mov dword [r11 - 0x40], r15d
xor eax, eax
mov qword [r11 - 0x38], rax
mov dword [r11 + 0x10], 0x10
mov edi, r15d
mov ebx, r15d
lea ecx, [rax + 0x20]
call fcn.18000723c
mov rsi, rax
mov qword [rsp + 0xb8], rax
test rax, rax
je 0x1800034f2
lea rdx, [rsp + 0xa8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x1800034f2
mov ecx, 0x208
call fcn.18000723c
mov rdi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1800034f2
mov ecx, 0x208
call fcn.18000723c
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1800034f2
mov qword [rsp + 0x20], rsi
lea r9, str._s
or r8, 0xffffffffffffffff
mov edx, 0x104
mov rcx, rdi
call fcn.18000693c
mov qword [rsp + 0x20], r14
lea r9, str.localhost_pipe__s
or r8, 0xffffffffffffffff
mov edx, 0x104
mov rcx, rbx
call fcn.18000693c
nop
mov dword [rsp + 0x20], r15d
lea r9, [rsp + 0x58]
xor r8d, r8d
lea rdx, [rsp + 0xb0]
mov rcx, rdi
call fcn.1800011f0
test eax, eax
jne 0x1800034dc
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
mov r9, rbx
xor r8d, r8d
mov edx, pe_nt_image_headers64
mov rcx, qword [rsp + 0xb0]
call fcn.180001320
lea rcx, [rsp + 0xb0]
call fcn.1800012e0
nop
jmp 0x1800034f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x180003505
mov rcx, rsi
call fcn.1800068fc
test rdi, rdi
je 0x180003512
mov rcx, rdi
call fcn.1800068fc
test rbx, rbx
je 0x18000351f
mov rcx, rbx
call fcn.1800068fc
cmp qword [rsp + 0xb0], 0
je 0x180003537
lea rcx, [rsp + 0xb0]
call fcn.1800012e0
xor eax, eax
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x180004500
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1130
call fcn.180006f60
sub rsp, rax
mov ebx, 0x1000
lea r8, [rsp + 0x1140]
lea rcx, [rsp + 0x130]
mov edx, ebx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x1800045b2
mov eax, dword [rsp + 0x1140]
cmp eax, ebx
cmova eax, ebx
xor ebx, ebx
mov dword [rsp + 0x1140], eax
test eax, 0xfffffffc
jbe 0x1800045b2
nop
mov r8d, dword [rsp + rbx*4 + 0x130]
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x1800045a2
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rax
call sub.PSAPI.DLL_GetProcessImageFileNameA
test eax, eax
je 0x180004599
lea rdx, str.lsass.exe
lea rcx, [rsp + 0x20]
call fcn.180004490
test eax, eax
jne 0x1800045c5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x1140]
inc ebx
shr eax, 2
cmp ebx, eax
jb 0x180004550
xor eax, eax
mov rbx, qword [rsp + 0x1148]
add rsp, 0x1130
pop rdi
ret
mov rax, rdi
mov rbx, qword [rsp + 0x1148]
add rsp, 0x1130
pop rdi
ret

Function at 0x1800045e0
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
mov qword [rsp + 0x50], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
lea edx, [rbx + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180004653
lea r8, [rsp + 0x34]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x180004653
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x3c], 2
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x18000465b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18000466b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x180004eb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
mov eax, 0x25b0
call fcn.180006f60
sub rsp, rax
movsxd rax, dword [rcx + 0x3c]
xor esi, esi
mov r15d, r8d
mov r9d, dword [rax + rcx + 0x88]
mov r14, rdx
mov rdi, rcx
add r9, rcx
mov ebx, esi
mov r8d, esi
mov ebp, dword [r9 + 0x1c]
mov r10d, dword [r9 + 0x20]
mov r11d, dword [r9 + 0x24]
mov r9d, dword [r9 + 0x18]
add rbp, rcx
add r10, rcx
add r11, rcx
test r9d, r9d
je 0x180004f85
mov qword [rsp + 0x25d0], r12
mov r12d, 0x775a
nop dword [rax]
mov edx, dword [r10]
add rdx, rdi
cmp word [rdx], r12w
jne 0x180004f6d
movzx eax, byte [rdx]
mov ecx, esi
ror ecx, 0xd
movsx eax, al
lea rdx, [rdx + 1]
add ecx, eax
movzx eax, byte [rdx]
test al, al
jne 0x180004f31
mov eax, ebx
lea rdx, [rsp + 0x28]
inc ebx
shl rax, 4
add rdx, rax
movzx eax, word [r11]
mov dword [rdx], ecx
mov ecx, dword [rbp + rax*4]
add rcx, rdi
mov qword [rdx + 8], rcx
cmp ebx, 0x258
je 0x180004f7d
inc r8d
add r10, 4
add r11, 2
cmp r8d, r9d
jb 0x180004f20
mov r12, qword [rsp + 0x25d0]
lea eax, [rbx - 1]
mov dword [rsp + 0x20], ebx
mov r10d, esi
test eax, eax
je 0x180004ffb
mov eax, ebx
mov ecx, esi
sub eax, r10d
dec eax
je 0x180004ff0
nop
lea r9d, [rcx + 1]
mov eax, ecx
lea r8, [rsp + 0x28]
shl rax, 4
mov edx, r9d
add rdx, rdx
add r8, rax
mov r11, qword [rsp + rdx*8 + 0x30]
mov rdi, qword [r8 + 8]
cmp rdi, r11
jbe 0x180004fe1
mov ecx, dword [r8]
mov eax, dword [rsp + rdx*8 + 0x28]
mov qword [r8 + 8], r11
mov dword [r8], eax
mov dword [rsp + rdx*8 + 0x28], ecx
mov qword [rsp + rdx*8 + 0x30], rdi
mov ebx, dword [rsp + 0x20]
mov eax, ebx
mov ecx, r9d
sub eax, r10d
dec eax
cmp r9d, eax
jb 0x180004fa0
lea eax, [rbx - 1]
inc r10d
cmp r10d, eax
jb 0x180004f93
mov ebp, esi
test r15d, r15d
je 0x180005065
mov rdi, r14
mov eax, esi
test ebx, ebx
je 0x18000503e
mov r8, qword [rdi]
mov edx, dword [r8]
mov ecx, eax
add rcx, rcx
cmp dword [rsp + rcx*8 + 0x28], edx
je 0x180005024
inc eax
cmp eax, ebx
jb 0x180005011
jmp 0x18000503e
mov ecx, eax
mov dword [r8 + 8], eax
mov rdx, qword [rdi]
add rcx, rcx
mov rcx, qword [rsp + rcx*8 + 0x30]
call fcn.180005210
test eax, eax
je 0x180005087
inc ebp
add rdi, 8
cmp ebp, r15d
jb 0x180005005
test r15d, r15d
je 0x180005065
nop
mov rax, qword [r14]
cmp qword [rax + 0x10], 0
je 0x180005087
inc esi
add r14, 8
cmp esi, r15d
jb 0x180005050
mov eax, 1
lea r11, [rsp + 0x25b0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
xor eax, eax
jmp 0x18000506a
Function at 0x180005970
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
jne 0x180005989
lea ebx, [rcx + 6]
jmp 0x180005a05
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov qword [rsp + 0x30], rsi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rsi, rax
test rax, rax
jne 0x1800059b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180005a00
mov r8d, 0x10
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
jne 0x1800059d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1800059f7
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x1800059ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x30]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180005a20
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x50
xor eax, eax
xor ebx, ebx
mov rsi, rcx
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x24], rax
mov qword [rsp + 0x2c], rax
mov qword [rsp + 0x34], rax
mov qword [rsp + 0x3c], rax
test rcx, rcx
jne 0x180005a56
lea ebx, [rcx + 6]
jmp 0x180005af8
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov qword [rsp + 0x68], rdi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
jne 0x180005a7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180005af3
mov r8d, 0x24
mov rdx, rsi
mov rcx, rax
mov qword [rsp + 0x60], rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbp, rax
test rax, rax
jne 0x180005aa6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180005ae5
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x180005ad4
mov edx, 1
mov r8d, 0x7530
mov rcx, rsi
call fcn.180005db0
test eax, eax
je 0x180005adc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rsi
ret
Function at 0x180005b20
Capabilities:
Create service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
xor ebx, ebx
mov rsi, rdx
mov rbp, rcx
test rcx, rcx
je 0x180005be3
test rdx, rdx
je 0x180005be3
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
jne 0x180005b70
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180005be8
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], ebx
mov r9d, 0xf01ff
xor r8d, r8d
mov rdx, rbp
mov rcx, rax
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
test rax, rax
jne 0x180005bcf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x180005be8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x180005be8
mov ebx, 6
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x180005c10
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
jne 0x180005c29
lea ebx, [rcx + 6]
jmp 0x180005ca0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov qword [rsp + 0x30], rsi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rsi, rax
test rax, rax
jne 0x180005c50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180005c9b
mov r8d, 0x10000
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
jne 0x180005c74
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180005c92
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x180005c89
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x30]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180005cc0
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x60
xor ebx, ebx
mov r14, rdx
mov rsi, rcx
test rcx, rcx
jne 0x180005cf3
lea eax, [rcx + 6]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x78], rdi
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
jne 0x180005d16
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180005d83
mov r8d, 4
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
jne 0x180005d3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180005d78
lea rax, [rsp + 0x70]
lea r8, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x180005d68
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180005d6f
mov eax, dword [rsp + 0x34]
mov dword [r14], eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rdi, qword [rsp + 0x78]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x180006330
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
mov rbx, rcx
mov r15, rdx
add rax, rcx
mov edx, 0x10b
movzx ecx, word [rax + 0x18]
cmp cx, dx
jne 0x18000635e
xor r14d, r14d
add rax, 0x78
jmp 0x180006378
mov edx, 0x20b
cmp cx, dx
jne 0x180006487
mov r14d, 1
add rax, 0x88
mov ecx, dword [rax]
mov qword [rsp + 0x40], rbp
mov r8d, r14d
mov rdx, rbx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r13
call fcn.180006690
mov r8d, r14d
mov rdx, rbx
mov r13d, eax
add r13, rbx
mov ecx, dword [r13 + 0x20]
call fcn.180006690
mov ecx, dword [r13 + 0x24]
mov r8d, r14d
mov edi, eax
mov rdx, rbx
add rdi, rbx
call fcn.180006690
mov ebp, eax
add rbp, rbx
test r15, 0xffffffffffff0000
jne 0x1800063f7
mov ecx, dword [r13 + 0x1c]
mov r8d, r14d
mov rdx, rbx
call fcn.180006690
movzx ecx, r15w
mov r8d, r14d
sub ecx, dword [r13 + 0x10]
mov eax, eax
mov rdx, rbx
add rax, rbx
mov ecx, dword [rax + rcx*4]
call fcn.180006690
jmp 0x180006444
mov qword [rsp + 0x48], rsi
mov esi, dword [r13 + 0x18]
test esi, esi
je 0x18000643d
nop dword [rax]
nop dword [rax + rax]
mov ecx, dword [rdi]
mov r8d, r14d
mov rdx, rbx
dec esi
call fcn.180006690
mov rdx, r15
mov ecx, eax
add rcx, rbx
call fcn.180007740
test rax, rax
jne 0x18000645d
add rdi, 4
add rbp, 2
test esi, esi
jne 0x180006410
xor eax, eax
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x40]
mov r13, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
mov ecx, dword [r13 + 0x1c]
mov r8d, r14d
mov rdx, rbx
call fcn.180006690
movzx r9d, word [rbp]
mov r8d, r14d
mov ecx, eax
mov rdx, rbx
add rcx, rbx
mov ecx, dword [rcx + r9*4]
call fcn.180006690
jmp 0x18000643f
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
Function at 0x180006560
Capabilities:
Create thread
Inject thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0x50
mov r14d, r8d
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x40], ebx
test rcx, rcx
je 0x180006654
test rdx, rdx
je 0x180006654
test r8d, r8d
je 0x180006654
mov rdx, r9
mov rcx, rsi
call fcn.180006330
mov r12d, eax
test eax, eax
je 0x180006654
mov r15d, r14d
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, r14d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, rax
test rax, rax
je 0x180006654
mov qword [rsp + 0x20], rbx
mov r9d, r15d
mov r8, rsi
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180006654
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 0x20]
mov r8d, r15d
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180006654
lea r9, [r14 + r12]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
xor edx, edx
mov r8d, 0x100000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
mov qword [rsp + 0x48], rax
jmp 0x18000665d
mov rax, rbx
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop r12
ret
Function at 0x2fc4d7f20
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d8922
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fd108]
test eax, eax
je 0x2fc4d89ba
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fd110]
mov qword [rbp - 8], rax
jmp 0x2fc4d899e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d8992
cmp qword [rbp - 0x10], 0
je 0x2fc4d8992
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d8958
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d89bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d8ac0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d8ae8
mov eax, 0
jmp 0x2fc4d8b36
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d8b11
mov eax, 0
jmp 0x2fc4d8b36
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d8b31
mov eax, 0
jmp 0x2fc4d8b36
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4e0dc0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4e17c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc506108]
test eax, eax
je 0x2fc4e185a
lea rax, [0x2fc5060e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc506110]
mov qword [rbp - 8], rax
jmp 0x2fc4e183e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4e1832
cmp qword [rbp - 0x10], 0
je 0x2fc4e1832
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4e17f8
lea rax, [0x2fc5060e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4e185b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4e1960
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4e1988
mov eax, 0
jmp 0x2fc4e19d6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4e19b1
mov eax, 0
jmp 0x2fc4e19d6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4e19d1
mov eax, 0
jmp 0x2fc4e19d6
mov eax, 1
add rsp, 0x20
pop rbp
ret