joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140144060
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x20
mov rbx, rdx
mov rsi, rcx
mov rcx, rbx
mov edx, 0x5f
call sub.msvcrt.dll_strrchr
mov r14, rax
test rax, rax
je 0x140144186
mov qword [rsp + 0x40], rbp
lea rbp, [0x1401d9cf0]
mov qword [rsp + 0x48], rdi
mov byte [rax], 0
nop dword [rax]
xor edi, edi
cmp dword [rsi + 0x28], edi
jle 0x1401440ea
nop word [rax + rax]
mov eax, edi
mov rdx, rbx
xor eax, 1
cmp edi, 2
cmovge eax, edi
xor r8d, r8d
movsxd rcx, eax
mov rax, qword [rsi + 0x20]
shl rcx, 5
mov rcx, qword [rcx + rax + 0x18]
add rcx, 8
call fcn.1400fcac0
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14014412b
inc edi
cmp edi, dword [rsi + 0x28]
jl 0x1401440b0
lea r8, str.sqlite_master
sub r8, rbx
movzx ecx, byte [rbx]
movzx eax, byte [r8 + rbx]
cmp ecx, eax
jne 0x140144118
test ecx, ecx
jne 0x140144124
mov rax, qword [rsi + 0x20]
cmp qword [rax + 0x20], 0
jne 0x140144129
lea rbx, str.sqlite_temp_master
jmp 0x1401440a0
movzx edx, byte [rax + rbp]
movzx ecx, byte [rcx + rbp]
cmp ecx, edx
jne 0x140144129
inc rbx
jmp 0x1401440f4
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov byte [r14], 0x5f
test rax, rax
je 0x140144186
cmp dword [rax + 0x54], 0
je 0x140144186
mov rax, qword [rax + 0x58]
lea rcx, [rsi + 0x1f8]
xor r8d, r8d
mov rdx, qword [rax]
call fcn.1400fcac0
mov rax, qword [rax + 0x10]
test rax, rax
je 0x140144186
mov rax, qword [rax]
cmp dword [rax], 3
jl 0x140144186
mov rdx, qword [rax + 0xb8]
test rdx, rdx
je 0x140144186
lea rcx, [r14 + 1]
add rsp, 0x20
pop r14
pop rsi
pop rbx
jmp rdx
xor eax, eax
add rsp, 0x20
pop r14
pop rsi
pop rbx
ret
Function at 0x1401676a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov qword [rcx], 0
mov ecx, 0x28
mov rsi, r8
mov rbp, rdx
call fcn.1401354c0
mov rbx, rax
test rax, rax
jne 0x1401676de
lea eax, [rbx + 7]
jmp 0x140167765
cmp byte [0x140227484], 0
je 0x140167732
mov rax, qword [0x140227608]
test rax, rax
je 0x1401676fe
mov ecx, 0xc8
call rax
test eax, eax
jne 0x140167732
lea rax, [rbx + 8]
mov qword [rbx + 0x10], rbp
mov qword [rsp + 0x28], rax
lea r8, [0x140145a50]
mov r9, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
mov qword [rbx + 0x18], rsi
xor ecx, ecx
call sub.msvcrt.dll__beginthreadex
mov qword [rbx], rax
test rax, rax
jne 0x140167747
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
cmp qword [rbx + 0x10], 0
jne 0x140167760
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, rsi
mov dword [rbx + 8], eax
call rbp
mov qword [rbx + 0x20], rax
mov qword [rdi], rbx
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140179790
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rax, vtable.ui::CMenuUI.1.0
add rcx, 0xfffffffffffff890
xor r9d, r9d
xor r8d, r8d
mov qword [rcx], rax
lea rax, vtable.ui::CMenuUI.2.0
mov qword [rbx - 0x50], rax
mov rax, qword [rbx - 0x768]
movsxd rdx, dword [rax + 4]
lea rax, vtable.ui::CMenuUI.0
mov qword [rdx + rbx - 0x768], rax
xor edx, edx
call fcn.14003c880
mov rcx, qword [rbx - 0x20]
test rcx, rcx
je 0x1401797f4
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
call fcn.140027810
lea rcx, [rbx - 0x28]
add rsp, 0x20
pop rbx
jmp fcn.1400454d0
Function at 0x140195070
Capabilities:
Encode data using xor

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
movsxd r14, dword [rcx + 8]
mov r12, r9
mov rdi, qword [rsp + 0xb0]
mov esi, edx
mov rbp, rcx
test edx, edx
jne 0x14019515f
mov eax, dword [r9]
lea r10, [rdi + 4]
mov ecx, eax
and ecx, 0xff00
add ecx, 0xff
xor ecx, eax
and eax, 0xff00ff00
sub eax, 0xffff01
and ecx, 0xff00ff
xor ecx, eax
mov dword [rdi], ecx
lea ecx, [r14 - 1]
mov eax, dword [r10 - 4]
movsxd r11, ecx
test ecx, ecx
jle 0x140195145
mov rbx, r9
sub rbx, r10
nop dword [rax]
nop word [rax + rax]
mov r9d, dword [rbx + r10 + 4]
lea r10, [r10 + 4]
movzx r8d, ax
mov ecx, r9d
and ecx, 0xff00
mov edx, r9d
add r8d, ecx
and edx, 0xffff00ff
mov ecx, eax
and r9d, 0xff00ff00
and eax, 0xff00ffff
and ecx, 0xffff00ff
add edx, ecx
xor r8d, edx
and r8d, 0xff00ff
lea ecx, [r9 + rax]
mov eax, r8d
xor eax, ecx
mov dword [r10 - 4], eax
sub r11, 1
jne 0x1401950f0
lea rax, [r14*4]
mov esi, 1
add r12, rax
mov dword [rsp + 0x98], esi
add rdi, rax
mov ecx, dword [rbp + 4]
lea edx, [r14 - 1]
mov eax, 1
mov r13, r14
shl eax, cl
add edx, eax
mov dword [rsp + 0x90], eax
shr edx, cl
mov dword [rsp + 0x24], edx
lea ebx, [rax - 1]
mov eax, esi
sar eax, cl
imul eax, edx
mov dword [rsp + 0x20], ebx
movsxd rcx, eax
mov rax, qword [rbp + 0x10]
mov ebp, dword [rsp + 0xa0]
lea r10, [rax + rcx*4]
mov qword [rsp + 0x28], r10
cmp esi, ebp
jge 0x1401952eb
mov rax, r14
mov qword [rsp + 0x48], r15
neg rax
shl rax, 2
sub r12, rdi
mov qword [rsp + 0x30], rax
mov qword [rsp + 0xa8], r12
nop dword [rax + rax]
mov r9d, dword [rax + rdi]
add r12, rdi
movzx r8d, r9w
mov r11d, 1
mov r15, r10
mov edx, dword [r12]
mov eax, edx
and eax, 0xff00
mov ecx, edx
add r8d, eax
and ecx, 0xffff00ff
mov eax, r9d
and edx, 0xff00ff00
and eax, 0xffff00ff
and r9d, 0xff00ffff
add ecx, eax
add r9d, edx
xor r8d, ecx
and r8d, 0xff00ff
xor r8d, r9d
mov dword [rdi], r8d
cmp r14d, r11d
jle 0x1401952ab
mov esi, dword [rsp + 0x90]
mov ebp, ebx
not ebp
nop dword [rax + rax]
mov eax, dword [r15]
lea rcx, [0x140230d20]
shr rax, 8
lea r15, [r15 + 4]
and eax, 0xf
mov ebx, r14d
mov r10, qword [rcx + rax*8]
mov ecx, ebp
and ecx, r11d
add ecx, esi
cmp ecx, r14d
cmovle ebx, ecx
movsxd rcx, r11d
mov r8d, ebx
sub r8d, r11d
lea rax, [rcx*4]
sub rcx, r13
lea r9, [rax + rdi]
lea rdx, [rdi + rcx*4]
lea rcx, [r12 + rax]
call r10
mov r11d, ebx
cmp ebx, r14d
jl 0x140195240
mov esi, dword [rsp + 0x98]
mov r10, qword [rsp + 0x28]
mov ebx, dword [rsp + 0x20]
mov ebp, dword [rsp + 0xa0]
inc esi
lea rax, [r13*4]
add rdi, rax
mov dword [rsp + 0x98], esi
test esi, ebx
jne 0x1401952d1
movsxd rax, dword [rsp + 0x24]
lea r10, [r10 + rax*4]
mov qword [rsp + 0x28], r10
mov r12, qword [rsp + 0xa8]
mov rax, qword [rsp + 0x30]
cmp esi, ebp
jl 0x1401951d0
mov r15, qword [rsp + 0x48]
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140195600
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
movsxd rax, edx
mov r9, rcx
lea rdx, [rcx + rax*4]
mov r11, rdx
sub r11, rcx
add r11, 3
shr r11, 2
cmp rcx, rdx
cmova r11, r10
test r11, r11
je 0x140195675
nop word [rax + rax]
mov edx, dword [r9]
lea r8, [r8 + 2]
mov ecx, edx
lea r9, [r9 + 4]
shr ecx, 0x10
mov eax, edx
shr eax, 0xd
inc r10
xor cl, al
mov eax, edx
and cl, 7
shr eax, 0x10
xor cl, al
mov eax, edx
mov byte [r8 - 2], cl
mov ecx, edx
shr ecx, 5
shr eax, 3
xor cl, al
shr edx, 5
and cl, 0x1f
xor cl, dl
mov byte [r8 - 1], cl
cmp r10, r11
jb 0x140195630
ret

Function at 0x1401b08e0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x1402295b8]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, ILCombine
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1401b091c
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.14017c338
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x1401b09d8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x1401b0a3e
test ebx, ebx
jne 0x1401b0a3e
lea ecx, [rax + 2]
call fcn.14017c338
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.1401c4d70
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret
Function at 0x1401c0900
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
mov dword [rsp + 0x60], 0
xor ecx, ecx
mov dword [rsp + 0x68], 2
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401c0962
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401c0962
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
jne 0x1401c0962
mov eax, 0x20b
cmp word [rdx + 0x18], ax
jne 0x1401c0962
cmp dword [rdx + 0x84], 0xe
jbe 0x1401c0962
cmp dword [rdx + 0xf8], 0
je 0x1401c0962
mov ecx, ebx
call fcn.1401c07c0
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x1402301e8]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.1401c0640
cmp dword [rsp + 0x60], 0
jne 0x1401c09a5
mov ecx, ebx
call fcn.1401c0770
int3
add rsp, 0x40
pop rbx
ret

Function at 0x1401c09f0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov ebx, ecx
xor ecx, ecx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401c0a4c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401c0a4c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401c0a4c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401c0a4c
cmp dword [rcx + 0x84], 0xe
jbe 0x1401c0a4c
cmp dword [rcx + 0xf8], 0
je 0x1401c0a4c
mov ecx, ebx
call fcn.1401c07c0
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x1402301e8]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.1401c0640
cmp dword [rsp + 0x60], 0
jne 0x1401c0a8f
mov ecx, ebx
call fcn.1401c0770
int3
add rsp, 0x40
pop rbx
ret
Function at 0x1401c1390
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x530
mov rax, qword [0x1402295b8]
xor rax, rsp
mov qword [rsp + 0x520], rax
xor ebx, ebx
mov rdi, rdx
mov esi, ecx
test rdx, rdx
je 0x1401c13fc
lea edx, [rbx + 0x2d]
mov rcx, rdi
call sub.msvcrt.dll_strchr
test rax, rax
je 0x1401c13fc
mov ecx, ebx
lea r8, [rsp + 0x120]
mov rdx, rdi
nop dword [rax]
movsx eax, byte [rdx]
test al, al
je 0x1401c144f
mov word [r8], ax
inc ecx
add r8, 2
inc rdx
cmp ecx, 0x100
jne 0x1401c13e0
mov rcx, qword [0x140230250]
test rcx, rcx
jne 0x1401c1432
call fcn.1401c2ab0
mov rcx, rax
lea rdx, str.setlocale
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov rcx, 0xffffffffffffffff
cmovne rcx, rax
mov qword [0x140230250], rcx
cmp rcx, 0xffffffffffffffff
cmovne rbx, rcx
test rbx, rbx
je 0x1401c1533
mov rdx, rdi
mov ecx, esi
call rbx
jmp 0x1401c1535
movsxd rax, ecx
add rax, rax
cmp rax, 0x200
jae 0x1401c155a
mov edx, 0x2d
mov word [rsp + rax + 0x120], bx
lea rcx, [rsp + 0x120]
call sub.msvcrt.dll_wcsrchr
test rax, rax
je 0x1401c13fc
mov r9d, 0xff
lea r8, [rsp + 0x320]
mov edx, 0x1001
lea rcx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x1401c13fc
lea ecx, [rax - 1]
mov r9d, 0x100
movsxd rdx, ecx
lea r8, [rsp + 0x320]
sub r9d, eax
mov ecx, 0x5f
cdqe
mov word [rsp + rdx*2 + 0x320], cx
mov edx, 0x1002
lea rcx, [rsp + 0x120]
lea r8, [r8 + rax*2]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x1401c13fc
lea rcx, [rsp + 0x320]
mov eax, ebx
lea rdx, [rsp + 0x20]
movzx r8d, word [rcx]
test r8w, r8w
je 0x1401c1523
mov byte [rdx], r8b
inc eax
inc rdx
add rcx, 2
cmp eax, 0x100
jne 0x1401c1501
jmp 0x1401c13fc
cdqe
lea rdi, [rsp + 0x20]
mov byte [rsp + rax + 0x20], bl
jmp 0x1401c13fc
xor eax, eax
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.1401c4d70
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1401c4ea4
int3
Function at 0x140001040
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
sub rsp, 0x298
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x251
call fcn.140001bd0
xor r8d, r8d
lea rcx, [0x14001a130]
lea r9, section..data
sub r9, rcx
nop dword [rax]
movzx eax, byte [r9 + rcx]
lea rcx, [rcx + 1]
mov byte [rsp + r8 + 0x30], al
movzx eax, byte [rcx - 1]
mov byte [rsp + r8 + 0x31], al
add r8, 2
cmp r8, 0x251
jl 0x140001070
xor ecx, ecx
mov edx, 0x251
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea rcx, [rsp + 0x30]
mov r8d, 4
mov r10, rax
mov rdx, rax
nop dword [rax]
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rdx - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rdx - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rdx - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rdx - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rdx - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rdx - 0x20], xmm0
movups xmmword [rdx - 0x10], xmm1
sub r8, 1
jne 0x1400010c0
movups xmm0, xmmword [rcx]
movzx eax, byte [rcx + 0x50]
xor r9d, r9d
movups xmm1, xmmword [rcx + 0x10]
mov qword [rsp + 0x28], r8
movups xmmword [rdx], xmm0
mov dword [rsp + 0x20], r8d
mov r8, r10
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x10], xmm1
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x20], xmm0
movups xmm0, xmmword [rcx + 0x40]
xor ecx, ecx
movups xmmword [rdx + 0x30], xmm1
movups xmmword [rdx + 0x40], xmm0
mov byte [rdx + 0x50], al
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
add rsp, 0x298
ret

