joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400062d0
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
lea rax, [rsp + 0x41]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x42]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x43]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x41]
movzx r8d, byte [rsp + 0x42]
movzx edx, byte [rsp + 0x43]
lea rcx, [rsp + 0x80]
call fcn.140019980
mov rcx, rax
call fcn.14000ace0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rcx, qword [rsp + 0xb0]
mov qword [rcx + 0x20], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x20], 0
jne 0x140006383
xor al, al
jmp 0x140006530
mov rax, qword [rsp + 0xb0]
mov rcx, rax
call fcn.140011b20
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8w, 0x1bb
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WININET.dll_InternetConnectA]
mov rcx, qword [rsp + 0xb0]
mov qword [rcx + 0x28], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x28], 0
jne 0x140006417
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x140006530
mov rcx, qword [rsp + 0xc0]
call fcn.140011b20
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0xb8]
call fcn.140011b20
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x4800000
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rcx, qword [rsp + 0xb0]
mov qword [rcx + 0x30], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x30], 0
jne 0x1400064ca
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x140006530
mov rcx, qword [rsp + 0xc8]
call fcn.1400112c0
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0xc8]
call fcn.140011b20
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x70]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x140006526
mov byte [rsp + 0x40], 1
jmp 0x14000652b
mov byte [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
add rsp, 0xa0
pop rdi
ret
Function at 0x140006a60
Capabilities:
Create process on windows

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1b0
mov rax, qword [0x14005d078]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
lea rax, [rsp + 0x130]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rsp + 0xf0]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov dword [rsp + 0x130], 0x68
mov dword [rsp + 0x16c], 1
xor eax, eax
mov word [rsp + 0x170], ax
mov r8, qword [rsp + 0x1c0]
lea rdx, [0x140055560]
lea rcx, [rsp + 0xb0]
call fcn.140019b90
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
lea r8, [0x140055558]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x90]
call fcn.140019d30
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov r8, qword [rsp + 0x1c8]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x108]
call fcn.140019d80
nop
lea rcx, [rsp + 0x90]
call fcn.140011630
nop
lea rcx, [rsp + 0xb0]
call fcn.140011630
mov r8, 0xffffffffffffffff
lea rdx, [0x140055564]
mov rcx, qword [rsp + 0x1c0]
call fcn.140011100
mov r9, rax
xor r8d, r8d
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0x1c0]
call fcn.1400110a0
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.1400112d0
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x108]
call fcn.1400112d0
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x130]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x88]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0xd0]
call fcn.140011630
cmp dword [rsp + 0x54], 0
je 0x140006c77
movzx eax, byte [rsp + 0x1d0]
test eax, eax
je 0x140006c40
mov dword [rsp + 0x50], 0xffffffff
jmp 0x140006c48
mov dword [rsp + 0x50], 1
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x108]
call fcn.140011630
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140024540
add rsp, 0x1b0
pop rdi
ret

Function at 0x140006d40
Capabilities:
Encrypt data using rc4 prga
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x14005d078]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rcx, [0x140055570]
jmp 0x1402176d0

Function at 0x140007df0
Capabilities:
Execute anti-debugging instructions
Set console window title

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
mov eax, 0x17a8
call fcn.140024bb0
sub rsp, rax
mov rax, qword [0x14005d078]
xor rax, rsp
mov qword [rsp + 0x1790], rax
lea rcx, [0x1400556a8]
jmp 0x140218a7d
Function at 0x14000fb60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x14005d078]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x90], 0
jg 0x14000fb94
xor eax, eax
jmp 0x14000fd8a
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x14000fbc5
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.1400108e0
jmp 0x14000fd8a
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x80]
call fcn.1400140a0
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x14000fc73
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.14000fda0
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x80]
call fcn.140014270
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.140015f40
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call fcn.140014bc0
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x80], 0
je 0x14000fd7a
mov rcx, qword [rsp + 0x80]
call fcn.140014570
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x50], 0xfff
jbe 0x14000fd28
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.1400314f0
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x28], 0xfff
je 0x14000fd23
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x14000fd8a
jmp 0x14000fc9f
cmp qword [rsp + 0x50], 0
jbe 0x14000fd7a
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.1400314f0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140024540
add rsp, 0x78
ret
Function at 0x140022bec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1400224a0
mov ebx, eax
test eax, eax
jne 0x140022c1c
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140022c78
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140022c6f
test al, 0x10
je 0x140022c6f
bt eax, 0xa
jae 0x140022c68
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, pe_nt_image_headers64
mov rdx, rdi
call fcn.140022c90
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140022c64
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140022c88
test edi, edi
jne 0x140022c6f
and dword [rsp + 0x3c], 0
jmp 0x140022c74
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.140032470
int3

Function at 0x1400230ac
Capabilities:
Get geographical location

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

Function at 0x1400252e0
Capabilities:
Parse pe header

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

Function at 0x1400342c4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400340c0
Function at 0x1400388d0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400388e6
mov al, 1
jmp 0x140038946
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400388f7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140038944
mov ecx, dword [rcx + 0x18]
nop
call fcn.140040094
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140038944
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140038944
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140038944
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140038946
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14003ad3c
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.140024bb0
sub rsp, rax
mov rax, qword [0x14005d078]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14003775c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14003ad8b
mov rax, rbp
jmp 0x14003ae93
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 + 0x210730]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14003c774
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x210730]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14003ae8f
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 0x14003ae8f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14003c774
test rax, rax
js 0x14003ae8f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14003ae8f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14003ae81
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14003ae81
cmp byte [rcx], 0xd
jne 0x14003ae67
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14003ae76
cmp byte [rcx + 1], 0xa
jne 0x14003ae76
inc rcx
jmp 0x14003ae76
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x5d470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14003ae49
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14003ae93
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140024540
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 0x14003bb14
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, [0x140210730]
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 0x14003bb6b
cmp word [rdx], r13w
jne 0x14003bb6b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14003bb70
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14003bc95
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14003bcb6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14003bba9
mov rdx, r9
mov word [rbx], cx
jmp 0x14003bbd0
cmp r9, r8
jae 0x14003bbe0
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 0x14003bb8a
jmp 0x14003bc95
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 0x14003bc8a
cmp dword [rsp + 0x80], esi
je 0x14003bc8a
lea r8, [0x140210730]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14003bc62
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14003bc32
mov word [rbx], r13w
jmp 0x14003bc92
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 0x14003bc3f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14003bc92
cmp word [rsp + 0x70], r13w
jne 0x14003bc6f
cmp rbx, r14
je 0x14003bc2c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14003c77c
cmp word [rsp + 0x70], r13w
je 0x14003bc95
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, [0x140210730]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14003bc8f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14003bc95
Function at 0x14003f68c
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 0x14003f713
mov rsi, rbx
cmp word [rax], bp
je 0x14003f6d2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003f6bc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003f6b8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140036468
mov rdi, rax
test rax, rax
je 0x14003f700
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140026410
mov rbp, rdi
xor ecx, ecx
call fcn.14003642c
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 0x1400425e8
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.140037df4
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 0x140042689
cmp ebx, dword [rsp + 0x30]
je 0x140042682
test esi, esi
je 0x140042682
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14004265d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14004266a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140042647
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14004266e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14004268b
mov eax, 1
jmp 0x14004268b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140046a70
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.14003c77c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14003c77c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140046bc0
cmp rax, 0xffffffffffffffff
je 0x140046bc0
xor edi, edi
test rbp, rbp
jle 0x140046b6b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140038ae4
mov rbx, rax
test rax, rax
jne 0x140046af8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140046b61
mov edx, 0x8000
mov ecx, r14d
call fcn.140034340
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.14003a13c
cmp eax, 0xffffffff
je 0x140046b41
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140046b08
mov edx, r15d
mov ecx, r14d
call fcn.140034340
jmp 0x140046b61
cmp byte [rsi + 0x38], dil
je 0x140046b58
cmp dword [rsi + 0x34], 5
jne 0x140046b58
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140046b61
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14003642c
jmp 0x140046bd4
jns 0x140046bd4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14003c77c
cmp rax, 0xffffffffffffffff
jne 0x140046b8c
cmp byte [rsi + 0x30], dil
je 0x140046bd4
mov edi, dword [rsi + 0x2c]
jmp 0x140046bd4
mov ecx, r14d
call fcn.140040094
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140046bd4
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 0x140046bd4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140046bcd
mov eax, dword [rsi + 0x2c]
jmp 0x140046bd2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14003c77c
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 0x140011620
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov r10, rcx
mov rax, qword [r8]
cmp dword [rcx], 4
jne 0x140011640
sub r9, rax
cmp r9, 5
jae 0x140011647
xor esi, esi
jmp 0x1400117df
add rdx, rax
mov r12d, dword [r10 + 0x10]
add r9, 0xfffffffffffffffc
mov rax, 0xffffffffffffffff
xor esi, esi
lea r15, [0x14003a8b0]
mov r14d, 0x17
jmp 0x140011683
mov rcx, rsi
mov rsi, rcx
add rsi, 1
cmp rsi, r9
jae 0x1400117c2
mov cl, byte [rdx + rsi]
and cl, 0xfe
cmp cl, 0xe8
jne 0x140011670
mov rcx, rsi
sub rcx, rax
cmp rcx, 3
jbe 0x1400116a0
xor r12d, r12d
jmp 0x1400116e0
add cl, 0xff
shl r12d, cl
mov eax, r12d
and eax, 7
mov r12d, 0
test eax, eax
je 0x1400116e0
bt r14d, eax
jae 0x1400117af
movzx ecx, byte [rax + r15]
mov rdi, rsi
sub rdi, rcx
mov cl, byte [rdi + rdx + 4]
add cl, 1
cmp cl, 1
jbe 0x1400117af
mov r12d, eax
nop
movzx ebx, byte [rdx + rsi + 4]
lea eax, [rbx + 1]
cmp al, 1
jbe 0x1400116f9
lea r12d, [r12 + r12]
add r12d, 1
jmp 0x1400117b7
movzx eax, byte [rdx + rsi + 1]
movzx ecx, byte [rdx + rsi + 2]
shl ecx, 8
movzx ebp, byte [rdx + rsi + 3]
shl ebp, 0x10
shl ebx, 0x18
or ebx, eax
or ebx, ecx
or ebx, ebp
mov eax, dword [r10 + 0xc]
add eax, esi
mov r13d, 0xfffffffb
sub r13d, eax
add ebx, r13d
test r12d, r12d
je 0x140011785
mov eax, r12d
movzx r11d, byte [rax + r15]
shl r11d, 3
mov eax, 0x18
sub eax, r11d
mov ebp, ebx
mov ecx, eax
shr ebp, cl
add bpl, 1
cmp bpl, 1
ja 0x140011785
neg r11b
mov ebp, 0xffffffff
mov ecx, r11d
shl ebp, cl
not ebp
nop word cs:[rax + rax]
nop dword [rax + rax]
xor ebx, ebp
add ebx, r13d
mov edi, ebx
mov ecx, eax
shr edi, cl
add dil, 1
cmp dil, 2
jb 0x140011770
lea rcx, [rsi + 4]
mov eax, ebx
and eax, 0x1000000
mov ebp, eax
neg ebp
or ebp, eax
mov byte [rdx + rsi + 1], bl
mov byte [rdx + rsi + 2], bh
shr ebx, 0x10
mov byte [rdx + rsi + 3], bl
shr ebp, 0x18
mov byte [rdx + rsi + 4], bpl
jmp 0x1400117ba
lea r12d, [rax + rax]
add r12d, 1
mov rcx, rsi
mov rax, rsi
jmp 0x140011673
mov rdx, rsi
sub rdx, rax
lea ecx, [rdx - 1]
shl r12d, cl
xor eax, eax
cmp rdx, 3
cmovbe eax, r12d
mov dword [r10 + 0x10], eax
mov rax, qword [r8]
add rax, rsi
mov qword [r8], rax
add dword [r10 + 0xc], esi
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14001f614
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001f634
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001b954
or eax, 0xffffffff
jmp 0x14001f636
xor eax, eax
add rsp, 0x28
ret

Function at 0x14001f66c
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14001f68c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001b954
or eax, 0xffffffff
jmp 0x14001f68e
xor eax, eax
add rsp, 0x28
ret