joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d3170
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [str.zO_r_]
mov rdi, rax
test rax, rax
jne 0x1400d31b2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400d31f9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400d3252
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400d3210
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400d3293
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400e9b12]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400e9b13]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400d3260
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400d32b0
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 0x1400d32ea
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400d32ef
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 0x1400d3338
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 0x1400d3338
dec r8
sub rdx, 1
jne 0x1400d331e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400d4bf4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400d4c3e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400d4c3e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400d4c3e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400d4c3e
cmp dword [rcx + 0x84], 0xe
jbe 0x1400d4c3e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400d4c40
xor al, al
add rsp, 0x28
ret
Function at 0x180022110
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x180022141
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x1800221bb
mov rdi, r14
mov rcx, rbx
call fcn.180018fa0
test rax, rax
jle 0x180022193
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.1800466b0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1800221ab
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1800221b3
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x180022155
sub r14, rdi
jmp 0x18002229f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1800221d2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800221d4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180022206
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1800466b0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18002229c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180022241
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x18002227d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1800506c8
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x18002229c
cmp rbp, rax
ja 0x180022250
test rbp, rbp
je 0x18002229c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1800506c8
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x18002a7f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x18002a824
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x18002a810
ret
Function at 0x180030a20
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x20
mov r15, qword [r8 + 0x18]
mov rdi, r8
mov r12, rdx
mov r10, rcx
cmp r15, 0x10
jb 0x180030a4c
mov r8, qword [r8]
mov rbp, qword [rdi + 0x10]
xor esi, esi
movabs r9, 0xcbf29ce484222325
mov edx, esi
test rbp, rbp
je 0x180030a84
movabs rcx, 0x100000001b3
nop dword [rax]
movzx eax, byte [rdx + r8]
inc rdx
xor r9, rax
imul r9, rcx
cmp rdx, rbp
jb 0x180030a70
mov rcx, qword [r10 + 0x30]
mov rax, qword [r10 + 0x18]
and rcx, r9
mov r13, qword [r10 + 8]
add rcx, rcx
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, r13
je 0x180030af0
mov qword [rsp + 0x50], r14
mov r14, qword [rax + rcx*8]
nop dword [rax]
cmp qword [rbx + 0x28], 0x10
lea rdx, [rbx + 0x10]
jb 0x180030abf
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
cmp r15, 0x10
jb 0x180030acb
mov rcx, qword [rdi]
cmp rbp, qword [rbx + 0x20]
jne 0x180030add
mov r8, rbp
call fcn.1800465b0
test eax, eax
je 0x180030ae8
cmp rbx, r14
je 0x180030aeb
mov rbx, qword [rbx + 8]
jmp 0x180030ab0
mov rsi, rbx
mov r14, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
test rsi, rsi
mov rbp, qword [rsp + 0x60]
mov rax, r12
cmove rsi, r13
mov qword [r12], rsi
add rsp, 0x20
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x18003bd40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x1800971c0]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov r15, rdx
mov r13, rcx
mov qword [rsp + 0x20], rdx
mov rdx, qword [rdx]
add rdx, 8
lea rcx, [rsp + 0x48]
call fcn.180014160
nop
lea r8, [rsp + 0x48]
mov rbp, qword [rsp + 0x48]
mov r14, qword [rsp + 0x60]
cmp r14, 0x10
cmovae r8, rbp
movabs rdx, 0xcbf29ce484222325
xor ecx, ecx
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x18003bdd4
movabs r9, 0x100000001b3
nop
movzx eax, byte [rcx + r8]
xor rdx, rax
imul rdx, r9
inc rcx
cmp rcx, rdi
jb 0x18003bdc0
mov rcx, qword [r13 + 0x120]
and rcx, rdx
add rcx, rcx
mov rax, qword [r13 + 0x108]
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, qword [r13 + 0xf8]
je 0x18003be39
mov rsi, qword [rax + rcx*8]
nop word [rax + rax]
lea rdx, [rbx + 0x10]
cmp qword [rbx + 0x28], 0x10
jb 0x18003be0f
mov rdx, qword [rbx + 0x10]
lea rcx, [rsp + 0x48]
cmp r14, 0x10
cmovae rcx, rbp
cmp rdi, qword [rbx + 0x20]
jne 0x18003be2e
mov r8, rdi
call fcn.1800465b0
test eax, eax
je 0x18003be3b
cmp rbx, rsi
je 0x18003be39
mov rbx, qword [rbx + 8]
jmp 0x18003be00
xor ebx, ebx
test rbx, rbx
cmove rbx, qword [r13 + 0xf8]
lea r8, [rsp + 0x48]
cmp rbx, qword [r13 + 0xf8]
jne 0x18003bf30
lea rcx, [r13 + 0xf0]
lea rdx, [rsp + 0x28]
call fcn.18002ff10
mov rcx, qword [rax]
add rcx, 0x30
mov rdx, r15
call fcn.1800356e0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x18003beb2
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003bead
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18003bf2a
call fcn.180044244
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
mov rbx, qword [r15 + 8]
test rbx, rbx
je 0x18003befe
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x18003befe
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x18003befe
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1800446e0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
call fcn.18004afd8
nop
lea rdx, str.logger_with_name_
lea rcx, [rsp + 0x68]
call fcn.180001340
nop
lea r8, str._already_exists
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1800011a0
mov rcx, rax
call fcn.18003c3b0
int3
Function at 0x18003cd00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x1800971c0]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rsi, rdx
mov rdi, rcx
mov rax, qword [rcx + 0x10]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x18003cedb
mov rbx, qword [rcx + 0x18]
mov qword [rsp + 0x30], rbx
mov rcx, rbx
call fcn.180043498
test eax, eax
jne 0x18003cf08
xor r14d, r14d
mov qword [rsi + 0x28], r14
mov qword [rsi + 0x30], r14
mov qword [rsp + 0x60], r14
lea r15, vtable.fmt::v8::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov qword [rsp + 0x50], r15
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], 0xfa
mov rcx, qword [rdi + 0x28]
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
mov rdx, rsi
call qword [rax + 8]
cmp byte [rdi + 0x20], r14b
je 0x18003ce6f
mov rax, qword [rsi + 0x28]
cmp qword [rsi + 0x30], rax
jbe 0x18003ce6f
test rax, rax
je 0x18003cdcd
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
movsxd rax, dword [rsi + 0x10]
movzx ebp, word [rdi + rax*2 + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x18003cdee
lea ebp, [rax + 7]
jmp 0x18003ce09
mov edx, dword [rsp + 0x40]
and edx, 0xfff0
or edx, ebp
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
movzx ebp, word [rsp + 0x40]
mov rcx, qword [rsi + 0x30]
mov r8, qword [rsi + 0x28]
cmp rcx, r8
jbe 0x18003ce36
sub ecx, r8d
mov rdx, qword [rsp + 0x58]
add rdx, r8
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8d, ecx
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
movzx edx, bp
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rdx, qword [rsi + 0x30]
mov rcx, qword [rsp + 0x60]
cmp rcx, rdx
jbe 0x18003ce93
sub ecx, edx
add rdx, qword [rsp + 0x58]
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8d, ecx
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
jmp 0x18003ce93
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov qword [rsp + 0x50], r15
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
cmp rcx, rax
je 0x18003ced3
mov rdx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003cecd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18003cf02
call fcn.180044244
nop
mov rcx, rbx
call fcn.1800434a0
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1800446e0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.18004afd8
nop
mov ecx, eax
call fcn.1800435ac
int3
Function at 0x180054908
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 0x1800547af
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800547af
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800547af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800547af
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800547af
cmp dword [rcx + 0x84], 0xe
jbe 0x1800547af
cmp dword [rcx + 0xf8], 0
je 0x1800547af
mov ecx, ebx
call fcn.18005486c
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.18005463c
nop
cmp dword [rbp + 0x20], 0
je 0x1800547fd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180054808
int3
xor r8d, r8d
xor edx, edx
jmp 0x180054740

Function at 0x1800558e8
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x180055907
call fcn.180064814
jmp 0x1800559bc
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.18004bdb0
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x180055952
cmp byte [rbp - 0x38], 0
je 0x180055987
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x180055987
call fcn.18005e4cc
test eax, eax
jne 0x180055973
cmp byte [rbp - 0x38], al
je 0x18005596b
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x180055987
cmp byte [rbp - 0x38], 0
je 0x180055984
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.1800550a0
test eax, eax
je 0x1800559a0
or ebx, 0xffffffff
jmp 0x1800559ab
mov rcx, qword [rbp - 0x20]
call fcn.180064814
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x1800559ba
mov rcx, qword [rbp - 0x20]
call fcn.18005def0
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret
Function at 0x18006034c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x18006037e
call fcn.18004b124
mov dword [rax], 0x16
call fcn.18004afb8
jmp 0x18006049d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18006049d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x18006049d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1800603ad
lock or dword [rcx + 0x14], 0x10
jmp 0x18006049d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1800603c1
call fcn.180061afc
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1800554c0
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.18006112c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x18006048b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x180060456
mov rcx, rsi
call fcn.1800554c0
cmp eax, edi
je 0x180060441
mov rcx, rsi
call fcn.1800554c0
cmp eax, 0xfffffffe
je 0x180060441
mov rcx, rsi
call fcn.1800554c0
movsxd rbx, eax
lea r14, [0x18009cb10]
mov rcx, rsi
sar rbx, 6
call fcn.1800554c0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x180060448
lea rdx, [0x180097570]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x180060456
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x18006047a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x18006047a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x18006047a
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1800604a0
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1800607c8
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.180044e10
sub rsp, rax
mov rax, qword [0x1800971c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800554c0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180060817
mov rax, rbp
jmp 0x18006091f
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x9cb10]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180061904
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x9cb10]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18006091b
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 0x18006091b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180061904
test rax, rax
js 0x18006091b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18006091b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18006090d
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18006090d
cmp byte [rcx], 0xd
jne 0x1800608f3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180060902
cmp byte [rcx + 1], 0xa
jne 0x180060902
inc rcx
jmp 0x180060902
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x975c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800608d5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18006091f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800446e0
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 0x180060c80
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x18009cb10]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x180060cde
cmp word [rdx], r12w
jne 0x180060cde
or byte [rax + r8*8 + 0x38], cl
jmp 0x180060ce4
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x180060e3f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x180060e1a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x180060d1d
mov rcx, r9
jmp 0x180060d40
cmp r9, rdx
jae 0x180060d57
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x180060d01
jmp 0x180060e3f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180060e14
cmp dword [rsp + 0x80], edi
je 0x180060e14
mov rdx, r14
lea r11, [0x18009cb10]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x180060ded
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x180060dc0
mov word [rbx], r12w
jmp 0x180060e3b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x180060dc9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x180060e3b
cmp word [rsp + 0x70], r12w
jne 0x180060dfa
cmp rbx, rsi
je 0x180060dba
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.18006190c
cmp word [rsp + 0x70], r12w
je 0x180060e3f
mov word [rbx], r13w
jmp 0x180060e3b
lea r11, [0x18009cb10]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x180060e37
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x180060e3f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180067bac
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 0x180067bdc
xor eax, eax
jmp 0x180067c9f
mov rbp, rbx
cmp word [rax], si
je 0x180067c01
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180067be8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180067be4
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.180064064
movsxd r14, eax
test eax, eax
jne 0x180067c3f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180067bd5
mov rcx, r14
call fcn.180061b68
mov rdi, rax
test rax, rax
jne 0x180067c58
xor ecx, ecx
call fcn.18005def0
jmp 0x180067c34
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.180064064
test eax, eax
jne 0x180067c89
mov rcx, rdi
call fcn.18005def0
jmp 0x180067c93
xor ecx, ecx
call fcn.18005def0
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 0x180067cbc
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 0x180067d43
mov rsi, rbx
cmp word [rax], bp
je 0x180067d02
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x180067cec
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x180067ce8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.180061b68
mov rdi, rax
test rax, rax
je 0x180067d30
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1800466b0
mov rbp, rdi
xor ecx, ecx
call fcn.18005def0
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