joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140025a10
Capabilities:
Hash data using sha1

Disassembly:
push rbx
sub rsp, 0x20
mov r8, rcx
test rcx, rcx
je case.0x140025a4f.6
mov rax, qword [rcx]
test rax, rax
je case.0x140025a4f.6
mov eax, dword [rax]
add eax, 0xfffffffd
cmp eax, 0x10
ja case.0x140025a4f.6
lea rdx, [0x140000000]
cdqe
mov ecx, dword [rdx + rax*4 + 0x25c9c]
add rcx, rdx
jmp rcx
mov rax, qword [r8 + 8]
xor ecx, ecx
mov qword [rax], rcx
mov dword [rax + 8], 0x67452301
mov dword [rax + 0xc], 0xefcdab89
mov dword [rax + 0x10], 0x98badcfe
mov dword [rax + 0x14], 0x10325476
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rax, qword [r8 + 8]
xor ecx, ecx
mov qword [rax], rcx
mov dword [rax + 8], 0x67452301
mov dword [rax + 0xc], 0xefcdab89
mov dword [rax + 0x10], 0x98badcfe
mov dword [rax + 0x14], 0x10325476
mov dword [rax + 0x18], 0xc3d2e1f0
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rax, qword [r8 + 8]
xor ecx, ecx
mov qword [rax + 0x40], rcx
mov dword [rax + 0x48], 0xc1059ed8
mov dword [rax + 0x4c], 0x367cd507
mov dword [rax + 0x50], 0x3070dd17
mov dword [rax + 0x54], 0xf70e5939
mov dword [rax + 0x58], 0xffc00b31
mov dword [rax + 0x5c], 0x68581511
mov dword [rax + 0x60], 0x64f98fa7
mov dword [rax + 0x64], 0xbefa4fa4
mov dword [rax + 0x68], 1
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rax, qword [r8 + 8]
xor ecx, ecx
mov qword [rax + 0x40], rcx
mov dword [rax + 0x48], 0x6a09e667
mov dword [rax + 0x4c], 0xbb67ae85
mov dword [rax + 0x50], 0x3c6ef372
mov dword [rax + 0x54], 0xa54ff53a
mov dword [rax + 0x58], 0x510e527f
mov dword [rax + 0x5c], 0x9b05688c
mov dword [rax + 0x60], 0x1f83d9ab
mov qword [rax + 0x64], 0x5be0cd19
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rcx, qword [r8 + 8]
mov edx, 1
add rsp, 0x20
pop rbx
jmp fcn.14002be80
mov rcx, qword [r8 + 8]
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.14002be80
mov eax, dword [0x140074ce0]
lea rcx, [0x140074ce0]
mov rbx, qword [r8 + 8]
test eax, eax
je 0x140025b96
cmp eax, 1
je 0x140025ba3
mov eax, dword [rcx + 8]
add rcx, 8
test eax, eax
jne 0x140025b86
mov ecx, 0xffffff8a
mov eax, ecx
add rsp, 0x20
pop rbx
ret
movzx eax, word [rcx + 6]
xor edx, edx
shr ax, 3
mov r8d, 0xc8
mov word [rbx + 0xcc], ax
movzx eax, word [rcx + 4]
mov rcx, rbx
shr ax, 3
mov word [rbx + 0xce], ax
call fcn.140051d20
xor ecx, ecx
mov dword [rbx + 0xc8], ecx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov eax, dword [0x140074ce0]
lea rcx, [0x140074ce0]
mov rbx, qword [r8 + 8]
test eax, eax
je 0x140025b96
cmp eax, 2
je 0x140025ba3
mov eax, dword [rcx + 8]
add rcx, 8
test eax, eax
jne 0x140025bf6
mov ecx, 0xffffff8a
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov eax, dword [0x140074ce0]
lea rcx, [0x140074ce0]
mov rbx, qword [r8 + 8]
test eax, eax
je 0x140025b96
nop dword [rax]
cmp eax, 3
je 0x140025ba3
mov eax, dword [rcx + 8]
add rcx, 8
test eax, eax
jne 0x140025c30
mov ecx, 0xffffff8a
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov eax, dword [0x140074ce0]
lea rcx, [0x140074ce0]
mov rbx, qword [r8 + 8]
test eax, eax
je 0x140025b96
nop word [rax + rax]
cmp eax, 4
je 0x140025ba3
mov eax, dword [rcx + 8]
add rcx, 8
test eax, eax
jne 0x140025c70
mov ecx, 0xffffff8a
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov eax, 0xffffaf00
add rsp, 0x20
pop rbx
ret
Function at 0x140025ce0
Capabilities:
Hash data using sha1

Disassembly:
push rdi
sub rsp, 0xa0
mov rax, qword [0x140074040]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, r9
mov r11, r8
mov r10, rdx
test rcx, rcx
je case.0x140025d2e.6
mov eax, dword [rcx]
add eax, 0xfffffffd
cmp eax, 0x10
ja case.0x140025d2e.6
cdqe
lea rdx, [0x140000000]
mov eax, dword [rdx + rax*4 + 0x25eac]
add rax, rdx
jmp rax
mov r8, rdi
mov rdx, r11
mov rcx, r10
call fcn.140029910
jmp 0x140025e90
xorps xmm0, xmm0
mov dword [rsp + 0x38], 0x67452301
xor eax, eax
mov dword [rsp + 0x3c], 0xefcdab89
mov rdx, r10
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x40], 0x98badcfe
movups xmmword [rsp + 0x4c], xmm0
mov dword [rsp + 0x44], 0x10325476
movups xmmword [rsp + 0x5c], xmm0
mov dword [rsp + 0x48], 0xc3d2e1f0
movups xmmword [rsp + 0x6c], xmm0
movups xmmword [rsp + 0x7c], xmm0
call fcn.140028d60
mov edx, eax
test eax, eax
jne 0x140025dab
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140028e40
mov edx, eax
xor eax, eax
lea rdi, [rsp + 0x30]
mov ecx, 0x5c
rep stosb byte [rdi], al
mov eax, edx
jmp 0x140025e90
mov r8, rdi
mov rdx, r11
mov rcx, r10
call fcn.14002bcc0
jmp 0x140025e90
mov r9d, 1
mov r8, rdi
mov rdx, r11
mov rcx, r10
call fcn.140026eb0
jmp 0x140025e90
xor r9d, r9d
mov r8, rdi
mov rdx, r11
mov rcx, r10
call fcn.140026eb0
jmp 0x140025e90
mov r9d, 1
mov r8, rdi
mov rdx, r11
mov rcx, r10
call fcn.14002cb80
jmp 0x140025e90
xor r9d, r9d
mov r8, rdi
mov rdx, r11
mov rcx, r10
call fcn.14002cb80
jmp 0x140025e90
movzx eax, byte [rcx + 4]
mov rdx, r10
mov ecx, 1
mov qword [rsp + 0x20], rax
call fcn.14002a320
jmp 0x140025e90
movzx eax, byte [rcx + 4]
mov rdx, r10
mov ecx, 2
mov qword [rsp + 0x20], rax
call fcn.14002a320
jmp 0x140025e90
movzx eax, byte [rcx + 4]
mov rdx, r10
mov ecx, 3
mov qword [rsp + 0x20], rax
call fcn.14002a320
jmp 0x140025e90
movzx eax, byte [rcx + 4]
mov rdx, r10
mov ecx, 4
mov qword [rsp + 0x20], rax
call fcn.14002a320
jmp 0x140025e90
mov eax, 0xffffaf00
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14002cd30
add rsp, 0xa0
pop rdi
ret
Function at 0x140029910
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x140074040]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov qword [rbp - 0x29], 0
xorps xmm0, xmm0
mov dword [rbp - 0x21], 0x67452301
mov rsi, r8
mov dword [rbp - 0x1d], 0xefcdab89
mov rdi, rdx
mov dword [rbp - 0x19], 0x98badcfe
mov rbx, rcx
mov dword [rbp - 0x15], 0x10325476
movups xmmword [rbp - 0x11], xmm0
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm0
movups xmmword [rbp + 0x1f], xmm0
test rdx, rdx
je 0x1400299b8
mov dword [rbp - 0x29], edx
cmp rdx, 0x40
jb 0x1400299a4
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.140028fb0
mov edx, eax
test eax, eax
jne 0x140029a79
add rbx, 0x40
sub rdi, 0x40
cmp rdi, 0x40
jae 0x140029980
test rdi, rdi
je 0x1400299b8
mov r8, rdi
lea rcx, [rbp - 0x11]
mov rdx, rbx
call fcn.1400520e0
mov ecx, dword [rbp - 0x29]
lea rdi, [rbp - 0x11]
and ecx, 0x3f
xor edx, edx
mov byte [rbp + rcx - 0x11], 0x80
inc ecx
mov eax, ecx
add rdi, rax
cmp ecx, 0x38
ja 0x1400299e8
mov r8d, 0x38
sub r8d, ecx
mov rcx, rdi
call fcn.140051d20
jmp 0x140029a21
mov r8d, 0x40
sub r8d, ecx
mov rcx, rdi
call fcn.140051d20
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x29]
call fcn.140028fb0
mov edx, eax
test eax, eax
jne 0x140029a6c
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp + 0x1f], rax
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm0
mov ecx, dword [rbp - 0x29]
mov eax, dword [rbp - 0x25]
lea edx, [rax*8]
mov eax, ecx
shr eax, 0x1d
or edx, eax
lea eax, [rcx*8]
mov dword [rbp + 0x2b], edx
lea rcx, [rbp - 0x29]
lea rdx, [rbp - 0x11]
mov dword [rbp + 0x27], eax
call fcn.140028fb0
mov edx, eax
test eax, eax
jne 0x140029a6c
mov eax, dword [rbp - 0x21]
mov dword [rsi], eax
mov eax, dword [rbp - 0x1d]
mov dword [rsi + 4], eax
mov eax, dword [rbp - 0x19]
mov dword [rsi + 8], eax
mov eax, dword [rbp - 0x15]
mov dword [rsi + 0xc], eax
lea rdi, [rbp - 0x29]
xor eax, eax
mov ecx, 0x58
rep stosb byte [rdi], al
xor eax, eax
lea rdi, [rbp - 0x29]
mov ecx, 0x58
rep stosb byte [rdi], al
mov eax, edx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14002cd30
mov rbx, qword [rsp + 0xc8]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002a070
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
cmp r8, 8
jb 0x14002a191
mov r9d, dword [rcx + 0xc8]
mov r8d, 8
mov eax, r9d
and eax, 7
sub r8d, eax
je 0x14002a122
test r8d, r8d
jle 0x14002a0fc
mov eax, r8d
sub rdi, rax
nop word [rax + rax]
mov eax, r9d
dec r8d
shr rax, 3
and r9d, 7
shl r9d, 3
lea rdx, [rbx + rax*8]
movzx eax, byte [rsi]
movzx ecx, r9b
shl rax, cl
inc rsi
xor qword [rdx], rax
mov r9d, dword [rbx + 0xc8]
inc r9d
mov dword [rbx + 0xc8], r9d
test r8d, r8d
jg 0x14002a0c0
movzx ecx, word [rbx + 0xce]
xor edx, edx
mov eax, r9d
div ecx
mov dword [rbx + 0xc8], edx
test edx, edx
jne 0x14002a11c
mov rcx, rbx
call fcn.140029ab0
cmp rdi, 8
jb 0x14002a191
mov qword [rsp + 0x30], rbp
mov rbp, rdi
shr rbp, 3
imul rax, rbp, 0xfffffffffffffff8
add rdi, rax
nop word [rax + rax]
mov ecx, dword [rbx + 0xc8]
mov rdx, qword [rsi]
mov eax, ecx
shr rax, 3
and ecx, 7
shl ecx, 3
add rsi, 8
shl rdx, cl
xor qword [rbx + rax*8], rdx
xor edx, edx
mov eax, dword [rbx + 0xc8]
movzx ecx, word [rbx + 0xce]
add eax, 8
div ecx
mov dword [rbx + 0xc8], edx
test edx, edx
jne 0x14002a186
mov rcx, rbx
call fcn.140029ab0
sub rbp, 1
jne 0x14002a140
mov rbp, qword [rsp + 0x30]
test rdi, rdi
je 0x14002a1f1
nop word [rax + rax]
mov ecx, dword [rbx + 0xc8]
lea rsi, [rsi + 1]
mov eax, ecx
dec rdi
shr rax, 3
and ecx, 7
lea rdx, [rbx + rax*8]
shl ecx, 3
movzx eax, byte [rsi - 1]
shl rax, cl
xor qword [rdx], rax
xor edx, edx
mov eax, dword [rbx + 0xc8]
movzx ecx, word [rbx + 0xce]
inc eax
div ecx
mov dword [rbx + 0xc8], edx
test edx, edx
jne 0x14002a1ec
mov rcx, rbx
call fcn.140029ab0
test rdi, rdi
jne 0x14002a1a0
mov rbx, qword [rsp + 0x38]
xor eax, eax
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002bcc0
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x140074040]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov qword [rbp - 0x29], 0
xorps xmm0, xmm0
mov dword [rbp - 0x21], 0x67452301
mov rsi, r8
mov dword [rbp - 0x1d], 0xefcdab89
mov rdi, rdx
mov dword [rbp - 0x19], 0x98badcfe
mov rbx, rcx
mov dword [rbp - 0x15], 0x10325476
mov dword [rbp - 0x11], 0xc3d2e1f0
movups xmmword [rbp - 0xd], xmm0
movups xmmword [rbp + 3], xmm0
movups xmmword [rbp + 0x13], xmm0
movups xmmword [rbp + 0x23], xmm0
test rdx, rdx
je 0x14002bd78
mov dword [rbp - 0x29], edx
cmp rdx, 0x40
jb 0x14002bd64
nop word [rax + rax]
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.14002a520
mov edx, eax
test eax, eax
jne 0x14002be4d
add rbx, 0x40
sub rdi, 0x40
cmp rdi, 0x40
jae 0x14002bd40
test rdi, rdi
je 0x14002bd78
mov r8, rdi
lea rcx, [rbp - 0xd]
mov rdx, rbx
call fcn.1400520e0
mov ecx, dword [rbp - 0x29]
lea rdi, [rbp - 0xd]
and ecx, 0x3f
xor edx, edx
mov byte [rbp + rcx - 0xd], 0x80
inc ecx
mov eax, ecx
add rdi, rax
cmp ecx, 0x38
ja 0x14002bda8
mov r8d, 0x38
sub r8d, ecx
mov rcx, rdi
call fcn.140051d20
jmp 0x14002bde1
mov r8d, 0x40
sub r8d, ecx
mov rcx, rdi
call fcn.140051d20
lea rdx, [rbp - 0xd]
lea rcx, [rbp - 0x29]
call fcn.14002a520
mov edx, eax
test eax, eax
jne 0x14002be40
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0xd], xmm0
mov qword [rbp + 0x23], rax
movups xmmword [rbp + 3], xmm0
movups xmmword [rbp + 0x13], xmm0
mov ecx, dword [rbp - 0x29]
mov eax, dword [rbp - 0x25]
lea edx, [rax*8]
mov eax, ecx
lea ecx, [rcx*8]
shr eax, 0x1d
or edx, eax
bswap edx
bswap ecx
mov dword [rbp + 0x2b], edx
lea rdx, [rbp - 0xd]
mov dword [rbp + 0x2f], ecx
lea rcx, [rbp - 0x29]
call fcn.14002a520
mov edx, eax
test eax, eax
jne 0x14002be40
mov eax, dword [rbp - 0x21]
bswap eax
mov dword [rsi], eax
mov eax, dword [rbp - 0x1d]
bswap eax
mov dword [rsi + 4], eax
mov eax, dword [rbp - 0x19]
bswap eax
mov dword [rsi + 8], eax
mov eax, dword [rbp - 0x15]
bswap eax
mov dword [rsi + 0xc], eax
mov eax, dword [rbp - 0x11]
bswap eax
mov dword [rsi + 0x10], eax
lea rdi, [rbp - 0x29]
xor eax, eax
mov ecx, 0x5c
rep stosb byte [rdi], al
xor eax, eax
lea rdi, [rbp - 0x29]
mov ecx, 0x5c
rep stosb byte [rdi], al
mov eax, edx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14002cd30
mov rbx, qword [rsp + 0xc8]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002be80
Capabilities:
Hash data using sha384
Hash data using sha512

Disassembly:
cmp edx, 1
jbe 0x14002be90
mov eax, 0xffffff8b
ret
xor eax, eax
movabs r8, 0xcbbb9d5dc1059ed8
mov qword [rcx], rax
test edx, edx
mov qword [rcx + 8], rax
movabs rax, 0x6a09e667f3bcc908
cmovne rax, r8
movabs r8, 0x629a292a367cd507
mov qword [rcx + 0x10], rax
movabs rax, 0xbb67ae8584caa73b
cmovne rax, r8
movabs r8, 0x9159015a3070dd17
mov qword [rcx + 0x18], rax
movabs rax, 0x3c6ef372fe94f82b
cmovne rax, r8
movabs r8, 0x152fecd8f70e5939
mov qword [rcx + 0x20], rax
movabs rax, 0xa54ff53a5f1d36f1
cmovne rax, r8
movabs r8, 0x67332667ffc00b31
mov qword [rcx + 0x28], rax
movabs rax, 0x510e527fade682d1
cmovne rax, r8
movabs r8, 0x8eb44a8768581511
mov qword [rcx + 0x30], rax
movabs rax, 0x9b05688c2b3e6c1f
cmovne rax, r8
movabs r8, 0xdb0c2e0d64f98fa7
mov qword [rcx + 0x38], rax
movabs rax, 0x1f83d9abfb41bd6b
cmovne rax, r8
movabs r8, 0x47b5481dbefa4fa4
mov qword [rcx + 0x40], rax
movabs rax, 0x5be0cd19137e2179
cmovne rax, r8
mov qword [rcx + 0x48], rax
xor eax, eax
mov dword [rcx + 0xd0], edx
ret
Function at 0x14002d9cc
Capabilities:
Parse pe header

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

Function at 0x14003c170
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 0x14003bfdb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003bfdb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003bfdb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003bfdb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003bfdb
cmp dword [rcx + 0x84], 0xe
jbe 0x14003bfdb
cmp dword [rcx + 0xf8], 0
je 0x14003bfdb
mov ecx, ebx
call fcn.14003c08c
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.14003be68
nop
cmp dword [rbp + 0x20], 0
je 0x14003c029
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003c034
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003bf6c
Function at 0x1400466f0
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 0x140046720
xor eax, eax
jmp 0x1400467e3
mov rbp, rbx
cmp word [rax], si
je 0x140046745
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004672c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140046728
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.140046610
movsxd r14, eax
test eax, eax
jne 0x140046783
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140046719
mov rcx, r14
call fcn.140040714
mov rdi, rax
test rax, rax
jne 0x14004679c
xor ecx, ecx
call fcn.1400406d8
jmp 0x140046778
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.140046610
test eax, eax
jne 0x1400467cd
mov rcx, rdi
call fcn.1400406d8
jmp 0x1400467d7
xor ecx, ecx
call fcn.1400406d8
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 0x14004993c
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.140040aec
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 0x1400499dd
cmp ebx, dword [rsp + 0x30]
je 0x1400499d6
test esi, esi
je 0x1400499d6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400499b1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400499be
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14004999b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400499c2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400499df
mov eax, 1
jmp 0x1400499df
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004d388
Capabilities:
Get file size

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

Function at 0x14004f8c0
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, [0x140076e50]
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 0x14004f917
cmp word [rdx], r13w
jne 0x14004f917
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14004f91c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14004fa41
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14004fa62
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14004f955
mov rdx, r9
mov word [rbx], cx
jmp 0x14004f97c
cmp r9, r8
jae 0x14004f98c
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 0x14004f936
jmp 0x14004fa41
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 0x14004fa36
cmp dword [rsp + 0x80], esi
je 0x14004fa36
lea r8, [0x140076e50]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14004fa0e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14004f9de
mov word [rbx], r13w
jmp 0x14004fa3e
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 0x14004f9eb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14004fa3e
cmp word [rsp + 0x70], r13w
jne 0x14004fa1b
cmp rbx, r14
je 0x14004f9d8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14004f7e0
cmp word [rsp + 0x70], r13w
je 0x14004fa41
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, [0x140076e50]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14004fa3b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14004fa41
Function at 0x140050d58
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.14004f7e0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14004f7e0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140050ea8
cmp rax, 0xffffffffffffffff
je 0x140050ea8
xor edi, edi
test rbp, rbp
jle 0x140050e53
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140040e4c
mov rbx, rax
test rax, rax
jne 0x140050de0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140050e49
mov edx, 0x8000
mov ecx, r14d
call fcn.14003d180
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.14004b790
cmp eax, 0xffffffff
je 0x140050e29
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140050df0
mov edx, r15d
mov ecx, r14d
call fcn.14003d180
jmp 0x140050e49
cmp byte [rsi + 0x38], dil
je 0x140050e40
cmp dword [rsi + 0x34], 5
jne 0x140050e40
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140050e49
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400406d8
jmp 0x140050ebc
jns 0x140050ebc
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14004f7e0
cmp rax, 0xffffffffffffffff
jne 0x140050e74
cmp byte [rsi + 0x30], dil
je 0x140050ebc
mov edi, dword [rsi + 0x2c]
jmp 0x140050ebc
mov ecx, r14d
call fcn.140047258
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140050ebc
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 0x140050ebc
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140050eb5
mov eax, dword [rsi + 0x2c]
jmp 0x140050eba
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14004f7e0
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

Function at 0x140051970
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140051998
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140051998
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret