joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140020700
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
test r9, r9
je 0x140020896
cmp r9, 4
jb 0x14002073a
mov r10, r9
shr r10, 2
imul rax, r10, 0xfffffffffffffffc
add r9, rax
mov eax, dword [rdx]
add rdx, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub r10, 1
jne 0x140020721
xor r11d, r11d
test r9, r9
je 0x140020896
cmp r9, 8
jb 0x14002086d
lea r10, [rcx - 1]
lea rax, [r8 - 1]
add r10, r9
add rax, r9
cmp rcx, rax
ja 0x14002076c
cmp r10, r8
jae 0x14002086d
lea rax, [rdx - 1]
add rax, r9
cmp rcx, rax
ja 0x140020781
cmp r10, rdx
jae 0x14002086d
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x140020827
mov r10, r9
mov qword [rsp + 0x18], rsi
and r10d, 0x3f
mov rbx, r9
sub rbx, r10
mov rdi, rdx
lea rax, [r8 + 0x10]
sub rdi, r8
mov rsi, rcx
sub rsi, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rdi + rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rax - 0x10]
movdqu xmm2, xmmword [rdi + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rsi + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x30]
movdqu xmm1, xmmword [rax - 0x30]
movdqu xmmword [rsi + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x20]
movdqu xmm2, xmmword [rax - 0x20]
movdqu xmmword [rsi + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rsi + rax - 0x20], xmm2
cmp r11, rbx
jb 0x1400207c0
mov rsi, qword [rsp + 0x18]
cmp r10, 8
jb 0x14002085f
mov r10, r9
and r10, 0xfffffffffffffff8
mov rbx, rdx
lea rax, [r11 + r8]
sub rbx, r8
mov rdi, rcx
sub rdi, r8
nop
movq xmm1, qword [rax + rbx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rdi + rax - 8], xmm1
cmp r11, r10
jb 0x140020840
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x140020896
sub rdx, r8
lea r10, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [r10 + rdx]
xor al, byte [r10]
mov byte [rcx + r10], al
lea r10, [r10 + 1]
sub r9, 1
jne 0x140020880
add rsp, 8
ret

Function at 0x14002a75c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002a7a6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002a7a6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002a7a6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002a7a6
cmp dword [rcx + 0x84], 0xe
jbe 0x14002a7a6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002a7a8
xor al, al
add rsp, 0x28
ret
Function at 0x140043238
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 0x1400432a7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400432a7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400432a7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400432a7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400432a7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400432a7
cmp dword [rcx + 0xf8], 0
je 0x1400432a7
mov ecx, ebx
call fcn.140043358
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.140043134
nop
cmp dword [rbp + 0x20], 0
je 0x1400432f5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140043300
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140043238

Function at 0x14004343c
Capabilities:
Parse pe header

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

Function at 0x140046314
Capabilities:
Get file size

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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14002a200
sub rsp, rax
mov rax, qword [0x14007d2c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400460f8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14004a6f7
mov rax, rbp
jmp 0x14004a7ff
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x827e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14004b5f4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x827e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14004a7fb
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004a7fb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14004b5f4
test rax, rax
js 0x14004a7fb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14004a7fb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14004a7ed
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14004a7ed
cmp byte [rcx], 0xd
jne 0x14004a7d3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14004a7e2
cmp byte [rcx + 1], 0xa
jne 0x14004a7e2
inc rcx
jmp 0x14004a7e2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x7d700]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14004a7b5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14004a7ff
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140029720
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004a994
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, [0x1400827e0]
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 0x14004a9eb
cmp word [rdx], r13w
jne 0x14004a9eb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14004a9f0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14004ab15
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14004ab36
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14004aa29
mov rdx, r9
mov word [rbx], cx
jmp 0x14004aa50
cmp r9, r8
jae 0x14004aa60
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 0x14004aa0a
jmp 0x14004ab15
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 0x14004ab0a
cmp dword [rsp + 0x80], esi
je 0x14004ab0a
lea r8, [0x1400827e0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14004aae2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14004aab2
mov word [rbx], r13w
jmp 0x14004ab12
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 0x14004aabf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14004ab12
cmp word [rsp + 0x70], r13w
jne 0x14004aaef
cmp rbx, r14
je 0x14004aaac
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14004b5fc
cmp word [rsp + 0x70], r13w
je 0x14004ab15
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, [0x1400827e0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14004ab0f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14004ab15
Function at 0x14004eb2c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14004ebb3
mov rsi, rbx
cmp word [rax], bp
je 0x14004eb72
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14004eb5c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14004eb58
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140048cd4
mov rdi, rax
test rax, rax
je 0x14004eba0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140056bb0
mov rbp, rdi
xor ecx, ecx
call fcn.140046eec
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140051a88
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400468a0
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140051b29
cmp ebx, dword [rsp + 0x30]
je 0x140051b22
test esi, esi
je 0x140051b22
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140051afd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140051b0a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140051ae7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140051b0e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140051b2b
mov eax, 1
jmp 0x140051b2b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140056150
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14004b5fc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14004b5fc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400562a0
cmp rax, 0xffffffffffffffff
je 0x1400562a0
xor edi, edi
test rbp, rbp
jle 0x14005624b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140046e74
mov rbx, rax
test rax, rax
jne 0x1400561d8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140056241
mov edx, 0x8000
mov ecx, r14d
call fcn.1400434b8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14004854c
cmp eax, 0xffffffff
je 0x140056221
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400561e8
mov edx, r15d
mov ecx, r14d
call fcn.1400434b8
jmp 0x140056241
cmp byte [rsi + 0x38], dil
je 0x140056238
cmp dword [rsi + 0x34], 5
jne 0x140056238
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140056241
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140046eec
jmp 0x1400562b4
jns 0x1400562b4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14004b5fc
cmp rax, 0xffffffffffffffff
jne 0x14005626c
cmp byte [rsi + 0x30], dil
je 0x1400562b4
mov edi, dword [rsi + 0x2c]
jmp 0x1400562b4
mov ecx, r14d
call fcn.14004f534
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400562b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400562b4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400562ad
mov eax, dword [rsi + 0x2c]
jmp 0x1400562b2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14004b5fc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400567e0
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
lea rbp, [rsp - 0x4f]
sub rsp, 0xf8
xor edx, edx
lea rcx, [rbp - 0x21]
lea r8d, [rdx + 0x60]
call fcn.180005ee0
and qword [rbp - 0x41], 0
xor eax, eax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], rax
lea rax, str.winsta0default
mov qword [rbp - 0x19], rax
mov dword [rbp - 0x29], 0x68
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x49]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180001233
mov rcx, qword [rbp - 0x49]
lea rax, [rbp + 0x6f]
mov r9d, 1
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov edx, 0x2000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x180001229
mov rdx, qword [rbp + 0x6f]
lea rcx, [rbp + 0x7f]
xor r8d, r8d
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x18000121f
lea r8, [rbp + 0x67]
lea rdx, [rbp + 0x77]
xor ecx, ecx
call qword [sym.imp.WINSTA.dll_WinStationEnumerateW]
test al, al
je 0x180001215
xor ebx, ebx
cmp dword [rbp + 0x67], ebx
jbe 0x180001206
mov eax, ebx
imul r8, rax, 0x4c
add r8, qword [rbp + 0x77]
cmp dword [r8 + 0x48], 0
jne 0x1800011fb
mov rcx, qword [rbp + 0x6f]
mov edx, 0xc
lea r9d, [rdx - 8]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x1800011fb
mov rcx, qword [rbp + 0x6f]
lea rax, [rbp - 0x41]
lea rdx, str.cmd.exe
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x48], rax
and qword [rsp + 0x40], 0
mov rax, qword [rbp + 0x7f]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x410
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x1800011fb
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rbp + 0x67]
jb 0x180001170
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x180001215
call qword [sym.imp.WINSTA.dll_WinStationFreeMemory]
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0xf8
pop rbx
pop rbp
ret
Function at 0x140001e08
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 8
xor eax, eax
movq xmm2, r8
punpcklqdq xmm2, xmm2
mov r9, rdx
mov r10, rcx
test rdx, rdx
je 0x140001d9b
cmp rdx, 8
jb 0x140001d80
cmp dword [0x140020008], 5
jl 0x140001d80
movdqa xmm3, xmmword [0x1400154c0]
mov r11, rdx
movdqa xmm4, xmmword [0x1400154d0]
lea rdx, [rcx + 4]
movdqa xmm5, xmmword [0x1400154e0]
and r11, 0xfffffffffffffff8
mov qword [rsp + 0x10], rbx
mov rbx, 0xfffffffffffffffe
mov qword [rsp], rdi
sub rbx, rcx
mov edi, 2
sub rdi, rcx
movzx ecx, word [rdx - 4]
movq xmm0, rax
punpcklqdq xmm0, xmm0
add rax, 8
paddq xmm0, xmm3
andps xmm0, xmm4
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
movd xmm0, ecx
pshufb xmm1, xmm5
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx - 4], cx
lea rcx, [rbx + rdx]
movq xmm0, rcx
movzx ecx, word [rdx - 2]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm4
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
movd xmm0, ecx
pshufb xmm1, xmm5
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx - 2], cx
mov rcx, rdx
sub rcx, r10
movq xmm0, rcx
movzx ecx, word [rdx]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm4
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
movd xmm0, ecx
pshufb xmm1, xmm5
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx], cx
lea rcx, [rdi + rdx]
movq xmm0, rcx
movzx ecx, word [rdx + 2]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm4
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
movd xmm0, ecx
pshufb xmm1, xmm5
xorps xmm1, xmm0
movd ecx, xmm1
mov word [rdx + 2], cx
add rdx, 8
cmp rax, r11
jb 0x140001c83
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp rax, r9
jae 0x140001d9b
nop word [rax + rax]
movzx ecx, al
mov rdx, r8
and cl, 7
shl cl, 3
shr rdx, cl
xor byte [r10 + rax], dl
inc rax
cmp rax, r9
jb 0x140001d80
add rsp, 8
ret
Function at 0x1400021e0
Capabilities:
Create http request

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x70
xor edi, edi
mov r12, rdx
mov r13, rcx
mov dword [rax + 0x18], edi
xor edx, edx
mov dword [rax - 0x78], edi
lea rcx, str.NULL
xor r9d, r9d
xor r8d, r8d
mov esi, edi
mov ebx, edi
mov r15d, 1
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rbp, rax
test rax, rax
jne 0x140002233
mov eax, edi
jmp 0x140002451
mov ecx, dword [0x140020b88]
mov rax, qword gs:[0x58]
movdqa xmm0, xmmword [0x1400155a0]
movdqa xmm1, xmmword [0x140015550]
movdqa xmm2, xmmword [0x140015560]
mov rdx, qword [rax + rcx*8]
mov ecx, 0x17c
mov edi, 0x148
add rdi, rdx
mov qword [rsp + 0xa0], r14
mov r14, qword [0x140020b58]
mov eax, dword [rcx + rdx]
test r15b, al
jne 0x1400022d0
or eax, r15d
mov byte [rdi + 0x31], r15b
mov dword [rcx + rdx], eax
lea rcx, [rsp + 0x60]
lea rax, [rdi + 0x30]
cmp rdi, rcx
ja 0x1400022b5
lea rcx, [rsp + 0x30]
cmp rax, rcx
jb 0x1400022b5
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi + 0x20], xmm2
mov byte [rdi + 0x30], 0xf3
jmp 0x1400022c4
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi + 0x20], xmm2
mov byte [rdi + 0x30], 0xf3
lea rcx, [0x1400145f0]
call fcn.140002614
cmp byte [rdi + 0x31], bl
je 0x1400022ef
mov edx, 0x31
movabs r8, 0xf165653785232bf3
mov rcx, rdi
call fcn.140001c10
mov byte [rdi + 0x31], bl
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0x2400
mov rdx, rdi
mov rcx, rbp
call r14
mov r14, rax
test rax, rax
jne 0x140002336
mov rcx, rbp
call qword [0x140020b60]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x27
xor ecx, ecx
call qword [0x140020b10]
xor eax, eax
jmp 0x140002449
mov edx, 0x400
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140002410
lea r9, [rsp + 0xb0]
mov r8d, 0x400
mov rdx, rax
mov rcx, r14
call qword [0x140020b18]
test eax, eax
je 0x140002410
nop dword [rax]
nop dword [rax + rax]
mov edx, dword [rsp + 0xb0]
add rsi, rdx
test rbx, rbx
jne 0x14000239c
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x1400023ae
mov r8d, 0x42
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov rbx, rax
test rax, rax
je 0x140002410
mov r8d, dword [rsp + 0xb0]
mov rcx, rax
sub rcx, r8
mov rdx, rdi
add rcx, rsi
call fcn.1400134e0
mov r8d, dword [rsp + 0xb0]
xor edx, edx
mov rcx, rdi
call fcn.140013b80
cmp dword [rsp + 0xb0], 0x400
jb 0x14000246a
lea r9, [rsp + 0xb0]
mov r8d, 0x400
mov rdx, rdi
mov rcx, r14
call qword [0x140020b18]
test eax, eax
jne 0x140002380
xor r15d, r15d
mov rcx, rbp
call qword [0x140020b60]
mov rcx, r14
call qword [0x140020b60]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x27
xor ecx, ecx
call qword [0x140020b10]
test rdi, rdi
je 0x140002446
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, r15d
mov r14, qword [rsp + 0xa0]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
mov r9, r12
mov r8, r13
mov edx, esi
mov rcx, rbx
call fcn.140002010
jmp 0x140002413
Function at 0x14000345c
Capabilities:
Parse pe header

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

Function at 0x140008ccc
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 0x140008d3b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008d3b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140008d3b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140008d3b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140008d3b
cmp dword [rcx + 0x84], 0xe
jbe 0x140008d3b
cmp dword [rcx + 0xf8], 0
je 0x140008d3b
mov ecx, ebx
call fcn.140008dec
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.140008bc8
nop
cmp dword [rbp + 0x20], 0
je 0x140008d89
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140008d94
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140008ccc

Function at 0x140008ed0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140008ccc
Function at 0x14000c588
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 0x14000c5b8
xor eax, eax
jmp 0x14000c67b
mov rbp, rbx
cmp word [rax], si
je 0x14000c5dd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000c5c4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000c5c0
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.14000c4a8
movsxd r14, eax
test eax, eax
jne 0x14000c61b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000c5b1
mov rcx, r14
call fcn.14000a394
mov rdi, rax
test rax, rax
jne 0x14000c634
xor ecx, ecx
call fcn.14000a358
jmp 0x14000c610
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.14000c4a8
test eax, eax
jne 0x14000c665
mov rcx, rdi
call fcn.14000a358
jmp 0x14000c66f
xor ecx, ecx
call fcn.14000a358
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