joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140058774
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 0x1400587a4
xor eax, eax
jmp 0x140058867
mov rbp, rbx
cmp word [rax], si
je 0x1400587c9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400587b0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400587ac
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.1400586c4
movsxd r14, eax
test eax, eax
jne 0x140058807
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14005879d
mov rcx, r14
call fcn.140052e78
mov rdi, rax
test rax, rax
jne 0x140058820
xor ecx, ecx
call fcn.140052e3c
jmp 0x1400587fc
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.1400586c4
test eax, eax
jne 0x140058851
mov rcx, rdi
call fcn.140052e3c
jmp 0x14005885b
xor ecx, ecx
call fcn.140052e3c
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 0x140058884
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 0x14005890b
mov rsi, rbx
cmp word [rax], bp
je 0x1400588ca
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400588b4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400588b0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140052e78
mov rdi, rax
test rax, rax
je 0x1400588f8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003c960
mov rbp, rdi
xor ecx, ecx
call fcn.140052e3c
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 0x14005da4c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14005da7e
call fcn.140048730
mov dword [rax], 0x16
call fcn.140044d10
jmp 0x14005db9d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14005db9d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14005db9d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14005daad
lock or dword [rcx + 0x14], 0x10
jmp 0x14005db9d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14005dac1
call fcn.14005f0b0
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14005648c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14005e82c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14005db8b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14005db56
mov rcx, rsi
call fcn.14005648c
cmp eax, edi
je 0x14005db41
mov rcx, rsi
call fcn.14005648c
cmp eax, 0xfffffffe
je 0x14005db41
mov rcx, rsi
call fcn.14005648c
movsxd rbx, eax
lea r14, [0x1400bb400]
mov rcx, rsi
sar rbx, 6
call fcn.14005648c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14005db48
lea rdx, [0x14007e3c0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14005db56
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14005db7a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14005db7a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14005db7a
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14005dba0
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14005dec8
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.140063c60
sub rsp, rax
mov rax, qword [0x14007e008]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14005648c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14005df17
mov rax, rbp
jmp 0x14005e01f
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 + 0xbb400]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14005f004
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xbb400]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14005e01b
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 0x14005e01b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14005f004
test rax, rax
js 0x14005e01b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14005e01b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14005e00d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14005e00d
cmp byte [rcx], 0xd
jne 0x14005dff3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14005e002
cmp byte [rcx + 1], 0xa
jne 0x14005e002
inc rcx
jmp 0x14005e002
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x7e950]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14005dfd5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14005e01f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140012e20
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 0x14005e380
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1400bb400]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14005e3de
cmp word [rdx], r12w
jne 0x14005e3de
or byte [rax + r8*8 + 0x38], cl
jmp 0x14005e3e4
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14005e53f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14005e51a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14005e41d
mov rcx, r9
jmp 0x14005e440
cmp r9, rdx
jae 0x14005e457
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14005e401
jmp 0x14005e53f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005e514
cmp dword [rsp + 0x80], edi
je 0x14005e514
mov rdx, r14
lea r11, [0x1400bb400]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14005e4ed
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14005e4c0
mov word [rbx], r12w
jmp 0x14005e53b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14005e4c9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14005e53b
cmp word [rsp + 0x70], r12w
jne 0x14005e4fa
cmp rbx, rsi
je 0x14005e4ba
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14005f00c
cmp word [rsp + 0x70], r12w
je 0x14005e53f
mov word [rbx], r13w
jmp 0x14005e53b
lea r11, [0x1400bb400]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14005e537
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14005e53f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400621a8
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.140040f48
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140062232
cmp byte [rbp - 0x21], r15b
je 0x14006222d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140062268
call fcn.140054158
test eax, eax
jne 0x140062254
cmp byte [rbp - 0x21], r15b
je 0x14006224c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140062268
cmp byte [rbp - 0x21], r15b
je 0x140062265
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.14004fd1c
test eax, eax
jne 0x140062308
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140040f48
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400622a7
cmp byte [rbp - 0x21], r15b
je 0x1400622dc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400622dc
call fcn.140054158
test eax, eax
jne 0x1400622c8
cmp byte [rbp - 0x21], r15b
je 0x1400622c1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400622dc
cmp byte [rbp - 0x21], r15b
je 0x1400622d9
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.14004fd1c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140062308
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14006230b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140062319
mov rcx, rdi
call fcn.140052e3c
cmp byte [rbp + 0x3f], r15b
je 0x140062328
mov rcx, qword [rbp + 0x27]
call fcn.140052e3c
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 0x140063d50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140063d78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140063d78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001f10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x140001f2d
mov rcx, rdi
call fcn.140002850
test eax, eax
jne 0x140001f40
mov rcx, rdi
call fcn.140002db0
test eax, eax
jne 0x140001f40
mov eax, dword [rdi + 0x24]
test eax, eax
je 0x140001f47
add rsp, 0x28
pop rdi
pop rsi
ret
xor eax, eax
test rsi, rsi
je 0x140001f40
mov rcx, qword [rdi + 8]
movzx ecx, word [rcx]
cmp ecx, 0x280
jne 0x140001f40
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140002e40
Function at 0x140002370
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov ebx, edx
mov qword [rsp + 0x28], rcx
lea rcx, str.TSS2_LOG
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400025ab
mov rsi, rax
mov rcx, rax
mov edx, 0x2b
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x1400025ab
mov rdi, rax
mov qword [rsp + 0x38], rsi
jmp 0x1400023ea
mov eax, dword [rsp + 0x24]
mov ebp, eax
add rdi, 1
mov rcx, rdi
mov edx, 0x2b
call sub.VCRUNTIME140.dll_strchr
mov rdi, rax
mov ebx, ebp
test rax, rax
mov rsi, qword [rsp + 0x38]
je 0x1400025ad
mov dword [rsp + 0x24], ebx
lea rax, [rdi - 3]
cmp rsi, rax
ja 0x140002470
lea rcx, [0x14009be54]
cmp rax, rcx
je 0x1400024f0
mov bl, byte [rax]
movzx ecx, bl
mov rbp, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
call rbp
mov esi, eax
mov ecx, 0x61
call rbp
cmp esi, eax
jne 0x140002470
test bl, bl
je 0x1400024f0
mov bl, byte [rdi - 2]
movzx ecx, bl
mov rbp, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
call rbp
mov esi, eax
mov ecx, 0x6c
call rbp
cmp esi, eax
jne 0x140002470
test bl, bl
je 0x1400024f0
movzx ecx, byte [rdi - 1]
mov rbx, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
call rbx
mov esi, eax
mov ecx, 0x6c
call rbx
cmp esi, eax
je 0x1400024f0
nop dword [rax]
mov rsi, qword [rsp + 0x28]
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
test rsi, rsi
je 0x1400023c0
mov r14, rax
mov r12, rdi
sub r12, rax
cmp qword [rsp + 0x38], r12
ja 0x1400023c0
test r14, r14
je 0x1400024f0
cmp r12, qword [rsp + 0x28]
je 0x1400024f0
xor ebp, ebp
nop dword [rax + rax]
movzx r15d, byte [r12 + rbp]
movzx ecx, r15b
mov r13, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
call r13
mov esi, eax
mov rax, qword [rsp + 0x28]
movzx ebx, byte [rax + rbp]
movzx ecx, bl
call r13
cmp esi, eax
jne 0x1400023c0
test r15b, r15b
je 0x1400024f0
test bl, bl
je 0x1400024f0
add rbp, 1
cmp r14, rbp
jne 0x1400024b0
nop
lea r15, [rdi + 1]
xor ecx, ecx
mov qword [rsp + 0x30], rdi
lea rax, str.none
mov qword [rsp + 0x40], rcx
mov rbx, qword [rax + rcx*8]
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
cmp rbx, r15
je 0x140002590
mov rbp, rax
test rax, rax
je 0x140002590
xor edi, edi
nop word cs:[rax + rax]
nop dword [rax]
movzx r14d, byte [rbx + rdi]
movzx ecx, r14b
mov r12, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
call r12
mov esi, eax
movzx r13d, byte [r15 + rdi]
movzx ecx, r13b
call r12
cmp esi, eax
jne 0x140002570
test r14b, r14b
je 0x140002590
test r13b, r13b
je 0x140002590
add rdi, 1
cmp rbp, rdi
jne 0x140002530
jmp 0x140002590
mov rcx, qword [rsp + 0x40]
add rcx, 1
cmp rcx, 7
mov rdi, qword [rsp + 0x30]
jne 0x1400024fb
jmp 0x1400023c0
mov rbp, qword [rsp + 0x40]
cmp ebp, 0xff
mov rdi, qword [rsp + 0x30]
je 0x1400023c0
jmp 0x1400023c6
mov ebp, ebx
mov eax, ebp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140033e70
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x30
mov rax, qword [0x1400b0068]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rdx
xor ecx, ecx
lea rdx, [rsp + 0x20]
mov rsi, r8
call fcn.14000a0d0
test eax, eax
jne 0x140033efe
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbx], rax
test rax, rax
jne 0x140033ebc
lea ecx, [rax + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x40], rdi
mov r8, rsi
mov rdi, rax
xor eax, eax
rep stosb byte [rdi], al
mov rcx, qword [rbx]
call fcn.14000a0d0
mov edi, eax
test eax, eax
je 0x140033ef7
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, edi
mov qword [rbx], 0
jmp 0x140033ef9
xor eax, eax
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140058810
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
Function at 0x140044820
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x28
cmp byte [0x1400bfba3], 0
je 0x140044838
mov eax, dword [0x1400bfba4]
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx r8d, ax
mov edx, r8d
and edx, 0x3ff
sub edx, 7
je 0x1400448a1
sub edx, 2
je 0x14004489a
sub edx, 1
je 0x140044876
sub edx, 0xb
je 0x14004486c
cmp edx, 1
jne 0x14004489a
lea eax, [rdx + 1]
add rsp, 0x28
ret
mov eax, 5
add rsp, 0x28
ret
mov eax, 0xfc00
mov ecx, 0x800
and r8w, ax
mov edx, 1
cmp r8w, cx
mov eax, 3
cmovne eax, edx
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
mov eax, 4
add rsp, 0x28
ret
Function at 0x14004a5d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x1400b0068]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rbx, rcx
lea rax, vtable.LogItem.0
mov qword [rbp - 0x60], rax
call fcn.14002cde0
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14002c510
nop
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x60]
call fcn.14002c510
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.14002ca50
nop
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x80]
call fcn.14002c510
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.14002ca50
mov dword [rbp + 8], 1
mov rdi, qword [rbx + 0x78]
sub rdi, qword [rbx + 0x70]
sar rdi, 2
mov dword [rbp + 0xc], 2
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
mov r8d, 0x1e
lea rdx, str.Executing_scheduled_commands:
lea rcx, [rsp + 0x40]
call fcn.14002b560
nop
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.14002d540
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14004a6ea
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a6e5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a6e5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140058b8c
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.14003e4b0
nop
lea rcx, [rbp - 0x60]
call fcn.14002cfc0
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rax, [rbx + 0x2c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x14003f320]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
test rax, rax
je 0x14004a761
mov rcx, rbx
call fcn.14003f7a0
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140058810
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
lea rdx, str.Thread::Start
lea rcx, [rbp - 0x80]
call fcn.14002b700
nop
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x60]
call fcn.14002c930
nop
lea rdx, str.CreateThreadfailed__error
mov rcx, rax
call fcn.14003fab0
mov rcx, rax
lea rdx, [rsp + 0x38]
call fcn.14003fe50
mov rcx, rax
call fcn.1400401f0
mov rcx, rax
call fcn.14003fc80
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.140040020
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.14002cce0
lea rdx, [0x1400ac520]
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140053d40
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x1400b0068]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x140093828]
lea rcx, [rbx + 8]
cmp qword [rbx + 0x20], 8
jb 0x140053d7a
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140053d9d
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140058810
add rsp, 0x140
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x30]
call fcn.140034fe0
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140035750
mov rbx, rax
lea rcx, [rsp + 0xd0]
call fcn.140035500
nop
lea rdx, str.Error_when_deleting_file:
mov rcx, rax
call fcn.14003fab0
mov rcx, rax
mov rdx, rbx
call fcn.14004f990
mov rcx, rax
lea rdx, str.Last_error:
call fcn.14003fab0
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.14003fe50
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14002cce0
lea rdx, [0x1400ac520]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140053e30
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x180
mov rax, qword [0x1400b0068]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rdi, rdx
mov rbx, rcx
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x140093828]
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140053e6f
mov rdx, qword [rdi]
lea rcx, [rbx + 8]
cmp qword [rbx + 0x20], 8
jb 0x140053e7e
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x140053ea9
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140058810
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x180
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140034fe0
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140035750
mov rdi, rax
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x50]
call fcn.140034fe0
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.140035750
mov rbx, rax
lea rcx, [rsp + 0x110]
call fcn.140035500
nop
mov rcx, rax
call fcn.1400548a0
mov rcx, rax
mov rdx, rbx
call fcn.14004f990
mov rcx, rax
call fcn.140054a70
mov rcx, rax
mov rdx, rdi
call fcn.14004f990
mov rcx, rax
lea rdx, str.Last_error:
call fcn.14003fab0
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.14003fe50
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.14002cce0
lea rdx, [0x1400ac520]
lea rcx, [rsp + 0xb0]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140053ff0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x1400b0068]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], 0
test rdx, rdx
je 0x14005407d
mov edx, 0xc0000004
mov r9d, 2
call fcn.140053a90
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, esi
mov rdx, rdi
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400540b8
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140058810
add rsp, 0x170
pop rdi
pop rsi
pop rbx
ret
lea rdx, str.Invalid_data_passed
lea rcx, [rsp + 0x48]
call fcn.14002b700
nop
mov dword [rsp + 0x30], 1
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.140038510
lea rdx, [0x1400ac7e8]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x48]
call fcn.140034fe0
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140035750
mov rbx, rax
lea rcx, [rsp + 0x100]
call fcn.140035500
nop
mov rcx, rax
call fcn.140054c40
mov rcx, rax
lea rdx, [rsp + 0x38]
call fcn.140054500
mov rcx, rax
lea rdx, str._bytes_to_file
call fcn.14003fab0
mov rcx, rax
mov rdx, rbx
call fcn.14004f990
mov rcx, rax
lea rdx, str.Last_error:
call fcn.14003fab0
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.14003fe50
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.14002cce0
lea rdx, [0x1400ac520]
lea rcx, [rsp + 0xa0]
call sub.VCRUNTIME140.dll__CxxThrowException
int3