joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010020
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x1400100b6
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x1400100bd
mov r15, rsi
jmp 0x14001007b
cmp r15, r14
cmovb r14, r15
mov rcx, rdi
mov r8, r14
call fcn.14006e730
add rdi, r14
sub r15, r14
mov rax, qword [rbx + 0x50]
sub dword [rax], r14d
mov rax, qword [rbx + 0x38]
add qword [rax], r14
test r15, r15
jle 0x1400100ae
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140010093
mov rax, qword [rbx + 0x50]
mov r14d, dword [rax]
test r14d, r14d
jg 0x140010050
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400100ae
mov byte [rdi], al
inc rdi
dec r15
test r15, r15
jg 0x14001007b
sub rsi, r15
jmp 0x1400101aa
xor esi, esi
jmp 0x1400101aa
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140010110
mov rax, qword [rbx + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x140010110
cmp r15, rsi
cmovae r15, rsi
mov rcx, rdi
mov r8, r15
call fcn.14006e730
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x50]
sub dword [rax], r15d
mov rax, qword [rbx + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [rbx + 0x80], 0
jne 0x140010121
jmp 0x1400101a7
mov r14, rsi
cmp qword [rbx + 0x80], 0
je 0x1400101a7
mov rax, qword [rbx + 0x18]
lea rcx, [rbx + 0x70]
cmp qword [rax], rcx
jne 0x140010150
mov ecx, dword [rbx + 0x90]
mov rdx, qword [rbx + 0x88]
mov qword [rax], rdx
mov rax, qword [rbx + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rbx + 0x50]
mov dword [rax], ecx
nop dword [rax]
cmp r14, 0x1000
jb 0x140010183
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call fcn.140051954
add rdi, rax
sub r14, rax
cmp rax, 0xfff
je 0x140010150
jmp 0x1400101a7
test r14, r14
je 0x1400101a4
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, r14
call fcn.140051954
sub r14, rax
jmp 0x1400101a7
xor r14d, r14d
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140038f50
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov ebp, r8d
mov rdi, rdx
mov rsi, rcx
lea rbx, [0x1400c6980]
mov edx, 0x80
mov rcx, rbx
call fcn.140039440
mov eax, ebp
cmp ebp, 0x81
jb 0x140038f93
lea r8, [0x1400c6980]
mov rcx, rdi
mov rdx, rax
call fcn.14003a160
jmp 0x140038fa5
lea rcx, [0x1400c6980]
mov rdx, rdi
mov r8, rax
call fcn.14006e730
lea rdi, [rsi + 0x80]
lea rax, [0x1400c6a00]
cmp rsi, rax
jae 0x140038ff0
cmp rdi, rbx
jbe 0x140038ff0
xor eax, eax
nop
movzx ecx, byte [rax + rbx]
xor cl, 0x5c
mov byte [rsi + rax], cl
xor byte [rax + rbx], 0x36
movzx ecx, byte [rax + rbx + 1]
xor cl, 0x5c
mov byte [rsi + rax + 1], cl
xor byte [rax + rbx + 1], 0x36
add rax, 2
cmp rax, 0x80
jne 0x140038fc0
jmp 0x1400390ef
movaps xmm0, xmmword [0x140089690]
movaps xmm1, xmmword [0x1400c6980]
xorps xmm1, xmm0
movaps xmm2, xmmword [0x1400c6990]
xorps xmm2, xmm0
movups xmmword [rsi], xmm1
movups xmmword [rsi + 0x10], xmm2
movaps xmm1, xmmword [0x1400896a0]
movaps xmm2, xmmword [0x1400c6980]
xorps xmm2, xmm1
movaps xmm3, xmmword [0x1400c6990]
xorps xmm3, xmm1
movaps xmmword [0x1400c6980], xmm2
movaps xmmword [0x1400c6990], xmm3
movaps xmm2, xmmword [0x1400c69a0]
xorps xmm2, xmm0
movaps xmm3, xmmword [0x1400c69b0]
xorps xmm3, xmm0
movups xmmword [rsi + 0x20], xmm2
movups xmmword [rsi + 0x30], xmm3
movaps xmm2, xmmword [0x1400c69a0]
xorps xmm2, xmm1
movaps xmm3, xmmword [0x1400c69b0]
xorps xmm3, xmm1
movaps xmmword [0x1400c69a0], xmm2
movaps xmmword [0x1400c69b0], xmm3
movaps xmm2, xmmword [0x1400c69c0]
xorps xmm2, xmm0
movaps xmm3, xmmword [0x1400c69d0]
xorps xmm3, xmm0
movups xmmword [rsi + 0x40], xmm2
movups xmmword [rsi + 0x50], xmm3
movaps xmm2, xmmword [0x1400c69c0]
xorps xmm2, xmm1
movaps xmm3, xmmword [0x1400c69d0]
xorps xmm3, xmm1
movaps xmmword [0x1400c69c0], xmm2
movaps xmmword [0x1400c69d0], xmm3
movaps xmm2, xmmword [0x1400c69e0]
xorps xmm2, xmm0
xorps xmm0, xmmword [0x1400c69f0]
movups xmmword [rsi + 0x60], xmm2
movups xmmword [rsi + 0x70], xmm0
movaps xmm0, xmmword [0x1400c69e0]
xorps xmm0, xmm1
xorps xmm1, xmmword [0x1400c69f0]
movaps xmmword [0x1400c69e0], xmm0
movaps xmmword [0x1400c69f0], xmm1
mov rcx, rdi
call fcn.140039820
lea rsi, [0x1400c6980]
mov r8d, 0x80
mov rcx, rdi
mov rdx, rsi
call fcn.140039b40
mov edx, 0x80
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.140039440
Function at 0x1400391b0
Capabilities:
Hash data using sha512

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
lea rcx, [0x1400c6a00]
mov edx, 0x80
call fcn.140039440
cmp ebp, 0x81
jb 0x14003920c
lea r14, [0x1400c6a80]
mov rcx, r14
call fcn.140039820
mov r8d, ebp
mov rcx, r14
mov rdx, rbx
call fcn.140039b40
lea rdx, [0x1400c6a00]
mov rcx, r14
call fcn.140039ea0
jmp 0x14003921e
mov r8d, ebp
lea rcx, [0x1400c6a00]
mov rdx, rbx
call fcn.14006e730
movabs rax, 0x5c5c5c5c5c5c5c5c
mov rcx, qword [0x1400c6a00]
xor rcx, rax
bswap rcx
mov qword [0x1400c6a00], rcx
mov rcx, qword [0x1400c6a08]
xor rcx, rax
bswap rcx
mov qword [0x1400c6a08], rcx
mov rcx, qword [0x1400c6a10]
xor rcx, rax
bswap rcx
mov qword [0x1400c6a10], rcx
mov rcx, qword [0x1400c6a18]
xor rcx, rax
bswap rcx
mov qword [0x1400c6a18], rcx
mov rcx, qword [0x1400c6a20]
xor rcx, rax
bswap rcx
mov qword [0x1400c6a20], rcx
mov rcx, qword [0x1400c6a28]
xor rcx, rax
bswap rcx
mov qword [0x1400c6a28], rcx
mov rcx, qword [0x1400c6a30]
xor rcx, rax
bswap rcx
mov qword [0x1400c6a30], rcx
mov rcx, qword [0x1400c6a38]
xor rcx, rax
bswap rcx
mov qword [0x1400c6a38], rcx
mov rcx, qword [0x1400c6a40]
xor rcx, rax
bswap rcx
mov qword [0x1400c6a40], rcx
mov rcx, qword [0x1400c6a48]
xor rcx, rax
bswap rcx
mov qword [0x1400c6a48], rcx
mov rcx, qword [0x1400c6a50]
xor rcx, rax
bswap rcx
mov qword [0x1400c6a50], rcx
mov rcx, qword [0x1400c6a58]
xor rcx, rax
bswap rcx
mov qword [0x1400c6a58], rcx
mov rcx, qword [0x1400c6a60]
xor rcx, rax
bswap rcx
mov qword [0x1400c6a60], rcx
mov rcx, qword [0x1400c6a68]
xor rcx, rax
bswap rcx
mov qword [0x1400c6a68], rcx
mov rcx, qword [0x1400c6a70]
xor rcx, rax
bswap rcx
mov qword [0x1400c6a70], rcx
xor rax, qword [0x1400c6a78]
lea rbx, [0x1400c6a00]
bswap rax
mov qword [0x1400c6a78], rax
lea r14, [0x14009bb60]
mov rcx, r14
mov rdx, rbx
mov r8, rdi
call fcn.140039880
movaps xmm0, xmmword [0x1400896b0]
movaps xmm1, xmmword [0x1400c6a00]
xorps xmm1, xmm0
movaps xmmword [0x1400c6a00], xmm1
movaps xmm1, xmmword [0x1400c6a10]
xorps xmm1, xmm0
movaps xmmword [0x1400c6a10], xmm1
movaps xmm1, xmmword [0x1400c6a20]
xorps xmm1, xmm0
movaps xmmword [0x1400c6a20], xmm1
movaps xmm1, xmmword [0x1400c6a30]
xorps xmm1, xmm0
movaps xmmword [0x1400c6a30], xmm1
movaps xmm1, xmmword [0x1400c6a40]
xorps xmm1, xmm0
movaps xmmword [0x1400c6a40], xmm1
movaps xmm1, xmmword [0x1400c6a50]
xorps xmm1, xmm0
movaps xmmword [0x1400c6a50], xmm1
movaps xmm1, xmmword [0x1400c6a60]
xorps xmm1, xmm0
movaps xmmword [0x1400c6a60], xmm1
xorps xmm0, xmmword [0x1400c6a70]
movaps xmmword [0x1400c6a70], xmm0
mov rcx, r14
mov rdx, rbx
mov r8, rsi
call fcn.140039880
mov edx, 0x80
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp fcn.140039440
Function at 0x140039670
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov edi, edx
mov rsi, rcx
movsx eax, byte [rcx + 0x140]
sub edi, eax
jbe 0x140039720
lea rbx, [rsi + 0xc0]
lea r14, [rsi + 0x40]
nop dword [rax + rax]
mov rcx, r14
mov rdx, rbx
mov r8, rbx
call fcn.140039880
mov rcx, rsi
mov rdx, rbx
mov r8, rbx
call fcn.140039880
movups xmm0, xmmword [rsi + 0xc0]
movups xmm1, xmmword [rsi + 0x80]
xorps xmm1, xmm0
movups xmm0, xmmword [rsi + 0x90]
movups xmm2, xmmword [rsi + 0xa0]
movups xmm3, xmmword [rsi + 0xb0]
movups xmmword [rsi + 0x80], xmm1
movups xmm1, xmmword [rsi + 0xd0]
xorps xmm1, xmm0
movups xmmword [rsi + 0x90], xmm1
movups xmm0, xmmword [rsi + 0xe0]
xorps xmm0, xmm2
movups xmmword [rsi + 0xa0], xmm0
movups xmm0, xmmword [rsi + 0xf0]
xorps xmm0, xmm3
movups xmmword [rsi + 0xb0], xmm0
dec edi
jne 0x1400396a0
mov byte [rsi + 0x140], 0
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140039820
Capabilities:
Hash data using sha512

Disassembly:
push rsi
sub rsp, 0x20
test rcx, rcx
je 0x14003986d
mov rsi, rcx
movaps xmm0, xmmword [0x14009bb90]
movups xmmword [rcx + 0x30], xmm0
movaps xmm0, xmmword [0x14009bb80]
movups xmmword [rcx + 0x20], xmm0
movaps xmm0, xmmword [0x14009bb70]
movups xmmword [rcx + 0x10], xmm0
movaps xmm0, xmmword [0x14009bb60]
movups xmmword [rcx], xmm0
add rcx, 0x50
mov edx, 0x80
call fcn.140039440
xorps xmm0, xmm0
movups xmmword [rsi + 0x40], xmm0
add rsp, 0x20
pop rsi
ret
Function at 0x14003a160
Capabilities:
Hash data using sha512

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x118
movaps xmmword [rsp + 0x100], xmm6
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1400c3c40]
xor rax, rsp
mov qword [rsp + 0xf8], rax
xorps xmm6, xmm6
movaps xmmword [rsp + 0xe0], xmm6
movaps xmmword [rsp + 0xd0], xmm6
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmm0, xmmword [0x14009bb60]
movaps xmmword [rsp + 0x20], xmm0
movaps xmm0, xmmword [0x14009bb70]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [0x14009bb80]
movaps xmmword [rsp + 0x40], xmm0
movaps xmm0, xmmword [0x14009bb90]
movaps xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x70]
mov edx, 0x80
call fcn.140039440
movaps xmmword [rsp + 0x60], xmm6
lea r14, [rsp + 0x20]
mov rcx, r14
mov rdx, rbx
mov r8, rdi
call fcn.140039b40
mov rcx, r14
mov rdx, rsi
call fcn.140039ea0
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.140043380
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14003a290
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov ecx, dword [rcx + 0x188]
test ecx, ecx
js 0x14003a347
mov rsi, r8
mov rdi, rdx
mov r14d, dword [rbx + 0x18c]
lea rax, [rcx + r8]
mov rdx, rax
shr rdx, 0x20
je 0x14003a2cf
xor edx, edx
div r14
jmp 0x14003a2d4
xor edx, edx
div r14d
mov dword [rbx + 0x188], edx
test rcx, rcx
je 0x14003a31b
mov r15, r14
sub r15, rcx
add rcx, rbx
add rcx, 0xc8
cmp r15, rsi
mov r8, rsi
cmovb r8, r15
mov rdx, rdi
call fcn.14006e730
sub rsi, r15
jb 0x14003a347
lea rdx, [rbx + 0xc8]
mov rcx, rbx
mov r8, r14
call fcn.14003a3b0
add rdi, r15
cmp rsi, r14
jae 0x14003a356
test rsi, rsi
je 0x14003a347
add rbx, 0xc8
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.14006e730
nop
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r15, [rbx + 0xc8]
mov r12, rdi
jmp 0x14003a389
mov rcx, rbx
mov r8, r14
call fcn.14003a3b0
add rdi, r14
sub rsi, r14
add r12, r14
cmp rsi, r14
jb 0x14003a320
mov rdx, rdi
test r12b, 7
je 0x14003a370
mov rcx, r15
mov rdx, rdi
mov r8, r14
call fcn.14006e730
mov rdx, r15
jmp 0x14003a370
Function at 0x14003f1c0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x13d8
call fcn.140043320
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1350], 0xfffffffffffffffe
mov edi, r8d
mov rsi, rdx
xorps xmm0, xmm0
movaps xmmword [rbp + 0x1330], xmm0
mov qword [rbp + 0x1340], 0
mov qword [rbp + 0x1348], 0xf
cmp r8d, 0x10
jb 0x14003f232
movsxd rdx, edi
lea rcx, [rbp + 0x1330]
call fcn.14000c4d0
mov qword [rbp + 0x1340], 0
call fcn.140043e20
mov dword [rbp + 0x132c], 0xffffffff
mov dword [rbp - 0x54], eax
mov ecx, 3
nop dword [rax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add rax, rcx
add rax, 0xfffffffffffffffe
mov dword [rbp + rcx*4 - 0x5c], eax
cmp rcx, 0x271
je 0x14003f28c
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, ecx
dec eax
mov dword [rbp + rcx*4 - 0x58], eax
add rcx, 2
jmp 0x14003f250
mov dword [rbp - 0x58], 0x270
xor r15d, r15d
lea rbx, [rbp - 0x58]
lea r12, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
lea r14, [rbp + 0x1330]
cmp r15d, edi
jl 0x14003f2d5
jmp 0x14003f359
mov byte [rdx + rax], r9b
mov byte [rdx + rax + 1], 0
inc r15d
cmp r15d, edi
jge 0x14003f359
mov rcx, rbx
call fcn.140041240
nop dword [rax]
mov eax, eax
lea rcx, [rax + rax]
shl rax, 6
sub rax, rcx
test eax, 0xfffffffc
jne 0x14003f300
mov rcx, rbx
call fcn.140041240
jmp 0x14003f2e0
shr rax, 0x20
movzx r9d, byte [rax + r12]
mov rax, qword [rbp + 0x1340]
mov rcx, qword [rbp + 0x1348]
cmp rax, rcx
jae 0x14003f340
lea rdx, [rax + 1]
mov qword [rbp + 0x1340], rdx
mov rdx, r14
cmp rcx, 0x10
jb 0x14003f2c0
mov rdx, qword [rbp + 0x1330]
jmp 0x14003f2c0
mov edx, 1
mov rcx, r14
call fcn.14000cba0
inc r15d
cmp r15d, edi
jl 0x14003f2d5
mov rdi, qword [rbp + 0x1340]
mov rax, rdi
shr rax, 1
movabs rcx, 0x3fffffffffffffff
cmp rax, rcx
je 0x14003f47f
mov r14, qword [rbp + 0x1330]
mov r15, qword [rbp + 0x1348]
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi], xmm0
lea r12, [rdi + 2]
mov r13d, 0xf
mov rbx, rsi
cmp r12, 0x10
jb 0x14003f3fa
test r12, r12
js 0x14003f3d5
mov rax, r12
or rax, 0xf
cmp rax, 0x17
mov r13d, 0x16
cmovae r13, rax
cmp r13, 0xfff
jae 0x14003f3df
lea rcx, [r13 + 1]
call fcn.1400431a8
mov rbx, rax
jmp 0x14003f3f7
movabs r13, 0x7fffffffffffffff
lea rcx, [r13 + 0x28]
call fcn.1400431a8
mov rbx, rax
add rbx, 0x27
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
mov qword [rsi], rbx
cmp r15, 0x10
lea rdx, [rbp + 0x1330]
cmovae rdx, r14
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], r13
mov word [rbx], 0x5f6e
lea rcx, [rbx + 2]
mov r8, rdi
call fcn.14006e730
mov byte [rbx + rdi + 2], 0
mov rax, qword [rbp + 0x1348]
cmp rax, 0x10
jb 0x14003f468
mov rcx, qword [rbp + 0x1330]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14003f463
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14003f484
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.1400431ec
mov rax, rsi
add rsp, 0x13d8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.14000c610
call fcn.140050580
int3
Function at 0x140046930
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 0x14004696a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14004696f
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 0x1400469b8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14009f5a0]
cmp byte [rcx + rax], 0
je 0x1400469b8
dec r8
sub rdx, 1
jne 0x14004699e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140046f78
Capabilities:
Parse pe header

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

Function at 0x14004d6b8
Capabilities:
Parse pe header

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

Function at 0x14004d800
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14004d800
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 0x14004d86f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004d86f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004d86f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004d86f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004d86f
cmp dword [rcx + 0x84], 0xe
jbe 0x14004d86f
cmp dword [rcx + 0xf8], 0
je 0x14004d86f
mov ecx, ebx
call fcn.14004d738
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.14004d994
nop
cmp dword [rbp + 0x20], 0
je 0x14004d8bd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14004d7cc
int3

Function at 0x140057db0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140057dd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140057dd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140061fe0
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.14005b32c
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 0x140062081
cmp ebx, dword [rsp + 0x30]
je 0x14006207a
test esi, esi
je 0x14006207a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140062055
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140062062
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14006203f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140062066
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140062083
mov eax, 1
jmp 0x140062083
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400632ec
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.140043320
sub rsp, rax
mov rax, qword [0x1400c3c40]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14005f5e0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14006333b
mov rax, rbp
jmp 0x140063443
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 + 0xc8460]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14006301c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xc8460]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14006343f
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 0x14006343f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14006301c
test rax, rax
js 0x14006343f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14006343f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140063431
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140063431
cmp byte [rcx], 0xd
jne 0x140063417
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140063426
cmp byte [rcx + 1], 0xa
jne 0x140063426
inc rcx
jmp 0x140063426
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xc4a10]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400633f9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140063443
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140043380
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 0x140063c48
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 0x140063c78
xor eax, eax
jmp 0x140063d3b
mov rbp, rbx
cmp word [rax], si
je 0x140063c9d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140063c84
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140063c80
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.14005b1ec
movsxd r14, eax
test eax, eax
jne 0x140063cdb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140063c71
mov rcx, r14
call fcn.14005b0fc
mov rdi, rax
test rax, rax
jne 0x140063cf4
xor ecx, ecx
call fcn.14005b0c0
jmp 0x140063cd0
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.14005b1ec
test eax, eax
jne 0x140063d25
mov rcx, rdi
call fcn.14005b0c0
jmp 0x140063d2f
xor ecx, ecx
call fcn.14005b0c0
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 0x140065c44
Capabilities:
Get file size

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