joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003a00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x60], 0
je 0x140003a1e
cmp qword [rsp + 0x68], 0
jne 0x140003a25
xor eax, eax
jmp 0x140003b51
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov dword [rsp], 0
jmp 0x140003ac6
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x18]
cmp dword [rsp], eax
jae 0x140003b4f
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x140003b0e
inc rax
test dl, dl
jne 0x140003afb
xor eax, eax
jmp 0x140003b13
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140003b4a
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x38]
movzx eax, word [rcx + rax*2]
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x10]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
jmp 0x140003b51
jmp 0x140003abe
xor eax, eax
add rsp, 0x58
ret
Function at 0x14000ea60
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rcx
mov rax, qword [rsp + 8]
mov dword [rax + 0x40], 0
mov rax, qword [rsp + 8]
mov qword [rax + 0x48], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x6a09e667
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0xbb67ae85
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x3c6ef372
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0xa54ff53a
mov eax, 4
imul rax, rax, 4
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x510e527f
mov eax, 4
imul rax, rax, 5
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x9b05688c
mov eax, 4
imul rax, rax, 6
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x1f83d9ab
mov eax, 4
imul rax, rax, 7
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x5be0cd19
mov rax, qword [rsp + 8]
ret
Function at 0x14000f300
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x40]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x40], 0x38
jae 0x14000f32c
mov dword [rsp + 0x24], 0x38
jmp 0x14000f334
mov dword [rsp + 0x24], 0x40
movzx eax, byte [rsp + 0x24]
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov byte [rax], pe_nt_image_headers64
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
movzx eax, byte [rsp + 0x20]
cmp qword [rsp + 0x28], rax
jae 0x14000f38b
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov byte [rax], 0
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
jmp 0x14000f35d
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x40], 0x38
jb 0x14000f3b3
mov rcx, qword [rsp + 0x40]
call fcn.14000eea0
mov rax, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x40]
xor eax, eax
mov ecx, 0x38
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x40]
shl eax, 3
mov eax, eax
mov rcx, qword [rsp + 0x40]
add rax, qword [rcx + 0x48]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x48], rax
mov eax, 1
imul rax, rax, 0x3f
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x40]
movzx edx, byte [rdx + 0x48]
mov byte [rcx + rax], dl
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x48]
shr rax, 8
mov ecx, 1
imul rcx, rcx, 0x3e
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x48]
shr rax, 0x10
mov ecx, 1
imul rcx, rcx, 0x3d
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x48]
shr rax, 0x18
mov ecx, 1
imul rcx, rcx, 0x3c
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x48]
shr rax, 0x20
mov ecx, 1
imul rcx, rcx, 0x3b
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x48]
shr rax, 0x28
mov ecx, 1
imul rcx, rcx, 0x3a
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x48]
shr rax, 0x30
mov ecx, 1
imul rcx, rcx, 0x39
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x48]
shr rax, 0x38
mov ecx, 1
imul rcx, rcx, 0x38
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
mov rcx, qword [rsp + 0x40]
call fcn.14000eea0
add rsp, 0x30
pop rdi
ret
Function at 0x14001356c
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14001359a
xor eax, eax
jmp 0x140013680
cmp qword [rcx + 0x68], 0
je 0x1400135ab
call fcn.1400102c0
jmp 0x140013680
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400135c2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400135c4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400135f6
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140018180
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14001367a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14001362d
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140013656
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140020160
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14001367a
cmp rsi, rbx
ja 0x140013634
test rsi, rsi
je 0x14001367a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140020160
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140016b84
Capabilities:
Parse pe header

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

Function at 0x140025b98
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140025988
Function at 0x14002ca9c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14002cace
call fcn.14001f2b4
mov dword [rax], 0x16
call fcn.14001f140
jmp 0x14002cbed
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14002cbed
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14002cbed
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14002cafd
lock or dword [rcx + 0x14], 0x10
jmp 0x14002cbed
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14002cb11
call fcn.14002e2c8
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140029860
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14002da44
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14002cbdb
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14002cba6
mov rcx, rsi
call fcn.140029860
cmp eax, edi
je 0x14002cb91
mov rcx, rsi
call fcn.140029860
cmp eax, 0xfffffffe
je 0x14002cb91
mov rcx, rsi
call fcn.140029860
movsxd rbx, eax
lea r14, [0x140819560]
mov rcx, rsi
sar rbx, 6
call fcn.140029860
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14002cb98
lea rdx, [0x14004e3c0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14002cba6
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14002cbca
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14002cbca
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14002cbca
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14002cbf0
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14002cc08
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14002c92a
call fcn.14001f2b4
mov dword [rax], 0x16
call fcn.14001f140
jmp 0x14002ca7a
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14002ca7a
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14002ca7a
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14002c959
lock or dword [rcx + 0x14], 0x10
jmp 0x14002ca7a
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14002c96d
call fcn.14002e2c8
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x14002c97d
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x14002c980
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.140029860
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.14002da44
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14002ca68
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14002ca13
mov rcx, rbx
call fcn.140029860
cmp eax, 0xffffffff
je 0x14002c9fe
mov rcx, rbx
call fcn.140029860
cmp eax, 0xfffffffe
je 0x14002c9fe
mov rcx, rbx
call fcn.140029860
movsxd rdi, eax
lea rsi, [0x140819560]
mov rcx, rbx
sar rdi, 6
call fcn.140029860
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14002ca05
lea rdx, [0x14004e3c0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14002ca13
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14002ca37
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14002ca37
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14002ca37
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x14002ca55
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x14002ca60
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x14002ca7f
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x14002c8f4
Function at 0x14002cf20
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.140016430
sub rsp, rax
mov rax, qword [0x14004e020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140029860
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002cf6f
mov rax, rbp
jmp 0x14002d077
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 + 0x819560]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002e21c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x819560]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002d073
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 0x14002d073
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002e21c
test rax, rax
js 0x14002d073
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002d073
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002d065
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002d065
cmp byte [rcx], 0xd
jne 0x14002d04b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002d05a
cmp byte [rcx + 1], 0xa
jne 0x14002d05a
inc rcx
jmp 0x14002d05a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4e410]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002d02d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002d077
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140015cf0
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 0x14002d598
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140819560]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14002d5f6
cmp word [rdx], r12w
jne 0x14002d5f6
or byte [rax + r8*8 + 0x38], cl
jmp 0x14002d5fc
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14002d757
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14002d732
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14002d635
mov rcx, r9
jmp 0x14002d658
cmp r9, rdx
jae 0x14002d66f
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14002d619
jmp 0x14002d757
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002d72c
cmp dword [rsp + 0x80], edi
je 0x14002d72c
mov rdx, r14
lea r11, [0x140819560]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14002d705
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14002d6d8
mov word [rbx], r12w
jmp 0x14002d753
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14002d6e1
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14002d753
cmp word [rsp + 0x70], r12w
jne 0x14002d712
cmp rbx, rsi
je 0x14002d6d2
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14002e224
cmp word [rsp + 0x70], r12w
je 0x14002d757
mov word [rbx], r13w
jmp 0x14002d753
lea r11, [0x140819560]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14002d74f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14002d757
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140031240
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 0x1400312c7
mov rsi, rbx
cmp word [rax], bp
je 0x140031286
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140031270
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003126c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400284b0
mov rdi, rax
test rax, rax
je 0x1400312b4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140018180
mov rbp, rdi
xor ecx, ecx
call fcn.140028474
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 0x140037b40
Capabilities:
Parse pe header

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

Disassembly:
mov edi, ecx
xor r13d, r8d
sal dword [r11 - 0x11], 0xfe
dec esi
or dword [rbp + 0x31], eax
xlatb
mov dword [rsp], r12d
xor r14d, eax
and r15d, r8d
sbb al, byte [0x1540b6825]
sbb cl, ch
invalid
cld
pop r11
jmp 0x140452fcd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140452fdd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140452fc5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140452ff5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140452fe2
sub eax, 3
jb 0x14045300f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140453046
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140453036
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140453034
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140453023
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140452f82
jmp 0x140452fcd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x303800
mov dl, 0x63
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140453096
cmp rsi, rcx
jae 0x14045309e
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14045307d
cmp al, 0x8f
ja 0x14045307d
cmp byte [rsi - 2], 0xf
je 0x140453083
sub al, 0xe8
cmp al, 1
ja 0x140453067
cmp rsi, rcx
jae 0x14045309e
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14045306d
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14045309e
lodsb al, byte [rsi]
jmp 0x14045307d
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x44c000]
mov eax, dword [rdi]
or eax, eax
je 0x1404530fb
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x453000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1404530ab
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1404530f5
mov qword [rbx], rax
add rbx, 8
jmp 0x1404530cb
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14045313f
cmp al, 0xef
ja 0x140453127
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140453107
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x140453116
mov eax, dword [rdi]
add rdi, 4
jmp 0x140453116
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.1404531be], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.1404531be
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1404531ae
sub rsp, 0xffffffffffffff80
jmp 0x1402f66c0
Function at 0x140006a50
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x50
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor edi, edi
cmp byte [r8 + 7], dil
je 0x140006a84
mov ecx, edi
nop dword [rax]
lea eax, [rcx + 0x7d]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 6
jb 0x140006a70
mov byte [r8 + 7], dil
lea rax, [r8 + 6]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
cmp r8, rax
jne 0x140006ab1
mov qword [rsp + 0x30], rdi
mov byte [rsp + 0x20], dil
jmp 0x140006ad0
mov qword [rsp + 0x30], 6
mov eax, dword [r8]
mov dword [rsp + 0x20], eax
movzx eax, word [r8 + 4]
mov word [rsp + 0x24], ax
mov byte [rsp + 0x26], dil
mov r9, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140006ade
mov rdx, qword [rdx]
mov r8, rdx
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140004260
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x140006b55
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006b50
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006b50
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006e3d4
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140006b70
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x50
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor edi, edi
cmp byte [r8 + 9], dil
je 0x140006ba4
mov ecx, edi
nop dword [rax]
lea eax, [rcx + 0x7d]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 8
jb 0x140006b90
mov byte [r8 + 9], dil
lea rax, [r8 + 8]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
cmp r8, rax
jne 0x140006bd1
mov qword [rsp + 0x30], rdi
mov byte [rsp + 0x20], dil
jmp 0x140006be7
mov qword [rsp + 0x30], 8
mov rax, qword [r8]
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x28], dil
mov r9, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140006bf5
mov rdx, qword [rdx]
mov r8, rdx
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140004260
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x140006c6c
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006c67
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006c67
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006e3d4
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret