joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459120
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4591cf
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x00459220]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.004622c0
xorps xmm15, xmm15
mov r14, qword [0x005f4b98]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00462400
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.00459120
Function at 0x4641e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x403c83
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.00409940
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00462400
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x403c60
cmp byte [0x005f496a], 0
je 0x4641f5
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x461440
jmp 0x403c60

Function at 0x464200
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005f4c60]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005f496a], 0
je 0x464235
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005f4f20]
aesenc xmm0, xmmword [0x005f4f30]
aesenc xmm0, xmmword [0x005f4f40]
movq rax, xmm0
ret
jmp 0x409b60

Function at 0x464240
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005f4c60]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005f496a], 0
je 0x464276
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005f4f20]
aesenc xmm0, xmmword [0x005f4f30]
aesenc xmm0, xmmword [0x005f4f40]
movq rax, xmm0
ret
jmp 0x409bc0

Function at 0x465f60
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x465f94
mov rcx, 0x28
jmp 0x465f9f
shl rcx, 3
add rcx, 0x1480
mov qword [0x005f4b98], rcx
pop rbp
ret
Function at 0x478c00
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x478e3b
push rbp
mov rbp, rsp
sub rsp, 0x78
mov ebx, dword [rax + 0x2c]
test ebx, ebx
jne 0x478c9a
mov qword [rsp + 0x88], rax
lea rbx, [0x004dcf00]
mov rcx, rax
lea rax, [0x005a1860]
call fcn.00473ec0
test cl, cl
jne 0x478c83
mov rax, qword [rsp + 0x88]
call fcn.00478520
mov ecx, 1
mov rdi, rax
mov rsi, rbx
lea rax, [rsp + 0x30]
lea rbx, [0x00507950]
call fcn.0044e000
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x28], rbx
call fcn.00478e80
mov rcx, qword [rsp + 0x88]
xor edx, edx
jmp 0x478cb7
lea rdx, [0x004daa60]
cmp rax, rdx
jne 0x478ca5
test byte [rbx], al
mov rax, rbx
add rsp, 0x78
pop rbp
ret
call fcn.0045fd60
add rsp, 0x78
pop rbp
ret
mov rbx, rdx
lea rcx, [0x004c81a0]
call fcn.0040a800
inc rdx
cmp rbx, rdx
jle 0x478d01
mov rsi, qword [rax + rdx*8]
cmp qword [rsi + 0x30], rcx
jne 0x478cb4
lea rax, [0x005a1860]
lea rbx, [0x004dcf00]
lea rdi, [0x004daa60]
nop dword [rax + rax]
call fcn.00474080
lea rdx, [0x004daa60]
cmp rax, rdx
jne 0x478e2b
test byte [rbx], al
mov rax, rbx
add rsp, 0x78
pop rbp
nop
ret
lea rcx, [0x004c1940]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], 0
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x58], rcx
lea rax, [0x004cc440]
call fcn.0040d2e0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x58]
test byte [rcx], al
cmp dword [0x005f4be0], 0
nop
je 0x478d5b
mov rbx, rax
lea rax, [0x004cc440]
call fcn.00412580
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rcx]
mov qword [rax], rdx
movups xmm0, xmmword [rcx + 8]
movups xmmword [rax + 8], xmm0
movups xmm0, xmmword [rcx + 0x18]
movups xmmword [rax + 0x18], xmm0
movups xmm0, xmmword [rcx + 0x28]
movups xmmword [rax + 0x28], xmm0
mov rbx, qword [rsp + 0x28]
xor ecx, ecx
xor edi, edi
xor esi, esi
mov r8d, esi
mov rax, qword [rsp + 0x50]
call fcn.00401480
call fcn.0045fe20
mov rsi, qword [rsp + 0x60]
mov dword [rsi + 0x28], eax
mov dword [rsi + 0x2c], 0
mov rcx, qword [rsp + 0x88]
mov edx, dword [rcx + 0x10]
xor eax, eax
jmp 0x478dc2
imul edx, edx, 0x1000193
xor edx, 0x2a
mov eax, 1
test rax, rax
jle 0x478db4
mov dword [rsi + 0x10], edx
cmp dword [0x005f4be0], 0
je 0x478de3
call fcn.00464320
mov qword [r11], rcx
mov rdx, qword [rsi + 0x30]
mov qword [r11 + 8], rdx
mov qword [rsi + 0x30], rcx
lea rax, [0x005a1860]
lea rbx, [0x004dcf00]
lea rdi, [0x004daa60]
nop dword [rax]
call fcn.00474080
lea rdx, [0x004daa60]
cmp rax, rdx
jne 0x478e1c
test byte [rbx], al
mov rax, rbx
add rsp, 0x78
pop rbp
ret
mov rbx, rdx
lea rcx, [0x004c81a0]
call fcn.0040a800
mov rbx, rdx
lea rcx, [0x004c81a0]
call fcn.0040a800
nop
mov qword [rsp + 8], rax
call fcn.00462400
mov rax, qword [rsp + 8]
jmp fcn.00478c00
Function at 0x482480
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x48254a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.00403bc0
xorps xmm15, xmm15
mov r14, qword [0x005f4b98]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x48252f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004c4a00]
xor ebx, ebx
mov rcx, rdx
call fcn.0044a240
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.00483220
inc rbx
cmp rcx, rbx
jae 0x48251e
mov edi, 1
lea rsi, [0x004c4a00]
call fcn.0044a320
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x00508f58]
lea rsi, [0x005086a0]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00462400
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00482480
Function at 0x4b0ce0
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x4b0cf7
inc rax
cmp rax, 4
jge 0x4b0d0f
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x4b0cf4
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x4b0d20
inc rax
cmp rax, 4
jge 0x4b0d2e
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x4b0d57
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x4b0d3b
jmp 0x4b0d1d
Function at 0x140001000
Capabilities:
Create thread
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
movabs rsi, 0x59682f000
mov dword [rsp + 0x30], 0
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140001118
mov r8, rsi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ecx, ecx
mov edx, 0x1cc
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r9d, r9d
lea r8, [0x1400030a0]
xor edx, edx
lea r10, str.mysuperdupersecretkey
mov rbx, rax
nop dword [rax]
nop word [rax + rax]
xor ecx, ecx
lea r8, [r8 + 1]
cmp rdx, 0x15
cmovne rcx, rdx
inc r9d
movzx eax, byte [rcx + r10]
lea rdx, [rcx + 1]
xor byte [r8 - 1], al
cmp r9d, 0x1cc
jb 0x140001090
mov r8d, 0x1cc
lea rdx, [0x1400030a0]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea r9, [rsp + 0x30]
mov edx, 0x1cc
mov r8d, 0x20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140001118
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov r8, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001150
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rsi
ret

Function at 0x140001a18
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001a62
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001a62
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001a62
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001a62
cmp dword [rcx + 0x84], 0xe
jbe 0x140001a62
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001a64
xor al, al
add rsp, 0x28
ret
Function at 0x140009038
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov r9, rcx
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
mov rsi, rdx
movzx eax, byte [rbx + rcx + 0x10]
movabs rdx, 0x100000001b3
xor r8, rax
inc rcx
imul r8, rdx
cmp rcx, 4
jb 0x14000905c
mov rdx, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x18]
and rdx, r8
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rbx
jne 0x1400090b3
cmp qword [rcx + rdx*8], rbx
jne 0x1400090a8
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
jmp 0x1400090ac
mov rax, qword [rbx + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400090c0
cmp qword [rcx + rdx*8], rbx
jne 0x1400090c0
mov rax, qword [rbx]
mov qword [rcx + rdx*8], rax
mov rax, qword [rbx + 8]
mov rdi, qword [rbx]
mov qword [rax], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
mov rdx, qword [rbx + 0x30]
cmp rdx, 8
jb 0x1400090f5
mov rcx, qword [rbx + 0x18]
inc rdx
mov r8d, 2
call fcn.1400020a4
mov edx, 1
mov rcx, rbx
lea r8d, [rdx + 0x37]
call fcn.1400020a4
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov qword [rsi], rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b51c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400148a0], eax
call fcn.14000b2a4
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_UnhandledExceptionFilter]
cmp dword [0x1400148a0], 0
jne case.default.0x14000b572
mov ecx, 1
call fcn.14000b2a4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
test al, 0x17
insd dword [rdi], dx
retf 0x23f2
Function at 0x140001900
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x140022008]
xor rax, rsp
mov qword [rbp + 0x37], rax
movdqa xmm0, xmmword [0x14001f600]
xor r15d, r15d
mov word [rbp + 0x2f], r15w
mov dword [rbp + 0x17], 0x780065
mov dword [rbp + 0x1b], 0x6c0070
mov dword [rbp + 0x1f], 0x72006f
mov dword [rbp + 0x23], 0x720065
mov dword [rbp + 0x27], 0x65002e
mov dword [rbp + 0x2b], 0x650078
mov rax, qword gs:[0x60]
mov dword [rbp - 0x29], 0x74006e
mov dword [rbp - 0x25], 0x6c0064
mov dword [rbp - 0x21], 0x2e006c
mov r10, qword [rax + 0x18]
add r10, 0x20
mov dword [rbp - 0x1d], 0x6c0064
mov dword [rbp - 0x19], 0x6c
movdqu xmmword [rbp - 0x11], xmm0
mov dword [rbp - 1], 0x616d726f
mov r9, qword [r10]
mov dword [rbp + 3], 0x6e6f6974
mov byte [rbp + 7], r15b
cmp r9, r10
je 0x1400019ef
nop dword [rax + rax]
mov rax, qword [r9 + 0x50]
lea r8, [rbp - 0x29]
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400019e3
inc rax
test ecx, ecx
jne 0x1400019d0
test edx, edx
je 0x140001a65
mov r9, qword [r9]
cmp r9, r10
jne 0x1400019c0
mov r11, r15
movsxd rax, dword [r11 + 0x3c]
mov rsi, r15
mov r10d, r15d
mov ecx, dword [rax + r11 + 0x88]
add rcx, r11
mov edi, dword [rcx + 0x1c]
mov r9d, dword [rcx + 0x20]
add rdi, r11
mov r14d, dword [rcx + 0x24]
add r9, r11
mov ebx, dword [rcx + 0x18]
add r14, r11
test ebx, ebx
je 0x140001a79
nop dword [rax]
nop word [rax + rax]
mov r8d, dword [r9]
lea rax, [rbp - 0x11]
add r8, r11
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140001a53
inc rax
test ecx, ecx
jne 0x140001a40
test edx, edx
je 0x140001a6b
inc r10d
add r9, 4
cmp r10d, ebx
jb 0x140001a30
jmp 0x140001a79
mov r11, qword [r9 + 0x20]
jmp 0x1400019f2
mov eax, r10d
movzx ecx, word [r14 + rax*2]
mov esi, dword [rdi + rcx*4]
add rsi, r11
mov edi, 0x40000
xor ecx, ecx
mov edx, edi
call fcn.140007e94
mov rbx, rax
test rax, rax
je 0x140001ac7
nop
lea r9, [rbp + 0xf]
mov r8d, edi
mov rdx, rbx
mov ecx, 0x39
call rsi
test eax, eax
je 0x140001af5
cmp eax, 0xc0000004
jne 0x140001acc
mov edi, dword [rbp + 0xf]
mov rcx, rbx
add edi, 0x1000
mov edx, edi
call fcn.140007e94
mov rbx, rax
test rax, rax
jne 0x140001a90
mov eax, 1
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140001b50
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [rbx + 0x40]
lea rdx, [rbp + 0x17]
mov rdi, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140001b2b
nop word [rax + rax]
mov eax, dword [rdi]
test eax, eax
je 0x140001b2f
add rdi, rax
lea rdx, [rbp + 0x17]
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140001b10
mov r15d, dword [rdi + 0x50]
mov rcx, rbx
call fcn.140007e9c
mov eax, r15d
jmp 0x140001acc
Function at 0x140002544
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000258e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000258e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000258e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000258e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000258e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002590
xor al, al
add rsp, 0x28
ret

Function at 0x140008bcc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400089c8
Function at 0x14000df74
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 0x14000dfa4
xor eax, eax
jmp 0x14000e067
mov rbp, rbx
cmp word [rax], si
je 0x14000dfc9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000dfb0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000dfac
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.14000de94
movsxd r14, eax
test eax, eax
jne 0x14000e007
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000df9d
mov rcx, r14
call fcn.14000a6ac
mov rdi, rax
test rax, rax
jne 0x14000e020
xor ecx, ecx
call fcn.140009a34
jmp 0x14000dffc
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.14000de94
test eax, eax
jne 0x14000e051
mov rcx, rdi
call fcn.140009a34
jmp 0x14000e05b
xor ecx, ecx
call fcn.140009a34
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 0x14001238c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400123a2
mov al, 1
jmp 0x140012402
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400123b3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140012400
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000e894
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140012400
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140012400
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140012400
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140012402
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140013440
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.14000cf64
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400134ca
cmp byte [rbp - 0x21], r15b
je 0x1400134c5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140013500
call fcn.140009c84
test eax, eax
jne 0x1400134ec
cmp byte [rbp - 0x21], r15b
je 0x1400134e4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140013500
cmp byte [rbp - 0x21], r15b
je 0x1400134fd
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.14000c544
test eax, eax
jne 0x1400135a0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000cf64
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001353f
cmp byte [rbp - 0x21], r15b
je 0x140013574
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140013574
call fcn.140009c84
test eax, eax
jne 0x140013560
cmp byte [rbp - 0x21], r15b
je 0x140013559
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140013574
cmp byte [rbp - 0x21], r15b
je 0x140013571
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.14000c544
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400135a0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400135a3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400135b1
mov rcx, rdi
call fcn.140009a34
cmp byte [rbp + 0x3f], r15b
je 0x1400135c0
mov rcx, qword [rbp + 0x27]
call fcn.140009a34
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 0x140015ab0
Capabilities:
Parse pe header

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

Function at 0x140010498
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400102c4
Function at 0x6d8b8a90
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8d95e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8b8c18
mov rax, qword [0x6d8d95e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8b8adc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8b8b65
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8b8ac0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8b8c4d
mov rax, qword [0x6d8d95e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d8d95e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8b8c30
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8b8b5e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8b8bc0
add dword [0x6d8d95e4], 1
cmp edi, 8
jae 0x6d8b8b93
test dil, 4
jne 0x6d8b8c04
test edi, edi
je 0x6d8b8b88
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8b8c1f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d8b8b88
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d8b8bac
jmp 0x6d8b8b88
add rsi, qword [0x6d8d95e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d8b8b5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d8b8b88
xor esi, esi
jmp 0x6d8b8ae7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8b8b88
mov rax, qword [0x6d8d95e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d8b93a0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8d98c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8d98a0]
test rbx, rbx
je 0x6d8b93f4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d8b93eb
test rsi, rsi
je 0x6d8b93eb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d8b93d0
lea rcx, [0x6d8d98c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]