joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bc980
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
mov rax, qword [rcx + 0x130]
lea r9, [0x1401c16a0]
movss xmm2, dword [rcx + 0x148]
movss xmm3, dword [rcx + 0x14c]
movsxd rcx, dword [rcx + 0x128]
movss xmm0, dword [rdx]
movss xmm1, dword [rdx + 4]
subss xmm0, xmm2
subss xmm1, xmm3
mov r8d, dword [rax + rcx*4 - 4]
not r8d
movzx ecx, r8b
shr r8d, 8
movss dword [rsp], xmm0
movzx eax, byte [rsp]
xor rcx, rax
movss xmm0, dword [rdx + 8]
movzx eax, byte [rsp + 1]
subss xmm0, xmm2
movss dword [rsp + 4], xmm1
movss xmm1, dword [rdx + 0xc]
xor r8d, dword [r9 + rcx*4]
subss xmm1, xmm3
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 2]
movss dword [rsp + 8], xmm0
movss dword [rsp + 0xc], xmm1
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 3]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 4]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 5]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 6]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 7]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 8]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 9]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xa]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xb]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xc]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xd]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xe]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx ecx, byte [rsp + 0xf]
movzx edx, r8b
shr r8d, 8
xor rdx, rcx
xor r8d, dword [r9 + rdx*4]
not r8d
mov eax, r8d
add rsp, 0x18
ret

