joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140098530
Capabilities:
Accept command line arguments

Disassembly:
push rdi
push r15
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x50], rax
mov rdi, rax
test rax, rax
jne 0x140098565
or rax, 0xffffffffffffffff
add rsp, 0x78
pop r15
pop rdi
ret
mov eax, dword [rsp + 0x40]
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0x90], rbx
movsxd rcx, eax
mov eax, 8
mul rcx
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x60], r14
cmovo rax, r15
mov rcx, rax
call fcn.140097960
mov r14, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
xor ebx, ebx
test eax, eax
jle 0x140098669
mov qword [rsp + 0x98], rbp
mov qword [rsp + 0x70], r12
mov r12, r14
mov qword [rsp + 0x68], r13
mov r13, rdi
sub r13, r14
mov r14d, ebx
nop dword [rax]
nop word [rax + rax]
mov rbp, qword [r12 + r13]
mov r9d, r15d
mov qword [rsp + 0x38], rbx
mov r8, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.140097960
mov qword [rsp + 0x38], rbx
mov r9d, r15d
mov qword [rsp + 0x30], rbx
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
lea r12, [r12 + 8]
mov eax, dword [rsp + 0x40]
inc r14d
cmp r14d, eax
jl 0x1400985e0
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x98]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x40]
mov rdx, r14
call fcn.14001a350
mov esi, eax
cmp dword [rsp + 0x40], ebx
jle 0x1400986a9
mov rdi, r14
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400986a9
call fcn.140097968
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x40]
jl 0x140098690
mov rcx, r14
call fcn.140097968
mov r14, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x90]
add rsp, 0x78
pop r15
pop rdi
ret
Function at 0x140002eb0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x14009b090]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
mov qword [rsp + 0x58], rcx
xor edi, edi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
test eax, eax
je 0x140002f1d
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
xor r8d, r8d
lea rdx, [0x14008d0cc]
mov rcx, rbx
call fcn.140001d20
jmp 0x140002fda
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], di
jne 0x140002f40
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.140001d20
nop
mov r8d, 8
lea rdx, str.Driver_
lea rcx, [rsp + 0x38]
call fcn.140001ab0
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140002fda
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002fd5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002ffe
call fcn.14004be6c
mov rax, rbx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14004be10
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rdi
ret
call fcn.1400526f4
int3
Function at 0x14000a0b0
Capabilities:
Create thread
Log keystrokes via application hook

Disassembly:
sub rsp, 0x78
mov rax, qword [0x14009b090]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor r9d, r9d
lea rdx, [0x140008c60]
mov r8, rax
lea ecx, [r9 + 0xd]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x14009f418], rax
xor r9d, r9d
xor eax, eax
lea r8, [0x1400093f0]
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x14000a130
lea rdx, str.Failed_to_create_thread
lea rcx, [0x14009d930]
call fcn.140012330
mov rcx, rax
call fcn.1400125f0
nop dword [rax + rax]
xor r9d, r9d
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x14000a130

