joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18009cbc0
Capabilities:
Get file size
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, 0x170
mov rax, qword [0x1800c86c0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor esi, esi
xor edi, edi
call fcn.18008abfc
mov rbp, rax
test rax, rax
jne 0x18009cc3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.18008b674
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov r9, rax
mov rcx, r15
call fcn.18007c340
mov ebx, 0x4d
jmp 0x18009cd84
and qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rbp
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x18009cc93
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.18008b674
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
jmp 0x18009cc27
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x18009ccdc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.18008b674
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov r9, rax
mov rcx, r15
call fcn.18007c340
mov ebx, 0x4d
jmp 0x18009cd7b
mov rbx, qword [rsp + 0x48]
mov r8d, 0x100000
cmp rbx, r8
jle 0x18009ccfd
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.18007c340
jmp 0x18009ccd2
lea rcx, [rbx + 1]
call qword [section..data]
mov rsi, rax
test rax, rax
jne 0x18009cd14
lea ebx, [rax + 0x1b]
jmp 0x18009cd7b
test rbx, rbx
je 0x18009cd5d
and dword [rsp + 0x40], 0
lea rdx, [rsi + rdi]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, ebx
mov r13d, edi
sub r8d, edi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18009cdc8
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x18009cd54
mov ebx, r13d
jmp 0x18009cd56
add edi, eax
mov eax, edi
cmp rax, rbx
jb 0x18009cd19
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rbx
mov byte [rbx + rsi], 0
mov rdx, rsi
mov qword [rsp + 0x20], r15
call fcn.18009c984
mov ebx, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [fcn.1800a348e]
test rbp, rbp
je 0x18009cd9b
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1800a21a0
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.18008b674
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
jmp 0x18009ccc4
Function at 0x1800a1344
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rdi, rcx
mov ecx, dword [rcx + 0x20]
mov r14, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [section..data]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1800a1458
lea rcx, [rax + 0x18]
mov qword [rax], rdi
mov qword [rax + 8], rcx
lea rsi, [rdi + 8]
mov eax, dword [rdi + 0x18]
add rax, rcx
mov qword [rbx + 0x10], rax
cmp r15d, dword [rdi + 0x1c]
jbe 0x1800a13cd
call qword [rdi]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rsi]
mov r14d, dword [rdi + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rdi + reloc.WS2_32.dll_recv]
mov r15d, dword [rdi + 0x20]
mov rcx, qword [rbx + 8]
call qword [rdi]
mov rcx, qword [rbx + 0x10]
call qword [rdi]
test r15, r15
je 0x1800a144d
mov rbp, r15
mov al, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rsi]
mov al, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
mov r8d, 1
mov byte [rsp + 0x40], al
inc r14
mov rcx, qword [rbx + 0x10]
call qword [rsi]
sub r15, 1
jne 0x1800a13e1
lea rsi, [rdi + 8]
jmp 0x1800a144d
mov rcx, qword [rbx + 8]
lea rdx, [0x1800b1339]
mov r8d, 1
call qword [rsi]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1800b133a]
mov r8d, 1
call qword [rsi]
inc rbp
mov eax, dword [rdi + 0x1c]
cmp rbp, rax
jb 0x1800a1424
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x1800a191c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1800a1956
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800a195b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1800a19a4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1800a19a4
dec r8
sub rdx, 1
jne 0x1800a198a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140008250
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x190
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1400c8088]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rbx, rcx
mov qword [rsp + 0x68], rcx
cmp qword [rcx + 0x18], 8
jb 0x140008286
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000835d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000835d
xor edx, edx
mov r8d, 0xe8
lea rcx, [rsp + 0x90]
call fcn.14003c6f0
lea rcx, [rsp + 0x90]
call fcn.1400086e0
nop
lea rdx, str.error_code:
lea rcx, [rsp + 0x90]
call fcn.14000b4f0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140008df0
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x90]
call fcn.140008630
nop
cmp qword [rax + 0x18], 0x10
jb 0x14000830e
mov rax, qword [rax]
lea rcx, vtable.std::exception.0
mov qword [rsp + 0x20], rcx
xor ecx, ecx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x70], rax
mov byte [rsp + 0x78], 1
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x70]
call fcn.14003a4ec
lea rax, vtable.std::runtime_error.0
mov qword [rsp + 0x20], rax
lea rdx, [0x1400c6e58]
lea rcx, [rsp + 0x20]
call fcn.14003bf54
nop
jmp 0x140008364
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x14000837c
inc r8
mov rdx, qword [rbx]
mov rcx, rbx
call fcn.140002930
mov qword [rbx + 0x18], 7
xor eax, eax
mov qword [rbx + 0x10], rax
cmp qword [rbx + 0x18], 8
jb 0x140008394
mov rbx, qword [rbx]
mov word [rbx], ax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14001b1c0
add rsp, 0x190
pop rbx
ret

Function at 0x14000c480
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000c4e5
lea rbx, [0x14007f2c0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14000c4c4
cmp r10, 2
jb 0x14000c4c4
cmp byte [r9], r8b
jne 0x14000c4c4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
xor rdx, rcx
mov ecx, eax
shr ecx, 8
mov eax, dword [rbx + rdx*4]
xor eax, ecx
test r10, r10
jne 0x14000c4a0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000c52b
lea rbx, [0x14007f2c0]
cmp r8b, 0x23
jne 0x14000c50b
cmp byte [r9], r8b
jne 0x14000c50b
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
mov ecx, eax
inc r9
shr ecx, 8
mov eax, dword [rbx + rdx*4]
xor eax, ecx
test r8b, r8b
jne 0x14000c4f8
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x14000d0e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400c8088]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, dword [rcx + 0xe8]
lea r10, [0x14007f2c0]
dec eax
mov qword [rsp + 0x20], rdx
mov r8, rdx
mov r9d, 8
movsxd rdx, eax
mov rax, qword [rcx + 0xf0]
mov ebx, dword [rax + rdx*4]
lea rdx, [rsp + 0x20]
not ebx
nop word [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
movzx ecx, bl
xor rcx, rax
mov eax, ebx
shr eax, 8
mov ebx, dword [r10 + rcx*4]
xor ebx, eax
sub r9, 1
jne 0x14000d130
mov rax, qword [0x1400cd0d8]
not ebx
cmp dword [rax + 0x3ee8], ebx
jne 0x14000d16a
lea edx, [r9 + 0xc]
mov ecx, ebx
call fcn.14000f3f0
mov eax, ebx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001b1c0
add rsp, 0x30
pop rbx
ret

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

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400c8088]
xor rax, rsp
mov qword [rsp + 0x20], rax
movsd xmm0, qword [rcx + 0x108]
lea r10, [rsp + 8]
mov eax, dword [rcx + 0xe8]
lea r11, [0x14007f2c0]
movss xmm1, dword [rdx]
mov r8, rcx
movsd qword [rsp], xmm0
dec eax
subss xmm1, dword [rsp]
movss xmm0, dword [rdx + 4]
mov r9d, 0x10
subss xmm0, dword [rsp + 4]
movsxd rcx, eax
mov rax, qword [r8 + 0xf0]
movss dword [rsp + 8], xmm1
movss xmm1, dword [rdx + 0xc]
subss xmm1, dword [rsp + 4]
mov r8d, dword [rax + rcx*4]
movss dword [rsp + 0xc], xmm0
not r8d
movss xmm0, dword [rdx + 8]
subss xmm0, dword [rsp]
movss dword [rsp + 0x14], xmm1
movss dword [rsp + 0x10], xmm0
nop
movzx eax, byte [r10]
lea r10, [r10 + 1]
movzx edx, r8b
mov ecx, r8d
xor rdx, rax
shr ecx, 8
mov r8d, dword [r11 + rdx*4]
xor r8d, ecx
sub r9, 1
jne 0x14000d210
not r8d
mov eax, r8d
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.14001b1c0
add rsp, 0x38
ret
Function at 0x1400149f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x1400c8088]
xor rax, rsp
mov qword [rsp + 0x20], rax
cmp qword [r8 + 0x18], 0x10
mov rsi, r8
mov r9, qword [r8 + 0x10]
mov r15, rdx
jb 0x140014a23
mov r8, qword [r8]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
test r9, r9
je 0x140014a54
movabs r10, 0x100000001b3
nop
movzx eax, byte [r8 + rcx]
inc rcx
xor rdx, rax
imul rdx, r10
cmp rcx, r9
jb 0x140014a40
and rdx, qword [0x1400cdb10]
mov rcx, qword [0x1400cdaf8]
mov rbx, rdx
mov rdi, qword [0x1400cdae8]
add rbx, rbx
lea rax, [rdx + rdx]
mov rbp, qword [rcx + rax*8]
lea r14, [rcx + rax*8]
mov rbx, qword [rcx + rbx*8]
nop
cmp rbp, rdi
jne 0x140014a8a
mov rax, rdi
jmp 0x140014a91
mov rax, qword [r14 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x140014ac2
lea rcx, [rbx + 0x10]
mov rdx, rsi
call fcn.1400044e0
test eax, eax
je 0x140014aab
mov rbx, qword [rbx]
jmp 0x140014a80
lea rdx, [rbx + 0x10]
mov rcx, rsi
call fcn.1400044e0
test eax, eax
cmovne rbx, rdi
mov qword [r15], rbx
jmp 0x140014ac5
mov qword [r15], rdi
mov rax, r15
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.14001b1c0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140014af0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x1400c8088]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, r9
mov r15, r8
mov r13, rdx
mov r14, rcx
mov qword [rsp + 0x20], rcx
mov r9, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 0x10
jb 0x140014b37
mov r8, qword [r8]
movabs rcx, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140014b74
movabs r10, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
xor rcx, rax
imul rcx, r10
inc rdx
cmp rdx, r9
jb 0x140014b60
mov r12, qword [r14 + 0x30]
and r12, rcx
shl r12, 4
mov rax, qword [r14 + 0x18]
mov rsi, qword [rax + r12]
cmp rsi, qword [r14 + 8]
jne 0x140014b93
mov rbx, qword [r14 + 8]
jmp 0x140014b9b
mov rbx, qword [rax + r12 + 8]
mov rbx, qword [rbx]
cmp rbx, rsi
je 0x140014bf6
mov rbx, qword [rbx + 8]
lea rdx, [rbx + 0x10]
mov rcx, r15
call fcn.1400044e0
test eax, eax
je 0x140014bbb
cmp rbx, rsi
jne 0x140014ba0
jmp 0x140014bf6
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi]
mov qword [rdx], rcx
mov rdx, qword [rdi]
mov rcx, qword [rdi + 8]
mov qword [rdx + 8], rcx
dec qword [r14 + 0x10]
lea rcx, [rdi + 0x10]
call fcn.140002170
mov rcx, rdi
call fcn.14000c360
mov qword [r13], rbx
mov byte [r13 + 8], 0
mov rax, r13
jmp 0x140014c8f
mov qword [rsp + 0x30], rdi
mov rax, qword [rdi]
cmp rbx, rax
je 0x140014c30
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rdi
mov rdx, qword [rbx + 8]
mov rcx, qword [rax + 8]
mov qword [rbx + 8], rcx
mov rcx, qword [rdi + 8]
mov qword [rax + 8], rcx
mov qword [rdi + 8], rdx
mov rcx, qword [r14 + 0x18]
add rcx, r12
mov rax, qword [rcx]
cmp rax, qword [r14 + 8]
jne 0x140014c4e
mov qword [rcx], rdi
mov rax, qword [r14 + 0x18]
mov qword [rax + r12 + 8], rdi
jmp 0x140014c7a
cmp rax, rbx
jne 0x140014c58
mov qword [rcx], rdi
jmp 0x140014c7a
mov rax, qword [rcx + 8]
mov rdx, qword [rax]
mov qword [rcx + 8], rdx
cmp rdx, rdi
je 0x140014c7a
mov r8, qword [r14 + 0x18]
mov rax, qword [r8 + r12 + 8]
mov rdx, qword [rax + 8]
mov qword [r8 + r12 + 8], rdx
mov rcx, r14
call fcn.140014cf0
nop
mov qword [r13], rdi
mov byte [r13 + 8], 1
mov rax, r13
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14001b1c0
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140014db0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1400c8088]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov r9, qword [r8 + 0x20]
mov rdi, r8
add r8, 0x10
mov rsi, rdx
mov r10, rcx
cmp qword [r8 + 0x18], 0x10
jb 0x140014de6
mov r8, qword [r8]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
test r9, r9
je 0x140014e15
movabs r11, 0x100000001b3
movzx eax, byte [r8 + rcx]
inc rcx
xor rdx, rax
imul rdx, r11
cmp rcx, r9
jb 0x140014e01
mov r8, qword [r10 + 0x30]
mov rcx, qword [r10 + 0x18]
and r8, rdx
shl r8, 4
add rcx, r8
cmp qword [rcx + 8], rdi
jne 0x140014e52
cmp qword [rcx], rdi
jne 0x140014e48
mov rax, qword [r10 + 8]
mov qword [rcx], rax
mov rcx, qword [r10 + 0x18]
mov rax, qword [r10 + 8]
mov qword [r8 + rcx + 8], rax
jmp 0x140014e5d
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
jmp 0x140014e5d
cmp qword [rcx], rdi
jne 0x140014e62
mov rax, qword [rdi]
mov qword [rcx], rax
mov rdi, qword [rsp + 0x60]
mov rdx, qword [rdi + 8]
lea rcx, [rdi + 0x10]
mov rbx, qword [rdi]
mov qword [rdx], rbx
mov r8, qword [rdi]
mov rdx, qword [rdi + 8]
mov qword [r8 + 8], rdx
dec qword [r10 + 0x10]
call fcn.140002170
mov rcx, rdi
call fcn.14000c360
mov rax, rsi
mov qword [rsi], rbx
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.14001b1c0
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x14001f160
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14001f173
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.140029338
lea rdx, [0x1400c6750]
lea rcx, [rsp + 0x20]
call fcn.14003bf54
int3

Function at 0x140029d54
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1400cc1b8]
xor edx, edx
jmp fcn.14001f160

Function at 0x14002a744
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1400cc1b8]
jmp fcn.14001f160
Function at 0x140046238
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.14001bf70
sub rsp, rax
mov rax, qword [0x1400c8088]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140051188
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140046287
mov rax, rbp
jmp 0x14004638f
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 + 0xcc870]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14005560c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xcc870]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14004638b
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 0x14004638b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14005560c
test rax, rax
js 0x14004638b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14004638b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14004637d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14004637d
cmp byte [rcx], 0xd
jne 0x140046363
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140046372
cmp byte [rcx + 1], 0xa
jne 0x140046372
inc rcx
jmp 0x140046372
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xc85d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140046345
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14004638f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14001b1c0
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 0x140047044
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 0x1400470b3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400470b3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400470b3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400470b3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400470b3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400470b3
cmp dword [rcx + 0xf8], 0
je 0x1400470b3
mov ecx, ebx
call fcn.140047170
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.140046f40
nop
cmp dword [rbp + 0x20], 0
je 0x140047101
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14004710c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140047044
Function at 0x140047254
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 0x1400470b3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400470b3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400470b3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400470b3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400470b3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400470b3
cmp dword [rcx + 0xf8], 0
je 0x1400470b3
mov ecx, ebx
call fcn.140047170
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.140046f40
nop
cmp dword [rbp + 0x20], 0
je 0x140047101
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14004710c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140047044

Function at 0x1400489a0
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1400489c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003fd30
or eax, 0xffffffff
jmp 0x1400489c2
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400489c8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400489e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003fd30
or eax, 0xffffffff
jmp 0x1400489ea
xor eax, eax
add rsp, 0x28
ret
Function at 0x140052fc4
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x140052ffa
call fcn.14003fdbc
mov dword [rax], 0x16
call fcn.14003de68
jmp 0x14005314a
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14005314a
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14005314a
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140053029
lock or dword [rcx + 0x14], 0x10
jmp 0x14005314a
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14005303d
call fcn.140055330
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x14005304d
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x140053050
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.140051188
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.14005666c
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140053138
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1400530e3
mov rcx, rbx
call fcn.140051188
cmp eax, 0xffffffff
je 0x1400530ce
mov rcx, rbx
call fcn.140051188
cmp eax, 0xfffffffe
je 0x1400530ce
mov rcx, rbx
call fcn.140051188
movsxd rdi, eax
lea rsi, [0x1400cc870]
mov rcx, rbx
sar rdi, 6
call fcn.140051188
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1400530d5
lea rdx, [0x1400c8580]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400530e3
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140053107
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x140053107
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x140053107
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x140053125
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x140053130
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x14005314f
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x140052fc4