joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14013b80c
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 0x14013b83c
xor eax, eax
jmp 0x14013b8ff
mov rbp, rbx
cmp word [rax], si
je 0x14013b861
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14013b848
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14013b844
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.14013b72c
movsxd r14, eax
test eax, eax
jne 0x14013b89f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14013b835
mov rcx, r14
call fcn.14013c6e8
mov rdi, rax
test rax, rax
jne 0x14013b8b8
xor ecx, ecx
call fcn.140139d8c
jmp 0x14013b894
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.14013b72c
test eax, eax
jne 0x14013b8e9
mov rcx, rdi
call fcn.140139d8c
jmp 0x14013b8f3
xor ecx, ecx
call fcn.140139d8c
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 0x14013edf0
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.14013a7fc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14013ee7a
cmp byte [rbp - 0x21], r15b
je 0x14013ee75
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14013eeb0
call fcn.14013cef8
test eax, eax
jne 0x14013ee9c
cmp byte [rbp - 0x21], r15b
je 0x14013ee94
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14013eeb0
cmp byte [rbp - 0x21], r15b
je 0x14013eead
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.140139ddc
test eax, eax
jne 0x14013ef50
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14013a7fc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14013eeef
cmp byte [rbp - 0x21], r15b
je 0x14013ef24
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14013ef24
call fcn.14013cef8
test eax, eax
jne 0x14013ef10
cmp byte [rbp - 0x21], r15b
je 0x14013ef09
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14013ef24
cmp byte [rbp - 0x21], r15b
je 0x14013ef21
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.140139ddc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14013ef50
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14013ef53
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14013ef61
mov rcx, rdi
call fcn.140139d8c
cmp byte [rbp + 0x3f], r15b
je 0x14013ef70
mov rcx, qword [rbp + 0x27]
call fcn.140139d8c
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 0x140141da0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140141dc8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140141dc8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140145b00
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov ebp, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.14011d110
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140145b5b
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x140145bd4
mov r8d, 1
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.1400032c0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140145be1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
je 0x140145bd4
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.1400032c0
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
jne 0x140145bc3
jmp 0x140145bd4
Function at 0x140001f80
Capabilities:
Allocate or change rwx memory
Create thread
Inject dll
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x270
mov rax, qword [0x140042020]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov edi, ecx
mov rbx, rdx
lea rcx, str.Kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp qword [rbx + 0x18], 0x10
mov rcx, rbx
mov rbp, rax
jb 0x140001fc9
mov rcx, qword [rbx]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea r8, [rsp + 0x40]
mov edx, 0x104
lea rcx, [rsp + 0x150]
mov rdi, rax
call fcn.140011538
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x1000
mov r8d, 0x104
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
xor r14d, r14d
mov rsi, rax
test rax, rax
jne 0x140002036
mov rdx, qword [rbx + 0x18]
jmp 0x14000208e
mov r9d, 0x104
mov qword [rsp + 0x20], r14
lea r8, [rsp + 0x150]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rdx, str.LoadLibraryA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov r9, rax
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rdx, qword [rbx + 0x18]
test rax, rax
jne 0x1400020c4
cmp rdx, 0x10
jb 0x1400020c0
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400020bb
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000212f
mov rcx, r8
call fcn.140008e30
xor al, al
jmp 0x1400020f8
cmp rdx, 0x10
jb 0x1400020f6
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400020f1
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000212f
mov rcx, r8
call fcn.140008e30
mov al, 1
mov byte [rbx], r14b
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], r14
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140008e10
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140011a7c
int3
Function at 0x14001819c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140017f98
Function at 0x140020038
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140009470
sub rsp, rax
mov rax, qword [0x140042020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001bd1c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140020087
mov rax, rbp
jmp 0x14002018f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x443e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140021158
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x443e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002018b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002018b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140021158
test rax, rax
js 0x14002018b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002018b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002017d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002017d
cmp byte [rcx], 0xd
jne 0x140020163
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140020172
cmp byte [rcx + 1], 0xa
jne 0x140020172
inc rcx
jmp 0x140020172
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x42420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140020145
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002018f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140008e10
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400203b0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400203c6
mov al, 1
jmp 0x140020426
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400203d7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140020424
mov ecx, dword [rcx + 0x18]
nop
call fcn.140024f78
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140020424
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140020424
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140020424
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140020426
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400204f8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400443e0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14002054f
cmp word [rdx], r13w
jne 0x14002054f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140020554
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140020679
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002069a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14002058d
mov rdx, r9
mov word [rbx], cx
jmp 0x1400205b4
cmp r9, r8
jae 0x1400205c4
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14002056e
jmp 0x140020679
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002066e
cmp dword [rsp + 0x80], esi
je 0x14002066e
lea r8, [0x1400443e0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140020646
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140020616
mov word [rbx], r13w
jmp 0x140020676
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140020623
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140020676
cmp word [rsp + 0x70], r13w
jne 0x140020653
cmp rbx, r14
je 0x140020610
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140021160
cmp word [rsp + 0x70], r13w
je 0x140020679
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400443e0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140020673
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140020679
Function at 0x140024710
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 0x140024740
xor eax, eax
jmp 0x140024803
mov rbp, rbx
cmp word [rax], si
je 0x140024765
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002474c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140024748
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.140022d10
movsxd r14, eax
test eax, eax
jne 0x1400247a3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140024739
mov rcx, r14
call fcn.14001aac0
mov rdi, rax
test rax, rax
jne 0x1400247bc
xor ecx, ecx
call fcn.14001aa84
jmp 0x140024798
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.140022d10
test eax, eax
jne 0x1400247ed
mov rcx, rdi
call fcn.14001aa84
jmp 0x1400247f7
xor ecx, ecx
call fcn.14001aa84
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 0x1400274cc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14001c228
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14002756d
cmp ebx, dword [rsp + 0x30]
je 0x140027566
test esi, esi
je 0x140027566
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140027541
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002754e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002752b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140027552
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002756f
mov eax, 1
jmp 0x14002756f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002b01c
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.1400142f0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002b0a6
cmp byte [rbp - 0x21], r15b
je 0x14002b0a1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14002b0dc
call fcn.14001e3c4
test eax, eax
jne 0x14002b0c8
cmp byte [rbp - 0x21], r15b
je 0x14002b0c0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14002b0dc
cmp byte [rbp - 0x21], r15b
je 0x14002b0d9
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.140016e40
test eax, eax
jne 0x14002b17c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400142f0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002b11b
cmp byte [rbp - 0x21], r15b
je 0x14002b150
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14002b150
call fcn.14001e3c4
test eax, eax
jne 0x14002b13c
cmp byte [rbp - 0x21], r15b
je 0x14002b135
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14002b150
cmp byte [rbp - 0x21], r15b
je 0x14002b14d
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.140016e40
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14002b17c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14002b17f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14002b18d
mov rcx, rdi
call fcn.14001aa84
cmp byte [rbp + 0x3f], r15b
je 0x14002b19c
mov rcx, qword [rbp + 0x27]
call fcn.14001aa84
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 0x140002380
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 fcn.1400197f0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400197f0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1400023f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14001f0b4]
mov r12, rcx
test ebx, ebx
jle 0x140002520
mov rax, qword [0x14001f0b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000243c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400024c3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140002420
mov rcx, r12
call fcn.140002d90
mov rsi, rax
test rax, rax
je 0x140002542
mov rax, qword [0x14001f0b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140002ec0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14001f0b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002527
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400024bc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400024d0
add dword [0x14001f0b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14001f0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400024bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002380
nop dword [rax]
xor ebx, ebx
jmp 0x140002447
mov rax, qword [0x14001f0b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002380
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140002380
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002a00
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14001f120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001f100]
test rbx, rbx
je 0x140002a54
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140002a4b
test r12, r12
je 0x140002a4b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002a30
lea rcx, [0x14001f120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002d90
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14001c2c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002db0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002db8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002db0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002e05
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002dfc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002db0
add rax, 0x28
cmp rax, r9
jne 0x140002de8
xor eax, eax
ret

Function at 0x140002e10
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001c2c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002e30
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002e38
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002e30
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140002ec0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001c2c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002ee0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002ee8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x1400046b0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14001c340]
mov rax, qword [rsi]
test rax, rax
je 0x140004740
cmp qword [rax + 0x30], 0
jne 0x140004760
lea rbx, [0x14001a088]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140004710
cmp qword [rax + 0x30], 0
jne 0x140004730
lea rdx, [0x14001a088]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x140019980
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400095b0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x1400046f2
test rax, rax
jne 0x140004730
call fcn.1400095b0
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140004700
call fcn.1400095b0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1400046d0
test rax, rax
jne 0x140004760
call fcn.1400095b0
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x1400046db
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2