joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140123bc0
Capabilities:
Create service

Disassembly:
push rdi
sub rsp, 0xa90
mov rax, qword [0x14023c048]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rdi, rcx
call fcn.140123e40
test eax, eax
je 0x140123bf1
mov eax, 1
jmp 0x140123cf8
mov r8d, 0x104
lea rdx, [rsp + 0x72]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140123dee
cmp eax, 0x104
je 0x140123dee
lea ecx, [rax + 1]
mov r8d, 0x22
mov word [rsp + 0x70], r8w
mov word [rsp + rcx*2 + 0x70], r8w
lea ecx, [rax + 2]
add rcx, rcx
cmp rcx, 0x20c
jae 0x140123e37
mov qword [rsp + 0xaa8], rbx
xor edx, edx
mov qword [rsp + 0xab0], rsi
mov r8d, 0xf003f
xor esi, esi
mov word [rsp + rcx + 0x70], si
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x140123d11
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80a
call fcn.140122ec0
test eax, eax
jne 0x140123ccf
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.140176058
test eax, eax
je 0x140123ccf
cmp eax, 0xc
je 0x140123e0b
cmp eax, 0x16
je 0x140123e00
cmp eax, 0x22
je 0x140123e00
cmp eax, 0x50
jne 0x140123df5
lea r8, [rdi + 0x68]
xor r9d, r9d
lea rdx, [rsp + 0x280]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov rbx, qword [rsp + 0xaa8]
mov rsi, qword [rsp + 0xab0]
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.140149290
add rsp, 0xa90
pop rdi
ret
mov qword [rsp + 0x60], rsi
lea rax, str.RPCSS
mov qword [rsp + 0x58], rsi
add rdi, 0x68
mov qword [rsp + 0x50], rax
mov r9d, 0xf01ff
mov qword [rsp + 0x48], rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rsi
mov r8, rdi
mov qword [rsp + 0x38], rax
mov rdx, rdi
mov dword [rsp + 0x30], 1
mov rcx, rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], SafeArrayUnlock
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
jne 0x140123dd2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80b
call fcn.140122ec0
test eax, eax
jne 0x140123dc7
lea r8, str.Could_not_start_service
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.140176058
test eax, eax
je 0x140123dc7
cmp eax, 0xc
je 0x140123e2c
cmp eax, 0x16
je 0x140123e21
cmp eax, 0x22
je 0x140123e21
cmp eax, 0x50
jne 0x140123e16
xor r9d, r9d
mov r8, rdi
jmp 0x140123cd6
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x140123ce8
xor eax, eax
jmp 0x140123cf8
mov ecx, 0x80004005
call fcn.14003a200
int3
mov ecx, 0x80070057
call fcn.14003a200
int3
mov ecx, 0x8007000e
call fcn.14003a200
int3
mov ecx, 0x80004005
call fcn.14003a200
int3
mov ecx, 0x80070057
call fcn.14003a200
int3
mov ecx, 0x8007000e
call fcn.14003a200
int3
call fcn.140149904
int3
Function at 0x140123eb0
Capabilities:
Access the windows event log

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14023c048]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
lea rsi, [r11 + 0x18]
mov rdi, rcx
call fcn.14000b4e0
mov qword [rsp + 0x30], rsi
lea rdx, [rsp + 0x60]
mov r9d, 0xff
xor esi, esi
mov qword [rsp + 0x28], rsi
mov rcx, qword [rax]
mov qword [rsp + 0x20], rbx
lea r8d, [r9 + 1]
call fcn.14016eae8
lea rax, [rsp + 0x60]
mov word [rsp + 0x25e], si
mov qword [rsp + 0x50], rax
cmp dword [rdi + 0x28c], esi
jne 0x140123f36
lea rcx, [rsp + 0x60]
call fcn.140176194
lea rdx, [rdi + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140123f87
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov ecx, 1
mov dword [rsp + 0x30], esi
xor r8d, r8d
mov word [rsp + 0x28], cx
xor r9d, r9d
mov qword [rsp + 0x20], rsi
lea edx, [rcx + 3]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140149290
add rsp, 0x270
pop rdi
pop rsi
pop rbx
ret
Function at 0x1401251d0
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x80
mov rax, qword [0x14023c048]
xor rax, rsp
mov qword [rsp + 0x78], rax
movzx r14d, dl
mov rsi, rcx
call fcn.140126070
test eax, eax
jne 0x140125207
mov eax, 0x80004005
jmp 0x140125389
mov rcx, qword [0x140257268]
lea rax, str.APPID
mov edx, 0x65
mov qword [rsp + 0xa0], rdi
xorps xmm0, xmm0
mov qword [rsp + 0x58], rax
lea rdi, str.AE711B96_345B_47C2_9EB0_A6779BD61702
lea r9, [rsp + 0x58]
mov qword [rsp + 0x60], rdi
lea r8d, [rdx - 0x64]
movdqu xmmword [rsp + 0x68], xmm0
call fcn.140108160
test eax, eax
js 0x140125381
mov qword [rsp + 0x98], rbx
lea r8, str.AppID
xor ebx, ebx
lea rcx, [rsp + 0x40]
mov r9d, 0x20006
mov qword [rsp + 0x48], rbx
mov rdx, 0xffffffff80000000
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbx
call fcn.140032cd0
test eax, eax
je 0x14012529b
mov ecx, eax
call fcn.1401044c0
mov ebx, eax
jmp 0x140125364
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], rbx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov r8, rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x68], rbx
call fcn.140032b30
mov rdi, qword [rsp + 0x58]
test eax, eax
je 0x1401252e9
mov ecx, eax
call fcn.1401044c0
mov ebx, eax
jmp 0x140125356
lea rdx, str.LocalService
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test r14b, r14b
je 0x140125356
lea r8, [rsi + 0x68]
test r8, r8
je 0x140125345
mov rax, 0xffffffffffffffff
nop
cmp word [r8 + rax*2 + 2], bx
lea rax, [rax + 1]
jne 0x140125310
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, str.LocalService
mov qword [rsp + 0x20], r8
mov rcx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rsi
call fcn.140123bc0
test eax, eax
jne 0x140125356
mov ebx, 0x80004005
test rdi, rdi
je 0x140125364
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x40], 0
je 0x140125377
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140149290
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop r14
ret
Function at 0x140125da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x14023c048]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor r12d, r12d
lea r8, str.AppID
mov r15d, edx
mov qword [rsp + 0x50], r12
mov rdi, rcx
mov qword [rsp + 0x48], r12
mov rdx, 0xffffffff80000000
mov qword [rsp + 0x58], r12
lea rcx, [rsp + 0x48]
mov r9d, 0x20019
call fcn.140032cd0
mov ebx, eax
test eax, eax
je 0x140125e16
mov dword [rdi + 0x27c], eax
jmp 0x140125f64
mov rdx, qword [rsp + 0x48]
lea r8, str.AE711B96_345B_47C2_9EB0_A6779BD61702
mov r9d, 0x20019
mov qword [rsp + 0x38], r12
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x40], r12
call fcn.140032cd0
mov ebx, eax
test eax, eax
jne 0x140125f4c
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x64]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x60], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140125eba
mov eax, dword [rsp + 0x64]
dec eax
cmp eax, 1
jbe 0x140125e94
lea eax, [rbx + 0xd]
jmp 0x140125eba
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140125eb2
test al, 1
jne 0x140125eab
shr rax, 1
cmp word [rbp + rax*2 - 0x72], r12w
je 0x140125eb7
mov eax, SafeArrayDestroy
jmp 0x140125eba
mov word [rbp - 0x70], r12w
mov eax, r12d
mov dword [rdi + 0x28c], r12d
test eax, eax
jne 0x140125f10
lea rax, [rdi + 0x68]
mov dword [rdi + 0x28c], 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
lea rax, [0x1401265b0]
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], r12
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x140125f08
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x27c], eax
mov ebx, dword [rdi + 0x27c]
jmp 0x140125f52
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, eax
test eax, eax
jns 0x140125f3b
cmp eax, 0x80010106
jne 0x140125f52
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140125f3f
jmp 0x140125f52
mov byte [rdi + 0x62], 1
mov edx, r15d
mov rcx, rdi
call fcn.140125410
mov ebx, eax
mov dword [rdi + 0x27c], eax
cmp qword [rsp + 0x30], r12
je 0x140125f64
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x48], r12
je 0x140125f76
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140149290
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r12
pop rbp
ret
Function at 0x140126430
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x58
call fcn.140126070
test eax, eax
jne 0x140126447
mov eax, 0x80004005
add rsp, 0x58
ret
mov qword [rsp + 0x50], rbx
lea r8, str.AppID
xor ebx, ebx
lea rcx, [rsp + 0x38]
mov r9d, 0x20006
mov qword [rsp + 0x40], rbx
mov rdx, 0xffffffff80000000
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x48], rbx
call fcn.140032cd0
test eax, eax
je 0x14012648a
mov ecx, eax
call fcn.1401044c0
mov ebx, eax
jmp 0x1401264f0
mov rdx, qword [rsp + 0x38]
lea r8, str.AE711B96_345B_47C2_9EB0_A6779BD61702
mov r9d, 0x20006
mov qword [rsp + 0x28], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x30], rbx
call fcn.140032cd0
test eax, eax
je 0x1401264c2
mov ecx, eax
call fcn.1401044c0
jmp 0x1401264db
mov rcx, qword [rsp + 0x20]
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
call fcn.140126510
cmp qword [rsp + 0x20], 0
mov ebx, eax
je 0x1401264f0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x38], 0
je 0x140126503
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x58
ret

