joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003b0a0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x58
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov ecx, 1
call fcn.140072724
lea rcx, [rsp + 0x38]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x14003f970]
xor ecx, ecx
mov dword [rsp + 0x20], 0
xor edx, edx
call fcn.1400820b0
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14003b1b8
call fcn.14003b1f0
test al, al
je 0x14003b16a
mov rax, qword [0x1400d6b80]
test rax, rax
je 0x14003b137
cmp dword [rax + 0x308], 1
jne 0x14003b130
lea rcx, [rax + 0x10]
call fcn.140046620
test eax, eax
jle 0x14003b129
lea ecx, [rax + rax*4]
lea ecx, [rcx*8 + 0xfa]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [0x1400d6b80]
mov byte [rax + 0x490], 1
cmp dword [rsp + 0x38], 0
je 0x14003b1d6
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [rsp + 0x38], eax
je 0x14003b1cb
movaps xmm0, xmmword [rsp + 0x30]
lea rcx, [rsp + 0x40]
xor edx, edx
movdqa xmmword [rsp + 0x40], xmm0
call fcn.1400716d0
test eax, eax
jne 0x14003b1ad
jmp 0x14003b18a
cmp dword [rsp + 0x38], 0
je 0x14003b1d6
movaps xmm0, xmmword [rsp + 0x30]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
call fcn.1400716ac
test eax, eax
jne 0x14003b1e1
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [rsp + 0x38], 0
jne 0x14003b1a7
xor eax, eax
add rsp, 0x58
ret
call fcn.140081450
int3
mov ecx, 2
call fcn.1400702b4
int3
mov ecx, 6
mov dword [rsp + 0x38], 0
call fcn.1400702b4
int3
mov ecx, 5
call fcn.1400702b4
int3
mov ecx, 1
call fcn.1400702b4
int3
mov ecx, eax
call fcn.140070278
int3
Function at 0x1400408a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400d3048]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov edi, r9d
mov rbx, rdx
test r8b, r8b
jne 0x140040992
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.14001b290
mov rdx, rbx
lea rcx, [rsp + 0x80]
call fcn.14001b290
mov dword [rsp + 0xa0], edi
mov ecx, 0x48
call fcn.140072724
mov rbx, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.14001b290
nop
lea rcx, [rbx + 0x20]
lea rdx, [rsp + 0x80]
call fcn.14001b290
mov ecx, dword [rsp + 0xa0]
mov dword [rbx + 0x40], ecx
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x140044150]
xor edx, edx
xor ecx, ecx
call fcn.1400820b0
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400409d5
lea rcx, [rsp + 0x60]
call fcn.140040a00
cmp dword [rsp + 0x38], 0
je 0x1400409e8
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call fcn.1400716ac
test eax, eax
jne 0x1400409f3
jmp 0x1400409b4
cmp qword [rdx + 0x18], 8
jb 0x14004099c
mov rbx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x1400409a6
mov rcx, qword [rcx]
mov r8, rbx
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400726d0
mov rbx, qword [rsp + 0xe0]
add rsp, 0xc0
pop rdi
ret
mov dword [rsp + 0x38], 0
mov ecx, 6
call fcn.1400702b4
nop
mov ecx, 1
call fcn.1400702b4
int3
mov ecx, eax
call fcn.140070278
int3

Function at 0x140040ac0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x1400d3048]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140040b30
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14001d490
mov dword [rsp + 0x30], 1
mov r8d, 0xd
lea rdx, [0x1400c0440]
mov rcx, rbx
call fcn.140026c10
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400726d0
add rsp, 0x260
pop rbx
ret
Function at 0x1400458d0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x8f8
mov rax, qword [0x1400d3048]
xor rax, rsp
mov qword [rsp + 0x8e0], rax
xor edx, edx
lea rcx, [rsp + 0xe0]
mov r8d, 0x800
call fcn.140074af0
mov r8d, 0x400
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm1, xmm1
mov dword [rsp + 0x70], 0x68
xor eax, eax
lea rcx, [rsp + 0xe0]
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
mov dword [rsp + 0xd4], eax
xor r9d, r9d
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor edx, edx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x74], xmm1
movups xmmword [rsp + 0x84], xmm1
movups xmmword [rsp + 0x94], xmm1
movups xmmword [rsp + 0xa4], xmm1
movups xmmword [rsp + 0xb4], xmm1
movups xmmword [rsp + 0xc4], xmm1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400459ba
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call fcn.140081c24
int3

Function at 0x14004bd80
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400d3048]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movzx edi, r8b
xor ebp, ebp
lea rcx, [rsp + 0x60]
call fcn.140014320
mov rsi, rax
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1400d6b80]
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.140014320
mov byte [rsp + 0xa0], dil
mov qword [rsp + 0xa8], rbx
lea ecx, [rbp + 0x30]
call fcn.140072724
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rsp + 0x90]
movups xmmword [rax + 0x10], xmm1
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x98], 0xf
mov byte [rsp + 0x80], bpl
mov byte [rax + 0x20], dil
mov qword [rax + 0x28], rbx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebp
mov r9, rax
lea r8, [0x140035c30]
xor edx, edx
xor ecx, ecx
call fcn.1400820b0
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14004bf03
cmp dword [rsp + 0x48], ebp
je 0x14004bf12
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call fcn.1400716ac
test eax, eax
jne 0x14004bf1d
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x14004bec5
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x14004bec0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004befd
mov rcx, r8
call fcn.1400726f0
mov qword [rsi + 0x10], rbp
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400726d0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140079308
nop
mov dword [rsp + 0x48], ebp
mov ecx, 6
call fcn.1400702b4
nop
mov ecx, 1
call fcn.1400702b4
int3
mov ecx, eax
call fcn.140070278
int3
Function at 0x14004c790
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x1400d3048]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
xor esi, esi
cmp byte [0x1400d72c9], sil
jne 0x14004c99c
mov byte [0x1400d72c9], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
sub rax, qword [rbx + 0x2f0]
mov ecx, 0x1f4
mov edx, 0x9c4
cmp rax, rdx
cmova ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbx + 0xf0]
test rcx, rcx
je 0x14004c808
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x1400d6aa0]
mov r8d, dword [rbx + 0xb0]
xor edx, edx
mov ecx, 0xc3a
call rax
mov qword [rbx + 0xf0], rax
lea rcx, [rbx + 0x70]
call fcn.1400596c0
mov dword [rbp - 0x29], esi
mov dword [rbp - 0x39], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x14004c8a8
lea rdx, [rbp - 0x39]
mov rcx, qword [rbx + 0xf0]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x14004c8a8
mov eax, dword [rbp - 0x39]
cmp dword [rbp - 0x29], eax
je 0x14004c8a8
lea r8, [0x1400d6d50]
cmp qword [0x1400d6d68], 8
cmovae r8, qword [0x1400d6d50]
lea rdx, [0x1400d6f90]
cmp qword [0x1400d6fa8], 8
cmovae rdx, qword [0x1400d6f90]
xor ecx, ecx
lea r9d, [rcx + 0x10]
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x14004c963
cmp qword [rbx + 0xf0], rsi
jne 0x14004c98a
lea rdx, [0x1400d6f30]
lea rcx, [rbp - 9]
call fcn.14001b290
lea rdx, [0x1400d6d50]
lea rcx, [rbp + 0x17]
call fcn.14001b290
mov dword [rbp + 0x37], 0x10
mov ecx, 0x48
call fcn.140072724
mov rbx, rax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x39], rax
lea rdx, [rbp - 9]
mov rcx, rax
call fcn.14001b290
nop
lea rcx, [rbx + 0x20]
lea rdx, [rbp + 0x17]
call fcn.14001b290
mov ecx, dword [rbp + 0x37]
mov dword [rbx + 0x40], ecx
mov qword [rbp - 0x29], rbx
lea rax, [rbp - 0x11]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, rbx
lea r8, [0x140044150]
xor edx, edx
xor ecx, ecx
call fcn.1400820b0
mov qword [rbp - 0x19], rax
test rax, rax
je 0x14004c98e
lea rcx, [rbp - 9]
call fcn.140040a00
cmp dword [rbp - 0x11], 0
je 0x14004c9a2
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 0x29], xmm0
lea rcx, [rbp - 0x29]
call fcn.1400716ac
test eax, eax
jne 0x14004c9ad
xor al, al
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400726d0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov al, 1
jmp 0x14004c965
mov dword [rbp - 0x11], esi
mov ecx, 6
call fcn.1400702b4
nop
call fcn.1400458d0
nop
mov ecx, 1
call fcn.1400702b4
int3
mov ecx, eax
call fcn.140070278
int3
Function at 0x140059ba0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1400d3048]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor edi, edi
mov rax, qword [0x1400d6ab8]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x80]
call rax
mov rbx, rax
test rax, rax
jne 0x140059d30
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.140059d80
nop
lea r8, [0x1400d6f70]
cmp qword [0x1400d6f88], 8
cmovae r8, qword [0x1400d6f70]
mov r9, qword [0x1400d6f80]
mov rcx, rax
call fcn.140034600
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea r8, [0x1400d6d50]
cmp qword [0x1400d6d68], 8
cmovae r8, qword [0x1400d6d50]
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140059cd8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059cd3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140059d79
call fcn.1400726f0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], di
mov rdx, qword [rsp + 0x80]
cmp rdx, 8
jb 0x140059d2c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059d27
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140059d73
call fcn.1400726f0
xor al, al
jmp 0x140059d52
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400726d0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.140079308
nop
call fcn.140079308
nop
int3
Function at 0x14005c000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov ebp, r9d
xor r8d, r8d
mov rsi, rdx
mov rbx, rcx
cmp rdi, 0xffffffffffffffff
jne 0x14005c064
movzx eax, byte [rdx]
mov edi, r8d
test al, al
je 0x14005c058
nop dword [rax]
nop word [rax + rax]
imul r8d, r8d, 0x1003f
inc rdi
movzx eax, al
add r8d, eax
movzx eax, byte [rdi + rdx]
test al, al
jne 0x14005c040
test rdi, rdi
jne 0x14005c092
xor eax, eax
jmp 0x14005c117
mov rdx, r8
test rdi, rdi
je 0x14005c05d
nop dword [rax]
movzx eax, byte [rdx + rsi]
test al, al
je 0x14005c08c
imul r8d, r8d, 0x1003f
inc rdx
add r8d, eax
cmp rdx, rdi
jb 0x14005c070
jmp 0x14005c058
mov r8d, 0x11
mov eax, dword [rcx + 0x128]
mov edx, r8d
movzx ecx, byte [rcx + 0x12c]
xor edx, ebp
mov qword [rsp + 0x30], r14
mov r14d, 0xffffffff
cmp ebp, r14d
cmove edx, r8d
imul rax, rdx
shr rax, cl
imul eax, dword [rbx + 0x120]
mov rbx, qword [rbx + 0x110]
sub edx, eax
mov rbx, qword [rbx + rdx*8]
test rbx, rbx
je 0x14005c10f
mov eax, dword [rbx + 0x30]
cmp eax, edi
jne 0x14005c0fe
cmp dword [rbx + 0x14], ebp
jne 0x14005c0fe
lea rcx, [rbx + 0x34]
cmp eax, 0xb
jbe 0x14005c0ef
mov rcx, qword [rbx + 0x38]
mov r8d, edi
mov rdx, rsi
call fcn.140075540
test eax, eax
je 0x14005c106
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14005c0d6
test rbx, rbx
je 0x14005c10f
mov r14d, dword [rbx + 0xc]
mov eax, r14d
mov r14, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140065610
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1400d3048]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, qword [r9 + 0x10]
mov rdi, r9
mov rsi, r8
mov r14, rdx
mov r15, rcx
cmp rbx, 0x20
ja 0x14006572c
xor r12d, r12d
nop dword [rax + rax]
mov r10, qword [rdi + 8]
mov r9, r12
test rbx, rbx
je 0x140065698
lea rax, [rsp + 0x20]
sub r10, rax
nop dword [rax]
nop dword [rax + rax]
lea r8, [rsp + 0x20]
mov ecx, 0x20
add r8, r9
movzx edx, byte [r10 + r8]
lea eax, [rdx - 0x41]
cmp al, 0x19
cmova ecx, r12d
inc r9
xor cl, dl
mov byte [r8], cl
cmp r9, rbx
jb 0x140065670
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1400652b0
mov dword [r14], eax
test eax, eax
jne 0x140065754
mov rax, qword [r15]
movzx ecx, byte [rax + 0x48]
lea eax, [rcx - 1]
cmp al, 1
jbe 0x1400656dc
cmp cl, 6
je 0x1400656cd
cmp cl, 0xc
je 0x1400656cd
mov eax, r12d
jmp 0x1400656e9
mov r8, rbx
lea rdx, [rsp + 0x20]
call fcn.14006f660
jmp 0x1400656e9
mov r8, rbx
lea rdx, [rsp + 0x20]
call fcn.14006bb00
mov dword [r14], eax
test eax, eax
jne 0x140065754
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140064e90
test eax, eax
je 0x14006572c
mov ecx, dword [rsi]
test eax, ecx
jne 0x14006574d
or ecx, eax
xor r8d, r8d
mov dword [rsi], ecx
mov rdx, rdi
lea rcx, [r15 + 8]
call fcn.14006aba0
cmp al, 2
jne 0x14006572c
mov rbx, qword [rdi + 0x10]
cmp rbx, 0x20
jbe 0x140065650
mov eax, 0x1a
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400726d0
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, 0x37
jmp 0x140065731
xor r8d, r8d
lea rcx, [r15 + 8]
mov rdx, rdi
call fcn.14006aba0
cmp al, 2
jne 0x1400657d2
mov rdx, qword [rdi + 0x10]
cmp rdx, 0x20
ja 0x1400657d2
mov r11, qword [rdi + 8]
mov r10, r12
test rdx, rdx
je 0x1400657ba
lea rax, [rsp + 0x20]
sub r11, rax
nop word [rax + rax]
lea r9, [rsp + 0x20]
mov ecx, 0x20
add r9, r10
movzx r8d, byte [r11 + r9]
lea eax, [r8 - 0x41]
cmp al, 0x19
cmova ecx, r12d
inc r10
xor cl, r8b
mov byte [r9], cl
cmp r10, rdx
jb 0x140065790
lea rcx, [rsp + 0x20]
call fcn.140064e90
cmp eax, 0x10
jne 0x1400657d2
or dword [rsi], eax
xor eax, eax
jmp 0x140065731
mov rax, qword [rdi + 8]
mov qword [r15 + 0x18], rax
xor eax, eax
jmp 0x140065731
Function at 0x140073760
Capabilities:
Parse pe header

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

