joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005f20
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x14003e040]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, rcx
mov esi, edx
mov ecx, edx
mov rbp, r8
call fcn.140011b4c
mov r8d, esi
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call fcn.14002a470
mov r8d, esi
mov qword [rsp + 0x20], 0
mov rdx, rbx
mov dword [rsp + 0x28], 0x67452301
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x2c], 0xefcdab89
mov dword [rsp + 0x30], 0x98badcfe
mov dword [rsp + 0x34], 0x10325476
call fcn.140005820
lea rcx, [rsp + 0x20]
call fcn.140005af0
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rbp], xmm0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140009100
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret

Function at 0x140009b34
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140009b7e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140009b7e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140009b7e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140009b7e
cmp dword [rcx + 0x84], 0xe
jbe 0x140009b7e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140009b80
xor al, al
add rsp, 0x28
ret
Function at 0x14000ecd0
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.1400095b0
sub rsp, rax
mov rax, qword [0x14003e040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140018bfc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14000ed1f
mov rax, rbp
jmp 0x14000ee27
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 + 0x765110]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140018e8c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x765110]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14000ee23
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 0x14000ee23
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140018e8c
test rax, rax
js 0x14000ee23
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14000ee23
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14000ee15
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14000ee15
cmp byte [rcx], 0xd
jne 0x14000edfb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14000ee0a
cmp byte [rcx + 1], 0xa
jne 0x14000ee0a
inc rcx
jmp 0x14000ee0a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3e430]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14000eddd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14000ee27
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140009100
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 0x1400168ac
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 0x14001691b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001691b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001691b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001691b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001691b
cmp dword [rcx + 0x84], 0xe
jbe 0x14001691b
cmp dword [rcx + 0xf8], 0
je 0x14001691b
mov ecx, ebx
call fcn.1400169cc
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.1400167a8
nop
cmp dword [rbp + 0x20], 0
je 0x140016969
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140016974
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400168ac
Function at 0x140016ab0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400168ac

Function at 0x140019610
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, [0x140765110]
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 0x140019667
cmp word [rdx], r13w
jne 0x140019667
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001966c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140019791
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400197b2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400196a5
mov rdx, r9
mov word [rbx], cx
jmp 0x1400196cc
cmp r9, r8
jae 0x1400196dc
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 0x140019686
jmp 0x140019791
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 0x140019786
cmp dword [rsp + 0x80], esi
je 0x140019786
lea r8, [0x140765110]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001975e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001972e
mov word [rbx], r13w
jmp 0x14001978e
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 0x14001973b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001978e
cmp word [rsp + 0x70], r13w
jne 0x14001976b
cmp rbx, r14
je 0x140019728
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140018e94
cmp word [rsp + 0x70], r13w
je 0x140019791
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, [0x140765110]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001978b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140019791
Function at 0x14001e260
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001e276
mov al, 1
jmp 0x14001e2d6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001e287
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001e2d4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400224f8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001e2d4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001e2d4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001e2d4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001e2d6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140021c90
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 0x140021cc0
xor eax, eax
jmp 0x140021d83
mov rbp, rbx
cmp word [rax], si
je 0x140021ce5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140021ccc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140021cc8
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.140020290
movsxd r14, eax
test eax, eax
jne 0x140021d23
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140021cb9
mov rcx, r14
call fcn.14001b23c
mov rdi, rax
test rax, rax
jne 0x140021d3c
xor ecx, ecx
call fcn.14001a2f4
jmp 0x140021d18
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.140020290
test eax, eax
jne 0x140021d6d
mov rcx, rdi
call fcn.14001a2f4
jmp 0x140021d77
xor ecx, ecx
call fcn.14001a2f4
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 0x140024a4c
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.1400192b0
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 0x140024aed
cmp ebx, dword [rsp + 0x30]
je 0x140024ae6
test esi, esi
je 0x140024ae6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140024ac1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140024ace
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140024aab
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140024ad2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140024aef
mov eax, 1
jmp 0x140024aef
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140027eac
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.14000f31c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140027f36
cmp byte [rbp - 0x21], r15b
je 0x140027f31
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140027f6c
call fcn.14001a5f8
test eax, eax
jne 0x140027f58
cmp byte [rbp - 0x21], r15b
je 0x140027f50
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140027f6c
cmp byte [rbp - 0x21], r15b
je 0x140027f69
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.140015afc
test eax, eax
jne 0x14002800c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000f31c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140027fab
cmp byte [rbp - 0x21], r15b
je 0x140027fe0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140027fe0
call fcn.14001a5f8
test eax, eax
jne 0x140027fcc
cmp byte [rbp - 0x21], r15b
je 0x140027fc5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140027fe0
cmp byte [rbp - 0x21], r15b
je 0x140027fdd
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.140015afc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14002800c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14002800f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14002801d
mov rcx, rdi
call fcn.14001a2f4
cmp byte [rbp + 0x3f], r15b
je 0x14002802c
mov rcx, qword [rbp + 0x27]
call fcn.14001a2f4
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 0x140029740
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140029768
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140029768
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001ff8
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14004de28]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor esi, esi
mov qword [rsp + 0x48], rsi
movdqa xmm0, xmmword [0x14003b930]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], si
mov rcx, rdx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rdx, eax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rsi
inc rdx
lea rcx, [rsp + 0x20]
call fcn.1400013c4
nop
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
sub r8, rdx
sar r8, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rbx, qword [rsp + 0x20]
mov qword [rdi], rsi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
mov rcx, rbx
call fcn.14002aecc
mov r8, rax
mov rdx, rbx
mov rcx, rdi
call fcn.1400012bc
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400020e3
mov rax, qword [rsp + 0x30]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400020dd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002105
call fcn.140025adc
nop
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140025bf0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14002ae54
nop
int3

Function at 0x140003608
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x14000362e
movzx r9d, byte [rdx]
inc rdx
movzx eax, cl
xor r9, rax
shr ecx, 8
lea rax, [0x14004e8b0]
xor ecx, dword [rax + r9*4]
sub r8, 1
jne 0x14000360d
mov eax, ecx
ret

Function at 0x140003634
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [rcx + 4], 0
mov r8, rcx
jne 0x14000367b
xor r9d, r9d
mov r10d, r9d
mov r11d, 8
mov edx, r10d
mov ecx, r10d
shr edx, 1
mov eax, edx
mov r10d, edx
xor eax, 0xedb88320
test cl, 1
cmovne r10d, eax
sub r11, 1
jne 0x140003649
mov dword [r8], r10d
inc r9d
add r8, 4
cmp r9d, 0x100
jb 0x140003640
ret

Function at 0x1400044e0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x14], 0
mov rbx, rcx
jne 0x140004517
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x140004503
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14003b4b0]
cmp byte [rbx + 0x21], 0
je 0x140004517
lea rcx, [rbx + 0x40]
add rsp, 0x20
pop rbx
jmp fcn.140005790
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140004e18
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14004de28]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, r8
mov r15, rdx
mov rdi, rcx
test r8, r8
jne 0x140004e4b
mov al, 1
jmp 0x140004fe1
lea r14, [rcx + 8]
cmp dword [rcx + 0x14], 1
jne 0x140004e63
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [r14], rax
mov r13d, 0x4000
xor bpl, bpl
and dword [rsp + 0x30], 0
cmp dword [rdi + 0x14], 0
je 0x140004ebe
xor ebx, ebx
test rsi, rsi
je 0x140004ee7
mov rcx, rsi
sub rcx, rbx
mov eax, esi
sub eax, ebx
mov r8d, r13d
cmp rcx, r13
cmovb r8d, eax
lea rdx, [r15 + rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test eax, eax
je 0x140004ede
add rbx, r13
cmp rbx, rsi
jb 0x140004e7e
jmp 0x140004ede
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, r15
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test bpl, bpl
jne 0x140004fda
cmp byte [rdi + 0x22], 0
je 0x140004fda
cmp dword [rdi + 0x14], 0
jne 0x140004fda
xor r8d, r8d
lea rdx, [rdi + 0x40]
lea rcx, [0x14006acf0]
call fcn.140003a18
test al, al
je 0x140004f56
mov ecx, dword [rsp + 0x30]
cmp rcx, rsi
jae 0x140004e69
test ecx, ecx
je 0x140004e69
mov rbx, qword [rdi]
mov rcx, rdi
mov rax, qword [rbx + 0x28]
call qword [0x14003b4b0]
mov ecx, dword [rsp + 0x30]
sub rax, rcx
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
mov rax, qword [rbx + 0x20]
call qword [0x14003b4b0]
jmp 0x140004e69
and qword [rsp + 0x38], 0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
lea rcx, [0x14003b944]
call fcn.14002aecc
mov r8, rax
lea rdx, [0x14003b944]
lea rcx, [rsp + 0x38]
call fcn.1400012bc
nop
lea r8, [rdi + 0x40]
lea rdx, [rsp + 0x38]
lea rcx, [0x14006acf0]
call fcn.140004190
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140004fda
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004fd5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004ffd
call fcn.140025adc
mov byte [rdi + 0x10], 1
mov al, bpl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140025bf0
add rsp, 0x60
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.14002ae54
int3
Function at 0x1400056a4
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14004de28]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400056cf
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor esi, esi
test eax, eax
setne dil
test eax, eax
jne 0x140005769
mov qword [rsp + 0x20], rsi
movdqa xmm0, xmmword [0x14003b930]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], si
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400080b0
test al, al
je 0x14000572b
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140005769
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005764
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005789
call fcn.140025adc
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140025bf0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.14002ae54
int3

Function at 0x140005790
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14004de28]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400057bb
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
test eax, eax
setne dil
test eax, eax
jne 0x140005855
mov qword [rsp + 0x20], rsi
movdqa xmm0, xmmword [0x14003b930]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], si
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400080b0
test al, al
je 0x140005817
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140005855
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005850
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005875
call fcn.140025adc
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140025bf0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.14002ae54
int3
Function at 0x140005890
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14004de28]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400058bb
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x14000594e
xor esi, esi
mov qword [rsp + 0x20], rsi
movdqa xmm0, xmmword [0x14003b930]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], si
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400080b0
test al, al
je 0x140005910
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14000594e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005949
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000596d
call fcn.140025adc
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140025bf0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.14002ae54
int3

Function at 0x140005c60
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14004de28]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14d, r8d
mov bpl, dl
mov rdi, rcx
call fcn.140007bf4
cmp ax, 0x2e
je 0x140005cbe
cmp ax, 0x20
je 0x140005cbe
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140005ca8
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
xor ebx, ebx
test eax, eax
jne 0x140005d59
jmp 0x140005cc2
xor ebx, ebx
mov esi, ebx
mov rcx, rdi
call fcn.140005890
cmp eax, 0xffffffff
jne 0x140005d6d
mov qword [rsp + 0x20], rbx
movdqa xmm0, xmmword [0x14003b930]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], bx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400080b0
test al, al
je 0x140005d17
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140005d55
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005d50
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005daa
call fcn.140025adc
test esi, esi
je 0x140005d6d
test bpl, bpl
je 0x140005d69
mov edx, r14d
mov rcx, rdi
call fcn.140005ff4
xor eax, eax
jmp 0x140005d88
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140005d83
cmp eax, 3
sete bl
lea eax, [rbx + 1]
jmp 0x140005d88
mov eax, 2
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140025bf0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14002ae54
int3