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

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x20
mov rbp, rcx
mov r12, r9
mov rcx, r8
mov r14, rdx
call fcn.1800c3840
mov r8d, dword [rbp + 0x18]
mov ecx, dword [rbp + 0x20]
add rcx, 0x18
mov r15d, eax
lea r9d, [r8 + r8]
add rcx, r9
call qword [fcn.1802a0554]
mov rbx, rax
test rax, rax
je 0x180231116
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x58], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x60], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x180231000
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x180231062
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x50], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x50], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x180231020
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x1802310a3
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x180388378]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x180388379]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x180231070
mov rcx, qword [rsp + 0x70]
call fcn.1800c3840
mov r9, qword [rbx]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, r12
call qword [r9 + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rbx]
test rdi, rdi
jne 0x1802310d2
mov edi, dword [rsi + 0x18]
add rdi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov r8d, dword [rsi + 0x20]
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call qword [rsi + reloc.WS2_32.dll_htonl]
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov rcx, rbx
call qword [fcn.18029e85c]
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
mov eax, 0x1b
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
Function at 0x180231250
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x180428208]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r8
mov dword [rsp + 0x20], 0xf0000040
mov rsi, rdx
mov rdi, rcx
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x18023129c
mov eax, 0x1b
jmp 0x18023136e
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1802312e0
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov qword [rsp + 0x38], 0
jmp 0x18023136e
mov rcx, rbp
call fcn.1800c3840
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
lea edx, [r8 + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x20
jne 0x18023134a
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rdi
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x18023135a
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x18023136c
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800a5910
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x1802337a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r12d, dword [rsp + 0x88]
xor ebp, ebp
mov rax, qword [rsp + 0x80]
mov r10d, r12d
and r10d, 0x7f
movsxd rdi, r8d
mov r15d, r9d
mov dword [rsp + 0x20], 0xffffffff
mov r14, rdx
mov dword [rsp + 0x24], ebp
mov r13, rcx
mov esi, ebp
mov rbx, qword [rax + r10*8]
test rbx, rbx
je 0x18023385b
cmp edi, dword [rbx + 0x10]
jne 0x180233852
cmp edi, 0xffffffff
jne 0x180233825
cmp r12d, dword [rbx + 0x4c]
jne 0x180233852
mov rcx, qword [rbx]
mov r8, qword [r14 + 0x10]
cmp qword [rcx + 0x18], r8
jne 0x180233852
mov rdx, qword [r14]
mov rcx, qword [rcx + 0x10]
call fcn.180282bf0
test eax, eax
jne 0x180233852
test rsi, rsi
jne 0x180233833
mov rsi, rbx
cmp r15d, 2
je 0x18023385b
mov rcx, qword [rbx + 8]
mov r8, qword [r14 + 0x18]
cmp qword [rcx + 0x18], r8
jne 0x180233852
mov rdx, qword [r14 + 8]
mov rcx, qword [rcx + 0x10]
call fcn.180282bf0
test eax, eax
je 0x18023387b
mov rbx, qword [rbx + 0x40]
test rbx, rbx
jne 0x1802337f8
cmp edi, 0x3c
ja 0x180233883
mov dword [rsp + 0x80], edi
mov dword [rsp + 0x84], ebp
cmp r15d, 2
jne 0x18023388f
mov eax, edi
jmp 0x1802338fd
mov rsi, rbx
mov ebp, 1
test rsi, rsi
jne 0x1802338ea
mov rax, qword [rsp + 0x20]
jmp 0x1802338fd
mov rbx, rdi
lea rbp, [0x1803883b0]
shl rbx, 7
mov esi, edi
nop
cmp dword [rbx + rbp + 0x78], edi
jne 0x1802338d2
mov r8, qword [r14 + 0x18]
cmp qword [rbx + rbp + 0x40], r8
jne 0x1802338c3
mov rdx, qword [r14 + 8]
mov rcx, qword [rbx + rbp + 0x38]
call fcn.180282bf0
test eax, eax
je 0x1802338dc
inc esi
sub rbx, 0xffffffffffffff80
cmp rbx, 0x1e00
jle 0x1802338a0
mov rax, qword [rsp + 0x80]
jmp 0x1802338fd
mov eax, esi
movabs rcx, 0x100000000
jmp 0x1802338fa
mov eax, dword [r13 + 0x38]
sub eax, dword [rsi + 0x48]
add eax, 0x3c
mov ecx, ebp
shl rcx, 0x20
or rax, rcx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18027e460
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xa0
movaps xmmword [rsp + 0x90], xmm6
mov rdi, r9
mov rbx, r8
mov rbp, rdx
mov r12, rcx
xor r15d, r15d
mov rax, qword [rcx]
call qword [rax]
lea r8, [rsp + 0xd0]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1800da5e0
nop
mov rsi, qword [rsp + 0x50]
mov r14, qword [rsp + 0xf0]
test r14, r14
je 0x18027e651
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rsi
mov rbp, qword [rsp + 0x58]
sub rbp, rsi
movaps xmm6, xmmword [rsp + 0x20]
nop dword [rax]
mov rax, qword [r12]
movdqa xmmword [rsp + 0x20], xmm6
lea rdx, [rsp + 0x20]
mov rcx, r12
call qword [rax + reloc.WS2_32.dll_recv]
mov edx, r15d
mov rcx, r12
call fcn.1802707c0
mov rax, qword [r12]
mov rbx, qword [rax + 0x18]
mov rcx, r12
call qword [rax]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
mov rcx, r12
call rbx
mov r11, rbp
cmp r14, rbp
cmovb r11, r14
mov rbx, r11
and ebx, 0x1f
mov rdx, r11
sub rdx, rbx
je 0x18027e5bf
mov rcx, rdi
mov r8, rsi
sub r8, rdi
nop dword [rax]
movups xmm0, xmmword [rcx]
movups xmmword [rsp + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rsp + 0x30], xmm1
movups xmm0, xmmword [r8 + rcx]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [r8 + rcx + 0x10]
movups xmmword [rsp + 0x78], xmm1
xor eax, eax
nop dword [rax + rax]
movdqu xmm1, xmmword [rsp + rax + 0x68]
movdqu xmm0, xmmword [rsp + rax + 0x20]
xorps xmm1, xmm0
movdqu xmmword [rsp + rax + 0x20], xmm1
add rax, 0x10
cmp rax, 0x20
jl 0x18027e580
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rcx + 0x10], xmm1
add rcx, 0x20
mov rax, rcx
sub rax, rdi
cmp rax, rdx
jne 0x18027e550
mov r8, rdi
neg r8
cmp rdx, r11
je 0x18027e642
cmp rbx, 8
jb 0x18027e623
lea rcx, [rdx + rdi]
lea r9, [rdi - 1]
add r9, r11
lea r10, [rdx + rsi]
lea rax, [rsi - 1]
add rax, r11
cmp rcx, rax
ja 0x18027e5f0
cmp r9, r10
jae 0x18027e623
and ebx, 7
mov rax, r11
sub rax, rbx
lea r10, [r8 + rsi]
nop dword [rax]
movq xmm1, qword [rcx + r10]
movq xmm0, qword [rcx]
xorps xmm1, xmm0
movq qword [rcx], xmm1
add rdx, 8
lea rcx, [rcx + 8]
cmp rdx, rax
jne 0x18027e600
cmp rdx, r11
je 0x18027e642
lea rcx, [rdx + rdi]
lea r9, [r8 + rsi]
mov r8, r11
sub r8, rdx
movzx eax, byte [rcx + r9]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x18027e631
add rdi, r11
inc r15d
sub r14, r11
jne 0x18027e4e0
test rsi, rsi
je 0x18027e687
mov rdx, qword [rsp + 0x60]
sub rdx, rsi
mov rax, rsi
cmp rdx, 0x1000
jb 0x18027e67f
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18027e6a8
mov rcx, rsi
call fcn.1800a58b8
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call fcn.1802986cc
int3
Function at 0x180280c00
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x50
mov r14, r9
mov r15, r8
mov r12, rdx
mov rsi, rcx
xor ecx, ecx
mov rax, qword [rsp + 0x90]
mov r11, qword [rax]
mov r9, qword [rax + 8]
sub r9, r11
lea rbp, [r9 + r9]
lea rax, [rbp + 1]
cmp r14, rax
jae 0x180280c5b
mov qword [rsi], rcx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rcx
jmp 0x180280d24
mov dil, 0xff
xor bl, bl
mov r10, rbp
cmp rbp, r14
jae 0x180280cc3
nop dword [rax + rax]
movzx r8d, byte [r10 + r15]
lea edx, [r8 - 1]
shr dl, 7
movzx eax, r8b
not al
shr al, 7
and dl, al
neg dl
xor r8b, 1
lea ecx, [r8 - 1]
shr cl, 7
not r8b
shr r8b, 7
and cl, r8b
neg cl
movzx eax, dl
and al, dil
or cl, dl
not cl
and cl, dil
or bl, cl
movzx ecx, al
and ecx, 1
add rbp, rcx
movzx edi, al
inc r10
cmp r10, r14
jb 0x180280c70
lea rcx, [r9 + r15]
mov r8, r9
mov rdx, r11
call fcn.18009df80
lea ecx, [rax - 1]
shr cl, 7
not al
shr al, 7
and cl, al
neg cl
or cl, dil
or bl, cl
inc rbp
movzx eax, bl
not al
mov byte [r12], al
mov qword [rsp + 0x20], rbp
mov r9, r14
mov r8, r15
movzx edx, bl
lea rcx, [rsp + 0x38]
call fcn.180281200
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x38]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
mov rax, rsi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x180281200
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r14, r9
mov rbp, r8
movzx ebx, dl
mov r15, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
test r9, r9
je 0x180281274
movabs rax, 0x7fffffffffffffff
cmp r9, rax
ja 0x18028137a
lea edx, [rsi + 1]
mov rcx, r9
call fcn.18009de10
mov rcx, rax
mov qword [r15], rax
add rax, r14
mov qword [r15 + 0x10], rax
lea rdi, [rcx + r14]
mov r8, r14
xor edx, edx
call fcn.180283390
mov qword [r15 + 8], rdi
mov dword [rsp + 0x20], 1
mov rax, rbx
mov rdx, r14
mov r10, qword [rsp + 0x80]
xor rdx, r10
lea rcx, [rbx - 1]
shr rcx, 0x3f
not rax
shr rax, 0x3f
and rcx, rax
dec rcx
mov rax, r14
sub rax, r10
xor rax, r14
or rax, rdx
xor rax, r14
shr rax, 0x3f
neg rax
or rcx, rax
and rcx, rdx
xor r10, rcx
test r14, r14
je 0x180281313
nop word [rax + rax]
lea r9, [rsi + r10]
mov rax, rsi
cmp rsi, r14
je 0x18028130b
nop dword [rax]
mov rdx, rax
xor rdx, r9
mov r8, qword [r15]
lea rcx, [rdx - 1]
not rdx
shr rcx, 0x3f
shr rdx, 0x3f
and cl, dl
neg cl
and cl, byte [rax + rbp]
or byte [r8 + rsi], cl
inc rax
cmp rax, r14
jne 0x1802812e0
inc rsi
cmp rsi, r14
jne 0x1802812d0
sub r14, r10
mov rbx, qword [r15 + 8]
mov rdx, qword [r15]
mov rcx, rbx
sub rcx, rdx
cmp r14, rcx
jae 0x18028132e
lea rax, [rdx + r14]
jmp 0x180281362
jbe 0x180281366
mov rax, qword [r15 + 0x10]
sub rax, rdx
cmp r14, rax
jbe 0x18028134e
lea r8, [rsp + 0x78]
mov rdx, r14
mov rcx, r15
call fcn.18009da10
jmp 0x180281366
sub r14, rcx
mov r8, r14
xor edx, edx
mov rcx, rbx
call fcn.180283390
lea rax, [r14 + rbx]
mov qword [r15 + 8], rax
mov rax, r15
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1800030ee
int3
Function at 0x180296f00
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x180428208]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x1803e0680]
mov rbp, rcx
call fcn.1802a4f30
xor edi, edi
test rax, rax
je 0x180296fe6
mov ebx, edi
call fcn.180286394
mov r14d, dword [rax]
call fcn.180286394
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.1802b0da0
mov rsi, rax
test rax, rax
je 0x180296f77
call fcn.180286394
mov dword [rax], r14d
jmp 0x180296fa1
call fcn.180286394
cmp dword [rax], 0x22
jne 0x180296fde
call fcn.180286394
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1802b0da0
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x180296fde
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x180296fa5
cmp rax, 3
je 0x180296fc0
mov rcx, rsi
call fcn.180296e5c
test al, al
je 0x180296fd1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x180296fd1
mov dil, 1
mov rcx, rbx
call fcn.18029e85c
mov al, dil
jmp 0x180296fe8
mov rcx, rbx
call fcn.18029e85c
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1800a5910
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180299754
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, [0x1806cdbf0]
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 0x1802997b2
cmp word [rdx], r12w
jne 0x1802997b2
or byte [rax + r8*8 + 0x38], cl
jmp 0x1802997b8
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x180299913
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1802998ee
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1802997f1
mov rcx, r9
jmp 0x180299814
cmp r9, rdx
jae 0x18029982b
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 0x1802997d5
jmp 0x180299913
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 0x1802998e8
cmp dword [rsp + 0x80], edi
je 0x1802998e8
mov rdx, r14
lea r11, [0x1806cdbf0]
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 0x1802998c1
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x180299894
mov word [rbx], r12w
jmp 0x18029990f
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 0x18029989d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x18029990f
cmp word [rsp + 0x70], r12w
jne 0x1802998ce
cmp rbx, rsi
je 0x18029988e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.180298c98
cmp word [rsp + 0x70], r12w
je 0x180299913
mov word [rbx], r13w
jmp 0x18029990f
lea r11, [0x1806cdbf0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x18029990b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x180299913
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 0x18029eb34
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.1800a9640
sub rsp, rax
mov rax, qword [0x180428208]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18029656c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18029eb83
mov rax, rbp
jmp 0x18029ec8b
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x6cdbf0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180298d3c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x6cdbf0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18029ec87
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 0x18029ec87
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180298d3c
test rax, rax
js 0x18029ec87
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18029ec87
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18029ec79
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18029ec79
cmp byte [rcx], 0xd
jne 0x18029ec5f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18029ec6e
cmp byte [rcx + 1], 0xa
jne 0x18029ec6e
inc rcx
jmp 0x18029ec6e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x429180]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18029ec41
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18029ec8b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800a5910
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 0x1802b12c0
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 0x1802b12f0
xor eax, eax
jmp 0x1802b13b3
mov rbp, rbx
cmp word [rax], si
je 0x1802b1315
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1802b12fc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1802b12f8
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.1802a8aa8
movsxd r14, eax
test eax, eax
jne 0x1802b1353
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1802b12e9
mov rcx, r14
call fcn.1802a89ec
mov rdi, rax
test rax, rax
jne 0x1802b136c
xor ecx, ecx
call fcn.1802a89b0
jmp 0x1802b1348
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.1802a8aa8
test eax, eax
jne 0x1802b139d
mov rcx, rdi
call fcn.1802a89b0
jmp 0x1802b13a7
xor ecx, ecx
call fcn.1802a89b0
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 0x1802b13d0
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 0x1802b1457
mov rsi, rbx
cmp word [rax], bp
je 0x1802b1416
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1802b1400
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1802b13fc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1802a89ec
mov rdi, rax
test rax, rax
je 0x1802b1444
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180282cf0
mov rbp, rdi
xor ecx, ecx
call fcn.1802a89b0
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 0x1802b1d8c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1802b1dac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1802863d4
or eax, 0xffffffff
jmp 0x1802b1dae
xor eax, eax
add rsp, 0x28
ret

Function at 0x1802b2180
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.180283bf4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1802b220a
cmp byte [rbp - 0x21], r15b
je 0x1802b2205
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1802b2240
call fcn.1802aae60
test eax, eax
jne 0x1802b222c
cmp byte [rbp - 0x21], r15b
je 0x1802b2224
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1802b2240
cmp byte [rbp - 0x21], r15b
je 0x1802b223d
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.180283e18
test eax, eax
jne 0x1802b22e0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.180283bf4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1802b227f
cmp byte [rbp - 0x21], r15b
je 0x1802b22b4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1802b22b4
call fcn.1802aae60
test eax, eax
jne 0x1802b22a0
cmp byte [rbp - 0x21], r15b
je 0x1802b2299
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1802b22b4
cmp byte [rbp - 0x21], r15b
je 0x1802b22b1
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.180283e18
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1802b22e0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1802b22e3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1802b22f1
mov rcx, rdi
call fcn.1802a89b0
cmp byte [rbp + 0x3f], r15b
je 0x1802b2300
mov rcx, qword [rbp + 0x27]
call fcn.1802a89b0
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