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

Disassembly:
jmp 0x140018980
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011343
Capabilities:
Delete registry key

Disassembly:
jmp 0x140012080
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x408
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x96
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x428]
mov rax, qword [0x140025018]
xor rax, rbp
mov qword [rbp + 0x3c8], rax
lea rcx, [0x14002b16f]
call fcn.1400114e2
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov rax, qword [rbp + 0x3f0]
mov qword [rsp + 0x20], rax
lea r9, str.SystemCurrentControlSetServices_ws
mov r8, 0xffffffffffffffff
mov edx, 0x104
lea rcx, [rbp + 0x10]
call fcn.1400114ab
xor r9d, r9d
mov r8d, 0x100
lea rdx, [rbp + 0x10]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov dword [rbp + 0x234], eax
cmp dword [rbp + 0x234], 0
je 0x140012140
mov edx, dword [rbp + 0x234]
lea rcx, str._OpSec__could_not_remove_service_registry_key:__d_n
call fcn.140011221
xor eax, eax
jmp 0x140012145
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140020300]
call fcn.140011433
mov rax, rdi
mov rcx, qword [rbp + 0x3c8]
xor rcx, rbp
call fcn.140011244
lea rsp, [rbp + 0x3d8]
pop rdi
pop rbp
ret
Function at 0x14001136b
Capabilities:
Parse pe header

Disassembly:
jmp 0x140019cd0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140019cf0
xor al, al
jmp 0x140019d71
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140019d03
xor al, al
jmp 0x140019d71
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140019d2d
xor al, al
jmp 0x140019d71
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140019d41
xor al, al
jmp 0x140019d71
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140019d53
xor al, al
jmp 0x140019d71
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140019d6f
xor al, al
jmp 0x140019d71
mov al, 1
add rsp, 0x38
ret
Function at 0x14001137f
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
jmp 0x1400171b0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x3a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x140025018]
xor rax, rbp
mov qword [rbp + 0x198], rax
lea rcx, [0x14002b582]
call fcn.1400114e2
mov qword [rbp + 8], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x48], 0
mov dword [rbp + 0x64], 0
mov dword [rbp + 0x84], 0
mov qword [rbp + 0xa8], 0
mov r8d, 0xa
mov edx, 0x3e8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x14001725c
lea rcx, str.FindResource
call fcn.1400110fa
jmp 0x14001737e
mov rdx, qword [rbp + 0x28]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140017284
lea rcx, str.LoadResource
call fcn.1400110fa
jmp 0x14001737e
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x1400172aa
lea rcx, str.LockResource
call fcn.1400110fa
jmp 0x14001737e
mov rdx, qword [rbp + 0x28]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
jne 0x1400172d0
lea rcx, str.SizeOfResource
call fcn.1400110fa
jmp 0x14001737e
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0xffffffffffffffff
jne 0x140017320
lea rcx, str.WriteResourceToDisk.CreateFile
call fcn.1400110fa
jmp 0x14001737e
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x84]
mov r8d, dword [rbp + 0x64]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbp + 0xc4], eax
cmp dword [rbp + 0xc4], 0
jne 0x140017362
lea rcx, str.WriteResourceToDisk.WriteFile
call fcn.1400110fa
jmp 0x14001737e
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x1400223e0]
call fcn.140011433
mov rax, rdi
mov rcx, qword [rbp + 0x198]
xor rcx, rbp
call fcn.140011244
lea rsp, [rbp + 0x1a8]
pop rdi
pop rbp
ret
Function at 0x140011550
Capabilities:
Enumerate processes

Disassembly:
jmp 0x1400163c0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x468
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xb2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x488]
mov rax, qword [0x140025018]
xor rax, rbp
mov qword [rbp + 0x438], rax
lea rcx, [0x14002b3ef]
call fcn.1400114e2
xor edx, edx
mov ecx, 2
call fcn.140011230
mov qword [rbp + 8], rax
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x140016444
lea rcx, str.CreateToolhelp32Snapshot
call fcn.1400110fa
jmp 0x1400164e9
mov dword [rbp + 0x70], 0x238
lea rdx, [rbp + 0x70]
mov rcx, qword [rbp + 8]
call fcn.1400112ee
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jne 0x14001646f
lea rcx, str.GetProcessNameFromPID.Process32First
call fcn.1400110fa
jmp 0x1400164e9
lea rdx, [rbp + 0x9c]
mov rcx, qword [rbp + 0x460]
call qword [sym.imp.ucrtbased.dll_wcscmp]
test eax, eax
jne 0x14001649b
mov eax, dword [rbp + 0x44]
inc eax
mov dword [rbp + 0x44], eax
mov rax, qword [rbp + 0x468]
mov ecx, dword [rbp + 0x78]
mov dword [rax], ecx
lea rdx, [rbp + 0x70]
mov rcx, qword [rbp + 8]
call fcn.140011460
test eax, eax
jne 0x14001646f
cmp dword [rbp + 0x44], 1
jbe 0x1400164c3
mov rax, qword [rbp + 0x468]
mov dword [rax], 1
xor eax, eax
jmp 0x1400164e9
cmp dword [rbp + 0x44], 0
jne 0x1400164da
mov rax, qword [rbp + 0x468]
mov dword [rax], 2
xor eax, eax
jmp 0x1400164e9
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140021d40]
call fcn.140011433
mov rax, rdi
mov rcx, qword [rbp + 0x438]
xor rcx, rbp
call fcn.140011244
lea rsp, [rbp + 0x448]
pop rdi
pop rbp
ret

Function at 0x140012c10
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x14002b1a2]
call fcn.1400114e2
mov eax, dword [section..data]
mov dword [0x140025198], eax
mov eax, dword [0x140025198]
mov dword [0x14002518c], eax
mov qword [0x140025180], 0
lea rcx, str.POSIXLY_CORRECT
call fcn.14001117c
mov qword [0x140025190], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0xf0]
movsx eax, byte [rcx + rax]
cmp eax, 0x2d
jne 0x140012ca4
mov dword [0x140025188], 2
mov rax, qword [rbp + 0xf0]
inc rax
mov qword [rbp + 0xf0], rax
jmp 0x140012cfa
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0xf0]
movsx eax, byte [rcx + rax]
cmp eax, 0x2b
jne 0x140012cda
mov dword [0x140025188], 0
mov rax, qword [rbp + 0xf0]
inc rax
mov qword [rbp + 0xf0], rax
jmp 0x140012cfa
cmp qword [0x140025190], 0
je 0x140012cf0
mov dword [0x140025188], 0
jmp 0x140012cfa
mov dword [0x140025188], 1
mov rax, qword [rbp + 0xf0]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x2fc4cbba0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4ccc80
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4cc5a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ef108]
test eax, eax
je 0x2fc4cc63a
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ef110]
mov qword [rbp - 8], rax
jmp 0x2fc4cc61e
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 0x2fc4cc612
cmp qword [rbp - 0x10], 0
je 0x2fc4cc612
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 0x2fc4cc5d8
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cc63b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cc740
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 0x2fc4cc768
mov eax, 0
jmp 0x2fc4cc7b6
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 0x2fc4cc791
mov eax, 0
jmp 0x2fc4cc7b6
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 0x2fc4cc7b1
mov eax, 0
jmp 0x2fc4cc7b6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cc7bc
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 0x2fc4cc83a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cc831
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 0x2fc4cc831
mov rax, qword [rbp - 8]
jmp 0x2fc4cc84f
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 0x2fc4cc804
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d0070
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d1150
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d0a72
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f3108]
test eax, eax
je 0x2fc4d0b0a
lea rax, [0x2fc4f30e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f3110]
mov qword [rbp - 8], rax
jmp 0x2fc4d0aee
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 0x2fc4d0ae2
cmp qword [rbp - 0x10], 0
je 0x2fc4d0ae2
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 0x2fc4d0aa8
lea rax, [0x2fc4f30e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d0b0b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d0c10
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 0x2fc4d0c38
mov eax, 0
jmp 0x2fc4d0c86
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 0x2fc4d0c61
mov eax, 0
jmp 0x2fc4d0c86
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 0x2fc4d0c81
mov eax, 0
jmp 0x2fc4d0c86
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d0c8c
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 0x2fc4d0d0a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d0d01
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 0x2fc4d0d01
mov rax, qword [rbp - 8]
jmp 0x2fc4d0d1f
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 0x2fc4d0cd4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc50f8d0
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 0x2fc5102d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc534108]
test eax, eax
je 0x2fc51036a
lea rax, [0x2fc5340e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc534110]
mov qword [rbp - 8], rax
jmp 0x2fc51034e
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 0x2fc510342
cmp qword [rbp - 0x10], 0
je 0x2fc510342
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 0x2fc510308
lea rax, [0x2fc5340e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc51036b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc510470
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 0x2fc510498
mov eax, 0
jmp 0x2fc5104e6
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 0x2fc5104c1
mov eax, 0
jmp 0x2fc5104e6
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 0x2fc5104e1
mov eax, 0
jmp 0x2fc5104e6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc5104ec
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 0x2fc51056a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc510561
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 0x2fc510561
mov rax, qword [rbp - 8]
jmp 0x2fc51057f
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 0x2fc510534
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1808d6172
Capabilities:
Execute anti-debugging instructions

Disassembly:
dec r11d
cdq
ror r11d, 1
movzx rsi, cx
clc
cmc
bswap r11d
bt si, 0x8a
rdtsc
btr dx, 0x78
ror r11d, 3
cwd
rdtsc
movzx rsi, sp
dec r11d
xor r11d, 0x7e5617e5
jmp 0x180856960
add r11d, 0x51565962
shl dl, cl
cbw
movsx rdi, r14w
xor r11d, 0x2ba63bc9
sbb ah, 0x98
cmc
ror r10w, cl
neg r11d
ror r11d, 2
movsxd rdi, edx
add dil, r10b
bts ax, r11w
neg r11d
sub r11d, 0x75f36e7f
add r11, r9
movabs rdx, 0x100000000
add r11, rdx
mov r10, rsp
bt esi, ebx
bt esi, 0x6a
sub rsp, 0x180
ror sil, cl
and rsp, 0xfffffffffffffff0
shld rax, rbp, 0x3d
bts ax, bp
shl rsi, 0xcf
mov rsi, r11
cmc
bswap ax
jmp 0x1808c08fc
dec r8d
jmp 0x1808a39fe
inc r8d
test cx, r8w
neg r8d
push rsi
xor dword [rsp], r8d
bt rsi, 0x75
rcl sil, cl
pop rsi
stc
movsxd r8, r8d
stc
add rdi, r8
jmp 0x18088a556
jmp rdi
ror r8d, 1
jmp 0x18088a531
movabs rax, 0
or r8b, 0x44
sub rsi, rax
sal di, 0x20
bts rdi, r15
and r8b, r13b
lea rdi, [0x1808c0918]
bt r8w, 0xf7
sbb r8d, 0x5b7d4e63
sub r11, 4
mov r8d, dword [r11]
clc
xor r8d, esi
jmp 0x18086e105
push rax
nop
lahf
movsx rax, sp
push r11
push rsi
mov r11b, r12b
movsx rsi, sp
movsxd rax, edx
push r8
push r9
pushfq
movsx r11w, r15b
movsx r9d, si
movzx rax, ax
push r12
cdqe
push r15
push r10
mov r11, 0xe560c11
push rbp
xchg r8b, r8b
push rdi
movzx r9d, di
push rbx
setg r8b
not r11
push rdx
push r13
xchg r9b, r11b
dec di
cmovp ax, r10w
push r14
sete r8b
push rcx
cwde
movabs r9, 0
push r9
mov r11, qword [rsp + 0x90]
movsx r8w, cl
not r11d
jmp 0x18083c4a4
Function at 0x2fc4cf010
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d00f0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4cfa12
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f2108]
test eax, eax
je 0x2fc4cfaaa
lea rax, [0x2fc4f20e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f2110]
mov qword [rbp - 8], rax
jmp 0x2fc4cfa8e
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 0x2fc4cfa82
cmp qword [rbp - 0x10], 0
je 0x2fc4cfa82
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 0x2fc4cfa48
lea rax, [0x2fc4f20e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cfaab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cfbb0
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 0x2fc4cfbd8
mov eax, 0
jmp 0x2fc4cfc26
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 0x2fc4cfc01
mov eax, 0
jmp 0x2fc4cfc26
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 0x2fc4cfc21
mov eax, 0
jmp 0x2fc4cfc26
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cfc2c
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 0x2fc4cfcaa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cfca1
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 0x2fc4cfca1
mov rax, qword [rbp - 8]
jmp 0x2fc4cfcbf
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 0x2fc4cfc74
mov eax, 0
add rsp, 0x20
pop rbp
ret