Function at 0x140081c24
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140081ab7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140081ab7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140081ab7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140081ab7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140081ab7
cmp dword [rcx + 0x84], 0xe
jbe 0x140081ab7
cmp dword [rcx + 0xf8], 0
je 0x140081ab7
mov ecx, ebx
call fcn.140081b58
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140081948
cmp dword [rbp + 0x20], 0
je 0x140081b04
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140081b0c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140081a50
Function at 0x1400954e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140095508
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140095508
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400ab9a0]
mov dword [rax], 1
mov rax, qword [0x1400ab9b0]
mov dword [rax], 1
mov rax, qword [0x1400ab9c0]
mov dword [rax], 1
mov rax, qword [0x1400ab940]
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 0x140025780
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140089f30
sub rsp, rax
xor eax, eax
xor edx, edx
xor esi, esi
mov r14d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x80], ax
mov r12, rcx
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x2e]
mov word [rsp + 0x30], dx
test dil, dil
je 0x140025829
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x1400257ee
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1400257e0
test rax, rax
je 0x14009ae2e
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [r12 + rsi]
test dil, dil
jne 0x1400257c8
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140025858
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10080
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [8]
ud2

Function at 0x140025870
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor eax, eax
xor esi, esi
mov r13d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x30], ax
mov rbp, rcx
mov r14, rdx
lea r15, [rsp + 0x30]
lea r12, [rsp + 0x2e]
test dil, dil
je 0x140025911
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x1400258d6
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1400258c8
test rax, rax
je 0x14009ae34
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [rbp + rsi]
test dil, dil
jne 0x1400258b0
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret