joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400200e0
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
xor edi, edi
mov rax, r15
lea rcx, [0x140040850]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x140020136
cmp word [rdx], r9w
jne 0x140020136
or byte [rax + rbp*8 + 0x38], 4
jmp 0x14002013b
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x1400202ba
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x140020285
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x140020183
cmp rcx, r8
jae 0x1400201a3
cmp word [rcx], r9w
jne 0x140020183
add rax, 4
mov edx, r9d
jmp 0x140020186
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x140020158
jmp 0x1400202ba
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002027e
cmp dword [rsp + 0x80], edi
je 0x14002027e
lea r9, [0x140040850]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x140020258
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x14002020b
mov word [rbx], bp
jmp 0x1400202b7
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x140020226
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x1400202b7
cmp word [rsp + 0x70], bp
jne 0x140020264
cmp rbx, rsi
je 0x140020203
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140020e00
cmp word [rsp + 0x70], bp
je 0x1400202ba
mov word [rbx], 0xd
jmp 0x1400202b7
mov rcx, r15
lea r9, [0x140040850]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400202b4
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400202ba
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
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
Function at 0x1400246b0
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 0x1400246e0
xor eax, eax
jmp 0x1400247a3
mov rbp, rbx
cmp word [rax], si
je 0x140024705
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400246ec
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400246e8
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.14001f920
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x140024746
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400246d9
call fcn.14001f830
mov rdi, rax
test rax, rax
jne 0x14002475c
xor ecx, ecx
call fcn.14001e2d0
jmp 0x14002473b
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.14001f920
test eax, eax
jne 0x14002478d
mov rcx, rdi
call fcn.14001e2d0
jmp 0x140024797
xor ecx, ecx
call fcn.14001e2d0
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 0x1400247c0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140024847
mov rsi, rbx
cmp word [rax], bp
je 0x140024806
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400247f0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400247ec
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001f830
mov rdi, rax
test rax, rax
je 0x140024834
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002aaa0
mov rbp, rdi
xor ecx, ecx
call fcn.14001e2d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400279ac
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x140027a1f
cmp word [rcx], si
je 0x140027a1f
lea rdx, [0x140032898]
call fcn.14002a0c8
test eax, eax
je 0x140027a1f
lea rdx, [0x1400328b0]
mov rcx, rbx
call fcn.14002a0c8
test eax, eax
jne 0x140027a15
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140027a3c
mov eax, dword [rsp + 0x30]
jmp 0x140027a4e
mov rcx, rbx
call fcn.14001b8b0
jmp 0x140027a4e
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x140027a40
xor eax, eax
jmp 0x140027a4e
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x140027a4e
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140027a60
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.14001c0d4
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140027b03
cmp edi, dword [rsp + 0x30]
je 0x140027afc
test ebp, ebp
je 0x140027afc
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x140027ad8
sub dx, 0x61
cmp dx, 0x19
ja 0x140027ae4
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x140027ac5
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x140027ae8
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x140027b05
mov eax, 1
jmp 0x140027b05
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14002a2c8
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.140020e00
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140020e00
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002a415
cmp rax, 0xffffffffffffffff
je 0x14002a415
xor edi, edi
test rbp, rbp
jle 0x14002a3c3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001e770
mov rbx, rax
test rax, rax
jne 0x14002a350
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002a3b9
mov edx, 0x8000
mov ecx, r14d
call fcn.14001967c
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.14001df94
cmp eax, 0xffffffff
je 0x14002a399
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002a360
mov edx, r15d
mov ecx, r14d
call fcn.14001967c
jmp 0x14002a3b9
cmp byte [rsi + 0x38], dil
je 0x14002a3b0
cmp dword [rsi + 0x34], 5
jne 0x14002a3b0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002a3b9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001e2d0
jmp 0x14002a427
jns 0x14002a427
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140020e00
cmp rax, 0xffffffffffffffff
jne 0x14002a3e1
cmp byte [rsi + 0x30], dil
je 0x14002a427
jmp 0x14002a41d
mov ecx, r14d
call fcn.1400254b4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002a427
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 0x14002a427
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002a422
mov edi, dword [rsi + 0x2c]
jmp 0x14002a427
mov edi, 0x16
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140020e00
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 0x14002a740
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002a768
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002a768
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x18000ace0
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x18001f008]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
xorps xmm0, xmm0
xor esi, esi
movups xmmword [rsp + 0x58], xmm0
mov edi, esi
mov ebx, esi
movups xmmword [rsp + 0x68], xmm0
mov qword [r11 - 0x20], rax
lea rax, [0x18000aa50]
mov qword [r11 - 0x68], rax
lea rax, [0x18000aab0]
mov qword [r11 - 0x60], rax
lea rax, [0x18000ab10]
mov qword [r11 - 0x58], rax
lea rax, [0x18000ac30]
mov qword [r11 - 0x50], rax
lea rax, [0x18000aca0]
mov qword [r11 - 0x48], rax
nop word [rax + rax]
mov r8, qword [rsp + rbx + 0x30]
xor edx, edx
mov r9, r8
mov qword [rsp + 0x28], rsi
xor ecx, ecx
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + rbx + 0x58], rax
test rax, rax
je 0x18000ae28
inc edi
add rbx, 8
cmp edi, 5
jl 0x18000ad60
mov edi, 5
lea rdx, [rsp + 0x58]
mov ecx, edi
mov r9d, 0xffffffff
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
lea rbx, [rsp + 0x58]
mov rcx, qword [rbx]
test rcx, rcx
je 0x18000adc5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 8
sub rdi, 1
jne 0x18000adb7
lea ecx, [rdi + 0x38]
call fcn.18001a06c
lea rcx, [0x18001c460]
mov qword [rax], rcx
mov rcx, qword [0x181781700]
mov qword [rax + 8], rcx
mov rcx, qword [0x1817816f8]
mov qword [rax + 0x10], rcx
mov rcx, qword [0x181781718]
mov qword [rax + 0x18], rcx
mov rcx, qword [0x181781710]
mov qword [rax + 0x20], rcx
mov rcx, qword [0x181781708]
mov qword [rax + 0x28], rcx
mov rcx, rax
mov qword [rax + 0x30], rsi
call fcn.18000aee0
xor eax, eax
jmp 0x18000ae2d
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18001a040
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x180011180
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rdi
sub rsp, 0x68
mov rdi, rcx
mov dword [rax - 0x38], 0
mov qword [rax - 0x30], rcx
mov qword [rax - 0x28], r8
mov rax, qword gs:[0x30]
mov rdx, qword [rax + 0x60]
mov eax, dword [rdx + 0x118]
shl eax, 0x10
or eax, dword [rdx + 0x11c]
cmp eax, 0x60000
jb 0x1800111f8
call sub.msvcrt.dll__errno
lea rbx, [rax - 0x10]
mov rcx, qword [rbx + 8]
dec rcx
cmp rcx, 0xfffffffffffffffd
ja 0x1800111ef
xor ebx, ebx
lea ecx, [rbx + 0x10]
call qword [sym.imp.msvcrt.dll__amsg_exit]
mov rax, qword [rbx + 0xe0]
jmp 0x180011220
call sub.msvcrt.dll__errno
lea rbx, [rax - 0x10]
mov rcx, qword [rbx + 8]
dec rcx
cmp rcx, 0xfffffffffffffffd
ja 0x180011219
xor ebx, ebx
lea ecx, [rbx + 0x10]
call qword [sym.imp.msvcrt.dll__amsg_exit]
mov rax, qword [rbx + 0xd8]
lea rdx, [rsp + 0x48]
mov ecx, dword [rdi]
call rax
mov dword [rsp + 0x40], 0
jmp 0x180011233
mov eax, dword [rsp + 0x40]
add rsp, 0x68
pop rdi
pop rbx
ret
Function at 0x180013180
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x70
mov rax, qword gs:[0x30]
mov rsi, r9
mov r14, r8
mov rbp, rdx
mov rbx, rcx
mov r10, qword [rax + 0x60]
mov eax, dword [r10 + 0x118]
shl eax, 0x10
or eax, dword [r10 + 0x11c]
cmp eax, 0x60000
jb 0x1800131f4
call sub.msvcrt.dll__errno
lea rdi, [rax - 0x10]
mov rax, qword [rax - 8]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1800131ec
xor edi, edi
lea ecx, [rdi + 0x10]
call qword [sym.imp.msvcrt.dll__amsg_exit]
mov eax, dword [rdi + 0x2c0]
jmp 0x180013201
mov ecx, 1
call fcn.1800167c0
mov eax, dword [rax + 0x28]
mov rdi, qword [rsp + 0xa0]
test eax, eax
jne 0x18001323d
mov eax, dword [rbx]
cmp eax, 0xe06d7363
je 0x18001323d
cmp eax, 0x80000029
jne 0x18001322d
cmp dword [rbx + 0x18], 0xf
jne 0x180013234
cmp qword [rbx + 0x60], 0x19930520
je 0x18001323d
cmp eax, 0x80000026
je 0x18001323d
test byte [rdi], 0x20
jne 0x1800133ca
mov r8d, dword [rbx + 4]
test r8b, 0x66
je 0x180013303
movsxd rax, dword [rdi + 8]
test eax, eax
je 0x1800133ca
mov rdx, rax
lea r9, [0x180000000]
add rdx, qword [rsi + 8]
movzx ecx, byte [rdx]
and ecx, 0xf
movsx rax, byte [rcx + r9 + 0x1b290]
movzx ecx, byte [rcx + r9 + 0x1b2a0]
sub rdx, rax
mov eax, dword [rdx - 4]
shr eax, cl
test eax, eax
je 0x1800133ca
cmp dword [rsp + 0xa8], 0
jne 0x1800133ca
test r8b, 0x20
je 0x1800132f0
mov ecx, dword [rbx]
cmp ecx, 0x80000026
jne 0x1800132d0
mov r8, qword [rsi + 0x20]
mov rdx, rsi
mov rcx, rdi
call fcn.180014480
mov r9d, eax
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
call fcn.180013b70
jmp 0x1800133ca
cmp ecx, 0x80000029
jne 0x1800132f0
mov r9d, dword [rbx + 0x38]
mov r8, rdi
mov rcx, qword [rbx + 0x28]
mov rdx, rsi
call fcn.180013b70
jmp 0x1800133ca
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
call fcn.180011380
jmp 0x1800133ca
mov r8, qword [rsi + 8]
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.1800133f0
cmp dword [rsp + 0x40], 0
jne 0x180013324
test byte [rdi], 0x40
je 0x1800133ca
cmp dword [rbx], 0xe06d7363
jne 0x180013390
cmp dword [rbx + 0x18], 3
jb 0x180013390
cmp dword [rbx + 0x20], 0x19930522
jbe 0x180013390
mov rax, qword [rbx + 0x30]
cmp dword [rax + 8], 0
je 0x180013390
call fcn.180011c80
mov rcx, qword [rbx + 0x30]
movsxd rdx, dword [rcx + 8]
add rax, rdx
je 0x180013390
movzx ecx, byte [rsp + 0xb8]
mov r9, rsi
mov dword [rsp + 0x38], ecx
mov r8, r14
mov rcx, qword [rsp + 0xb0]
mov rdx, rbp
mov qword [rsp + 0x30], rcx
mov ecx, dword [rsp + 0xa8]
mov dword [rsp + 0x28], ecx
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call rax
jmp 0x1800133cf
mov rax, qword [rsp + 0xb0]
mov r9, rsi
mov qword [rsp + 0x38], rax
mov r8, r14
mov eax, dword [rsp + 0xa8]
mov rdx, rbp
mov dword [rsp + 0x30], eax
mov rcx, rbx
movzx eax, byte [rsp + 0xb8]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rdi
call fcn.180012310
mov eax, 1
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x180014a20
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x18001f008]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x180014a5c
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.18001a1d8
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x180014b18
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x180014b7e
test ebx, ebx
jne 0x180014b7e
lea ecx, [rax + 2]
call fcn.18001a1d8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.18001a040
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret
Function at 0x2fc4e0410
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4e0e12
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc505108]
test eax, eax
je 0x2fc4e0eaa
lea rax, [0x2fc5050e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc505110]
mov qword [rbp - 8], rax
jmp 0x2fc4e0e8e
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 0x2fc4e0e82
cmp qword [rbp - 0x10], 0
je 0x2fc4e0e82
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 0x2fc4e0e48
lea rax, [0x2fc5050e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4e0eab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4e0fb0
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 0x2fc4e0fd8
mov eax, 0
jmp 0x2fc4e1026
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 0x2fc4e1001
mov eax, 0
jmp 0x2fc4e1026
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 0x2fc4e1021
mov eax, 0
jmp 0x2fc4e1026
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4e102c
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 0x2fc4e10aa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4e10a1
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 0x2fc4e10a1
mov rax, qword [rbp - 8]
jmp 0x2fc4e10bf
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 0x2fc4e1074
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140004a90
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1040
call fcn.140018c90
sub rsp, rax
mov rax, qword [0x14009d080]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov rbx, r8
mov rdi, rcx
test r8, r8
je 0x140004b47
mov rdx, rbx
call fcn.140002eb0
test rax, rax
je 0x140004b47
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov rdx, rax
mov rcx, rdi
call fcn.140003040
test eax, eax
je 0x140004b47
movsxd rax, dword [rsp + 0x6c]
lea rcx, [rsp + 0x30]
add rcx, rax
xor r8d, r8d
movzx eax, word [rcx + 0x14]
lea r10, [rcx + 0x18]
movzx r9d, word [rcx + 6]
add r10, rax
test r9d, r9d
je 0x140004b47
lea rcx, [r8 + r8*4]
cmp dword [r10 + rcx*8], 0x45474150
lea rdx, [r10 + rcx*8]
jne 0x140004b3f
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x140004b30
cmp rax, 4
je 0x140004b6a
inc r8d
cmp r8d, r9d
jb 0x140004b10
xor eax, eax
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140018260
mov rbx, qword [rsp + 0x1058]
add rsp, 0x1040
pop rdi
ret
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x140004b47
mov r8d, dword [rdx + 8]
lea rdx, [rsp + 0x30]
add rdx, rax
je 0x140004b47
test r8d, r8d
je 0x140004b47
lea rax, [rsp + 0x30]
sub rdx, rax
add rdx, rbx
je 0x140004b47
lea rax, str.xxx____x_xxxxxxx
mov rcx, rdi
lea r9, [0x1400957c0]
mov qword [rsp + 0x20], rax
call fcn.140003f10
jmp 0x140004b49