joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140020570
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 r14
sub rsp, 0x60
mov rax, qword [0x140070010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rdx
mov rbp, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x20], rcx
call fcn.1400282ac
test eax, eax
jne 0x140020782
mov r8, qword [rbp + 0x1d8]
test r8, r8
je 0x14002069a
lea r14, [rbp + 0xf0]
add r8, 8
mov r9, qword [r8 + 0x10]
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x1400205da
mov rdx, qword [r8]
movabs rdi, 0xcbf29ce484222325
xor ecx, ecx
test r9, r9
je 0x140020613
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
xor rdi, rax
imul rdi, r10
inc rcx
cmp rcx, r9
jb 0x140020600
mov r9, rdi
lea rdx, [rsp + 0x28]
mov rcx, r14
call fcn.14000c880
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x14002069a
mov rcx, qword [r14 + 0x30]
and rcx, rdi
shl rcx, 4
mov rdx, qword [r14 + 0x18]
add rdx, rcx
mov rax, qword [rdx]
cmp qword [rdx + 8], rbx
jne 0x140020663
cmp rax, rbx
jne 0x140020659
mov rax, qword [r14 + 8]
mov qword [rdx], rax
mov qword [rdx + 8], rax
jmp 0x14002066e
mov rax, qword [rbx + 8]
mov qword [rdx + 8], rax
jmp 0x14002066e
cmp rax, rbx
jne 0x14002066e
mov rax, qword [rbx]
mov qword [rdx], rax
mov rdx, qword [rbx]
dec qword [r14 + 0x10]
mov rax, qword [rbx + 8]
mov qword [rax], rdx
mov rax, qword [rbx + 8]
mov qword [rdx + 8], rax
lea rcx, [rbx + 0x10]
call fcn.140013ae0
mov edx, 0x40
mov rcx, rbx
call fcn.140026914
mov r8, qword [rsi]
test r8, r8
je 0x1400206c6
lea rcx, [rbp + 0xf0]
add r8, 8
lea rdx, [rsp + 0x38]
call fcn.1400232d0
mov rcx, qword [rax]
add rcx, 0x30
mov rdx, rsi
call fcn.1400081d0
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
mov qword [rsi], 0
mov qword [rsi + 8], 0
mov qword [rbp + 0x1d8], rax
mov rbx, qword [rbp + 0x1e0]
mov qword [rbp + 0x1e0], rcx
mov edi, 0xffffffff
test rbx, rbx
je 0x140020725
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140020725
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140020725
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x20]
call fcn.1400282d0
nop
mov rbx, qword [rsi + 8]
test rbx, rbx
je 0x140020760
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140020760
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140020760
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140026300
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov ecx, eax
call fcn.1400278ac
int3
Function at 0x140020790
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140070010]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x60], rdx
mov rdx, qword [rdx]
add rdx, 8
lea rcx, [rsp + 0x68]
call fcn.1400085a0
nop
lea rdx, [rsp + 0x68]
cmp qword [rsp + 0x80], 0x10
cmovae rdx, qword [rsp + 0x68]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
mov r8, qword [rsp + 0x78]
test r8, r8
je 0x140020823
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r10
inc rcx
cmp rcx, r8
jb 0x140020810
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x20]
lea rcx, [rsi + 0xf0]
call fcn.14000c880
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x140020849
mov rcx, qword [rsi + 0xf8]
lea r8, [rsp + 0x68]
cmp rcx, qword [rsi + 0xf8]
jne 0x140020932
lea rdx, [rsp + 0x40]
lea rcx, [rsi + 0xf0]
call fcn.1400232d0
mov rcx, qword [rax]
add rcx, 0x30
mov rdx, rdi
call fcn.140008150
nop
mov rdx, qword [rsp + 0x80]
cmp rdx, 0x10
jb 0x1400208b8
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400208b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002092c
call fcn.140026914
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0xf
mov byte [rsp + 0x68], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140020907
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140020907
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140020907
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140026300
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1400342c0
nop
lea rcx, [rsp + 0x20]
call fcn.140023010
nop
lea r8, str._already_exists
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140023270
mov rcx, rax
call fcn.14001fdd0
int3
Function at 0x1400242a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x140070010]
xor rax, rsp
mov qword [rbp + 8], rax
mov r15, rcx
add rcx, 0xa0
call fcn.140020e80
mov rbx, qword [r15 + 0x90]
test rbx, rbx
je 0x140024440
xor r12d, r12d
nop
lea rdi, [rbx - 1]
mov r8, rdi
lea rdx, [r15 + 0x68]
lea rcx, [rbp - 0x18]
call fcn.140025540
nop
lea rcx, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400243fd
mov r8, rbx
lea rdx, [r15 + 0x68]
lea rcx, [rbp - 0x38]
call fcn.140025540
nop
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rcx, qword [rbp - 0x38]
call fcn.140034aa0
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rdx, qword [rbp - 0x38]
lea rcx, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae rcx, qword [rbp - 0x18]
call fcn.140034e68
test eax, eax
je 0x1400243b2
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rcx, qword [rbp - 0x38]
call fcn.140034aa0
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rdx, qword [rbp - 0x38]
lea rcx, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae rcx, qword [rbp - 0x18]
call fcn.140034e68
test eax, eax
jne 0x1400244a7
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x1400243ed
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400243e8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024525
call fcn.140026914
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], 0xf
mov byte [rbp - 0x38], 0
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x140024434
inc rdx
mov rcx, qword [rbp - 0x18]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14002442f
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024488
call fcn.140026914
mov rbx, rdi
test rdi, rdi
jne 0x1400242f0
cmp qword [r15 + 0xc0], 0
je 0x14002448e
lea rdx, [r15 + 0xb0]
mov r8b, 1
lea rcx, [r15 + 0xa0]
call fcn.140020a70
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.140026300
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1400342c0
int3
lea rdx, str.Failed_re_opening_file___was_not_opened_before
lea rcx, [rbp - 0x18]
call fcn.140008560
mov rcx, rax
call fcn.14001fdd0
nop
lea rcx, [r15 + 0xa0]
call fcn.140020e40
mov qword [r15 + 0x98], r12
call fcn.140033d88
mov edi, dword [rax]
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x28]
call fcn.14001fe10
mov rbx, rax
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x48]
call fcn.14001fe10
nop
mov r8, rax
lea rdx, str.rotating_file_sink:_failed_renaming
lea rcx, [rsp + 0x68]
call fcn.140023150
nop
lea r8, str._to
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.140023270
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.1400257b0
nop
mov edx, edi
mov rcx, rax
call fcn.140005000
nop
call fcn.1400342c0
int3
Function at 0x140026160
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
call fcn.1400078c0
xor r14d, r14d
mov qword [rbp - 0x48], 0x19
lea rcx, str.DisconnectAndReconnect...
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x50], rcx
lea r9, [rbp - 0x50]
movaps xmm0, xmmword [rbp - 0x50]
lea rdx, [rbp - 0x20]
mov rcx, qword [rax + 0x1d8]
lea r8d, [r14 + 2]
movdqa xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], r14
movups xmm1, xmmword [rbp - 0x40]
mov qword [rbp - 0x30], r14
movsd xmm0, qword [rbp - 0x30]
movsd qword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm1
call fcn.140005330
mov rcx, qword [0x140075c10]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
lea edi, [r14 + 1]
test eax, eax
jne 0x14002624f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x20], eax
lea rax, str.DisconnectNamedPipe_failed_with_._n
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 0x24
call fcn.1400078c0
movaps xmm0, xmmword [rbp - 0x50]
lea rcx, [rbp + 0x20]
movdqa xmmword [rbp - 0x50], xmm0
lea r9, [rbp - 0x50]
mov qword [rsp + 0x20], rcx
lea rdx, [rbp - 0x20]
mov rcx, qword [rax + 0x1d8]
mov r8d, edi
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x40], r14
movups xmm1, xmmword [rbp - 0x40]
mov qword [rbp - 0x30], r14
movsd xmm0, qword [rbp - 0x30]
movsd qword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm1
call fcn.1400177d0
mov rbx, qword [0x140075c10]
call fcn.1400078c0
lea r8, str.ConnectToNewClient...
mov edx, 2
mov rcx, qword [rax + 0x1d8]
call fcn.140023940
lea rdx, [0x140075bf0]
mov rcx, rbx
mov esi, r14d
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1400262d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x1400262b2
cmp eax, 0x3e5
jne 0x1400262d1
mov esi, edi
mov dword [0x140075c20], r14d
mov dword [0x140075c24], esi
mov edi, r14d
jmp 0x1400262d8
mov rcx, qword [0x140075c08]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x1400262d1
mov dword [0x140075c24], esi
mov dword [0x140075c20], edi
jmp 0x1400262d8
mov qword [0x140075c20], rdi
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140034cbc
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140034cf3
call fcn.140033d88
mov dword [rax], 0x16
call fcn.1400342a0
xor eax, eax
jmp 0x140034d81
mov rdx, r9
mov rcx, r8
call fcn.140034c58
mov rbx, rax
test rax, rax
je 0x140034d7e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140034b84]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140034d6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140033cfc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140034d52
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140034d61
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14003ded4
jmp 0x140034d7e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140034d7b
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140034e68
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov r14, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.14002e898
mov rax, qword [rbp - 0x58]
mov edi, 0xfde9
cmp dword [rax + 0xc], edi
jne 0x140034eb3
xor ebx, ebx
cmp byte [rbp - 0x48], bl
je 0x140034ee7
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140034ee7
call fcn.14003e968
xor ebx, ebx
test eax, eax
jne 0x140034ed5
cmp byte [rbp - 0x48], bl
je 0x140034ece
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, 1
jmp 0x140034ee7
cmp byte [rbp - 0x48], bl
je 0x140034ee5
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, ebx
mov r9d, edi
mov qword [rbp - 0x30], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x28], rbx
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x20], rbx
mov rcx, rsi
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rbx
mov byte [rbp - 8], bl
call fcn.14002e600
mov esi, eax
test eax, eax
je 0x140034f23
call fcn.140033d88
or edi, 0xffffffff
mov dword [rax], esi
jmp 0x140034f7c
mov r9d, edi
mov qword [rbp - 0x60], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x58], rbx
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x50], rbx
mov rcx, r14
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
mov byte [rbp - 0x38], bl
call fcn.14002e600
mov edi, eax
test eax, eax
je 0x140034f5f
call fcn.140033d88
mov dword [rax], edi
or edi, 0xffffffff
jmp 0x140034f6e
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x20]
call fcn.1400430b0
mov edi, eax
cmp byte [rbp - 0x38], bl
je 0x140034f7c
mov rcx, qword [rbp - 0x50]
call fcn.14003ded4
cmp byte [rbp - 8], bl
je 0x140034f8a
mov rcx, qword [rbp - 0x20]
call fcn.14003ded4
lea r11, [rsp + 0x80]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400353e0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x1400353ff
call fcn.140043320
jmp 0x1400354b4
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.14002e898
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x14003544a
cmp byte [rbp - 0x38], 0
je 0x14003547f
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14003547f
call fcn.14003e968
test eax, eax
jne 0x14003546b
cmp byte [rbp - 0x38], al
je 0x140035463
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14003547f
cmp byte [rbp - 0x38], 0
je 0x14003547c
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.14002e600
test eax, eax
je 0x140035498
or ebx, 0xffffffff
jmp 0x1400354a3
mov rcx, qword [rbp - 0x20]
call fcn.140043320
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x1400354b2
mov rcx, qword [rbp - 0x20]
call fcn.14003ded4
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret
Function at 0x140042cb8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140042cd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140033cfc
or eax, 0xffffffff
jmp 0x140042cda
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400431d8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400431ee
mov al, 1
jmp 0x14004324e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400431ff
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14004324c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400437f8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004324c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14004324c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14004324c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14004324e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140044ce0
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 0x140044d67
mov rsi, rbx
cmp word [rax], bp
je 0x140044d26
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140044d10
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140044d0c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003df10
mov rdi, rax
test rax, rax
je 0x140044d54
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140029fc0
mov rbp, rdi
xor ecx, ecx
call fcn.14003ded4
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
Function at 0x140047e68
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14003e2e8
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140047f09
cmp ebx, dword [rsp + 0x30]
je 0x140047f02
test esi, esi
je 0x140047f02
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140047edd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140047eea
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140047ec7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140047eee
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140047f0b
mov eax, 1
jmp 0x140047f0b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004b96c
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, [0x140075350]
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 0x14004b9c3
cmp word [rdx], r13w
jne 0x14004b9c3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14004b9c8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14004baed
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14004bb0e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14004ba01
mov rdx, r9
mov word [rbx], cx
jmp 0x14004ba28
cmp r9, r8
jae 0x14004ba38
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 0x14004b9e2
jmp 0x14004baed
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 0x14004bae2
cmp dword [rsp + 0x80], esi
je 0x14004bae2
lea r8, [0x140075350]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14004baba
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14004ba8a
mov word [rbx], r13w
jmp 0x14004baea
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14004ba97
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14004baea
cmp word [rsp + 0x70], r13w
jne 0x14004bac7
cmp rbx, r14
je 0x14004ba84
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140043ad8
cmp word [rsp + 0x70], r13w
je 0x14004baed
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140075350]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14004bae7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14004baed
Function at 0x14004ea4c
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140043ad8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140043ad8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14004eb9c
cmp rax, 0xffffffffffffffff
je 0x14004eb9c
xor edi, edi
test rbp, rbp
jle 0x14004eb47
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14003de5c
mov rbx, rax
test rax, rax
jne 0x14004ead4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14004eb3d
mov edx, 0x8000
mov ecx, r14d
call fcn.140036948
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400425ac
cmp eax, 0xffffffff
je 0x14004eb1d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14004eae4
mov edx, r15d
mov ecx, r14d
call fcn.140036948
jmp 0x14004eb3d
cmp byte [rsi + 0x38], dil
je 0x14004eb34
cmp dword [rsi + 0x34], 5
jne 0x14004eb34
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14004eb3d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14003ded4
jmp 0x14004ebb0
jns 0x14004ebb0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140043ad8
cmp rax, 0xffffffffffffffff
jne 0x14004eb68
cmp byte [rsi + 0x30], dil
je 0x14004ebb0
mov edi, dword [rsi + 0x2c]
jmp 0x14004ebb0
mov ecx, r14d
call fcn.1400437f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14004ebb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14004ebb0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14004eba9
mov eax, dword [rsi + 0x2c]
jmp 0x14004ebae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140043ad8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret