joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001b80
Capabilities:
Write file on windows

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

Function at 0x140001bf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
movsxd rsi, dword [0x14000c0a4]
mov rbx, rcx
test esi, esi
jle 0x140001d20
mov rax, qword [0x14000c0a8]
xor r9d, r9d
add rax, 0x18
nop dword [rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001c3b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001cc3
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001c20
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001d42
mov rax, qword [0x14000c0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000c0a8]
lea rdx, [rbp - 0x30]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001d27
mov eax, dword [rbp - 0xc]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001cbc
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001cd0
add dword [0x14000c0a4], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 2
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000c0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001cbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop word [rax + rax]
xor esi, esi
jmp 0x140001c48
mov rax, qword [0x14000c0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400022d0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
lea r13, [0x14000c100]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c0e0]
test rbx, rbx
je 0x140002335
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [rbx]
call r12
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000232c
test eax, eax
jne 0x14000232c
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002310
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002570
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002588
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002590
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400025a0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400025ed
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400025e4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400025ef
add rax, 0x28
cmp rax, r9
jne 0x1400025d0
xor eax, eax
ret

Function at 0x1400025f0
Capabilities:
Parse pe header

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002688
mov rdx, qword [0x140009920]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140002676
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140002676
cmp word [rax + 0x18], 0x20b
jne 0x140002676
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002688
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002661
add rbx, 0x28
cmp rbx, rdi
je 0x140002688
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002658
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

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

Disassembly:
mov rdx, qword [0x140009920]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400026c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400026c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400026c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000271d
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 0x140002714
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400026c0
add rax, 0x28
cmp rax, r9
jne 0x140002700
xor eax, eax
ret
Function at 0x140002720
Capabilities:
Parse pe header

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

Function at 0x140002760
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140009920]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002780
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002788
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002780
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400027d0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400027c7
test rcx, rcx
je 0x140002780
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400027b8
xor eax, eax
ret

Function at 0x1400027e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009920]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400027ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002808
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x140009920]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002840
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002848
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002840
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002840
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002894
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400028a0
add rdx, 0x28
cmp rdx, r9
jne 0x140002880
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140009920]
xor r8d, r8d
cmp word [r11], 0x5a4d
mov r10d, ecx
jne 0x1400028d4
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
cmp dword [rcx], 0x4550
je 0x1400028e0
mov rax, r8
ret
cmp word [rcx + 0x18], 0x20b
jne 0x1400028d4
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x1400028d4
movzx edx, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rdx, [rcx + rdx + 0x18]
test r9w, r9w
je 0x1400028d4
lea ecx, [r9 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rdx + 0xc]
mov rcx, r8
cmp rax, r8
jb 0x14000292c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002940
add rdx, 0x28
cmp r9, rdx
jne 0x140002918
xor r8d, r8d
mov rax, r8
ret
add rax, r11
jmp 0x140002950
sub r10d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14000295e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002935
test r10d, r10d
jg 0x140002948
mov r8d, dword [rax + 0xc]
add r8, r11
mov rax, r8
ret
Function at 0x1400a6dde
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x1400e1cb0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x1400e1cd8
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x1400e1d22
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp + 0x20]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x1400e1ccd
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret

Function at 0x1400a6f1e
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1401bc060
mov qword [rsp + 8], rcx
sub rsp, 0x38
call fcn.1401bb0b0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401bc097
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x140270020]
jmp 0x1401bc09d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x38
ret
Function at 0x1400a8391
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1401448c0
mov rax, rcx
neg rcx
test rax, 7
je 0x1401448dd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140144938
test al, 7
jne 0x1401448d0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1401448f1
mov rdx, qword [rax - 8]
test dl, dl
je 0x140144962
test dh, dh
je 0x14014495c
shr rdx, 0x10
test dl, dl
je 0x140144956
test dh, dh
je 0x140144950
shr rdx, 0x10
test dl, dl
je 0x14014494a
test dh, dh
je 0x140144944
shr edx, 0x10
test dl, dl
je 0x14014493e
test dh, dh
jne 0x1401448f1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret
Function at 0x1400a8896
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14013bf20
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14013b8a0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14013bf5f
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 [0x140270020]
jmp 0x14013bf69
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400a8ac1
Capabilities:
Query environment variable

Disassembly:
jmp 0x1401dae1c
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 r14d, r14d
mov rbx, rax
test rax, rax
je 0x1401daf04
mov rsi, rax
cmp word [rax], r14w
je 0x1401dae6f
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x1401dae57
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x1401dae53
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call fcn.1400a9b5b
movsxd rbp, eax
test eax, eax
je 0x1401daf04
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov rcx, rbp
lea edx, [r9 - 0x64]
call fcn.1400a870b
mov rdi, rax
test rax, rax
je 0x1401daef2
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.1400a9b5b
test eax, eax
je 0x1401daef2
mov rsi, rdi
mov rdi, r14
jmp 0x1401daef5
mov rsi, r14
mov edx, 2
mov rcx, rdi
call fcn.1400a6e38
jmp 0x1401daf07
mov rsi, r14
test rbx, rbx
je 0x1401daf15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400a8ad0
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14013be50
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.14013b820
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14013be91
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140270020]
jmp 0x14013be97
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x1400a8b84
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401bc330
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1401bb2b0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1401bc383
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
call qword [0x140270020]
jmp 0x1401bc3a5
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.1400a7f04
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x48
ret

Function at 0x1400a8b8e
Capabilities:
Terminate process

Disassembly:
jmp 0x140119980
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 0x1400a8f08
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401e70c0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140255038]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1401e70e6
jmp 0x1401e7163
mov rcx, qword [rbp + 0x30]
call fcn.1400a8391
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1401e70ff
jmp 0x1401e7163
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1401e711c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400a6e83
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400a742d
test eax, eax
jne 0x1401e7163
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400a8648
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x1400a9601
Capabilities:
Parse pe header

Disassembly:
jmp 0x14011af10
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14011af30
xor al, al
jmp 0x14011afb1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14011af43
xor al, al
jmp 0x14011afb1
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 0x14011af6d
xor al, al
jmp 0x14011afb1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14011af81
xor al, al
jmp 0x14011afb1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14011af93
xor al, al
jmp 0x14011afb1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14011afaf
xor al, al
jmp 0x14011afb1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400a9dd6
Capabilities:
Terminate process

Disassembly:
jmp 0x14013c820
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14013c84e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400aa92a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400a9eda
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1401bc120
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.1401bb130
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401bc155
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x140270020]
jmp 0x1401bc15f
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x38
ret
Function at 0x1400aa588
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1401bc180
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.1401bb170
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401bc1bf
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x140270020]
jmp 0x1401bc1ce
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x38
ret
Function at 0x1400aa9b6
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401b99a0
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 0x1400aaaf6
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14013bf90
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14013b8e0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14013bfd9
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140270020]
jmp 0x14013bfe8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400aabff
Capabilities:
Set environment variable

Disassembly:
jmp 0x1401f2370
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
lea rcx, [rsp + 0x70]
call fcn.1400a7d33
lea rcx, [rsp + 0x40]
call fcn.1400a7d33
call fcn.1400a8a49
mov r8d, eax
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0xb0]
call fcn.1400a7a36
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1401f23df
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x40]
call fcn.1400a8238
lea rcx, [rsp + 0x70]
call fcn.1400a8238
mov eax, dword [rsp + 0x24]
jmp 0x1401f246c
call fcn.1400a8a49
mov r8d, eax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xb8]
call fcn.1400a7a36
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1401f2426
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x40]
call fcn.1400a8238
lea rcx, [rsp + 0x70]
call fcn.1400a8238
mov eax, dword [rsp + 0x2c]
jmp 0x1401f246c
lea rcx, [rsp + 0x40]
call fcn.1400a7c6b
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x70]
call fcn.1400a7c6b
mov rcx, qword [rsp + 0x38]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.1400a8238
lea rcx, [rsp + 0x70]
call fcn.1400a8238
mov eax, dword [rsp + 0x30]
add rsp, 0xa8
ret

Function at 0x1400aaede
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1401dc1c8
jmp fcn.1400aac81
Function at 0x140001901
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0xd90
lea rbp, [rsp + 0x80]
mov dword [rbp + 0xd30], ecx
mov qword [rbp + 0xd38], rdx
call dbg.__main
call sym.clock
mov dword [rbp + 0xd0c], eax
mov ecx, 0xfd
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
call sym.clock
mov dword [rbp + 0xd08], eax
mov eax, dword [rbp + 0xd0c]
sub eax, dword [rbp + 0xd08]
cmp eax, 0xffffff04
jl 0x14000196d
lea rcx, str.zyDQPiAn
call sym.printf
jmp 0x140001acb
mov qword [rbp + 0x3a0], 0
mov qword [rbp + 0x3a8], 0
lea rdx, [rbp + 0x3b0]
mov eax, 0
mov ecx, 0x128
mov rdi, rdx
rep stosq qword [rdi], rax
mov rdx, rdi
mov word [rdx], ax
add rdx, 2
mov rax, qword [rbp + 0xd38]
add rax, 8
mov rax, qword [rax]
lea rdx, [0x14001b011]
mov rcx, rax
call sym.fopen
mov qword [rbp + 0xd00], rax
mov qword [rbp - 0x60], 0
mov qword [rbp - 0x58], 0
lea rdx, [rbp - 0x50]
mov eax, 0
mov ecx, 0x7e
mov rdi, rdx
rep stosq qword [rdi], rax
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd00]
mov r8, rdx
lea rdx, [0x14001b013]
mov rcx, rax
call sym.fscanf
lea rax, [rbp - 0x60]
lea rdx, [0x14001b016]
mov rcx, rax
call sym.oUOzXLTC
mov rdx, rax
lea rax, [rbp + 0x3a0]
mov rcx, rax
call sym.DnXNMSWJ
mov rax, qword [rbp + 0xd00]
mov rcx, rax
call sym.fclose
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x952
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0xcf8], rax
mov rax, qword [rbp + 0xcf8]
mov rdx, rax
lea rax, [rbp + 0x3a0]
mov ecx, 0x952
mov r8, qword [rax]
mov qword [rdx], r8
mov r8d, ecx
add r8, rdx
lea r9, [r8 + 8]
mov r8d, ecx
add r8, rax
add r8, 8
mov r8, qword [r8 - 0x10]
mov qword [r9 - 0x10], r8
lea r8, [rdx + 8]
and r8, 0xfffffffffffffff8
sub rdx, r8
sub rax, rdx
add ecx, edx
and ecx, 0xfffffff8
shr ecx, 3
mov edx, ecx
mov edx, edx
mov rdi, r8
mov rsi, rax
mov rcx, rdx
rep movsq qword [rdi], qword [rsi]
mov rax, qword [rbp + 0xcf8]
call rax
nop
add rsp, 0xd90
pop rsi
pop rdi
pop rbp
ret

Function at 0x140001db0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]