joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14012c720
Capabilities:
Encode data using base64

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x30], r13
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x18], 0xf
mov rbx, rdx
mov qword [rsp + 0x28], r14
mov rdi, rcx
xor r14d, r14d
mov qword [rcx + 0x10], r14
mov byte [rcx], r14b
mov rax, qword [rdx + 0x10]
cmp rax, 0xf
jbe 0x14012c76f
movzx r8d, byte [rsp + 0x60]
mov rdx, rax
call fcn.1401076a0
mov qword [rdi + 0x10], r14
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
mov r13d, 0xfffffffa
mov qword [rsp + 0x20], r15
jb 0x14012c78c
mov r15, qword [rbx]
mov rcx, r15
mov rbx, r15
jmp 0x14012c792
mov r15, rbx
mov rcx, rbx
add rax, rcx
mov qword [rsp + 0x68], rax
cmp rbx, rax
je 0x14012c8dd
movzx ebx, byte [rsp + 0x60]
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], r12
nop word [rax + rax]
movzx eax, byte [r15]
shl r14d, 8
add r14d, eax
add r13d, 8
mov qword [rsp + 0x60], r14
js 0x14012c85d
lea ecx, [r13 + 6]
movsxd r12, r14d
mov eax, 0xaaaaaaab
movsxd rsi, r13d
mul ecx
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
shr edx, 2
imul eax, edx, 0xfffffffa
mov ebp, edx
add r13d, eax
nop dword [rax]
mov rdx, qword [rdi + 0x18]
mov rcx, rsi
mov rax, r12
sar rax, cl
mov rcx, qword [rdi + 0x10]
and eax, 0x3f
movzx r9d, byte [rax + r14]
cmp rcx, rdx
jae 0x14012c83d
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x14012c832
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14012c84e
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.140107530
sub rsi, 6
sub rbp, 1
jne 0x14012c800
mov r14, qword [rsp + 0x60]
inc r15
cmp r15, qword [rsp + 0x68]
jne 0x14012c7c0
mov r8, qword [rdi + 0x10]
mov r12, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x70]
cmp r13d, 0xfffffffa
jle 0x14012c8dd
shl r14d, 8
lea ecx, [r13 + 8]
movsxd rdx, r14d
lea rax, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sar rdx, cl
mov rcx, qword [rdi + 0x18]
and edx, 0x3f
movzx r9d, byte [rdx + rax]
cmp r8, rcx
jae 0x14012c8ca
lea rax, [r8 + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rcx, 0x10
jb 0x14012c8be
mov rax, qword [rdi]
mov byte [r8 + rax], r9b
mov byte [r8 + rax + 1], 0
jmp 0x14012c8dd
movzx r8d, byte [rsp + 0x60]
mov edx, 1
mov rcx, rdi
call fcn.140107530
mov rcx, qword [rdi + 0x10]
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
test cl, 3
je 0x14012c942
movzx ebx, byte [rsp + 0x60]
nop word [rax + rax]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x14012c925
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x14012c91d
mov rax, qword [rdi]
mov word [rcx + rax], 0x3d
jmp 0x14012c939
mov r9b, 0x3d
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.140107530
mov rcx, qword [rdi + 0x10]
test cl, 3
jne 0x14012c900
mov rax, rdi
add rsp, 0x48
pop rdi
pop rbx
ret
Function at 0x14013f500
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x20
xor r10d, r10d
mov rbx, r8
mov r11, r8
mov rdi, rdx
mov eax, ecx
and rbx, 0xfffffffffffffff0
je 0x14013f545
lea rcx, [rsp + 0x30]
call fcn.14013f580
pxor xmm0, xmmword [r10 + rdi]
movdqu xmmword [r10 + rdi], xmm0
add r10, 0x10
cmp r10, rbx
jne 0x14013f522
mov eax, dword [rsp + 0x30]
cmp r10, r11
je 0x14013f573
lea rdx, [r10 + rdi]
sub r11, r10
mov ecx, eax
lea rdx, [rdx + 1]
shl ecx, 0xd
xor ecx, eax
mov eax, ecx
shr eax, 0x11
xor ecx, eax
mov eax, ecx
shl eax, 5
xor eax, ecx
xor byte [rdx - 1], al
sub r11, 1
jne 0x14013f551
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140146390
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x238]
sub rsp, 0x310
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x1401cc1e8]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov rdi, rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x70], rcx
mov dword [rsp + 0x38], 1
mov rax, qword gs:[0x30]
mov r14, qword [rax + 0x60]
mov qword [rsp + 0x68], r14
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor r15d, r15d
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], 0xf
mov byte [rcx], r15b
mov dword [rsp + 0x38], 1
movdqa xmm0, xmmword [str.IPCAIPCAIPCAIPCAMCFGMCFGMCFGMCFGUEFIUEFIUEFIUEFI]
movdqu xmmword [rsp + 0x58], xmm0
mov eax, dword [rsp + 0x58]
mov dword [rbp + 8], eax
mov qword [rbp + 0xc], r15
lea r9, [rsp + 0x34]
lea r8d, [r15 + 0x14]
lea rdx, [rbp + 8]
lea ecx, [r15 + 0x4c]
call fcn.1402250f4
int3
Function at 0x14014e040
Capabilities:
Encode data using xor

