joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001380
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xc8
xor ecx, ecx
call fcn.14001de1c
mov rcx, rax
call fcn.14001dea4
mov edx, 0x8000
mov ecx, eax
call fcn.140022974
mov ecx, 1
call fcn.14001de1c
mov rcx, rax
call fcn.14001dea4
mov edx, 0x8000
mov ecx, eax
call fcn.140022974
mov ecx, 0x21
call fcn.14001abe0
mov qword [rsp + 0x50], rax
xor ecx, ecx
call fcn.14001de1c
mov r9, rax
mov r8d, 0x21
mov edx, 1
mov rcx, qword [rsp + 0x50]
call fcn.14001e12c
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x38], 0
mov edx, 4
lea rcx, [rsp + 0x40]
call fcn.140002440
mov edx, 0x20
lea rcx, [rsp + 0x58]
call fcn.140002440
mov edx, 0x40
lea rcx, [rsp + 0x48]
call fcn.140002440
mov r9d, 1
mov r8d, 0x20
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call fcn.140002590
xor eax, eax
cmp eax, 1
je 0x140001677
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov r9d, 1
mov r8d, 4
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call fcn.140002590
mov ecx, 0x40
call fcn.14001abe0
mov qword [rsp + 0x30], rax
xor ecx, ecx
call fcn.14001de1c
mov r9, rax
mov r8d, 0x40
mov edx, 1
mov rcx, qword [rsp + 0x30]
call fcn.14001e12c
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0x40
je 0x1400014c6
jmp 0x140001677
mov r9d, 1
mov r8d, 0x40
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
call fcn.140002590
mov dword [rsp + 0x24], 0
mov eax, 4
imul rax, rax, 0
cmp dword [rsp + rax + 0x20], 0
jne 0x140001635
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x78], rax
mov r9d, 1
mov r8d, 1
mov edx, dword [0x140050b80]
mov rcx, qword [rsp + 0x70]
call fcn.140001bb0
lea rcx, [rsp + 0x80]
mov rdi, rcx
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov r9d, 1
mov r8d, 1
mov edx, dword [0x140050b84]
mov rcx, qword [rsp + 0x78]
call fcn.140001bb0
lea rcx, [rsp + 0x90]
mov rdi, rcx
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x90]
call fcn.140002d80
test eax, eax
je 0x1400015a4
jmp 0x1400015bd
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
call fcn.140001340
mov eax, dword [0x140050b84]
imul eax, dword [0x140050b80]
cdqe
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov r9d, 2
mov r8d, 4
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.140002590
call fcn.140001cb0
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140001630
mov eax, 4
imul rax, rax, 0
mov dword [rsp + rax + 0x20], 1
mov ecx, dword [rsp + 0x28]
call fcn.140002060
mov rdx, rax
lea rcx, str.kernel_launch_failed_with_error___s_._n
call fcn.140001c50
jmp 0x1400014e9
mov r9d, 2
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call fcn.140002590
mov ecx, 1
call fcn.14001de1c
mov r9, rax
mov r8d, 0x28
mov edx, 1
mov rcx, qword [rsp + 0x30]
call fcn.14001e5cc
jmp 0x14000144f
add rsp, 0xc8
pop rdi
pop rsi
ret
Function at 0x140003010
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x18
mov rax, qword [0x140050080]
xor rax, rsp
mov qword [rsp + 8], rax
mov r10, r9
mov r9d, edx
mov r11, rcx
test edx, edx
jne 0x140003044
xor eax, eax
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.1400169f0
add rsp, 0x18
ret
mov rcx, qword [r8]
mov qword [rsp], rcx
movzx eax, cl
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [rsp + 1]
xor edx, eax
movzx eax, byte [rsp + 2]
imul r8d, edx, 0x1000193
xor r8d, eax
movzx eax, byte [rsp + 3]
imul edx, r8d, 0x1000193
xor edx, eax
movzx eax, byte [rsp + 4]
imul r8d, edx, 0x1000193
xor r8d, eax
movzx eax, byte [rsp + 5]
imul edx, r8d, 0x1000193
xor edx, eax
movzx eax, byte [rsp + 6]
imul r8d, edx, 0x1000193
xor r8d, eax
movzx eax, byte [rsp + 7]
imul edx, r8d, 0x1000193
xor edx, eax
imul r8d, edx, 0x1000193
xor edx, edx
mov eax, r8d
div r9d
mov rax, qword [r11 + rdx*8]
lea rdx, [r11 + rdx*8]
test rax, rax
je 0x1400030e4
cmp qword [rax + 8], rcx
je 0x1400030e4
mov rdx, rax
mov rax, qword [rax]
test rax, rax
jne 0x1400030d3
test r10, r10
je 0x1400030ec
mov dword [r10], r8d
mov rax, rdx
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.1400169f0
add rsp, 0x18
ret

Function at 0x140003850
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140003986
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov qword [rsp + 0x10], rbp
mov rdi, r8
lea rbp, str._.C
mov rsi, rdx
mov r11, rcx
xor ebx, ebx
nop dword [rax + rax]
movzx r8d, byte [rbx + rsi]
movzx r10d, byte [r11 + 0x40]
movzx eax, r8b
xor al, byte [r11 + r10]
lea r9, [r11 + r10]
mov byte [r9 + 0x20], al
mov ecx, r8d
mov byte [r9 + 0x10], r8b
movzx eax, byte [r11 + 0x41]
xor rcx, rax
movzx eax, byte [r9 + 0x30]
movzx edx, byte [rcx + rbp]
xor edx, eax
lea eax, [r10 + 1]
and eax, 0xf
mov byte [r9 + 0x30], dl
mov byte [r11 + 0x41], dl
mov byte [r11 + 0x40], al
test al, al
jne 0x14000396a
xor dl, dl
xor r8b, r8b
nop dword [rax]
nop dword [rax + rax]
lea rax, [r11 + 1]
mov r9d, 8
nop word [rax + rax]
movzx ecx, dl
lea rax, [rax + 6]
movzx edx, byte [rcx + rbp]
movzx ecx, byte [rax - 7]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 7], dl
movzx edx, byte [rcx + rbp]
movzx ecx, byte [rax - 6]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 6], dl
movzx edx, byte [rcx + rbp]
movzx ecx, byte [rax - 5]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 5], dl
movzx edx, byte [rcx + rbp]
movzx ecx, byte [rax - 4]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 4], dl
movzx edx, byte [rcx + rbp]
movzx ecx, byte [rax - 3]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 3], dl
movzx edx, byte [rcx + rbp]
movzx ecx, byte [rax - 2]
xor edx, ecx
mov byte [rax - 2], dl
sub r9, 1
jne 0x1400038f0
add dl, r8b
inc r8b
cmp r8b, 0x12
jb 0x1400038e0
inc rbx
cmp rbx, rdi
jb 0x140003880
mov rbp, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
pop rdi
ret
Function at 0x140003990
Capabilities:
Encode data using xor

Disassembly:
movzx r9d, byte [rcx + 0x40]
lea r11, str._.C
lea r8, [rcx + r9]
movzx eax, dl
mov byte [r8 + 0x10], dl
mov r10, rcx
xor al, byte [r8]
mov byte [r8 + 0x20], al
movzx eax, byte [rcx + 0x41]
movzx edx, dl
xor rdx, rax
movzx eax, byte [r8 + 0x30]
movzx ecx, byte [rdx + r11]
xor ecx, eax
lea eax, [r9 + 1]
and eax, 0xf
mov byte [r8 + 0x30], cl
mov byte [r10 + 0x41], cl
mov byte [r10 + 0x40], al
test al, al
jne 0x140003a80
xor dl, dl
xor r8b, r8b
nop word [rax + rax]
lea rax, [r10 + 1]
mov r9d, 8
nop word [rax + rax]
movzx ecx, dl
lea rax, [rax + 6]
movzx edx, byte [rcx + r11]
movzx ecx, byte [rax - 7]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 7], dl
movzx edx, byte [rcx + r11]
movzx ecx, byte [rax - 6]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 6], dl
movzx edx, byte [rcx + r11]
movzx ecx, byte [rax - 5]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 5], dl
movzx edx, byte [rcx + r11]
movzx ecx, byte [rax - 4]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 4], dl
movzx edx, byte [rcx + r11]
movzx ecx, byte [rax - 3]
xor edx, ecx
movzx ecx, dl
mov byte [rax - 3], dl
movzx edx, byte [rcx + r11]
movzx ecx, byte [rax - 2]
xor edx, ecx
mov byte [rax - 2], dl
sub r9, 1
jne 0x140003a00
add dl, r8b
inc r8b
cmp r8b, 0x12
jb 0x1400039f0
ret
Function at 0x140014690
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, eax
test eax, eax
jne 0x1400146ae
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
xor edx, edx
cmp rcx, rbx
cmovb ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x140016fa0
Capabilities:
Parse pe header

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

