joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400128f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov ecx, dword [0x14003a070]
test ecx, ecx
je 0x1400129e3
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140012924
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140012924
add rdi, 0x10
jmp 0x1400129d9
mov ecx, dword [0x14003a070]
test ecx, ecx
je 0x1400129f6
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400129d7
mov rsi, rax
test rax, rax
jne 0x1400129a7
mov qword [rsp + 0x30], 0
lea rax, [0x14003a058]
mov qword [rsp + 0x28], rax
movzx eax, byte [0x140048030]
mov ecx, 0x20
mov edx, 8
call fcn.140002c10
test rax, rax
je 0x140012a19
mov rsi, rax
movups xmm0, xmmword [rsp + 0x28]
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov ecx, dword [0x14003a070]
test ecx, ecx
je 0x140012a09
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
cmp qword [rsi + 8], 0
mov rcx, qword [rsi + 0x18]
mov qword [rsi + 8], 1
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
je 0x1400129d9
test rcx, rcx
je 0x1400129d9
lock dec qword [rcx]
jne 0x1400129d9
call fcn.140012a60
jmp 0x1400129d9
xor edi, edi
mov rax, rdi
add rsp, 0x48
pop rdi
pop rsi
ret
lea rcx, [0x14003a058]
call fcn.140012ca0
mov ecx, eax
jmp 0x140012906
lea rcx, [0x14003a058]
call fcn.140012ca0
mov ecx, eax
jmp 0x140012934
lea rcx, [0x14003a058]
call fcn.140012ca0
mov ecx, eax
jmp 0x14001299f
mov ecx, 8
mov edx, 0x20
call fcn.140003030
ud2
Function at 0x140012ca0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140012d25
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x140012d66
cmp dword [rsp + 0x2c], 0
je 0x140012d4a
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140012d80
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1400480f0]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1400480f0], rsi
jne 0x140012d00
mov byte [0x1400480e8], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x140012d5c
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x140012dcc
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x140012d4f
mov edi, dword [rsp + 0x28]
jmp 0x140012d5c
mov edi, dword [rsi + 0x18]
jmp 0x140012d5a
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140012e30
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_srccollections_btree_navigate.rsinvalid_args
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.140003b60
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_srccollections_btree_navigate.rsinvalid_args
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140012e80
ud2
Function at 0x140013390
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14003a090]
test ecx, ecx
je 0x14001342f
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400133b9
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x14001341e
mov ecx, dword [0x14003a090]
test ecx, ecx
je 0x140013442
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140013424
mov rsi, rax
test rax, rax
jne 0x140013418
movzx eax, byte [0x140048030]
mov ecx, 0x10
mov edx, 8
call fcn.140002c10
test rax, rax
je 0x140013465
mov rsi, rax
lea rax, [0x14003a078]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x14003a090]
test ecx, ecx
je 0x140013455
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x140013426
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14003a078]
call fcn.140012ca0
mov ecx, eax
jmp 0x1400133a5
lea rcx, [0x14003a078]
call fcn.140012ca0
mov ecx, eax
jmp 0x1400133c5
lea rcx, [0x14003a078]
call fcn.140012ca0
mov ecx, eax
jmp 0x140013410
mov ecx, 8
mov edx, 0x10
call fcn.140003030
ud2
Function at 0x1400142f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14003a050]
test ecx, ecx
je 0x1400143ad
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140014320
cmp qword [rax + 8], 0
je 0x140014320
add rax, 0x10
jmp 0x1400143a7
mov ecx, dword [0x14003a050]
test ecx, ecx
je 0x1400143c0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400143a5
mov rsi, rax
test rax, rax
jne 0x14001438b
movzx eax, byte [0x140048030]
mov ecx, 0x20
mov edx, 8
call fcn.140002c10
test rax, rax
je 0x1400143e3
mov rsi, rax
lea rax, [0x14003a038]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14003a050]
test ecx, ecx
je 0x1400143d3
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x1400143a7
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14003a038]
call fcn.140012ca0
mov ecx, eax
jmp 0x140014305
lea rcx, [0x14003a038]
call fcn.140012ca0
mov ecx, eax
jmp 0x140014330
lea rcx, [0x14003a038]
call fcn.140012ca0
mov ecx, eax
jmp 0x140014383
mov ecx, 8
mov edx, 0x20
call fcn.140003030
ud2

Function at 0x140016fc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
movzx r11d, byte [rdx + 0x38]
cmp r11b, 1
ja 0x140017028
movzx r10d, byte [rdx + 0x10]
movzx r8d, byte [rdx + 0x3a]
xor eax, eax
movzx r9d, r10b
test r8b, r8b
jne 0x140017176
cmp r10b, 5
jb 0x140017176
mov r10, qword [rdx]
mov rax, qword [rdx + 8]
xor esi, esi
test r11b, r11b
jne 0x140017018
cmp r9b, 6
je 0x140017018
mov esi, 2
cmp rax, 2
jb 0x14001721d
cmp rsi, rax
jne 0x140017139
xor eax, eax
jmp 0x140017176
xor eax, eax
xor r8d, r8d
xor r10d, r10d
add rax, r10
lea rdi, [r10 + rsi]
inc rdi
cmp rdi, rax
invalid
sete al
movzx r10d, byte [r10 + rsi]
invalid
test al, 1
jne 0x14001716b
cmp r10b, 0x2e
jne 0x14001716b
lea r8, [0x140040c78]
mov ecx, 2
jmp 0x140017213
Function at 0x1400389c0
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.140039760
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.140039760
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 0x140038a30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400481f4]
mov rbx, rcx
test esi, esi
jle 0x140038b60
mov rax, qword [0x1400481f8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140038a7b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140038b05
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140038a60
mov rcx, rbx
call fcn.140039480
mov rdi, rax
test rax, rax
je 0x140038b82
mov rax, qword [0x1400481f8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400395c0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400481f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140038b67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140038afe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140038b10
add dword [0x1400481f4], 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 [0x1400481f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140038afe
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400389c0
nop dword [rax]
xor esi, esi
jmp 0x140038a88
mov rax, qword [0x1400481f8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400389c0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400389c0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400390f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140048260]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140048240]
test rbx, rbx
je 0x14003914c
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 0x140039143
test rsi, rsi
je 0x140039143
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140039128
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 0x140039480
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140039500
Capabilities:
Parse pe header

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

Function at 0x1400395c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400425f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400395df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400395e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14000a508
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a552
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000a552
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000a552
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a552
cmp dword [rcx + 0x84], 0xe
jbe 0x14000a552
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000a554
xor al, al
add rsp, 0x28
ret
Function at 0x14002924c
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.14001c844
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c844
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002939c
cmp rax, 0xffffffffffffffff
je 0x14002939c
xor edi, edi
test rbp, rbp
jle 0x140029347
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f158
mov rbx, rax
test rax, rax
jne 0x1400292d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002933d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a178
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.14001d520
cmp eax, 0xffffffff
je 0x14002931d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400292e4
mov edx, r15d
mov ecx, r14d
call fcn.14001a178
jmp 0x14002933d
cmp byte [rsi + 0x38], dil
je 0x140029334
cmp dword [rsi + 0x34], 5
jne 0x140029334
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002933d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001af0c
jmp 0x1400293b0
jns 0x1400293b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c844
cmp rax, 0xffffffffffffffff
jne 0x140029368
cmp byte [rsi + 0x30], dil
je 0x1400293b0
mov edi, dword [rsi + 0x2c]
jmp 0x1400293b0
mov ecx, r14d
call fcn.140018630
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400293b0
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 0x1400293b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400293a9
mov eax, dword [rsi + 0x2c]
jmp 0x1400293ae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c844
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 0x140001634
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000167e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000167e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000167e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000167e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000167e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001680
xor al, al
add rsp, 0x28
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
add esp, 0xfffff254
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040dc
push r9
push r8
push rdx
push rcx
xor rdx, rdx
push rsi
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
xor r9, r9
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x14000403d
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x140004033
push rdx
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
push r9
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040d1
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040d1
add rax, rdx
mov r8d, dword [rax + 0x20]
mov ecx, dword [rax + 0x18]
push rax
add r8, rdx
jrcxz 0x1400040d0
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor r9, r9
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004087
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004078
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
pop r8
pop rsi
add rax, rdx
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004027
Function at 0x2fc4c5b40
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 0x2fc4c6542
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4e9108]
test eax, eax
je 0x2fc4c65da
lea rax, [0x2fc4e90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4e9110]
mov qword [rbp - 8], rax
jmp 0x2fc4c65be
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 0x2fc4c65b2
cmp qword [rbp - 0x10], 0
je 0x2fc4c65b2
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 0x2fc4c6578
lea rax, [0x2fc4e90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c65db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c66e0
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 0x2fc4c6708
mov eax, 0
jmp 0x2fc4c6756
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 0x2fc4c6731
mov eax, 0
jmp 0x2fc4c6756
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 0x2fc4c6751
mov eax, 0
jmp 0x2fc4c6756
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c675c
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 0x2fc4c67da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c67d1
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 0x2fc4c67d1
mov rax, qword [rbp - 8]
jmp 0x2fc4c67ef
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 0x2fc4c67a4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x7ff7ed6d9190
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov r12, rdx
lea rax, [r8 + 1]
mov rdi, rcx
mov rbx, r8
movabs rdx, 0x5851f42d4c957f2d
lea rsi, [rdi + 0x20]
movabs rcx, 0x8126b91cbf22495c
imul rax, rdx
lea rbp, [rdi + 0xc3e0]
movabs rdx, 0x810a978a59f5a1fc
lea r13, [rsp + 0x20]
xor rdx, rax
movq xmm0, rax
xor rcx, rax
movq xmm1, rdx
movq xmm2, rcx
movabs rdx, 0xa77099df38c2d846
movabs rcx, 0x9237efb9ceaaec0c
xor rdx, rax
punpcklqdq xmm0, xmm1
xor rcx, rax
movups xmmword [rsp + 0x20], xmm0
movq xmm0, rdx
movq xmm3, rcx
movabs rdx, 0x494d2597179f8a62
xor rdx, rax
punpcklqdq xmm0, xmm2
movabs rcx, 0x84853bf7b62ce54e
movups xmmword [rsp + 0x30], xmm0
movq xmm0, rdx
movabs rdx, 0x2f2a56746ce62d78
punpcklqdq xmm0, xmm3
xor rdx, rax
xor rax, rcx
movups xmmword [rsp + 0x40], xmm0
movq xmm4, rax
movq xmm0, rdx
punpcklqdq xmm0, xmm4
movups xmmword [rsp + 0x50], xmm0
nop
and ebx, 0x3fffff
mov rdx, rsi
mov rcx, r13
add rsi, 0x1878
shl rbx, 6
add rbx, qword [rdi]
prefetchnta byte [rbx]
call fcn.7ff7ed6db2d0
mov rax, qword [rbx]
xor qword [rsp + 0x20], rax
mov rax, qword [rbx + 8]
xor qword [rsp + 0x28], rax
mov rax, qword [rbx + 0x10]
xor qword [rsp + 0x30], rax
mov rax, qword [rbx + 0x18]
xor qword [rsp + 0x38], rax
mov rax, qword [rbx + 0x20]
xor qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x28]
xor qword [rsp + 0x48], rax
mov rax, qword [rbx + 0x30]
xor qword [rsp + 0x50], rax
mov rax, qword [rbx + 0x38]
xor qword [rsp + 0x58], rax
movsxd rax, dword [rsi - 0x64]
mov rbx, qword [rsp + rax*8 + 0x20]
cmp rbp, rsi
jne 0x7ff7ed6d9270
movdqu xmm5, xmmword [r13]
movdqu xmm1, xmmword [r13 + 0x10]
movdqu xmm2, xmmword [r13 + 0x20]
mov rax, qword [r13 + 0x30]
mov rdx, qword [r13 + 0x38]
movups xmmword [r12], xmm5
mov qword [r12 + 0x30], rax
mov qword [r12 + 0x38], rdx
movups xmmword [r12 + 0x10], xmm1
movups xmmword [r12 + 0x20], xmm2
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x7ff7ed7b4460
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov r9, rcx
test rcx, rcx
je 0x7ff7ed7b44d0
movzx edx, byte [rcx]
xor eax, eax
test dl, dl
je 0x7ff7ed7b44c4
xor r8d, r8d
mov r11d, 0x100
mov ebx, 0x20
movsx eax, dl
mov r10d, r8d
add r9, 1
or eax, r11d
add r11d, 0x100
mov edx, eax
shr edx, 2
xor edx, eax
imul eax, eax
and edx, 0xf
mov ecx, edx
shl r10d, cl
mov ecx, ebx
sub ecx, edx
movzx edx, byte [r9]
shr r8, cl
or r10d, r8d
xor eax, r10d
mov r8d, eax
test dl, dl
jne 0x7ff7ed7b4480
shr eax, 0x10
xor eax, r8d
pop rbx
ret
xor eax, eax
pop rbx
ret

Function at 0x7ff7ed7b4a60
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, rcx
test rcx, rcx
je 0x7ff7ed7b4ad8
movsx ecx, byte [rcx]
xor eax, eax
test cl, cl
je 0x7ff7ed7b4ac9
mov ebp, 0x100
xor ebx, ebx
mov esi, 0x20
nop dword [rax]
call fcn.7ff7ed76ee60
mov r8d, ebx
add rdi, 1
or eax, ebp
add ebp, 0x100
mov edx, eax
shr edx, 2
xor edx, eax
imul eax, eax
and edx, 0xf
mov ecx, edx
shl r8d, cl
mov ecx, esi
sub ecx, edx
shr rbx, cl
movsx ecx, byte [rdi]
or r8d, ebx
xor eax, r8d
mov ebx, eax
test cl, cl
jne 0x7ff7ed7b4a88
shr eax, 0x10
xor eax, ebx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x7ff7ed85b8c0
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x88]
mov r13, rcx
mov r12, rdx
mov rcx, r8
mov edx, 4
mov rbx, r8
mov rsi, r9
call fcn.7ff7ed7624a0
test eax, eax
jne 0x7ff7ed85b90a
mov edx, 4
mov rcx, r12
call fcn.7ff7ed7624a0
test eax, eax
je 0x7ff7ed85b940
mov r9, rsi
mov r8, rbx
mov rdx, r12
mov rcx, r13
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x80], rdi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.7ff7ed85aa50
mov edx, 4
mov rcx, rsi
call fcn.7ff7ed7624a0
test eax, eax
jne 0x7ff7ed85b90a
mov r9, rsi
mov r8, rbx
mov rdx, r12
mov rcx, r13
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x80], rdi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.7ff7ed85a200