joyce8/EMBER2024-capa huggingface dataset:
Function at 0x24bb54c0c
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
lea rax, str.echoBinSafe
mov qword [rbp - 0x48], rax
lea rax, str._usr_lib_nim_lib_system_io.nim
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov word [rbp - 0x30], 0
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.nimFrame_4
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x40], 8
lea rax, [0x24bb774a8]
mov qword [rbp - 0x38], rax
mov qword [rbp - 8], 0
mov qword [rbp - 0x40], 9
lea rax, [0x24bb774a8]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x28]
jge 0x24bb54d5b
mov qword [rbp - 0x40], 0x333
lea rax, str._usr_lib_nim_lib_system_io.nim
mov qword [rbp - 0x38], rax
cmp qword [rbp - 8], 0
js 0x24bb54cbd
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x28]
jl 0x24bb54cd1
mov rax, qword [rbp + 0x28]
lea rdx, [rax - 1]
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.raiseIndexError2
mov rax, qword [rbp - 8]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x20]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov rbx, qword [rax]
mov ecx, 1
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r8d, 0
mov rdx, rbx
mov rcx, rax
call sym.writeWindows__systemZio_205
mov qword [rbp - 0x40], 0xb
lea rax, [0x24bb774a8]
mov qword [rbp - 0x38], rax
mov edx, 0
mov rax, qword [rbp - 8]
add rax, 1
jno 0x24bb54d35
mov edx, 1
mov rcx, rax
lea rax, [rbp - 0x58]
mov qword [rax], rcx
mov rax, rdx
and eax, 1
test al, al
je 0x24bb54d4e
call sym.raiseOverflow
mov rax, qword [rbp - 0x58]
mov qword [rbp - 8], rax
jmp 0x24bb54c8b
nop
mov qword [rbp - 0x40], 0x339
lea rax, str._usr_lib_nim_lib_system_io.nim
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x18], 0
mov ecx, 1
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 1
mov edx, 1
lea rax, [0x24bb774ce]
mov rcx, rax
call sym.fwrite
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x40], 0x33a
lea rax, str._usr_lib_nim_lib_system_io.nim
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x1c], 0
mov ecx, 1
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
call sym.fflush
mov dword [rbp - 0x1c], eax
call sym.popFrame_4
nop
add rsp, 0x88
pop rbx
pop rbp
ret

Function at 0x24bb56bef
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x24bb56c1f
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen_1
mov rcx, rax
jmp 0x24bb56c24
mov ecx, 0
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x24bb5f27e
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x24bb6f990
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x24bb6fa00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x24bb923e4]
mov rbx, rcx
test esi, esi
jle 0x24bb6fb30
mov rax, qword [0x24bb923e8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x24bb6fa4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x24bb6fad5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x24bb6fa30
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x24bb6fb52
mov rax, qword [0x24bb923e8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x24bb923e8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x24bb6fb37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x24bb6face
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x24bb6fae0
add dword [0x24bb923e4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x24bb923e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x24bb6face
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x24bb6fa58
mov rax, qword [0x24bb923e8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x24bb6fed0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x24bb92420]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x24bb92400]
test rbx, rbx
je 0x24bb6ff2c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x24bb6ff23
test rsi, rsi
je 0x24bb6ff23
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x24bb6ff08
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x24bb70140
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x24bb70158
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x24bb70160
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x24bb70170
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x24bb701bd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x24bb701b4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x24bb701bf
add rax, 0x28
cmp rax, r9
jne 0x24bb701a0
xor eax, eax
ret

Function at 0x24bb701c0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x24bb70250
mov rdx, qword [0x24bb7a300]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x24bb7023e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x24bb7023e
cmp word [rax + 0x18], 0x20b
jne 0x24bb7023e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x24bb70250
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x24bb70229
add rbx, 0x28
cmp rbx, rdi
je 0x24bb70250
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x24bb70220
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x24bb70260
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x24bb7a300]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x24bb70280
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x24bb70288
ret
cmp word [r8 + 0x18], 0x20b
jne 0x24bb70280
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x24bb702dd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x24bb702d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x24bb70280
add rax, 0x28
cmp rax, r9
jne 0x24bb702c0
xor eax, eax
ret
Function at 0x24bb702e0
Capabilities:
Parse pe header

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

Function at 0x24bb70320
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x24bb7a300]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x24bb70340
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x24bb70348
ret
cmp word [rdx + 0x18], 0x20b
jne 0x24bb70340
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x24bb70390
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x24bb70387
test rcx, rcx
je 0x24bb70340
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x24bb70378
xor eax, eax
ret

Function at 0x24bb703a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x24bb7a300]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x24bb703bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x24bb703c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x24bb703e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x24bb7a300]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x24bb70400
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x24bb70408
ret
cmp word [r8 + 0x18], 0x20b
jne 0x24bb70400
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x24bb70400
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x24bb70454
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x24bb70460
add rdx, 0x28
cmp r9, rdx
jne 0x24bb70440
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x24bb70470
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x24bb7a300]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x24bb70492
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x24bb704a0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x24bb70492
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x24bb70492
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x24bb70492
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x24bb704f5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x24bb70508
add rdx, 0x28
cmp rdx, r10
jne 0x24bb704e0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x24bb70517
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x24bb70527
mov edx, dword [rax + 0xc]
test edx, edx
je 0x24bb704fe
test ecx, ecx
jg 0x24bb70510
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14001a37a
Capabilities:
Hash data using murmur3

Disassembly:
push rax
pushf
mov eax, 0x67d4f33c
pushf
not eax
add eax, 0xe32268e1
xor eax, 0x9d976e48
rol eax, 0xf9
popf
pushf
not eax
add eax, 0x9929c1e0
xor eax, 0x95250c35
rol eax, 0x5a
popf
pushf
not eax
add eax, 0xabc4891f
xor eax, 0x9df7c2b2
rol eax, 0xe0
popf
pushf
not eax
add eax, 0x924f66ed
xor eax, 0xe761ff42
rol eax, 0x2f
popf
cmp eax, 4
jne 0x14001a3dd
popf
pop rax
jmp 0x14001a5a5
cmp eax, 0
jne 0x14001a3ec
popf
pop rax
jmp 0x14001a419
cmp eax, 3
jne 0x14001a3fb
popf
pop rax
jmp 0x14001a538
cmp eax, 1
jne 0x14001a40a
popf
pop rax
jmp 0x14001a4d0
cmp eax, 2
jne 0x14001a419
popf
pop rax
jmp 0x14001a51f
push rbx
mov r11d, dword [r8]
mov rbx, rdx
and r11d, 0xfffffff8
mov r9, rcx
test byte [r8], 4
mov r10, rcx
je 0x14001a48a
push rax
pushf
mov eax, 0x499ce64e
pushf
not eax
add eax, 0xcc998c3d
xor eax, 0xf94cbef0
rol eax, 0x7b
popf
pushf
not eax
add eax, 0xc06a1e08
xor eax, 0xaba3c4ee
rol eax, 0xf4
popf
pushf
not eax
add eax, 0xab53c047
xor eax, 0xe3ef7db2
rol eax, 0
popf
pushf
not eax
add eax, 0xadb807fc
xor eax, 0xc0e5d719
rol eax, 0
popf
jmp 0x14001a3ce
push rax
pushf
mov eax, 0xa6a90e0
pushf
not eax
add eax, 0x9691039c
xor eax, 0xb965c33b
rol eax, 0xd
popf
pushf
not eax
add eax, 0xc9bf2869
xor eax, 0xc0c6dd01
rol eax, 0x36
popf
pushf
not eax
add eax, 0xc547c258
xor eax, 0x90e2efd8
rol eax, 7
popf
jmp 0x14001a3ce
mov eax, dword [r8 + 8]
movsxd r10, dword [r8 + 4]
neg eax
push rcx
not rcx
sub r10, rcx
pop rcx
sub r10, 1
movsxd rcx, eax
and r10, rcx
push rax
pushf
mov eax, 0xe0b1cb32
pushf
not eax
add eax, 0xf3a6de63
xor eax, 0xd2f98b9f
rol eax, 0x65
popf
pushf
not eax
add eax, 0xac28b029
xor eax, 0xae959a30
rol eax, 0x87
popf
jmp 0x14001a3ce
movsxd rax, r11d
mov rdx, qword [rax + r10]
mov rax, qword [rbx + 0x10]
mov ecx, dword [rax + 8]
mov rax, qword [rbx + 8]
test byte [rcx + rax + 3], 0xf
je 0x14001a5a5
movzx eax, byte [rcx + rax + 3]
and eax, 0xfffffff0
push rax
not rax
sub r9, rax
pop rax
sub r9, 1
push rax
pushf
mov eax, 0x43ac88af
pushf
not eax
add eax, 0xa98f64c7
xor eax, 0x95b239fd
rol eax, 0xb9
popf
pushf
not eax
add eax, 0xf9d8fa2d
xor eax, 0x9a2bc32f
rol eax, 0x81
popf
pushf
not eax
add eax, 0xcee325fa
xor eax, 0xe03d4522
rol eax, 0x9c
popf
pushf
not eax
add eax, 0xbfabd262
xor eax, 0xd3fb63ba
rol eax, 0x58
popf
jmp 0x14001a3ce
xor r9, rdx
mov rcx, r9
pop rbx
jmp fcn.14002a31b
Function at 0x140001330
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x50]
mov dword [rsp + 0x48], 4
xor ebx, ebx
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
mov dword [rsp + 0x40], ebx
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlTerminal_Server
mov rcx, 0xffffffff80000002
call qword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x14000137a
lea eax, [rbx + 1]
jmp 0x1400013d1
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.TSAppCompat
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x1400013b7
mov ebx, 1
jmp 0x1400013be
cmp dword [rsp + 0x40], ebx
sete bl
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140002ed8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x1400060e8]
xor rax, rsp
mov qword [rsp + 0x230], rax
or rbx, 0xffffffffffffffff
mov rax, rbx
xor edi, edi
inc rax
cmp word [rcx + rax*2], di
jne 0x140002f00
mov edx, 0x104
cmp rax, rdx
ja 0x140002f79
mov r8, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
lea rax, [rsp + 0x20]
inc rbx
cmp word [rax + rbx*2], di
jne 0x140002f2c
lea rax, [rbx + rbx]
sub rax, 2
cmp word [rsp + rax + 0x20], 0x5c
je 0x140002f4d
cmp word [rsp + rax + 0x20], 0x2f
jne 0x140002f5c
cmp rax, 0x208
jae 0x140002f9d
mov word [rsp + rax + 0x20], di
jmp 0x140002f39
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140002f79
mov eax, 1
jmp 0x140002f7b
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140003620
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret
call fcn.1400037f8
int3

Function at 0x140003228
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400060e8]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
mov word [rbp - 0xc], 0x500
lea rax, [rbp - 0x18]
mov dword [rbp - 0x10], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rbp - 0x20], ebx
call qword [sym.imp.ntdll.dll_RtlAllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
js 0x1400032bb
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeSid]
nop dword [rax + rax]
mov eax, dword [rbp - 0x20]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140003620
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret

Function at 0x1400035f0
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push r14
push r15
sub r12, r12
add r12, 0x60
mov r14, qword gs:[r12]
push r11
mov r11, qword [r14 + 0x10]
add r14, 0x18
mov r15, qword [r14]
mov r12, r15
add r12, 0x10
mov r14, qword [r12]
push rax

Function at 0x14000396c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400039b8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400039b0
cmp dword [rcx + 0x3c], edx
jl 0x1400039b0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400039b0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400039b8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x2fc4cf8b0
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.2fc4d0990
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d02b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f2108]
test eax, eax
je 0x2fc4d034a
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 0x2fc4d032e
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 0x2fc4d0322
cmp qword [rbp - 0x10], 0
je 0x2fc4d0322
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 0x2fc4d02e8
lea rax, [0x2fc4f20e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d034b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d0450
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 0x2fc4d0478
mov eax, 0
jmp 0x2fc4d04c6
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 0x2fc4d04a1
mov eax, 0
jmp 0x2fc4d04c6
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 0x2fc4d04c1
mov eax, 0
jmp 0x2fc4d04c6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d04cc
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 0x2fc4d054a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d0541
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 0x2fc4d0541
mov rax, qword [rbp - 8]
jmp 0x2fc4d055f
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 0x2fc4d0514
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400b3b00]
mov dword [rax], 1
mov rax, qword [str._b__f_]
mov dword [rax], 1
mov rax, qword [str._f__f_]
mov dword [rax], 1
mov rax, qword [0x1400b3aa0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret