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

Disassembly:
push rbp
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
lea rax, [0x393374650]
mov rdx, rax
lea rax, str.calc.exe
mov rcx, rax
call fcn.392ea5ba0
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0xffffffffffffffff
jne 0x392ea6ff9
mov eax, 0
jmp 0x392ea709e
mov rax, qword [0x392f491c0]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x3c]
movzx edx, al
mov rax, qword [rbp - 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x50]
mov dword [rbp - 0x1c], eax
mov ebx, dword [rbp - 0x1c]
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov r8, rbx
mov edx, 8
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp - 0x28], rax
mov r8d, dword [rbp - 0x1c]
mov rdx, qword [0x392f491c0]
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call rax
test eax, eax
sete al
test al, al
je 0x392ea7085
mov eax, 0
jmp 0x392ea709e
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateProcess]
call rax
mov rax, qword [rbp - 0x28]
add rsp, 0x68
pop rbx
pop rbp
ret
Function at 0x392f0ac20
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x392f0ac68
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x392f0ac3a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x392f470f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x392f4df60]
jmp 0x392e9bd60

Function at 0x392f47100
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x392f4df60]
jmp 0x392e9bd60
Function at 0x180044ccd
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushfq
push qword [rsp]
jmp 0x180044f17
mov qword [rsp + 3], rbx
mov dword [rsp], r10d
push qword [rsp]
xchg qword [rsp + 0x18], rsi
call fcn.180044dc1

Function at 0x180044dc1
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov byte [rsp + 5], r10b
call fcn.180044d93

Function at 0x180045062
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x1800450b9
mov r12b, byte [rsp]
jmp 0x1800450cd
bswap rdi
pop rdx
btc r9, r14
jb 0x1800450a3
mov r12b, byte [rsp]
jmp 0x180045139
mov r9d, eax
xchg dl, r9b
mov r14w, 0xf528

Function at 0x180045530
Capabilities:
Execute anti-debugging instructions

Disassembly:
neg rcx
jmp 0x18004553c
clc
jg 0x18004551a
neg rcx
jmp 0x18004553c
lea rsp, [rsp + 8]
not al
lea rcx, [rdi + r13]
mov r10d, r12d
bswap r9d
jmp 0x18004558f
mov dl, 0x12
jmp 0x180045579
or dl, 0xd2
jmp 0x1800455fa
lea r10, [r12 - 0xbde1]
xchg rcx, r14
inc r14d
jb 0x18004554f
mov dl, 0x12
or dl, 0xd2
jmp 0x1800455fa
inc al
call fcn.1800455cc

Function at 0x1800455cc
Capabilities:
Execute anti-debugging instructions

Disassembly:
sete cl
call fcn.180045601
or al, byte [rdx + rbx - 0x43b67383]
xor dword [rcx - reloc.KERNEL32.dll_VirtualProtect], esp
xor ah, byte [rax - 0x4c72cd39]
xchg r10d, edx
bt r14d, r13d
jp 0x1800455b1
jnp 0x1800455df
movsd dword [rdi], dword [rsi]
sub byte [rsi - 0x3a14d727], bh
je 0x1800455ef
sete cl
jmp 0x1800455b4
xchg esp, eax
shr ebx, 0xd0
in eax, dx
pop rbx
lahf
or al, 0x82
in eax, 0x14
movsb byte [rdi], byte [rsi]
sbb dword [rax + 0x5b], edi

Function at 0x180045601
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea rsp, [rsp + 3]
jmp 0x180045612
add rsp, 5
jnp 0x1800455e4
lea rsp, [rsp + 3]
jmp 0x180045612
lea rsp, [rsp + 8]
inc al
mov bpl, spl
bswap rcx
btc bp, r13w
jmp 0x180045655
jno 0x18004566b
lea rcx, [r11 + r14]
inc edi
jmp 0x180045671
lea rcx, [r11 + r14]
inc edi
jmp 0x1800456a8
lea rcx, [rbx*4]
jmp 0x180045691
lea rcx, [rbx*4]
inc r8
cmp cx, r14w
jl 0x1800456ba
jge 0x180045984
xor esp, dword [rdx + rdi + reloc.KERNEL32.dll_VirtualProtect]
rol byte [rdx], 1
fsub dword [rsi - 0x75]
add al, 0x24
add bl, al
mov ax, word [rsp]
mov r14d, r9d
bt cx, r11w
jns 0x180045689
js 0x180045673
mov rdi, 0x31a0bbc0
bts r14d, eax
mov r10b, byte [rsp]
lea r12, [0xffffffff88712baa]
jmp 0x18004586b
mov word [rsp + 0xd], r10w
setle sil
rcl rdx, cl
push word [rsp + 4]
lea rbp, [rax + r9]
jmp 0x180045796
neg r13b
sub rsp, 0x10
jge 0x180045765
mov word [rsp + 0xd], r10w
jmp 0x1800457d7
mov r14, 0xfffffffff0b61346
lea rsp, [rsp + 2]
call fcn.18004581f
and dword [rax - 0x5d], esp
fidiv dword [reloc.KERNEL32.dll_VirtualProtect]
lea rbp, [rax + r9]
jmp 0x180045796
setle sil
rcl rdx, cl
push word [rsp + 4]
jmp 0x1800457ac
mov bpl, 0x13
rdtsc
bswap r10
mov ebp, dword [rsp]
jmp 0x180045785
mov rdi, 0x31a0bbc0
bts r14d, eax
mov r10b, byte [rsp]
call fcn.180045705
dec rsi
cmp rcx, rbx
lea rsp, [rsp + 5]
jmp fcn.180045a25

Function at 0x1801d8415
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea rsp, [rsp + 6]
mov qword [rsp + 2], rbp
mov ebp, dword [rsp]
jmp 0x1801d83cc
Function at 0x1801d9386
Capabilities:
Execute anti-debugging instructions

Disassembly:
bswap r8d
mov r14w, 0xca3
bswap rdi
push word [rsp + 0xa]
jmp 0x1801d93a8
sub rsp, 2
mov rbp, r15
mov byte [rsp + 0xf], sil
xchg word [rsp + 0x11], bp
xchg dx, r14w
bswap rcx
jmp 0x1801d93f5
lea r14, [r15 + r13]
stc
mov cl, 0x2d
pop word [rsp + 1]
cmc
rol dl, cl
jmp 0x1801d940d
lea rsp, [rsp + 0xf]
mov r13, 0x3067167b
mov dword [rsp], r9d
std
xchg bx, ax
bswap rax
jmp 0x1801d93df
add rsp, 3
mov al, 0x3b
mov r13d, 0x98c70aae
mov ebp, 0x55174479
mov r15d, 0xeacf34a
jmp 0x1801d946d
rol edi, cl
add rsp, 0
mov r9b, 0x75
sub rsp, 1
cmc
xchg dil, r12b
jmp 0x1801d9440
mov ecx, r10d
mov rax, 0x60fab87d
bsr r14w, r13w
lea rdi, [r8*8]
mov r13d, eax
inc r14b
jmp 0x1801d9456

Function at 0x1801d93d4
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea rdi, [0x30da28e0]
bswap r14d
jmp 0x1801d92c7
mov ecx, eax
sub rsp, 0xc
push word [rsp + 0xb]
mov dword [rsp + 0x2c], r13d
jmp 0x1801d920f
mov ecx, dword [rsp + 0x19]
bswap rbx
mov rdx, r13
mov dword [rsp + 0x13], r15d
std
xchg qword [rsp + 0x1b], r9
jmp 0x1801d9225
mov r15d, esi
mov r8b, r10b
mov byte [rsp + 0x2a], dil
not cx
sub rsp, 0x16
mov eax, r14d
jmp 0x1801d929f
pop r13
mov r14, r13
xchg dil, r14b
mov ecx, 0xdde06633
lea rbx, [rdx + rbx]
rdtsc
jmp 0x1801d9258
mov r12d, 0x236aa91c
push word [rsp + 0xf]
neg r13b
jmp 0x1801d92f9
mov word [rsp + 0x3e], r10w
pop qword [rsp + 0x14]
xchg edx, eax
lea rdx, [r9 + r14]
mov bx, word [rsp + 0xa]
dec dl
jmp 0x1801d9289
xchg word [rsp + 0x12], r13w
neg r13d
rdtsc
clc
rdtsc
mov ebx, ebp
jmp 0x1801d9274
mov r13d, dword [rsp + 6]
mov cx, word [rsp + 0x3a]
xchg r8b, bl
lea rbx, [rbp + rbp]
adc r13w, r14w
jmp 0x1801d9326
lea r12, [rax + r9]
cpuid
xchg dword [rsp + 0x29], ebp
mov cx, bx
sub rsp, 0xa
mov r13w, r14w
jmp 0x1801d92d9
mov r12b, 0x14
mov byte [rsp + 0xc], sil
mov ecx, 0x4df1f855
jmp 0x1801d9342
lea rsp, [rsp + 0x18]
push qword [rsp + 0x29]
mov cl, byte [rsp + 0x27]
cpuid
mov qword [rsp + 0xd], r10
xchg byte [rsp + 0x1d], r13b
jmp 0x1801d9310
lea rsp, [rsp + 0x2d]
and r9d, ebx
mov bx, sp
and ecx, r9d
mov r12, 0xfffffffffb718529
rdtsc
jmp 0x1801d939c
lea rsp, [rsp + 0xb]
push rdi
pop r9w
lea r15, [0xffffffffb5e862ef]
mov dl, 0xe4
mov r15w, r14w
jmp 0x1801d9241
xchg r15, rbp
xchg r9w, cx
call fcn.1801d9386
mov dword [rsp + 0x25], ecx
mov rdx, qword [rsp + 0x19]
jmp 0x1801d9369
Function at 0x1800034d0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1800034f6
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
dec rcx
call fcn.1800034d0
movzx edx, word [rdi + rbx*2]
mov ecx, eax
mov rbx, qword [rsp + 0x30]
xor rdx, rcx
movzx ecx, dl
lea rdx, [0x18002a6a0]
shr eax, 8
xor eax, dword [rdx + rcx*4]
add rsp, 0x20
pop rdi
ret

Function at 0x180003530
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x180003556
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
dec rcx
call fcn.180003530
movsx edx, byte [rbx + rdi]
xor r8d, r8d
mov rbx, qword [rsp + 0x30]
mov r9d, 0x20
lea ecx, [rdx - 0x41]
cmp cl, 0x19
mov ecx, edx
lea rdx, [0x18002a6a0]
cmovbe r8d, r9d
or r8, rcx
mov ecx, eax
xor r8, rcx
shr eax, 8
movzx ecx, r8b
xor eax, dword [rdx + rcx*4]
add rsp, 0x20
pop rdi
ret

Function at 0x1800035a0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1800035c6
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
dec rcx
call fcn.1800035a0
movzx edx, word [rdi + rbx*2]
xor r8d, r8d
mov rbx, qword [rsp + 0x30]
mov r9d, 0x20
lea ecx, [rdx - 0x41]
cmp cx, 0x19
lea rcx, [0x18002a6a0]
cmovbe r8d, r9d
or r8, rdx
movzx edx, al
movzx r9d, r8b
xor r9, rdx
shr eax, 8
xor eax, dword [rcx + r9*4]
add rsp, 0x20
pop rdi
ret
Function at 0x180006b90
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x470
mov rax, qword [0x18002e010]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor esi, esi
mov rbx, rcx
mov ebp, 0x103
test rcx, rcx
jne 0x180006bc8
mov r8d, esi
jmp 0x180006bd3
mov rdx, rbp
call fcn.180010ce0
mov r8, rax
inc r8w
cmp r8w, bp
jae 0x180006cbf
cmp si, r8w
jae 0x180006c43
mov rcx, rbx
movzx r9d, r8w
lea rdx, [rsp + 0x40]
nop dword [rax]
nop word [rax + rax]
movsx eax, byte [rcx]
lea rcx, [rcx + 1]
mov word [rdx], ax
lea rdx, [rdx + 2]
sub r9, 1
jne 0x180006c00
cmp r8w, 5
jbe 0x180006c43
movzx eax, r8w
cmp word [rsp + rax*2 + 0x36], 0x2e
je 0x180006c43
mov r9d, 5
lea r8, str..dll
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.1800110a8
lea rax, [rsp + 0x40]
mov r10, 0xffffffffffffffff
nop
inc r10
cmp word [rax + r10*2], si
jne 0x180006c50
dec r10
cmp r10, 0xffffffffffffffff
jne 0x180006c6a
mov eax, 0xffffffff
jmp 0x180006cad
lea rcx, [r10 - 1]
lea rdx, [rsp + 0x40]
call fcn.1800035a0
movzx edx, word [rsp + r10*2 + 0x40]
mov r9d, 0x20
mov r8, rsi
lea ecx, [rdx - 0x41]
cmp cx, 0x19
lea rcx, [0x18002a6a0]
cmovbe r8, r9
or r8, rdx
movzx edx, al
movzx r9d, r8b
xor r9, rdx
shr eax, 8
xor eax, dword [rcx + r9*4]
not eax
mov ecx, eax
call fcn.180006de0
test rax, rax
jne 0x180006daf
mov qword [rsp + 0x488], rdi
test rbx, rbx
jne 0x180006cd1
mov rdi, rsi
jmp 0x180006cdf
mov rdx, rbp
mov rcx, rbx
call fcn.180010ce0
mov rdi, rax
inc di
cmp di, bp
jae 0x180006da4
cmp si, di
jae 0x180006d45
lea rcx, [rsp + 0x250]
movzx r10d, di
nop dword [rax]
movsx eax, byte [rbx]
lea rbx, [rbx + 1]
mov word [rcx], ax
lea rcx, [rcx + 2]
sub r10, 1
jne 0x180006d00
cmp di, 5
jbe 0x180006d45
movzx eax, di
cmp word [rsp + rax*2 + 0x246], 0x2e
je 0x180006d45
lea r9d, [r10 + 5]
mov edx, 0x104
lea r8, str..dll
lea rcx, [rsp + 0x250]
call fcn.1800110a8
add di, di
lea rax, [rsp + 0x250]
mov word [rsp + 0x2a], di
sub di, 2
mov qword [rsp + 0x30], rax
mov rax, qword [0x180076900]
mov word [rsp + 0x28], di
test rax, rax
jne 0x180006d8a
mov edx, 0xa09b055e
mov ecx, 0x84c05e40
call fcn.180007380
mov qword [0x180076900], rax
test rax, rax
je 0x180006da4
lea r9, [rsp + 0x20]
mov qword [rsp + 0x20], rsi
lea r8, [rsp + 0x28]
xor edx, edx
xor ecx, ecx
call rax
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x488]
mov rax, rsi
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.180008450
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
Function at 0x180007380
Capabilities:
Hash data with crc32
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
call fcn.180006de0
mov edx, ebx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.180006fc0

Function at 0x1800073a0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x18002e010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov edi, edx
mov rbx, rcx
mov r8, 0xffffffffffffffff
inc r8
cmp word [rcx + r8*2], 0
jne 0x1800073c5
dec r8
cmp r8, 0xffffffffffffffff
jne 0x1800073e0
mov eax, 0xffffffff
jmp 0x180007406
lea rcx, [r8 - 1]
mov rdx, rbx
call fcn.1800034d0
movzx edx, word [rbx + r8*2]
mov ecx, eax
xor rdx, rcx
shr eax, 8
movzx ecx, dl
lea rdx, [0x18002a6a0]
xor eax, dword [rdx + rcx*4]
not eax
mov ecx, eax
call fcn.180006de0
test rax, rax
jne 0x18000749c
mov rax, qword [0x1800768f8]
test rax, rax
jne 0x180007447
mov ecx, 0x84c05e40
call fcn.180006de0
mov edx, 0xfa2a9aa9
mov rcx, rax
call fcn.180006fc0
mov qword [0x1800768f8], rax
test rax, rax
je 0x18000747b
mov rdx, rbx
lea rcx, [rsp + 0x28]
call rax
mov r10, qword [0x180076900]
test r10, r10
jne 0x18000747f
mov edx, 0xa09b055e
mov ecx, 0x84c05e40
call fcn.180007380
mov qword [0x180076900], rax
mov r10, rax
test rax, rax
jne 0x18000747f
xor eax, eax
jmp 0x18000749c
xor eax, eax
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
call r10
mov rax, qword [rsp + 0x20]
mov edx, edi
mov rcx, rax
call fcn.180006fc0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180008450
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x180008170
Capabilities:
Check os version
Execute syscall

Disassembly:
xor al, 0x5a
mov r10, qword gs:[0x60]
cmp word [r10 + 0x118], 0xa
je 0x1800081c0
cmp word [r10 + 0x118], 6
jne 0x1800081e7
cmp word [r10 + 0x11c], 3
je 0x1800081c2
cmp word [r10 + 0x11c], 2
je 0x1800081c4
cmp word [r10 + 0x11c], 1
jne 0x1800081e7
cmp word [r10 + 0x120], 0x1db1
je 0x1800081c6
jmp 0x1800081e7
inc eax
inc eax
inc eax
cmp qword [0x1800767e0], 0
jne 0x1800081dc
cmp eax, 0xc390050f
pop r10
mov r10, rcx
jne 0x1800081d1
syscall
nop
ret
pop r10
mov r10, rcx
jmp qword [0x1800767e0]
ret
Function at 0x18001b2e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18001b308
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18001b308
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x14065b058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14065b1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14065b089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065b06f
add dl, dl
jne 0x14065b096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065b0f6
xor eax, eax
add dl, dl
jne 0x14065b0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065b1ad
add dl, dl
jne 0x14065b0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065b0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065b0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065b0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14065b0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14065b07e
mov eax, 1
add dl, dl
jne 0x14065b106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065b113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065b0fb
sub eax, ebx
mov ebx, 1
jne 0x14065b14c
mov ecx, 1
add dl, dl
jne 0x14065b12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14065b13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065b123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065b07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14065b168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14065b175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065b15d
cmp eax, 0x7d00
jae 0x14065b19b
cmp eax, 0x500
jb 0x14065b196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065b07e
cmp eax, 0x7f
ja 0x14065b19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065b07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14065b1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14065b07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x40e19c
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x40e1b0
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x40e1c4
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x40e1d8
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x40e1f0
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40e213
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
add rsp, 0x20
pop rbx
ret

Function at 0x40e310
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0xc], 0x105
mov rbx, rcx
jg 0x40e32c
mov edx, 0x105
call fcn.00401ce0
mov rcx, qword [rbx]
mov edx, 0x105
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov r8, qword [rbx]
mov r11d, eax
xor eax, eax
cmp word [r8], ax
mov edx, eax
je 0x40e358
mov rcx, r8
add rcx, 2
inc edx
cmp word [rcx], ax
jne 0x40e34d
movsxd rcx, edx
mov word [r8 + rcx*2], ax
lea ecx, [r11 - 1]
mov dword [rbx + 8], edx
cmp ecx, 0x103
setbe al
add rsp, 0x20
pop rbx
ret

Function at 0x40e44c
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0xc], 0x105
mov rbx, rcx
jg 0x40e468
mov edx, 0x105
call fcn.00401ce0
mov rdx, qword [rbx]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r8, qword [rbx]
mov r11d, eax
xor eax, eax
cmp word [r8], ax
mov edx, eax
je 0x40e494
mov rcx, r8
add rcx, 2
inc edx
cmp word [rcx], ax
jne 0x40e489
movsxd rcx, edx
mov word [r8 + rcx*2], ax
lea ecx, [r11 - 1]
mov dword [rbx + 8], edx
cmp ecx, 0x103
setbe al
add rsp, 0x20
pop rbx
ret

Function at 0x40e558
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0xc], 0x105
mov rbx, rcx
jg 0x40e574
mov edx, 0x105
call fcn.00401ce0
mov rdx, qword [rbx]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r8, qword [rbx]
mov r11d, eax
xor eax, eax
cmp word [r8], ax
mov edx, eax
je 0x40e5a0
mov rcx, r8
add rcx, 2
inc edx
cmp word [rcx], ax
jne 0x40e595
movsxd rcx, edx
mov word [r8 + rcx*2], ax
lea ecx, [r11 - 1]
mov dword [rbx + 8], edx
cmp ecx, 0x103
setbe al
add rsp, 0x20
pop rbx
ret
Function at 0x40e5c0
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov edx, 0x105
mov rbx, r8
cmp dword [r8 + 0xc], edx
mov rsi, rcx
jg 0x40e5e4
mov rcx, r8
call fcn.00401ce0
mov r9, qword [rbx]
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov r8, qword [rbx]
xor r9d, r9d
cmp word [r8], r9w
mov r11d, eax
mov edx, r9d
je 0x40e617
mov rcx, r8
add rcx, 2
inc edx
cmp word [rcx], r9w
jne 0x40e60b
movsxd rax, edx
mov word [r8 + rax*2], r9w
mov dword [rbx + 8], edx
mov eax, r11d
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x40e768
Capabilities:
Create directory

Disassembly:
push rbx
push rdi
mov rax, rsp
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rdx
mov rdi, rcx
mov byte [rax - 0x20], 0
mov qword [rax - 0x18], 0
mov dword [rax - 0x10], 0
mov dword [rax - 0xc], 0
mov edx, 3
lea rcx, [rax - 0x18]
call fcn.00401ce0
nop
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.0040e6b0
test al, al
je 0x40e85a
lea rcx, [rsp + 0x28]
call fcn.0040e23c
test al, al
je 0x40e872
lea rcx, [rsp + 0x28]
call fcn.0040e23c
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
mov rcx, qword [rbx]
call fcn.0040f4ac
test al, al
jne 0x40e814
xor edx, edx
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e88a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40e88e
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 0
mov edx, 3
lea rcx, [rsp + 0x30]
call fcn.00401ce0
nop
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.0040e6b0
test al, al
jne 0x40e7c2
lea rcx, [rsp + 0x28]
call fcn.0040e23c
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
xor al, al
jmp 0x40e890
lea rcx, [rsp + 0x28]
call fcn.0040e23c
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
xor al, al
jmp 0x40e890
mov al, 1
jmp 0x40e890
xor al, al
add rsp, 0x48
pop rdi
pop rbx
ret
Function at 0x40ee98
Capabilities:
Delete directory
Set file attributes

Disassembly:
push rbx
push rsi
push rdi
mov rax, rsp
sub rsp, 0xd0
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov rsi, rcx
xor ebx, ebx
mov qword [rax - 0x50], rbx
mov dword [rax - 0x48], ebx
mov dword [rax - 0x44], ebx
lea edx, [rbx + 3]
lea rcx, [rax - 0x50]
call fcn.00401ce0
nop
mov r8w, 0x5c
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.0040e968
nop
mov r8w, 0x2a
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x90]
call fcn.0040e968
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.0040e288
nop
mov rcx, qword [rsp + 0x90]
call sub.msvcrt.dll_free
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.0040f514
cmp al, bl
je 0x40f041
lea rax, [rsp + 0x20]
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x2c], ebx
mov edx, dword [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.00401ce0
mov r11, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx]
mov word [r11], ax
add r11, 2
add rcx, 2
cmp ax, bx
jne 0x40ef5d
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x78]
shr eax, 4
test al, 1
je 0x40efc4
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0xb8]
call fcn.0040e8b0
nop
mov rcx, rax
call fcn.0040ee98
mov dil, al
mov rcx, qword [rsp + 0xb8]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_free
jmp 0x40f001
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0xa8]
call fcn.0040e8b0
mov rcx, qword [rax]
call fcn.0040e1f0
mov dil, al
mov rcx, qword [rsp + 0xa8]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_free
cmp dil, bl
je 0x40f01f
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.0040f514
cmp al, bl
jne 0x40ef38
jmp 0x40f041
mov rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_free
lea rcx, [rsp + 0x40]
call fcn.0040f19c
nop
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
nop
jmp 0x40f08a
mov rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_free
lea rcx, [rsp + 0x40]
call fcn.0040f19c
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, ebx
jne 0x40f071
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
nop
jmp 0x40f08a
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, ebx
setne bl
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x80]
call sub.msvcrt.dll_free
mov al, bl
add rsp, 0xd0
pop rdi
pop rsi
pop rbx
ret

Function at 0x40f648
Capabilities:
Get file size

Disassembly:
push rbx
push rdi
sub rsp, 0x28
cmp byte [rcx + 8], 0
mov rbx, rdx
je 0x40f667
cmp byte [rcx + 9], 0
je 0x40f667
mov rax, qword [rcx + 0x10]
mov qword [rdx], rax
jmp 0x40f69b
mov rcx, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov edi, eax
jne 0x40f68a
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40f68a
xor al, al
jmp 0x40f69d
mov ecx, dword [rsp + 0x40]
mov rax, rdi
shl rcx, 0x20
add rcx, rdi
mov qword [rbx], rcx
mov al, 1
add rsp, 0x28
pop rdi
pop rbx
ret