Function at 0x140126620
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [0x140257271], 0
mov ebx, r9d
jne 0x14012667e
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x20]
lea rcx, [0x140249fd0]
call fcn.140124a50
cmp al, 1
jne 0x140126666
mov edx, ebx
lea rcx, [0x140249fd0]
call fcn.140125da0
cmp dword [0x14024a25c], 0
jne 0x14012667e
cmp byte [0x14024a032], 0
je 0x14012667e
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x14014caf0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14014cb03
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.14014d124
lea rdx, [0x140235bd8]
lea rcx, [rsp + 0x20]
call fcn.1401672dc
int3

Function at 0x14015757c
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x14024b360]
xor edx, edx
jmp fcn.14014caf0

Function at 0x140157f3c
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x14024b360]
jmp fcn.14014caf0

Function at 0x140163e04
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140163ec0]
mov r9, qword [r9 + 8]
jmp fcn.140154e94

Function at 0x140163e98
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140163ed0]
mov r9, qword [r9 + 8]
jmp fcn.140154e94
Function at 0x14017cedc
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14017cefc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14016fb68
or eax, 0xffffffff
jmp 0x14017cefe
xor eax, eax
add rsp, 0x28
ret
Function at 0x2fc567100
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 0x2fc567b02
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc58a108]
test eax, eax
je 0x2fc567b9a
lea rax, [0x2fc58a0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc58a110]
mov qword [rbp - 8], rax
jmp 0x2fc567b7e
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 0x2fc567b72
cmp qword [rbp - 0x10], 0
je 0x2fc567b72
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 0x2fc567b38
lea rax, [0x2fc58a0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc567b9b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc567ca0
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 0x2fc567cc8
mov eax, 0
jmp 0x2fc567d16
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 0x2fc567cf1
mov eax, 0
jmp 0x2fc567d16
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 0x2fc567d11
mov eax, 0
jmp 0x2fc567d16
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc567d1c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc567d9a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc567d91
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc567d91
mov rax, qword [rbp - 8]
jmp 0x2fc567daf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc567d64
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000720c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14000719c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x140007248
cmp qword [rbx + 0x18], rdi
je 0x14000724f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000723f
jmp 0x140007269
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400205b8]
call fcn.140011c68
lea rcx, [0x140021170]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
invalid
iretd
test eax, 0x3c4fe4b1
cmp al, 0x78
pop rax
mov esi, 0x70d104cf
push rsp
or bl, ah
or dword [rcx - 0x41], ebp
std
invalid
add eax, 0xae1b5746
in eax, 7
out 0x20, al
enter 0x4155, 0xffffffffffffffad
or cl, byte [rdx + 0x30]
mov edi, gs
stc
retfq
ror edx, cl
fldenv [rsi]
wait
jge 0x14003f6e9
stosb byte [rdi], al
mov bh, 0xf4
mov bl, al
pop rbx
jo 0x14003f6b5
sub al, 0x7c
xchg ecx, eax
adc dword [rcx - 1], esi
adc eax, 0xe362ad71
scasb al, byte [rdi]
pop rdx
mov ecx, 0x98ea29b1
invalid
invalid
test al, 0x88
jmp [rcx]
imul eax, dword [rax], 0x6d14b189
shr dl, cl
pop rbp
pand mm6, mm4
idiv byte [rsi + 0x6f054a08]
pop rsi
sbb eax, ecx
in eax, 0xc0
adc dword [rdx + 0x69], esp
mov edi, 0x21184b2b
div byte [rbx + 0x49]
jae 0x14003f721
pop rdx
and byte [rdi - 0x3a], cl
stc
cmp dl, byte [0x1b771509b]
pop rcx
insd dword [rdi], dx
ja 0x14003f73e
xor dword [rbx], ebx
movsq qword [rdi], qword [rsi]
mov esi, 0x38d711dc
mov bh, 0xa0
movsb byte [rdi], byte [rsi]
xchg edi, eax
or al, 0x24
xchg ebp, eax
fcom qword [rcx]
xlatb
cmp byte [rdi + 0xc97a4a0], dh
and al, 0x95
jmp 0x17b9bc497

Function at 0x140007284
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x14000734a
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x14000730e
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000730b
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x1400205b8]
mov rdx, rsi
call fcn.140011c68
jmp 0x14000730e
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400072db
mov rdx, qword [0x14001f120]
lea rcx, [0x1400205b8]
mov rdi, rdx
inc rdx
mov qword [0x14001f120], rdx
lea edx, [rbx + 0x20]
call fcn.140011cb0
lea rcx, [0x140021170]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x2fc4d2960
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 0x2fc4d3362
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f5108]
test eax, eax
je 0x2fc4d33fa
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f5110]
mov qword [rbp - 8], rax
jmp 0x2fc4d33de
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 0x2fc4d33d2
cmp qword [rbp - 0x10], 0
je 0x2fc4d33d2
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 0x2fc4d3398
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d33fb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d3500
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 0x2fc4d3528
mov eax, 0
jmp 0x2fc4d3576
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 0x2fc4d3551
mov eax, 0
jmp 0x2fc4d3576
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 0x2fc4d3571
mov eax, 0
jmp 0x2fc4d3576
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d357c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d35fa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d35f1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d35f1
mov rax, qword [rbp - 8]
jmp 0x2fc4d360f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d35c4
mov eax, 0
add rsp, 0x20
pop rbp
ret