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

Disassembly:
lea rax, [rcx + 0x210]
mov r8d, 0xff
mov qword [rcx + 0x208], rax
lea r9, [rcx + 0xff]
nop dword [rax + rax]
mov edx, 1
mov eax, r8d
test r8d, r8d
je 0x1800283d6
nop dword [rax]
xor edx, eax
sar eax, 1
jne 0x1800283d0
and dl, 1
movzx eax, r8b
shl dl, 2
and al, 0xa8
or dl, al
mov byte [r9], dl
or dl, 1
mov byte [r9 + 0x100], dl
dec r9
sub r8d, 1
jns 0x1800283c0
or byte [rcx], 0x40
mov rax, rcx
or byte [rcx + 0x100], 0x40
ret

Function at 0x18002e280
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor eax, eax
mov qword [rsp + 0x20], rcx
lea r15, [rcx + 0xe]
mov dword [rsp + 0x88], eax
lea r10, [rcx + 0x12]
mov qword [rsp + 0x98], r15
mov r13d, edx
mov qword [rsp + 0x90], r10
lea ebx, [rax + 0x10]
mov qword [rsp + 0x38], rbp
mov r9, rcx
lea r12, [rcx + 0x20]
mov r11, rcx
lea r8, [0x180064b20]
nop word [rax + rax]
movzx edx, byte [r9 + 7]
movzx ecx, al
mov r14, qword [r12 - 8]
shr edx, cl
movzx ecx, byte [r15 - 6]
mov eax, ecx
and eax, 0xf
movzx r8d, byte [rax + r8]
test r14, r14
je 0x18002e419
and ecx, 0x10
mov dword [r14 + 0x2c], 1
movzx esi, byte [r11 + 1]
and edx, 1
movzx eax, byte [r11]
and esi, 0xf
shl esi, 8
xor ebp, ebp
add esi, eax
or ecx, edx
shl esi, 4
test cl, cl
cmove ebp, r8d
cmp esi, 0x32
jae 0x18002e33f
xor ebp, ebp
test esi, esi
cmove esi, ebx
xor edi, edi
lea rcx, [r9 + 0x50]
cmp byte [r15], dil
mov qword [rsp + 0x28], rcx
cmovne edi, ebp
mov r8d, edi
sub r8d, dword [r12]
je 0x18002e381
mov dword [r12], edi
mov edx, dword [r14]
imul edx, dword [r9 + 0x48]
mov r9, r14
add edx, dword [r14 + 4]
call fcn.180024a60
mov r9, qword [rsp + 0x80]
mov r10, qword [rsp + 0x90]
movzx ebx, word [r10]
add ebx, dword [r9 + 0x48]
cmp ebx, r13d
jge 0x18002e407
add edi, edi
sub edi, ebp
test ebp, ebp
je 0x18002e3ec
mov r15, qword [rsp + 0x28]
nop dword [rax + rax]
mov edx, ebx
neg edi
imul edx, dword [r14]
mov r9, r14
mov r8d, edi
mov rcx, r15
add edx, dword [r14 + 4]
call fcn.180024a60
add ebx, esi
cmp ebx, r13d
jl 0x18002e3a0
mov r15, qword [rsp + 0x98]
lea eax, [rdi + rbp]
mov r9, qword [rsp + 0x80]
mov r10, qword [rsp + 0x90]
sar eax, 1
mov dword [r12], eax
test edi, edi
setg al
mov byte [r15], al
jmp 0x18002e407
xor edx, edx
mov eax, esi
sub eax, ebx
dec eax
add eax, r13d
div esi
movzx ecx, al
imul eax, esi
and cl, 1
xor byte [r15], cl
add ebx, eax
mov r11, qword [rsp + 0x20]
sub bx, r13w
mov word [r10], bx
mov ebx, 0x10
mov eax, dword [rsp + 0x88]
lea r8, [0x180064b20]
inc eax
add r10, 2
inc r15
mov dword [rsp + 0x88], eax
add r11, 2
mov qword [rsp + 0x90], r10
add r12, 0x10
mov qword [rsp + 0x98], r15
mov qword [rsp + 0x20], r11
cmp eax, 3
jl 0x18002e2e0
mov rbp, qword [rsp + 0x38]
mov dword [r9 + 0x48], r13d
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x18002e4a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rdx, [rcx + 0x28]
mov r8d, 0xc
mov rdi, rcx
call fcn.18001af90
mov r8d, 1
xor r10d, r10d
mov r9d, r8d
xor ecx, ecx
nop word [rax + rax]
mov edx, r9d
and edx, r8d
mov eax, edx
neg edx
shl eax, cl
and edx, 0xc
or r10d, eax
mov eax, r9d
shr eax, 1
mov r9d, edx
xor r9d, eax
mov eax, ecx
inc ecx
cmp eax, 7
jl 0x18002e4d0
mov byte [rdi + 0x330], r10b
xor r10d, r10d
xor ecx, ecx
mov edx, r9d
and edx, r8d
mov eax, edx
neg edx
shl eax, cl
and edx, 0xc
or r10d, eax
mov eax, r9d
shr eax, 1
mov r9d, edx
xor r9d, eax
mov eax, ecx
inc ecx
cmp eax, 7
jl 0x18002e502
mov byte [rdi + 0x331], r10b
lea r11, [rdi + 0x332]
mov ebx, 0x40
mov r9d, r8d
nop
xor r10d, r10d
xor ecx, ecx
nop word [rax + rax]
mov edx, r9d
and edx, r8d
mov eax, edx
neg edx
shl eax, cl
and edx, 0x108
or r10d, eax
mov eax, r9d
shr eax, 1
mov r9d, edx
xor r9d, eax
mov eax, ecx
inc ecx
cmp eax, 7
jl 0x18002e550
mov byte [r11], r10b
inc r11
sub ebx, r8d
jne 0x18002e540
lea r10, [rdi + 0x372]
mov r11d, 0x4000
xor r9d, r9d
xor ecx, ecx
nop word [rax + rax]
mov edx, r8d
and edx, 1
mov eax, edx
neg edx
shl eax, cl
and edx, 0x10800
or r9d, eax
mov eax, r8d
shr eax, 1
mov r8d, edx
xor r8d, eax
mov eax, ecx
inc ecx
cmp eax, 7
jl 0x18002e5a0
mov byte [r10], r9b
inc r10
sub r11d, 1
jne 0x18002e591
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x180033020
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x38
mov rax, qword [rcx + 0x30]
mov r14, rcx
mov ebx, edx
mov r15d, r8d
mov r10d, r9d
mov r8d, 0xd
and r10d, dword [rcx + 0x40]
mov esi, r9d
movzx edx, byte [rax + 3]
mov r13d, r10d
mov eax, dword [rcx + 0x60]
and edx, 8
sub r8d, edx
neg r13d
mov ecx, r8d
mov dword [rsp + 0x78], r8d
shr eax, cl
test al, 2
cmove r13d, r10d
lea r10, [r14 + 0x58]
mov eax, r13d
mov qword [rsp + 0x20], r10
sub eax, dword [r14 + 0x3c]
je 0x1800330ab
mov r9, qword [r14 + 0x20]
mov edx, ebx
mov rcx, qword [r10]
mov r8d, eax
mov dword [r14 + 0x3c], r13d
imul edx, dword [r9]
add edx, dword [r9 + 4]
call fcn.180024990
mov r8d, dword [rsp + 0x78]
lea r10, [r14 + 0x58]
jmp 0x1800330b0
mov qword [rsp + 0x20], r10
add ebx, dword [r14 + 0x38]
test esi, esi
jne 0x1800330c0
mov ebx, r15d
jmp 0x18003322f
cmp ebx, r15d
jge 0x18003322f
mov rax, qword [r14 + 0x30]
lea rdx, [0x180065270]
mov esi, dword [r14 + 0x60]
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x30], r12
movzx ecx, byte [rax + 3]
mov eax, ecx
shr ecx, 4
and eax, 7
movzx r12d, byte [rax + rdx]
mov rdx, qword [r14 + 0x20]
shl r12d, cl
mov qword [rsp + 0x28], rdx
mov ebp, dword [rdx]
mov eax, ebp
imul ebp, ebx
imul eax, r12d
add ebp, dword [rdx + 4]
add r13d, r13d
mov r14d, eax
nop word [rax + rax]
mov eax, esi
mov ecx, r8d
shr eax, cl
add ebx, r12d
inc eax
add esi, esi
test al, 2
je 0x180033201
mov rax, qword [rdx + 8]
neg r13d
mov r10, qword [r10]
mov r9d, ebp
shr r9, 0xa
mov edi, r13d
and r9d, 0x3f
mov ecx, ebp
shr rcx, 0x10
or esi, 1
imul edi, dword [r10 + 0xc]
lea r11, [rax + rcx*4]
mov eax, 0x54
sub rax, r9
movsx ecx, word [r10 + rax*2 + 0x80]
lea rdx, [r10 + rax*2]
movsx eax, word [r10 + rax*2]
movsx r8d, word [rdx + 0x100]
imul eax, edi
imul ecx, edi
imul r8d, edi
add dword [r11 + 0x10], eax
add ecx, dword [r11 + 0x14]
add r8d, dword [r11 + 0x18]
mov dword [r11 + 0x14], ecx
movsx eax, word [rdx + 0x180]
movsx edx, word [r10 + r9*2 + 0x1a8]
imul eax, edi
mov dword [r11 + 0x18], r8d
mov r8d, dword [rsp + 0x78]
imul edx, edi
add eax, dword [r11 + 0x1c]
mov dword [r11 + 0x1c], eax
movsx eax, word [r10 + r9*2 + 0x128]
movsx ecx, word [r10 + r9*2 + 0xa8]
add edx, dword [r11 + 0x20]
imul eax, edi
mov dword [r11 + 0x20], edx
mov rdx, qword [rsp + 0x28]
imul ecx, edi
add eax, dword [r11 + 0x24]
mov dword [r11 + 0x24], eax
movsx eax, word [r10 + r9*2 + 0x28]
imul eax, edi
add dword [r11 + 0x2c], eax
add dword [r11 + 0x28], ecx
mov r10, qword [rsp + 0x20]
add ebp, r14d
cmp ebx, r15d
jl 0x180033120
mov r14, qword [rsp + 0x70]
mov r12, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x88]
sar r13d, 1
mov dword [r14 + 0x60], esi
mov dword [r14 + 0x3c], r13d
sub ebx, r15d
mov dword [r14 + 0x38], ebx
add rsp, 0x38
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
ret
Function at 0x180033d20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rdi
push r12
push r15
sub rsp, 0x48
movzx eax, byte [rcx + 2]
mov r15d, r8d
movzx r10d, byte [rcx + 3]
mov ebx, edx
and r10d, 7
mov rdi, rcx
shl r10d, 8
add r10d, eax
mov rax, qword [rcx + 8]
lea r12d, [r10*2 + 2]
test rax, rax
jne 0x180033d9a
mov r8d, dword [rcx + 0x14]
mov eax, r15d
add r8d, edx
sub eax, r8d
test eax, eax
jle 0x180033d88
mov ecx, dword [rcx + 0x28]
dec eax
add eax, r12d
cdq
idiv r12d
add ecx, eax
imul eax, r12d
and ecx, 7
mov dword [rdi + 0x28], ecx
add r8d, eax
sub r8d, r15d
mov dword [rdi + 0x14], r8d
add rsp, 0x48
pop r15
pop r12
pop rdi
pop rbx
ret
mov qword [rsp + 0x40], rsi
mov r9d, 1
mov dword [rax + 0x2c], r9d
xor esi, esi
movzx eax, byte [rcx + 1]
mov edx, r10d
movzx r8d, al
mov qword [rsp + 0x38], r13
and eax, 7
mov qword [rsp + 0x30], r14
movzx ecx, al
mov eax, esi
sar edx, cl
test r8b, 8
cmove eax, edx
cmp dword [rdi + 0x10], esi
je 0x180033ede
movzx ecx, byte [rdi]
test cl, 0x10
je 0x180033deb
mov r13d, ecx
and r13d, 0xf
jmp 0x180033def
mov r13d, dword [rdi + 0x20]
test r13d, r13d
je 0x180033ede
cmp r10d, 8
jb 0x180033ede
add eax, r10d
cmp eax, 0x800
jge 0x180033ede
shr ecx, 6
mov eax, 2
shl r9d, cl
mov r14d, r13d
cmp ecx, 3
cmove r9d, eax
mov eax, r13d
cmovne eax, esi
mov dword [rsp + 0x88], r9d
xor r14d, eax
cmp dword [rdi + 0x28], r9d
cmovge r14d, eax
mov r8d, r14d
sub r8d, dword [rdi + 0x18]
mov dword [rdi + 0x18], r14d
je 0x180033e6a
mov r9, qword [rdi + 8]
mov edx, ebx
mov rcx, qword [rdi + 0x30]
imul edx, dword [r9]
add edx, dword [r9 + 4]
call fcn.180024a60
mov r9d, dword [rsp + 0x88]
add ebx, dword [rdi + 0x14]
cmp ebx, r15d
jge 0x180033f2a
mov esi, dword [rdi + 0x28]
add r14d, r14d
mov qword [rsp + 0x78], rbp
sub r14d, r13d
mov rbp, qword [rdi + 8]
mov rdi, qword [rdi + 0x30]
nop dword [rax]
inc esi
and esi, 7
je 0x180033e9c
cmp esi, r9d
jne 0x180033ebe
mov edx, ebx
neg r14d
imul edx, dword [rbp]
mov r9, rbp
mov r8d, r14d
mov rcx, rdi
add edx, dword [rbp + 4]
call fcn.180024a60
mov r9d, dword [rsp + 0x88]
add ebx, r12d
cmp ebx, r15d
jl 0x180033e90
mov rdi, qword [rsp + 0x70]
lea eax, [r14 + r13]
mov rbp, qword [rsp + 0x78]
sar eax, 1
mov dword [rdi + 0x18], eax
mov dword [rdi + 0x28], esi
jmp 0x180033f2a
mov r8d, dword [rdi + 0x18]
test r8d, r8d
je 0x180033f04
mov r9, qword [rdi + 8]
mov edx, ebx
mov rcx, qword [rdi + 0x30]
neg r8d
imul edx, dword [r9]
add edx, dword [r9 + 4]
call fcn.180024a60
mov dword [rdi + 0x18], esi
add ebx, dword [rdi + 0x14]
mov eax, r15d
sub eax, ebx
test eax, eax
jle 0x180033f2a
mov ecx, dword [rdi + 0x28]
dec eax
add eax, r12d
cdq
idiv r12d
add ecx, eax
imul eax, r12d
and ecx, 7
mov dword [rdi + 0x28], ecx
add ebx, eax
sub ebx, r15d
mov dword [rdi + 0x14], ebx
mov r14, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x48
pop r15
pop r12
pop rdi
pop rbx
ret
Function at 0x1800416f4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x18004172e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x180041733
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18004177c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180068470]
cmp byte [rcx + rax], 0
je 0x18004177c
dec r8
sub rdx, 1
jne 0x180041762
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x18004bd64
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.18005df70
sub rsp, rax
mov rax, qword [0x1800801c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180054df0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18004bdb3
mov rax, rbp
jmp 0x18004bebb
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 + 0x824d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18004fcc8
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x824d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18004beb7
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 0x18004beb7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18004fcc8
test rax, rax
js 0x18004beb7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18004beb7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18004bea9
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18004bea9
cmp byte [rcx], 0xd
jne 0x18004be8f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18004be9e
cmp byte [rcx + 1], 0xa
jne 0x18004be9e
inc rcx
jmp 0x18004be9e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x80370]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18004be71
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18004bebb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180041db0
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 0x1800502e0
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 0x18005034f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18005034f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18005034f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18005034f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18005034f
cmp dword [rcx + 0x84], 0xe
jbe 0x18005034f
cmp dword [rcx + 0xf8], 0
je 0x18005034f
mov ecx, ebx
call fcn.180050400
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.1800501dc
nop
cmp dword [rbp + 0x20], 0
je 0x18005039d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800503a8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1800502e0
Function at 0x180051418
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, [0x1800824d0]
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 0x18005146f
cmp word [rdx], r13w
jne 0x18005146f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180051474
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180051599
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800515ba
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800514ad
mov rdx, r9
mov word [rbx], cx
jmp 0x1800514d4
cmp r9, r8
jae 0x1800514e4
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 0x18005148e
jmp 0x180051599
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 0x18005158e
cmp dword [rsp + 0x80], esi
je 0x18005158e
lea r8, [0x1800824d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180051566
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180051536
mov word [rbx], r13w
jmp 0x180051596
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 0x180051543
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180051596
cmp word [rsp + 0x70], r13w
jne 0x180051573
cmp rbx, r14
je 0x180051530
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18004fcd0
cmp word [rsp + 0x70], r13w
je 0x180051599
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, [0x1800824d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180051593
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180051599
Function at 0x18005742c
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.18004fcd0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18004fcd0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18005757c
cmp rax, 0xffffffffffffffff
je 0x18005757c
xor edi, edi
test rbp, rbp
jle 0x180057527
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180056574
mov rbx, rax
test rax, rax
jne 0x1800574b4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18005751d
mov edx, 0x8000
mov ecx, r14d
call fcn.180056860
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.1800527d0
cmp eax, 0xffffffff
je 0x1800574fd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800574c4
mov edx, r15d
mov ecx, r14d
call fcn.180056860
jmp 0x18005751d
cmp byte [rsi + 0x38], dil
je 0x180057514
cmp dword [rsi + 0x34], 5
jne 0x180057514
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18005751d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180053908
jmp 0x180057590
jns 0x180057590
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18004fcd0
cmp rax, 0xffffffffffffffff
jne 0x180057548
cmp byte [rsi + 0x30], dil
je 0x180057590
mov edi, dword [rsi + 0x2c]
jmp 0x180057590
mov ecx, r14d
call fcn.18005731c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180057590
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 0x180057590
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180057589
mov eax, dword [rsi + 0x2c]
jmp 0x18005758e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18004fcd0
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 0x180059318
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 0x180059348
xor eax, eax
jmp 0x18005940b
mov rbp, rbx
cmp word [rax], si
je 0x18005936d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180059354
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180059350
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.1800565fc
movsxd r14, eax
test eax, eax
jne 0x1800593ab
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180059341
mov rcx, r14
call fcn.180053944
mov rdi, rax
test rax, rax
jne 0x1800593c4
xor ecx, ecx
call fcn.180053908
jmp 0x1800593a0
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.1800565fc
test eax, eax
jne 0x1800593f5
mov rcx, rdi
call fcn.180053908
jmp 0x1800593ff
xor ecx, ecx
call fcn.180053908
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 0x18005dea0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18005dec8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18005dec8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400028c0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x448
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x140018440]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov dword [rsp + 0x20], 0
lea rcx, str.Download
xor r14d, r14d
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WININET.dll_InternetOpenW]
test rax, rax
je 0x140002a52
mov rsi, rax
cmp qword [rdi + 0x18], 0x10
jb 0x140002924
mov rdi, qword [rdi]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
test rax, rax
je 0x140002a33
mov rdi, rax
cmp qword [rbx + 0x18], 0x10
jb 0x14000295d
mov rbx, qword [rbx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov rcx, rbx
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x140002a3e
mov rbx, rax
lea rdx, [rsp + 0x40]
lea r9, [rsp + 0x3c]
mov rcx, rdi
mov r8d, 0x400
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140002a14
mov r8d, dword [rsp + 0x3c]
test r8d, r8d
je 0x140002a14
lea r14, [rsp + 0x40]
lea r15, [rsp + 0x38]
mov r13, qword [sym.imp.KERNEL32.dll_WriteFile]
lea r12, [rsp + 0x3c]
mov rbp, qword [sym.imp.WININET.dll_InternetReadFile]
nop dword [rax + rax]
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, r14
mov r9, r15
call r13
mov rcx, rdi
mov rdx, r14
mov r8d, 0x400
mov r9, r12
call rbp
test eax, eax
je 0x140002a14
mov r8d, dword [rsp + 0x3c]
test r8d, r8d
jne 0x1400029e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call rbx
mov rcx, rsi
call rbx
mov r14b, 1
jmp 0x140002a52
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140002a4f
mov rbx, qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call rbx
mov rcx, rsi
call rbx
xor r14d, r14d
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140009860
mov eax, r14d
add rsp, 0x448
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret