joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400302f0
Capabilities:
Set environment variable

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0xb0
mov rax, qword [0x140071540]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x140073c70]
mov rbx, r8
mov rdi, rdx
mov r15, rcx
test rax, rax
jne 0x140030340
lea rcx, [0x1400530bc]
call qword [sym.imp.python312.dll_PyImport_ImportModule]
mov qword [0x140073c70], rax
test rax, rax
je 0x14003051d
mov qword [rsp + 0xa8], rbp
lea rdx, str.environ
mov qword [rsp + 0xa0], rsi
mov rcx, rax
mov qword [rsp + 0x98], r12
mov qword [rsp + 0x90], r14
call qword [sym.imp.python312.dll_PyObject_GetAttrString]
mov rcx, rdi
mov rbp, rax
call qword [sym.imp.python312.dll_PyUnicode_FromString]
mov r14, rax
test rbx, rbx
je 0x1400303e7
mov rdx, rbx
mov rcx, rdi
call fcn.140030140
mov rdx, 0xffffffffffffffff
mov rcx, rbx
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov rdx, r14
mov rcx, rbp
mov r8, rax
mov rbx, rax
call qword [sym.imp.python312.dll_PyObject_SetItem]
test eax, eax
je 0x1400303cc
mov ecx, 1
call qword [sym.imp.python312.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python312.dll_Py_Exit]
int3
cmp dword [rbx], 0
jl 0x1400304b0
sub qword [rbx], 1
jne 0x1400304b0
mov rcx, rbx
jmp 0x1400304aa
movzx eax, byte [rdi]
lea rbx, [rsp + 0x30]
xor r12d, r12d
mov esi, 0x28
mov word [rsp + 0x30], r12w
test al, al
je 0x140030475
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r12b
lea rcx, [rsp + 0x24]
call fcn.1400417d4
cmp rax, 1
jne 0x140030517
mov rcx, rsi
mov rax, rbx
cmp word [rbx], r12w
je 0x14003044d
nop word [rax + rax]
add rax, 2
dec rcx
cmp word [rax], r12w
jne 0x140030440
cmp rcx, 1
jb 0x140030517
movzx ecx, word [rsp + 0x24]
inc rdi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r12w
dec rsi
movzx eax, byte [rdi]
test al, al
jne 0x140030401
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.python312.dll_PyObject_DelItem]
test eax, eax
je 0x1400304b0
mov rcx, qword [r15 + 0x60]
mov qword [r15 + 0x60], r12
test rcx, rcx
je 0x1400304b0
cmp dword [rcx], r12d
jl 0x1400304b0
sub qword [rcx], 1
jne 0x1400304b0
call qword [sym.imp.python312.dll__Py_Dealloc]
cmp dword [r14], 0
jl 0x1400304c5
sub qword [r14], 1
jne 0x1400304c5
mov rcx, r14
call qword [sym.imp.python312.dll__Py_Dealloc]
cmp dword [rbp], 0
jl 0x1400304db
sub qword [rbp], 1
jne 0x1400304db
mov rcx, rbp
call qword [sym.imp.python312.dll__Py_Dealloc]
mov r12, qword [rsp + 0x98]
mov rsi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xa8]
mov r14, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400305b0
add rsp, 0xb0
pop r15
pop rdi
pop rbx
ret
call fcn.140033e00
int3
call fcn.140033e00
int3
Function at 0x1400310a8
Capabilities:
Parse pe header

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

Function at 0x140039164
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 0x1400391d3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400391d3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400391d3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400391d3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400391d3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400391d3
cmp dword [rcx + 0xf8], 0
je 0x1400391d3
mov ecx, ebx
call fcn.140039284
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.140039060
nop
cmp dword [rbp + 0x20], 0
je 0x140039221
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003922c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140039164

Function at 0x140039368
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 0x1400391d3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400391d3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400391d3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400391d3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400391d3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400391d3
cmp dword [rcx + 0xf8], 0
je 0x1400391d3
mov ecx, ebx
call fcn.140039284
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.140039060
nop
cmp dword [rbp + 0x20], 0
je 0x140039221
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003922c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140039164
Function at 0x140049010
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 0x140049097
mov rsi, rbx
cmp word [rax], bp
je 0x140049056
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140049040
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14004903c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004536c
mov rdi, rax
test rax, rax
je 0x140049084
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14004ecd0
mov rbp, rdi
xor ecx, ecx
call fcn.140044824
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 0x14004c448
Capabilities:
Get file size

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

Function at 0x14004eb20
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x60]
mov qword [rbp - 8], rcx
mov qword [rbp - 0x10], rdx
mov qword [rbp - 0x18], r8
mov qword [rbp - 0x20], r9
mov rcx, r9
call fcn.100008ed0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
nop
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
lea rcx, [rbp - 0x28]
call fcn.100008e80
mov rax, qword [rbp - 0x18]
xor r8d, r8d
lea rcx, [rbp - 0x30]
mov rdx, rax
call fcn.100009970
mov rdx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x20]
xor r9d, r9d
lea rcx, [rbp - 0x28]
call fcn.100009020
mov r9, qword [rbp - 0x28]
test r9, r9
jne 0x1000049a3
lea r9, [0x10002b570]
mov r8, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
xor ecx, ecx
call sub.shell32.dll_ShellExecuteA
nop
mov rcx, rbp
call dbg.fin$0000017C
nop
lea rsp, [rbp]
pop rbp
ret

Function at 0x10000e6d0
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
push rdi
push rsi
lea rsp, [rsp - 0x20]
mov ax, word [0x10001c4b0]
cmp ax, 0xcb
je 0x10000e80c
cmp ax, 0xcc
je 0x10000e80c
nop
mov rax, qword [0x10002bae0]
test rax, rax
je 0x10000e70d
mov ecx, dword [0x10002b8d0]
call rax
mov rbx, rax
jmp 0x10000e714
lea rbx, [0x10002b8d8]
cmp word [0x10002b8c0], 0
jle 0x10000e73c
lea rcx, [0x10002b890]
call fcn.10000e9f0
mov rcx, rbx
call fcn.10000e190
mov rcx, rbx
call fcn.10000e220
nop
mov rsi, qword [rbx]
jmp 0x10000e769
mov rdi, qword [rsi + 8]
mov rax, qword [rsi]
and rax, 1
jne 0x10000e762
mov rdx, rsi
mov rcx, rbx
call fcn.10000d410
jmp 0x10000e766
and qword [rsi], 0xfffffffffffffffe
mov rsi, rdi
test rsi, rsi
jne 0x10000e748
mov qword [rbx], 0
mov dword [rbx + 0x90], 0
cmp word [0x10002b8c0], 0
jle 0x10000e80c
lea rdx, [0x10002b7a0]
mov rcx, rbx
call fcn.10000d590
mov rsi, rax
test rax, rax
je 0x10000e7d8
mov rax, qword [0x10002b840]
mov qword [rsi + 0x18], rax
cmp qword [0x10002b840], 0
je 0x10000e7c8
mov rax, qword [0x10002b840]
mov qword [rax + 0x10], rsi
nop dword [rax]
mov rax, qword [rbx + 0xa0]
mov qword [0x10002b840], rax
nop
sub word [0x10002b8c0], 1
cmp word [0x10002b8c0], 0
sete bl
lea rcx, [0x10002b890]
call fcn.10000ea10
test bl, bl
je 0x10000e80c
lea rcx, [0x10002b890]
call fcn.10000e9d0
nop dword [rax]
nop
lea rsp, [rsp + 0x20]
pop rsi
pop rdi
pop rbx
ret
Function at 0x1000117d0
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rdi
push rsi
push r12
push r13
push r14
lea rsp, [rsp - 0x128]
xor esi, esi
mov qword [0x10002b4b0], 0
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x24]
mov r8d, 0x104
xor ecx, ecx
call sub.kernel32.dll_GetModuleFileNameA
mov ebx, eax
and eax, eax
mov byte [rsp + rax + 0x24], 0
mov r8d, ebx
xor edx, edx
mov rcx, rsp
call fcn.1000119b0
movsxd rax, ebx
lea r8, [rax + 1]
mov rax, qword [0x10002b4b0]
mov rdx, qword [rax]
lea rcx, [rsp + 0x24]
call fcn.100005fd0
call sub.kernel32.dll_GetCommandLineA
mov qword [0x10001c520], rax
mov r14, rax
jmp 0x100011957
add r14, 1
movzx eax, byte [r14]
sub eax, 1
cmp eax, 0x20
jb 0x100011858
cmp byte [r14], 0
je 0x100011961
nop
xor dil, dil
mov r12, r14
xor ebx, ebx
jmp 0x1000118c0
mov al, byte [r14]
cmp al, 1
jb 0x1000118b8
sub al, 0x20
jbe 0x100011894
sub al, 2
je 0x1000118a0
jmp 0x1000118b8
test dil, dil
je 0x1000118c6
add ebx, 1
jmp 0x1000118bc
cmp byte [r14 + 1], 0x22
je 0x1000118b0
test dil, dil
sete dil
jmp 0x1000118bc
add r14, 1
jmp 0x1000118bc
add ebx, 1
nop
add r14, 1
cmp byte [r14], 0
jne 0x100011880
test esi, esi
je 0x100011954
mov r8d, ebx
mov edx, esi
mov rcx, rsp
call fcn.1000119b0
xor dil, dil
mov r14, r12
mov rdx, qword [0x10002b4b0]
movsxd rax, esi
mov r13, qword [rdx + rax*8]
jmp 0x100011948
mov al, byte [r14]
cmp al, 1
jb 0x100011938
sub al, 0x20
jbe 0x10001190c
sub al, 2
je 0x100011920
jmp 0x100011938
test dil, dil
je 0x10001194e
mov al, byte [r14]
mov byte [r13], al
add r13, 1
jmp 0x100011944
cmp byte [r14 + 1], 0x22
je 0x100011930
test dil, dil
sete dil
jmp 0x100011944
add r14, 1
jmp 0x100011944
mov al, byte [r14]
mov byte [r13], al
add r13, 1
nop
add r14, 1
cmp byte [r14], 0
jne 0x1000118f8
mov byte [r13], 0
nop
add esi, 1
cmp byte [r14], 0
jne 0x10001185c
mov dword [0x10002b4a0], esi
movsxd rax, esi
lea rdx, [rax + 1]
shl rdx, 3
lea rcx, [0x10002b4b0]
call fcn.10000e4b0
mov rax, qword [0x10002b4b0]
movsxd rsi, esi
mov qword [rax + rsi*8], 0
nop
lea rsp, [rsp + 0x128]
pop r14
pop r13
pop r12
pop rsi
pop rdi
pop rbx
ret

Function at 0x100015310
Capabilities:
Hash data with crc32

Disassembly:
mov dx, 0xffff
nop dword [rax]
add dx, 1
movsx eax, dx
mov ecx, eax
xor r8w, r8w
nop
add r8w, 1
mov eax, ecx
and eax, 1
je 0x100015342
mov eax, ecx
shr eax, 1
xor eax, 0xedb88320
mov ecx, eax
jmp 0x100015344
shr ecx, 1
cmp r8w, 8
jl 0x100015328
movzx eax, dx
lea r9, [0x1001348d0]
mov dword [r9 + rax*4], ecx
cmp dx, 0xff
jl 0x100015318
ret

Function at 0x100015370
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rdi
push rsi
lea rsp, [rsp - 0x20]
mov ebx, ecx
mov rsi, rdx
mov edi, r8d
cmp dword [0x1001348d4], 0
jne 0x100015390
call fcn.100015310
nop
mov eax, ebx
not eax
cmp edi, 1
jl 0x1000153cc
xor edx, edx
nop dword [rax + rax]
add edx, 1
mov cl, al
xor cl, byte [rsi]
and ecx, 0xff
mov r8d, eax
shr r8d, 8
lea r9, [0x1001348d0]
xor r8d, dword [r9 + rcx*4]
mov eax, r8d
add rsi, 1
cmp edi, edx
jg 0x1000153a0
nop
not eax
nop
lea rsp, [rsp + 0x20]
pop rsi
pop rdi
pop rbx
ret
Function at 0x100019e10
Capabilities:
Get geographical location

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x50]
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], r13
mov rsi, rcx
mov edi, edx
mov r12d, r8d
mov r13, r9
mov qword [rbp - 8], 0
nop
mov edx, r12d
mov ecx, edi
xor r9d, r9d
xor r8, r8
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test ebx, ebx
jle 0x100019e91
movsxd rdx, ebx
sub rdx, 1
lea rcx, [rbp - 8]
call fcn.10000b060
cmp ebx, 1
jle 0x100019e80
mov r8, qword [rbp - 8]
mov r9d, ebx
mov edx, r12d
mov ecx, edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
nop
mov rcx, rsi
mov rdx, qword [rbp - 8]
xor r8d, r8d
call fcn.10000acc0
jmp 0x100019e9c
mov rcx, rsi
mov rdx, r13
call fcn.100008f00
nop
mov rcx, rbp
call fcn.100019df0
mov rbx, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x28]
mov rsi, qword [rbp - 0x20]
mov r12, qword [rbp - 0x18]
mov r13, qword [rbp - 0x10]
lea rsp, [rbp]
pop rbp
ret

Function at 0x10001a080
Capabilities:
Get geographical location

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x60]
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 0
nop
xor ebx, ebx
nop dword [rax]
add ebx, 1
mov eax, ebx
lea rdx, [0x100134ee0]
lea rcx, [rdx + rax*8 - 8]
xor edx, edx
call fcn.100008f00
mov eax, ebx
lea rdx, [0x100134f20]
mov dword [rdx + rax*4 - 4], 0xffffffff
cmp ebx, 7
jl 0x10001a0a0
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
lea r8, [rbp - 0xc]
mov ecx, esi
mov r9d, 0xb
mov edx, 0x100b
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x10001a154
nop
mov byte [rsp + 0x20], 1
lea rdx, [rbp - 0xc]
xor r9d, r9d
mov r8d, 0xa
lea rcx, [rbp - 0x18]
call fcn.100009a20
mov rcx, qword [rbp - 0x18]
mov edx, 1
call fcn.100015c10
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x10001a154
lea rcx, [0x100019f20]
mov r8d, ebx
mov edx, esi
mov r9d, 4
call sub.kernel32.dll_EnumCalendarInfoA
lea rcx, [0x100019fd0]
mov r8d, ebx
mov edx, esi
mov r9d, 3
call sub.kernel32.dll_EnumCalendarInfoA
nop dword [rax]
nop
mov rcx, rbp
call fcn.10001a060
mov rbx, qword [rbp - 0x28]
mov rsi, qword [rbp - 0x20]
lea rsp, [rbp]
pop rbp
ret
Function at 0x10001a810
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x70]
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], r13
mov rbx, rcx
mov qword [rbp - 8], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
nop
lea rcx, [rbp - 0x18]
call fcn.100015bf0
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp - 8]
call fcn.100008f00
lea rcx, [rbp - 8]
mov r8b, 1
mov edx, 1
call fcn.10000a5a0
mov rcx, rbx
xor edx, edx
call fcn.100008f00
call sub.kernel32.dll_GetEnvironmentStringsA
mov rsi, rax
mov rdi, rsi
jmp 0x10001a955
mov rdx, rdi
lea rcx, [rbp - 0x10]
xor r8d, r8d
call fcn.100009970
mov rax, qword [rbp - 0x10]
test rax, rax
je 0x10001a8bc
mov rax, qword [rax - 8]
mov r13d, eax
lea rcx, [rbp - 0x10]
xor r8b, r8b
mov edx, 1
call fcn.10000a5a0
mov rdx, qword [rbp - 0x10]
mov r8d, 1
mov ecx, 0x3d
call fcn.10000a030
mov r12d, eax
movsxd r9, eax
sub r9, 1
mov rdx, qword [rbp - 0x10]
mov r8d, 1
lea rcx, [rbp - 0x28]
call fcn.100009ec0
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x20]
call fcn.100015bf0
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 8]
call fcn.100009be0
test rax, rax
jne 0x10001a948
mov r9, qword [rbp - 0x10]
test r9, r9
je 0x10001a92d
mov r9, qword [r9 - 8]
movsxd rax, r12d
sub r9, rax
movsxd rax, r12d
lea r8, [rax + 1]
mov rcx, rbx
mov rdx, qword [rbp - 0x10]
call fcn.100009ec0
jmp 0x10001a95e
movsxd rax, r13d
add rax, rdi
add rax, 1
mov rdi, rax
cmp byte [rdi], 0
jne 0x10001a8a0
mov rcx, rsi
call sub.kernel32.dll_FreeEnvironmentStringsA
nop
mov rcx, rbp
call fcn.10001a7d0
mov rbx, qword [rbp - 0x50]
mov rdi, qword [rbp - 0x48]
mov rsi, qword [rbp - 0x40]
mov r12, qword [rbp - 0x38]
mov r13, qword [rbp - 0x30]
lea rsp, [rbp]
pop rbp
ret

Function at 0x10001a9b0
Capabilities:
Check os version

Disassembly:
lea rsp, [rsp - 0xb8]
mov qword [0x100134f60], 0
mov dword [rsp + 0x20], 0x94
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetVersionExA
mov eax, dword [rsp + 0x30]
mov dword [0x100134da0], eax
mov eax, dword [rsp + 0x24]
mov dword [0x100134db0], eax
mov eax, dword [rsp + 0x28]
mov dword [0x100134dc0], eax
mov eax, dword [rsp + 0x2c]
mov dword [0x100134dd0], eax
lea rdx, [0x100134de1]
lea rcx, [rsp + 0x34]
mov r8d, pe_nt_image_headers64
call fcn.100005fd0
lea rcx, [rsp + 0x34]
call fcn.100006c00
mov byte [0x100134de0], al
lea rcx, str.kernel32
call sub.kernel32.dll_GetModuleHandleA
mov qword [0x100134f70], rax
test rax, rax
je 0x10001aa58
mov rcx, qword [0x100134f70]
lea rdx, str.GetDiskFreeSpaceExA
call sub.kernel32.dll_GetProcAddress
mov qword [0x100134f60], rax
nop
cmp dword [0x100134db0], 6
jae 0x10001aa6c
mov dword [0x10001ccc0], 0
nop
cmp dword [0x100134db0], 6
jb 0x10001aa88
cmp dword [0x100134dc0], 1
jb 0x10001aa88
mov dword [0x10001ccd0], 2
nop
lea rsp, [rsp + 0xb8]
ret
Function at 0x140004550
Capabilities:
Create http request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x80
xor r14d, r14d
mov word [rbp - 0x50], 0x2b
mov cl, 0x2b
mov word [rbp - 0x34], r14w
movsx r9d, cl
lea rsi, [rbp + 8]
mov rdi, qword [rsi]
movzx edx, r9w
movzx ecx, r9w
mov qword [rsi], r14
movzx r8d, r9w
mov dword [rsp + 0x20], r14d
xor r8w, 0x4e
movzx eax, r9w
xor ax, 0x62
mov word [rbp - 0x48], r8w
mov word [rbp - 0x4e], ax
xor dx, 0x45
movzx eax, r9w
mov word [rbp - 0x4c], dx
xor ax, 0x59
mov word [rbp - 0x44], dx
mov word [rbp - 0x46], ax
lea edx, [r14 + 1]
movzx eax, r9w
mov word [rbp - 0x42], r8w
xor ax, 0x68
mov word [rbp - 0x3a], r8w
mov word [rbp - 0x3e], ax
xor cx, 0x5f
movzx eax, r9w
mov word [rbp - 0x4a], cx
xor ax, 0x43
mov word [rbp - 0x40], cx
mov word [rbp - 0x3c], ax
lea rcx, [rbp - 0x4e]
movzx eax, r9w
xor r8d, r8d
xor r9w, 0x40
xor ax, 0x48
mov word [rbp - 0x36], r9w
xor r9d, r9d
mov word [rbp - 0x38], ax
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rbx, rax
test rax, rax
je 0x14000473f
mov cl, 0x48
mov qword [rsp + 0x28], r14
movsx r8d, cl
xor r9d, r9d
movzx ecx, r8w
mov word [rbp - 0x30], 0x48
xor cx, 0x20
mov word [rbp - 4], r14w
mov word [rbp - 0x2e], cx
movzx eax, r8w
xor ax, 0x38
mov dword [rsp + 0x20], 0x80000000
mov word [rbp - 0x28], ax
movzx ecx, r8w
xor cx, 0x3c
movzx edx, r8w
movzx eax, r8w
mov word [rbp - 0x2c], cx
xor ax, 0x72
mov word [rbp - 0x2a], cx
mov word [rbp - 0x26], ax
movzx ecx, r8w
xor cx, 0x27
movzx eax, r8w
xor ax, 0x67
mov word [rbp - 0x16], cx
mov word [rbp - 0x24], ax
xor dx, 0x66
mov word [rbp - 0x22], ax
movzx eax, r8w
xor ax, 0x3f
mov word [rbp - 0x1a], dx
mov word [rbp - 0x20], ax
mov word [rbp - 0x1e], ax
mov word [rbp - 0x1c], ax
movzx eax, r8w
xor ax, 0x2f
mov word [rbp - 0x14], cx
mov word [rbp - 0x18], ax
mov word [rbp - 0x12], ax
movzx eax, r8w
xor ax, 0x24
mov word [rbp - 0xc], dx
mov word [rbp - 0x10], ax
lea rdx, [rbp - 0x2e]
movzx eax, r8w
mov word [rbp - 8], cx
xor ax, 0x2d
mov rcx, rbx
mov word [rbp - 0xe], ax
movzx eax, r8w
xor r8w, 0x25
xor ax, 0x2b
mov word [rbp - 6], r8w
xor r8d, r8d
mov word [rbp - 0xa], ax
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
test rax, rax
je 0x140004736
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, 1
jmp 0x140004741
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
lea r11, [rsp + 0x80]
mov qword [rsi], rdi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140007a30
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140007a58
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140007a7e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140007a80
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140007ad9
test ecx, ecx
jle 0x140007ab9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140007ad9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140007ad9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140007b00
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140007b22
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140007b38
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140007b54
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140007b56
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140007b92
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140007c2e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140007bcd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140007c0e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140007c2e
cmp rbx, rax
ja 0x140007be0
test rbx, rbx
je 0x140007c2e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret