joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003210
Capabilities:
Parse pe header

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

Function at 0x140003240
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 0x14000328d
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 0x140003284
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000328f
add rax, 0x28
cmp rax, r9
jne 0x140003270
xor eax, eax
ret

Function at 0x140003290
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140003320
mov rdx, qword [0x14000aae0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000330e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000330e
cmp word [rax + 0x18], 0x20b
jne 0x14000330e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140003320
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400032f9
add rbx, 0x28
cmp rbx, rdi
je 0x140003320
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400032f0
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 0x140003330
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000aae0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003350
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003358
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003350
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400033ad
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 0x1400033a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003350
add rax, 0x28
cmp rax, r9
jne 0x140003390
xor eax, eax
ret

Function at 0x1400033b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000aae0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400033cf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400033d8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400033cf
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1400033f0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000aae0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140003410
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140003418
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140003410
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140003460
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140003457
test rcx, rcx
je 0x140003410
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140003448
xor eax, eax
ret

Function at 0x140003470
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x14000aae0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400034d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400034d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400034d0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400034d0
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 0x140003524
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140003530
add rdx, 0x28
cmp r9, rdx
jne 0x140003510
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14000aae0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140003562
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140003570
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003562
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140003562
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140003562
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 0x1400035c5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400035d8
add rdx, 0x28
cmp rdx, r10
jne 0x1400035b0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400035e7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400035f7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400035ce
test ecx, ecx
jg 0x1400035e0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x2fc4d9070
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.2fc4da150
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d9a72
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fc108]
test eax, eax
je 0x2fc4d9b0a
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fc110]
mov qword [rbp - 8], rax
jmp 0x2fc4d9aee
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 0x2fc4d9ae2
cmp qword [rbp - 0x10], 0
je 0x2fc4d9ae2
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 0x2fc4d9aa8
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d9b0b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d9c10
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 0x2fc4d9c38
mov eax, 0
jmp 0x2fc4d9c86
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 0x2fc4d9c61
mov eax, 0
jmp 0x2fc4d9c86
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 0x2fc4d9c81
mov eax, 0
jmp 0x2fc4d9c86
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d9c8c
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 0x2fc4d9d0a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d9d01
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 0x2fc4d9d01
mov rax, qword [rbp - 8]
jmp 0x2fc4d9d1f
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 0x2fc4d9cd4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001450
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
lea r9, [rax + 0x10]
mov rax, qword [rax + 0x10]
nop dword [rax]
jmp 0x140001483
mov rdx, qword [rax + 0x30]
cmp rcx, rdx
jb 0x1400014be
mov r8d, dword [rax + 0x40]
add r8, rdx
cmp rcx, r8
jmp 0x1400014bc
jb 0x1400014c8
mov rax, qword [rax]
cmp r9, rax
jne 0x140001468
xor edx, edx
mov rax, rdx
ret

Function at 0x140001520
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp - 8], r13
sub rsp, 8
push r12
push rbp
push rdi
sub rsp, 8
mov qword [rsp], rsi
push rbx
sub rsp, 0x48
mov rax, qword gs:[0x60]
cmovg r9, r9
cmove r12, r12
nop
cmova rbx, rbx
cmove r15, r15
cmovl rdi, rdi
cmove rdi, rdi
mov rax, qword [rax + 0x18]
mov rbx, qword [rax + 0x10]
lea r12, [rax + 0x10]
mov r13d, edx
xchg r10, r10
cmovb r9, r9
push rdi
pop rdi
cmovb rax, rax
xchg rcx, rcx
cmovl r13, r13
cmovl r12, r12
mov edx, 0x5c
mov rsi, rcx
jmp 0x1400015af
call sub.msvcrt.dll_wcsrchr
mov rbp, qword [sym.imp.msvcrt.dll__wcsicmp]
push rax
pop rdi
jmp 0x1400015d9
mov rdx, qword [rbx + 0x50]
mov rcx, rsi
call rbp
test eax, eax
je 0x14000162f
mov rbx, qword [rbx]
cmp r12, rbx
je 0x140001670
jmp 0x1400015f6
test rdi, rdi
jne 0x1400015c0
mov rdx, qword [rbx + 0x60]
mov rcx, rsi
jmp 0x140001629
call rbp
test eax, eax
jne 0x1400015cd
mov rax, qword [rbx + 0x30]
add rsp, 0x48
pop rbx
add rsp, 8
mov rsi, qword [rsp - 8]
pop rdi
pop rbp
pop r12
add rsp, 8
mov r13, qword [rsp - 8]
jmp 0x14000166d
ret
test r13d, r13d
je 0x140001790
cmova rax, rax
cmova r15, r15
xchg rdi, rdi
cmovl rax, rax
xor edx, edx
lea rcx, section..rdata
call fcn.140001520
jmp 0x1400016b9
xor r8d, r8d
mov edx, 0xa301ecda
mov rcx, rax
call fcn.140001a30
mov rbx, rax
test rax, rax
je 0x140001790
mov edx, 0x104
push rsi
pop rcx
mov qword [rsp + 0x38], rsi
cmovb r11, r11
cmovb r15, r15
cmovl r10, r10
cmovb r10, r10
cmovb rcx, rcx
cmovb r14, r14
mov qword [rsp + 0x30], 0
call fcn.1400184e0
xor edx, edx
xor ecx, ecx
lea r9, [rsp + 0x28]
mov qword [rsp + 0x28], 0
jmp 0x14000173c
add eax, eax
lea r8, [rsp + 0x30]
mov word [rsp + 0x30], ax
push rdx
pop rdx
cmovl rax, rax
cmovg rsi, rsi
nop
add eax, 2
mov word [rsp + 0x32], ax
jmp 0x140001769
call rbx
test eax, eax
js 0x140001790
cmova r14, r14
push rdx
pop rdx
cmova r10, r10
nop
push rax
pop rax
mov rax, qword [rsp + 0x28]
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
nop
cmovb rsi, rsi
cmove r11, r11
cmovg r14, r14
cmovg r12, r12
cmovb r15, r15
xor eax, eax
add rsp, 0x48
pop rbx
mov rsi, qword [rsp]
add rsp, 8
add rsp, 8
mov rdi, qword [rsp - 8]
pop rbp
pop r12
pop r13
ret
Function at 0x140007490
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
lea rax, [0x1400235a8]
movq xmm1, rax
mov qword [rdx], 0
mov rsi, rcx
mov rbx, rdx
push r8
pop rdi
lea rcx, [0x140023580]
jmp 0x1400074cc
mov ebp, r9d
lea rdx, [rsp + 0x30]
cmove r8, r8
cmovb r10, r10
mov r9d, 1
movq xmm0, rcx
mov r8d, 2
xor ecx, ecx
mov qword [rsp + 0x20], 0
jmp 0x140007515
punpcklqdq xmm0, xmm1
movups xmmword [rsp + 0x30], xmm0
cmove r9, r9
cmovb rcx, rcx
cmovg r15, r15
nop
call fcn.140013ce0
jmp 0x14000754d
test eax, eax
jne 0x140007568
xor eax, eax
add rsp, 0x48
pop rbx
mov rsi, qword [rsp]
add rsp, 8
pop rdi
pop rbp
ret
mov rcx, rsi
lea r9, [rsp + 0x20]
mov r8d, ebp
push rdi
pop rdx
call fcn.140006bf0
mov rsi, qword [rsp + 0x20]
test eax, eax
je 0x1400075e0
jmp 0x140007599
mov r9d, 8
lea r8, [rsp + 0x28]
mov edx, 5
mov rcx, 0xfffffffffffffffe
mov qword [rsp + 0x28], rsi
call fcn.140011af0
test eax, eax
jmp 0x1400075c7
js 0x1400075e0
mov eax, 1
mov qword [rbx], rsi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
test rsi, rsi
je 0x140007551
mov rcx, rsi
call fcn.140010b50
jmp 0x140007551

Function at 0x140007600
Capabilities:
Acquire debug privileges

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, str.SeAssignPrimaryTokenPrivilege
lea rsi, [0x140023580]
mov r9d, 2
movq xmm1, rax
movq xmm0, rsi
punpcklqdq xmm0, xmm1
push rcx
pop rdx
lea r8, [rsp + 0x20]
lea rcx, str.S_1_5_18
movups xmmword [rsp + 0x20], xmm0
call fcn.140007490
jmp 0x140007664
mov ebx, eax
jmp 0x140007678
test eax, eax
je 0x1400076c0
jmp 0x140007699
mov eax, ebx
cmovb r11, r11
cmovb r10, r10
push r14
pop r14
cmove r15, r15
cmova rax, rax
add rsp, 0x38
pop rbx
pop rsi
ret
mov rsi, qword [fcn.14001d460]
mov ecx, 1
call rsi
jmp 0x1400076e2
lea rdx, str.Could_not_impersonate_SYSTEM
mov rcx, rax
jmp 0x14000770a
call fcn.140005bd0
mov ecx, 1
cmovg r11, r11
cmovb r12, r12
cmove r8, r8
cmovg rcx, rcx
cmova rdx, rdx
cmovg rdi, rdi
call rsi
jmp 0x14000773c
lea rdx, [0x140023621]
mov rcx, rax
call fcn.140005bd0
mov eax, ebx
add rsp, 0x38
pop rbx
pop rsi
xchg r10, r10
xchg rcx, rcx
ret
Function at 0x14000dfd0
Capabilities:
Enumerate pe sections

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
sub rsp, 8
mov qword [rsp], rbx
push r13
pop r13
push rdx
pop rdx
cmovb rax, rax
sub rsp, 0x28
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov r13, rdx
push rdi
pop rdi
push r8
pop r8
mov rbp, rcx
mov r12, r8
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
cmovl rax, rax
cmova r15, r15
cmova r10, r10
cmovg rdi, rdi
cmovg r8, r8
test dx, dx
je 0x14000e088
lea eax, [rdx - 1]
lea rsi, str..text
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14000e049
add rbx, 0x28
cmp rdi, rbx
je 0x14000e088
push rbx
pop rdx
mov rcx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
nop
cmovb rdx, rdx
cmovb r10, r10
jne 0x14000e040
mov eax, dword [rbx + 0xc]
add rbp, rax
mov eax, dword [rbx + 0x10]
mov qword [r13], rbp
mov dword [r12], eax
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
mov rdi, qword [rsp]
add rsp, 8
pop rbp
pop r12
mov r13, qword [rsp]
add rsp, 8
ret

Function at 0x1400102a0
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x1337c0de
cmp byte [rcx], 0
je 0x1400102cd
xor r8d, r8d
xor eax, eax
nop
mov r9d, edx
movzx eax, word [rcx + rax]
add r8d, 1
ror r9d, 8
add eax, r9d
xor edx, eax
mov eax, r8d
cmp byte [rcx + rax], 0
jne 0x1400102b0
mov eax, edx
ret
Function at 0x140013c30
Capabilities:
Acquire debug privileges

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r8d, 1
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call fcn.1400134d0
cmovb rdx, rdx
cmove r15, r15
nop
mov ebx, eax
test eax, eax
je 0x140013c70
mov eax, ebx
add rsp, 0x28
mov rbx, qword [rsp]
add rsp, 8
pop rsi
ret
mov rsi, qword [fcn.14001d460]
mov ecx, 1
call rsi
lea rdx, str.Could_not_enable_SeDebugPrivilege._Are_you_elevated_
mov rcx, rax
call fcn.140013470
mov ecx, 1
jmp 0x140013caf
call rsi
lea rdx, [0x140023ffb]
mov rcx, rax
cmovg r11, r11
cmovb r15, r15
nop
call fcn.140013470
mov eax, ebx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x140014230
Capabilities:
Check os version

Disassembly:
mov edx, dword [0x7ffe0004]
mov rax, qword gs:[0x60]
cmp dword [rax + 0x118], 5
jmp 0x14001426c
jbe 0x140014280
imul rdx, qword [0x7ffe0320]
shr rdx, 0x18
mov eax, edx
ret
mov eax, dword [0x7ffe0000]
imul rax, rdx
jmp 0x1400142a1
shr rax, 0x18
jmp 0x1400142c7
ret

Function at 0x1400176d0
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 fcn.14001d460
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14001d460
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140017740
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14002a334]
mov rbx, rcx
test esi, esi
jle 0x140017870
mov rax, qword [0x14002a338]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001778b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140017815
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140017770
mov rcx, rbx
call fcn.140018190
mov rdi, rax
test rax, rax
je 0x140017892
mov rax, qword [0x14002a338]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400182d0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14002a338]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140017877
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001780e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140017820
add dword [0x14002a334], 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 [0x14002a338]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001780e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400176d0
nop dword [rax]
xor esi, esi
jmp 0x140017798
mov rax, qword [0x14002a338]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400176d0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400176d0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140017e00
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14002a3a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002a380]
test rbx, rbx
je 0x140017e5c
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 0x140017e53
test rsi, rsi
je 0x140017e53
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140017e38
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 0x140018190
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140024d30]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400181b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400181b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400181b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14001820d
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 0x140018204
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400181b0
add rax, 0x28
cmp rax, r9
jne 0x1400181f0
xor eax, eax
ret

Function at 0x140018210
Capabilities:
Parse pe header

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

Function at 0x1400182d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140024d30]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400182ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400182f8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x2fc4d63f0
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.2fc4d74d0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d6df2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f9108]
test eax, eax
je 0x2fc4d6e8a
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f9110]
mov qword [rbp - 8], rax
jmp 0x2fc4d6e6e
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 0x2fc4d6e62
cmp qword [rbp - 0x10], 0
je 0x2fc4d6e62
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 0x2fc4d6e28
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d6e8b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d6f90
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 0x2fc4d6fb8
mov eax, 0
jmp 0x2fc4d7006
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 0x2fc4d6fe1
mov eax, 0
jmp 0x2fc4d7006
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 0x2fc4d7001
mov eax, 0
jmp 0x2fc4d7006
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d700c
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 0x2fc4d708a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d7081
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 0x2fc4d7081
mov rax, qword [rbp - 8]
jmp 0x2fc4d709f
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 0x2fc4d7054
mov eax, 0
add rsp, 0x20
pop rbp
ret