joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140041c60
Capabilities:
Get geographical location

Disassembly:
cmp rsp, qword [r14 + 0x18]
jbe 0x140041ecc
sub rsp, 0x40
mov qword [rsp + 0x38], rbp
lea rbp, [rsp + 0x38]
mov qword [rsp + 0x48], rax
cmp byte [0x1410ddb50], 0
je 0x140041c97
mov eax, 0x14
xor ebx, ebx
call fcn.140058680
mov rax, qword [rsp + 0x48]
nop
mov edx, dword [rax + 0x90]
btr edx, 0xc
cmp edx, 2
jne 0x140041da5
cmp byte [rax + 0xb4], 0
je 0x140041cdc
mov rcx, qword [rax + 0x40]
mov rax, rcx
nop dword [rax + rax]
call fcn.140052f00
test rax, rax
je 0x140041d8f
movzx edx, byte [rax + 0x29]
test dl, 2
jne 0x140041d34
mov rax, qword [rsp + 0x48]
mov ebx, 2
mov ecx, 0x1009
call fcn.14003cda0
mov rdx, qword [r14 + 0x30]
mov rdx, qword [rdx + 0x90]
nop
nop
xor esi, esi
mov qword [rdx + 0x30], rsi
mov rdx, qword [r14 + 0x30]
nop
xor esi, esi
mov qword [rdx + 0x90], rsi
mov rax, qword [rsp + 0x48]
mov ebx, 0x1009
mov ecx, 9
nop dword [rax + rax]
call fcn.14003c4c0
call fcn.140041280
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
call fcn.1400536a0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], rbx
call fcn.140039dc0
lea rax, [0x14098a8ed]
mov ebx, 0x25
call fcn.14003a6c0
mov rax, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x20]
call fcn.14003a6c0
lea rax, [0x140977d90]
mov ebx, 0x12
call fcn.14003a6c0
call fcn.140039e40
lea rax, [0x140975ce2]
mov ebx, 0xf
call fcn.140038480
lea rax, [0x14097b66c]
mov ebx, 0x15
nop dword [rax + rax]
call fcn.140038480
nop
mov qword [rsp + 0x28], r14
nop
mov ecx, dword [rax + 0x90]
mov dword [rsp + 0x14], ecx
mov rdx, qword [rax + 0x98]
mov qword [rsp + 0x18], rdx
call fcn.140039dc0
lea rax, [0x1409788f4]
mov ebx, 0x12
call fcn.14003a6c0
mov rax, qword [rsp + 0x48]
nop dword [rax]
call fcn.14003a640
lea rax, [0x14096dba0]
mov ebx, 7
call fcn.14003a6c0
mov rax, qword [rsp + 0x18]
nop dword [rax + rax]
call fcn.14003a3c0
lea rax, [0x140978c5e]
mov ebx, 0x13
call fcn.14003a6c0
mov eax, dword [rsp + 0x14]
mov eax, eax
nop dword [rax]
call fcn.14003a3c0
call fcn.14003a020
call fcn.140039e40
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax + 0x90]
mov dword [rsp + 0x10], ecx
mov rdx, qword [rax + 0x98]
mov qword [rsp + 0x18], rdx
call fcn.140039dc0
lea rax, [0x140978906]
mov ebx, 0x12
nop dword [rax + rax]
call fcn.14003a6c0
mov rax, qword [rsp + 0x28]
call fcn.14003a640
lea rax, [0x14096dba0]
mov ebx, 7
nop dword [rax + rax]
call fcn.14003a6c0
mov rax, qword [rsp + 0x18]
call fcn.14003a3c0
lea rax, [0x140978c4b]
mov ebx, 0x13
nop dword [rax + rax]
call fcn.14003a6c0
mov eax, dword [rsp + 0x10]
mov eax, eax
call fcn.14003a3c0
call fcn.14003a020
call fcn.140039e40
lea rax, [0x140973122]
mov ebx, 0xc
call fcn.140038480
nop
mov qword [rsp + 8], rax
call fcn.14006aa60
mov rax, qword [rsp + 8]
nop dword [rax + rax]
jmp fcn.140041c60
Function at 0x1400450c0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x30
mov qword [rsp + 0x28], rbp
lea rbp, [rsp + 0x28]
mov rcx, qword [r14 + 0x30]
cmp qword [rcx + 0xa0], 0
nop word [rax + rax]
jne 0x1400451cc
mov rdx, qword [rax + 0x38]
mov qword [rsp + 0x20], rdx
test rdx, rdx
jne 0x140045129
cmp dword [rax + 4], 0
jne 0x140045120
nop
mov rdx, rax
mov qword [rcx + 0xa0], rax
mov rax, qword [r14 + 0x30]
mov qword [rdx + 0x38], rax
mov dword [rdx + 4], 1
mov rbp, qword [rsp + 0x28]
add rsp, 0x30
ret
test rdx, rdx
je 0x1400451c5
mov rdx, qword [rdx + 0xb8]
mov qword [rsp + 0x10], rdx
mov eax, dword [rax + 4]
mov qword [rsp + 0x18], rax
nop dword [rax]
call fcn.140039dc0
lea rax, [0x140973782]
mov ebx, 0xc
call fcn.14003a6c0
mov rax, qword [rsp + 0x20]
nop dword [rax + rax]
call fcn.14003a3c0
lea rax, [0x140a94da0]
mov ebx, 1
call fcn.14003a6c0
mov rax, qword [rsp + 0x10]
nop dword [rax + rax]
call fcn.14003a4c0
lea rax, [0x140972b0a]
mov ebx, 0xc
call fcn.14003a6c0
mov rax, qword [rsp + 0x18]
nop dword [rax + rax]
call fcn.14003a3c0
call fcn.14003a020
call fcn.140039e40
lea rax, [0x14097c8e8]
mov ebx, 0x16
nop dword [rax + rax]
call fcn.140038480
xor edx, edx
jmp 0x140045130
lea rax, [0x14097abb5]
mov ebx, 0x14
call fcn.140038480
nop
int3
Function at 0x140046cc0
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140046e2a
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x140046cd8
cmp edx, ecx
jne 0x140046e18
nop dword [rax]
test rsi, rsi
jne 0x140046e18
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x140046d34
nop
call fcn.140069ec0
xorps xmm15, xmm15
mov r14, qword [0x14112bc88]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call fcn.140046bc0
mov rcx, qword [0x1410d6a78]
mov rdx, qword [0x1410d6a70]
mov rbx, qword [rsp + 0x28]
mov esi, dword [rbx]
mov edi, esi
sar esi, 0x1f
shr esi, 0x1b
add esi, edi
mov r8d, esi
and esi, 0xffffffe0
sub edi, esi
test edi, edi
jl 0x140046e13
cmp edi, 0x20
sbb esi, esi
sar r8d, 5
mov rax, rcx
mov ecx, edi
mov r9d, 1
shl r9d, cl
and r9d, esi
movsxd rsi, r8d
cmp rax, rsi
jbe 0x140046e08
lea rcx, [rdx + rsi*4]
lock or dword [rcx], r9d
mov rcx, qword [0x1410d8550]
mov qword [rbx + 8], rcx
nop
mov rcx, rbx
mov qword [0x1410d8550], rbx
nop
mov edx, 1
lea rsi, [0x1410d8558]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1220]
shr rdx, 0x3d
test dl, dl
jne 0x140046df7
nop
nop
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
xchg qword [rcx + 0x1220], rdx
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
lea rax, [0x14098cf5a]
mov ebx, 0x28
call fcn.140038480
mov rcx, rax
mov rax, rsi
call fcn.140068500
call fcn.140036940
lea rax, [0x140988cc8]
mov ebx, 0x23
call fcn.140038480
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.140065e80
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.140046cc0
Function at 0x140047ec0
Capabilities:
Get geographical location

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x1400480aa
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [0x14112bc80], 0x2a
mov qword [0x14112bc78], 0
xor eax, eax
lea rcx, [0x14112bc80]
mov edx, 1
lock cmpxchg qword [rcx], rdx
sete sil
test sil, sil
jne 0x140048098
cmp qword [0x14112bc78], 0
jne 0x140048087
mov qword [0x14112bc78], 0x2a
mov eax, 0x2a
lock cmpxchg qword [rcx], rdx
sete dl
test dl, dl
je 0x140048076
cmp qword [0x14112bc78], 0x2a
jne 0x140048065
cmp qword [0x14112bc80], 1
jne 0x140048065
mov rdx, qword [0x14112bc80]
nop
cmp rdx, 1
jne 0x14004804f
movabs rdx, 0x10000000001
xchg qword [rcx], rdx
mov rdx, qword [0x14112bc80]
movabs rsi, 0x10000000001
cmp rdx, rsi
jne 0x14004803e
movabs rdx, 0x10000000001
lock xadd qword [rcx], rdx
movabs rsi, 0x10000000001
add rdx, rsi
movabs rsi, 0x20000000002
cmp rsi, rdx
jne 0x14004802d
mov rdx, qword [0x14112bc80]
cmp rdx, rsi
jne 0x14004801c
movabs rdx, 0x30000000003
xchg qword [rcx], rdx
cmp rdx, rsi
jne 0x14004800b
mov rcx, qword [0x14112bc80]
movabs rdx, 0x30000000003
cmp rcx, rdx
jne 0x140047ffa
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
lea rax, [0x14097447c]
mov ebx, 0xd
call fcn.140038480
lea rax, [0x14097447c]
mov ebx, 0xd
call fcn.140038480
lea rax, [0x14097446f]
mov ebx, 0xd
call fcn.140038480
lea rax, [0x14097446f]
mov ebx, 0xd
call fcn.140038480
lea rax, [0x140975081]
mov ebx, 0xe
call fcn.140038480
lea rax, [0x1409741d8]
mov ebx, 0xd
nop dword [rax + rax]
call fcn.140038480
lea rax, [0x14097319a]
mov ebx, 0xc
call fcn.140038480
lea rax, [0x14097319a]
mov ebx, 0xc
call fcn.140038480
lea rax, [0x14097319a]
mov ebx, 0xc
call fcn.140038480
lea rax, [0x14097319a]
mov ebx, 0xc
call fcn.140038480
nop
call fcn.140065e80
jmp fcn.140047ec0
Function at 0x140053ec0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x140054038
movzx edx, byte [rax]
nop
test edx, edx
jne 0x140053efc
test r8b, r8b
jne 0x140053efc
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
bt edx, 7
jae 0x140053f0f
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x140053ff8
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
cmp rbx, r8
jb 0x140053fe6
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rcx
sar rcx, 0x3f
and r8, rcx
lea rsi, [rax + r8]
test rbx, rbx
jbe 0x140053fdc
movzx r8d, byte [rax + r8]
bt r8d, 7
jae 0x140053f63
xor eax, eax
xor ecx, ecx
xor r8d, r8d
jmp 0x140053fa6
mov eax, 1
cmp rax, rbx
ja 0x140053f95
add qword [rdi], r8
sub rdx, rax
sub rbx, rax
mov rcx, rdx
neg rdx
sar rdx, 0x3f
and rax, rdx
add rax, rsi
mov edi, 1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, rbx
call fcn.1400685c0
lea r8d, [rcx + 7]
mov ecx, eax
mov eax, r10d
cmp rax, rbx
jae 0x140053fd4
movzx r9d, byte [rax + rsi]
lea r10d, [rax + 1]
mov r11d, r9d
and r9d, 0x7f
mov eax, ecx
mov ecx, r8d
shl r9d, cl
or eax, r9d
test r11b, 0x80
jne 0x140053f9d
mov r8d, eax
mov eax, r10d
jmp 0x140053f68
mov rcx, rbx
call fcn.140068500
xor eax, eax
mov rcx, rax
call fcn.140068500
mov eax, r8d
mov rcx, rbx
call fcn.1400685c0
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x14005402e
movzx r10d, byte [rdx + rax]
inc edx
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
or r8d, r10d
test r11b, 0x80
jne 0x140053ff1
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x140053f15
mov eax, edx
mov rcx, rbx
call fcn.140068500
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.140068500
nop
int3
Function at 0x14005bbe0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x14005bc99
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rdx, [0x14005bce0]
mov qword [rsp + 0x10], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x18], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x28], rdx
mov rdx, r14
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.140065d40
xorps xmm15, xmm15
mov r14, qword [0x14112bc88]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.140065e80
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.14005bbe0
Function at 0x140067f80
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x14112c1e0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x14112b98b], 0
je 0x140067fb6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x14112c660]
aesenc xmm0, xmmword [0x14112c670]
aesenc xmm0, xmmword [0x14112c680]
movq rax, xmm0
ret
jmp 0x14000afa0
Function at 0x140765d40
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1410cde00]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140765d60
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140765d68
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140765d60
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140765db5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140765dac
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140765d60
add rax, 0x28
cmp rax, r9
jne 0x140765d98
xor eax, eax
ret

Function at 0x140765dc0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1410cde00]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140765de0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140765de8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140765de0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140765e70
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1410cde00]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140765e90
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140765e98
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x14001859c
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 0x1400183fb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400183fb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400183fb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400183fb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400183fb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400183fb
cmp dword [rcx + 0xf8], 0
je 0x1400183fb
mov ecx, ebx
call fcn.1400184b8
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.140018288
nop
cmp dword [rbp + 0x20], 0
je 0x140018449
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140018454
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001838c

Function at 0x1400188dc
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.140025780
sub rsp, rax
mov rax, qword [0x140034860]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001b3d0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001892b
mov rax, rbp
jmp 0x140018a33
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 + 0x35f50]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001ba3c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x35f50]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140018a2f
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 0x140018a2f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001ba3c
test rax, rax
js 0x140018a2f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140018a2f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140018a21
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140018a21
cmp byte [rcx], 0xd
jne 0x140018a07
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140018a16
cmp byte [rcx + 1], 0xa
jne 0x140018a16
inc rcx
jmp 0x140018a16
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x34b30]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400189e9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140018a33
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140012330
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 0x14001c1c0
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, [0x140035f50]
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 0x14001c21e
cmp word [rdx], r12w
jne 0x14001c21e
or byte [rax + r8*8 + 0x38], cl
jmp 0x14001c224
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14001c37f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14001c35a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14001c25d
mov rcx, r9
jmp 0x14001c280
cmp r9, rdx
jae 0x14001c297
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 0x14001c241
jmp 0x14001c37f
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 0x14001c354
cmp dword [rsp + 0x80], edi
je 0x14001c354
mov rdx, r14
lea r11, [0x140035f50]
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 0x14001c32d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14001c300
mov word [rbx], r12w
jmp 0x14001c37b
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 0x14001c309
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14001c37b
cmp word [rsp + 0x70], r12w
jne 0x14001c33a
cmp rbx, rsi
je 0x14001c2fa
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14001ba44
cmp word [rsp + 0x70], r12w
je 0x14001c37f
mov word [rbx], r13w
jmp 0x14001c37b
lea r11, [0x140035f50]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14001c377
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14001c37f
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 0x14001ef70
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 0x14001efa2
call fcn.14001e750
mov dword [rax], 0x16
call fcn.140019e50
jmp 0x14001f0c1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14001f0c1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14001f0c1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14001efd1
lock or dword [rcx + 0x14], 0x10
jmp 0x14001f0c1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14001efe5
call fcn.1400225c8
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14001b3d0
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14001c66c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14001f0af
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14001f07a
mov rcx, rsi
call fcn.14001b3d0
cmp eax, edi
je 0x14001f065
mov rcx, rsi
call fcn.14001b3d0
cmp eax, 0xfffffffe
je 0x14001f065
mov rcx, rsi
call fcn.14001b3d0
movsxd rbx, eax
lea r14, [0x140035f50]
mov rcx, rsi
sar rbx, 6
call fcn.14001b3d0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14001f06c
lea rdx, [0x140034c30]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001f07a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14001f09e
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14001f09e
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14001f09e
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 0x14001f0c4
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
Function at 0x140020bc0
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 0x140020bf0
xor eax, eax
jmp 0x140020cb3
mov rbp, rbx
cmp word [rax], si
je 0x140020c15
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140020bfc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140020bf8
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.140020b10
movsxd r14, eax
test eax, eax
jne 0x140020c53
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140020be9
mov rcx, r14
call fcn.14001f0dc
mov rdi, rax
test rax, rax
jne 0x140020c6c
xor ecx, ecx
call fcn.14001ce48
jmp 0x140020c48
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.140020b10
test eax, eax
jne 0x140020c9d
mov rcx, rdi
call fcn.14001ce48
jmp 0x140020ca7
xor ecx, ecx
call fcn.14001ce48
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 0x1400245f0
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.14001ba44
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001ba44
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140024740
cmp rax, 0xffffffffffffffff
je 0x140024740
xor edi, edi
test rbp, rbp
jle 0x1400246eb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f13c
mov rbx, rax
test rax, rax
jne 0x140024678
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400246e1
mov edx, 0x8000
mov ecx, r14d
call fcn.14001aea8
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.14001dfe8
cmp eax, 0xffffffff
je 0x1400246c1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140024688
mov edx, r15d
mov ecx, r14d
call fcn.14001aea8
jmp 0x1400246e1
cmp byte [rsi + 0x38], dil
je 0x1400246d8
cmp dword [rsi + 0x34], 5
jne 0x1400246d8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400246e1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001ce48
jmp 0x140024754
jns 0x140024754
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001ba44
cmp rax, 0xffffffffffffffff
jne 0x14002470c
cmp byte [rsi + 0x30], dil
je 0x140024754
mov edi, dword [rsi + 0x2c]
jmp 0x140024754
mov ecx, r14d
call fcn.140021630
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140024754
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 0x140024754
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002474d
mov eax, dword [rsi + 0x2c]
jmp 0x140024752
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001ba44
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