Function at 0x1400bdb40
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 0x1400bdb9d
lea rbx, [0x1401c16a0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400bdb84
cmp r10, 2
jb 0x1400bdb84
cmp byte [r9], r8b
jne 0x1400bdb84
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 0x1400bdb60
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1400bdbdf
lea rbx, [0x1401c16a0]
cmp r8b, 0x23
jne 0x1400bdbc3
cmp byte [r9], r8b
jne 0x1400bdbc3
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 0x1400bdbb0
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x1400bde10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x10
mov qword [rsp + 0x30], rbx
lea r13, [0x140000000]
mov qword [rsp + 0x38], rbp
mov rdi, rdx
mov qword [rsp + 0x40], rsi
mov rax, rcx
mov qword [rsp + 8], r14
xor r12d, r12d
mov qword [rsp], r15
test rdi, rdi
je 0x1400bde50
cmp rax, rdi
jae 0x1400bdfc8
movzx r8d, byte [rax]
test r8b, r8b
je 0x1400bdfc8
xor ebx, ebx
mov ecx, r8d
shr rcx, 3
mov rdx, rdi
movsx r9, byte [rcx + r13 + 0x1c28c0]
test r9d, r9d
sete bl
add ebx, r9d
test rdi, rdi
jne 0x1400bde86
movsxd rdx, ebx
add rdx, rax
xor esi, esi
lea rcx, [rax + 1]
cmp rax, rdx
cmovb esi, r8d
cmp rcx, rdx
jae 0x1400bde9e
movzx r15d, byte [rcx]
jmp 0x1400bdea1
xor r15b, r15b
lea rcx, [rax + 2]
cmp rcx, rdx
jae 0x1400bdeb0
movzx r14d, byte [rcx]
jmp 0x1400bdeb3
xor r14b, r14b
lea rcx, [rax + 3]
cmp rcx, rdx
jae 0x1400bdec1
movzx ebp, byte [rcx]
jmp 0x1400bdec4
xor bpl, bpl
lea r10, [r9*4]
movzx ecx, sil
mov r9d, dword [r10 + r13 + 0x1c28e0]
and r9d, ecx
movzx r8d, r15b
shl r9d, 6
mov ecx, r8d
and ecx, 0x3f
movzx edx, r14b
or r9d, ecx
movzx r11d, bpl
shl r9d, 6
and r8d, 0xc0
mov ecx, edx
and edx, 0xc0
and ecx, 0x3f
or r9d, ecx
mov ecx, r11d
shr r11d, 2
and ecx, 0x3f
or r11d, edx
shl r9d, 6
shr r11d, 2
or r9d, ecx
mov ecx, dword [r10 + r13 + 0x1c2910]
or r11d, r8d
shr r9d, cl
shr r11d, 2
mov edx, r9d
cmp r9d, dword [r10 + r13 + 0x1c28f8]
sbb ecx, ecx
and edx, 0xfffff800
and ecx, 0x40
xor r8d, r8d
or r11d, ecx
mov ecx, 0x80
cmp edx, 0xd800
cmove r8d, ecx
xor edx, edx
or r11d, r8d
mov ecx, 0x100
cmp r9d, 0xffff
cmova edx, ecx
mov ecx, dword [r10 + r13 + 0x1c2928]
or r11d, edx
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x1400bdfba
xor edx, edx
test bpl, bpl
setne dl
xor ecx, ecx
test r14b, r14b
setne cl
add edx, ecx
xor ecx, ecx
test r15b, r15b
setne cl
add edx, ecx
xor ecx, ecx
test sil, sil
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
mov ebx, edx
movsxd rcx, ebx
add rax, rcx
inc r12d
jmp 0x1400bde42
mov r15, qword [rsp]
mov eax, r12d
mov r14, qword [rsp + 8]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x10
pop r13
pop r12
pop rdi
ret
Function at 0x1400be040
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
movsxd rax, edx
mov rdi, rcx
dec rax
mov qword [r11 + 0x20], rsi
mov rsi, r9
xor r9d, r9d
lea rax, [rcx + rax*2]
mov qword [rsp], rax
cmp rcx, rax
jae 0x1400be257
mov qword [r11 + 0x18], rbp
lea rbp, [0x140000000]
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
nop
test rsi, rsi
je 0x1400be09e
cmp r8, rsi
jae 0x1400be234
movzx edx, byte [r8]
test dl, dl
je 0x1400be234
xor ebx, ebx
mov eax, edx
shr rax, 3
mov rcx, rsi
movsx r9, byte [rax + rbp + 0x1c28c0]
test r9d, r9d
sete bl
add ebx, r9d
test rsi, rsi
jne 0x1400be0d2
movsxd rcx, ebx
add rcx, r8
xor r14d, r14d
lea rax, [r8 + 1]
cmp r8, rcx
cmovb r14d, edx
cmp rax, rcx
jae 0x1400be0eb
movzx r13d, byte [rax]
jmp 0x1400be0ee
xor r13b, r13b
lea rax, [r8 + 2]
cmp rax, rcx
jae 0x1400be0fd
movzx r12d, byte [rax]
jmp 0x1400be100
xor r12b, r12b
lea rax, [r8 + 3]
cmp rax, rcx
jae 0x1400be10f
movzx r15d, byte [rax]
jmp 0x1400be112
xor r15b, r15b
lea r10, [r9*4]
movzx eax, r14b
mov ebp, dword [r10 + rbp + 0x1c28e0]
and ebp, eax
movzx r9d, r13b
shl ebp, 6
mov eax, r9d
and eax, 0x3f
movzx edx, r12b
or ebp, eax
movzx r11d, r15b
shl ebp, 6
and r9d, 0xc0
mov eax, edx
and edx, 0xc0
and eax, 0x3f
or ebp, eax
mov eax, r11d
shr r11d, 2
and eax, 0x3f
or r11d, edx
shl ebp, 6
or ebp, eax
shr r11d, 2
or r11d, r9d
lea rax, [0x140000000]
mov ecx, dword [r10 + rax + 0x1c2910]
shr r11d, 2
shr ebp, cl
mov ecx, 0x100
cmp ebp, dword [r10 + rax + 0x1c28f8]
sbb eax, eax
xor r9d, r9d
and eax, 0x40
mov edx, r9d
or r11d, eax
mov eax, ebp
and eax, 0xfffff800
cmp eax, 0xd800
mov eax, 0x80
cmove edx, eax
mov eax, r9d
or r11d, edx
cmp ebp, 0xffff
cmova eax, ecx
lea rcx, [0x140000000]
mov ecx, dword [r10 + rcx + 0x1c2928]
or r11d, eax
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x1400be216
test r15b, r15b
mov eax, r9d
mov ecx, r9d
mov ebp, 0xfffd
setne cl
test r12b, r12b
setne al
add ecx, eax
mov eax, r9d
test r13b, r13b
setne al
add ecx, eax
mov eax, r9d
test r14b, r14b
setne al
add ecx, eax
cmp ebx, ecx
cmovl ecx, ebx
mov ebx, ecx
mov word [rdi], bp
add rdi, 2
movsxd rax, ebx
lea rbp, [0x140000000]
add r8, rax
cmp rdi, qword [rsp]
jb 0x1400be090
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
mov r13, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov word [rdi], r9w
test rax, rax
je 0x1400be26d
mov qword [rax], r8
sub rdi, rcx
sar rdi, 1
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x1400cf550
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x20
mov rbx, qword [0x140214710]
cmp byte [rbx + 0x5e18], 0
jne 0x1400cf6a2
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400cf69b
lea rdx, [0x140143828]
mov qword [rsp + 0x40], rdi
call fcn.1400bd740
mov rdi, rax
test rax, rax
je 0x1400cf696
mov qword [rsp + 0x30], rbp
mov rcx, rax
mov qword [rsp + 0x38], rsi
call fcn.14011099c
mov ebp, eax
cmp eax, 0xffffffff
je 0x1400cf684
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call fcn.14010f284
test eax, eax
jne 0x1400cf684
mov rcx, rdi
call fcn.14011099c
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x1400cf684
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call fcn.14010f284
test eax, eax
jne 0x1400cf684
cmp rsi, 0xffffffffffffffff
je 0x1400cf684
mov rax, qword [0x140214710]
test rax, rax
je 0x1400cf611
inc dword [rax + 0xf8]
mov rdx, qword [0x140214720]
mov rcx, rsi
call qword [str.Pm_n_]
mov rbp, rax
test rax, rax
je 0x1400cf684
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rax
call fcn.14010ee9c
mov rcx, rdi
cmp rax, rsi
je 0x1400cf64b
call fcn.14010e40c
jmp 0x1400cf660
call fcn.14010e40c
test rsi, rsi
je 0x1400cf660
mov rdx, rsi
mov rcx, rbp
call fcn.1400bfa10
mov rax, qword [0x140214710]
test rax, rax
je 0x1400cf672
dec dword [rax + 0xf8]
mov rdx, qword [0x140214720]
mov rcx, rbp
call qword [str._m_n_]
jmp 0x1400cf68c
mov rcx, rdi
call fcn.14010e40c
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov byte [rbx + 0x5e18], 1
movss xmm0, dword [rbx + 0x5e1c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x1400cf6e5
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5e1c], xmm0
jb 0x1400cf6e5
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400cf6d4
call fcn.1400c9e10
jmp 0x1400cf6db
mov byte [rbx + 0xde], 1
mov dword [rbx + 0x5e1c], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400e2690
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140214710]
mov rcx, qword [rax + 0x4d10]
mov r10, qword [rax + 0x4018]
movsxd rax, dword [rcx + 0x74]
movups xmm0, xmmword [rcx + 0x168]
movss xmm4, dword [rcx + 0x168]
movss xmm3, dword [rcx + 0x16c]
movss xmm2, dword [rcx + 0x170]
movss xmm1, dword [rcx + 0x174]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x70
mov rax, qword [r10 + 0x2d8]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x270], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x2d8]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [r9 + 0x5c]
mov rdx, qword [r10 + 0x2d8]
mov rcx, qword [rcx + 0x198]
add rsp, 0x38
jmp fcn.1400ebff0

Function at 0x1400e2760
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140214710]
mov rcx, qword [rax + 0x4d10]
mov r9, qword [rax + 0x4018]
movups xmm0, xmmword [r9 + 0x270]
movups xmmword [rcx + 0x168], xmm0
mov rax, qword [r9 + 0x2d8]
movups xmm0, xmmword [rcx + 0x148]
movss xmm4, dword [rcx + 0x148]
movss xmm3, dword [rcx + 0x14c]
movss xmm2, dword [rcx + 0x150]
movss xmm1, dword [rcx + 0x154]
movups xmmword [r9 + 0x270], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x2d8]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [rcx + 0x226]
mov rcx, qword [rcx + 0x198]
mov rdx, qword [r9 + 0x2d8]
add rsp, 0x38
jmp fcn.1400ebff0
Function at 0x1400faf2c
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 0x1400fafb0
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1401c9940]
cmp byte [rcx + rax], 0
je 0x1400fafb0
dec r8
sub rdx, 1
jne 0x1400faf96
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400fd5e8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400fd632
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400fd632
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400fd632
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400fd632
cmp dword [rcx + 0x84], 0xe
jbe 0x1400fd632
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400fd634
xor al, al
add rsp, 0x28
ret
Function at 0x14011071c
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.1400fcdd0
sub rsp, rax
mov rax, qword [0x14020b948]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140120710
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14011076b
mov rax, rbp
jmp 0x140110873
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 + 0x215820]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140124a20
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x215820]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14011086f
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 0x14011086f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140124a20
test rax, rax
js 0x14011086f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14011086f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140110861
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140110861
cmp byte [rcx], 0xd
jne 0x140110847
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140110856
cmp byte [rcx + 1], 0xa
jne 0x140110856
inc rcx
jmp 0x140110856
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x20bd60]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140110829
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140110873
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400fc880
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 0x14011cbec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14011c9dc
Function at 0x1401239f8
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 0x140123a2a
call fcn.140108aa0
mov dword [rax], 0x16
call fcn.1401033c4
jmp 0x140123b49
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140123b49
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140123b49
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140123a59
lock or dword [rcx + 0x14], 0x10
jmp 0x140123b49
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140123a6d
call fcn.140124acc
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140120710
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140124248
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140123b37
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140123b02
mov rcx, rsi
call fcn.140120710
cmp eax, edi
je 0x140123aed
mov rcx, rsi
call fcn.140120710
cmp eax, 0xfffffffe
je 0x140123aed
mov rcx, rsi
call fcn.140120710
movsxd rbx, eax
lea r14, [0x140215820]
mov rcx, rsi
sar rbx, 6
call fcn.140120710
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140123af4
lea rdx, [0x14020bd10]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140123b02
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140123b26
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140123b26
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140123b26
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 0x140123b4c
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 0x140123d9c
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, [0x140215820]
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 0x140123dfa
cmp word [rdx], r12w
jne 0x140123dfa
or byte [rax + r8*8 + 0x38], cl
jmp 0x140123e00
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140123f5b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140123f36
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140123e39
mov rcx, r9
jmp 0x140123e5c
cmp r9, rdx
jae 0x140123e73
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 0x140123e1d
jmp 0x140123f5b
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 0x140123f30
cmp dword [rsp + 0x80], edi
je 0x140123f30
mov rdx, r14
lea r11, [0x140215820]
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 0x140123f09
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140123edc
mov word [rbx], r12w
jmp 0x140123f57
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 0x140123ee5
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140123f57
cmp word [rsp + 0x70], r12w
jne 0x140123f16
cmp rbx, rsi
je 0x140123ed6
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140124a28
cmp word [rsp + 0x70], r12w
je 0x140123f5b
mov word [rbx], r13w
jmp 0x140123f57
lea r11, [0x140215820]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140123f53
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140123f5b
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 0x140129680
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140129707
mov rsi, rbx
cmp word [rax], bp
je 0x1401296c6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401296b0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401296ac
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14011f3f4
mov rdi, rax
test rax, rax
je 0x1401296f4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400fe780
mov rbp, rdi
xor ecx, ecx
call fcn.14011f3b8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140130360
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.140124a28
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140124a28
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401304b0
cmp rax, 0xffffffffffffffff
je 0x1401304b0
xor edi, edi
test rbp, rbp
jle 0x14013045b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140121760
mov rbx, rax
test rax, rax
jne 0x1401303e8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140130451
mov edx, 0x8000
mov ecx, r14d
call fcn.14011cc68
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.1401236e8
cmp eax, 0xffffffff
je 0x140130431
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401303f8
mov edx, r15d
mov ecx, r14d
call fcn.14011cc68
jmp 0x140130451
cmp byte [rsi + 0x38], dil
je 0x140130448
cmp dword [rsi + 0x34], 5
jne 0x140130448
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140130451
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14011f3b8
jmp 0x1401304c4
jns 0x1401304c4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140124a28
cmp rax, 0xffffffffffffffff
jne 0x14013047c
cmp byte [rsi + 0x30], dil
je 0x1401304c4
mov edi, dword [rsi + 0x2c]
jmp 0x1401304c4
mov ecx, r14d
call fcn.14012a060
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401304c4
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 0x1401304c4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401304bd
mov eax, dword [rsi + 0x2c]
jmp 0x1401304c2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140124a28
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 0x1400ecbd4
Capabilities:
Parse pe header

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