joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180085bb0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [fcn.1800affb0]
mov rdi, rax
test rax, rax
jne 0x180085bf2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x180085c39
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x180085c92
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x180085c50
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x180085cd3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x18011abf9]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x18011abfa]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x180085ca0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x180090220
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.18008fd00
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18009025f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x18010a788]
jmp 0x180090269
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1800dd420
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret

Function at 0x1800deb80
Capabilities:
Get geographical location

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.1800ddfa0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1800debe7
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x18010a790]
jmp 0x1800dec09
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1800defe0
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret
Function at 0x1800e1a40
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.180087070
sub rsp, rax
mov rax, qword [0x18014a040]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x18014ddf0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, listen
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1800e1c32
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x1800e1b86
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1800e1b86
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x1800e1b6b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], reloc.WS2_32.dll_listen
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1800e1b08
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1800e1bf2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, listen
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1800e1c51
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x1800e1c2d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, listen
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1800e1c51
jmp 0x1800e1ade
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, listen
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.180028950
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1800e1c70
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.180087070
sub rsp, rax
mov rax, qword [0x18014a040]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x18014ddf0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, listen
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1800e1e7d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x1800e1dc9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1800e1dc9
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x1800e1da9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, reloc.WS2_32.dll_listen
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x1800e1d38
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1800e1e3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, listen
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1800e1e9c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x1800e1e78
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, listen
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1800e1e9c
jmp 0x1800e1d0e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, listen
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.180028950
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1800e4250
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800e427c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1800c48b0
mov eax, 0xffffffff
jmp 0x1800e427e
xor eax, eax
add rsp, 0x28
ret
Function at 0x1800efc90
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.18002abe0
lea rcx, [rsp + 0x40]
call fcn.1800efc50
movzx eax, al
test eax, eax
jne 0x1800efcd8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1800efb60
mov rax, qword [rsp + 0x70]
jmp 0x1800efea9
lea rcx, [rsp + 0x40]
call fcn.18002ad30
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1800efc00
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.18002ad30
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1800e48b0
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1800efd7e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1800efb60
mov rax, qword [rsp + 0x80]
jmp 0x1800efea9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1800b7390
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.18002abe0
lea rcx, [rsp + 0x48]
call fcn.18002ac90
movzx eax, al
test eax, eax
jne 0x1800efde5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.18002ac50
lea rcx, [rsp + 0x40]
call fcn.1800efb60
mov rax, qword [rsp + 0x88]
jmp 0x1800efea9
lea rcx, [rsp + 0x48]
call fcn.18002ad30
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.18002ad30
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1800e48b0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1800efe7b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.18002ac50
lea rcx, [rsp + 0x40]
call fcn.1800efb60
mov rax, qword [rsp + 0xa0]
jmp 0x1800efea9
lea rcx, [rsp + 0x48]
call fcn.1800894b0
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.18002ac50
lea rcx, [rsp + 0x40]
call fcn.1800efb60
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1800efec0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.18002abe0
lea rcx, [rsp + 0x20]
call fcn.1800efb80
movzx eax, al
test eax, eax
jne 0x1800eff05
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1800efb60
mov rax, qword [rsp + 0x40]
jmp 0x1800effff
lea rcx, [rsp + 0x20]
call fcn.18002ad30
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1800efc00
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1800b7390
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.18002abe0
lea rcx, [rsp + 0x28]
call fcn.18002ac90
movzx eax, al
test eax, eax
jne 0x1800eff9f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.18002ac50
lea rcx, [rsp + 0x20]
call fcn.1800efb60
mov rax, qword [rsp + 0x50]
jmp 0x1800effff
lea rcx, [rsp + 0x20]
call fcn.18002ad30
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.18002ad30
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.180106400
lea rcx, [rsp + 0x28]
call fcn.1800894b0
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.18002ac50
lea rcx, [rsp + 0x20]
call fcn.1800efb60
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret

Function at 0x1800f1730
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x1800fbe40
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x270
mov rax, qword [0x18014a040]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rdx, [rsp + 0x50]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x104
ja 0x1800fbe99
lea rcx, [rsp + 0x50]
call fcn.1800fbde0
jmp 0x1800fbf6c
mov eax, dword [rsp + 0x30]
inc eax
mov eax, eax
mov dword [rsp + 0x20], Ordinal_41
lea r9, str.minkernelcrtsucrt_srcdesktopcrtmiscdrive.cpp
mov r8d, 2
mov edx, 2
mov ecx, eax
call fcn.1800b7280
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.18002abe0
lea rcx, [rsp + 0x38]
call fcn.18002ad30
test rax, rax
jne 0x1800fbf01
call fcn.1800c4970
mov dword [rax], listen
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x38]
call fcn.18002ac50
mov eax, dword [rsp + 0x40]
jmp 0x1800fbf6c
lea rcx, [rsp + 0x38]
call fcn.18002ad30
mov ecx, dword [rsp + 0x30]
inc ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1800fbf48
call fcn.1800c4970
mov dword [rax], listen
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x38]
call fcn.18002ac50
mov eax, dword [rsp + 0x48]
jmp 0x1800fbf6c
lea rcx, [rsp + 0x38]
call fcn.18002ad30
mov rcx, rax
call fcn.1800fbde0
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x38]
call fcn.18002ac50
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180028950
add rsp, 0x270
pop rdi
ret
Function at 0x180100e90
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
lea rcx, [rsp + 0xe8]
call fcn.1800b3c70
lea rcx, [rsp + 0xb8]
call fcn.1800b3c70
lea rcx, [rsp + 0x88]
call fcn.1800b3c70
call fcn.1800b3d50
mov r8d, eax
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x130]
call fcn.1800b3c20
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x180100f32
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x88]
call fcn.1800b3cd0
lea rcx, [rsp + 0xb8]
call fcn.1800b3cd0
lea rcx, [rsp + 0xe8]
call fcn.1800b3cd0
mov eax, dword [rsp + 0x54]
jmp 0x1801010d8
call fcn.1800b3d50
mov r8d, eax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x138]
call fcn.1800b3c20
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x180100f92
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x88]
call fcn.1800b3cd0
lea rcx, [rsp + 0xb8]
call fcn.1800b3cd0
lea rcx, [rsp + 0xe8]
call fcn.1800b3cd0
mov eax, dword [rsp + 0x5c]
jmp 0x1801010d8
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x168], 0
je 0x180101018
call fcn.1800b3d50
mov r8d, eax
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x168]
call fcn.1800b3c20
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x180101006
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x88]
call fcn.1800b3cd0
lea rcx, [rsp + 0xb8]
call fcn.1800b3cd0
lea rcx, [rsp + 0xe8]
call fcn.1800b3cd0
mov eax, dword [rsp + 0x64]
jmp 0x1801010d8
lea rcx, [rsp + 0x88]
call fcn.1800ae780
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xb8]
call fcn.1800ae780
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xe8]
call fcn.1800ae780
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x148]
mov r8, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x88]
call fcn.1800b3cd0
lea rcx, [rsp + 0xb8]
call fcn.1800b3cd0
lea rcx, [rsp + 0xe8]
call fcn.1800b3cd0
mov eax, dword [rsp + 0x68]
add rsp, 0x128
ret
Function at 0x180103210
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1800b3c70
lea rcx, [rsp + 0x48]
call fcn.1800b3c70
call fcn.1800b3d50
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1800b3c20
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18010327f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1800b3cd0
lea rcx, [rsp + 0x78]
call fcn.1800b3cd0
mov eax, dword [rsp + 0x24]
jmp 0x180103310
call fcn.1800b3d50
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1800b3c20
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1801032c6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1800b3cd0
lea rcx, [rsp + 0x78]
call fcn.1800b3cd0
mov eax, dword [rsp + 0x2c]
jmp 0x180103310
lea rcx, [rsp + 0x48]
call fcn.1800ae780
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1800ae780
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1800b3cd0
lea rcx, [rsp + 0x78]
call fcn.1800b3cd0
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret

Function at 0x180103a40
Capabilities:
Get disk information

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov rax, qword [0x18014a040]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp dword [rsp + 0x60], 0x1a
jbe 0x180103b0d
call fcn.1800c4940
mov dword [rax], reloc.WS2_32.dll_ntohs
xor eax, eax
test eax, eax
je 0x180103a7d
mov dword [rsp + 0x34], 1
jmp 0x180103a85
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x180103ace
lea rax, str.__Invalid_Drive_Index___0_
mov qword [rsp + 0x28], rax
lea rax, [0x18010aae0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, Ordinal_35
lea rdx, str.minkernelcrtsucrt_srcdesktopcrtmiscgetcwd.cpp
mov ecx, 2
call fcn.1800b0ff0
cmp eax, 1
jne 0x180103ace
int3
cmp dword [rsp + 0x38], 0
jne 0x180103b0d
call fcn.1800c4970
mov dword [rax], reloc.WS2_32.dll_listen
mov qword [rsp + 0x20], 0
mov r9d, Ordinal_35
lea r8, str.minkernelcrtsucrt_srcdesktopcrtmiscgetcwd.cpp
lea rdx, str.is_valid_drive
lea rcx, str.__Invalid_Drive_Index___0_
call fcn.1800b1570
xor eax, eax
jmp 0x180103b72
cmp dword [rsp + 0x60], 0
jne 0x180103b1b
mov eax, 1
jmp 0x180103b72
mov eax, dword [rsp + 0x60]
add eax, 0x40
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x40], ax
mov eax, Ordinal_60
mov word [rsp + 0x42], ax
mov eax, 0x5c
mov word [rsp + 0x44], ax
xor eax, eax
mov word [rsp + 0x46], ax
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x180103b69
cmp dword [rsp + 0x3c], 1
jne 0x180103b6d
xor eax, eax
jmp 0x180103b72
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180028950
add rsp, 0x58
ret
Function at 0x140134248
Capabilities:
Encode data using xor

Disassembly:
lea rsp, [rsp + 8]
je 0x14016615f
push rdi
jmp 0x1401660f9
mov edx, 0xba31c699
mov rdx, qword [r8]
mov rax, qword [r8 + 8]
add r8, 0xc
xor esi, esi
test rax, rax
jmp 0x14013362d

Function at 0x1401633e3
Capabilities:
Encode data using xor

Disassembly:
mov r10, qword [rbx]
push 0x4baf3f1d
mov rax, qword [rbx + 8]
jmp 0x1401649a3
add rbx, 0xc
xor ecx, ecx
test rax, rax
lea rsp, [rsp + 0x10]
je 0x140164a1f
push rbx
mov ebx, 0x430d90a7
xor ebx, 0x4e8ba09a
lea rbx, [0x140163538]
movzx r11d, byte [r10]
xor r11d, ecx
and r11d, 0xff
mov r11d, dword [rbx + r11*4]
push 0xffffffffc30150af
shr ecx, 8
sal byte [rsp + 6], 0x24
xor ecx, r11d
inc byte [rsp + 5]
inc r10
sub word [rsp + 6], 0xaf3a
adc dword [rsp + 3], 0x90c5a8e
xor ecx, 0x48833e0f
dec rax
lea rsp, [rsp + 8]
jne 0x1401649cd
mov ebx, 0x48beb2bf
pop rbx
push 0xffffffffc403c82b
not word [rsp + 4]
not ecx
call fcn.140158f03
jmp 0x14016fe72
mov ebp, dword [rbp + riz]
push 0x33bf14af
mov qword [rsp], 0xf0b129a
lea rsp, [rsp + 8]
jmp fcn.140160539
Function at 0x140003040
Capabilities:
Enumerate system firmware tables

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
xor r8d, r8d
xor edx, edx
mov rsi, qword [sym.imp.KERNEL32.dll_EnumSystemFirmwareTables]
mov ecx, 0x41435049
call rsi
test eax, eax
mov ebx, eax
jne 0x140003070
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov ecx, eax
call sub.msvcrt.dll_malloc
test rax, rax
mov r12, rax
je 0x140003061
mov r8d, ebx
mov rdx, rax
mov ecx, 0x41435049
call rsi
test eax, eax
je 0x14000311e
shr eax, 2
test eax, eax
mov r10d, eax
je 0x1400030fc
mov r11d, 1
add r10, r12
mov rax, r12
lea rcx, [rsp + 0x29]
xor r9d, r9d
sub r11d, r12d
jmp 0x1400030e5
test r9b, r9b
jne 0x1400030d1
cmp dword [rsp + 0x29], 0x54455048
sete r9b
mov edx, dword [rax + 0x10]
test edx, edx
je 0x1400030fc
lea edx, [r11 + rax]
add rax, 1
cmp rax, r10
je 0x140003108
mov edx, dword [rax + 0xa]
movzx r8d, word [rax + 0xe]
cmp edx, 0x54454157
mov dword [rcx], edx
mov word [rcx + 4], r8w
jne 0x1400030c0
xor ecx, ecx
call sub.msvcrt.dll_exit
nop dword [rax + rax]
cmp edx, 7
jle 0x1400030fc
test r9b, r9b
jne 0x14000311e
lea rcx, str._detected__HPET_not_found_Cuckoo_detected__n
call fcn.140001450
mov rcx, r12
add rsp, 0x30
pop rbx
pop rsi
pop r12
jmp fcn.140018040