joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c1314
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 0x1400c1344
xor eax, eax
jmp 0x1400c1407
mov rbp, rbx
cmp word [rax], si
je 0x1400c1369
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400c1350
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400c134c
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.1400bcd54
movsxd r14, eax
test eax, eax
jne 0x1400c13a7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400c133d
mov rcx, r14
call fcn.1400b9f90
mov rdi, rax
test rax, rax
jne 0x1400c13c0
xor ecx, ecx
call fcn.1400b8df0
jmp 0x1400c139c
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.1400bcd54
test eax, eax
jne 0x1400c13f1
mov rcx, rdi
call fcn.1400b8df0
jmp 0x1400c13fb
xor ecx, ecx
call fcn.1400b8df0
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 0x1400c1424
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 0x1400c14ab
mov rsi, rbx
cmp word [rax], bp
je 0x1400c146a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400c1454
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400c1450
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400b9f90
mov rdi, rax
test rax, rax
je 0x1400c1498
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400c8d90
mov rbp, rdi
xor ecx, ecx
call fcn.1400b8df0
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 0x1400c440c
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.1400b8a18
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 0x1400c44ad
cmp ebx, dword [rsp + 0x30]
je 0x1400c44a6
test esi, esi
je 0x1400c44a6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400c4481
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400c448e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400c446b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400c4492
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400c44af
mov eax, 1
jmp 0x1400c44af
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400c47c0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400c47e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400a88a4
or eax, 0xffffffff
jmp 0x1400c47e2
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400c6be0
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14011f980]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400c6c2a
call fcn.1400a8910
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1400a8930
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14009f944
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140099b50
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400c6c35
lea eax, [rbx + 1]
jmp 0x1400c6c17
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400c6c15
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400c6c17
Function at 0x1400c6f84
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400a4da0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400c700e
cmp byte [rbp - 0x21], r15b
je 0x1400c7009
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400c7044
call fcn.1400b914c
test eax, eax
jne 0x1400c7030
cmp byte [rbp - 0x21], r15b
je 0x1400c7028
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400c7044
cmp byte [rbp - 0x21], r15b
je 0x1400c7041
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400ae878
test eax, eax
jne 0x1400c70e4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400a4da0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400c7083
cmp byte [rbp - 0x21], r15b
je 0x1400c70b8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400c70b8
call fcn.1400b914c
test eax, eax
jne 0x1400c70a4
cmp byte [rbp - 0x21], r15b
je 0x1400c709d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400c70b8
cmp byte [rbp - 0x21], r15b
je 0x1400c70b5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400ae878
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400c70e4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400c70e7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400c70f5
mov rcx, rdi
call fcn.1400b8df0
cmp byte [rbp + 0x3f], r15b
je 0x1400c7104
mov rcx, qword [rbp + 0x27]
call fcn.1400b8df0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400c8a40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400c8a68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400c8a68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400015c0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r8
call section..text
test eax, eax
js 0x1400017fe
mov eax, dword [rbx + 0xf0]
xor r10d, r10d
shl eax, 2
movsxd r9, eax
test eax, eax
jle 0x14000164d
lea r8, [rbx + 8]
lea r8, [r8 + r9*4]
lea rax, [rbx + 8]
nop word [rax + rax]
mov edx, dword [rax - 8]
add r10, 4
mov ecx, dword [r8 - 8]
lea r8, [r8 - 0x10]
mov dword [rax - 8], ecx
lea rax, [rax + 0x10]
mov ecx, dword [r8 + 0xc]
sub r9, 4
mov dword [r8 + 8], edx
mov edx, dword [rax - 0x14]
mov dword [rax - 0x14], ecx
mov ecx, dword [r8 + 0x10]
mov dword [r8 + 0xc], edx
mov edx, dword [rax - 0x10]
mov dword [rax - 0x10], ecx
mov ecx, dword [r8 + 0x14]
mov dword [r8 + 0x10], edx
mov edx, dword [rax - 0xc]
mov dword [rax - 0xc], ecx
mov dword [r8 + 0x14], edx
cmp r10, r9
jl 0x140001600
mov r11d, 1
cmp dword [rbx + 0xf0], r11d
jle 0x1400017fc
mov qword [rsp + 0x30], rdi
lea r10, [rbx + 2]
lea rdi, [0x140000000]
mov r8d, dword [r10 + 0xe]
lea r10, [r10 + 0x10]
mov eax, r8d
inc r11d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x55870]
movzx eax, byte [r10 - 1]
mov r9d, dword [rdi + rdx*4 + 0x55c70]
movzx ecx, byte [rdi + rax*4 + 0x55870]
movzx eax, r8b
xor r9d, dword [rdi + rcx*4 + 0x56470]
movzx ecx, byte [rdi + rax*4 + 0x55870]
movzx eax, byte [r10]
xor r9d, dword [rdi + rcx*4 + 0x56870]
movzx ecx, byte [rdi + rax*4 + 0x55870]
movzx eax, byte [r10 + 3]
xor r9d, dword [rdi + rcx*4 + 0x56070]
movzx edx, byte [rdi + rax*4 + 0x55870]
movzx eax, byte [r10 + 4]
mov dword [r10 - 2], r9d
mov r9d, dword [r10 + 2]
mov r8d, dword [rdi + rdx*4 + 0x56470]
movzx ecx, byte [rdi + rax*4 + 0x55870]
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rdi + rcx*4 + 0x56070]
movzx ecx, byte [rdi + rax*4 + 0x55870]
movzx eax, r9b
mov r9d, dword [r10 + 6]
xor r8d, dword [rdi + rcx*4 + 0x55c70]
movzx ecx, byte [rdi + rax*4 + 0x55870]
movzx eax, byte [r10 + 7]
xor r8d, dword [rdi + rcx*4 + 0x56870]
movzx edx, byte [rdi + rax*4 + 0x55870]
movzx eax, byte [r10 + 8]
mov dword [r10 + 2], r8d
mov r8d, dword [rdi + rdx*4 + 0x56470]
movzx ecx, byte [rdi + rax*4 + 0x55870]
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rdi + rcx*4 + 0x56070]
movzx ecx, byte [rdi + rax*4 + 0x55870]
movzx eax, r9b
mov r9d, dword [r10 + 0xa]
xor r8d, dword [rdi + rcx*4 + 0x55c70]
movzx ecx, byte [rdi + rax*4 + 0x55870]
movzx eax, byte [r10 + 0xb]
xor r8d, dword [rdi + rcx*4 + 0x56870]
movzx edx, byte [rdi + rax*4 + 0x55870]
movzx eax, byte [r10 + 0xc]
mov dword [r10 + 6], r8d
mov r8d, dword [rdi + rdx*4 + 0x56470]
movzx ecx, byte [rdi + rax*4 + 0x55870]
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rdi + rcx*4 + 0x56070]
movzx ecx, byte [rdi + rax*4 + 0x55870]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x55c70]
movzx ecx, byte [rdi + rax*4 + 0x55870]
xor r8d, dword [rdi + rcx*4 + 0x56870]
mov dword [r10 + 0xa], r8d
cmp r11d, dword [rbx + 0xf0]
jl 0x140001670
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140004650
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, rcx
or eax, 0xffffffff
movzx ecx, byte [rcx]
test cl, cl
je 0x1400046fa
movzx edx, cl
lea r8, [r8 + 1]
xor eax, edx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
movzx ecx, byte [r8]
test cl, cl
jne 0x140004661
not eax
ret
Function at 0x14000b8e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov esi, r8d
mov r15, rdx
mov rdi, rcx
xor eax, eax
mov r9, rcx
nop word [rax + rax]
mov byte [r9], al
lea r9, [r9 + 1]
inc eax
cmp eax, 0x100
jl 0x14000b910
xor r11d, r11d
movzx ebp, sil
xor r8b, r8b
lea r14, [rcx + 0xff]
mov r10d, 0xff
nop word [rax + rax]
xor ebx, ebx
mov r9d, 1
cmp r10d, r9d
jbe 0x14000b960
nop dword [rax]
lea r9d, [r9*2 + 1]
cmp r9d, r10d
jb 0x14000b950
nop dword [rax]
movzx eax, r8b
movzx r8d, byte [r11 + r15]
inc r11d
add r8b, byte [rax + rdi]
cmp r11d, ebp
jb 0x14000b97b
xor r11d, r11d
add r8b, sil
movzx eax, r8b
inc ebx
and eax, r9d
cmp ebx, 0xb
jbe 0x14000b990
xor edx, edx
div r10d
mov eax, edx
cmp eax, r10d
ja 0x14000b960
movzx edx, byte [r14]
movzx ecx, al
movzx eax, byte [rcx + rdi]
mov byte [r14], al
dec r14
mov byte [rcx + rdi], dl
sub r10d, 1
jne 0x14000b940
movzx eax, byte [rdi + 1]
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov byte [rdi + 0x100], al
movzx eax, byte [rdi + 3]
mov byte [rdi + 0x101], al
movzx eax, byte [rdi + 5]
mov byte [rdi + 0x102], al
movzx eax, byte [rdi + 7]
mov byte [rdi + 0x103], al
movzx eax, r8b
movzx ecx, byte [rax + rdi]
mov rax, rdi
mov byte [rdi + 0x104], cl
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
Function at 0x140028660
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x5c]
call fcn.1400354a0
mov eax, 1
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
add rsp, 0x20
pop rbx
ret
Function at 0x14002dc60
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
cmp byte [rcx + 8], 0
mov r9, rcx
je 0x14002dc9b
xor ecx, ecx
cmp dword [r9 + 0x3d0], ecx
jle 0x14002dc96
sub r8, rdx
nop dword [rax + rax]
movzx eax, byte [r8 + rdx]
inc ecx
xor byte [rdx], al
lea rdx, [rdx + 1]
cmp ecx, dword [r9 + 0x3d0]
jl 0x14002dc80
add rsp, 0x58
ret
lea rax, vtable.std::exception.0
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x38]
xor eax, eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov rax, qword [0x14007b168]
mov qword [rsp + 0x20], rax
call fcn.140036b54
lea rdx, [0x140078118]
lea rcx, [rsp + 0x30]
call fcn.140034c28
int3
Function at 0x140030e40
Capabilities:
Check http status code

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0xa0
mov qword [r11 - 0x68], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rax, qword [0x14007a0d0]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rsi, rcx
xor dil, dil
lea rcx, [r11 - 0x40]
call fcn.14002b090
nop
mov qword [rsp + 0x70], 0xf
xor ebp, ebp
mov qword [rsp + 0x68], rbp
mov byte [rsp + 0x58], bpl
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1400287c0
xor ecx, ecx
call fcn.1400300c0
mov r8d, eax
mov r14d, 1
mov r9d, r14d
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.14002ffb0
nop
mov rax, qword [rsp + 0x90]
cmp rax, 0x10
jb 0x140030f1e
inc rax
mov rcx, qword [rsp + 0x78]
cmp rax, 0x1000
jb 0x140030f19
test cl, 0x1f
je 0x140030eec
call fcn.1400378b8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140030efb
call fcn.1400378b8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140030f0a
call fcn.1400378b8
int3
cmp rcx, 0x27
jbe 0x140030f16
call fcn.1400378b8
int3
mov rcx, rax
call fcn.140033508
cmp byte [rsi + 0x20], 0
je 0x14003103b
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.1400300e0
nop
cmp qword [rax + 0x18], 0x10
jb 0x140030f3f
mov rax, qword [rax]
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], 0x4080000
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, str.HTTP_1.0
lea r8, [0x140059724]
mov rdx, rax
mov rcx, qword [rsi + 0x30]
call fcn.140013840
mov rbx, rax
mov rcx, qword [rsp + 0x70]
cmp rcx, 0x10
jb 0x140030fcf
inc rcx
mov rdx, qword [rsp + 0x58]
cmp rcx, 0x1000
jb 0x140030fc7
test dl, 0x1f
je 0x140030f9a
call fcn.1400378b8
int3
mov rax, qword [rdx - 8]
cmp rax, rdx
jb 0x140030fa9
call fcn.1400378b8
int3
sub rdx, rax
cmp rdx, 8
jae 0x140030fb8
call fcn.1400378b8
int3
cmp rdx, 0x27
jbe 0x140030fc4
call fcn.1400378b8
int3
mov rdx, rax
mov rcx, rdx
call fcn.140033508
mov qword [rsp + 0x70], 0xf
mov qword [rsp + 0x68], rbp
mov byte [rsp + 0x58], 0
test rbx, rbx
je 0x140031033
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1400139c0
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
mov edx, 0x20000013
mov rcx, rbx
call fcn.140013ae0
movzx edi, dil
cmp dword [rsp + 0x40], 0xc8
cmove edi, r14d
mov rcx, rbx
call fcn.140027070
mov rcx, rsi
call fcn.140030080
movzx eax, dil
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400335a0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14004011c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14003ffaf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003ffaf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003ffaf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003ffaf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003ffaf
cmp dword [rcx + 0x84], 0xe
jbe 0x14003ffaf
cmp dword [rcx + 0xf8], 0
je 0x14003ffaf
mov ecx, ebx
call fcn.140040050
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14003fe40
cmp dword [rbp + 0x20], 0
je 0x14003fffc
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140040004
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003ff48
Function at 0x1400056c0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x1400056e4
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x140005772
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140005740
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x140005740
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.140033770
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000575d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140005765
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x140005701
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x140005850
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140005789
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000578b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400057bd
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.140033770
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000584d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400057f8
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 rsi, 0xfff
jbe 0x14000582e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.140021eb4
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x14000584d
cmp rsi, rax
ja 0x140005801
test rsi, rsi
je 0x14000584d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140021eb4
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret

Function at 0x14001bc48
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001bc92
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001bc92
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001bc92
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001bc92
cmp dword [rcx + 0x84], 0xe
jbe 0x14001bc92
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001bc94
xor al, al
add rsp, 0x28
ret
Function at 0x14002447c
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 0x1400244eb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400244eb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400244eb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400244eb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400244eb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400244eb
cmp dword [rcx + 0xf8], 0
je 0x1400244eb
mov ecx, ebx
call fcn.140024590
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.140024384
nop
cmp dword [rbp + 0x20], 0
jne 0x14002454c
call fcn.14002e6f8
cmp eax, 1
jne 0x14002453c
xor dl, dl
jmp 0x140024546
call fcn.14002e6c4
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140024557
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140024560
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14002447c

Function at 0x140024664
Capabilities:
Parse pe header

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

Function at 0x1400270bc
Capabilities:
Get file size

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