joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140071080
Capabilities:
Get file size

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
lea rbx, [rcx + 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r14, [rsi + 0xa8]
mov rax, qword [r14 + 8]
test rax, rax
je 0x1400710d9
lock inc dword [rax + 8]
mov r15, qword [r14]
mov qword [rsp + 0x58], r15
mov rax, qword [r14 + 8]
mov qword [rsp + 0x60], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rdi, 0xffffffffffffffff
test r15, r15
je 0x140071105
mov rcx, qword [r15]
jmp 0x140071108
mov rcx, rdi
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140071263
mov rax, qword [rsi + 0xd8]
cmp qword [rsp + 0x68], rax
jl 0x1400711cb
mov qword [rsp + 0x20], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rcx, qword [r14]
test rcx, rcx
je 0x140071149
mov rcx, qword [rcx]
jmp 0x14007114c
mov rcx, rdi
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140071237
mov rax, qword [rsi + 0xd8]
cmp qword [rsp + 0x70], rax
jl 0x1400711bf
mov rax, qword [r14]
test rax, rax
je 0x14007117a
mov rcx, qword [rax]
jmp 0x14007117d
mov rcx, rdi
lea rbx, [rsi + 0xb8]
mov rdx, rbx
call fcn.1400701b0
cmp qword [rbx + 0x18], 7
jbe 0x140071196
mov rbx, qword [rbx]
xor r9d, r9d
mov r8, rbx
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.140070a60
mov rdx, rax
mov rcx, r14
call fcn.140042270
lea rcx, [rsp + 0x28]
call fcn.14002a700
nop
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140071211
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140071211
mov rbx, qword [rsp + 0x60]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x1400cd6b1.0]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140071211
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400cd6b1.0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140144310
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edx, eax
lea r8, str.Unable_to_get_file_size_
lea rcx, [rsp + 0x38]
call fcn.140029f80
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x38]
call fcn.14015a550
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_get_file_size_
lea rcx, [rsp + 0x38]
call fcn.140029f80
lea rdx, [0x14023da00]
lea rcx, [rsp + 0x38]
call fcn.14015a550
int3
Function at 0x140072b50
Capabilities:
Create thread

Disassembly:
movsxd rax, dword [rcx - 4]
sub rcx, rax
jmp 0x140072b50
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, qword [rsp + 0x60]
xor ebp, ebp
mov ecx, 0xb0
call fcn.140144370
mov rbx, rax
mov qword [rsp + 0x40], rax
mov word [rax], bp
lea rcx, [rax + 8]
mov dword [rcx], ebp
mov qword [rcx + 8], rbp
mov qword [rcx + 0x10], rbp
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
movups xmmword [rcx + 0x28], xmm0
movups xmmword [rcx + 0x38], xmm0
mov qword [rcx + 0x48], rbp
lea edx, [rbp + 2]
call fcn.140142fcc
lea rcx, [rbx + 0x58]
call fcn.140143198
xorps xmm0, xmm0
movups xmmword [rbx + 0xa0], xmm0
mov rdi, qword [rsi - 0x20]
mov qword [rsi - 0x20], rbx
test rdi, rdi
je 0x140072c08
cmp dword [rdi + 0xa8], ebp
jne 0x140072ca6
lea rcx, [rdi + 0x58]
call fcn.1400cb600
lea rcx, [rdi + 8]
call fcn.1400cb600
mov edx, 0xb0
mov rcx, rdi
call fcn.140144330
lea rbx, [rsi - 0x108]
mov ecx, 8
call fcn.140144370
mov qword [rax], rbx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebp
mov r9, rax
lea r8, [0x140073c30]
xor edx, edx
xor ecx, ecx
call fcn.140178e50
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140072c97
mov rax, qword [rsi - 0x20]
cmp dword [rax + 0xa8], 0
jne 0x140072cac
xorps xmm0, xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmmword [rax + 0xa0], xmm1
cmp dword [rsp + 0x38], 0
jne 0x140072cac
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140144310
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov dword [rsp + 0x38], ebp
mov ecx, 6
call fcn.140142f48
nop
call fcn.140178cd8
int3
call fcn.140178cd8
int3
Function at 0x140074910
Capabilities:
Encode data using base64

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov dword [rax - 0x28], ebx
mov rsi, r8
mov rdi, rdx
sub rsi, rdx
xorps xmm0, xmm0
mov r14, rcx
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbx
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], bl
mov dword [rax - 0x28], 1
lea rcx, [rsi + 2]
movabs rax, 0x5555555555555556
imul rcx
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov eax, 4
mul rdx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
xor r8d, r8d
mov rdx, rax
mov rcx, r14
call fcn.14000c550
mov r9, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x1400749a0
mov r9, qword [r14]
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp rsi, 3
jl 0x140074a3e
movabs rax, 0xaaaaaaaaaaaaaaab
mul rsi
shr rdx, 1
imul rax, rdx, 0xfffffffffffffffd
add rsi, rax
nop dword [rax + rax]
movzx r8d, byte [rdi]
movzx eax, byte [rdi + 1]
movzx ecx, byte [rdi + 2]
add rdi, 3
shl r8, 8
or r8, rax
shl r8, 8
or r8, rcx
mov rax, r8
shr rax, 0x12
movzx eax, byte [rax + r10]
mov byte [r9 + rbx], al
mov rax, r8
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + r10]
mov byte [r9 + rbx + 1], al
mov rax, r8
shr rax, 6
and eax, 0x3f
movzx eax, byte [rax + r10]
mov byte [r9 + rbx + 2], al
and r8d, 0x3f
movzx eax, byte [r8 + r10]
mov byte [r9 + rbx + 3], al
add rbx, 4
sub rdx, 1
jne 0x1400749d0
cmp rsi, 2
jne 0x140074aa2
movzx edx, byte [rdi]
shl rdx, 8
movzx eax, byte [rdi + 1]
or rdx, rax
shl rdx, 8
mov rax, rdx
shr rax, 0x12
movzx eax, byte [rax + r10]
mov byte [r9 + rbx], al
mov rcx, rdx
shr rcx, 0xc
and ecx, 0x3f
movzx ecx, byte [rcx + r10]
mov byte [r9 + rbx + 1], cl
shr rdx, 6
and edx, 0x3f
movzx ecx, byte [rdx + r10]
mov byte [r9 + rbx + 2], cl
mov byte [r9 + rbx + 3], 0x3d
mov rax, r14
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
cmp rsi, 1
jne 0x140074ad8
movzx ecx, byte [rdi]
shl rcx, 0x10
mov rax, rcx
shr rax, 0x12
movzx eax, byte [rax + r10]
mov byte [r9 + rbx], al
shr rcx, 0xc
and ecx, 0x3f
movzx eax, byte [rcx + r10]
mov byte [r9 + rbx + 1], al
mov word [r9 + rbx + 2], 0x3d3d
mov rax, r14
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140075a30
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov rbx, qword [rsp + 0x40]
mov ecx, 0x58
call fcn.140144370
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
mov qword [rax + 0x50], rcx
mov rcx, qword [rbx + 8]
mov qword [rbx + 8], rax
test rcx, rcx
je 0x140075a7c
mov edx, 0x58
call fcn.140144330
mov rax, qword [rbx + 8]
mov qword [rax + 0x10], 0
mov dword [rax], 0x67452301
mov dword [rax + 4], 0xefcdab89
mov dword [rax + 8], 0x98badcfe
mov dword [rax + 0xc], 0x10325476
add rsp, 0x30
pop rbx
ret

Function at 0x140075eb0
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, qword [rsp + 0x40]
mov ecx, 0x140
call fcn.140144370
xor edx, edx
mov r8d, 0x140
mov rcx, rax
mov rbx, rax
call fcn.14019b380
mov rcx, qword [rdi + 8]
mov qword [rdi + 8], rbx
test rcx, rcx
je 0x140075ef8
mov edx, 0x140
call fcn.140144330
mov rcx, qword [rdi + 8]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp fcn.140076e00

Function at 0x140075f40
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rcx + 8]
add rsp, 0x28
jmp fcn.140077150

Function at 0x140076c30
Capabilities:
Hash data with md5

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
sub rsp, 0x90
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor eax, eax
mov rbx, r8
mov r8, qword [r11 + 0x10]
mov rdx, rcx
mov qword [r11 - 0x68], rax
lea rcx, [r11 - 0x78]
mov dword [rsp + 0x20], 0x67452301
mov dword [rsp + 0x24], 0xefcdab89
mov dword [rsp + 0x28], 0x98badcfe
mov dword [rsp + 0x2c], 0x10325476
call fcn.140076d10
test rbx, rbx
je 0x140076cf2
mov rdx, qword [rsp + 0x30]
mov ecx, 0x78
mov qword [rsp + 0x80], rdx
mov r8d, gethostname
shr edx, 3
and edx, 0x3f
sub ecx, edx
sub r8d, edx
cmp edx, 0x38
lea rdx, [0x14020f3e0]
cmovae r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.140076d10
mov r8d, 8
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x20]
call fcn.140076d10
movaps xmm0, xmmword [rsp + 0x20]
movups xmmword [rbx], xmm0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140144310
add rsp, 0x90
pop rbx
ret
Function at 0x140076e00
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x20
mov rbx, qword [rsp + 0x30]
xor edx, edx
movups xmm0, xmmword [0x14020f640]
mov r8d, 0x100
movups xmmword [rbx], xmm0
lea rcx, [rbx + 0x20]
movups xmm1, xmmword [0x14020f650]
movups xmmword [rbx + 0x10], xmm1
call fcn.14019b380
mov rcx, qword [0x14024d6a8]
xor eax, eax
mov qword [rbx + 0x120], rax
mov dword [rbx + 0x128], eax
mov qword [rbx + 0x130], rax
mov qword [rbx + 0x138], rax
movabs rax, 0x1000000010000000
test rax, rcx
je 0x140076e8c
mov edx, 0x20
lea ecx, [rdx + 0x20]
call fcn.14007b820
mov rcx, qword [0x14024d6a8]
mov qword [rbx + 0x130], rax
lea rax, [0x140001740]
mov qword [rbx + 0x138], rax
test cl, 0x20
je 0x140076f08
lea rax, [0x140002840]
mov qword [rbx + 0x138], rax
bt rcx, 0x12
jae 0x140076ec8
lea rax, [0x1400071c0]
mov qword [rbx + 0x138], rax
add rsp, 0x20
pop rbx
ret
bt rcx, 0xa
jae 0x140076f08
mov rax, rcx
and eax, 0x5000
cmp rax, 0x5000
jne 0x140076ef3
lea rax, [0x140005300]
mov qword [rbx + 0x138], rax
add rsp, 0x20
pop rbx
ret
bt rcx, 0x29
jae 0x140076f08
lea rax, [0x140003d60]
mov qword [rbx + 0x138], rax
add rsp, 0x20
pop rbx
ret
Function at 0x140077150
Capabilities:
Hash data using sha256

Disassembly:
mov rax, rsp
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rdi
sub rsp, 0x28
mov rbx, rcx
mov edi, r8d
test rcx, rcx
je 0x1400772c6
mov qword [rax + 0x20], rsi
mov rsi, rdx
test rdx, rdx
jne 0x140077186
test dil, 1
je 0x1400771d1
mov rcx, rbx
call fcn.140077090
test rsi, rsi
je 0x1400771d1
mov eax, dword [rbx]
bswap eax
mov dword [rsi], eax
mov eax, dword [rbx + 4]
bswap eax
mov dword [rsi + 4], eax
mov eax, dword [rbx + 8]
bswap eax
mov dword [rsi + 8], eax
mov eax, dword [rbx + 0xc]
bswap eax
mov dword [rsi + 0xc], eax
mov eax, dword [rbx + 0x10]
bswap eax
mov dword [rsi + 0x10], eax
mov eax, dword [rbx + 0x14]
bswap eax
mov dword [rsi + 0x14], eax
mov eax, dword [rbx + 0x18]
bswap eax
mov dword [rsi + 0x18], eax
mov eax, dword [rbx + 0x1c]
bswap eax
mov dword [rsi + 0x1c], eax
test dil, 3
je 0x140077228
test dil, 2
je 0x1400772c1
movups xmm0, xmmword [0x14020f640]
lea rcx, [rbx + 0x20]
xor edx, edx
mov r8d, 0x100
movups xmmword [rbx], xmm0
movups xmm1, xmmword [0x14020f650]
movups xmmword [rbx + 0x10], xmm1
call fcn.14019b380
mov rsi, qword [rsp + 0x58]
mov qword [rbx + 0x120], 0
mov dword [rbx + 0x128], 0
add rsp, 0x28
pop rdi
pop rbx
ret
mov rsi, qword [rbx + 0x130]
and edi, 8
test rsi, rsi
je 0x1400772a2
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x140077273
mov qword [rsp + 0x20], r14
test edi, edi
je 0x140077254
mov r8d, dword [rsi + 0x24]
xor edx, edx
call fcn.14019b380
mov edx, dword [rsi + 0x24]
mov r8d, 0x8000
mov rcx, qword [rsi + 0x10]
mov rax, qword [0x14024d6c0]
call qword [case.0x1400cd6b1.0]
mov r14, qword [rsp + 0x20]
test edi, edi
je 0x140077287
xor edx, edx
mov r8d, 0xc0
mov rcx, rsi
call fcn.14019b380
mov rax, qword [0x14024d6b0]
mov rcx, rsi
call qword [case.0x1400cd6b1.0]
mov qword [rbx + 0x130], 0
mov qword [rbx + 0x138], 0
test edi, edi
je 0x1400772c1
xor edx, edx
mov r8d, 0x140
mov rcx, rbx
call fcn.14019b380
mov rsi, qword [rsp + 0x58]
add rsp, 0x28
pop rdi
pop rbx
ret
Function at 0x140081f00
Capabilities:
Inspect section memory permissions

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rsi
sub rsp, 0x28
mov ebx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
bts ebx, 0x1c
call fcn.140080920
test al, al
je 0x140081f6b
test ebx, 0x600000
jne 0x140081f6b
mov rcx, qword [rsp + 0x40]
call fcn.140080cc0
mov rsi, rax
test rax, rax
je 0x140081f6b
mov r8, qword [rsp + 0x50]
mov edx, ebx
mov rcx, rax
call fcn.140081a50
mov rcx, rsi
mov ebx, eax
call fcn.140144330
mov eax, ebx
add rsp, 0x28
pop rsi
pop rbx
ret
mov r8, qword [rsp + 0x50]
mov edx, ebx
mov rcx, qword [rsp + 0x40]
add rsp, 0x28
pop rsi
pop rbx
jmp fcn.140081a50
Function at 0x140082020
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, qword [rsp + 0xe0]
xor r15d, r15d
mov rsi, rcx
mov r14, r8
mov ebp, r9d
test rdi, rdi
je 0x14008206c
mov dword [rdi], r15d
mov qword [rsp + 0x88], rbx
test rsi, rsi
je 0x1400821cf
mov rsi, qword [rsi]
test r14, r14
je 0x1400821cf
test ebp, ebp
jne 0x140082094
xor eax, eax
jmp 0x1400821d4
mov qword [rsp + 0x80], r12
mov dword [rsp + 0x50], r15d
cmp rsi, 0xffffffffffffffff
je 0x1400821be
mov rax, qword [0x14024d738]
mov ebx, r15d
mov r12d, 0x103
test rax, rax
je 0x140082146
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], rcx
xor r9d, r9d
mov dword [rsp + 0x30], ebp
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x58], rdx
xor r8d, r8d
mov qword [rsp + 0x28], r14
xor edx, edx
mov qword [rsp + 0x20], rcx
mov rcx, rsi
call qword [case.0x1400cd6b1.0]
mov ebx, eax
cmp eax, r12d
jne 0x140082126
mov rax, qword [0x14024d708]
test rax, rax
je 0x140082130
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [case.0x1400cd6b1.0]
test eax, eax
mov ebx, eax
cmovns ebx, dword [rsp + 0x60]
test ebx, ebx
jne 0x140082130
mov eax, dword [rsp + 0x68]
jmp 0x1400821a0
mov rax, qword [0x14024d748]
test rax, rax
je 0x140082198
mov ecx, ebx
call qword [case.0x1400cd6b1.0]
jmp 0x140082196
mov rax, rdx
lea r8, [rsp + 0x58]
sar rax, 0x20
xor r9d, r9d
mov rcx, rsi
mov dword [rsp + 0x58], eax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x140082173
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x1400821c3
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], r15
mov r8d, ebp
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14008219c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x1400821c3
mov eax, dword [rsp + 0x50]
test rdi, rdi
je 0x1400821a7
mov dword [rdi], eax
cmp eax, ebp
je 0x1400821c3
test rdi, rdi
cmove ebx, r12d
mov r12, qword [rsp + 0x80]
mov eax, ebx
jmp 0x1400821d4
mov ebx, 0x57
mov r12, qword [rsp + 0x80]
mov eax, ebx
jmp 0x1400821d4
mov eax, 0x57
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140144310
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140082200
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r15, qword [rsp + 0xd0]
mov r14, r9
mov eax, r14d
xor edi, edi
cmp rax, r9
mov qword [rsp + 0x38], r15
lea rax, [r11 - 0x60]
mov esi, r14d
mov r12d, 0x80000000
mov qword [rsp + 0x20], rax
cmovne esi, r12d
mov r13, rcx
mov r9d, esi
mov rbp, r8
call fcn.140082020
mov ebx, eax
mov eax, dword [rsp + 0x48]
sub r14, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], r14
mov ecx, eax
je 0x140082342
test ebx, ebx
jne 0x140082342
cmp eax, esi
jne 0x140082342
lea r15, [rax + rbp]
mov esi, edi
nop
mov eax, r14d
mov ebp, r14d
cmp rax, r14
cmovne ebp, r12d
mov r12d, edi
test r13, r13
je 0x140082328
mov rcx, qword [r13]
test r15, r15
je 0x140082328
test ebp, ebp
jne 0x1400822c9
mov ebx, edi
mov rax, rdi
jmp 0x140082315
mov dword [rsp + 0x48], edi
cmp rcx, 0xffffffffffffffff
je 0x140082302
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rdi
mov r8d, ebp
mov rdx, r15
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400822fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x140082307
mov r12d, dword [rsp + 0x48]
jmp 0x140082307
mov ebx, 0x57
mov eax, r12d
add rsi, rax
test ebx, ebx
jne 0x14008232d
cmp eax, ebp
jne 0x14008232d
add r15, rax
sub r14, rax
je 0x14008232d
mov r12d, 0x80000000
jmp 0x1400822a0
mov ebx, 0x57
mov r14, qword [rsp + 0x30]
mov rdi, rsi
mov r15, qword [rsp + 0x38]
sub r14, rsi
mov rcx, qword [rsp + 0x40]
add rdi, rcx
test r15, r15
je 0x14008234f
mov qword [r15], rdi
jmp 0x14008235e
test r14, r14
je 0x14008235e
test ebx, ebx
mov eax, 0x103
cmove ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140144310
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140083240
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x1400832bf
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x1400832bf
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400832b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400832b2
mov rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140144310
add rsp, 0x38
ret
mov eax, dword [rsp + 0x20]
shl rax, 0x20
or rax, rbx
jmp 0x14008329b
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140144310
add rsp, 0x38
ret
Function at 0x140083520
Capabilities:
Get file attributes

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x70
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
mov rdi, rcx
mov dword [rdx], ebx
mov rsi, rdx
cmp word [rcx], 0x2a
jne 0x1400835b3
lea rcx, [rcx + 2]
lea r8d, [rbx + 5]
lea rdx, str.FILE:
call fcn.14017d224
test eax, eax
jne 0x1400835b3
lea rcx, [rdi + 0xc]
xor edx, edx
lea r8d, [rbx + 0x10]
call fcn.1401692f0
cmp rax, 0xffffffffffffffff
je 0x1400835b3
xor r8d, r8d
mov dword [rsp + 0x58], 0x10002
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
call fcn.1400832f0
test eax, eax
mov ecx, 0xffffffff
cmove ecx, dword [rsp + 0x20]
mov dword [rsi], ecx
jmp 0x1400835d1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0xffffffff
mov dword [rsi], eax
cmp eax, ecx
jne 0x1400835cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140144310
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14008c030
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x20
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14008c0b4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14008c0b4
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
add rdx, rbx
mov ecx, dword [rsp + 0x40]
and ecx, 0xf
jbe 0x14008c09d
cmp rbx, rdx
jae 0x14008c0b4
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add ecx, 0xffffffff
jne 0x14008c088
cmp rbx, rdx
jae 0x14008c0b4
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140092220
Capabilities:
Get disk information

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
mov rdi, rdx
mov rsi, r8
test rcx, rcx
je 0x1400923c8
test rdx, rdx
je 0x1400923c8
mov qword [r11 - 0x20], rbp
lea rdx, [0x140210b08]
mov r8d, 4
mov qword [r11 - 0x28], r14
call fcn.140167a94
test eax, eax
je 0x1400922dc
mov r8d, 4
lea rdx, [0x14020faf8]
mov rcx, rbx
call fcn.140167a94
test eax, eax
je 0x1400922dc
mov eax, 0x3a
cmp ax, word [rbx + 2]
jne 0x14009230e
mov edx, 0x5c
cmp dx, word [rbx + 4]
jne 0x14009230e
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.14017ceb4
xor ebp, ebp
lea r14, [rsp + 0x24]
mov word [rsp + 0x226], bp
lea rcx, [rsp + 0x20]
jmp 0x14009234b
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.14017ceb4
xor ebp, ebp
lea rcx, [rsp + 0x28]
mov word [rsp + 0x226], bp
lea edx, [rbp + 0x5c]
call fcn.14015a7f0
mov r14, rax
test rax, rax
jne 0x140092346
mov ecx, recvfrom
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbp, qword [rsp + 0x248]
mov r14, qword [rsp + 0x240]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140144310
add rsp, 0x250
pop rdi
pop rsi
pop rbx
ret
lea rcx, [rsp + 0x28]
mov r8d, esi
mov word [r14], bp
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x140092319
mov eax, eax
cmp rax, rsi
jae 0x140092319
mov rax, 0xffffffffffffffff
mov rcx, rax
inc rcx
cmp word [rdi + rcx*2], 0
jne 0x140092370
test rcx, rcx
je 0x140092319
lea rdx, [rsp + 0x20]
sub r14, rdx
sar r14, 1
lea rdx, [rbx + r14*2]
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x140092390
inc rax
add rax, rcx
cmp rax, rsi
jbe 0x1400923af
mov ecx, 0x7a
jmp 0x140092313
sub rsi, rcx
lea rcx, [rdi + rcx*2]
mov r8, rsi
call fcn.14017ceb4
mov eax, 1
jmp 0x14009231b
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14009232b