joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18012bc40
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push r12
sub rsp, 0x260
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov r12, rcx
test rcx, rcx
jne 0x18012bc6a
xor eax, eax
jmp 0x18012be23
mov qword [rsp + 0x278], rbx
mov qword [rsp + 0x280], rbp
mov qword [rsp + 0x258], rsi
mov qword [rsp + 0x250], rdi
mov qword [rsp + 0x248], r13
lea rcx, [rsp + 0x22]
mov qword [rsp + 0x240], r14
xor r14d, r14d
xor edx, edx
mov r8d, 0x206
mov ebx, 1
mov word [rsp + 0x20], r14w
call fcn.1800f8660
lea rcx, [rsp + 0x20]
mov r8d, 0x103
mov rdx, r12
call fcn.1800f88a0
mov r13d, 0x5c
lea rcx, [rsp + 0x20]
mov edx, r13d
call fcn.1800f90f4
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
mov rsi, rax
xor eax, eax
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 2
jbe 0x18012bd32
cmp word [rsp + 0x20], r13w
jne 0x18012bd32
cmp word [rsp + 0x22], r13w
jne 0x18012bd32
lea rcx, [rsp + 0x24]
mov edx, r13d
call fcn.1800f90f4
test rax, rax
je 0x18012bdb1
lea rcx, [rax + 2]
mov edx, r13d
call fcn.1800f90f4
mov rsi, rax
test rsi, rsi
je 0x18012bdb1
nop word [rax + rax]
lea rcx, [rsp + 0x20]
mov word [rsi], r14w
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
mov edi, eax
and ebp, 0x10
jne 0x18012bd7d
test al, 1
je 0x18012bd6c
mov edx, eax
lea rcx, [rsp + 0x20]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
test eax, eax
je 0x18012bdf1
cmp edi, 0xffffffff
je 0x18012bd86
test ebp, ebp
jne 0x18012bd95
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test ebx, ebx
je 0x18012bdf1
lea rcx, [rsi + 2]
mov edx, r13d
mov word [rsi], r13w
call fcn.1800f90f4
mov rsi, rax
test rax, rax
jne 0x18012bd40
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18012bde4
test al, 0x10
jne 0x18012bdf1
test al, 1
je 0x18012bdd5
and eax, 0xfffffffe
mov rcx, r12
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
test eax, eax
je 0x18012bdf1
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
mov r14, qword [rsp + 0x240]
mov r13, qword [rsp + 0x248]
mov rdi, qword [rsp + 0x250]
mov rsi, qword [rsp + 0x258]
mov rbp, qword [rsp + 0x280]
mov eax, ebx
mov rbx, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1800f93c0
add rsp, 0x260
pop r12
ret
Function at 0x18012be40
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, edx
mov rbx, rcx
test rcx, rcx
jne 0x18012be74
lea ecx, [rbx + 0x57]
mov dword [0x18023c14c], 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x18012be9a
test al, 0x10
jne 0x18012beda
mov edx, 0x80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x18012beda
mov rcx, rbx
call fcn.18012ba70
test eax, eax
jne 0x18012beda
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x18023c14c], eax
test eax, eax
je 0x18012becd
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
test edi, edi
je 0x18012bee9
mov edx, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18012bf00
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, edx
mov rbx, rcx
test rcx, rcx
jne 0x18012bf34
lea ecx, [rbx + 0x57]
mov dword [0x18023c14c], 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18012bf5a
test al, 0x10
jne 0x18012bf9a
mov edx, 0x80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18012bf9a
mov rcx, rbx
call fcn.18012bc40
test eax, eax
jne 0x18012bf9a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x18023c14c], eax
test eax, eax
je 0x18012bf8d
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
test edi, edi
je 0x18012bfa9
mov edx, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18012e2f0
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x18012e319
lea ecx, [rbx + 0x57]
mov dword [0x18023c14c], 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor r9d, r9d
lea r8, [0x18012e170]
lea edx, [r9 + 0x20]
call fcn.18012c4c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov rcx, rbx
and eax, 0xfffffffe
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ebx, eax
test eax, eax
jne 0x18012e36a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x18023c14c], eax
test eax, eax
je 0x18012e36a
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x18012e380
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x18012e3a9
lea ecx, [rbx + 0x57]
mov dword [0x18023c14c], 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor r9d, r9d
lea r8, [0x18012e230]
lea edx, [r9 + 0x20]
call fcn.18012c630
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, rbx
and eax, 0xfffffffe
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, eax
test eax, eax
jne 0x18012e3fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x18023c14c], eax
test eax, eax
je 0x18012e3fa
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x18012fb10
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
mov rbp, r8
mov esi, edx
lea rcx, [rsp + 0x22]
xor edi, edi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], di
call fcn.1800f8660
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x18012905a
lea r8, [rsp + 0x20]
mov r9, rbp
mov edx, esi
mov rcx, rbx
call fcn.180128d20
jmp 0x180129060
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [0x18023c14c], eax
test eax, eax
je 0x180129076
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
sete dil
mov eax, edi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1800f93c0
mov rbx, qword [rsp + 0x278]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
jmp 0x180128ff0
Function at 0x18012fe60
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x240
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbp, r8
mov esi, edx
mov rbx, rcx
call fcn.1801276e0
test eax, eax
je 0x180129550
mov r8, rbp
mov edx, esi
mov rcx, rbx
call fcn.180129390
jmp 0x1801295da
mov qword [rsp + 0x278], rdi
lea rcx, [rsp + 0x22]
xor edi, edi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], di
call fcn.1800f8660
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1801295b0
lea rdx, [0x1801a6f08]
lea rcx, [rsp + 0x20]
mov r8d, 0x103
call fcn.1800fac00
lea r8, [rsp + 0x20]
mov r9, rbp
mov edx, esi
mov rcx, rbx
call fcn.180128d20
jmp 0x1801295b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [0x18023c14c], eax
test eax, eax
je 0x1801295cc
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
sete dil
mov eax, edi
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1800f93c0
add rsp, 0x240
pop rsi
pop rbp
pop rbx
ret
jmp 0x180129510

Function at 0x180130240
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x450
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rsi, rcx
mov r12, r8
mov ebp, edx
lea rcx, [rsp + 0x22]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], bx
call fcn.1800f8660
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x180130354
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
not rcx
dec rcx
test ecx, ecx
je 0x1801302c1
lea eax, [rcx - 1]
cmp word [rsp + rax*2 + 0x20], 0x5c
jne 0x1801302c1
mov word [rsp + rax*2 + 0x20], bx
lea rcx, [rsp + 0x20]
call fcn.180128b50
test eax, eax
je 0x180130340
lea rcx, [rsp + 0x232]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x230], bx
call fcn.1800f8660
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.18012f800
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x230]
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, 0x104
jge 0x180130340
movsxd rdi, ecx
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
mov r8, rdi
call fcn.1800f88a0
mov word [rsp + rdi*2 + 0x20], bx
lea r8, [rsp + 0x20]
mov r9, r12
mov edx, ebp
mov rcx, rsi
call fcn.180128d20
jmp 0x18013035a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [0x18023c14c], eax
test eax, eax
je 0x180130370
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1800f93c0
add rsp, 0x450
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
jmp 0x180130240
Function at 0x180131100
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push r12
sub rsp, 0x458
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rcx
mov rbp, r8
mov esi, edx
lea rcx, [rsp + 0x22]
xor r12d, r12d
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], r12w
call fcn.1800f8660
lea rdx, [rsp + 0x20]
lea rcx, str.ALLUSERSPROFILE
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x102
ja 0x180131215
lea rcx, [rsp + 0x20]
call fcn.180128b50
test eax, eax
je 0x1801311fc
lea rcx, [rsp + 0x232]
xor edx, edx
mov r8d, 0x206
mov qword [rsp + 0x450], rdi
mov word [rsp + 0x230], r12w
call fcn.1800f8660
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.18012f800
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x230]
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, 0x104
jge 0x1801311f4
movsxd rdi, ecx
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
mov r8, rdi
call fcn.1800f88a0
mov word [rsp + rdi*2 + 0x20], r12w
mov rdi, qword [rsp + 0x450]
lea r8, [rsp + 0x20]
mov r9, rbp
mov edx, esi
mov rcx, rbx
call fcn.180128d20
mov eax, 1
jmp 0x180131217
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1800f93c0
add rsp, 0x458
pop r12
pop rsi
pop rbp
pop rbx
ret
jmp 0x180131100

Function at 0x180131370
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push r12
sub rsp, 0x458
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rcx
mov rbp, r8
mov esi, edx
lea rcx, [rsp + 0x22]
xor r12d, r12d
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], r12w
call fcn.1800f8660
lea rdx, [rsp + 0x20]
lea rcx, str.USERPROFILE
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x102
ja 0x180131485
lea rcx, [rsp + 0x20]
call fcn.180128b50
test eax, eax
je 0x18013146c
lea rcx, [rsp + 0x232]
xor edx, edx
mov r8d, 0x206
mov qword [rsp + 0x450], rdi
mov word [rsp + 0x230], r12w
call fcn.1800f8660
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.18012f800
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x230]
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, 0x104
jge 0x180131464
movsxd rdi, ecx
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
mov r8, rdi
call fcn.1800f88a0
mov word [rsp + rdi*2 + 0x20], r12w
mov rdi, qword [rsp + 0x450]
lea r8, [rsp + 0x20]
mov r9, rbp
mov edx, esi
mov rcx, rbx
call fcn.180128d20
mov eax, 1
jmp 0x180131487
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1800f93c0
add rsp, 0x458
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x180132e40
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x450
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rsi, rcx
mov r12, r8
mov ebp, edx
lea rcx, [rsp + 0x22]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], bx
call fcn.1800f8660
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x180130354
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
not rcx
dec rcx
test ecx, ecx
je 0x1801302c1
lea eax, [rcx - 1]
cmp word [rsp + rax*2 + 0x20], 0x5c
jne 0x1801302c1
mov word [rsp + rax*2 + 0x20], bx
lea rcx, [rsp + 0x20]
call fcn.180128b50
test eax, eax
je 0x180130340
lea rcx, [rsp + 0x232]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x230], bx
call fcn.1800f8660
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.18012f800
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x230]
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, 0x104
jge 0x180130340
movsxd rdi, ecx
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
mov r8, rdi
call fcn.1800f88a0
mov word [rsp + rdi*2 + 0x20], bx
lea r8, [rsp + 0x20]
mov r9, r12
mov edx, ebp
mov rcx, rsi
call fcn.180128d20
jmp 0x18013035a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [0x18023c14c], eax
test eax, eax
je 0x180130370
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1800f93c0
add rsp, 0x450
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
jmp 0x180130240

Function at 0x1801332c0
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push r12
sub rsp, 0x458
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rcx
mov rbp, r8
mov esi, edx
lea rcx, [rsp + 0x22]
xor r12d, r12d
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], r12w
call fcn.1800f8660
lea rdx, [rsp + 0x20]
lea rcx, str.ALLUSERSPROFILE
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x102
ja 0x180131215
lea rcx, [rsp + 0x20]
call fcn.180128b50
test eax, eax
je 0x1801311fc
lea rcx, [rsp + 0x232]
xor edx, edx
mov r8d, 0x206
mov qword [rsp + 0x450], rdi
mov word [rsp + 0x230], r12w
call fcn.1800f8660
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.18012f800
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x230]
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, 0x104
jge 0x1801311f4
movsxd rdi, ecx
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
mov r8, rdi
call fcn.1800f88a0
mov word [rsp + rdi*2 + 0x20], r12w
mov rdi, qword [rsp + 0x450]
lea r8, [rsp + 0x20]
mov r9, rbp
mov edx, esi
mov rcx, rbx
call fcn.180128d20
mov eax, 1
jmp 0x180131217
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1800f93c0
add rsp, 0x458
pop r12
pop rsi
pop rbp
pop rbx
ret
jmp 0x180131100
Function at 0x180133a60
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov esi, r8d
mov r14, rdx
mov r13, rcx
lea rcx, [rax - 0x48]
call fcn.180133a30
nop
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [0x1801d3560]
lea rcx, [rsp + 0x50]
call fcn.180133850
mov r12d, 1
xor r15d, r15d
mov dword [rsp + 0x30], r15d
lea rdx, [rsp + 0x30]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x180133aed
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x180133aed
mov dword [rsp + 0x34], eax
lea rdx, [0x180215be0]
lea rcx, [rsp + 0x34]
call fcn.1800fa4d8
mov ecx, dword [rsp + 0x30]
shl rcx, 0x20
or rcx, rbx
mov qword [rsp + 0x40], rcx
mov r8d, 8
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.180133820
mov ecx, 0x8000
call fcn.1800f87f4
mov rbx, rax
test rax, rax
jne 0x180133b35
lea rcx, [rsp + 0x50]
call fcn.180133840
xor eax, eax
jmp 0x180133c0f
xor edx, edx
mov r8d, 0x8000
mov rcx, rax
call fcn.1800f8660
mov edi, r15d
nop dword [rax + rax]
mov dword [rsp + 0xb8], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0xb8]
mov r8d, 0x8000
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180133ba3
test rbx, rbx
je 0x180133b88
mov rcx, rbx
call fcn.1800f8898
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
lea rdx, [0x180215be0]
lea rcx, [rsp + 0x38]
call fcn.1800fa4d8
mov r8d, dword [rsp + 0xb8]
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.180133820
mov r11d, dword [rsp + 0xb8]
add edi, r11d
cmp r11d, 0x8000
jb 0x180133bdd
cmp esi, 0xffffffff
je 0x180133b50
cmp edi, esi
jb 0x180133b50
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.180133990
test rbx, rbx
je 0x180133bf8
mov rcx, rbx
call fcn.1800f8898
nop
jmp 0x180133c02
lea rcx, [rsp + 0x50]
call fcn.180133840
mov eax, r12d
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x180134150
Capabilities:
Get file size
Read file on windows

Disassembly:
mov r8d, 0x100000
jmp fcn.180133a60
Function at 0x180134850
Capabilities:
Get file size
Read file via mapping

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rbx, rcx
xor r13d, r13d
mov ebp, r13d
cmp dword [rcx + 0x30], ebp
je 0x18013487e
call fcn.1800f62e0
mov rbp, rax
mov edx, 0xc0000000
mov eax, 0x80000000
cmp dword [rbx + 0x28], r13d
cmovne edx, eax
mov dword [rsp + 0x90], r13d
mov esi, r13d
mov rcx, qword [rbx + 0x38]
cmp dword [rcx - 8], r13d
je 0x180134902
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov r9, rbp
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1801348e5
lea rdx, [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp qword [rbx + 8], 0xffffffffffffffff
je 0x180134a59
cmp dword [rsp + 0x90], r13d
jne 0x180134902
test esi, esi
je 0x180134a59
mov r14d, 4
mov r12d, r14d
mov eax, 2
cmp dword [rbx + 0x28], r13d
cmovne r12d, eax
lea rdx, [rbx + 0x40]
lea rcx, [rsp + 0x98]
call fcn.1800e9050
nop
cmp dword [rbx + 0x2c], 0
je 0x180134968
mov rax, qword [rbx + 0x40]
cmp dword [rax - 8], 0
je 0x180134968
call fcn.1801277c0
test eax, eax
je 0x180134968
lea rdx, [0x1801a74b8]
lea rcx, [rsp + 0x98]
call fcn.1800e5890
lea rdx, [rbx + 0x40]
lea rcx, [rsp + 0x98]
call fcn.1800e5a60
mov rax, qword [rsp + 0x98]
cmp dword [rax - 8], 0
cmove rax, r13
mov qword [rsp + 0x28], rax
mov eax, dword [rbx + 0x20]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, r12d
mov rdx, rbp
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x180134a4c
mov edx, 6
cmp dword [rbx + 0x28], 0
cmovne edx, r14d
mov ecx, dword [rbx + 0x20]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rbx + 0x24]
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x180134a4a
cmp dword [rbx + 0x20], 0
jne 0x180134a36
cmp qword [rbx + 8], 0xffffffffffffffff
je 0x180134a36
mov dword [rsp + 0xa0], esi
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0xa4], eax
mov eax, dword [rbx + 0x24]
mov dword [rsp + 0xa8], eax
mov dword [rsp + 0xac], r13d
mov rcx, qword [rsp + 0xa0]
sub rcx, qword [rsp + 0xa8]
mov qword [rsp + 0xa0], rcx
shr rcx, 0x20
mov edx, dword [rsp + 0xa0]
or r8d, 0xffffffff
test ecx, ecx
cmovg edx, r8d
mov dword [rbx + 0x20], edx
lea rcx, [rsp + 0x98]
call fcn.1800e56d0
mov eax, 1
jmp 0x180134a5c
jmp 0x180134a4c
lea rcx, [rsp + 0x98]
call fcn.1800e56d0
mov eax, r13d
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180136400
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r11d, r8d
mov r10, rdx
mov r9d, ecx
test rdx, rdx
jne 0x180136419
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rdi
not r9d
lea rdi, [0x1801d3930]
cmp r11d, 8
jb 0x180136511
mov qword [rsp + 0x10], rbx
mov rbx, r11
shr rbx, 3
nop dword [rax]
movzx ecx, byte [r10]
mov eax, r9d
shr r9d, 8
xor rcx, rax
add r10, 8
add r11d, 0xfffffff8
movzx eax, cl
movzx ecx, byte [r10 - 7]
mov edx, dword [rdi + rax*4]
xor edx, r9d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 6]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 5]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 4]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 3]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 2]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 1]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov r9d, dword [rdi + rax*4]
xor r9d, edx
dec rbx
jne 0x180136440
mov rbx, qword [rsp + 0x10]
test r11d, r11d
je 0x18013653f
nop word [rax + rax]
movzx ecx, byte [r10]
mov eax, r9d
inc r10
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
dec r11d
jne 0x180136520
mov rdi, qword [rsp]
not r9d
mov eax, r9d
add rsp, 8
ret