joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14019290c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140192943
call fcn.140189d70
mov dword [rax], SafeArrayPutElement
call fcn.140189c04
xor eax, eax
jmp 0x1401929d1
mov rdx, r9
mov rcx, r8
call fcn.1401927e0
mov rbx, rax
test rax, rax
je 0x1401929ce
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14019269c]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1401929bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140189ce4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1401929a2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401929b1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1401a3b88
jmp 0x1401929ce
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401929cb
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140197f88
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x140197fc3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140189ce4
call fcn.140189d70
mov eax, dword [rax]
jmp 0x14019803a
cmp rdi, qword [rbx + 0x18]
ja 0x140197fcf
mov qword [rbx + 0x20], rdi
jmp 0x140198038
cmp byte [rbx + 0x28], 0
lea rsi, [rdi + 1]
je 0x140197fe6
mov rcx, qword [rbx + 0x10]
call fcn.1401a3b88
mov byte [rbx + 0x28], 0
lea rcx, [rdi*2 + 2]
call fcn.1401a4ef0
mov qword [rbx + 0x10], rax
mov r8, rax
neg rax
mov edx, 0
sbb eax, eax
not eax
and eax, 0xc
cmove rdx, rsi
test eax, eax
sete cl
mov byte [rbx + 0x28], cl
mov qword [rbx + 0x18], rdx
test eax, eax
jne 0x14019803a
mov ecx, dword [rbx + 0x18]
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x140197fad
mov qword [rbx + 0x20], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140198f4c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140198d48
Function at 0x140199270
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.140183800
sub rsp, rax
mov rax, qword [0x14021a0b8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140199ae4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401992bf
mov rax, rbp
jmp 0x1401993c7
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 + 0x222880]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1401a85a0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x222880]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401993c3
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 0x1401993c3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1401a85a0
test rax, rax
js 0x1401993c3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401993c3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401993b5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401993b5
cmp byte [rcx], 0xd
jne 0x14019939b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401993aa
cmp byte [rcx + 1], 0xa
jne 0x1401993aa
inc rcx
jmp 0x1401993aa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x21a4b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14019937d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401993c7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401835a0
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 0x1401a8840
Capabilities:
Get file size

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

Function at 0x1401a8a54
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, [0x140222880]
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 0x1401a8aab
cmp word [rdx], r13w
jne 0x1401a8aab
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1401a8ab0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401a8bd5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1401a8bf6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1401a8ae9
mov rdx, r9
mov word [rbx], cx
jmp 0x1401a8b10
cmp r9, r8
jae 0x1401a8b20
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 0x1401a8aca
jmp 0x1401a8bd5
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 0x1401a8bca
cmp dword [rsp + 0x80], esi
je 0x1401a8bca
lea r8, [0x140222880]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1401a8ba2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1401a8b72
mov word [rbx], r13w
jmp 0x1401a8bd2
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 0x1401a8b7f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401a8bd2
cmp word [rsp + 0x70], r13w
jne 0x1401a8baf
cmp rbx, r14
je 0x1401a8b6c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401a85a8
cmp word [rsp + 0x70], r13w
je 0x1401a8bd5
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, [0x140222880]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401a8bcf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401a8bd5
Function at 0x1401aa758
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.140192328
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1401aa7e2
cmp byte [rbp - 0x21], r15b
je 0x1401aa7dd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1401aa818
call fcn.1401a4244
test eax, eax
jne 0x1401aa804
cmp byte [rbp - 0x21], r15b
je 0x1401aa7fc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1401aa818
cmp byte [rbp - 0x21], r15b
je 0x1401aa815
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.1401989e4
test eax, eax
jne 0x1401aa8b8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140192328
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1401aa857
cmp byte [rbp - 0x21], r15b
je 0x1401aa88c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1401aa88c
call fcn.1401a4244
test eax, eax
jne 0x1401aa878
cmp byte [rbp - 0x21], r15b
je 0x1401aa871
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1401aa88c
cmp byte [rbp - 0x21], r15b
je 0x1401aa889
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.1401989e4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1401aa8b8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1401aa8bb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1401aa8c9
mov rcx, rdi
call fcn.1401a3b88
cmp byte [rbp + 0x3f], r15b
je 0x1401aa8d8
mov rcx, qword [rbp + 0x27]
call fcn.1401a3b88
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 0x1401adbfc
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 0x1401adc2c
xor eax, eax
jmp 0x1401adcef
mov rbp, rbx
cmp word [rax], si
je 0x1401adc51
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401adc38
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401adc34
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.1401aa8f8
movsxd r14, eax
test eax, eax
jne 0x1401adc8f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1401adc25
mov rcx, r14
call fcn.1401a4ef0
mov rdi, rax
test rax, rax
jne 0x1401adca8
xor ecx, ecx
call fcn.1401a3b88
jmp 0x1401adc84
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.1401aa8f8
test eax, eax
jne 0x1401adcd9
mov rcx, rdi
call fcn.1401a3b88
jmp 0x1401adce3
xor ecx, ecx
call fcn.1401a3b88
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 0x1401add0c
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 0x1401add93
mov rsi, rbx
cmp word [rax], bp
je 0x1401add52
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401add3c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401add38
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401a4ef0
mov rdi, rax
test rax, rax
je 0x1401add80
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140185440
mov rbp, rdi
xor ecx, ecx
call fcn.1401a3b88
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 0x1401b0ad8
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.1401a2d7c
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 0x1401b0b79
cmp ebx, dword [rsp + 0x30]
je 0x1401b0b72
test esi, esi
je 0x1401b0b72
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1401b0b4d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1401b0b5a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1401b0b37
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1401b0b5e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1401b0b7b
mov eax, 1
jmp 0x1401b0b7b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1401b4d38
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.1401a85a8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1401a85a8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401b4e88
cmp rax, 0xffffffffffffffff
je 0x1401b4e88
xor edi, edi
test rbp, rbp
jle 0x1401b4e33
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1401a3eac
mov rbx, rax
test rax, rax
jne 0x1401b4dc0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401b4e29
mov edx, 0x8000
mov ecx, r14d
call fcn.140199828
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.1401a8030
cmp eax, 0xffffffff
je 0x1401b4e09
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401b4dd0
mov edx, r15d
mov ecx, r14d
call fcn.140199828
jmp 0x1401b4e29
cmp byte [rsi + 0x38], dil
je 0x1401b4e20
cmp dword [rsi + 0x34], 5
jne 0x1401b4e20
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1401b4e29
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401a3b88
jmp 0x1401b4e9c
jns 0x1401b4e9c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1401a85a8
cmp rax, 0xffffffffffffffff
jne 0x1401b4e54
cmp byte [rsi + 0x30], dil
je 0x1401b4e9c
mov edi, dword [rsi + 0x2c]
jmp 0x1401b4e9c
mov ecx, r14d
call fcn.1401ab660
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401b4e9c
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 0x1401b4e9c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401b4e95
mov eax, dword [rsi + 0x2c]
jmp 0x1401b4e9a
mov eax, SafeArrayPutElement
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1401a85a8
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 0x1401b5ec0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401b5ee8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401b5ee8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x18003d4e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x18003d514
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x18003d500
ret
Function at 0x1800473c0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
lea ebp, [rdx + 8]
mov rsi, r9
mov r15, r8
mov rdi, rcx
cmp edx, ebp
jae 0x180047558
mov r14, qword [rsp + 0x30]
lea ebx, [rdx - 0x81]
mov r12d, dword [rsp + 0x78]
lea rdx, str.SVGPathSegMovetoAbsConstructor
lea r13, [0x180000000]
nop
cmp ebx, 0x11
ja case.0x180047424.4
mov ecx, dword [r13 + rbx*4 + 0x4760c]
add rcx, r13
jmp rcx
mov qword [0x1800b4600], rdx
test rdi, rdi
jne case.0x180047424.4
mov qword [rsp + 0x20], rdx
lea r9, str._s:_invalid_list.
lea edx, [rdi + 0x61]
mov rcx, rsi
lea r8d, [rdi + 1]
call fcn.180066dc0
mov eax, 0xffffffff
jmp 0x18004755c
mov r14, rdi
mov rcx, rsi
test r15, r15
je 0x180047583
mov rax, qword [rdi + 0x18]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], 0
lea r8d, [r9 + 0x63]
call fcn.18001b090
cmp eax, 1
jne 0x18004757a
mov rax, qword [rdi + 0x10]
lea rdx, str.SVGPathSegMovetoAbsConstructor
mov qword [r15], rax
jmp case.0x180047424.4
mov r8, qword [rdi + 0x98]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
lea rdx, str.SVGPathSegMovetoAbsConstructor
jmp case.0x180047424.4
cmp r12d, 0xb7
jne case.0x180047424.4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
test rdi, rdi
je 0x180047558
mov rcx, qword [rdi + 8]
test rcx, rcx
je case.0x180047424.4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x89
call fcn.1800473c0
lea rdx, str.SVGPathSegMovetoAbsConstructor
jmp case.0x180047424.4
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x18004751b
xor r9d, r9d
xor r8d, r8d
mov edx, 0x89
call fcn.1800473c0
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x180047534
xor r9d, r9d
xor r8d, r8d
mov edx, 0x89
call fcn.1800473c0
mov rcx, rdi
call fcn.18006e3dc
lea rdx, str.SVGPathSegMovetoAbsConstructor
jmp case.0x180047424.4
xor r14d, r14d
inc ebx
lea eax, [rbx + 0x81]
cmp eax, ebp
jb 0x180047410
mov eax, dword [rsp + 0x78]
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea r9, str.ULONG_ID3DXRenderToSurface::Release____0x_I32x
jmp 0x1800475db
mov rax, qword [0x1800b4600]
lea r9, str.Levykuvan_lukuvirhe_
mov edx, 0x61
mov qword [rsp + 0x20], rax
lea r8d, [rdx - 0x60]
call fcn.180066dc0
mov eax, 0xffffffff
jmp 0x18004755c
mov rax, qword [r14 + 0x18]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x75]
call fcn.1800227a0
cmp eax, 1
je 0x180047602
lea r9, str.mtoExponential___argument_must_be_between_0_and_20
mov rax, qword [0x1800b4600]
mov edx, 0x72
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea r8d, [rdx - 0x6b]
call fcn.180066dc0
mov eax, 0xffffffff
jmp 0x18004755c
mov eax, 1
jmp 0x18004755c
Function at 0x180066630
Capabilities:
Terminate process

Disassembly:
mov r9, r8
mov r8, rdx
mov edx, 0x81
jmp fcn.1800473c0
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14001eb20]
mov dword [rax], 1
mov rax, qword [0x14001eb30]
mov dword [rax], 1
mov rax, qword [0x14001eb40]
mov dword [rax], 1
mov rax, qword [0x14001eab0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140007de0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x14002d0a0]
test rcx, rcx
je 0x140007e1b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007e40
mov rcx, qword [0x14002d0a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400300e0], 0
jne 0x140007e58
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x14002d0a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140007e0e
mov edx, 0x414
lea r12, [rsp + 0x20]
lea rsi, [0x14001d40a]
mov qword [rsp + 0x20], 0
lea rdi, [0x140030100]
movq xmm0, rsi
mov rcx, r12
mov dword [rsp + 0x28], 3
movq xmm6, rdi
mov word [rsp + 0x40], dx
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, 0x14
punpcklqdq xmm6, xmm0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007f24
test al, 0x10
je 0x140007e24
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140007e24
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140007ed0
jmp 0x140007e24

Function at 0x14000e590
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.1400157b0
sub rsp, rax
mov eax, dword [0x140034100]
mov rsi, rcx
test eax, eax
je 0x14000e630
xor ebx, ebx
lea rdi, [0x140032100]
test eax, eax
jg 0x14000e5cc
jmp 0x14000e5e0
add rbx, 1
cmp dword [0x140034100], ebx
jle 0x14000e5e0
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000e5c0
jmp 0x14000e617
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000e5f5
cmp word [rsi + 2], 0x3a
je 0x14000e617
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000e680
movsxd rbx, dword [0x140034100]
cmp ebx, 0x3ff
jle 0x14000e698
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rbx, str.HOME
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.140007540
test al, al
je 0x14000e6ba
movsxd rbx, dword [0x140034100]
mov rcx, rdi
lea rdi, [0x140032100]
call sub.msvcrt.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x140034100]
add eax, 1
mov dword [0x140034100], eax
jmp 0x14000e5b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000e604
xor eax, eax
jmp 0x14000e61c
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x140034100], 1
mov rdx, rax
lea rax, [0x140032100]
mov qword [rax + rbx*8], rdx
jmp 0x14000e617
mov rcx, rbx
call fcn.140007d20
nop
nop word cs:[rax + rax]
nop