joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474952
Capabilities:
Read file on windows

Disassembly:
push rbp
mov eax, 0x1120
call fcn.00487db0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10b0], rcx
mov qword [rbp + 0x10b8], rdx
lea rax, [rbp + 0xff0]
mov rcx, rax
call fcn.00474770
mov qword [rbp + 0x1098], 0
mov eax, 0x1000
sub rax, qword [rbp + 0x1098]
mov rdx, rax
lea rcx, [rbp - 0x60]
mov rax, qword [rbp + 0x1098]
add rax, rcx
mov r9, qword [rbp + 0x10b0]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fread
mov qword [rbp + 0x1090], rax
mov rax, qword [rbp + 0x1090]
add qword [rbp + 0x1098], rax
cmp qword [rbp + 0x1098], 0xfff
ja 0x4749f0
cmp qword [rbp + 0x1090], 0
jne 0x474990
cmp qword [rbp + 0x1090], 0
jne 0x474a11
mov rcx, qword [rbp + 0x10b0]
call sub.msvcrt.dll_ferror
test eax, eax
je 0x474a11
mov eax, 1
jmp 0x474a7e
cmp qword [rbp + 0x1090], 0
je 0x474a3b
lea rdx, [rbp + 0xff0]
lea rax, [rbp - 0x60]
mov r8, rdx
mov edx, 0x1000
mov rcx, rax
call fcn.00474ccf
jmp 0x474985
nop
cmp qword [rbp + 0x1098], 0
je 0x474a63
lea rcx, [rbp + 0xff0]
mov rdx, qword [rbp + 0x1098]
lea rax, [rbp - 0x60]
mov r8, rcx
mov rcx, rax
call fcn.00474ae3
mov rdx, qword [rbp + 0x10b8]
lea rax, [rbp + 0xff0]
mov rcx, rax
call fcn.0047481e
mov eax, 0
add rsp, 0x1120
pop rbp
ret
Function at 0x478c50
Capabilities:
Get common file path

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [0x00513160]
test rax, rax
jne 0x478ce8
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x478cc9
mov eax, dword [rbp - 4]
mov rcx, rax
call fcn.0047c0a6
mov qword [0x00513160], rax
mov rdx, qword [0x00513160]
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rax
test eax, eax
jne 0x478cc9
mov rax, qword [0x00513160]
mov rcx, rax
call fcn.00494cb8
mov qword [0x00513160], 0
mov rax, qword [0x00513160]
test rax, rax
jne 0x478ce8
lea rcx, [0x004fedb0]
call fcn.0047c240
mov qword [0x00513160], rax
mov rax, qword [0x00513160]
add rsp, 0x30
pop rbp
ret
Function at 0x47a508
Capabilities:
Delete file

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x18]
test eax, eax
js 0x47a546
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x18]
test eax, eax
je 0x47a546
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x80]
mov rax, qword [rax + 0x18]
mov rdx, qword [rbp + 0x10]
mov edx, dword [rdx + 0x18]
mov rcx, qword [rbp + 0x10]
call rax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x2c]
test eax, eax
js 0x47a578
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x2c]
test eax, eax
je 0x47a578
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x80]
mov rax, qword [rax + 0x18]
mov rdx, qword [rbp + 0x10]
mov edx, dword [rdx + 0x2c]
mov rcx, qword [rbp + 0x10]
call rax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x60]
test rax, rax
je 0x47a595
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x60]
mov rcx, rax
call sub.msvcrt.dll_fclose
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x68]
test rax, rax
je 0x47a5b2
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x68]
mov rcx, rax
call sub.msvcrt.dll_fclose
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x40]
test rax, rax
jne 0x47a5ec
mov rax, qword [rbp + 0x10]
mov eax, dword [rax]
and eax, 0xfffffffe
mov edx, eax
mov rax, qword [rbp + 0x10]
mov dword [rax], edx
lea rdx, [rbp - 0x14]
lea rax, [rbp - 0x10]
mov r9, rdx
mov r8, rax
mov edx, 1
mov rcx, qword [rbp + 0x10]
call fcn.0047a1ef
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x28]
test eax, eax
je 0x47a607
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x20]
mov rcx, rax
call fcn.00494cb8
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x38]
mov rcx, rax
call fcn.00494cb8
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x40]
mov rcx, rax
call fcn.00494cb8
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x48]
mov rcx, rax
call fcn.00494cb8
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x70]
test eax, eax
jle 0x47a6ab
mov dword [rbp - 4], 0
jmp 0x47a68f
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x78]
mov edx, dword [rbp - 4]
movsxd rdx, edx
shl rdx, 3
add rax, rdx
mov rax, qword [rax]
mov rcx, rax
call sub.msvcrt.dll_remove
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x78]
mov edx, dword [rbp - 4]
movsxd rdx, edx
shl rdx, 3
add rax, rdx
mov rax, qword [rax]
mov rcx, rax
call fcn.00494cb8
add dword [rbp - 4], 1
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x70]
cmp dword [rbp - 4], eax
jl 0x47a64b
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x78]
mov rcx, rax
call fcn.00494cb8
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x80]
mov rax, qword [rax + 0x40]
test rax, rax
je 0x47a6d4
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x80]
mov rax, qword [rax + 0x40]
mov rcx, qword [rbp + 0x10]
call rax
mov rcx, qword [rbp + 0x10]
call fcn.00494cb8
nop
add rsp, 0x40
pop rbp
ret
Function at 0x47b2bc
Capabilities:
Read file on windows

Disassembly:
push rbp
sub rsp, 0x180
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x110], rcx
mov qword [rbp + 0x118], rdx
mov qword [rbp + 0x120], r8
mov dword [rbp + 0x128], r9d
mov qword [rbp + 0xf8], 0xffffffffffffffff
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov eax, dword [rax]
mov dword [rbp + 0xe4], eax
mov edx, 0
mov rcx, qword [rbp + 0x110]
mov rax, qword [sym.imp.msvcrt.dll__open]
call rax
mov dword [rbp + 0xe0], eax
cmp dword [rbp + 0xe0], 0
js 0x47b555
lea rdx, [rbp - 0x40]
mov eax, dword [rbp + 0xe0]
mov r8d, 0x108
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__read]
call rax
mov dword [rbp + 0xdc], eax
mov eax, dword [rbp + 0xe0]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__close]
call rax
cmp dword [rbp + 0xdc], 3
jle 0x47b555
mov eax, dword [rbp + 0xdc]
cdqe
mov byte [rbp + rax - 0x40], 0
lea rax, [rbp - 0x40]
mov edx, 0xa
mov rcx, rax
call sub.msvcrt.dll_strchr
mov qword [rbp + 0xf0], rax
cmp qword [rbp + 0xf0], 0
je 0x47b555
lea rax, [rbp - 0x40]
mov r8d, 2
lea rdx, [0x004fefb5]
mov rcx, rax
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x47b555
mov rax, qword [rbp + 0xf0]
mov byte [rax], 0
sub qword [rbp + 0xf0], 1
mov rax, qword [rbp + 0xf0]
movzx eax, byte [rax]
cmp al, 0xd
je 0x47b3bf
mov rax, qword [rbp + 0xf0]
movzx eax, byte [rax]
cmp al, 0x20
je 0x47b3bf
mov rax, qword [rbp + 0xf0]
movzx eax, byte [rax]
cmp al, 9
je 0x47b3bf
lea rax, [rbp - 0x40]
add rax, 2
mov qword [rbp + 0xe8], rax
jmp 0x47b414
add qword [rbp + 0xe8], 1
mov rax, qword [rbp + 0xe8]
movzx eax, byte [rax]
cmp al, 0x20
je 0x47b40c
mov rax, qword [rbp + 0xe8]
movzx eax, byte [rax]
cmp al, 9
je 0x47b40c
mov rax, qword [rbp + 0xe8]
mov rcx, rax
call fcn.0047a6f0
mov rax, qword [rbp + 0x118]
mov rcx, rax
call fcn.0047a80d
add eax, 1
mov dword [rbp + 0xd8], eax
mov eax, dword [rbp + 0xd8]
add eax, 1
cdqe
shl rax, 3
mov rcx, rax
call fcn.0047c0a6
mov qword [rbp + 0xd0], rax
mov rax, qword [rbp + 0xd0]
mov rdx, qword [rbp + 0xe8]
mov qword [rax], rdx
mov eax, dword [rbp + 0xd8]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0xd0]
lea rcx, [rax + 8]
mov rax, qword [rbp + 0x118]
mov r8, rdx
mov rdx, rax
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp + 0xd0]
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0xe8]
mov edx, 0x5c
mov rcx, rax
call sub.msvcrt.dll_strrchr
add rax, 1
mov qword [rbp + 0x110], rax
cmp qword [rbp + 0x110], 0
jne 0x47b4f8
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0x110], rax
mov rcx, qword [rbp + 0x120]
mov rdx, qword [rbp + 0x118]
mov rax, qword [rbp + 0x138]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x130]
mov qword [rsp + 0x28], rax
mov eax, dword [rbp + 0x128]
mov dword [rsp + 0x20], eax
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, qword [rbp + 0x110]
call fcn.0047b016
mov qword [rbp + 0xf8], rax
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call fcn.00494cb8
cmp qword [rbp + 0xf8], 0xffffffffffffffff
jne 0x47b573
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov rdx, rax
mov eax, dword [rbp + 0xe4]
mov dword [rdx], eax
mov rax, qword [rbp + 0xf8]
add rsp, 0x180
pop rbp
ret
Function at 0x486e70
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov ecx, dword [0x00513844]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x486f90
mov rax, qword [0x00513848]
xor ebx, ebx
add rax, 0x18
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x486ebc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x486f76
add ebx, 1
add rax, 0x28
cmp ebx, ecx
jne 0x486ea0
mov rcx, rsi
call fcn.00487ab0
test rax, rax
mov r12, rax
je 0x486fc8
movsxd rbx, ebx
lea rbx, [rbx + rbx*4]
shl rbx, 3
mov r13, rbx
add r13, qword [0x00513848]
mov qword [r13 + 0x20], rax
mov dword [r13], 0
call fcn.00487c00
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 0x18], rax
mov rax, qword [0x00513848]
mov rcx, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x486fab
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x486f6f
sub eax, 0x40
and eax, 0xffffffbf
je 0x486f6f
add rbx, qword [0x00513848]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x486f97
add dword [0x00513844], 1
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebx, ebx
jmp 0x486ec7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00486e00
mov rax, qword [0x00513848]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.00486e00
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.00486e00
nop
nop dword [rax + rax]

Function at 0x487720
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00513b20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00513b00]
test rbx, rbx
je 0x487774
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x48776b
test rsi, rsi
je 0x48776b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x487750
lea rcx, [0x00513b20]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x487ab0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x005023d0]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x487ad0
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.00487990
test eax, eax
je 0x487ac8
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x487b2d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x487b24
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x487ac8
add rdx, 0x28
cmp rdx, r9
jne 0x487b10
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x487e60
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov eax, dword [0x00513b08]
xor esi, esi
mov ebp, ecx
mov rdi, rdx
test eax, eax
jne 0x4877b4
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
test rax, rax
mov rbx, rax
je 0x487808
mov dword [rax], ebp
mov qword [rax + 8], rdi
lea rcx, [0x00513b20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x00513b00]
lea rcx, [0x00513b20]
mov qword [0x00513b00], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov esi, 0xffffffff
jmp 0x4877a9
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x487e90
mov rdx, rbx
mov ecx, eax
mov dword [rsi], eax
add rsp, 0x28
pop rbx
pop rsi
jmp 0x495200
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
je 0x495210
jmp 0x487790
xor eax, eax
ret

Function at 0x487ec0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x487ef0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x487f05
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x488830
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
call sub.msvcrt.dll__errno
test rbx, rbx
mov dword [rax], 0
je 0x4889bc
cmp byte [rbx], 0
je 0x488984
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4889a0
test al, 0x10
je 0x488984
lea rdi, [rsp + 0x20]
mov r8d, 0x104
mov rdx, rbx
mov rcx, rdi
mov rsi, rdi
call sub.msvcrt.dll__fullpath
mov edx, dword [rsi]
add rsi, 4
lea eax, [rdx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x48888e
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea rdx, [rsi + 2]
mov ecx, eax
cmove rsi, rdx
add cl, al
sbb rsi, 3
sub rsi, rdi
lea rcx, [rsi + 0x24b]
call sub.msvcrt.dll_malloc
test rax, rax
mov rbx, rax
je 0x4889af
lea r9, [rax + 0x244]
lea rbp, [rsi + 1]
mov rdx, rdi
mov rcx, r9
mov r8, rbp
call sub.msvcrt.dll_memcpy
cmp byte [rbx + 0x244], 0
mov r9, rax
je 0x488920
movzx eax, byte [rbx + rsi + 0x243]
cmp al, 0x2f
je 0x488920
cmp al, 0x5c
je 0x488920
mov r8d, 0x5c
mov word [r9 + rsi], r8w
mov rsi, rbp
mov eax, 0x2a
xor edx, edx
xor ecx, ecx
mov word [r9 + rsi], ax
mov word [rbx + 0x12c], dx
lea rdx, [rbx + 0x130]
mov word [rbx + 0x12e], cx
xor eax, eax
mov ecx, 0x20
mov rdi, rdx
mov qword [rbx + 0x238], 0xffffffffffffffff
mov dword [rbx + 0x240], 0
mov dword [rbx + 0x128], 0
rep stosq qword [rdi], rax
mov dword [rdi], 0
mov rax, rbx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
call sub.msvcrt.dll__errno
mov dword [rax], 0x14
mov rax, rbx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 2
jmp 0x488975
call sub.msvcrt.dll__errno
mov dword [rax], 0xc
jmp 0x488975
call sub.msvcrt.dll__errno
mov dword [rax], 0xe
jmp 0x488975
Function at 0x48db90
Capabilities:
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12d, 1
sub r8d, 1
mov edi, ecx
mov ecx, 0x66666667
mov eax, r8d
mov rbp, rdx
movsxd rsi, r8d
imul ecx
sar r8d, 0x1f
mov rbx, r9
mov ecx, edx
sar ecx, 2
sub ecx, r8d
je 0x48dbe5
mov r8d, 0x66666667
nop dword [rax]
mov eax, ecx
sar ecx, 0x1f
add r12d, 1
imul r8d
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x48dbd0
mov edx, dword [rbx + 0x2c]
cmp edx, 0xffffffff
je 0x48dc60
mov ecx, dword [rbx + 0xc]
cmp r12d, edx
mov r9, rbx
cmovl r12d, edx
mov r8d, 1
lea edx, [r12 + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, edi
mov rdx, rbp
mov dword [rbx + 0xc], eax
add r12d, 1
call fcn.0048d450
mov ecx, dword [rbx + 8]
mov eax, dword [rbx + 0x2c]
mov rdx, rbx
mov dword [rbx + 0x10], eax
mov eax, ecx
and ecx, 0x20
or eax, 0x1c0
or ecx, 0x45
mov dword [rbx + 8], eax
call fcn.0048d000
add dword [rbx + 0xc], r12d
mov rdx, rbx
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.0048d8c0
mov eax, dword [0x0049bdc0]
cmp eax, 0xffffffff
je 0x48dc8c
test eax, eax
je 0x48dc7c
mov edx, 2
mov dword [rbx + 0x2c], edx
jmp 0x48dbed
call fcn.00494f40
test al, 1
mov edx, 3
jne 0x48dc6f
jmp 0x48dc74
lea rcx, str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test rax, rax
je 0x48dcb4
movsx eax, byte [rax]
sub eax, 0x30
cmp eax, 2
setbe al
movzx eax, al
mov dword [0x0049bdc0], eax
jmp 0x48dc6b
xor eax, eax
jmp 0x48dca9

Function at 0x498f20
Capabilities:
Get thread local storage value

Disassembly:
cmp byte [0x0049beb4], 0
jne 0x498f31
lea rax, [0x0049bea0]
ret
mov ecx, dword [0x0049beb0]
jmp fcn.00487ec0

Function at 0x4994a6
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
mov rsi, rcx
mov ecx, 0x2000
mov rbx, rdx
call fcn.0047c0a6
xor edx, edx
mov rcx, rsi
mov rbp, rax
call sub.msvcrt.dll__open_1
xor edx, edx
mov edi, eax
mov rcx, rbx
call sub.msvcrt.dll__open_1
test edi, edi
mov esi, eax
js 0x4995a0
test eax, eax
js 0x4995a0
lea rdx, [rsp + 0x20]
mov ecx, edi
mov rbx, qword [sym.imp.msvcrt.dll__fstat64]
call rbx
test eax, eax
js 0x4995a0
lea rdx, [rsp + 0x60]
mov ecx, esi
call rbx
test eax, eax
js 0x4995a0
mov rbx, qword [rsp + 0x38]
cmp rbx, qword [rsp + 0x78]
jne 0x4995a0
lea r14, [rbp + 0x1000]
mov r15d, 0x1000
test rbx, rbx
je 0x499586
cmp ebx, 0x1001
mov r12, r15
mov rdx, rbp
cmovl r12, rbx
mov ecx, edi
mov r8d, r12d
call sub.msvcrt.dll__read_1
cmp eax, r12d
mov r13d, eax
jne 0x4995a0
mov r8d, eax
mov rdx, r14
mov ecx, esi
call sub.msvcrt.dll__read_1
cmp r13d, eax
jne 0x4995a0
mov r8, r12
mov rdx, r14
mov rcx, rbp
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x4995a0
sub rbx, r12
jmp 0x499536
mov rcx, rbp
call fcn.00494cb8
mov ecx, edi
call sub.msvcrt.dll__close_1
mov ecx, esi
call sub.msvcrt.dll__close_1
mov al, 1
jmp 0x4995b8
mov rcx, rbp
call fcn.00494cb8
mov ecx, edi
call sub.msvcrt.dll__close_1
mov ecx, esi
call sub.msvcrt.dll__close_1
xor eax, eax
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400b0130
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400b017c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400b0174
cmp dword [rcx + 0x3c], edx
jl 0x1400b0174
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400b0174
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400b017c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14143a5ec
Capabilities:
Encode data using xor

Disassembly:
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x14143a615
pop rbp
sub rbp, 0x29
sub rbp, 0x143a5ec
jmp 0x14143a675
sub rsp, 0x20
jmp 0x14143a685
mov rax, 0x143a5ec
add rax, rbp
add rax, 0xcb
mov rcx, 0x64a
mov rdx, 0x339ff609
xor byte [rax], dl
inc rax
dec rcx
jne 0x14143a6a4
jmp 0x14143a6bb
and r8b, 0x82
xor byte [0x1824cafcf], 0x88
enter 0x801, 9
or dword [rcx + 8], eax
loopne 0x14143a710
invalid
or dword [rcx], ecx
or eax, esp
invalid
Function at 0x140001e50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001eac
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 0x140001ea3
test rsi, rsi
je 0x140001ea3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001e88
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 0x1400020c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002100
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400020d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002100
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400020e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002100
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

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

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

Function at 0x140002280
Capabilities:
Parse pe header

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