Disassembly:
mov r8, rcx
xor eax, eax
movzx ecx, byte [rcx]
test cl, cl
je 0x14014e07d
lea r9, [0x140179460]
nop dword [rax]
nop word [rax + rax]
movzx edx, cl
lea r8, [r8 + 1]
xor rdx, rax
shr rax, 8
movzx ecx, dl
xor rax, qword [r9 + rcx*8]
movzx ecx, byte [r8]
test cl, cl
jne 0x14014e060
ret

Function at 0x1401f26e0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x1401f270d
xor al, al
jmp 0x1401f286f
mov rax, qword [0x1402136c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1402136c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1402136d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1402136d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1402136e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1402136e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1402136f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1402136f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x140213700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x1401f2861
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x1401f27b9
mov r11d, 2
jmp 0x1401f27dd
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x1401f27d3
mov r11d, 1
jmp 0x1401f27dd
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x1401f2885
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x1401f2822
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x1401f283a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x1401f284a
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x1401f2858
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x1401f27a0
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x1401f286a
Function at 0x140011203
Capabilities:
Terminate process

Disassembly:
jmp 0x140012660
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011294
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014db0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014dd0
xor al, al
jmp 0x140014e51
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014de3
xor al, al
jmp 0x140014e51
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014e0d
xor al, al
jmp 0x140014e51
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014e21
xor al, al
jmp 0x140014e51
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014e33
xor al, al
jmp 0x140014e51
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014e4f
xor al, al
jmp 0x140014e51
mov al, 1
add rsp, 0x38
ret
Function at 0x14001134d
Capabilities:
Terminate process

Disassembly:
jmp 0x140012270
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x140023014]
call fcn.140011398
mov rcx, qword [rbp + 0xe0]
call fcn.1400112e4
test eax, eax
je 0x1400122c6
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
lea rdx, [0x14001ae88]
mov rcx, rax
call fcn.140011357
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
jmp 0x1400122de
mov rax, qword [rbp + 0xe0]
movsxd rax, dword [rax + 0x190]
mov rcx, qword [rbp + 0xe0]
mov eax, dword [rcx + rax*4]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x14001139d
Capabilities:
Terminate process

Disassembly:
jmp 0x140012310
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x20]
lea rcx, [0x140023014]
call fcn.140011398
mov rcx, qword [rbp + 0xf0]
call fcn.1400112e4
test eax, eax
je 0x140012366
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
lea rdx, [0x14001ae88]
mov rcx, rax
call fcn.140011357
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
jmp 0x1400123a6
mov rax, qword [rbp + 0xf0]
movsxd rax, dword [rax + 0x190]
mov rcx, qword [rbp + 0xf0]
mov eax, dword [rcx + rax*4]
mov dword [rbp + 0xc0], eax
mov rax, qword [rbp + 0xf0]
mov eax, dword [rax + 0x190]
dec eax
mov rcx, qword [rbp + 0xf0]
mov dword [rcx + 0x190], eax
mov eax, dword [rbp + 0xc0]
lea rsp, [rbp + 0xd8]
pop rdi
pop rbp
ret
Function at 0x140006820
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rbx, r8
mov r15d, edx
mov rsi, rcx
mov rax, qword [0x14003f010]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rdi, [rcx + 0x28]
mov rcx, rdi
call fcn.140006700
xor ebp, ebp
cmp rbx, 0x7fffffff
ja 0x140006868
test al, al
je 0x140006868
cmp qword [rsi + 0x58], 0
je 0x140006884
xor ebp, ebp
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400365a0
mov eax, ebp
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
cmp byte [rsi], 0
je 0x14000690d
mov rcx, rdi
call fcn.140006710
mov r14, rax
mov rbp, qword [0x14003f2b0]
test rbp, rbp
jne 0x1400068cb
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtQuerySection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
mov qword [0x14003f2b0], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
mov rcx, r14
xor edx, edx
mov r9d, 0x18
call rbp
test eax, eax
jne 0x140006866
test dword [rsp + 0x38], 0x1000000
jne 0x140006866
mov r14d, r15d
sar r14d, 0x1f
xor eax, eax
cmp byte [rsi + 0x60], 0
sete al
lea ebp, [rax + rax]
add ebp, 4
mov rcx, rdi
call fcn.140006710
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov edx, ebp
mov r8d, r14d
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x58], rax
test rax, rax
jne 0x140006984
xor eax, eax
cmp byte [rsi + 0x60], 0
sete al
lea ebp, [rax + rax]
add ebp, 4
mov rcx, rdi
call fcn.140006710
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov edx, ebp
mov r8d, r14d
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x58], rax
test rax, rax
je 0x140006866
mov rbp, rax
lea rdx, [rsp + 0x30]
mov r8d, 0x30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400069a4
xor eax, eax
jmp 0x1400069b1
mov rax, qword [rsp + 0x48]
sub rax, rbp
add rax, qword [rsp + 0x38]
mov qword [rsi + 0x50], rax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400066a0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi + 0x70], xmm0
call fcn.1400069e0
mov bpl, 1
jmp 0x140006868

Function at 0x140006a40
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x140006ab4
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, rsi
call fcn.140006ad0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x140006aad
mov qword [rsi], rdi
call fcn.140006670
mov rbx, rax
mov r15, qword [rsp + 0x58]
call sym.plugin_container.exe_GetHandleVerifier
mov rbp, qword [rax]
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r15
call qword [rbp + 8]
mov ecx, r14d
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
adc bl, byte [rdx - 0x7b9768e6]
cdq
add byte [rcx + rbx + 0x4a], dh
test eax, 0xfffa048d
invalid
Function at 0x14000ad50
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14000ad5d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14000ad6d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14000ad55
lea eax, [rcx + 1]
jmp 0x14000ad7b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14000ad8e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14000ad74
sub eax, 3
jb 0x14000adac
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14000ade4
sar eax, 1
movsxd rbp, eax
jmp 0x14000adaf
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14000add0
inc ecx
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14000adcb
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14000adba
add ecx, 2
cmp rbp, 0xfffffffffffffb00
adc ecx, 1
call fcn.14000ad12
jmp 0x14000ad5d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x8000]
mov eax, dword [rdi]
or eax, eax
je 0x14000ae40
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xb1dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14000adf0
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14000ae3a
mov qword [rbx], rax
add rbx, 8
jmp 0x14000ae10
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14000ae7a
cmp al, 0xef
ja 0x14000ae6c
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14000ae4c
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14000ae5b
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x21f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14000aece
sub rsp, 0xffffffffffffff80
jmp 0x14000230c
Function at 0x2fc4ca7b0
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 0x2fc4cb1b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ef108]
test eax, eax
je 0x2fc4cb24a
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ef110]
mov qword [rbp - 8], rax
jmp 0x2fc4cb22e
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 0x2fc4cb222
cmp qword [rbp - 0x10], 0
je 0x2fc4cb222
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 0x2fc4cb1e8
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cb24b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cb350
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 0x2fc4cb378
mov eax, 0
jmp 0x2fc4cb3c6
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 0x2fc4cb3a1
mov eax, 0
jmp 0x2fc4cb3c6
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 0x2fc4cb3c1
mov eax, 0
jmp 0x2fc4cb3c6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cb3cc
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 0x2fc4cb44a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cb441
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 0x2fc4cb441
mov rax, qword [rbp - 8]
jmp 0x2fc4cb45f
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 0x2fc4cb414
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400034d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140003501
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x14000357b
mov rdi, r14
mov rcx, rbx
call fcn.140005ef0
test rax, rax
jle 0x140003553
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.1400660e0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000356b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140003573
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140003515
sub r14, rdi
jmp 0x14000365f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140003592
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003594
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400035c6
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400660e0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000365c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140003601
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14000363d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14002f1c0
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14000365c
cmp rbp, rax
ja 0x140003610
test rbp, rbp
je 0x14000365c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14002f1c0
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140015830
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140015310
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14001586f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1400682f8]
jmp 0x140015879
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x14003e490
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret

Function at 0x140041010
Capabilities:
Get geographical location

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.1400405d0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140041077
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x140068300]
jmp 0x140041099
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400413a0
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret