joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e7a0
Capabilities:
Get disk information

Disassembly:
push rbp
push rbx
sub rsp, 0x98
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x68], 0
nop
lea rcx, [rbp + 0x70]
mov rdx, qword [0x0042e720]
mov r8d, 1
mov r9d, 0x104
call fcn.00412390
lea rcx, [rbp + 0x68]
mov rdx, qword [0x0042e760]
mov r8d, 1
mov r9d, 0x104
call fcn.00412390
movzx rax, byte [0x0042ea20]
mov byte [rbp + 0x4f], al
mov rcx, qword [rbp + 0x40]
mov dl, 1
call fcn.0042ec90
test al, al
jne 0x42e845
mov rcx, qword [rbp + 0x40]
mov dl, 1
call fcn.0042ebb0
test al, al
je 0x42e954
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x40]
call fcn.0042f320
lea rcx, [rbp + 0x88]
mov rdx, qword [rbp + 0x58]
call fcn.004391d0
mov rcx, qword [rbp + 0x88]
call fcn.00410260
mov rbx, rax
mov rcx, rbx
mov rdx, qword [rbp + 0x70]
mov r8d, 0x104
lea r9, [rbp + 0x84]
lea rax, [rbp + 0x7c]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x68]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0x104
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x42e94f
mov eax, dword [rbp + 0x80]
test eax, 1
je 0x42e8d2
movzx rax, byte [rbp + 0x4f]
or al, 1
mov byte [rbp + 0x4f], al
mov eax, dword [rbp + 0x80]
test eax, 2
je 0x42e8eb
movzx rax, byte [rbp + 0x4f]
or al, 2
mov byte [rbp + 0x4f], al
mov eax, dword [rbp + 0x80]
test eax, 0x80
je 0x42e904
movzx rax, byte [rbp + 0x4f]
or al, 0x20
mov byte [rbp + 0x4f], al
mov rcx, rbx
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
test eax, eax
je 0x42e928
sub eax, 1
test eax, eax
je 0x42e935
sub eax, 1
test eax, eax
je 0x42e942
sub eax, 1
test eax, eax
jne 0x42e97f
movzx rax, byte [rbp + 0x4f]
or al, 0x10
mov byte [rbp + 0x4f], al
jmp 0x42e97f
movzx rax, byte [rbp + 0x4f]
or al, 4
mov byte [rbp + 0x4f], al
jmp 0x42e97f
movzx rax, byte [rbp + 0x4f]
or al, 8
mov byte [rbp + 0x4f], al
jmp 0x42e97f
call fcn.0043a410
lea rcx, [rbp + 0x50]
mov rdx, qword [0x008b30c0]
call fcn.00416790
mov rcx, qword [0x00423c10]
mov dl, 1
mov r8, qword [rbp + 0x50]
call fcn.00436fe0
mov rcx, rax
call fcn.0040d940
nop
lea rcx, [rbp + 0x50]
mov edx, 2
call fcn.0040e920
lea rcx, [rbp + 0x68]
mov rdx, qword [0x0042e760]
call fcn.00412560
lea rcx, [rbp + 0x70]
mov rdx, qword [0x0042e720]
call fcn.00412560
lea rcx, [rbp + 0x88]
call fcn.0040e840
movzx rax, byte [rbp + 0x4f]
lea rsp, [rbp + 0x98]
pop rbx
pop rbp
ret
Function at 0x42ebb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rbx, rcx
mov esi, edx
mov rcx, rbx
call fcn.00410260
mov rdi, rax
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42ec5d
mov ecx, eax
test ecx, 0x400
je 0x42ec52
test sil, sil
jne 0x42ebf3
mov al, 1
jmp 0x42ec86
test eax, 0x10
je 0x42ec02
xor eax, eax
jmp 0x42ec86
mov rcx, rdi
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x42ec45
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x42ec86
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x20
sete al
jmp 0x42ec86
test eax, 0x10
sete al
jmp 0x42ec86
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x42ec80
cmp eax, 3
je 0x42ec80
cmp eax, 0x7b
je 0x42ec80
mov rcx, rbp
mov rdx, rbx
call fcn.0042eb60
test al, al
jne 0x42ec84
xor eax, eax
jmp 0x42ec86
mov al, 1
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x42ec90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x38
mov ebx, edx
xor esi, esi
call fcn.00410260
mov r13, rax
mov rcx, r13
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
cmp edi, 0xffffffff
je 0x42ed7e
mov eax, edi
test eax, 0x400
jne 0x42ecd2
test edi, 0x10
setne sil
jmp 0x42edb1
test bl, bl
je 0x42ed28
mov rcx, r13
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x2000000
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x42edb1
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
test edi, 0x10
setne sil
jmp 0x42edb1
test edi, 0x10
je 0x42ed35
mov sil, 1
jmp 0x42edb1
mov rcx, r13
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x2000000
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x42ed79
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
xor esi, esi
jmp 0x42edb1
mov sil, 1
jmp 0x42edb1
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x42eda9
cmp eax, 3
je 0x42eda9
cmp eax, 0xa1
je 0x42eda9
cmp eax, 0x7b
je 0x42eda9
cmp eax, 0x35
je 0x42eda9
cmp eax, 0x15
je 0x42eda9
cmp eax, 0x43
jne 0x42edae
xor esi, esi
jmp 0x42edb1
mov sil, 1
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x42f650
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
call fcn.00410260
mov rcx, rax
xor edx, edx
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x435350
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov ebx, r8d
lea r8, [rbp + 0x2c]
mov r9d, 2
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x435377
movzx rax, word [rbp + 0x2c]
jmp 0x435379
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret
Function at 0x436df0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.00436ba0
mov ebx, eax
mov rax, qword [0x008b2fb8]
cmp byte [rax], 0
je 0x436f26
mov rcx, qword [0x008b2c08]
call fcn.0040a8e0
call fcn.00409350
mov ecx, 1
xor edx, edx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00436db0]
mov r8d, 1
movsxd r9, esi
call fcn.00412390
mov ecx, 1
xor edx, edx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [0x00436fbc]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x436f6b
mov rcx, qword [0x008ba270]
call fcn.00412b30
mov rcx, rax
mov rax, qword [0x008b2b88]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
xor ecx, ecx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00436db0]
call fcn.00412560
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret
Function at 0x438b20
Capabilities:
Get file version info

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov qword [rbp + 0x98], r9
nop
mov byte [rbp + 0x67], 0
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x80]
call fcn.0040eef0
lea rcx, [rbp + 0x58]
call fcn.0040f140
mov rcx, qword [rbp + 0x58]
call fcn.00410260
mov rcx, rax
lea rdx, [rbp + 0x50]
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [rbp + 0x54], eax
cmp dword [rbp + 0x54], 0
je 0x438c30
mov ecx, dword [rbp + 0x54]
call fcn.00409030
mov qword [rbp + 0x68], rax
nop
mov rcx, qword [rbp + 0x58]
call fcn.00410260
mov rcx, rax
mov edx, dword [rbp + 0x50]
mov r8d, dword [rbp + 0x54]
mov r9, qword [rbp + 0x68]
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x438c26
mov rcx, qword [rbp + 0x68]
lea rdx, [0x00438c88]
lea r8, [rbp + 0x48]
lea r9, [rbp + 0x44]
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x438c26
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x10]
mov dword [rbp + 0x40], eax
mov rax, qword [rbp + 0x88]
mov ecx, dword [rbp + 0x40]
shr ecx, 0x10
movzx ecx, cx
mov dword [rax], ecx
mov rax, qword [rbp + 0x90]
mov rcx, qword [rbp + 0x48]
movzx ecx, word [rcx + 0x10]
mov dword [rax], ecx
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x14]
mov dword [rbp + 0x3c], eax
mov rax, qword [rbp + 0x98]
mov ecx, dword [rbp + 0x3c]
shr ecx, 0x10
movzx ecx, cx
mov dword [rax], ecx
mov byte [rbp + 0x67], 1
nop
mov rcx, qword [rbp + 0x68]
call fcn.00409060
nop
lea rcx, [rbp + 0x58]
call fcn.0040e840
movzx rax, byte [rbp + 0x67]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x43a060
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.0040f020
mov r13d, eax
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.00416860
mov esi, eax
cmp esi, 0x104
jbe 0x43a0bc
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00409030
mov rdi, rax
jmp 0x43a0c0
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.00416860
mov rcx, rdi
call sub.user32.dll_CharUpperW
xor ebx, ebx
xor ecx, ecx
mov edx, esi
sub edx, 1
mov eax, ecx
cmp eax, edx
jg 0x43a117
sub edx, ecx
add edx, 1
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movsxd rcx, eax
movzx ecx, word [rdi + rcx*2]
xor ebx, ecx
add eax, 1
sub edx, 1
test edx, edx
jne 0x43a0f8
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x43a129
mov rcx, rdi
call fcn.00409060
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x77f1e0
Capabilities:
Resume thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov byte [rbp + 0x2f], dl
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
nop
mov rax, qword [rbp + 0x20]
movzx rax, byte [rax + 0x19]
movzx rcx, byte [rbp + 0x2f]
or al, cl
test al, al
je 0x77f272
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x1d], 0
jne 0x77f272
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x40], 0
jne 0x77f272
mov rax, qword [rbp + 0x20]
mov byte [rax + 0x1b], 0
mov byte [rax + 0x19], 0
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x77f29c
lea rcx, [rbp + 0x38]
mov rdx, qword [0x008b2f10]
call fcn.00416790
mov rcx, qword [0x00749c80]
mov dl, 1
mov r8, qword [rbp + 0x38]
call fcn.00436fe0
mov rcx, rax
call fcn.0040d940
jmp 0x77f29c
lea rcx, [rbp + 0x30]
mov rdx, qword [0x008b2f10]
call fcn.00416790
mov rcx, qword [0x00749c80]
mov dl, 1
mov r8, qword [rbp + 0x30]
call fcn.00436fe0
mov rcx, rax
call fcn.0040d940
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040e920
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x77fe10
Capabilities:
Suspend thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov rax, qword [rbp + 0x50]
movzx rax, byte [rax + 0x1b]
mov byte [rbp + 0x3f], al
nop
mov rax, qword [rbp + 0x50]
mov byte [rax + 0x1b], 1
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_SuspendThread
mov rcx, qword [rbp + 0x50]
test eax, eax
setge dl
call fcn.0077f020
jmp 0x77fe6b
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x77fe90
Capabilities:
Resume thread

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rbx + 0x10]
call sub.kernel32.dll_ResumeThread
mov esi, eax
mov rcx, rbx
test esi, esi
setge dl
call fcn.0077f020
cmp esi, 1
jne 0x77feba
mov byte [rbx + 0x1b], 0
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x816940
Capabilities:
Encode data using xor

Disassembly:
mov al, 0xb5
mov r8, rcx
xor edx, edx
mov ecx, edx
and ecx, 0x3f
mov r9, r8
shr r9, cl
and r9b, 0xff
xor al, r9b
add edx, 1
cmp edx, 8
jne 0x816947
nop
ret

Function at 0x8385b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rbx
sub rsp, 0x68
mov rbp, rsp
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rdx
mov rcx, qword [rbp + 0x88]
call fcn.0040e9f0
nop
mov qword [rbp + 0x58], 0
mov rax, qword [rbp + 0x80]
mov rcx, qword [rbp + 0x80]
movsxd rcx, dword [rcx + 0x3c]
lea rax, [rax + rcx]
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x50]
cmp dword [rax + 0x88], 0
je 0x8386e7
mov rax, qword [rbp + 0x50]
mov eax, dword [rax + 0x88]
mov rcx, qword [rbp + 0x80]
lea rax, [rax + rcx]
mov qword [rbp + 0x48], rax
xor eax, eax
mov rcx, qword [rbp + 0x48]
mov ebx, dword [rcx + 0x18]
sub ebx, 1
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], ebx
jg 0x8386e6
sub ebx, eax
add ebx, 1
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp + 0x80]
lea rax, [rax + rcx]
movsxd rcx, dword [rbp + 0x44]
mov eax, dword [rax + rcx*4]
mov rcx, qword [rbp + 0x80]
lea rax, [rax + rcx]
mov qword [rbp + 0x38], rax
lea rcx, [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
xor r8, r8
call fcn.0040f400
mov rcx, qword [rbp + 0x88]
mov rdx, qword [rbp + 0x28]
call fcn.0040f9f0
test eax, eax
jne 0x8386d7
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp + 0x80]
lea rax, [rax + rcx]
movsxd rcx, dword [rbp + 0x44]
movzx eax, word [rax + rcx*2]
mov dword [rbp + 0x34], eax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbp + 0x80]
lea rax, [rax + rcx]
mov ecx, dword [rbp + 0x34]
mov eax, dword [rax + rcx*4]
mov rcx, qword [rbp + 0x80]
lea rax, [rax + rcx]
mov qword [rbp + 0x58], rax
jmp 0x8386e6
add dword [rbp + 0x44], 1
sub ebx, 1
test ebx, ebx
jne 0x838645
nop
nop
lea rcx, [rbp + 0x28]
call fcn.0040e890
lea rcx, [rbp + 0x88]
call fcn.0040e890
mov rax, qword [rbp + 0x58]
lea rsp, [rbp + 0x68]
pop rbx
pop rbp
ret
Function at 0x838d00
Capabilities:
Check if file exists

Disassembly:
push rbp
push rbx
sub rsp, 0x88
mov rbp, rsp
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0xa0], rcx
nop
lea rcx, [0x00838ef0]
call sub.kernel32.dll_GetModuleHandleW_1
mov rbx, rax
lea rcx, [rbp + 0x58]
lea rdx, [0x00838f0a]
xor r8, r8
call fcn.0040f400
mov rcx, rbx
mov rdx, qword [rbp + 0x58]
call fcn.008385b0
mov qword [0x008aa570], rax
mov rcx, qword [rbp + 0xa0]
call fcn.0040fcd0
mov rcx, rax
call qword [0x008aa570]
mov dword [rbp + 0x78], eax
cmp dword [rbp + 0x78], 0xffffffff
je 0x838e8e
mov eax, dword [rbp + 0x78]
test eax, 0x400
je 0x838e7d
mov eax, dword [rbp + 0x78]
test eax, 0x10
je 0x838da6
mov byte [rbp + 0x7f], 0
jmp 0x838eb2
lea rcx, [0x00838ef0]
call sub.kernel32.dll_GetModuleHandleW_1
mov rbx, rax
lea rcx, [rbp + 0x50]
lea rdx, [0x00838f1d]
xor r8, r8
call fcn.0040f400
mov rcx, rbx
mov rdx, qword [rbp + 0x50]
call fcn.008385b0
mov qword [0x008aa568], rax
mov rcx, qword [rbp + 0xa0]
call fcn.0040fcd0
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call qword [0x008aa568]
mov qword [rbp + 0x70], rax
call sub.kernel32.dll_GetLastError_2
mov dword [rbp + 0x6c], eax
cmp qword [rbp + 0x70], 0xffffffffffffffff
je 0x838e71
lea rcx, [0x00838ef0]
call sub.kernel32.dll_GetModuleHandleW_1
mov rbx, rax
lea rcx, [rbp + 0x48]
lea rdx, [0x00838f29]
xor r8, r8
call fcn.0040f400
mov rcx, rbx
mov rdx, qword [rbp + 0x48]
call fcn.008385b0
mov qword [0x008aa560], rax
mov rcx, qword [rbp + 0x70]
call qword [0x008aa560]
mov byte [rbp + 0x7f], 1
jmp 0x838eb2
cmp dword [rbp + 0x6c], 0x20
sete al
mov byte [rbp + 0x7f], al
jmp 0x838eb2
mov eax, dword [rbp + 0x78]
test eax, 0x10
sete al
mov byte [rbp + 0x7f], al
jmp 0x838eb2
call sub.kernel32.dll_GetLastError_2
mov dword [rbp + 0x6c], eax
cmp dword [rbp + 0x6c], 2
je 0x838ea8
cmp dword [rbp + 0x6c], 3
je 0x838ea8
cmp dword [rbp + 0x6c], 0x7b
jne 0x838eac
xor eax, eax
jmp 0x838eae
mov al, 1
mov byte [rbp + 0x7f], al
nop
lea rcx, [rbp + 0x48]
mov edx, 3
call fcn.0040e950
movzx rax, byte [rbp + 0x7f]
lea rsp, [rbp + 0x88]
pop rbx
pop rbp
ret

Function at 0x83d7e0
Capabilities:
Get disk information

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov qword [rsp + 0x40], rcx
xor ebx, ebx
cmp qword [rsp + 0x40], 0
je 0x83d857
mov rcx, qword [rsp + 0x40]
call fcn.0083db80
test al, al
je 0x83d857
mov rcx, qword [rsp + 0x40]
call fcn.0083d8d0
mov esi, eax
call sub.kernel32.dll_GetLogicalDrives
mov rcx, qword [rsp + 0x40]
sub esi, 1
movsxd rsi, esi
movzx rcx, word [rcx + rsi*2]
mov edx, ecx
mov r8d, ecx
sub r8w, 0x61
sub eax, 0x61
Function at 0x86ff90
Capabilities:
Hash data with crc32

Disassembly:
push rbp
mov rbp, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x40
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x38]
mov qword [rcx + 0x40], 0
mov rcx, qword [rsp + 0x38]
mov dword [rcx + 0x64], 0
mov rcx, qword [rsp + 0x38]
mov qword [rcx + 0x28], 0
mov rcx, qword [rsp + 0x38]
call fcn.00870070
mov dword [rsp + 0x34], 0
cmp dword [rsp + 0x34], 0x100
jae 0x870069
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x2c], 0
cmp dword [rsp + 0x2c], 8
jge 0x870043
mov eax, dword [rsp + 0x30]
shr eax, 1
mov ecx, dword [rsp + 0x30]
and ecx, 1
sub ecx, 1
xor ecx, 0xffffffff
and ecx, 0xedb88320
xor eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x2c]
add eax, 1
mov dword [rsp + 0x2c], eax
jmp 0x86fffa
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x38]
mov dword [rdx + rcx*4 + 0x8c], eax
mov eax, dword [rsp + 0x34]
add eax, 1
mov dword [rsp + 0x34], eax
jmp 0x86ffdc
mov rsp, rbp
pop rbp
ret

