joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180039440
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbx, rcx
mov qword [rsp + 0x30], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov qword [rcx], rbp
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], bpl
mov dword [rsp + 0x20], 1
lea r15d, [rbp - 6]
mov rcx, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x18003949d
mov rcx, qword [rdx]
mov r8, rcx
mov r14, rcx
jmp 0x1800394a3
mov r14, rdx
mov r8, rdx
mov rax, qword [rdx + 0x10]
add rax, r8
mov qword [rsp + 0x28], rax
cmp rcx, rax
je 0x1800395bf
lea r13, [0x1800d9c90]
nop
shl ebp, 8
movzx eax, byte [r14]
add ebp, eax
add r15d, 8
js 0x180039552
movsxd r12, ebp
movsxd rdi, r15d
lea ecx, [r15 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov esi, edx
imul eax, edx, 0xfffffffa
add r15d, eax
nop
mov rdx, r13
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rdx, qword [0x1800d9c90]
mov rax, r12
mov rcx, rdi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + rdx]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x180039540
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x180039535
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x180039548
mov rcx, rbx
call fcn.18000b310
sub rdi, 6
sub rsi, 1
jne 0x1800394f0
inc r14
cmp r14, qword [rsp + 0x28]
jne 0x1800394c0
cmp r15d, 0xfffffffa
jle 0x1800395bf
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae r13, qword [0x1800d9c90]
lea ecx, [r15 + 8]
shl ebp, 8
movsxd rdx, ebp
sar rdx, cl
and edx, 0x3f
movzx r9d, byte [rdx + r13]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1800395b7
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1800395ac
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1800395bf
mov rcx, rbx
call fcn.18000b310
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x180039609
nop dword [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1800395f5
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1800395ed
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x180039600
mov r9b, 0x3d
mov rcx, rbx
call fcn.18000b310
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x1800395d0
mov rax, rbx
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180048280
Capabilities:
Encode data using xor
Hash data using fnv

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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r13, rcx
mov qword [rsp + 0x20], rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov ebx, 1
mov eax, ebx
shl rax, cl
cmp rdx, rax
ja 0x180052583
lea rax, [rdx - 1]
or rax, rbx
bsr rcx, rax
inc ecx
shl rbx, cl
mov rbp, qword [r13 + 8]
lea r12, [r13 + 0x18]
lea rdx, [rbx + rbx]
mov r8, rbp
mov rcx, r12
call fcn.180043930
lea rax, [rbx - 1]
mov qword [r13 + 0x30], rax
mov qword [r13 + 0x38], rbx
mov qword [rsp + 0x28], r13
mov rdi, qword [r13 + 8]
mov rdi, qword [rdi]
mov rsi, rdi
cmp rdi, rbp
je 0x180052562
movabs rax, 0xcbf29ce484222325
movabs r10, 0x100000001b3
nop dword [rax]
mov rsi, qword [rsi]
mov r15, qword [rdi + 0x20]
lea r8, [rdi + 0x10]
mov r9, qword [rdi + 0x28]
cmp r9, 0x10
jb 0x1800523f9
mov r8, qword [rdi + 0x10]
mov rdx, rax
xor ecx, ecx
test r15, r15
je 0x180052424
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + r8]
xor rdx, rax
imul rdx, r10
inc rcx
cmp rcx, r15
jb 0x180052410
mov r13, qword [r13 + 0x30]
and r13, rdx
shl r13, 4
add r13, qword [r12]
mov r12, qword [r13]
cmp r12, rbp
jne 0x180052449
mov qword [r13], rdi
mov qword [r13 + 8], rdi
jmp 0x180052543
mov rbx, qword [r13 + 8]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x18005245f
mov rdx, qword [rdx]
lea rcx, [rdi + 0x10]
cmp r9, 0x10
jb 0x18005246d
mov rcx, qword [rdi + 0x10]
cmp r15, rax
jne 0x1800524b4
mov r8, r15
call fcn.180070340
test eax, eax
jne 0x1800524b0
mov rax, qword [rbx]
cmp rax, rdi
je 0x1800524a7
mov r8, qword [rdi + 8]
mov qword [r8], rsi
mov rdx, qword [rsi + 8]
mov qword [rdx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdi
mov qword [rax + 8], rdx
mov qword [rsi + 8], r8
mov qword [rdi + 8], rcx
mov qword [r13 + 8], rdi
jmp 0x180052539
mov r9, qword [rdi + 0x28]
cmp r12, rbx
je 0x180052514
mov rbx, qword [rbx + 8]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x1800524cf
mov rdx, qword [rdx]
lea rcx, [rdi + 0x10]
cmp r9, 0x10
jb 0x1800524dd
mov rcx, qword [rdi + 0x10]
cmp r15, rax
jne 0x1800524b4
mov r8, r15
call fcn.180070340
test eax, eax
jne 0x1800524b0
mov rax, qword [rbx]
mov r8, qword [rdi + 8]
mov qword [r8], rsi
mov rdx, qword [rsi + 8]
mov qword [rdx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdi
mov qword [rax + 8], rdx
mov qword [rsi + 8], r8
mov qword [rdi + 8], rcx
jmp 0x180052539
mov rdx, qword [rdi + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], rbx
mov rax, qword [rbx + 8]
mov qword [rax], rdi
mov qword [rbx + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rdi + 8], rax
mov qword [r13], rdi
movabs r10, 0x100000001b3
mov rdi, rsi
cmp rsi, rbp
mov r13, qword [rsp + 0x20]
lea r12, [r13 + 0x18]
movabs rax, 0xcbf29ce484222325
jne 0x1800523e0
mov qword [rsp + 0x28], 0
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.invalid_hash_bucket_count
call fcn.18006ada4
int3
Function at 0x180061c20
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x13f0
call fcn.18006e3d0
sub rsp, rax
mov rax, qword [0x1800d9060]
xor rax, rsp
mov qword [rsp + 0x13e0], rax
mov esi, edx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x30], r12b
lea r8d, [r12 + 0x3e]
lea rdx, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
lea rcx, [rsp + 0x30]
call fcn.18000dc10
nop
mov qword [rdi], r12
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], r12b
mov ebx, 1
mov dword [rsp + 0x20], ebx
call fcn.18006cb6c
mov ecx, eax
mov dword [rsp + 0x13d4], 0xffffffff
mov dword [rsp + 0x54], eax
nop dword [rax]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, ebx
mov dword [rsp + rbx*4 + 0x54], ecx
inc rbx
cmp rbx, 0x270
jb 0x180061cd0
mov dword [rsp + 0x50], 0x270
mov ebx, dword [rsp + 0x40]
dec ebx
mov r15, qword [rsp + 0x48]
mov r14, qword [rsp + 0x30]
test esi, esi
jle 0x180061dbe
mov rbp, rsi
cmp ebx, 0xffffffff
jne 0x180061d25
lea rcx, [rsp + 0x50]
call fcn.180063370
mov edx, eax
jmp 0x180061d6b
lea esi, [rbx + 1]
nop dword [rax + rax]
mov ecx, r12d
mov eax, r12d
test ebx, ebx
je 0x180061d4b
lea rcx, [rsp + 0x50]
call fcn.180063370
mov ecx, eax
mov eax, 0xffffffff
xor edx, edx
div esi
mov r9d, edx
mov r8d, eax
xor edx, edx
mov eax, ecx
div esi
cmp eax, r8d
jb 0x180061d65
cmp r9d, ebx
jne 0x180061d30
xor edx, edx
mov eax, ecx
div esi
lea rcx, [rsp + 0x30]
cmp r15, 0x10
cmovae rcx, r14
movsxd rax, edx
movzx r9d, byte [rax + rcx]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x180061dac
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x180061da1
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x180061db4
mov rcx, rdi
call fcn.18000b310
sub rbp, 1
jne 0x180061d12
cmp r15, 0x10
jb 0x180061df1
lea rdx, [r15 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x180061de9
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180061e33
mov rcx, r14
call fcn.18006d82c
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x30], 0
mov rax, rdi
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.18006d7e0
lea r11, [rsp + 0x13f0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call fcn.1800742a4
int3
Function at 0x180063370
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x1800633d1
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x180063390
mov ecx, dword [r10]
jmp 0x1800634ba
cmp ecx, 0x4e0
jb 0x1800634ba
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1800633f0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x180063440
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x180079a00
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 0x180079a37
call fcn.180078794
mov dword [rax], 0x16
call fcn.180074284
xor eax, eax
jmp 0x180079ac5
mov rdx, r9
mov rcx, r8
call fcn.18007999c
mov rbx, rax
test rax, rax
je 0x180079ac2
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1800798c8]
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 0x180079aaf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180078708
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x180079a96
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x180079aa5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.180089628
jmp 0x180079ac2
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x180079abf
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 0x180089b60
Capabilities:
Get file size

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

Function at 0x18008abdc
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18008abfc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180078708
or eax, 0xffffffff
jmp 0x18008abfe
xor eax, eax
add rsp, 0x28
ret
Function at 0x18008d408
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.18006e3d0
sub rsp, rax
mov rax, qword [0x1800d9060]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180089664
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18008d457
mov rax, rbp
jmp 0x18008d55f
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 + 0xdc780]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18008d044
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xdc780]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18008d55b
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 0x18008d55b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18008d044
test rax, rax
js 0x18008d55b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18008d55b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18008d54d
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18008d54d
cmp byte [rcx], 0xd
jne 0x18008d533
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18008d542
cmp byte [rcx + 1], 0xa
jne 0x18008d542
inc rcx
jmp 0x18008d542
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xd9440]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18008d515
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18008d55f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18006d7e0
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 0x18008d688
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, [0x1800dc780]
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 0x18008d6df
cmp word [rdx], r13w
jne 0x18008d6df
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18008d6e4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18008d809
mov r11d, ntohs
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18008d82a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18008d71d
mov rdx, r9
mov word [rbx], cx
jmp 0x18008d744
cmp r9, r8
jae 0x18008d754
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 0x18008d6fe
jmp 0x18008d809
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 0x18008d7fe
cmp dword [rsp + 0x80], esi
je 0x18008d7fe
lea r8, [0x1800dc780]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18008d7d6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18008d7a6
mov word [rbx], r13w
jmp 0x18008d806
mov ecx, ntohs
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 0x18008d7b3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18008d806
cmp word [rsp + 0x70], r13w
jne 0x18008d7e3
cmp rbx, r14
je 0x18008d7a0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18008d04c
cmp word [rsp + 0x70], r13w
je 0x18008d809
mov ecx, ntohs
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, [0x1800dc780]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18008d803
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18008d809
Function at 0x180093858
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 0x180093888
xor eax, eax
jmp 0x18009394b
mov rbp, rbx
cmp word [rax], si
je 0x1800938ad
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180093894
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180093890
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.180090450
movsxd r14, eax
test eax, eax
jne 0x1800938eb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180093881
mov rcx, r14
call fcn.180089d14
mov rdi, rax
test rax, rax
jne 0x180093904
xor ecx, ecx
call fcn.180089628
jmp 0x1800938e0
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.180090450
test eax, eax
jne 0x180093935
mov rcx, rdi
call fcn.180089628
jmp 0x18009393f
xor ecx, ecx
call fcn.180089628
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 0x180093968
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 0x1800939ef
mov rsi, rbx
cmp word [rax], bp
je 0x1800939ae
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x180093998
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x180093994
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.180089d14
mov rdi, rax
test rax, rax
je 0x1800939dc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.18006f8c0
mov rbp, rdi
xor ecx, ecx
call fcn.180089628
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 0x180096694
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.180087a48
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 0x180096735
cmp ebx, dword [rsp + 0x30]
je 0x18009672e
test esi, esi
je 0x18009672e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180096709
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180096716
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800966f3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18009671a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180096737
mov eax, 1
jmp 0x180096737
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18009bc74
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.18008d04c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18008d04c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18009bdc4
cmp rax, 0xffffffffffffffff
je 0x18009bdc4
xor edi, edi
test rbp, rbp
jle 0x18009bd6f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18008cd20
mov rbx, rax
test rax, rax
jne 0x18009bcfc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18009bd65
mov edx, 0x8000
mov ecx, r14d
call fcn.18009baf8
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.18008ca18
cmp eax, 0xffffffff
je 0x18009bd45
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18009bd0c
mov edx, r15d
mov ecx, r14d
call fcn.18009baf8
jmp 0x18009bd65
cmp byte [rsi + 0x38], dil
je 0x18009bd5c
cmp dword [rsi + 0x34], 5
jne 0x18009bd5c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], ntohs
cmp byte [rsi + 0x30], dil
je 0x18009bd65
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180089628
jmp 0x18009bdd8
jns 0x18009bdd8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18008d04c
cmp rax, 0xffffffffffffffff
jne 0x18009bd90
cmp byte [rsi + 0x30], dil
je 0x18009bdd8
mov edi, dword [rsi + 0x2c]
jmp 0x18009bdd8
mov ecx, r14d
call fcn.180096ef4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18009bdd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, ntohs
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], ntohs
jmp 0x18009bdd8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18009bdd1
mov eax, dword [rsi + 0x2c]
jmp 0x18009bdd6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18008d04c
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