joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800082f0
Capabilities:
Encode data using xor

Disassembly:
invalid
or byte [rdx + rbx*8 - 0x2f], ah
mov edi, 0x60e7d460
fcomi st(0)
jrcxz 0x18000833e
cmpsb byte [rsi], byte [rdi]
xor ecx, eax
leave
jl 0x1800082cc
pop rcx
cmpsd dword ss:[rsi], dword [rdi]
xchg dword [rdx + 0x4e39c91f], ecx
cmp dh, byte [rdx + 0xecee327]
xor eax, 0xeb3b018
mov bl, 0xe
in al, dx
add dword [rsp + rcx*2 + 0x36], ebx
xor cl, byte [0x1976fac81]
push rbx
mov esi, 0x2f5a0bd2
jns 0x180008319
invalid
invalid

Function at 0x180633058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1806331df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180633089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18063306f
add dl, dl
jne 0x180633096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806330f6
xor eax, eax
add dl, dl
jne 0x1806330a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806331ad
add dl, dl
jne 0x1806330b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806330c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806330d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806330dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1806330ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18063307e
mov eax, 1
add dl, dl
jne 0x180633106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180633113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1806330fb
sub eax, ebx
mov ebx, 1
jne 0x18063314c
mov ecx, 1
add dl, dl
jne 0x18063312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18063313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180633123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18063307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180633168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180633175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18063315d
cmp eax, 0x7d00
jae 0x18063319b
cmp eax, 0x500
jb 0x180633196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18063307e
cmp eax, 0x7f
ja 0x18063319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18063307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1806331d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x18063307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140004890
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rbp
push r13
push r14
mov eax, 0x1078
call fcn.140024830
sub rsp, rax
mov rax, qword [0x140072090]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov r14, rdx
mov qword [rsp + 0x38], r9
mov rdx, qword [rsp + 0x10c0]
xor ebp, ebp
mov qword [rsp + 0x30], rdx
mov r13, r8
mov qword [rsp + 0x40], rcx
test r8, r8
jne 0x1400048e2
mov rdx, rbp
jmp 0x1400049ab
mov r9d, 0x1000
lea rdx, [rsp + 0x50]
call fcn.140003340
test al, al
je 0x1400048da
mov qword [rsp + 0x10a8], rsi
mov qword [rsp + 0x1070], rdi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x1068], r12
mov qword [rsp + 0x1060], r15
nop dword [rax]
inc rdi
cmp byte [r14 + rdi], bpl
jne 0x140004920
movsxd rax, dword [rsp + 0x8c]
lea rcx, [rsp + 0x50]
add rcx, rax
mov esi, ebp
movzx eax, word [rcx + 0x14]
lea r12, [rcx + 0x18]
movzx r15d, word [rcx + 6]
add r12, rax
test r15d, r15d
je 0x140004988
mov eax, esi
mov r8, rdi
mov rdx, r14
lea rcx, [rax + rax*4]
lea rbx, [r12 + rcx*8]
mov rcx, rbx
call fcn.140026920
test eax, eax
jne 0x140004981
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], bpl
jne 0x140004973
cmp rdi, rax
je 0x1400049e5
inc esi
cmp esi, r15d
jb 0x140004950
mov rdx, rbp
mov r12, qword [rsp + 0x1068]
mov rdi, qword [rsp + 0x1070]
mov rsi, qword [rsp + 0x10a8]
mov r15, qword [rsp + 0x1060]
mov rax, qword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov r8d, ebp
mov qword [rsp + 0x20], rax
call fcn.140004780
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140023ae0
add rsp, 0x1078
pop r14
pop r13
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0xc]
test eax, eax
je 0x140004988
mov ecx, dword [rbx + 8]
lea rdx, [rsp + 0x50]
add rdx, rax
je 0x140004988
test ecx, ecx
je 0x140004988
lea rax, [rsp + 0x50]
mov ebp, ecx
sub rdx, rax
add rdx, r13
jmp 0x14000498b
Function at 0x1400055c0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1400055e2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14000565c
mov rdi, r14
mov rcx, rbx
call fcn.140006e40
test rax, rax
jle 0x140005634
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140025e30
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000564c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140005654
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1400055f6
sub r14, rdi
jmp 0x14000573f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140005673
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005675
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400056a7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140025e30
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000573c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400056e2
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 rbp, 0xfff
jbe 0x14000571d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14002ed6c
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14000573c
cmp rbp, rax
ja 0x1400056f0
test rbp, rbp
je 0x14000573c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14002ed6c
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x14000a150
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000a1ef
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14000a1ef
mov r8d, dword [rax + rcx + 0xd8]
test r8d, r8d
je 0x14000a1e2
mov rdi, qword [r8 + rcx + 0x58]
test rdi, rdi
je 0x14000a1e2
sub rcx, rdx
movabs rsi, 0x2b992ddfa232
add rdi, rcx
cmp qword [rdi], rsi
jne 0x14000a1ef
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
movabs rcx, 0x2b992ddfa233
xor rax, rbx
mov rbx, qword [rsp + 0x30]
xor rax, rsi
cmp rax, rsi
cmove rax, rcx
mov qword [rdi], rax
mov al, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov al, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x38]
xor al, al
add rsp, 0x20
pop rdi
ret

Function at 0x14000a880
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140072090]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14000a992
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000a992
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov qword [rsp + 0x58], r8
mov ecx, dword [rax + rdx + 0xb0]
test ecx, ecx
jne 0x14000a8f9
mov qword [rdi], r8
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r8
jmp 0x14000a99d
lea rbx, [rdx + rcx]
mov ebp, dword [rax + rdx + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x50]
cmp rbx, rbp
jae 0x14000a980
mov edx, dword [rbx + 4]
test edx, edx
je 0x14000a980
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x30], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x38], rax
lea rax, [rdx - 8]
shr rax, 1
mov dword [rsp + 0x40], eax
cmp rcx, r8
je 0x14000a959
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x40]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x50], rcx
jmp 0x14000a975
lea r8, [rsp + 0x30]
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.14000b2a0
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rbp
jb 0x14000a911
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r8
jmp 0x14000a99d
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140023ae0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000c290
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x50
mov rax, qword [0x140072090]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edx, edx
lea r9, [rsp + 0x20]
mov rsi, rcx
xor r14d, r14d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov ebx, r14d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14000c31e
test rbx, rbx
je 0x14000c2e6
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14000c2d0
test eax, eax
jns 0x14000c33f
test rbx, rbx
je 0x14000c344
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14000c443
test rbx, rbx
jne 0x14000c34b
xor eax, eax
jmp 0x14000c443
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rdi
mov edi, r14d
cmp dword [rbx], r14d
jbe 0x14000c423
nop dword [rax]
nop dword [rax + rax]
mov eax, edi
mov r8, 0xffffffffffffffff
imul rcx, rax, 0x128
movzx edx, word [rcx + rbx + 0x2e]
lea rbp, [rcx + rbx]
add rdx, 0x30
mov qword [rsp + 0x28], r14
add rdx, rcx
mov qword [rsp + 0x38], r14
add rdx, rbx
mov qword [rsp + 0x40], r14
inc r8
cmp byte [rdx + r8], r14b
jne 0x14000c3a2
lea rcx, [rsp + 0x28]
call fcn.140008f30
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
jb 0x14000c3c2
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0x10
lea rcx, [rsp + 0x28]
cmovae rcx, qword [rsp + 0x28]
call fcn.14002e878
test eax, eax
je 0x14000c459
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14000c419
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c414
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000c4ac
call fcn.140023b00
inc edi
cmp edi, dword [rbx]
jb 0x14000c370
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140023ae0
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
mov rdi, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14000c4a7
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c4a2
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000c4ac
call fcn.140023b00
mov rax, rdi
jmp 0x14000c436
call fcn.14002f57c
int3
Function at 0x14000f240
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rdi
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
mov eax, dword [0x140069348]
xor r8d, r8d
cmp dword [0x140072098], 2
mov rdi, rcx
movups xmm0, xmmword [str.qsqwqsq]
mov dword [rbp + 0x17], eax
movups xmm1, xmmword [0x140069338]
movzx eax, byte [0x14006934c]
movups xmmword [rbp - 9], xmm0
mov byte [rbp + 0x1b], al
movups xmmword [rbp + 7], xmm1
jl 0x14000f405
movdqa xmm0, xmmword [str.0000000000000000]
lea rcx, [rbp - 5]
movdqa xmm5, xmmword [0x140069630]
mov eax, 5
movdqa xmm4, xmmword [0x140069680]
movaps xmmword [r11 - 0x18], xmm6
movaps xmmword [rsp + 0x70], xmm7
movdqa xmm7, xmmword [0x140069650]
movd xmm6, eax
mov eax, 0x1f
movaps xmmword [r11 - 0x38], xmm8
movdqa xmmword [rbp - 0x19], xmm0
mov edx, dword [rbp - 0x19]
movd xmm8, eax
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add r8d, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x140069660]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
pxor xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x140069660]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
pxor xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x20
jl 0x14000f2e1
movaps xmm8, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x80]
cmp r8d, 0x25
jge 0x14000f444
movsxd rax, r8d
lea r9, [rbp - 9]
add r9, rax
nop
mov eax, 0x8fb823ef
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x30
xor byte [r9 - 1], al
cmp r8d, 0x25
jl 0x14000f410
movsd xmm0, qword [str.ttax_zf]
mov ebx, 8
movsd qword [rbp - 0x19], xmm0
xor byte [rbp - 0x18], 0x31
xor byte [rbp - 0x17], 0x32
xor byte [rbp - 0x16], 0x33
xor byte [rbp - 0x15], 0x34
xor byte [rbp - 0x14], 0x35
xor byte [rbp - 0x13], 0x36
xor byte [rbp - 0x12], 0x37
mov byte [rbp - 0x19], 0x44
mov rax, qword [rbp - 0x19]
mov qword [rdi], rax
nop dword [rax]
call fcn.14002d970
and eax, 7
movzx eax, byte [rbp + rax - 9]
mov byte [rbx + rdi], al
inc rbx
cmp rbx, 0x10
jl 0x14000f480
lea r11, [rsp + 0x90]
mov byte [rdi + 0xf], 0
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140020940
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push r12
push r13
push r14
sub rsp, 0x38
mov qword [rsp + 0x30], rsi
mov r13, rcx
mov rsi, qword [rdx + 0x10]
mov r8, rdx
mov qword [rsp + 0x28], rdi
mov rdi, rdx
mov qword [rsp + 0x20], r15
mov r15, qword [rdx + 0x18]
cmp r15, 0x10
jb 0x140020975
mov r8, qword [rdx]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
test rsi, rsi
je 0x1400209a4
movabs r9, 0x100000001b3
movzx eax, byte [rcx + r8]
inc rcx
xor rdx, rax
imul rdx, r9
cmp rcx, rsi
jb 0x140020990
mov r14, qword [r13 + 0x30]
mov r12, qword [r13 + 8]
and r14, rdx
shl r14, 4
add r14, qword [r13 + 0x18]
mov rcx, qword [r14 + 8]
mov rbx, rcx
cmp rcx, r12
jne 0x1400209c7
xor ebx, ebx
jmp 0x140020a15
mov qword [rsp + 0x70], rbp
mov rbp, qword [r14]
nop
cmp qword [rbx + 0x28], 0x10
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
jb 0x1400209e2
mov rdx, qword [rdx]
mov rcx, rdi
cmp r15, 0x10
jb 0x1400209ee
mov rcx, qword [rdi]
cmp rsi, rax
jne 0x1400209ff
mov r8, rsi
call fcn.140026920
test eax, eax
je 0x140020a0c
cmp rbx, rbp
je 0x140020a0a
mov rbx, qword [rbx + 8]
jmp 0x1400209d0
xor ebx, ebx
mov rcx, qword [r14 + 8]
mov rbp, qword [rsp + 0x70]
mov r15, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
test rbx, rbx
je 0x140020ad7
mov rax, qword [r14]
cmp rcx, rbx
jne 0x140020a4d
cmp rax, rbx
jne 0x140020a43
mov qword [r14], r12
mov qword [r14 + 8], r12
jmp 0x140020a58
mov r12, qword [rbx + 8]
mov qword [r14 + 8], r12
jmp 0x140020a58
cmp rax, rbx
jne 0x140020a58
mov rax, qword [rbx]
mov qword [r14], rax
mov rcx, qword [rbx]
dec qword [r13 + 0x10]
mov rax, qword [rbx + 8]
mov qword [rax], rcx
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
mov rdx, qword [rbx + 0x28]
cmp rdx, 0x10
jb 0x140020aa5
mov rcx, qword [rbx + 0x10]
inc rdx
cmp rdx, 0x1000
jb 0x140020aa0
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140020ae5
mov rcx, r8
call fcn.140023b00
mov edx, 0x30
mov qword [rbx + 0x20], 0
mov rcx, rbx
mov qword [rbx + 0x28], 0xf
mov byte [rbx + 0x10], 0
call fcn.140023b00
mov eax, 1
add rsp, 0x38
pop r14
pop r13
pop r12
pop rbx
ret
xor eax, eax
add rsp, 0x38
pop r14
pop r13
pop r12
pop rbx
ret
call fcn.14002f57c
int3
Function at 0x140022be4
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 0x140022c68
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140052910]
cmp byte [rcx + rax], 0
je 0x140022c68
dec r8
sub rdx, 1
jne 0x140022c4e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400249e4
Capabilities:
Parse pe header

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

Function at 0x14002dda4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14002ddc4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14002fa5c
or eax, 0xffffffff
jmp 0x14002ddc6
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400361a0
Capabilities:
Parse pe header

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

Function at 0x14003d964
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003d97a
mov al, 1
jmp 0x14003d9da
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003d98b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003d9d8
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400451bc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003d9d8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003d9d8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003d9d8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003d9da
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14003f118
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.140024830
sub rsp, rax
mov rax, qword [0x140072090]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14003c080
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14003f167
mov rax, rbp
jmp 0x14003f26f
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 + 0x7acc0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140040064
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x7acc0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14003f26b
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 0x14003f26b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140040064
test rax, rax
js 0x14003f26b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14003f26b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14003f25d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14003f25d
cmp byte [rcx], 0xd
jne 0x14003f243
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14003f252
cmp byte [rcx + 1], 0xa
jne 0x14003f252
inc rcx
jmp 0x14003f252
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x72650]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14003f225
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14003f26f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140023ae0
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 0x14003f404
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, [0x14007acc0]
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 0x14003f45b
cmp word [rdx], r13w
jne 0x14003f45b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14003f460
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14003f585
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14003f5a6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14003f499
mov rdx, r9
mov word [rbx], cx
jmp 0x14003f4c0
cmp r9, r8
jae 0x14003f4d0
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 0x14003f47a
jmp 0x14003f585
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 0x14003f57a
cmp dword [rsp + 0x80], esi
je 0x14003f57a
lea r8, [0x14007acc0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14003f552
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14003f522
mov word [rbx], r13w
jmp 0x14003f582
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 0x14003f52f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14003f582
cmp word [rsp + 0x70], r13w
jne 0x14003f55f
cmp rbx, r14
je 0x14003f51c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14004006c
cmp word [rsp + 0x70], r13w
je 0x14003f585
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, [0x14007acc0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14003f57f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14003f585