joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18024ac50
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [fcn.180298184]
mov rdi, rax
test rax, rax
je 0x18024accd
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x18024acf8
cmp ebx, esi
je 0x18024acf8
cmp ebx, 0x8000
ja 0x18024acf8
cmp ebx, esi
jb 0x18024acf3
mov edx, ebx
mov rcx, rdi
call qword [fcn.180298184]
mov rdi, rax
test rax, rax
jne 0x18024ac90
mov rcx, rbp
call qword [fcn.18028d8d8]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x18024acd8
mov rcx, rdi
jmp 0x18024acd0

Function at 0x18024e430
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, qword [rsp + 0x50]
xor eax, eax
mov qword [r9], rax
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov qword [r14], rax
test r8, r8
jne 0x18024e478
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rdx + rbx], al
jne 0x18024e470
lea rcx, [rbx + 2]
movabs rbp, 0xaaaaaaaaaaaaaaab
mov rax, rbp
mul rcx
shr rdx, 1
lea rcx, [rdx*4 + 1]
call qword [fcn.180297cd0]
mov rcx, rax
mov r9, rax
test rax, rax
jne 0x18024e4b2
mov eax, 0x1b
jmp 0x18024e5a3
lea r10, [0x180335cf0]
cmp rbx, 3
jb 0x18024e538
mov rax, rbp
mul rbx
mov r8, rdx
shr r8, 1
imul rax, r8, 0xfffffffffffffffd
add rbx, rax
movzx eax, byte [rdi]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rcx], al
movzx edx, byte [rdi]
movzx eax, byte [rdi + 1]
and edx, 3
shr rax, 4
shl rdx, 4
or rdx, rax
movzx eax, byte [rdx + r10]
mov byte [rcx + 1], al
movzx edx, byte [rdi + 1]
movzx eax, byte [rdi + 2]
and edx, 0xf
shr rax, 6
shl rdx, 2
or rdx, rax
movzx eax, byte [rdx + r10]
mov byte [rcx + 2], al
movzx eax, byte [rdi + 2]
add rdi, 3
and eax, 0x3f
movzx eax, byte [rax + r10]
mov byte [rcx + 3], al
add rcx, 4
sub r8, 1
jne 0x18024e4d2
test rbx, rbx
je 0x18024e595
movzx eax, byte [rdi]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rcx], al
movzx edx, byte [rdi]
and edx, 3
shl rdx, 4
cmp rbx, 1
jne 0x18024e56b
movzx eax, byte [rdx + r10]
mov byte [rcx + 1], al
mov word [rcx + 2], 0x3d3d
jmp 0x18024e591
movzx eax, byte [rdi + 1]
shr rax, 4
or rax, rdx
movzx eax, byte [rax + r10]
mov byte [rcx + 1], al
movzx eax, byte [rdi + 1]
and eax, 0xf
movzx eax, byte [r10 + rax*4]
mov byte [rcx + 2], al
mov byte [rcx + 3], 0x3d
add rcx, 4
mov byte [rcx], 0
sub rcx, r9
mov qword [r14], rcx
xor eax, eax
mov qword [rsi], r9
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x18024f990
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter
Move file

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
cmp byte [0x1807255e8], 0
mov rbx, rdx
mov rdi, rcx
je 0x18024f9e5
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r9, qword [0x1807255e0]
mov rax, qword [rsp + 0x50]
cqo
idiv r9
mov rsi, rax
mov rax, qword [rsp + 0x50]
cqo
idiv r9
imul rax, rdx, 0xf4240
cqo
idiv r9
mov rbp, rax
jmp 0x18024fa0b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
imul ecx, edx, 0x3e8
mov esi, edx
sub r8d, ecx
imul ebp, r8d, 0x3e8
mov qword [rsp + 0x40], r14
mov rcx, rdi
mov qword [rsp + 0x48], r15
call case.0x1802427eb.0
mov rcx, rbx
mov rdi, rax
call case.0x1802427eb.0
mov r8d, 1
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x18024fb24
movabs r15, 0x20c49ba5e353f7
movabs r14, 0xffdf3b645a1cac09
nop dword [rax]
cmp byte [0x1807255e8], 0
je 0x18024fa9a
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x50]
cqo
idiv qword [0x1807255e0]
mov r8, rax
imul rax, rdx, 0xf4240
cqo
idiv qword [0x1807255e0]
mov rcx, rax
jmp 0x18024fac1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, eax
mov eax, 0x10624dd3
mul r9d
shr edx, 6
imul ecx, edx, 0x3e8
mov r8d, edx
sub r9d, ecx
imul ecx, r9d, 0x3e8
sub r8, rsi
cmp r8, r15
jge 0x18024fb57
cmp r8, r14
jle 0x18024fb57
sub ecx, ebp
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul rax, r8, 0x3e8
movsxd rdx, edx
add rdx, rax
cmp rdx, 0x3e8
ja 0x18024fb57
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x18024fa60
test rdi, rdi
je 0x18024fb31
mov rcx, rdi
call fcn.18028d8d8
test rbx, rbx
je 0x18024fb3e
mov rcx, rbx
call fcn.18028d8d8
xor eax, eax
mov r15, qword [rsp + 0x48]
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
test rdi, rdi
je 0x18024fb64
mov rcx, rdi
call fcn.18028d8d8
test rbx, rbx
je 0x18024fb71
mov rcx, rbx
call fcn.18028d8d8
mov eax, 1
jmp 0x18024fb40

Function at 0x180251710
Capabilities:
Convert ip address from string

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r8
mov rax, rdx
test r8, r8
jne 0x18025172c
mov eax, reloc.WS2_32.dll_ntohl
add rsp, 0x20
pop rbx
ret
cmp byte [rdx], 0x5b
jne 0x18025173b
add rsp, 0x20
pop rbx
jmp fcn.180251540
lea rdx, str.__r_n_t_:_______________
mov rcx, rax
call fcn.1802978a0
xor ecx, ecx
mov edx, reloc.WS2_32.dll_setsockopt
cmp rbx, rax
cmovne ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x180257f00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rbp, rcx
cmp rcx, rdx
jae 0x180258051
mov r9, rdx
mov qword [rsp + 0x30], rbx
mov r8, rcx
xor edx, edx
xor ecx, ecx
call fcn.180257d90
mov rbx, rax
test rax, rax
je 0x180258041
lea rcx, [rax + 1]
mov qword [rsp + 0x38], rdi
call qword [fcn.180297cd0]
mov rdi, rax
test rax, rax
je 0x18025800e
mov r9, rsi
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call fcn.180257d90
mov byte [rbx + rdi], 0
lea rbx, str.1.2.840.10040.4.1
mov rax, qword [str.1.2.840.10040.4.1]
test rax, rax
je 0x18025800b
lea r9, [0x180332fb0]
nop word [rax + rax]
mov r8, rdi
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180257fb3
inc rax
test ecx, ecx
jne 0x180257fa0
test edx, edx
je 0x180258027
mov rax, qword [rbx + 8]
test rax, rax
je 0x180257ffe
cmp byte [rax], 0
mov r8, rdi
je 0x180257fe9
movzx ecx, byte [r8]
test cl, cl
je 0x180257fe9
movzx edx, byte [rax]
movzx ecx, byte [rcx + r9]
cmp byte [rdx + r9], cl
jne 0x180258023
inc rax
inc r8
cmp byte [rax], 0
jne 0x180257fc8
xor ecx, ecx
cmp byte [rax], cl
sete cl
xor eax, eax
cmp byte [r8], al
setne al
xor ecx, eax
test ecx, ecx
jne 0x180258027
mov rax, qword [rbx + 0x10]
add rbx, 0x10
test rax, rax
jne 0x180257f90
mov rax, rdi
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
xor ecx, ecx
jmp 0x180257ffa
test rbx, rbx
je 0x18025800b
mov rcx, rdi
call qword [fcn.18028d8d8]
mov rcx, qword [rbx + 8]
call qword [case.0x1802427eb.0]
jmp 0x18025800e
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov rbp, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x20
pop rsi
ret
Function at 0x18025ae00
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x180717100]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r8
mov dword [rsp + 0x20], 0xf0000040
mov rsi, rdx
mov rdi, rcx
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x18025ae4c
mov eax, 0x1b
jmp 0x18025af17
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x18025ae90
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov qword [rsp + 0x38], 0
jmp 0x18025af17
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov edx, 2
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x20
jne 0x18025aef3
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rdi
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x18025af03
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x18025af15
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18027f010
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x18025af30
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x20
mov ecx, 0x58
mov r14, r9
mov rsi, r8
mov rdi, rdx
call qword [fcn.180297cd0]
mov rbx, rax
test rax, rax
je 0x18025b0ba
mov qword [rsp + 0x48], rbp
lea rcx, [rbx + 0x18]
mov qword [rbx + 8], rcx
lea rdx, [rcx + 0x10]
mov qword [rbx + 0x10], rdx
lea rax, fcn.18025ace0
mov qword [rbx], rax
cmp esi, 0x40
jbe 0x18025afb3
call fcn.18025ace0
mov rcx, qword [rbx + 8]
mov r8d, esi
mov rdx, rdi
call fcn.18025ad60
mov rdi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
add rdi, 0x10
mov rcx, rdi
call fcn.18025ad70
mov esi, 0x20
mov rcx, qword [rbx + 8]
call fcn.18025ace0
mov rcx, qword [rbx + 0x10]
call fcn.18025ace0
xor ebp, ebp
mov esi, esi
test rsi, rsi
je 0x18025b01a
mov ebp, esi
movzx eax, byte [rdi]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call fcn.18025ad60
movzx eax, byte [rdi]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea rdi, [rdi + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call fcn.18025ad60
sub rsi, 1
jne 0x18025afd0
cmp rbp, 0x40
jae 0x18025b054
mov edi, 0x40
sub rdi, rbp
mov rcx, qword [rbx + 8]
lea rdx, [0x180339359]
mov r8d, 1
call fcn.18025ad60
mov rcx, qword [rbx + 0x10]
lea rdx, [0x180339358]
mov r8d, 1
call fcn.18025ad60
sub rdi, 1
jne 0x18025b022
mov rax, qword [rbx]
mov rdx, r14
mov r8d, dword [rsp + 0x60]
mov rcx, qword [rbx + 8]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rbx]
test rdi, rdi
jne 0x18025b07a
mov edi, dword [rbp + 0x18]
add rdi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rdi
call qword [rbp + select]
mov r8d, dword [rbp + 0x20]
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call qword [rbp + select]
mov rcx, rbx
call qword [fcn.18028d8d8]
mov rbp, qword [rsp + 0x48]
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov rbx, qword [rsp + 0x50]
mov eax, 0x1b
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x18025e184
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x18025e1be
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18025e1c3
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18025e20c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.d2d1.dll_Ordinal_1
cmp byte [rcx + rax], 0
je 0x18025e20c
dec r8
sub rdx, 1
jne 0x18025e1f2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1802759f8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x180262152
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x180262135
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x180262120

Function at 0x18027eb1c
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
call fcn.1802a02bc
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x18027eb6e
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov r9d, 2
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
je 0x18027eb6e
sub ecx, 1
je 0x18027eb67
cmp ecx, 1
je 0x18027eb60
xor eax, eax
jmp 0x18027eb73
mov eax, 3
jmp 0x18027eb73
mov eax, 1
jmp 0x18027eb73
mov eax, 2
add rsp, 0x28
ret

Function at 0x180294aa4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x180294adb
call fcn.180294920
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.18028d814
xor eax, eax
jmp 0x180294b69
mov rdx, r9
mov rcx, r8
call fcn.180294a40
mov rbx, rax
test rax, rax
je 0x180294b66
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x18029496c]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x180294b53
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180294894
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x180294b3a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x180294b49
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1802a8920
jmp 0x180294b66
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x180294b63
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180298968
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.1802800f0
sub rsp, rax
mov rax, qword [0x180717100]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1802a5cc0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1802989b7
mov rax, rbp
jmp 0x180298abf
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x71f330]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1802ab744
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x71f330]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180298abb
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 0x180298abb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1802ab744
test rax, rax
js 0x180298abb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180298abb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180298aad
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180298aad
cmp byte [rcx], 0xd
jne 0x180298a93
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180298aa2
cmp byte [rcx + 1], 0xa
jne 0x180298aa2
inc rcx
jmp 0x180298aa2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x717340]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180298a75
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180298abf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18027f010
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 0x18029eef8
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x180717100]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x180300f18]
mov rbp, rcx
call fcn.1802aedc4
xor edi, edi
test rax, rax
je 0x18029efde
mov ebx, edi
call fcn.180294920
mov r14d, dword [rax]
call fcn.180294920
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1802aed10
mov rsi, rax
test rax, rax
je 0x18029ef6f
call fcn.180294920
mov dword [rax], r14d
jmp 0x18029ef99
call fcn.180294920
cmp dword [rax], 0x22
jne 0x18029efd6
call fcn.180294920
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1802aed10
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x18029efd6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x18029ef9d
cmp rax, 3
je 0x18029efb8
mov rcx, rsi
call fcn.18029ee54
test al, al
je 0x18029efc9
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x18029efc9
mov dil, 1
mov rcx, rbx
call fcn.18028d8d8
mov al, dil
jmp 0x18029efe0
mov rcx, rbx
call fcn.18028d8d8
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18027f010
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1802a3300
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 0x1802a336f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1802a336f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1802a336f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1802a336f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1802a336f
cmp dword [rcx + 0x84], 0xe
jbe 0x1802a336f
cmp dword [rcx + 0xf8], 0
je 0x1802a336f
mov ecx, ebx
call fcn.1802a3420
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.1802a31fc
nop
cmp dword [rbp + 0x20], 0
je 0x1802a33bd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1802a33c8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1802a3300
Function at 0x1802a4514
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, [0x18071f330]
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 0x1802a456b
cmp word [rdx], r13w
jne 0x1802a456b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1802a4570
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1802a4695
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1802a46b6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1802a45a9
mov rdx, r9
mov word [rbx], cx
jmp 0x1802a45d0
cmp r9, r8
jae 0x1802a45e0
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 0x1802a458a
jmp 0x1802a4695
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 0x1802a468a
cmp dword [rsp + 0x80], esi
je 0x1802a468a
lea r8, [0x18071f330]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1802a4662
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1802a4632
mov word [rbx], r13w
jmp 0x1802a4692
mov ecx, reloc.WS2_32.dll_listen
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 0x1802a463f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1802a4692
cmp word [rsp + 0x70], r13w
jne 0x1802a466f
cmp rbx, r14
je 0x1802a462c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1802ab74c
cmp word [rsp + 0x70], r13w
je 0x1802a4695
mov ecx, reloc.WS2_32.dll_listen
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, [0x18071f330]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1802a468f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1802a4695
Function at 0x1802ab8e8
Capabilities:
Get file size

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

Function at 0x1802ae854
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.1802ab74c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1802ab74c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1802ae9a4
cmp rax, 0xffffffffffffffff
je 0x1802ae9a4
xor edi, edi
test rbp, rbp
jle 0x1802ae94f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1802a8a34
mov rbx, rax
test rax, rax
jne 0x1802ae8dc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1802ae945
mov edx, 0x8000
mov ecx, r14d
call fcn.1802ae1b4
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.1802a58cc
cmp eax, 0xffffffff
je 0x1802ae925
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1802ae8ec
mov edx, r15d
mov ecx, r14d
call fcn.1802ae1b4
jmp 0x1802ae945
cmp byte [rsi + 0x38], dil
je 0x1802ae93c
cmp dword [rsi + 0x34], 5
jne 0x1802ae93c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1802ae945
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1802a8920
jmp 0x1802ae9b8
jns 0x1802ae9b8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1802ab74c
cmp rax, 0xffffffffffffffff
jne 0x1802ae970
cmp byte [rsi + 0x30], dil
je 0x1802ae9b8
mov edi, dword [rsi + 0x2c]
jmp 0x1802ae9b8
mov ecx, r14d
call fcn.1802ae744
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1802ae9b8
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 0x1802ae9b8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1802ae9b1
mov eax, dword [rsi + 0x2c]
jmp 0x1802ae9b6
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1802ab74c
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