Function at 0x14001aef0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14001ad5b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001ad5b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001ad5b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001ad5b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001ad5b
cmp dword [rcx + 0x84], 0xe
jbe 0x14001ad5b
cmp dword [rcx + 0xf8], 0
je 0x14001ad5b
mov ecx, ebx
call fcn.14001ae0c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14001abe8
nop
cmp dword [rbp + 0x20], 0
je 0x14001ada9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001adb4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001acec
Function at 0x140025078
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, [0x1400537d0]
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 0x1400250cf
cmp word [rdx], r13w
jne 0x1400250cf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400250d4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400251f9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002521a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14002510d
mov rdx, r9
mov word [rbx], cx
jmp 0x140025134
cmp r9, r8
jae 0x140025144
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 0x1400250ee
jmp 0x1400251f9
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 0x1400251ee
cmp dword [rsp + 0x80], esi
je 0x1400251ee
lea r8, [0x1400537d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400251c6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140025196
mov word [rbx], r13w
jmp 0x1400251f6
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 0x1400251a3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400251f6
cmp word [rsp + 0x70], r13w
jne 0x1400251d3
cmp rbx, r14
je 0x140025190
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140028eb0
cmp word [rsp + 0x70], r13w
je 0x1400251f9
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, [0x1400537d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400251f3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400251f9
Function at 0x140026900
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140026916
mov al, 1
jmp 0x140026976
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140026927
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140026974
mov ecx, dword [rcx + 0x18]
nop
call fcn.140021040
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140026974
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140026974
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140026974
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140026976
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14002a978
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 0x14002a9a8
xor eax, eax
jmp 0x14002aa6b
mov rbp, rbx
cmp word [rax], si
je 0x14002a9cd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002a9b4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002a9b0
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.14002a898
movsxd r14, eax
test eax, eax
jne 0x14002aa0b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002a9a1
mov rcx, r14
call fcn.140022e10
mov rdi, rax
test rax, rax
jne 0x14002aa24
xor ecx, ecx
call fcn.140024748
jmp 0x14002aa00
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.14002a898
test eax, eax
jne 0x14002aa55
mov rcx, rdi
call fcn.140024748
jmp 0x14002aa5f
xor ecx, ecx
call fcn.140024748
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 0x14002eca0
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.140021768
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002ed2a
cmp byte [rbp - 0x21], r15b
je 0x14002ed25
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14002ed60
call fcn.140024998
test eax, eax
jne 0x14002ed4c
cmp byte [rbp - 0x21], r15b
je 0x14002ed44
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14002ed60
cmp byte [rbp - 0x21], r15b
je 0x14002ed5d
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.140028fe4
test eax, eax
jne 0x14002ee00
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140021768
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002ed9f
cmp byte [rbp - 0x21], r15b
je 0x14002edd4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14002edd4
call fcn.140024998
test eax, eax
jne 0x14002edc0
cmp byte [rbp - 0x21], r15b
je 0x14002edb9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14002edd4
cmp byte [rbp - 0x21], r15b
je 0x14002edd1
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.140028fe4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14002ee00
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14002ee03
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14002ee11
mov rcx, rdi
call fcn.140024748
cmp byte [rbp + 0x3f], r15b
je 0x14002ee20
mov rcx, qword [rbp + 0x27]
call fcn.140024748
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 0x140030120
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140030148
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140030148
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x2fc4d7090
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d7a92
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fc108]
test eax, eax
je 0x2fc4d7b2a
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fc110]
mov qword [rbp - 8], rax
jmp 0x2fc4d7b0e
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 0x2fc4d7b02
cmp qword [rbp - 0x10], 0
je 0x2fc4d7b02
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 0x2fc4d7ac8
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d7b2b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d7c30
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 0x2fc4d7c58
mov eax, 0
jmp 0x2fc4d7ca6
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 0x2fc4d7c81
mov eax, 0
jmp 0x2fc4d7ca6
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 0x2fc4d7ca1
mov eax, 0
jmp 0x2fc4d7ca6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x180001320
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r10, rax
mov eax, 0x5a4d
cmp word [r10], ax
jne 0x1800013ce
movsxd rcx, dword [r10 + 0x3c]
add rcx, r10
cmp dword [rcx], 0x4550
jne 0x1800013ce
movzx ebx, word [rcx + 0x14]
xor edx, edx
movzx r11d, word [rcx + 6]
add rbx, rcx
test r11d, r11d
je 0x1800013ce
lea rdi, str..text
nop dword [rax + rax]
movsxd rax, edx
lea rcx, [rax + rax*4]
xor eax, eax
lea r9, [rcx*8]
lea r8, [r9 + rbx]
nop word [rax + rax]
movzx ecx, byte [rdi + rax]
inc rax
cmp cl, byte [r8 + rax + 0x17]
jne 0x1800013c7
cmp rax, 6
jne 0x1800013a0
mov eax, dword [rbx + r9 + 0x20]
mov ebx, dword [rbx + r9 + 0x24]
add rbx, r10
mov dword [rsp + 0x30], eax
jmp 0x1800013d0
inc edx
cmp edx, r11d
jl 0x180001380
xor ebx, ebx
mov esi, dword [rsp + 0x30]
lea rdx, [0x18000b0c4]
add rsi, rbx
mov r9d, 7
mov r8, rsi
mov rcx, rbx
call fcn.180001240
test rax, rax
je 0x180001414
mov edx, dword [rax + 0x15]
mov dword [rdx + rax + 0x1a], 0
mov edx, 0xefff
mov rax, qword gs:[0x30]
and word [rax + 0x17ee], dx
mov rbp, qword gs:[0x60]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x18000150b
lea rdx, str.RtlLeaveCriticalSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x110]
call rax
lea rdx, str.LdrFastFailInLoaderCallout
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180001471
mov ecx, dword [rax + 0x18]
mov dword [rcx + rax + 0x1d], 2
jmp 0x180001499
mov r9d, 0xa
lea rdx, [0x18000b0b8]
mov r8, rsi
mov rcx, rbx
call fcn.180001240
test rax, rax
je 0x180001499
mov ecx, dword [rax + 5]
mov dword [rcx + rax + 9], 2
lea rdx, str.LdrGetDllFullName
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x18000150b
mov r9d, 7
lea r8, [rax + 0x80]
lea rdx, [0x18000b0b0]
mov rcx, rax
call fcn.180001240
mov rcx, rax
test rax, rax
jne 0x1800014f2
lea r9d, [rax + 7]
mov rcx, rbx
lea r8, [rbx + 0x80]
lea rdx, [0x18000b0a8]
call fcn.180001240
mov rcx, rax
test rcx, rcx
je 0x18000150b
mov eax, dword [rcx + 3]
mov rcx, qword [rax + rcx + 7]
mov rax, qword [rcx + 0x98]
add qword [rax + 0x38], 2
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180002130
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x18000b040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov qword [r11 - 0x28], rdx
xor r14d, r14d
mov dword [r11 - 0x30], r14d
mov qword [r11 - 0x48], r14
mov qword [r11 - 0x50], r14
lea rax, [r11 - 0x30]
mov qword [r11 - 0x58], rax
xor r9d, r9d
xor edx, edx
lea r8d, [r14 + 1]
mov rcx, qword [rsi]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov ebp, dword [rsp + 0x48]
mov qword [rdi], r14
mov qword [rdi + 8], r14
mov qword [rdi + 0x10], r14
test rbp, rbp
je 0x180002201
cmp rbp, 0x1000
jb 0x1800021d9
lea rcx, [rbp + 0x27]
cmp rcx, rbp
jbe 0x180002294
call fcn.180005844
test rax, rax
je 0x1800021d2
lea rcx, [rax + 0x27]
and rcx, 0xffffffffffffffe0
mov qword [rcx - 8], rax
jmp 0x1800021e4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbp
call fcn.180005844
mov rcx, rax
mov qword [rdi], rcx
lea rax, [rcx + rbp]
mov qword [rdi + 0x10], rax
lea rbx, [rcx + rbp]
mov r8, rbp
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov qword [rdi + 8], rbx
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, qword [rdi]
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, qword [rsi]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
nop
mov rcx, qword [rsi]
test rcx, rcx
je 0x180002268
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x180002258
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18000228d
mov rcx, r8
call fcn.180005810
mov qword [rsi], r14
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], r14
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800057f0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.180001180
nop
int3