joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800020b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov esi, edx
mov rdi, rcx
xor r14d, r14d
mov dword [rbp - 0x50], r14d
lea rcx, [rbp - 0x30]
call fcn.1800011a0
nop
call fcn.1800029b0
mov rcx, rax
test rax, rax
je 0x1800022a8
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi], rax
mov dword [rbp - 0x50], 1
call fcn.1800029b0
mov rcx, rax
test rax, rax
je 0x180002292
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x48], rbx
mov dword [rbp - 0x50], 3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x1000
or eax, ecx
jge 0x180002154
mov edx, 0x1000
lea rcx, [rbp - 0x48]
call fcn.180004250
mov rbx, qword [rbp - 0x48]
mov dword [rbp + 0x40], 0x2000
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x48]
xor r8d, r8d
lea rdx, str.AppDataPath
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000219e
mov eax, dword [rbp + 0x48]
dec eax
cmp eax, 1
ja 0x18000219e
test rbx, rbx
je 0x18000219e
cmp dword [rbp + 0x40], 0
jne 0x18000219e
mov word [rbx], r14w
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.18000d370
test eax, eax
js 0x18000229d
cmp eax, dword [rbx - 0xc]
jg 0x18000229d
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r14w
lea rdx, [rbp - 0x48]
mov rcx, rdi
call fcn.180001340
mov dword [rbp - 0x50], 1
lea rdx, [rbx - 0x18]
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1800021f6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
cmp dword [rax - 0x10], 0
jne 0x180002235
mov edx, esi
lea rcx, [rbp - 0x40]
call fcn.180002d70
nop
mov rdx, rax
mov rcx, rdi
call fcn.180001340
nop
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180002235
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rax, vtable.CCfgOPBaseT_int_.0
mov qword [rbp - 0x30], rax
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x180002253
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x28], r14
mov dword [rbp - 0x20], r14d
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x180002272
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x180002281
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.180001600
int3
mov ecx, 0x80070057
call fcn.180001600
nop
mov ecx, 0x80004005
call fcn.180001600
int3
Function at 0x180004d10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180004d85
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x180004d85
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x180004d75
nop
cmp rbx, rcx
jae 0x180004d85
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x180004d60
cmp rbx, rcx
jae 0x180004d85
cmp word [rbx], 0
je 0x180004d85
mov rax, rbx
jmp 0x180004d87
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180004ec0
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x20
mov rax, rdx
mov ebx, ecx
test rdx, rdx
je 0x180004efc
mov r8d, 5
lea rdx, str.user
mov rcx, rax
call fcn.18000d768
movzx edx, byte [0x180030ec8]
test eax, eax
mov ecx, 1
cmove edx, ecx
mov byte [0x180030ec8], dl
test ebx, ebx
je 0x180004f18
call sym.Shell.DLL_DllRegisterServer
mov ebx, eax
test eax, eax
jns 0x180004f22
call sym.Shell.DLL_DllUnregisterServer
mov eax, ebx
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp sym.Shell.DLL_DllUnregisterServer
add rsp, 0x20
pop rbx
ret
Function at 0x180005680
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call fcn.180004450
xor edi, edi
lea rbx, str._shellexContextMenuHandlersSmallTreesPDFShell
nop word [rax + rax]
mov rdx, qword [rbx]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
inc edi
lea rbx, [rbx + 8]
cmp edi, 4
jb 0x1800056a0
call fcn.1800029b0
mov rcx, rax
test rax, rax
je 0x18000572d
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
lea r8, str.SmallTreesPDFShell
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellIconOverlayIdentifiers_s
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.180001ec0
mov rbx, qword [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov rdx, rbx
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180005720
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80004005
call fcn.180001600
int3

Function at 0x180005850
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rcx
xor ebp, ebp
mov dword [rcx + 0x10], ebp
lea rax, vtable.CShellExt.0
mov qword [rcx], rax
lea rax, vtable.CShellExt.1.0
mov qword [rcx + 8], rax
call fcn.1800029b0
mov rcx, rax
test rax, rax
je 0x1800059db
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx + 0x78], rax
mov dword [rbx + 0x14], 0xffffffff
mov qword [rbx + 0x80], rbp
mov qword [rbx + 0x88], rbp
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x40], ebp
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x88], 0x60
lea ecx, [rbp + 0x31]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
mov r9d, 0x20119
lea r8, str.Control_PanelDesktopWindowMetrics
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0x38]
call fcn.1800040f0
mov rdi, qword [rsp + 0x38]
test eax, eax
jne 0x180005952
mov dword [rsp + 0x90], 4
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x98]
xor r8d, r8d
lea rdx, str.AppliedDPI
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test rdi, rdi
je 0x180005952
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, ebp
mov eax, dword [rsp + 0x88]
cmp eax, 0x60
je 0x180005984
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
divsd xmm0, qword [0x1800231f0]
mulsd xmm0, qword [0x1800231e8]
cvttsd2si esi, xmm0
mov eax, 0x30
cmp esi, eax
cmovg esi, eax
cmp qword [rbx + 0x88], 0
jne 0x1800059b8
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], esi
mov r9d, esi
mov edx, 0xcc
mov r8d, 1
mov rcx, qword [0x180030eb0]
call qword [sym.imp.USER32.dll_LoadImageW]
mov qword [rbx + 0x88], rax
test rdi, rdi
je 0x1800059c6
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.180007d10
nop
mov rax, rbx
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x80004005
call fcn.180001600
int3
Function at 0x180005ef0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov esi, edx
mov rdi, rcx
xor r14d, r14d
mov dword [rbp - 0x50], r14d
lea rcx, [rbp - 0x30]
call fcn.1800011a0
nop
call fcn.1800029b0
mov rcx, rax
test rax, rax
je 0x1800060e8
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi], rax
mov dword [rbp - 0x50], 1
call fcn.1800029b0
mov rcx, rax
test rax, rax
je 0x1800060d2
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x48], rbx
mov dword [rbp - 0x50], 3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x1000
or eax, ecx
jge 0x180005f94
mov edx, 0x1000
lea rcx, [rbp - 0x48]
call fcn.180004250
mov rbx, qword [rbp - 0x48]
mov dword [rbp + 0x40], 0x2000
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x48]
xor r8d, r8d
lea rdx, str.AppDataPath
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180005fde
mov eax, dword [rbp + 0x48]
dec eax
cmp eax, 1
ja 0x180005fde
test rbx, rbx
je 0x180005fde
cmp dword [rbp + 0x40], 0
jne 0x180005fde
mov word [rbx], r14w
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.18000d370
test eax, eax
js 0x1800060dd
cmp eax, dword [rbx - 0xc]
jg 0x1800060dd
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r14w
lea rdx, [rbp - 0x48]
mov rcx, rdi
call fcn.180001340
mov dword [rbp - 0x50], 1
lea rdx, [rbx - 0x18]
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180006036
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
cmp dword [rax - 0x10], 0
jne 0x180006075
mov edx, esi
lea rcx, [rbp - 0x40]
call fcn.180006f00
nop
mov rdx, rax
mov rcx, rdi
call fcn.180001340
nop
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180006075
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rax, vtable.CCfgOPBaseT_int_.0
mov qword [rbp - 0x30], rax
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x180006093
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x28], r14
mov dword [rbp - 0x20], r14d
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x1800060b2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1800060c1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.180001600
int3
mov ecx, 0x80070057
call fcn.180001600
nop
mov ecx, 0x80004005
call fcn.180001600
int3
Function at 0x180007550
Capabilities:
Check if file exists

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.180005ef0
nop
lea r8, str.AppTest.txt
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.180005a80
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1800075a9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x1800075d5
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180007900
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov r13, rcx
mov dword [rsp + 0x30], 0x70
xor edx, edx
lea r8d, [rdx + 0x6c]
lea rcx, [rsp + 0x34]
call fcn.18000abd0
mov rcx, qword [0x180030ec0]
add rcx, 0xffffffffffffffe8
call fcn.180001660
lea rbx, [rax + 0x18]
mov qword [rsp + 0xe0], rbx
lea rdi, str.SmallTreesPDF.exe
mov r12, 0xffffffffffffffff
mov rax, r12
inc rax
cmp word [rdi + rax*2], 0
jne 0x180007970
mov rbp, rdi
sub rbp, rbx
sar rbp, 1
mov r15d, dword [rbx - 0x10]
test eax, eax
js 0x180007a97
movsxd rdx, eax
mov rcx, rdi
call fcn.18000d370
mov r14, rax
mov ecx, 0x7fffffff
sub ecx, eax
cmp ecx, r15d
jl 0x180007aa2
lea esi, [r15 + rax]
test esi, esi
js 0x180007a81
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x1800079e1
mov edx, esi
lea rcx, [rsp + 0xe0]
call fcn.180004250
mov rbx, qword [rsp + 0xe0]
cmp rbp, r15
ja 0x1800079ea
lea rdi, [rbx + rbp*2]
movsxd rdx, r14d
lea rcx, [rbx + r15*2]
mov r9d, r14d
mov r8, rdi
call fcn.180005b70
cmp esi, dword [rbx - 0xc]
jg 0x180007a8c
mov dword [rbx - 0x10], esi
movsxd rax, esi
xor ecx, ecx
mov word [rbx + rax*2], cx
mov dword [rsp + 0x34], 0x40
lea rax, str.open
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rbx
mov rax, qword [r13 + 0x78]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x60], 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r12d
sub r12d, 1
jg 0x180007a60
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ecx, 0x80070057
call fcn.180001600
int3
mov ecx, 0x80070057
call fcn.180001600
int3
mov ecx, 0x80070057
call fcn.180001600
int3
mov ecx, 0x80070057
call fcn.180001600
int3
Function at 0x180008510
Capabilities:
Check os version

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov rax, qword [0x180030048]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov r15d, r9d
mov r14d, r8d
mov rsi, rdx
mov rbx, rcx
call fcn.1800029b0
mov rcx, rax
test rax, rax
je 0x1800086b1
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
xor r12d, r12d
mov qword [rsp + 0x3c], r12
mov qword [rsp + 0x44], r12
mov qword [rsp + 0x4c], r12
mov qword [rsp + 0x54], r12
mov qword [rsp + 0x5c], r12
mov dword [rsp + 0x64], r12d
mov qword [rsp + 0x70], r12
lea rdx, [0x180023140]
mov rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp word [rdx + rax*2], r12w
jne 0x1800085a6
mov r8d, eax
lea rcx, [rsp + 0x20]
call fcn.180004be0
mov dword [rsp + 0x30], 0x50
mov qword [rsp + 0x34], 0x1c6
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x6c]
call fcn.18000abd0
mov dword [rbp - 0x70], 0x114
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180008628
cmp dword [rbp - 0x6c], 5
jbe 0x180008628
mov rax, qword [rbx + 0x80]
test rax, rax
jne 0x180008621
mov rcx, qword [rbx + 0x88]
mov rax, r12
test rcx, rcx
je 0x180008621
call fcn.180008790
mov qword [rbx + 0x80], rax
mov qword [rsp + 0x78], rax
jmp 0x18000862d
mov qword [rsp + 0x78], rdi
mov rbx, qword [rsp + 0x20]
cmp dword [rbx - 8], 1
jle 0x18000864a
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x20]
call fcn.180001e10
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x68], rbx
mov eax, dword [rbx - 0x10]
inc eax
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x40], r15d
lea r9, [rsp + 0x30]
mov r8d, 1
mov edx, r14d
mov rcx, rsi
call qword [sym.imp.USER32.dll_InsertMenuItemW]
mov esi, eax
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x18000868e
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, esi
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.180009290
add rsp, 0x1c0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.180001600
int3
Function at 0x2fc4d1cd0
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.2fc4d2db0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d26d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f5108]
test eax, eax
je 0x2fc4d276a
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 0x2fc4d274e
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 0x2fc4d2742
cmp qword [rbp - 0x10], 0
je 0x2fc4d2742
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 0x2fc4d2708
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d276b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d2870
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 0x2fc4d2898
mov eax, 0
jmp 0x2fc4d28e6
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 0x2fc4d28c1
mov eax, 0
jmp 0x2fc4d28e6
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 0x2fc4d28e1
mov eax, 0
jmp 0x2fc4d28e6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d28ec
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 0x2fc4d296a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d2961
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 0x2fc4d2961
mov rax, qword [rbp - 8]
jmp 0x2fc4d297f
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 0x2fc4d2934
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001a28
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001a72
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001a72
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001a72
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001a72
cmp dword [rcx + 0x84], 0xe
jbe 0x140001a72
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001a74
xor al, al
add rsp, 0x28
ret
Function at 0x2fc4d0e70
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.2fc4d1f50
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d1872
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f4108]
test eax, eax
je 0x2fc4d190a
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f4110]
mov qword [rbp - 8], rax
jmp 0x2fc4d18ee
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 0x2fc4d18e2
cmp qword [rbp - 0x10], 0
je 0x2fc4d18e2
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 0x2fc4d18a8
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d190b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d1a10
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 0x2fc4d1a38
mov eax, 0
jmp 0x2fc4d1a86
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 0x2fc4d1a61
mov eax, 0
jmp 0x2fc4d1a86
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 0x2fc4d1a81
mov eax, 0
jmp 0x2fc4d1a86
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d1a8c
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 0x2fc4d1b0a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d1b01
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 0x2fc4d1b01
mov rax, qword [rbp - 8]
jmp 0x2fc4d1b1f
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 0x2fc4d1ad4
mov eax, 0
add rsp, 0x20
pop rbp
ret