joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004920
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0x1571
mov dword [rcx + 0x1384], 0xffffffff
mov dword [rcx + 4], eax
lea r9, [rcx + 8]
mov r8d, 1
nop dword [rax]
mov edx, eax
lea r9, [r9 + 4]
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, r8d
inc r8
mov dword [r9 - 4], eax
cmp r8, 0x270
jb 0x140004940
mov dword [rcx], 0x270
mov rax, rcx
ret

Function at 0x140006550
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x1400065b1
lea r8, [r9 + 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 r10, 1
jne 0x140006570
mov ecx, dword [r9]
jmp 0x14000669b
cmp ecx, 0x4e0
jb 0x14000669b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1400065d0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140006620
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 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 0x140008530
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push r12
push r13
push r15
sub rsp, 0x50
mov rbx, qword [rcx]
xor r10d, r10d
movzx ebp, r8b
mov r15, rcx
mov r8d, r10d
mov rdx, qword [rbx]
movsxd rax, dword [rdx + 0x3c]
movzx r9d, word [rax + rdx + 0x14]
add r9, 0x2c
add r9, rax
cmp r10w, word [rax + rdx + 6]
jae 0x140008590
add rdx, r9
nop dword [rax]
mov eax, dword [rdx - 8]
inc r8d
mov dword [rdx], eax
lea rdx, [rdx + 0x28]
mov rbx, qword [r15]
mov rcx, qword [rbx]
movsxd rax, dword [rcx + 0x3c]
movzx ecx, word [rax + rcx + 6]
cmp r8d, ecx
jl 0x140008570
xorps xmm0, xmm0
mov qword [rsp + 0x38], r10
mov r8d, 5
mov qword [rsp + 0x40], r10
lea rdx, str..text
lea rcx, [rsp + 0x28]
movups xmmword [rsp + 0x28], xmm0
call fcn.140009bd0
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.1400116f0
mov rcx, qword [r15]
mov r13, rax
mov rbx, qword [r15 + 0x250]
mov r12, qword [rcx]
cmp rbx, qword [r15 + 0x258]
je 0x1400086d1
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x98], r14
nop dword [rax + rax]
cmp byte [rbx + 0x5d], 0
jne 0x1400086a8
mov ecx, dword [rbx + 0x50]
mov dword [rsp + 0x20], 0xe9
mov byte [rsp + 0x24], 0
cmp ecx, 0xffffffff
je 0x1400086a8
mov r8d, dword [r13 + 0xc]
mov rax, qword [r15]
add r8d, ecx
mov rcx, qword [rbx + 0x28]
mov edx, dword [rcx + 0x30]
sub edx, dword [rax]
sub edx, r8d
sub edx, 5
mov dword [rsp + 0x21], edx
xor edx, edx
cmp dword [rbx + 0x54], 5
mov esi, edx
je 0x140008694
lea r14, [r8 + r12]
lea rdi, [r14 + 5]
test bpl, bpl
je 0x14000865b
mov ecx, edx
jmp 0x140008681
call fcn.14005ccbc
mov ecx, eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0xff
sub ecx, eax
inc ecx
xor edx, edx
mov byte [rdi], cl
inc esi
mov eax, dword [rbx + 0x54]
inc rdi
sub eax, 5
cmp esi, eax
jb 0x140008652
jmp 0x140008698
lea r14, [r12 + r8]
mov eax, dword [rsp + 0x20]
mov dword [r14], eax
movzx eax, byte [rsp + 0x24]
mov byte [r14 + 4], al
add rbx, 0x60
cmp rbx, qword [r15 + 0x258]
jne 0x140008600
mov r14, qword [rsp + 0x98]
mov rdi, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r13
pop r12
pop rbp
pop rbx
ret
Function at 0x14000a970
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x14000ab1e
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x1400a7568]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x1400a7578]
lea rdx, [rdi + rdi]
call fcn.140009850
mov rax, qword [0x1400a7568]
lea r9, [rdi - 1]
mov qword [0x1400a7590], r9
mov qword [0x1400a7598], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x14000ab13
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
nop word [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x1400a7578]
mov r9, qword [r11]
cmp r9, rbx
jne 0x14000aa5f
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x14000aad4
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x14000aa9c
mov r10, qword [rdx]
cmp r10, rax
je 0x14000aa96
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x14000aad4
cmp r9, rdx
je 0x14000aab0
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x14000aae8
cmp r9, rdx
jne 0x14000aaa1
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x14000ab0e
mov r9, qword [0x1400a7590]
jmp 0x14000aa10
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14000aad4
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, str.invalid_hash_bucket_count
call fcn.14005523c
int3
Function at 0x1400128e0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140012904
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x140012992
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140012960
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x140012960
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.140080250
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14001297d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140012985
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x140012921
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x140012a70
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x1400129a9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400129ab
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400129dd
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.140080250
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140012a6d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140012a18
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 rsi, 0xfff
jbe 0x140012a4e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.140061880
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x140012a6d
cmp rsi, rax
ja 0x140012a21
test rsi, rsi
je 0x140012a6d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140061880
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret

Function at 0x140018f70
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x140018fcd
lea rbx, [0x140090730]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140018fb4
cmp r10, 2
jb 0x140018fb4
cmp byte [r9], r8b
jne 0x140018fb4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140018f90
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14001900f
lea rbx, [0x140090730]
cmp r8b, 0x23
jne 0x140018ff3
cmp byte [r9], r8b
jne 0x140018ff3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140018fe0
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x140019150
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14001916a
mov qword [r8], 0
lea rdx, [0x140096148]
call fcn.140019020
mov rbx, rax
test rax, rax
jne 0x14001918a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call fcn.140062314
mov esi, eax
cmp eax, 0xffffffff
je 0x14001925a
xor edx, edx
mov r8d, 2
mov rcx, rbx
call fcn.140061c50
test eax, eax
jne 0x14001925a
mov rcx, rbx
call fcn.140062314
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14001925a
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.140061c50
test eax, eax
jne 0x14001925a
cmp rdi, 0xffffffffffffffff
je 0x14001925a
mov rax, qword [0x1400a7550]
test rax, rax
je 0x1400191fc
inc dword [rax + 0xf4]
mov rcx, rdi
call fcn.1400680c0
mov rsi, rax
test rax, rax
je 0x14001925a
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.140061880
mov rcx, rbx
cmp rax, rdi
je 0x140019248
call fcn.140060a04
mov rax, qword [0x1400a7550]
test rax, rax
je 0x14001923e
dec dword [rax + 0xf4]
mov rcx, rsi
call fcn.14006145c
jmp 0x140019262
call fcn.140060a04
test r14, r14
je 0x140019255
mov qword [r14], rdi
mov rax, rsi
jmp 0x140019264
mov rcx, rbx
call fcn.140060a04
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14001c410
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0xf0]
lea r8, [0x140090730]
movsxd rcx, dword [rcx + 0xe8]
mov r11d, edx
shr r11d, 0x18
mov r9d, edx
shr r9d, 8
mov r10d, edx
shr r10d, 0x10
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r9b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r10b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, r11
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
mov rcx, qword [0x1400a7550]
not ebx
cmp dword [rcx + 0x3ee8], ebx
jne 0x14001c4a5
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.14002f1e0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140028be0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400a41c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1400a7550]
mov edi, ecx
cmp byte [rbx + 0x4a2d], 0
jne 0x140028c41
cmp byte [rbx + 0x4a2e], 0
jne 0x140028c41
movsx r9d, word [rbx + 0x5b2a]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140018e30
test dil, 1
je 0x140028d68
jmp 0x140028ccc
movss xmm1, dword [rbx + 0x3898]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5b2a]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x140096d7c]
mov edx, 0x10
mulss xmm1, dword [0x140096d70]
addss xmm0, dword [rbx + 0xdfc]
addss xmm1, dword [rbx + 0xe00]
mov qword [rbx + 0x4790], rax
mov dword [rbx + 0x477c], 1
movss dword [rbx + 0x4788], xmm0
movss dword [rbx + 0x478c], xmm1
movss xmm0, dword [rbx + 0x38f4]
mulss xmm0, dword [0x140096d00]
or dword [rbx + 0x4778], 0x41
movss dword [rbx + 0x47d8], xmm0
call fcn.140018e30
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140028d20
lea r11, [0x140090730]
nop dword [rax]
cmp r9b, 0x23
jne 0x140028d03
cmp byte [r8], r9b
jne 0x140028d03
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140028cf0
not ecx
call fcn.140020030
test rax, rax
je 0x140028d68
cmp byte [rax + 0xae], 0
je 0x140028d68
mov byte [rax + 0xb5], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xd0], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x5b2a]
mov edx, 0x10
movsx r9d, word [rbx + 0x5b2a]
call fcn.140018e30
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.140022770
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140056a30
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14002e0a0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1400a7550]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14002e103
mov qword [rsp], rbx
lea rbx, [0x140090730]
nop dword [rax]
cmp r9b, 0x23
jne 0x14002e0e3
cmp byte [r8], r9b
jne 0x14002e0e3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x14002e0d0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5b88]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x14002e137
mov r10, qword [r10 + 0x5b90]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x14002e13e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x14002e124
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x1400520d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x140052107
lea r9, str.filename_null_
xor r8d, r8d
mov edx, 4
call fcn.140053f80
mov eax, dword [rbx + 0x6c]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov qword [rsp + 0x40], rdi
call fcn.140051090
lea r8, [0x140096148]
mov qword [rsp + 0x48], 0
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.140062ad0
test eax, eax
jne 0x140052234
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x140052234
mov rcx, rbx
call fcn.140051090
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.140061bb8
mov rcx, rdi
call fcn.140060ae0
cmp eax, 0xffffffff
jne 0x140052176
mov rcx, rdi
call fcn.140068728
test eax, eax
jne 0x140052206
xor edx, edx
mov r8d, 2
mov rcx, rdi
call fcn.140061bb8
mov rcx, rdi
call fcn.140062270
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov rsi, rax
call fcn.140061bb8
cmp rsi, 0xffffffffffffffff
jae 0x140052206
test rsi, rsi
jne 0x1400521b0
mov edx, 0xd
jmp 0x14005220b
lea rcx, [rsi + 1]
call fcn.140057354
mov r9, rdi
mov qword [rbx + 0x98], rax
mov r8, rsi
mov edx, 1
mov rcx, rax
call fcn.140061880
cmp rax, rsi
jne 0x140052206
mov rax, qword [rbx + 0x98]
mov rcx, rbx
mov byte [rsi + rax], 0
call fcn.1400525f0
mov rcx, rdi
call fcn.140060a04
mov eax, dword [rbx + 0x6c]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov edx, 5
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call fcn.140053f80
mov rcx, rdi
call fcn.140060a04
mov eax, dword [rbx + 0x6c]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
lea r9, str.filename_s
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov edx, 3
mov rcx, rbx
call fcn.140053f80
mov eax, dword [rbx + 0x6c]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rsi
ret

Function at 0x140055538
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 0x140055572
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140055577
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 0x1400555c0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140085160]
cmp byte [rcx + rax], 0
je 0x1400555c0
dec r8
sub rdx, 1
jne 0x1400555a6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140057914
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005795e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005795e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005795e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005795e
cmp dword [rcx + 0x84], 0xe
jbe 0x14005795e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140057960
xor al, al
add rsp, 0x28
ret
Function at 0x140062094
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.140057740
sub rsp, rax
mov rax, qword [0x1400a41c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14006e838
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400620e3
mov rax, rbp
jmp 0x1400621eb
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xa6950]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140071f2c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xa6950]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400621e7
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 0x1400621e7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140071f2c
test rax, rax
js 0x1400621e7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400621e7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400621d9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400621d9
cmp byte [rcx], 0xd
jne 0x1400621bf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400621ce
cmp byte [rcx + 1], 0xa
jne 0x1400621ce
inc rcx
jmp 0x1400621ce
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa45e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400621a1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400621eb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140056a30
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 0x140069c0c
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 0x140069c7b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140069c7b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140069c7b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140069c7b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140069c7b
cmp dword [rcx + 0x84], 0xe
jbe 0x140069c7b
cmp dword [rcx + 0xf8], 0
je 0x140069c7b
mov ecx, ebx
call fcn.140069d2c
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.140069b08
nop
cmp dword [rbp + 0x20], 0
je 0x140069cc9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140069cd4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140069c0c
Function at 0x140069e10
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140069c0c

Function at 0x14006fdc4
Capabilities:
Get file size

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