Function at 0x873510
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x60
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], r8
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x44]
mov rax, rsp
mov qword [rax + 0x28], rdx
mov dword [rax + 0x20], 0
xor r9d, r9d
mov qword [rsp + 0x38], rcx
mov ecx, r9d
mov edx, r9d
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], r8
mov r8, rax
mov r9, qword [rsp + 0x30]
call sub.msvcrt.dll__beginthreadex
movsxd r8, eax
mov r9, qword [rsp + 0x58]
mov qword [r9], r8
mov r8, qword [rsp + 0x58]
mov rcx, qword [r8]
call fcn.008733d0
mov rsp, rbp
pop rbp
ret
Function at 0x87df40
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
and rsp, 0xfffffffffffffff8
sub rsp, 0x20
mov qword [rsp + 0x18], rcx
mov dword [rsp + 0x14], edx
mov qword [rsp + 8], r8
mov dword [rsp + 4], 0
mov edx, dword [rsp + 0x14]
or edx, 0x100
mov dword [rsp + 0x14], edx
mov eax, dword [rsp + 0x14]
shr eax, 8
mov ecx, eax
mov rdx, qword [rsp + 0x18]
mov eax, dword [rdx + rcx*4]
mov r8d, dword [rsp + 0x14]
shr r8d, 7
and r8d, 1
mov r9d, 0
sub r9d, r8d
and r9d, 0x7ff
xor eax, r9d
shr eax, 4
mov ecx, eax
mov rdx, qword [rsp + 8]
mov eax, dword [rdx + rcx*4]
mov r8d, dword [rsp + 4]
add r8d, eax
mov dword [rsp + 4], r8d
mov eax, dword [rsp + 0x14]
shl eax, 1
mov dword [rsp + 0x14], eax
cmp dword [rsp + 0x14], 0x10000
jb 0x87df73
mov eax, dword [rsp + 4]
mov rsp, rbp
pop rbp
ret
Function at 0x2fc532e50
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc533f30
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc533852
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc556108]
test eax, eax
je 0x2fc5338ea
lea rax, [0x2fc5560e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc556110]
mov qword [rbp - 8], rax
jmp 0x2fc5338ce
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc5338c2
cmp qword [rbp - 0x10], 0
je 0x2fc5338c2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc533888
lea rax, [0x2fc5560e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc5338eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc5339f0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc533a18
mov eax, 0
jmp 0x2fc533a66
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc533a41
mov eax, 0
jmp 0x2fc533a66
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc533a61
mov eax, 0
jmp 0x2fc533a66
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc533a6c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc533aea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc533ae1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc533ae1
mov rax, qword [rbp - 8]
jmp 0x2fc533aff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc533ab4
mov eax, 0
add rsp, 0x20
pop rbp
ret