Function at 0x14000587c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005678
Function at 0x14000893c
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 0x14000896c
xor eax, eax
jmp 0x140008a2f
mov rbp, rbx
cmp word [rax], si
je 0x140008991
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140008978
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140008974
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.14000885c
movsxd r14, eax
test eax, eax
jne 0x1400089cf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140008965
mov rcx, r14
call fcn.140009818
mov rdi, rax
test rax, rax
jne 0x1400089e8
xor ecx, ecx
call fcn.140006ebc
jmp 0x1400089c4
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.14000885c
test eax, eax
jne 0x140008a19
mov rcx, rdi
call fcn.140006ebc
jmp 0x140008a23
xor ecx, ecx
call fcn.140006ebc
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 0x14000bf20
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.14000792c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000bfaa
cmp byte [rbp - 0x21], r15b
je 0x14000bfa5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000bfe0
call fcn.14000a028
test eax, eax
jne 0x14000bfcc
cmp byte [rbp - 0x21], r15b
je 0x14000bfc4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000bfe0
cmp byte [rbp - 0x21], r15b
je 0x14000bfdd
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.140006f0c
test eax, eax
jne 0x14000c080
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000792c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000c01f
cmp byte [rbp - 0x21], r15b
je 0x14000c054
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000c054
call fcn.14000a028
test eax, eax
jne 0x14000c040
cmp byte [rbp - 0x21], r15b
je 0x14000c039
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000c054
cmp byte [rbp - 0x21], r15b
je 0x14000c051
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.140006f0c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000c080
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000c083
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000c091
mov rcx, rdi
call fcn.140006ebc
cmp byte [rbp + 0x3f], r15b
je 0x14000c0a0
mov rcx, qword [rbp + 0x27]
call fcn.140006ebc
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 0x2fc4d3c20
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d4d00
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d4622
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f7108]
test eax, eax
je 0x2fc4d46ba
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f7110]
mov qword [rbp - 8], rax
jmp 0x2fc4d469e
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 0x2fc4d4692
cmp qword [rbp - 0x10], 0
je 0x2fc4d4692
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 0x2fc4d4658
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d46bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d47c0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d47e8
mov eax, 0
jmp 0x2fc4d4836
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 0x2fc4d4811
mov eax, 0
jmp 0x2fc4d4836
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d4831
mov eax, 0
jmp 0x2fc4d4836
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d483c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d48ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d48b1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d48b1
mov rax, qword [rbp - 8]
jmp 0x2fc4d48cf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d4884
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000180c
Capabilities:
Parse pe header

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

Function at 0x140008200
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007ffc