joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001b658
Capabilities:
Encode data using xor

Disassembly:
mov r8, rdx
xor r10d, r10d
sub r8, rcx
mov r9, rcx
mov eax, 0x1f7047dd
mul r10d
mov eax, r10d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x39
mov al, r10b
inc r10d
sub al, cl
add al, 0x36
xor al, byte [r8 + r9]
mov byte [r9], al
inc r9
cmp r10d, 0x37
jl 0x18001b664
ret

Function at 0x18001b7d0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov r10, rdx
xor r9d, r9d
sub r10, rcx
mov r8, rcx
mov eax, 0x8d3dcb09
mul r9d
shr edx, 5
movsx eax, dl
imul ecx, eax, 0x3a
mov al, r9b
inc r9d
sub al, cl
add al, 0x36
xor al, byte [r10 + r8]
mov byte [r8], al
inc r8
cmp r9d, 0x28
jl 0x18001b7dc
ret

Function at 0x18001b808
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov r10, rdx
xor r9d, r9d
sub r10, rcx
mov r8, rcx
mov eax, 0x8d3dcb09
mul r9d
shr edx, 5
movsx eax, dl
imul ecx, eax, 0x3a
mov al, r9b
inc r9d
sub al, cl
add al, 0x36
xor al, byte [r10 + r8]
mov byte [r8], al
inc r8
cmp r9d, 0x29
jl 0x18001b814
ret

Function at 0x18001d7a4
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x180061020]
xor rax, rsp
mov qword [rbp - 8], rax
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x18001d8cc
and qword [rbp - 0x14], 0
lea rdx, [rbp - 0x28]
xorps xmm0, xmm0
mov dword [rbp - 0x28], 0x1c
mov rcx, rax
movdqu xmmword [rbp - 0x24], xmm0
call qword [sym.imp.KERNEL32.dll_Thread32First]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movabs rbx, 0x7fffffffffffffff
xor r14d, r14d
mov r15d, eax
cmp dword [rbp - 0x1c], r15d
jne 0x18001d89c
mov r8d, dword [rbp - 0x20]
xor edx, edx
and qword [rbp - 0x50], 0
mov ecx, 0x1fffff
and qword [rbp - 0x30], 0
and qword [rbp - 0x38], 0
and qword [rbp - 0x40], 0
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x18001d89c
lea rax, [rbp - 0x40]
mov rcx, rsi
lea r9, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetThreadTimes]
mov ecx, dword [rbp - 0x4c]
mov dword [rbp - 0x44], ecx
mov ecx, dword [rbp - 0x50]
mov dword [rbp - 0x48], ecx
cmp qword [rbp - 0x48], rbx
jge 0x18001d893
mov rbx, qword [rbp - 0x48]
mov r14d, dword [rbp - 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp - 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18001d823
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, r14d
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
jmp 0x18001d8ce
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18001dc00
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x18001d9b4
Capabilities:
Encode data using xor

Disassembly:
mov r8, rdx
xor r10d, r10d
sub r8, rcx
mov r9, rcx
mov eax, 0x2f684bdb
mul r10d
mov eax, r10d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x36
mov al, r10b
inc r10d
sub al, cl
add al, 0x36
xor al, byte [r8 + r9]
mov byte [r9], al
inc r9
cmp r10d, 0xa
jl 0x18001d9c0
ret

Function at 0x18001da14
Capabilities:
Encode data using xor

Disassembly:
mov r8, rdx
xor r10d, r10d
sub r8, rcx
mov r9, rcx
mov eax, 0x2f684bdb
mul r10d
mov eax, r10d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x36
mov al, r10b
inc r10d
sub al, cl
add al, 0x36
xor al, byte [r8 + r9]
mov byte [r9], al
inc r9
cmp r10d, 0x19
jl 0x18001da20
ret

Function at 0x1800357c8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800357de
mov al, 1
jmp 0x18003583e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800357ef
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18003583c
mov ecx, dword [rcx + 0x18]
nop
call fcn.18003c47c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18003583c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18003583c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18003583c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18003583e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18003745c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1800437c0
sub rsp, rax
mov rax, qword [0x180061020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180033570
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800374ab
mov rax, rbp
jmp 0x1800375b3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x63b00]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180038ec0
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x63b00]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800375af
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800375af
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180038ec0
test rax, rax
js 0x1800375af
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800375af
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800375a1
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800375a1
cmp byte [rcx], 0xd
jne 0x180037587
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180037596
cmp byte [rcx + 1], 0xa
jne 0x180037596
inc rcx
jmp 0x180037596
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x61460]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180037569
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800375b3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18001dc00
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180038260
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x180063b00]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1800382b7
cmp word [rdx], r13w
jne 0x1800382b7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1800382bc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800383e1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180038402
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800382f5
mov rdx, r9
mov word [rbx], cx
jmp 0x18003831c
cmp r9, r8
jae 0x18003832c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1800382d6
jmp 0x1800383e1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800383d6
cmp dword [rsp + 0x80], esi
je 0x1800383d6
lea r8, [0x180063b00]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1800383ae
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18003837e
mov word [rbx], r13w
jmp 0x1800383de
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18003838b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800383de
cmp word [rsp + 0x70], r13w
jne 0x1800383bb
cmp rbx, r14
je 0x180038378
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180038ec8
cmp word [rsp + 0x70], r13w
je 0x1800383e1
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x180063b00]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800383db
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800383e1
Function at 0x18003a524
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18003a554
xor eax, eax
jmp 0x18003a617
mov rbp, rbx
cmp word [rax], si
je 0x18003a579
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18003a560
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18003a55c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18003a444
movsxd r14, eax
test eax, eax
jne 0x18003a5b7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18003a54d
mov rcx, r14
call fcn.180032314
mov rdi, rax
test rax, rax
jne 0x18003a5d0
xor ecx, ecx
call fcn.18003160c
jmp 0x18003a5ac
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18003a444
test eax, eax
jne 0x18003a601
mov rcx, rdi
call fcn.18003160c
jmp 0x18003a60b
xor ecx, ecx
call fcn.18003160c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x18003fe30
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.180033ac0
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x18003fed1
cmp ebx, dword [rsp + 0x30]
je 0x18003feca
test esi, esi
je 0x18003feca
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18003fea5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18003feb2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18003fe8f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18003feb6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18003fed3
mov eax, 1
jmp 0x18003fed3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180043130
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180038ec8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180038ec8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180043280
cmp rax, 0xffffffffffffffff
je 0x180043280
xor edi, edi
test rbp, rbp
jle 0x18004322b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180031594
mov rbx, rax
test rax, rax
jne 0x1800431b8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180043221
mov edx, 0x8000
mov ecx, r14d
call fcn.180042fb4
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.18003675c
cmp eax, 0xffffffff
je 0x180043201
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800431c8
mov edx, r15d
mov ecx, r14d
call fcn.180042fb4
jmp 0x180043221
cmp byte [rsi + 0x38], dil
je 0x180043218
cmp dword [rsi + 0x34], 5
jne 0x180043218
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180043221
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18003160c
jmp 0x180043294
jns 0x180043294
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180038ec8
cmp rax, 0xffffffffffffffff
jne 0x18004324c
cmp byte [rsi + 0x30], dil
je 0x180043294
mov edi, dword [rsi + 0x2c]
jmp 0x180043294
mov ecx, r14d
call fcn.18003c47c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180043294
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x180043294
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18004328d
mov eax, dword [rsi + 0x2c]
jmp 0x180043292
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180038ec8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1800438b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800438d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800438d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x2fc540f60
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.2fc542040
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc541962
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc564108]
test eax, eax
je 0x2fc5419fa
lea rax, [0x2fc5640e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc564110]
mov qword [rbp - 8], rax
jmp 0x2fc5419de
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 0x2fc5419d2
cmp qword [rbp - 0x10], 0
je 0x2fc5419d2
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 0x2fc541998
lea rax, [0x2fc5640e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc5419fb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc541b00
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 0x2fc541b28
mov eax, 0
jmp 0x2fc541b76
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 0x2fc541b51
mov eax, 0
jmp 0x2fc541b76
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 0x2fc541b71
mov eax, 0
jmp 0x2fc541b76
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc541b7c
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 0x2fc541bfa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc541bf1
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 0x2fc541bf1
mov rax, qword [rbp - 8]
jmp 0x2fc541c0f
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 0x2fc541bc4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cd850
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.2fc4ce930
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4ce252
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f0108]
test eax, eax
je 0x2fc4ce2ea
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f0110]
mov qword [rbp - 8], rax
jmp 0x2fc4ce2ce
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 0x2fc4ce2c2
cmp qword [rbp - 0x10], 0
je 0x2fc4ce2c2
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 0x2fc4ce288
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4ce2eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4ce3f0
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 0x2fc4ce418
mov eax, 0
jmp 0x2fc4ce466
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 0x2fc4ce441
mov eax, 0
jmp 0x2fc4ce466
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 0x2fc4ce461
mov eax, 0
jmp 0x2fc4ce466
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4ce46c
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 0x2fc4ce4ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4ce4e1
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 0x2fc4ce4e1
mov rax, qword [rbp - 8]
jmp 0x2fc4ce4ff
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 0x2fc4ce4b4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc5722f0
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.2fc5733d0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc572cf2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc595108]
test eax, eax
je 0x2fc572d8a
lea rax, [0x2fc5950e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc595110]
mov qword [rbp - 8], rax
jmp 0x2fc572d6e
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 0x2fc572d62
cmp qword [rbp - 0x10], 0
je 0x2fc572d62
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 0x2fc572d28
lea rax, [0x2fc5950e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc572d8b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc572e90
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 0x2fc572eb8
mov eax, 0
jmp 0x2fc572f06
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 0x2fc572ee1
mov eax, 0
jmp 0x2fc572f06
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 0x2fc572f01
mov eax, 0
jmp 0x2fc572f06
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc572f0c
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 0x2fc572f8a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc572f81
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 0x2fc572f81
mov rax, qword [rbp - 8]
jmp 0x2fc572f9f
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 0x2fc572f54
mov eax, 0
add rsp, 0x20
pop rbp
ret