joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ecc30
Capabilities:
Get geographical location

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x20]
xor eax, eax
mov qword [rbp + 0x48], rax
mov rax, qword [0x140308240]
mov qword [rbp + 0x40], rax
mov rdi, rcx
mov ebx, edx
mov rsi, r8
call fcn.14000120b
cmp byte [rax], 0
je 0x1400ecc7b
movzx edx, bl
mov rcx, rdi
mov r8, rsi
call fcn.1400ece70
jmp 0x1400ece23
mov rcx, rdi
mov qword [rbp + 0xb0], rsi
mov rdx, rsi
call fcn.1400eb160
mov r14d, eax
test bl, bl
je 0x1400ece20
xor ecx, ecx
mov dword [rbp + 0x50], ecx
test rdi, rdi
je 0x1400ecca8
add rdi, 0xc
jmp 0x1400eccaa
xor edi, edi
mov qword [rbp + 0x48], rdi
mov rcx, rdi
mov qword [rbp + 0x30], rcx
lea r8, [rbp + 0x50]
mov qword [rbp + 0x28], r8
mov edx, 0x20001009
mov dword [rbp + 0x3c], edx
mov r9d, 4
mov dword [rbp + 0x38], r9d
lea rcx, [rbp]
call fcn.140004560
mov rcx, qword [rbp + 0x30]
mov r8, qword [rbp + 0x28]
mov edx, dword [rbp + 0x3c]
mov r9d, dword [rbp + 0x38]
call sub.KERNEL32.dll_GetLocaleInfoEx
lea rcx, [rbp]
call fcn.1400045b0
xor eax, eax
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x48], rax
mov eax, dword [rbp + 0x50]
test eax, eax
je 0x1400ece20
movzx r9d, ax
mov rsi, qword [rbp + 0xb0]
mov edi, dword [rsi + 8]
test edi, edi
je 0x1400ece5b
movzx ebx, word [rsi + 0x10]
cmp r9d, ebx
je 0x1400ece20
mov r15d, 1
cmp edi, 1
jle 0x1400ecd4d
mov eax, r15d
movzx eax, word [rsi + rax*2 + 0x10]
cmp eax, r9d
je 0x1400ecd54
inc r15d
cmp edi, r15d
jg 0x1400ecd38
cmp edi, r14d
jg 0x1400ecd69
jmp 0x1400ecd6c
mov word [rsi + 0x10], r9w
mov eax, r15d
mov word [rsi + rax*2 + 0x10], bx
mov eax, r14d
jmp 0x1400ece23
inc r14d
mov eax, r14d
mov r8d, 2
mul r8
jb 0x1400ece4a
mov r15, rax
test r15, r15
je 0x1400ecdc3
mov rcx, r15
add rcx, 0xf
and rcx, 0xfffffffffffffff0
add rsp, 0x20
neg rcx
add rcx, rsp
jb 0x1400ecd9f
xor ecx, ecx
test dword [rsp], esp
mov r8, rsp
sub r8, 0x1000
mov rsp, r8
cmp rsp, rcx
jae 0x1400ecd9f
mov rsp, rcx
test dword [rsp], esp
sub rsp, 0x20
lea r15, [rsp + 0x20]
test r14d, r14d
jl 0x1400ece4f
mov r8d, r14d
test r14d, r14d
je 0x1400ece5b
mov word [r15], r9w
dec r8d
cmp edi, r8d
jb 0x1400ece4f
lea rdx, [rsi + 0x10]
cmp r14d, 1
jb 0x1400ece4f
lea rcx, [r15 + 2]
lea eax, [r14 - 1]
cmp r8d, eax
ja 0x1400ece55
mov r8d, r8d
add r8, r8
call fcn.1400b0c60
add rsi, 0x10
mov rcx, rsi
cmp r14d, edi
ja 0x1400ece55
mov r8d, r14d
add r8, r8
mov rdx, r15
call fcn.1400b0c60
mov eax, r14d
lea rcx, [0x140308240]
mov rcx, qword [rcx]
cmp qword [rbp + 0x40], rcx
je 0x1400ece38
call fcn.140004930
nop
lea rsp, [rbp + 0x58]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.14015c5e0
call fcn.1400df450
int3
call fcn.1400df480
int3
call fcn.14015c610
int3
Function at 0x1400ece70
Capabilities:
Get geographical location

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0xe0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x60], xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp + 0x20], r8
mov rdi, rcx
mov ebx, edx
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
lea rcx, [0x140255cf8]
call fcn.1400040f0
mov r14, rax
call fcn.140002946
mov rdx, qword [rax + 8]
lea rcx, [r14 + 8]
call fcn.140004400
mov qword [rbp - 0x48], r14
test bl, bl
je 0x1400ecf91
xor ecx, ecx
mov dword [rbp - 0x50], ecx
test rdi, rdi
je 0x1400eceed
mov qword [rbp + 0x10], rdi
lea rcx, [rdi + 0xc]
jmp 0x1400ecef3
xor ecx, ecx
mov qword [rbp + 0x10], rdi
mov qword [rbp - 0x58], rcx
mov qword [rbp - 0x70], rcx
lea r8, [rbp - 0x50]
mov qword [rbp - 0x78], r8
mov edx, 0x20001009
mov dword [rbp - 0x64], edx
mov r9d, 4
mov dword [rbp - 0x68], r9d
lea rcx, [rbp - 0xa8]
call fcn.140004560
mov rcx, qword [rbp - 0x70]
mov r8, qword [rbp - 0x78]
mov edx, dword [rbp - 0x64]
mov r9d, dword [rbp - 0x68]
call sub.KERNEL32.dll_GetLocaleInfoEx
lea rcx, [rbp - 0xa8]
call fcn.1400045b0
xor ecx, ecx
mov qword [rbp - 0x58], rcx
mov qword [rbp - 0x58], rcx
mov edx, dword [rbp - 0x50]
test edx, edx
je 0x1400ecf82
mov dword [rbp - 0x40], edx
mov rcx, qword [rbp - 0x48]
inc dword [rcx + 0x14]
mov rax, qword [rcx + 8]
mov r8d, dword [rcx + 0x10]
mov r9d, dword [rax + 8]
cmp r9d, r8d
jbe 0x1400ecf88
lea r9d, [r8 + 1]
mov dword [rcx + 0x10], r9d
mov ecx, r8d
mov dword [rax + rcx*4 + 0x10], edx
mov rdi, qword [rbp + 0x10]
jmp 0x1400ecf91
mov rdi, qword [rbp + 0x10]
jmp 0x1400ecf91
call fcn.14018f400
mov rdi, qword [rbp + 0x10]
lea r9, [rbp - 0x48]
test rdi, rdi
je 0x1400ecfa0
add rdi, 0xc
jmp 0x1400ecfa2
xor edi, edi
mov qword [rbp - 0x60], rdi
mov rdx, rdi
xor ecx, ecx
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x28], r9
mov r9, rcx
mov qword [rbp - 0x78], r9
mov qword [rbp - 0x70], rdx
lea rcx, [0x1400ec150]
mov qword [rbp - 0x80], rcx
mov r8d, 0xffffffff
mov dword [rbp - 0x68], r8d
lea rcx, [rbp - 0xa8]
call fcn.140004560
mov r9, qword [rbp - 0x78]
mov rdx, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x80]
mov r8d, dword [rbp - 0x68]
call sub.KERNEL32.dll_EnumCalendarInfoExEx
lea rcx, [rbp - 0xa8]
call fcn.1400045b0
xor eax, eax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x60], rax
mov rsi, qword [rbp + 0x20]
mov edx, dword [rsi + 8]
jmp 0x1400ed042
mov rcx, qword [rbp - 0x48]
cmp eax, r8d
jae 0x1400ed075
mov r8, qword [rcx + 8]
cmp eax, dword [r8 + 8]
jae 0x1400ed07b
mov ecx, eax
movzx ecx, word [r8 + rcx*4 + 0x10]
cmp eax, edx
jae 0x1400ed07b
mov r8d, eax
mov word [rsi + r8*2 + 0x10], cx
inc eax
mov ecx, edx
mov r8, qword [rbp - 0x48]
mov r8d, dword [r8 + 0x10]
mov r9d, r8d
cmp ecx, r9d
jle 0x1400ed056
jmp 0x1400ed059
mov r9d, ecx
cmp eax, r9d
jl 0x1400ed018
mov eax, r8d
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.1400df520
int3
call fcn.14015c610
int3
Function at 0x1400f4c20
Capabilities:
Get geographical location

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x20]
xor eax, eax
mov qword [rbp + 0x50], rax
mov rax, qword [0x140308240]
mov qword [rbp + 0x48], rax
test dword [rsp], esp
sub rsp, 0x430
lea rsi, [rsp + 0x20]
test rcx, rcx
je 0x1400f4c60
add rcx, 0xc
jmp 0x1400f4c62
xor ecx, ecx
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x38], rcx
mov dword [rbp + 0x44], edx
mov r8, rsi
mov qword [rbp + 0x30], r8
mov r9d, 0x212
mov dword [rbp + 0x40], r9d
lea rcx, [rbp + 8]
call fcn.140004560
mov rcx, qword [rbp + 0x38]
mov edx, dword [rbp + 0x44]
mov r8, qword [rbp + 0x30]
mov r9d, dword [rbp + 0x40]
call sub.KERNEL32.dll_GetLocaleInfoEx
mov edi, eax
lea rcx, [rbp + 8]
call fcn.1400045b0
xor ecx, ecx
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x50], rcx
test edi, edi
jle 0x1400f4cbe
mov rcx, rsi
call fcn.1400b62e0
jmp 0x1400f4cc0
xor eax, eax
lea rcx, [0x140308240]
mov rcx, qword [rcx]
cmp qword [rbp + 0x48], rcx
je 0x1400f4cd5
call fcn.140004930
nop
lea rsp, [rbp + 0x58]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1400f4cf0
Capabilities:
Get geographical location

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x48], rax
or edx, 0x20000000
xor r8d, r8d
mov dword [rbp - 0x40], r8d
test rcx, rcx
je 0x1400f4d26
add rcx, 0xc
jmp 0x1400f4d28
xor ecx, ecx
mov qword [rbp - 0x48], rcx
mov qword [rbp - 0x58], rcx
lea r8, [rbp - 0x40]
mov qword [rbp - 0x60], r8
mov dword [rbp - 0x4c], edx
mov r9d, 4
mov dword [rbp - 0x50], r9d
lea rcx, [rbp - 0x88]
call fcn.140004560
mov rcx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x60]
mov edx, dword [rbp - 0x4c]
mov r9d, dword [rbp - 0x50]
call sub.KERNEL32.dll_GetLocaleInfoEx
lea rcx, [rbp - 0x88]
call fcn.1400045b0
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x48], rax
mov eax, dword [rbp - 0x40]
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1400f6b40
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
call fcn.14000147d
cmp byte [rax], 0
jne 0x1400f6b74
xor ecx, ecx
mov edx, 0x5c
call fcn.1400f4c20
test rax, rax
jne 0x1400f6b88
lea rcx, [0x1402e75c8]
mov edx, 0x5c
add rsp, 0x28
jmp fcn.1400f4c20
call fcn.140001acd
mov rcx, qword [rax + 0x18]
cmp dword [rcx], ecx
add rsp, 0x28
jmp fcn.1400f6000
add rsp, 0x28
ret
Function at 0x140120870
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
mov eax, 0x1505
xor edx, edx
mov r8d, dword [rcx + 8]
test r8d, r8d
jle 0x14012089d
mov r9d, eax
shl r9d, 5
add eax, r9d
mov r9d, edx
movzx r9d, word [rcx + r9*2 + 0xc]
xor eax, r9d
inc edx
cmp r8d, edx
jg 0x140120880
ret
Function at 0x140151d40
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xc8
lea rbp, [rsp + 0x40]
xorps xmm4, xmm4
movaps xmmword [rbp + 0x70], xmm4
xor eax, eax
mov qword [rbp + 0x80], rax
mov rax, qword [0x140308240]
mov qword [rbp + 0x50], rax
mov rdi, rcx
mov rsi, rdx
mov ebx, dword [rsi + 8]
shl ebx, 2
cmp ebx, 0x400
jge 0x140151dd8
mov edx, ebx
mov r14, rdx
test r14, r14
je 0x140151dce
mov rax, r14
add rax, 0xf
and rax, 0xfffffffffffffff0
add rsp, 0x40
neg rax
add rax, rsp
jb 0x140151daa
xor eax, eax
test dword [rsp], esp
mov rcx, rsp
sub rcx, 0x1000
mov rsp, rcx
cmp rsp, rax
jae 0x140151daa
mov rsp, rax
test dword [rsp], esp
sub rsp, 0x40
lea r14, [rsp + 0x40]
test ebx, ebx
jl 0x140151f50
jmp 0x140151dee
movsxd rdx, ebx
lea rcx, [0x140277888]
call fcn.140004210
lea r14, [rax + 0x10]
mov ebx, dword [rax + 8]
mov qword [rbp + 0x58], r14
mov qword [rbp + 0xd8], rsi
lea rcx, [rsi + 0xc]
mov qword [rbp + 0x80], rcx
mov r15, qword [rbp + 0x80]
xor r12d, r12d
test ebx, ebx
je 0x140151f4b
mov r12, r14
mov qword [rbp + 0x60], r12
mov qword [rbp + 0x78], r12
lea rcx, [rbp]
call fcn.140004560
call sub.KERNEL32.dll_GetConsoleOutputCP
mov esi, eax
lea rcx, [rbp]
call fcn.1400045b0
mov ecx, esi
mov r8, r15
mov rsi, qword [rbp + 0xd8]
mov r9d, dword [rsi + 8]
mov r12, qword [rbp + 0x60]
mov dword [rsp + 0x28], ebx
xor edx, edx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rdx
mov dword [rbp + 0x4c], ecx
mov qword [rbp + 0x3c], r8
mov dword [rbp + 0x48], r9d
mov qword [rsp + 0x20], r12
mov dword [rbp + 0x44], edx
lea rcx, [rbp]
call fcn.140004560
mov ecx, dword [rbp + 0x4c]
mov r8, qword [rbp + 0x3c]
mov r9d, dword [rbp + 0x48]
mov edx, dword [rbp + 0x44]
call sub.KERNEL32.dll_WideCharToMultiByte
mov esi, eax
lea rcx, [rbp]
call fcn.1400045b0
xor ecx, ecx
mov qword [rbp + 0x78], rcx
mov qword [rbp + 0x80], rcx
test ebx, ebx
je 0x140151eb0
mov r14, qword [rbp + 0x58]
mov rcx, r14
mov rbx, rcx
mov qword [rbp + 0x70], rbx
lea r14, [rbp + 0x6c]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
xor ecx, ecx
mov qword [rsp + 0x20], rcx
mov rcx, rdi
mov qword [rbp + 0x3c], rcx
mov rdx, rbx
mov qword [rbp + 0x34], rdx
mov r8d, esi
mov dword [rbp + 0x44], r8d
mov r9, r14
mov qword [rbp + 0x2c], r9
lea rcx, [rbp]
call fcn.140004560
mov rcx, qword [rbp + 0x3c]
mov rdx, qword [rbp + 0x34]
mov r8d, dword [rbp + 0x44]
mov r9, qword [rbp + 0x2c]
call sub.KERNEL32.dll_WriteFile
lea rcx, [rbp]
call fcn.1400045b0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
call fcn.140002f80
mov dword [rax + 8], esi
xor eax, eax
mov qword [rbp + 0x70], rax
lea rcx, [0x140308240]
mov rcx, qword [rcx]
cmp qword [rbp + 0x50], rcx
je 0x140151f36
call fcn.140004930
nop
lea rsp, [rbp + 0x88]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
jmp 0x140151e19
call fcn.1400df450
int3
Function at 0x14015cd80
Capabilities:
Copy file

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], rax
mov rsi, rdx
test r8b, r8b
jne 0x14015cdb1
xor edi, edi
jmp 0x14015cdb6
mov edi, 1
xor eax, eax
mov dword [rbp - 0x3c], eax
call fcn.14012b050
mov rbx, rax
mov rcx, rsi
call fcn.14012b050
test rbx, rbx
je 0x14015cdd6
add rbx, 0xc
jmp 0x14015cdd8
xor ebx, ebx
mov qword [rbp - 0x48], rbx
test rax, rax
je 0x14015cdea
add rax, 0xc
mov rsi, rax
jmp 0x14015cdec
xor esi, esi
mov qword [rbp - 0x50], rsi
lea r14, [rbp - 0x3c]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x28], edi
mov rcx, rbx
mov qword [rbp - 0x58], rcx
mov rdx, rsi
mov qword [rbp - 0x60], rdx
xor r8d, r8d
mov qword [rbp - 0x68], r8
xor r9d, r9d
mov qword [rbp - 0x70], r9
lea rcx, [rbp - 0x98]
call fcn.140004560
mov rcx, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x68]
mov r9, qword [rbp - 0x70]
call sub.KERNEL32.dll_CopyFileExW
mov esi, eax
lea rcx, [rbp - 0x98]
call fcn.1400045b0
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
test esi, esi
setne sil
movzx esi, sil
call fcn.140002f80
mov dword [rax + 8], edi
xor edx, edx
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x50], rdx
test esi, esi
jne 0x14015ce85
mov eax, dword [rax + 8]
jmp 0x14015ce87
xor eax, eax
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x14015d010
Capabilities:
Delete file

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x90]
xor eax, eax
mov qword [rbp - 0x40], rax
test rcx, rcx
je 0x14015d03c
add rcx, 0xc
mov rsi, rcx
jmp 0x14015d03e
xor esi, esi
mov qword [rbp - 0x40], rsi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rsi
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x70]
call fcn.140004560
mov rcx, qword [rbp - 0x48]
call sub.KERNEL32.dll_DeleteFileW
mov esi, eax
lea rcx, [rbp - 0x70]
call fcn.1400045b0
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
test esi, esi
setne sil
movzx esi, sil
call fcn.140002f80
mov dword [rax + 8], edi
movzx eax, sil
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14015d660
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov esi, ecx
mov qword [rbp - 0x40], rdx
mov rdi, rdx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, esi
mov dword [rbp - 0x44], ecx
mov rdx, rdi
mov qword [rbp - 0x4c], rdx
lea rcx, [rbp - 0x78]
call fcn.140004560
mov ecx, dword [rbp - 0x44]
mov rdx, qword [rbp - 0x4c]
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov esi, eax
lea rcx, [rbp - 0x78]
call fcn.1400045b0
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.140002f80
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x14015da10
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov esi, edx
mov qword [rbp - 0x40], rcx
mov rdi, rcx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rdi
mov qword [rbp - 0x4c], rcx
mov edx, esi
mov dword [rbp - 0x44], edx
lea rcx, [rbp - 0x78]
call fcn.140004560
mov rcx, qword [rbp - 0x4c]
mov edx, dword [rbp - 0x44]
call sub.KERNEL32.dll_GetSystemDirectoryW
mov esi, eax
lea rcx, [rbp - 0x78]
call fcn.1400045b0
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.140002f80
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x14015daf0
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
mov qword [rbp + 0x10], rcx
mov rsi, rdx
mov edi, r8d
mov rbx, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.140135c30
mov rcx, qword [rbp + 0x10]
mov r14, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x4c], rcx
mov rdx, rsi
mov qword [rbp - 0x54], rdx
mov r8d, edi
mov dword [rbp - 0x44], r8d
mov r9, rbx
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.140004560
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_ReadFile
mov esi, eax
lea rcx, [rbp - 0x88]
call fcn.1400045b0
call sub.KERNEL32.dll_GetLastError
mov edi, eax
cmp byte [rbp - 0x40], 0
je 0x14015dba0
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.140135ca0
call fcn.140002f80
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14015dbf0
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x10], rcx
mov rdi, rdx
mov ebx, r8d
mov rsi, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.140135c30
mov rcx, qword [rbp + 0x10]
mov r14, qword [rcx + 8]
mov qword [rbp - 0x48], rsi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x54], rcx
mov rdx, rdi
mov qword [rbp - 0x5c], rdx
mov r8d, ebx
mov dword [rbp - 0x4c], r8d
mov r9, rsi
mov qword [rbp - 0x64], r9
lea rcx, [rbp - 0x90]
call fcn.140004560
mov rcx, qword [rbp - 0x54]
mov rdx, qword [rbp - 0x5c]
mov r8d, dword [rbp - 0x4c]
mov r9, qword [rbp - 0x64]
call sub.KERNEL32.dll_ReadFile
mov esi, eax
lea rcx, [rbp - 0x90]
call fcn.1400045b0
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor ecx, ecx
mov qword [rbp - 0x48], rcx
cmp byte [rbp - 0x40], 0
je 0x14015dcb3
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.140135ca0
call fcn.140002f80
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x14015dfe0
Capabilities:
Create thread

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov rsi, rcx
mov rdi, rdx
mov rbx, r8
mov r14, r9
mov r15, qword [rbp + 0x38]
xor ecx, ecx
mov dword [rbp - 0x3c], ecx
mov qword [rbp - 0x48], rcx
lea rcx, [0x14022ebd8]
call fcn.140004130
xor ecx, ecx
mov qword [rax + 8], rcx
mov dword [rax + 0x10], 4
mov byte [rax + 0x14], 1
mov byte [rax + 0x15], 1
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], r15
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
mov r9, r14
mov esi, dword [rbp + 0x30]
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x68], rdx
mov qword [rbp - 0x70], r8
mov qword [rbp - 0x78], r9
mov dword [rsp + 0x20], esi
mov qword [rsp + 0x28], r15
lea rcx, [rbp - 0xa0]
call fcn.140004560
mov rcx, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x68]
mov r8, qword [rbp - 0x70]
mov r9, qword [rbp - 0x78]
call sub.KERNEL32.dll_CreateThread
mov rsi, rax
lea rcx, [rbp - 0xa0]
call fcn.1400045b0
mov qword [rbp - 0x48], rsi
xor eax, eax
mov qword [rbp - 0x50], rax
mov dword [rbp - 0x3c], 1
mov rax, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x58]
mov qword [rdx + 8], rax
mov rax, rdx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14015e130
Capabilities:
Resume thread

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x90]
mov qword [rbp + 0x10], rcx
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.140135c30
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx + 8]
mov rcx, rax
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x70]
call fcn.140004560
mov rcx, qword [rbp - 0x48]
call sub.KERNEL32.dll_ResumeThread
mov esi, eax
lea rcx, [rbp - 0x70]
call fcn.1400045b0
nop
cmp byte [rbp - 0x40], 0
je 0x14015e19a
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.140135ca0
mov eax, esi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x14015e5e0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
mov qword [rbp + 0x10], rcx
mov rsi, rdx
mov edi, r8d
mov rbx, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.140135c30
mov rcx, qword [rbp + 0x10]
mov r14, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x4c], rcx
mov rdx, rsi
mov qword [rbp - 0x54], rdx
mov r8d, edi
mov dword [rbp - 0x44], r8d
mov r9, rbx
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.140004560
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_WriteFile
mov esi, eax
lea rcx, [rbp - 0x88]
call fcn.1400045b0
call sub.KERNEL32.dll_GetLastError
mov edi, eax
cmp byte [rbp - 0x40], 0
je 0x14015e690
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.140135ca0
call fcn.140002f80
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14015e6e0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x10], rcx
mov rdi, rdx
mov ebx, r8d
mov rsi, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.140135c30
mov rcx, qword [rbp + 0x10]
mov r14, qword [rcx + 8]
mov qword [rbp - 0x48], rsi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x54], rcx
mov rdx, rdi
mov qword [rbp - 0x5c], rdx
mov r8d, ebx
mov dword [rbp - 0x4c], r8d
mov r9, rsi
mov qword [rbp - 0x64], r9
lea rcx, [rbp - 0x90]
call fcn.140004560
mov rcx, qword [rbp - 0x54]
mov rdx, qword [rbp - 0x5c]
mov r8d, dword [rbp - 0x4c]
mov r9, qword [rbp - 0x64]
call sub.KERNEL32.dll_WriteFile
mov esi, eax
lea rcx, [rbp - 0x90]
call fcn.1400045b0
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor ecx, ecx
mov qword [rbp - 0x48], rcx
cmp byte [rbp - 0x40], 0
je 0x14015e7a3
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.140135ca0
call fcn.140002f80
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x14015eaf0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x48], rax
mov esi, r8d
test rcx, rcx
je 0x14015eb23
add rcx, 0xc
mov rdi, rcx
jmp 0x14015eb25
xor edi, edi
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x48], rdx
mov rbx, rdx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rdi
mov qword [rbp - 0x54], rcx
mov rdx, rbx
mov qword [rbp - 0x5c], rdx
mov r8d, esi
mov dword [rbp - 0x4c], r8d
lea rcx, [rbp - 0x88]
call fcn.140004560
mov rcx, qword [rbp - 0x54]
mov rdx, qword [rbp - 0x5c]
mov r8d, dword [rbp - 0x4c]
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov esi, eax
lea rcx, [rbp - 0x88]
call fcn.1400045b0
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
call fcn.140002f80
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret