joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002f60
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.140009bd0
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.140009bd0
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 0x140002fd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400100a4]
mov rbx, rcx
test esi, esi
jle 0x140003100
mov rax, qword [0x1400100a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000301b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400030a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140003000
mov rcx, rbx
call fcn.140003a20
mov rdi, rax
test rax, rax
je 0x140003122
mov rax, qword [0x1400100a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003b60
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400100a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003107
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000309e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400030b0
add dword [0x1400100a4], 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 [0x1400100a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000309e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002f60
nop dword [rax]
xor esi, esi
jmp 0x140003028
mov rax, qword [0x1400100a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002f60
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002f60
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003690
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140010100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400100e0]
test rbx, rbx
je 0x1400036ec
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 0x1400036e3
test rsi, rsi
je 0x1400036e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400036c8
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 0x140003a20
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140003aa0
Capabilities:
Parse pe header

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

Function at 0x140003b60
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000ce40]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003b7f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003b88
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140010db0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140010dbd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140010dcd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140010db5
lea eax, [rcx + 1]
jmp 0x140010ddb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140010dee
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140010dd4
sub eax, 3
jb 0x140010e0e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140010e5d
sar eax, 1
movsxd rbp, eax
jb 0x140010e44
jmp 0x140010e1c
add ebx, ebx
jne 0x140010e1a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140010e44
inc ecx
add ebx, ebx
jne 0x140010e2a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140010e44
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140010e3d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140010e2c
add ecx, 2
jmp 0x140010e49
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140010d72
jmp 0x140010dbd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2400
mov dl, 2
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140010ea9
cmp rsi, rcx
jae 0x140010eb1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140010e90
cmp al, 0x8f
ja 0x140010e90
cmp byte [rsi - 2], 0xf
je 0x140010e96
sub al, 0xe8
cmp al, 1
ja 0x140010e7a
cmp rsi, rcx
jae 0x140010eb1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140010e80
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140010eb1
lodsb al, byte [rsi]
jmp 0x140010e90
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xe000]
mov eax, dword [rdi]
or eax, eax
je 0x140010f0e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x11000]
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 0x140010ebe
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 0x140010f08
mov qword [rbx], rax
add rbx, 8
jmp 0x140010ede
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 0x140010f48
cmp al, 0xef
ja 0x140010f3a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140010f1a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140010f29
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 + 0x1af]
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
mov byte [fcn.140010fc7], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.140010fc7
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140010fb7
sub rsp, 0xffffffffffffff80
jmp 0x1400013f0
Function at 0x1400b3f91
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x140109600
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x140109628
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x140109672
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 0x14010961d
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret

Function at 0x1400b40db
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1401e9f40
mov qword [rsp + 8], rcx
sub rsp, 0x38
call fcn.1401e8f90
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401e9f77
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x14029f020]
jmp 0x1401e9f7d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x38
ret
Function at 0x1400b5742
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140172380
mov rax, rcx
neg rcx
test rax, 7
je 0x14017239d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1401723f8
test al, 7
jne 0x140172390
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 0x1401723b1
mov rdx, qword [rax - 8]
test dl, dl
je 0x140172422
test dh, dh
je 0x14017241c
shr rdx, 0x10
test dl, dl
je 0x140172416
test dh, dh
je 0x140172410
shr rdx, 0x10
test dl, dl
je 0x14017240a
test dh, dh
je 0x140172404
shr edx, 0x10
test dl, dl
je 0x1401723fe
test dh, dh
jne 0x1401723b1
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 0x1400b5783
Capabilities:
Query environment variable

Disassembly:
jmp 0x140202518
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 esi, esi
mov rbx, rax
test rax, rax
je 0x1402025b5
mov rbp, rax
cmp word [rax], si
je 0x140202561
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140202548
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140202544
sub rbp, rbx
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
add rbp, 2
mov r9d, 0x40
sar rbp, 1
add rbp, rbp
mov rcx, rbp
lea edx, [r9 - 0x3e]
call fcn.1400b5b39
mov rdi, rax
test rax, rax
je 0x1402025a0
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call fcn.1400b5a67
mov rsi, rdi
mov edx, 2
xor ecx, ecx
call fcn.1400b3ff0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b5cdd
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1401637a0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140163120
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401637df
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 [0x14029f020]
jmp 0x1401637e9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400b5f4e
Capabilities:
Query environment variable

Disassembly:
jmp 0x1402023bc
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 0x1402024a4
mov rsi, rax
cmp word [rax], r14w
je 0x14020240f
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x1402023f7
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x1402023f3
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.1400b71aa
movsxd rbp, eax
test eax, eax
je 0x1402024a4
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov rcx, rbp
lea edx, [r9 - 0x64]
call fcn.1400b5b39
mov rdi, rax
test rax, rax
je 0x140202492
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.1400b71aa
test eax, eax
je 0x140202492
mov rsi, rdi
mov rdi, r14
jmp 0x140202495
mov rsi, r14
mov edx, 2
mov rcx, rdi
call fcn.1400b3ff0
jmp 0x1402024a7
mov rsi, r14
test rbx, rbx
je 0x1402024b5
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 0x1400b5f67
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1401636d0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1401630a0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140163711
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 [0x14029f020]
jmp 0x140163717
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x1400b6039
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401ea210
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.1401e9190
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1401ea263
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 [0x14029f020]
jmp 0x1401ea285
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.1400b5260
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 0x1400b6048
Capabilities:
Terminate process

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

Disassembly:
jmp 0x14020e6f0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140282068]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14020e716
jmp 0x14020e793
mov rcx, qword [rbp + 0x30]
call fcn.1400b5742
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14020e72f
jmp 0x14020e793
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14020e74c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400b4045
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.1400b4685
test eax, eax
jne 0x14020e793
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400b5a3a
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400b676e
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400e6390
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1400e63cd
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.1400b86ef
add rsp, 0x58
ret
Function at 0x1400b6bab
Capabilities:
Parse pe header

Disassembly:
jmp 0x140141970
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140141990
xor al, al
jmp 0x140141a11
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1401419a3
xor al, al
jmp 0x140141a11
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 0x1401419cd
xor al, al
jmp 0x140141a11
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1401419e1
xor al, al
jmp 0x140141a11
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1401419f3
xor al, al
jmp 0x140141a11
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140141a0f
xor al, al
jmp 0x140141a11
mov al, 1
add rsp, 0x38
ret
Function at 0x1400b746b
Capabilities:
Terminate process

Disassembly:
jmp 0x1401640a0
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 0x1401640ce
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400b80eb
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 0x1400b759c
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1401ea000
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.1401e9010
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401ea035
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x14029f020]
jmp 0x1401ea03f
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x38
ret
Function at 0x1400b7cd1
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1401ea060
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.1401e9050
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401ea09f
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 [0x14029f020]
jmp 0x1401ea0ae
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x38
ret
Function at 0x1400b8168
Capabilities:
Print debug messages

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

Disassembly:
jmp 0x140163810
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140163160
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140163859
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 [0x14029f020]
jmp 0x140163868
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret
Function at 0x1400b83d9
Capabilities:
Set environment variable

Disassembly:
jmp 0x140219cb0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
lea rcx, [rsp + 0x70]
call fcn.1400b5062
lea rcx, [rsp + 0x40]
call fcn.1400b5062
call fcn.1400b5ec2
mov r8d, eax
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0xb0]
call fcn.1400b4d10
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140219d1f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x40]
call fcn.1400b55d0
lea rcx, [rsp + 0x70]
call fcn.1400b55d0
mov eax, dword [rsp + 0x24]
jmp 0x140219dac
call fcn.1400b5ec2
mov r8d, eax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xb8]
call fcn.1400b4d10
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140219d66
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x40]
call fcn.1400b55d0
lea rcx, [rsp + 0x70]
call fcn.1400b55d0
mov eax, dword [rsp + 0x2c]
jmp 0x140219dac
lea rcx, [rsp + 0x40]
call fcn.1400b4f72
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x70]
call fcn.1400b4f72
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.1400b55d0
lea rcx, [rsp + 0x70]
call fcn.1400b55d0
mov eax, dword [rsp + 0x30]
add rsp, 0xa8
ret
Function at 0x140001210
Capabilities:
Link function at runtime on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140005010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r15, rcx
mov r14d, dword [rdx + 0x90]
add r14, rcx
mov r9d, dword [rdx + 0xe8]
mov eax, 0x90
mov ecx, 0xe8
test r9d, r9d
cmovne eax, ecx
mov r8d, dword [rax + rdx]
mov eax, 0x94
mov ecx, 0xec
cmovne eax, ecx
mov edx, dword [rax + rdx]
lea rcx, [r15 + r8]
lea r9, [rsp + 0x38]
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
mov eax, dword [r14 + 0xc]
test eax, eax
je 0x1400012f5
lea rcx, [r15 + rax]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
mov edi, dword [r14 + 0x10]
add rdi, r15
mov qword [rsp + 0x28], rdi
mov eax, dword [r14]
test eax, eax
lea rbx, [r15 + rax]
jne 0x1400012af
mov rbx, rdi
mov qword [rsp + 0x20], rbx
mov rax, qword [rbx]
test rax, rax
je 0x1400012ea
mov rcx, rsi
jns 0x1400012c6
movzx edx, ax
jmp 0x1400012cd
lea rdx, [r15 + 2]
add rdx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi], rax
add rdi, 8
mov qword [rsp + 0x28], rdi
add rbx, 8
mov qword [rsp + 0x20], rbx
jmp 0x1400012b4
add r14, 0x14
mov qword [rsp + 0x30], r14
jmp 0x140001280
jmp 0x1400012f7
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140001e20
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x140001320
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x40
mov r15, rcx
xor ebx, ebx
mov qword [rsp + 0x28], rbx
mov eax, 0x5a4d
cmp ax, word [rcx]
je 0x140001355
xor eax, eax
jmp 0x14000142c
movsxd rsi, dword [rcx + 0x3c]
add rsi, r15
cmp dword [rsi], 0x4550
je 0x14000136b
xor eax, eax
jmp 0x14000142c
mov eax, 0x8664
cmp ax, word [rsi + 4]
je 0x14000137d
xor eax, eax
jmp 0x14000142c
cmp dword [rsi + 0xf8], 0
je 0x14000138d
xor eax, eax
jmp 0x14000142c
lea rdi, [rsi + 0x108]
mov qword [rsp + 0x30], rdi
mov edx, dword [rsi + 0x50]
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, qword [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x1400013dc
mov edx, dword [rsi + 0x50]
xor ecx, ecx
lea r9d, [rax + 0x40]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
mov qword [rsp + 0x28], rax
test r14, r14
jne 0x1400013e5
xor eax, eax
jmp 0x14000142c
mov r8d, dword [rsi + 0x54]
mov rdx, r15
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
mov dword [rsp + 0x20], ebx
movzx eax, word [rsi + 6]
cmp ebx, eax
jge 0x140001422
mov r8d, dword [rdi + 0x10]
mov edx, dword [rdi + 0x14]
add rdx, r15
mov ecx, dword [rdi + 0xc]
add rcx, r14
call sub.VCRUNTIME140.dll_memcpy
add rdi, 0x28
mov qword [rsp + 0x30], rdi
inc ebx
jmp 0x1400013f4
jmp 0x140001429
mov rax, r14
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret