joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140247f10
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3a8]
sub rsp, 0x4a8
mov rax, qword [0x144dd9080]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov r13, r9
mov r12, r8
mov r15, rdx
mov rax, qword [rbp + 0x410]
mov qword [rsp + 0x48], rax
mov rdi, qword [rbp + 0x418]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x1403dff20]
movdqu xmmword [rbp - 0x80], xmm1
mov byte [rsp + 0x70], 0
movups xmmword [rsp + 0x50], xmm0
movdqu xmmword [rsp + 0x60], xmm1
mov byte [rsp + 0x50], 0
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
call fcn.1402478f0
mov r14, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x50]
test al, al
jne 0x140247fa7
xor bl, bl
jmp 0x1402480a8
movups xmm0, xmmword [str.SYSTEMCurrentControlSetControlClass_]
movaps xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [0x140518548]
movaps xmmword [rbp - 0x60], xmm1
movsd xmm0, qword [0x140518558]
movsd qword [rbp - 0x50], xmm0
lea r8, [rsp + 0x50]
cmp r14, 0xf
cmova r8, rsi
lea rcx, [rbp - 0x70]
dec rcx
nop
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x140247fe0
xor edx, edx
nop dword [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140247ff0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140248084
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.KMD_EnableInternalLargePage
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140248080
cmp dword [rsp + 0x34], 4
jne 0x140248080
cmp dword [rsp + 0x38], 2
sete al
jmp 0x140248086
xor al, al
jmp 0x140248086
mov al, 1
mov byte [rdi], al
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, r13
mov r8, r12
mov rdx, r15
lea rcx, [rsp + 0x70]
call fcn.140248680
movzx ebx, al
cmp r14, 0xf
jbe 0x1402480dc
lea rdx, [r14 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1402480d3
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140248140
mov rcx, rsi
call fcn.140397cc8
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x140248114
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14024810f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14024813a
call fcn.140397cc8
movzx eax, bl
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140397de0
add rsp, 0x4a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14039f1cc
nop
call fcn.14039f1cc
nop
int3
Function at 0x140398b64
Capabilities:
Parse pe header

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

Function at 0x1403a6a80
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1403a6ab7
call fcn.1403a502c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14039f1ac
xor eax, eax
jmp 0x1403a6b45
mov rdx, r9
mov rcx, r8
call fcn.1403a6a1c
mov rbx, rax
test rax, rax
je 0x1403a6b42
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1403a6948]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1403a6b2f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1403a4fa0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1403a6b16
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1403a6b25
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1403b84c8
jmp 0x1403a6b42
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1403a6b3f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1403b1574
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.140398350
sub rsp, rax
mov rax, qword [0x144dd9080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1403b11a4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1403b15c3
mov rax, rbp
jmp 0x1403b16cb
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 + 0x4e0ec10]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1403be1d8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x4e0ec10]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1403b16c7
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 0x1403b16c7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1403be1d8
test rax, rax
js 0x1403b16c7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1403b16c7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1403b16b9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1403b16b9
cmp byte [rcx], 0xd
jne 0x1403b169f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1403b16ae
cmp byte [rcx + 1], 0xa
jne 0x1403b16ae
inc rcx
jmp 0x1403b16ae
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4dd94d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1403b1681
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1403b16cb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140397de0
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 0x1403b1e04
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1403b1c00
Function at 0x1403bd430
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1403bd446
mov al, 1
jmp 0x1403bd4a6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1403bd457
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1403bd4a4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1403c1e0c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1403bd4a4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1403bd4a4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1403bd4a4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1403bd4a6
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1403bd578
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, [0x144e0ec10]
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 0x1403bd5cf
cmp word [rdx], r13w
jne 0x1403bd5cf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1403bd5d4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1403bd6f9
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1403bd71a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1403bd60d
mov rdx, r9
mov word [rbx], cx
jmp 0x1403bd634
cmp r9, r8
jae 0x1403bd644
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 0x1403bd5ee
jmp 0x1403bd6f9
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 0x1403bd6ee
cmp dword [rsp + 0x80], esi
je 0x1403bd6ee
lea r8, [0x144e0ec10]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1403bd6c6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1403bd696
mov word [rbx], r13w
jmp 0x1403bd6f6
mov ecx, reloc.WS2_32.dll_listen
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 0x1403bd6a3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1403bd6f6
cmp word [rsp + 0x70], r13w
jne 0x1403bd6d3
cmp rbx, r14
je 0x1403bd690
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1403be1e0
cmp word [rsp + 0x70], r13w
je 0x1403bd6f9
mov ecx, reloc.WS2_32.dll_listen
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, [0x144e0ec10]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1403bd6f3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1403bd6f9
Function at 0x1403c4790
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 0x1403c47c0
xor eax, eax
jmp 0x1403c4883
mov rbp, rbx
cmp word [rax], si
je 0x1403c47e5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1403c47cc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1403c47c8
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.1403c0240
movsxd r14, eax
test eax, eax
jne 0x1403c4823
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1403c47b9
mov rcx, r14
call fcn.1403b8504
mov rdi, rax
test rax, rax
jne 0x1403c483c
xor ecx, ecx
call fcn.1403b84c8
jmp 0x1403c4818
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.1403c0240
test eax, eax
jne 0x1403c486d
mov rcx, rdi
call fcn.1403b84c8
jmp 0x1403c4877
xor ecx, ecx
call fcn.1403b84c8
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 0x1403c48a0
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 0x1403c4927
mov rsi, rbx
cmp word [rax], bp
je 0x1403c48e6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1403c48d0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1403c48cc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1403b8504
mov rdi, rax
test rax, rax
je 0x1403c4914
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1403cb5c0
mov rbp, rdi
xor ecx, ecx
call fcn.1403b84c8
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 0x1403c70d8
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.1403b8168
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 0x1403c7179
cmp ebx, dword [rsp + 0x30]
je 0x1403c7172
test esi, esi
je 0x1403c7172
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1403c714d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1403c715a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1403c7137
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1403c715e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1403c717b
mov eax, 1
jmp 0x1403c717b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1403c9570
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.1403be1e0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1403be1e0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1403c96c0
cmp rax, 0xffffffffffffffff
je 0x1403c96c0
xor edi, edi
test rbp, rbp
jle 0x1403c966b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1403bacd4
mov rbx, rax
test rax, rax
jne 0x1403c95f8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1403c9661
mov edx, 0x8000
mov ecx, r14d
call fcn.1403b1a18
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.1403bcec8
cmp eax, 0xffffffff
je 0x1403c9641
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1403c9608
mov edx, r15d
mov ecx, r14d
call fcn.1403b1a18
jmp 0x1403c9661
cmp byte [rsi + 0x38], dil
je 0x1403c9658
cmp dword [rsi + 0x34], 5
jne 0x1403c9658
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1403c9661
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1403b84c8
jmp 0x1403c96d4
jns 0x1403c96d4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1403be1e0
cmp rax, 0xffffffffffffffff
jne 0x1403c968c
cmp byte [rsi + 0x30], dil
je 0x1403c96d4
mov edi, dword [rsi + 0x2c]
jmp 0x1403c96d4
mov ecx, r14d
call fcn.1403c1e0c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1403c96d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1403c96d4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1403c96cd
mov eax, dword [rsi + 0x2c]
jmp 0x1403c96d2
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1403be1e0
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 0x1403c9704
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.1403a4d5c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1403c978e
cmp byte [rbp - 0x21], r15b
je 0x1403c9789
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1403c97c4
call fcn.1403bb1f0
test eax, eax
jne 0x1403c97b0
cmp byte [rbp - 0x21], r15b
je 0x1403c97a8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1403c97c4
cmp byte [rbp - 0x21], r15b
je 0x1403c97c1
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.1403acfdc
test eax, eax
jne 0x1403c9864
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1403a4d5c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1403c9803
cmp byte [rbp - 0x21], r15b
je 0x1403c9838
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1403c9838
call fcn.1403bb1f0
test eax, eax
jne 0x1403c9824
cmp byte [rbp - 0x21], r15b
je 0x1403c981d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1403c9838
cmp byte [rbp - 0x21], r15b
je 0x1403c9835
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.1403acfdc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1403c9864
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1403c9867
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1403c9875
mov rcx, rdi
call fcn.1403b84c8
cmp byte [rbp + 0x3f], r15b
je 0x1403c9884
mov rcx, qword [rbp + 0x27]
call fcn.1403b84c8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x414a40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r8, qword [rcx + 0x80]
mov eax, edx
mov rbp, rcx
lea rdi, [rax + rax*8]
mov rsi, rax
shl rdi, 2
lea rax, [r8 + rdi]
movzx r9d, word [rax + 0xc]
movzx ecx, word [rax + 0xe]
cmp r9w, 0xff
ja 0x414b60
movzx edx, cx
mov ebx, esi
sub ebx, edx
test ebx, ebx
jne 0x414be9
test esi, esi
movzx r9d, word [rax + 0xc]
je 0x414b27
sub esi, ecx
movzx edx, r9w
lea rcx, [rsi + rsi*8]
cmp edx, 0xff
lea r8, [r8 + rcx*4]
mov ecx, 7
ja 0x414ad5
mov ecx, edx
movzx r10d, word [r8 + 0x12]
lea rdx, [rcx*8]
sub rdx, rcx
mov rcx, qword [str._r_r_r_r_r_r_r_r_r_r_r_r_r_r_a_a_a_a_a_a_a_n_n_n_n_n_n_n_b_b_b_b_b_b_b_v_v_v_v_v_v_v_t_t_t_t_t_t_t_f_f_f_f_f_f_f]
lea rdx, [rcx + rdx*2]
movzx ecx, byte [rdx + r10]
mov word [rax + 0x12], cx
mov r11, qword [r8 + 0x14]
cmp r9b, 1
mov r12, qword [r8 + 0x1c]
mov qword [rax + 0x14], r11
mov qword [rax + 0x1c], r12
je 0x414c10
jb 0x414b13
cmp r9b, 3
ja 0x414b13
mov ecx, dword [rax + 0x1c]
mov edx, dword [rax + 8]
mov dword [rax + 0x20], ecx
mov ecx, dword [rax + 0x18]
mov dword [rax + 0x1c], ecx
mov ecx, dword [rax + 0x14]
mov dword [rax + 0x14], edx
mov dword [rax + 0x18], ecx
mov r8, qword [rbp + 0x80]
lea rax, [r8 + rdi]
movzx r9d, word [rax + 0xc]
movzx ecx, word [rax + 0xe]
lea rdx, [rbx + rbx*8]
lea rdx, [r8 + rdx*4]
mov word [rdx + 0xe], cx
mov ecx, dword [rax + 4]
mov eax, dword [rax + 8]
mov word [rdx + 0xc], r9w
mov dword [rdx + 4], ecx
mov dword [rdx + 8], eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r14
ret
movzx edx, word [rax + 0x10]
mov ebx, r9d
and r9w, 0xff
movzx ebx, bh
mov r14d, dword [rax + 4]
lea r12d, [rbx + rdx]
mov ebx, esi
mov r11d, edx
sub ebx, edx
mov edx, esi
sub ecx, r12d
sub edx, r12d
mov r10d, edx
add edx, 1
lea r10, [r10 + r10*8]
cmp ebx, edx
lea r10, [r8 + r10*4]
mov dword [r10 + 4], r14d
mov r14d, dword [rax + 8]
mov word [r10 + 0xc], r9w
mov word [r10 + 0xe], cx
mov dword [r10 + 8], r14d
jb 0x414bc6
nop
mov ecx, edx
add edx, 1
lea rcx, [rcx + rcx*8]
cmp ebx, edx
mov dword [r8 + rcx*4 + 0xc], 0x10004
jae 0x414bb0
mov r9d, 1
test ebx, ebx
mov word [rax + 0xe], r11w
movzx ecx, r11w
mov dword [rax + 4], 0
mov word [rax + 0xc], r9w
je 0x414a8b
mov rcx, rbp
mov edx, ebx
call fcn.00414a40
mov r8, qword [rbp + 0x80]
lea rax, [r8 + rdi]
movzx ecx, word [rax + 0xe]
jmp 0x414a8b
mov ecx, dword [rax + 4]
lea r8, [rax + 0x14]
mov rdx, qword [0x0042cdd0]
mov r9, qword [0x0042cdf0]
mov r10, qword [0x0042cde0]
movzx edx, byte [rdx + rcx]
movzx r9d, byte [r9 + rcx]
movsx ecx, word [r10 + rcx*2]
xor edx, 1
add ecx, dword [r8 + r9*4]
movzx r9d, dl
cmp dl, 1
mov r8d, dword [r8 + r9*4]
jbe 0x414c80
mov edx, dword [rax + 0x18]
mov dword [rax + 0x20], r8d
mov dword [rax + 0x1c], edx
mov edx, dword [rax + 0x14]
mov dword [rax + 0x18], edx
mov r8, qword [rbp + 0x80]
mov dword [rax + 0x14], ecx
lea rax, [r8 + rdi]
movzx r9d, word [rax + 0xc]
movzx ecx, word [rax + 0xe]
jmp 0x414b27
mov dword [rax + 0x18], r8d
jmp 0x414c5e
Function at 0x415af0
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbx, rcx
mov esi, r8d
mov rcx, qword [rcx + 8]
mov edi, r9d
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x415b37
mov eax, dword [rsp + 0x3c]
cmp eax, esi
je 0x415b29
test dil, dil
jne 0x415b37
mov edx, eax
add qword [rbx + 0x10], rdx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
lea rcx, [0x0042b2af]
call sub.msvcrt.dll_puts
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop