joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401de470
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1403acd78]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov edx, dword [0x1403af3e0]
cmp edx, 0x10000001
jb 0x1401de4a7
lea rcx, str.warning:_value_specified_for___old_gen_heap_size__d_is_larger_than_the_physically_addressable_range__using_0_unlimited__instead.__n
call fcn.1401a32f0
mov dword [0x1403af3e0], 0
mov edx, dword [0x1403af3d0]
cmp edx, 0x10000001
jb 0x1401de4d1
lea rcx, str.warning:_value_specified_for___new_gen_semi_max_size__d_is_larger_than_the_physically_addressable_range__using__lld_instead.__n
mov r8d, reloc.WS2_32.dll_recv
call fcn.1401a32f0
mov dword [0x1403af3d0], 0x10
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
mov qword [0x1403b2d20], rax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140279500
nop
add rsp, 0x58
ret

Function at 0x1401de500
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rbx, rcx
lea rsi, [rdx + rcx]
sub rsi, qword [0x1403b2d20]
test byte [0x1403af1b8], 1
mov ebp, 0x40
mov eax, 4
cmovne ebp, eax
test r8b, r8b
cmove ebp, eax
xor r15d, r15d
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x2000
mov r9d, ebp
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1401de5bc
mov r14, rax
add rax, rdi
dec rax
neg rdi
and rdi, rax
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x1000
mov r9d, ebp
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp rax, rdi
je 0x1401de593
mov rcx, r14
mov rdx, rsi
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor r15d, r15d
jmp 0x1401de5bc
test rdi, rdi
je 0x1401de58e
mov ecx, 0x30
call fcn.140279780
mov r15, rax
mov qword [rax], rdi
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], r14
mov qword [rax + 0x28], rsi
mov rax, r15
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1402007e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea rax, vtable.icu_68::Locale.0
mov qword [rcx], rax
lea rax, [rcx + 0x30]
mov qword [rcx + 0x28], rax
mov qword [rcx + 0xd0], 0
xor edx, edx
xor r8d, r8d
jmp fcn.140200110

Function at 0x14020aa50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x14020aa50
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov eax, edx
and eax, 0xfffffc00
mov edi, 0xffffffff
cmp eax, 0xd800
je 0x14020aad1
mov esi, r8d
mov r14d, edx
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
mov r15, qword [rcx + 8]
cmp edx, 0xffff
ja 0x14020aa9e
mov rax, qword [rcx]
mov ecx, r14d
shr ecx, 6
movzx ecx, word [rax + rcx*2]
mov eax, r14d
and eax, 0x3f
add eax, ecx
jmp 0x14020aac4
cmp r14d, 0x10ffff
ja 0x14020aab7
cmp dword [rcx + 0x18], r14d
jle 0x14020aabe
mov edx, r14d
call fcn.14021da20
jmp 0x14020aac4
mov eax, dword [rcx + 0x14]
dec eax
jmp 0x14020aac4
mov eax, dword [rcx + 0x14]
add eax, 0xfffffffe
cdqe
movzx ecx, word [r15 + rax*2]
cmp rcx, 1
jne 0x14020aadf
mov eax, edi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
cmp cx, word [rbx + 0x10]
jae 0x14020ab15
cmp cx, 2
jne 0x14020aba6
lea eax, [rsi - 0x1161]
cmp eax, 0x14
ja 0x14020aad1
lea eax, [r14 + r14*4]
lea eax, [r14 + rax*4]
add eax, esi
lea ecx, [rax + rax*8]
lea ecx, [rcx + rcx*2]
lea edi, [rcx + rax]
add edi, 0xffd7b964
jmp 0x14020aad1
cmp ecx, 0xfbff
ja 0x14020aad1
movzx eax, word [rbx + 0x1e]
cmp cx, ax
jb 0x14020aad1
movzx eax, ax
sub ecx, eax
sar ecx, 1
movsxd rax, ecx
add rax, rax
add rax, qword [rbx + 0x28]
cmp esi, 0x10ffff
ja 0x14020aad1
cmp esi, 0x33ff
ja 0x14020abf2
add esi, esi
movzx edx, si
movzx ecx, word [rax]
cmp edx, ecx
jbe 0x14020ab76
nop word [rax + rax]
mov r8, rax
and ecx, 1
or ecx, 2
lea rax, [rax + rcx*2]
movzx ecx, word [r8 + rcx*2]
cmp edx, ecx
ja 0x14020ab60
mov r8d, ecx
and r8d, 0x7ffe
mov edi, 0xffffffff
cmp edx, r8d
jne 0x14020ac6a
movzx edi, word [rax + 2]
test cl, 1
je 0x14020ac6a
shl edi, 0x10
mov r8d, edi
jmp 0x14020ac63
movzx edx, word [rbx + 0xe]
cmp dx, cx
jne 0x14020abcd
lea eax, [rsi - 0x11a8]
cmp eax, 0x1a
ja 0x14020aad1
lea edi, [r14 + rsi]
add edi, 0xffffee59
jmp 0x14020aad1
mov eax, ecx
and eax, 0xfffffffe
add rax, qword [rbx + 0x30]
cmp cx, dx
jbe 0x14020ab37
movzx ecx, word [rax]
and ecx, 0x1f
lea rax, [rax + rcx*2]
add rax, 2
jmp 0x14020ab37
mov ecx, esi
shr ecx, 9
add ecx, 0x3400
shl esi, 6
and ecx, 0xfffe
mov edi, 0xffffffff
jmp 0x14020ac1e
and edx, 1
or rdx, 2
mov r8, rdx
lea rax, [rax + rdx*2]
movzx edx, word [rax]
cmp ecx, edx
ja 0x14020ac10
mov r8d, edx
and r8d, 0x7ffe
cmp ecx, r8d
jne 0x14020ac6a
movzx r8d, word [rax + 2]
cmp r8w, si
jae 0x14020ac50
mov r8d, 3
test dx, dx
js 0x14020ac6a
lea rax, [rax + r8*2]
jmp 0x14020ac1e
xor esi, r8d
test esi, 0xffc0
jne 0x14020ac6a
and r8d, 0x3f
shl r8d, 0x10
movzx edi, word [rax + 4]
or edi, r8d
sar edi, 1
jmp 0x14020aad1
Function at 0x14020f240
Capabilities:
Get geographical location

Disassembly:
push rsi
sub rsp, 0x90
mov rax, qword [0x1403acd78]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x2c], 0
mov rsi, qword [0x1403b3808]
test rsi, rsi
jne 0x14020f394
lea rsi, [0x1403b3810]
xor ecx, ecx
mov edx, 0x5c
mov r8, rsi
mov r9d, 0x55
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jle 0x14020f37a
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x7d], 0
mov eax, 1
jmp 0x14020f2d9
mov byte [rsp + rax + 0x30], 0x2d
add rax, 2
movzx ecx, word [rsi + rax*2 - 2]
cmp cx, 0x5f
jne 0x14020f2f0
mov byte [rsp + rax + 0x2f], 0x2d
jmp 0x14020f2f8
mov byte [rsp + rax + 0x2f], cl
test cl, cl
je 0x14020f31a
cmp rax, 0x55
je 0x14020f312
movzx ecx, word [rsi + rax*2]
cmp cx, 0x5f
je 0x14020f2d0
mov byte [rsp + rax + 0x30], cl
test cl, cl
jne 0x14020f2d5
jmp 0x14020f31a
mov byte [rsp + 0x84], 0
mov ecx, 0x41
call fcn.1401f7a60
test rax, rax
je 0x14020f37a
mov rsi, rax
lea rcx, [rsp + 0x30]
lea r9, [rsp + 0x2c]
mov rdx, rax
mov r8d, 0x40
call fcn.140224440
cmp dword [rsp + 0x2c], 0
jle 0x14020f355
mov rcx, rsi
call fcn.1401f7b30
jmp 0x14020f37a
cdqe
mov byte [rsi + rax], 0
mov qword [0x1403b3808], rsi
mov byte [0x1403b38ba], 1
lea rdx, [0x14020ef90]
mov ecx, reloc.WS2_32.dll_socket
call fcn.14021d400
mov rsi, qword [0x1403b3808]
test rsi, rsi
jne 0x14020f394
lea rsi, [0x140343144]
mov qword [0x1403b3808], rsi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140279500
mov rax, rsi
add rsp, 0x90
pop rsi
ret
Function at 0x14022b3c0
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
cmp dword [r8], 0
jle 0x14022b3db
xor eax, eax
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
call fcn.140220140
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000080
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x14022b489
mov r14, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x14022b489
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 8], rax
test rax, rax
je 0x14022b4b4
mov qword [rdi + 0x28], rbx
mov al, 1
jmp 0x14022b3d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
cmp ecx, 0x8007000e
jne 0x14022b3cf
mov dword [rsi], 7
jmp 0x14022b3cf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14022b3cf
Function at 0x140240750
Capabilities:
Inspect section memory permissions

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov rax, qword [rsp + 0x50]
mov qword [rcx + 8], r8
mov ecx, dword [r8]
mov dword [rsi + 0x20], ecx
lea r10, [0x14038d09c]
mov qword [rsi + 0x10], r10
test r9d, r9d
js 0x1402407a4
mov r10d, r9d
shr r10d, 2
mov r11d, 6
cmp byte [rdx], 1
jne 0x14024079b
xor r11d, r11d
cmp byte [rdx + 1], 0
setne r11b
lea r11d, [r11 + r11*4]
inc r11d
cmp r10d, r11d
jb 0x1402408c6
mov r10d, ecx
and r10d, 0xf0000000
cmp r10d, 0x20000000
je 0x1402407c9
and ecx, 0xe0000000
cmp ecx, 0x40000000
jne 0x1402408c6
movzx r10d, byte [rdx]
cmp r10b, 1
jne 0x1402407dd
cmp byte [rdx + 1], 0
je 0x140240881
movzx ecx, byte [r8 + 4]
cmp ecx, 4
jbe 0x1402408c6
test r9d, r9d
js 0x140240812
lea r11d, [rcx*4 + 4]
cmp r11d, r9d
ja 0x1402408c6
mov r11d, dword [r8 + 0x10]
shl r11d, 2
cmp r11d, r9d
jg 0x1402408c6
mov r9d, dword [r8 + 8]
lea r11d, [rcx + 1]
cmp r9d, r11d
jg 0x14024088e
cmp r10b, 3
jae 0x1402408a0
cmp ecx, 6
jb 0x1402408b3
mov r9d, dword [r8 + 0x18]
mov edx, r9d
and dl, 1
mov byte [rsi + 0x38], dl
mov r10d, r9d
shr r10b, 1
mov edx, r9d
shr dl, 2
and dl, 1
mov r11d, r9d
shl r11d, 0xc
and r11d, 0xf000000
or dword [rsi + 0x30], r11d
shr r9d, 0x10
and r10b, 1
mov byte [rsi + 0x39], r10b
mov byte [rsi + 0x3a], dl
mov dword [rsi + 0x34], r9d
jne 0x1402408c1
test dl, dl
je 0x14024087a
cmp ecx, 8
jb 0x1402408c6
cmp ecx, 7
jb 0x140240888
jmp 0x1402408e6
mov dword [rsi + 0x24], 0x10000
mov byte [rsi + 0x3b], 1
jmp 0x1402408e0
shl r9d, 2
mov dword [rsi + 0x24], r9d
movzx r10d, byte [rdx]
cmp r10b, 3
jb 0x140240825
mov edx, dword [r8 + 4]
shr edx, 8
mov dword [rsi + 0x30], edx
cmp ecx, 6
jae 0x14024082e
cmp byte [rsi + 0x39], 0
jne 0x1402408c6
cmp byte [rsi + 0x3a], 0
jne 0x1402408c6
jmp 0x140240888
cmp ecx, 7
ja 0x1402408e6
mov dword [rax], 3
mov rcx, qword [rsi]
test rcx, rcx
je 0x1402408e0
call fcn.140220230
mov qword [rsi], 0
add rsp, 0x20
pop rsi
ret
movsxd rax, dword [r8 + 8]
cmp dword [r8 + 0x1c], eax
jle 0x140240888
lea rax, [r8 + rax*4]
mov qword [rsi + 0x10], rax
jmp 0x140240888
Function at 0x140257c60
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1403aadb8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140257c88
cmp byte [rax + 8], 0
jne 0x140257c92
mov rcx, rax
call fcn.1400726b0
test rax, rax
jne 0x140257c92
call fcn.1401a2410
test rax, rax
je 0x140257c9e
mov rcx, rax
add rsp, 0x28
jmp fcn.1401a2270
nop
add rsp, 0x28
ret

Function at 0x140257cb0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1403aadb8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140257cd8
cmp byte [rax + 8], 0
jne 0x140257ce2
mov rcx, rax
call fcn.1400726b0
test rax, rax
jne 0x140257ce2
call fcn.1401a2410
test rax, rax
je 0x140257cee
mov rcx, rax
add rsp, 0x28
jmp fcn.1401a2280
nop
add rsp, 0x28
ret

Function at 0x14025a7a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x1403acd78]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, dword [0x1403b3e60]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp byte [rax + 0x14], 0
jne 0x14025a7d9
call fcn.140279b2c
mov eax, dword [0x1403b3e60]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 8]
test rax, rax
je 0x14025a806
mov ecx, 0x230
add rcx, qword [rax + 0x730]
jmp 0x14025a81a
mov ecx, dword [0x1403acd58]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rax
test rax, rax
je 0x14025a85a
movabs rax, 0x7ffffffffffffff8
cmp rsi, rax
jge 0x14025a873
add rsi, 7
and rsi, 0xfffffffffffffff8
mov rdi, qword [rcx]
mov rax, qword [rcx + 8]
sub rax, rdi
cmp rax, rsi
jge 0x14025a84d
mov rdx, rsi
call fcn.1401dec70
mov rdi, rax
jmp 0x14025a85c
lea rax, [rdi + rsi]
mov qword [rcx], rax
add qword [rcx + 0x10], rsi
jmp 0x14025a85c
xor edi, edi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140279500
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rax, str..._.._runtime_vm_zone.h
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0x107
lea rdx, str.Zone::Alloc:_size_is_too_large:_size_lld
lea rcx, [rsp + 0x20]
mov r8, rsi
call fcn.140023590
int3

Function at 0x1402774d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
mov rsi, qword [0x1403afc78]
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x1401a2222
call fcn.140281a88
mov qword [rdi + 0x18], 0
mov rcx, rbx
call fcn.140024c70
mov qword [rdi + 0x18], rax
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400a7660
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1403aadb8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1402774fc
cmp byte [rax + 8], 0
jne 0x140277506
mov rcx, rax
call fcn.1400726b0
test rax, rax
jne 0x140277506
call fcn.1401a2410
test rax, rax
je 0x140277516
mov rcx, rax
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp 0x1401a21f0
nop
add rsp, 0x20
pop rsi
ret
Function at 0x14028aa50
Capabilities:
Encode data using xor

Disassembly:
mov rax, rcx
neg rcx
test rax, 7
je 0x14028aa6d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x14028aac8
test al, 7
jne 0x14028aa60
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x14028aa81
mov rdx, qword [rax - 8]
test dl, dl
je 0x14028aaf2
test dh, dh
je 0x14028aaec
shr rdx, 0x10
test dl, dl
je 0x14028aae6
test dh, dh
je 0x14028aae0
shr rdx, 0x10
test dl, dl
je 0x14028aada
test dh, dh
je 0x14028aad4
shr edx, 0x10
test dl, dl
je 0x14028aace
test dh, dh
jne 0x14028aa81
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret
Function at 0x14028e0f0
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, [0x1403b4a10]
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 0x14028e14e
cmp word [rdx], r12w
jne 0x14028e14e
or byte [rax + r8*8 + 0x38], cl
jmp 0x14028e154
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14028e2af
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14028e28a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14028e18d
mov rcx, r9
jmp 0x14028e1b0
cmp r9, rdx
jae 0x14028e1c7
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 0x14028e171
jmp 0x14028e2af
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 0x14028e284
cmp dword [rsp + 0x80], edi
je 0x14028e284
mov rdx, r14
lea r11, [0x1403b4a10]
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 0x14028e25d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14028e230
mov word [rbx], r12w
jmp 0x14028e2ab
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 0x14028e239
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14028e2ab
cmp word [rsp + 0x70], r12w
jne 0x14028e26a
cmp rbx, rsi
je 0x14028e22a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14028bd60
cmp word [rsp + 0x70], r12w
je 0x14028e2af
mov word [rbx], r13w
jmp 0x14028e2ab
lea r11, [0x1403b4a10]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14028e2a7
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14028e2af
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 0x140291f8c
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x1403acd78]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x1403948d0]
mov rbp, rcx
call fcn.1402a4b9c
xor edi, edi
test rax, rax
je 0x140292072
mov ebx, edi
call fcn.14028bed8
mov r14d, dword [rax]
call fcn.14028bed8
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.1402a4ae8
mov rsi, rax
test rax, rax
je 0x140292003
call fcn.14028bed8
mov dword [rax], r14d
jmp 0x14029202d
call fcn.14028bed8
cmp dword [rax], 0x22
jne 0x14029206a
call fcn.14028bed8
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1402a4ae8
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14029206a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140292031
cmp rax, 3
je 0x14029204c
mov rcx, rsi
call fcn.140291ee8
test al, al
je 0x14029205d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14029205d
mov dil, 1
mov rcx, rbx
call fcn.140281a88
mov al, dil
jmp 0x140292074
mov rcx, rbx
call fcn.140281a88
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140279500
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1402985d8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1402985f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14028be4c
or eax, 0xffffffff
jmp 0x1402985fa
xor eax, eax
add rsp, 0x28
ret

Function at 0x14029ec80
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14029ea70
Function at 0x1402a2e8c
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.14028bd60
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14028bd60
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1402a2fdc
cmp rax, 0xffffffffffffffff
je 0x1402a2fdc
xor edi, edi
test rbp, rbp
jle 0x1402a2f87
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1402a226c
mov rbx, rax
test rax, rax
jne 0x1402a2f14
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1402a2f7d
mov edx, 0x8000
mov ecx, r14d
call fcn.140298254
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.14028fe4c
cmp eax, 0xffffffff
je 0x1402a2f5d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1402a2f24
mov edx, r15d
mov ecx, r14d
call fcn.140298254
jmp 0x1402a2f7d
cmp byte [rsi + 0x38], dil
je 0x1402a2f74
cmp dword [rsi + 0x34], 5
jne 0x1402a2f74
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1402a2f7d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14029ffa8
jmp 0x1402a2ff0
jns 0x1402a2ff0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14028bd60
cmp rax, 0xffffffffffffffff
jne 0x1402a2fa8
cmp byte [rsi + 0x30], dil
je 0x1402a2ff0
mov edi, dword [rsi + 0x2c]
jmp 0x1402a2ff0
mov ecx, r14d
call fcn.140298068
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1402a2ff0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1402a2ff0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1402a2fe9
mov eax, dword [rsi + 0x2c]
jmp 0x1402a2fee
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14028bd60
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 0x1402a44ec
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 0x1402a451e
call fcn.14028bed8
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14028c38c
jmp 0x1402a463d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1402a463d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1402a463d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1402a454d
lock or dword [rcx + 0x14], 0x10
jmp 0x1402a463d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1402a4561
call fcn.1402a9a5c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140297934
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14028e59c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1402a462b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1402a45f6
mov rcx, rsi
call fcn.140297934
cmp eax, edi
je 0x1402a45e1
mov rcx, rsi
call fcn.140297934
cmp eax, 0xfffffffe
je 0x1402a45e1
mov rcx, rsi
call fcn.140297934
movsxd rbx, eax
lea r14, [0x1403b4a10]
mov rcx, rsi
sar rbx, 6
call fcn.140297934
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1402a45e8
lea rdx, [0x1403ad360]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1402a45f6
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1402a461a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1402a461a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1402a461a
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 0x1402a4640
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 0x1402a469c
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x1402a4679
call fcn.14028bed8
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14028c38c
or eax, 0xffffffff
jmp 0x1402a4696
sub dword [rcx + 0x10], 1
jns 0x1402a4688
add rsp, 0x28
jmp fcn.1402a44ec
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x1402a4658