Function at 0x14000c5a0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14000c5c2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14000c63c
mov rdi, r14
mov rcx, rbx
call fcn.140010430
test rax, rax
jle 0x14000c614
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.14004dd00
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 0x14000c62c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14000c634
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14000c5d6
sub r14, rdi
jmp 0x14000c71f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14000c653
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000c655
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000c687
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14004dd00
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 0x14000c71c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000c6c2
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 0x14000c6fd
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140053048
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14000c71c
cmp rbp, rax
ja 0x14000c6d0
test rbp, rbp
je 0x14000c71c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140053048
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x140019770
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400197a4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140019790
ret
Function at 0x14001eca0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14001ed6c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14001ed6c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14001ed85
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14001ed5c
cmp byte [rax], 0x5c
jne 0x14001ed56
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14001ed56
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14001ed42
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14001ed53
test r8b, 0x10
jne 0x14001ed56
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14001ed56
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.14001b580
test edi, edi
jne 0x14001ecc0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.14001b570
int3
Function at 0x140020d10
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14009b090]
xor rax, rsp
mov qword [rbp + 0x170], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
js 0x140020e7c
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x140020e7c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x60]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140020da0
mov r8, rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.140001d20
nop
mov r8d, socket
lea rdx, str.Driver_screenshot.png
lea rcx, [rsp + 0x38]
call fcn.140001ab0
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call fcn.140021180
mov ebx, eax
test eax, eax
jne 0x140020e00
lea rdx, [0x14008dfa0]
lea rcx, [0x14009d810]
jmp 0x140020e0e
lea rdx, [0x14008dfe0]
lea rcx, [0x14009dac0]
call fcn.1400127f0
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
mov r8, qword [rsp + 0x48]
cmovae rdx, qword [rsp + 0x38]
mov rcx, rax
call fcn.140020ed0
mov rcx, rax
call fcn.140012ac0
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140020e78
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020e73
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140020ebe
call fcn.14004be6c
mov eax, ebx
jmp 0x140020e9e
lea rdx, [0x14008e030]
lea rcx, [0x14009dac0]
call fcn.1400127f0
mov rcx, rax
call fcn.140012ac0
mov rax, 0xffffffffffffffff
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14004be10
mov rbx, qword [rsp + 0x290]
add rsp, 0x280
pop rbp
ret
call fcn.1400526f4
int3
Function at 0x140024e90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x140024e9b
xor eax, eax
ret
lea r11, [0x14008e400]
not ecx
cmp r8, 8
jb 0x140024f6d
mov r10, r8
shr r10, 3
imul rax, r10, 0xfffffffffffffff8
add r8, rax
nop dword [rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x140024ec0
test r8, r8
je 0x140024f9d
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r8, 1
jne 0x140024f80
not ecx
mov eax, ecx
ret
Function at 0x1400252c0
Capabilities:
Hash data with crc32
Write file on windows

Disassembly:
test r8d, r8d
jne 0x1400252c8
xor eax, eax
ret
jmp fcn.1400252d0

Function at 0x1400252d0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [0x14009b090]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp byte [rcx + 0x41], 0
mov rsi, rdx
mov edi, r8d
mov rbx, rcx
je 0x1400253e9
mov rcx, qword [rcx + 0x50]
mov rax, rcx
test rcx, rcx
je 0x14002531b
cmp dword [rbx + 0x58], edi
jae 0x14002531b
call fcn.14004be6c
mov qword [rbx + 0x50], 0
jmp 0x140025320
test rax, rax
jne 0x14002532f
lea ecx, [rdi + rdi]
call fcn.14004c0f0
mov qword [rbx + 0x50], rax
mov dword [rbx + 0x58], edi
mov r8, rdi
mov rdx, rsi
mov rcx, rax
mov rbp, rdi
call fcn.14004dd00
test edi, edi
je 0x1400253e3
mov qword [rsp + 0x40], r15
xor r11d, r11d
lea r15, [0x14008e400]
mov rsi, rdi
nop word [rax + rax]
mov rax, qword [rbx + 0x50]
lea r11, [r11 + 1]
mov edx, dword [rbx + 0x44]
mov ecx, edx
mov r9d, dword [rbx + 0x4c]
mov r8d, r9d
shr edx, 8
movsx r10, byte [r11 + rax - 1]
and r9d, 0xfffd
xor rcx, r10
or r9d, 2
movzx eax, cl
xor edx, dword [r15 + rax*4]
movzx eax, dl
add eax, dword [rbx + 0x48]
imul eax, eax, 0x8088405
mov dword [rbx + 0x44], edx
inc eax
mov ecx, eax
shr rcx, 0x18
mov dword [rbx + 0x48], eax
movzx eax, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [r15 + rcx*4]
mov ecx, r9d
xor ecx, 1
mov dword [rbx + 0x4c], r8d
mov rax, qword [rbx + 0x50]
imul ecx, r9d
shr ecx, 8
xor cl, r10b
mov byte [r11 + rax - 1], cl
sub rsi, 1
jne 0x140025360
mov r15, qword [rsp + 0x40]
mov rsi, qword [rbx + 0x50]
jmp 0x1400253ec
mov rbp, rdi
mov rdx, qword [rbx + 0x30]
test rdx, rdx
je 0x14002541e
mov ecx, dword [rbx + 0x38]
lea eax, [rcx + rdi]
cmp eax, dword [rbx + 0x3c]
jb 0x140025409
mov dword [rbx + 0x24], 0x30000
jmp 0x14002544e
add rcx, rdx
mov r8, rbp
mov rdx, rsi
call fcn.14004dd00
add dword [rbx + 0x38], edi
mov eax, edi
jmp 0x140025450
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140025447
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x30]
jmp 0x140025450
mov dword [rbx + 0x24], 0x1000000
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14004be10
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140025670
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14009b090]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rcx
mov rbp, rdx
mov rcx, qword [rcx + 0xb8]
test rcx, rcx
je 0x1400256f0
mov eax, dword [rdi + 0xc4]
mov esi, dword [rdi + 0xc0]
cmp eax, esi
jae 0x140025740
sub esi, eax
lea rdx, [rcx + rax]
cmp esi, r8d
mov rcx, rbp
cmova esi, r8d
mov r8d, esi
call fcn.14004dd00
mov ecx, dword [rdi + 0xa0]
mov rdx, rbp
add dword [rdi + 0xc4], esi
add dword [rdi + 0x9c], esi
mov r8d, esi
call fcn.140024e90
mov dword [rdi + 0xa0], eax
mov eax, esi
jmp 0x140025742
mov rcx, qword [rdi + 0xa8]
test rcx, rcx
je 0x140025739
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140025740
mov ebx, dword [rsp + 0x30]
mov rdx, rbp
add dword [rdi + 0x9c], ebx
mov r8d, ebx
mov ecx, dword [rdi + 0xa0]
call fcn.140024e90
mov dword [rdi + 0xa0], eax
mov eax, ebx
jmp 0x140025742
mov dword [rdi + 0x24], 0x1000000
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14004be10
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140026d14
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140026d98
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14007dcf0]
cmp byte [rcx + rax], 0
je 0x140026d98
dec r8
sub rdx, 1
jne 0x140026d7e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400443cc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14002ec06
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x14002ebe9
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x14002ebd4

Function at 0x14004ca80
Capabilities:
Parse pe header

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

Function at 0x140052a80
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 0x1400528df
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400528df
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400528df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400528df
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400528df
cmp dword [rcx + 0x84], 0xe
jbe 0x1400528df
cmp dword [rcx + 0xf8], 0
je 0x1400528df
mov ecx, ebx
call fcn.14005299c
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.14005276c
nop
cmp dword [rbp + 0x20], 0
je 0x14005292d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140052938
int3
xor r8d, r8d
xor edx, edx
jmp 0x140052870
Function at 0x140066808
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, [0x14009ed00]
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 0x140066866
cmp word [rdx], r12w
jne 0x140066866
or byte [rax + r8*8 + 0x38], cl
jmp 0x14006686c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400669c7
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400669a2
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400668a5
mov rcx, r9
jmp 0x1400668c8
cmp r9, rdx
jae 0x1400668df
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 0x140066889
jmp 0x1400669c7
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 0x14006699c
cmp dword [rsp + 0x80], edi
je 0x14006699c
mov rdx, r14
lea r11, [0x14009ed00]
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 0x140066975
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140066948
mov word [rbx], r12w
jmp 0x1400669c3
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 0x140066951
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400669c3
cmp word [rsp + 0x70], r12w
jne 0x140066982
cmp rbx, rsi
je 0x140066942
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14006d844
cmp word [rsp + 0x70], r12w
je 0x1400669c7
mov word [rbx], r13w
jmp 0x1400669c3
lea r11, [0x14009ed00]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400669bf
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400669c7
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 0x1400673c4
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 0x1400673f6
call fcn.14005b48c
mov dword [rax], socket
call fcn.1400526d4
jmp 0x140067515
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140067515
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140067515
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140067425
lock or dword [rcx + 0x14], 0x10
jmp 0x140067515
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140067439
call fcn.1400693c8
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400664fc
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140066cb4
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140067503
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400674ce
mov rcx, rsi
call fcn.1400664fc
cmp eax, edi
je 0x1400674b9
mov rcx, rsi
call fcn.1400664fc
cmp eax, 0xfffffffe
je 0x1400674b9
mov rcx, rsi
call fcn.1400664fc
movsxd rbx, eax
lea r14, [0x14009ed00]
mov rcx, rsi
sar rbx, 6
call fcn.1400664fc
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400674c0
lea rdx, [0x14009b550]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400674ce
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400674f2
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400674f2
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400674f2
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 0x140067518
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