joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002700
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x40
mov r8d, edx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1800032e0
mov edx, 0x4000
lea rcx, [rsp + 0x20]
call fcn.180003480
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll__mkdir
mov rcx, rbx
call sub.msvcrt.dll_free
add rsp, 0x40
pop rbx
ret

Function at 0x180002ac0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor eax, eax
mov qword [rsp + 0x20], 0
mov r8d, edx
mov qword [rsp + 0x28], rax
mov rdx, rcx
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
call fcn.1800032e0
lea rcx, [rsp + 0x20]
call fcn.1800032f0
xor edx, edx
mov r8d, eax
mov edi, eax
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x180002b20
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x180002b35
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, edi
mov ecx, 0x23
mov r8d, eax
call fcn.180001ae0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180002fd0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd r10, edx
mov rbx, r8
add r10, 4
movsxd rax, r9d
mov edi, edx
mov rsi, rcx
cmp r10, rax
jbe 0x180003008
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call fcn.180002970
mov dword [rbx], eax
test edi, edi
je 0x18000303e
xor edx, edx
lea rcx, [rbx + 4]
sub rsi, rbx
mov r8, rdi
nop
mov rax, rdx
lea rcx, [rcx + 1]
and eax, 3
inc rdx
movzx eax, byte [rax + rbx]
xor al, byte [rsi + rcx - 5]
mov byte [rcx - 1], al
sub r8, 1
jne 0x180003020
mov rbx, qword [rsp + 0x30]
lea eax, [rdi + 4]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180003060
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rdi, r8
mov r8d, edx
mov rdx, rcx
lea rcx, [rsp + 0x38]
call fcn.1800032e0
mov edx, 0x80
lea rcx, [rsp + 0x20]
call fcn.1800016c0
lea rcx, [rsp + 0x38]
call fcn.1800032f0
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.1800016f0
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r8d, eax
lea rdx, [0x1800120ac]
lea rcx, [rsp + 0x20]
call fcn.180001720
lea rcx, [rsp + 0x20]
call fcn.180003330
lea rcx, [rsp + 0x20]
mov ebx, eax
call fcn.180001790
mov rcx, rax
mov r8d, 0x16
mov edx, ebx
call rdi
lea rcx, [rsp + 0x20]
call fcn.180001690
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x180003e70
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push r14
push r15
sub rsp, 0x20
mov rbp, rcx
mov r14, r8
mov ecx, 0x8000
mov rsi, rdx
call sub.msvcrt.dll_malloc
mov r9, rbp
lea r8, str._s
mov edx, 0x8000
mov rcx, rax
mov rbx, rax
call fcn.180001010
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rbx
mov r15, rax
call sub.msvcrt.dll_free
cmp r15, 0xffffffffffffffff
je 0x180003fb7
mov qword [rsp + 0x40], rdi
lea rdi, [rsi + 0x2c]
nop word [rax + rax]
test byte [rsi], 0x10
je 0x180003f89
lea r8, [0x180012244]
mov rax, rdi
sub r8, rdi
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180003f13
inc rax
test ecx, ecx
jne 0x180003f00
test edx, edx
je 0x180003f95
lea r8, [0x180012248]
mov rax, rdi
sub r8, rdi
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180003f37
inc rax
test ecx, ecx
jne 0x180003f24
test edx, edx
je 0x180003f95
mov ecx, 0x8000
call sub.msvcrt.dll_malloc
mov r9, rdi
lea r8, [0x18001224c]
mov edx, 0x8000
mov rcx, rax
mov rbx, rax
call fcn.180001010
mov r9, r14
mov r8, rsi
mov rdx, rdi
mov rcx, rbp
call fcn.180003fd0
mov r8d, 1
mov rdx, rbx
mov rcx, rbp
call r14
mov rcx, rbx
call sub.msvcrt.dll_free
jmp 0x180003f95
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
call r14
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x180003ee0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
Function at 0x180004620
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
jne 0x180004688
mov eax, dword [rcx + 4]
xor r8d, r8d
mov r9d, dword [rcx]
xor edx, edx
add rcx, 8
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180004684
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x18000467e
mov r9d, dword [rdi]
lea rcx, [rdi + 8]
xor r8d, r8d
mov dword [rsp + 0x20], 8
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180004684
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, qword [rdi + 8]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1800046e0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
mov edx, 0x18
mov r8d, 0xf0000000
lea rcx, [rsp + 0x50]
mov rdi, r9
call fcn.180004520
lea rcx, [rsp + 0x50]
call fcn.180004620
test rax, rax
jne 0x18000472b
xor bl, bl
jmp 0x1800047bd
lea rcx, [rsp + 0x48]
call fcn.180004570
mov r9d, dword [rbx + 8]
lea rdx, [rsp + 0x50]
mov r8, qword [rbx]
lea rcx, [rsp + 0x48]
call fcn.180004ac0
test eax, eax
jne 0x1800047b1
lea edx, [rax + 1]
lea rcx, [rsp + 0x48]
call fcn.180004be0
test eax, eax
jne 0x1800047b1
mov rdx, qword [rbx + 0x10]
lea rcx, [rsp + 0x48]
call fcn.180004b90
test eax, eax
jne 0x1800047b1
lea rcx, [rsp + 0x48]
call fcn.180001790
test rax, rax
je 0x1800047b1
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rcx
xor r9d, r9d
mov rcx, rax
mov dword [rsp + 0x40], edi
xor r8d, r8d
mov qword [rsp + 0x20], rbp
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
cmp eax, 1
sete bl
jmp 0x1800047b3
xor bl, bl
lea rcx, [rsp + 0x48]
call fcn.180004580
lea rcx, [rsp + 0x50]
call fcn.1800045b0
mov rbp, qword [rsp + 0x78]
movzx eax, bl
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x1800047f0
Capabilities:
Encode data using base64 via winapi

Disassembly:
jmp 0x1800047f0
sub rsp, 0x38
mov qword [rsp + 0x20], r9
mov r9, r8
mov r8d, 1
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
xor eax, eax
add rsp, 0x38
ret
Function at 0x180004810
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov edx, 0x18
mov r8d, 0xf0000000
lea rcx, [rsp + 0x40]
mov rbp, r9
call fcn.180004520
lea rcx, [rsp + 0x40]
call fcn.180004620
test rax, rax
jne 0x18000485f
or ebx, 0xffffffff
jmp 0x180004984
lea rcx, [rsp + 0x38]
call fcn.180004570
mov r9d, ebx
lea rdx, [rsp + 0x40]
mov r8, rsi
lea rcx, [rsp + 0x38]
call fcn.180004ac0
test eax, eax
je 0x18000488a
or ebx, 0xffffffff
jmp 0x18000497a
lea rcx, [rsp + 0x38]
call fcn.180001790
lea rcx, [rsp + 0x40]
mov rbx, rax
call fcn.180004620
mov rcx, rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8, rbx
mov edx, 0x8009
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x180004972
mov rcx, qword [rdi]
lea r8, [rsp + 0x50]
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
lea edx, [r9 + 5]
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x50], eax
call qword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
je 0x180004972
mov r8d, dword [rsp + 0xb0]
xor r9d, r9d
mov rcx, qword [rdi]
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x180004972
mov rcx, qword [rdi]
lea r9, [rsp + 0x30]
xor ebx, ebx
xor r8d, r8d
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x20], ebx
lea edx, [rbx + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x180004972
mov r9, qword [rsp + 0xc8]
mov eax, dword [r9]
cmp dword [rsp + 0x30], eax
je 0x180004954
or ebx, 0xffffffff
jmp 0x18000497a
mov r8, qword [rsp + 0xc0]
mov edx, 2
mov rcx, qword [rdi]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x18000497a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x38]
call fcn.180004580
lea rcx, [rsp + 0x40]
call fcn.1800045b0
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x180004a60
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov ebx, r8d
lea rcx, [rsp + 0x20]
xor r8d, r8d
mov rdi, rdx
lea edx, [r8 + 1]
call fcn.180004520
lea rcx, [rsp + 0x20]
call fcn.180004620
test rax, rax
je 0x180004aa6
mov r8, rdi
mov edx, ebx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x180004aa6
xor ebx, ebx
jmp 0x180004aa9
or ebx, 0xffffffff
lea rcx, [rsp + 0x20]
call fcn.1800045b0
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180004ac0
Capabilities:
Encrypt data using aes via winapi

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rbp, rcx
mov edi, r9d
mov rcx, rdx
mov rsi, r8
mov rbx, rdx
call fcn.180004620
test rax, rax
je 0x180004b72
xor eax, eax
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x3c]
mov qword [rsp + 0x38], rax
mov r8d, edi
mov rdx, rsi
mov dword [rsp + 0x30], 0x208
mov dword [rsp + 0x34], 0x660e
xor r14d, r14d
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], eax
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call fcn.180004620
mov rcx, rax
mov qword [rsp + 0x28], rbp
xor r9d, r9d
mov dword [rsp + 0x20], r14d
lea r8d, [r14 + 0x2c]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov r14, qword [rsp + 0x70]
test eax, eax
jne 0x180004b77
call qword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
jmp 0x180004b79
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180006ea0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x180012310]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x180006edc
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.18000ad94
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x180006f98
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x180006ffe
test ebx, ebx
jne 0x180006ffe
lea ecx, [rax + 2]
call fcn.18000ad94
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.18000ad70
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret
Function at 0x140001ca0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001cea
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001cea
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001cea
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001cea
cmp dword [rcx + 0x84], 0xe
jbe 0x140001cea
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001cec
xor al, al
add rsp, 0x28
ret

Function at 0x14000cd10
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14041f010]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1403a6bd8]
mov rbp, rcx
call fcn.1400185e4
xor edi, edi
test rax, rax
je 0x14000cdf6
mov ebx, edi
call fcn.140013154
mov r14d, dword [rax]
call fcn.140013154
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140018ae0
mov rsi, rax
test rax, rax
je 0x14000cd87
call fcn.140013154
mov dword [rax], r14d
jmp 0x14000cdb1
call fcn.140013154
cmp dword [rax], 0x22
jne 0x14000cdee
call fcn.140013154
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140018ae0
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14000cdee
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14000cdb5
cmp rax, 3
je 0x14000cdd0
mov rcx, rsi
call fcn.14000cc6c
test al, al
je 0x14000cde1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14000cde1
mov dil, 1
mov rcx, rbx
call fcn.140005660
mov al, dil
jmp 0x14000cdf8
mov rcx, rbx
call fcn.140005660
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140001200
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140013630
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001342c
Function at 0x140018148
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.140031f40
sub rsp, rax
mov rax, qword [0x14041f010]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001d6e0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140018197
mov rax, rbp
jmp 0x14001829f
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 + 0x45aa40]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400156d8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x45aa40]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001829b
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 0x14001829b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400156d8
test rax, rax
js 0x14001829b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001829b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001828d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001828d
cmp byte [rcx], 0xd
jne 0x140018273
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140018282
cmp byte [rcx + 1], 0xa
jne 0x140018282
inc rcx
jmp 0x140018282
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x41f170]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140018255
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001829f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140001200
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 0x140018b94
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 0x140018bcf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400130c8
call fcn.140013154
mov eax, dword [rax]
jmp 0x140018c46
cmp rdi, qword [rbx + 0x18]
ja 0x140018bdb
mov qword [rbx + 0x20], rdi
jmp 0x140018c44
cmp byte [rbx + 0x28], 0
lea rsi, [rdi + 1]
je 0x140018bf2
mov rcx, qword [rbx + 0x10]
call fcn.140021dac
mov byte [rbx + 0x28], 0
lea rcx, [rdi*2 + 2]
call fcn.140021de8
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 0x140018c46
mov ecx, dword [rbx + 0x18]
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x140018bb9
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 0x140019eac
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140019ecc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400130c8
or eax, 0xffffffff
jmp 0x140019ece
xor eax, eax
add rsp, 0x28
ret

Function at 0x14001dcb4
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, [0x14045aa40]
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 0x14001dd0b
cmp word [rdx], r13w
jne 0x14001dd0b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001dd10
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001de35
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001de56
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001dd49
mov rdx, r9
mov word [rbx], cx
jmp 0x14001dd70
cmp r9, r8
jae 0x14001dd80
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 0x14001dd2a
jmp 0x14001de35
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 0x14001de2a
cmp dword [rsp + 0x80], esi
je 0x14001de2a
lea r8, [0x14045aa40]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001de02
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001ddd2
mov word [rbx], r13w
jmp 0x14001de32
mov ecx, recv
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 0x14001dddf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001de32
cmp word [rsp + 0x70], r13w
jne 0x14001de0f
cmp rbx, r14
je 0x14001ddcc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400156e0
cmp word [rsp + 0x70], r13w
je 0x14001de35
mov ecx, recv
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, [0x14045aa40]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001de2f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001de35
Function at 0x140024164
Capabilities:
Get file size

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

Function at 0x1400263f4
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 0x140026424
xor eax, eax
jmp 0x1400264e7
mov rbp, rbx
cmp word [rax], si
je 0x140026449
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140026430
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002642c
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.1400257e0
movsxd r14, eax
test eax, eax
jne 0x140026487
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002641d
mov rcx, r14
call fcn.140021de8
mov rdi, rax
test rax, rax
jne 0x1400264a0
xor ecx, ecx
call fcn.140021dac
jmp 0x14002647c
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.1400257e0
test eax, eax
jne 0x1400264d1
mov rcx, rdi
call fcn.140021dac
jmp 0x1400264db
xor ecx, ecx
call fcn.140021dac
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 0x140026504
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 0x14002658b
mov rsi, rbx
cmp word [rax], bp
je 0x14002654a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140026534
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140026530
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140021de8
mov rdi, rax
test rax, rax
je 0x140026578
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140003740
mov rbp, rdi
xor ecx, ecx
call fcn.140021dac
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