joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140050640
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x468
mov rax, qword [0x1400ae038]
xor rax, rsp
mov qword [rsp + 0x450], rax
movzx eax, word [rcx]
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp ax, 2
je 0x140050678
cmp ax, 0x17
jne 0x1400506ed
movzx ecx, word [rcx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
lea rcx, [rsp + 0x40]
mov dword [rsi], eax
mov r8d, 0x401
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x40]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x1400506ed
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400506d2
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140005f10
mov al, 1
jmp 0x1400506ef
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14008bb80
add rsp, 0x468
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14005ce40
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x58
mov rax, qword [0x1400ae038]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov qword [rsp + 0x28], rcx
cmp qword [rcx + 0x20], 0x10
lea rsi, [rcx + 8]
mov rbp, rdx
mov byte [rsp + 0x20], 0
mov edi, 2
mov r15d, ebx
mov rdx, rsi
jb 0x14005ce84
mov rdx, qword [rsi]
lea r8, [rsp + 0x38]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x14005cea0
mov r15d, reloc.WS2_32.dll_recv
jmp 0x14005cec4
cmp qword [rsi + 0x18], 0x10
jb 0x14005ceaa
mov rsi, qword [rsi]
lea r8, [rsp + 0x30]
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x14005cec9
mov r15d, 4
mov edi, 7
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
lea edx, [r9 + 0x55]
call qword [sym.imp.libcrypto_3_x64.dll_X509_get_ext_d2i]
mov r12, rax
test rax, rax
je 0x14005cfb5
mov qword [rsp + 0xa0], r13
mov rcx, rax
mov qword [rsp + 0x50], r14
xor r13b, r13b
xor r14b, r14b
call qword [sym.imp.libcrypto_3_x64.dll_OPENSSL_sk_num]
mov dword [rsp + 0x24], eax
test eax, eax
jle 0x14005cfa8
test r14b, r14b
jne 0x14005cfa3
mov edx, ebx
mov rcx, r12
call qword [sym.imp.libcrypto_3_x64.dll_OPENSSL_sk_value]
mov rsi, rax
cmp dword [rax], edi
jne 0x14005cf8d
mov rcx, qword [rax + 8]
call qword [sym.imp.libcrypto_3_x64.dll_ASN1_STRING_get0_data]
mov rcx, qword [rsi + 8]
mov rbp, rax
call qword [sym.imp.libcrypto_3_x64.dll_ASN1_STRING_length]
movsxd r8, eax
cmp edi, 2
je 0x14005cf7c
cmp edi, 7
jne 0x14005cf8d
mov r8, r15
lea rcx, [rsp + 0x38]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14005cf77
mov r8, r15
lea rcx, [rsp + 0x30]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14005cf8d
mov r13b, 1
jmp 0x14005cf8d
mov rcx, qword [rsp + 0x28]
mov rdx, rbp
call fcn.14005cfe0
movzx r14d, al
inc ebx
cmp ebx, dword [rsp + 0x24]
jl 0x14005cf10
test r14b, r14b
jne 0x14005cfa3
test r13b, r13b
je 0x14005cfa8
mov byte [rsp + 0x20], 1
mov r13, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.libcrypto_3_x64.dll_GENERAL_NAMES_free]
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14008bb80
add rsp, 0x58
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14005f200
Capabilities:
Get geographical location

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, 0x40
mov rbp, rcx
xor r14d, r14d
lea ecx, [r14 + 0x10]
call qword [sym.imp.KERNEL32.dll_GetUserGeoID]
xor r9d, r9d
mov word [rsp + 0x20], r14w
mov ecx, eax
lea edx, [r14 + 4]
xor r8d, r8d
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetGeoInfoA]
movsxd rbx, eax
mov rcx, rbx
call fcn.14008bf04
mov r9d, ebx
mov word [rsp + 0x20], r14w
mov r8, rax
lea edx, [r14 + 4]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetGeoInfoA]
xorps xmm0, xmm0
mov r8, 0xffffffffffffffff
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x18], r14
inc r8
cmp byte [rsi + r8], r14b
jne 0x14005f280
mov rdx, rsi
mov rcx, rbp
call fcn.140006aa0
mov edx, 1
mov rcx, rsi
call fcn.14008bba0
mov rbx, qword [rsp + 0x50]
mov rax, rbp
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14006e4e0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x1400ae038]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbp, rcx
mov r15, r9
mov rcx, r8
mov rsi, r8
mov rdi, rdx
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x14006e679
mov eax, dword [rsi + 0x4c]
cmp eax, 0x7fffffff
je 0x14006e637
mov rcx, rdi
call qword [sym.imp.libssl_3_x64.dll_SSL_new]
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test rdi, rdi
je 0x14006e5f6
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 1
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor edx, edx
mov ecx, ebp
call qword [sym.imp.libcrypto_3_x64.dll_BIO_new_socket]
xor r9d, r9d
mov rcx, rax
mov r14, rax
lea edx, [r9 + 0x66]
lea r8d, [r9 + 1]
call qword [sym.imp.libcrypto_3_x64.dll_BIO_ctrl]
mov r8, r14
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.libssl_3_x64.dll_SSL_set_bio]
mov r9, qword [rsp + 0x80]
add r9, 8
cmp qword [r9 + 0x18], 0x10
jb 0x14006e5a9
mov r9, qword [r9]
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 0x37]
call qword [sym.imp.libssl_3_x64.dll_SSL_ctrl]
mov rdx, rdi
mov rcx, r15
call fcn.14005c9e0
cmp al, 1
jne 0x14006e617
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
lea edx, [r9 + 0x66]
call qword [sym.imp.libcrypto_3_x64.dll_BIO_ctrl]
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, rdi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14008bb80
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rcx, rdi
call qword [sym.imp.libssl_3_x64.dll_SSL_shutdown]
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x14006e679
mov eax, dword [rsi + 0x4c]
cmp eax, 0x7fffffff
jne 0x14006e648
dec eax
mov ecx, 6
mov dword [rsi + 0x4c], eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov rcx, rdi
call qword [sym.imp.libssl_3_x64.dll_SSL_free]
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor eax, eax
jmp 0x14006e5f9
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140082e80
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140082f4c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140082f4c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140082f65
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x140082f3c
cmp byte [rax], 0x5c
jne 0x140082f36
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140082f36
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140082f22
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140082f33
test r8b, 0x10
jne 0x140082f36
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140082f36
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.14007a1a0
test edi, edi
jne 0x140082ea0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.14007a190
int3
Function at 0x14008b2cc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14008b350
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140092f00]
cmp byte [rcx + rax], 0
je 0x14008b350
dec r8
sub rdx, 1
jne 0x14008b336
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.14008b368
mov ebx, eax
test eax, eax
jne 0x14008b970
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14008b9d3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14008b9ca
test al, 0x10
je 0x14008b9ca
bt eax, 0xa
jae 0x14008b9c3
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14008b9e4
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14008b9bf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14008b9bf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
test edi, edi
jne 0x14008b9ca
and dword [rsp + 0x3c], 0
jmp 0x14008b9cf
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14008c940
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14008c98a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14008c98a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14008c98a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14008c98a
cmp dword [rcx + 0x84], 0xe
jbe 0x14008c98a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14008c98c
xor al, al
add rsp, 0x28
ret
Function at 0x954058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x9541df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x954089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x95406f
add dl, dl
jne 0x954096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x9540f6
xor eax, eax
add dl, dl
jne 0x9540a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x9541ad
add dl, dl
jne 0x9540b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9540c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9540d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9540dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x9540ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x95407e
mov eax, 1
add dl, dl
jne 0x954106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x954113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x9540fb
sub eax, ebx
mov ebx, 1
jne 0x95414c
mov ecx, 1
add dl, dl
jne 0x95412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x95413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x954123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x95407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x954168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x954175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x95415d
cmp eax, 0x7d00
jae 0x95419b
cmp eax, 0x500
jb 0x954196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x95407e
cmp eax, 0x7f
ja 0x95419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x95407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x9541d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x95407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140011208
Capabilities:
Terminate process

Disassembly:
jmp 0x1400158f0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011294
Capabilities:
Parse pe header

Disassembly:
jmp 0x140016c40
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140016c60
xor al, al
jmp 0x140016ce1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140016c73
xor al, al
jmp 0x140016ce1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140016c9d
xor al, al
jmp 0x140016ce1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140016cb1
xor al, al
jmp 0x140016ce1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140016cc3
xor al, al
jmp 0x140016ce1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140016cdf
xor al, al
jmp 0x140016ce1
mov al, 1
add rsp, 0x38
ret
Function at 0x14001137a
Capabilities:
Read file on windows

Disassembly:
jmp 0x140013de0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x140026041]
call fcn.14001139d
lea rdx, [0x14001d584]
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.ucrtbased.dll_fopen]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x140013eb5
mov r8d, 2
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fseek]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_ftell]
mov rcx, qword [rbp + 0x110]
mov dword [rcx], eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fseek]
mov rax, qword [rbp + 0x110]
mov eax, dword [rax]
inc eax
mov eax, eax
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_malloc]
mov rcx, qword [rbp + 0x108]
mov qword [rcx], rax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax]
mov r9, qword [rbp + 8]
mov r8d, 1
mov edx, eax
mov rax, qword [rbp + 0x108]
mov rcx, qword [rax]
call qword [sym.imp.ucrtbased.dll_fread]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fclose]
mov eax, 1
jmp 0x140013eb7
xor eax, eax
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x18002d810
Capabilities:
Enumerate files on windows

Disassembly:
push rsi
sub rsp, 0x180
mov rax, qword [0x180073c38]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov eax, dword [0x180074b78]
lea r9, [0x180077320]
mov dword [rsp + 0x28], eax
lea r8, str.C:_vm3dum_log_vm3dum_s__d__d.log
mov eax, dword [0x1800772f0]
lea rcx, [0x180077340]
mov edx, 0x80
mov dword [rsp + 0x20], eax
call fcn.18002dc90
mov r8d, 0x20
lea rdx, [0x18005f1b4]
lea rcx, [0x180077340]
call fcn.18004274c
mov rsi, rax
test rax, rax
je 0x18002d91f
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x198], rdi
lea rcx, str.C:_vm3dum_log_vm3dum.log
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18002d903
mov qword [rsp + 0x190], rbx
lea rdx, [rsp + 0x30]
mov rcx, rax
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x18002d8e1
inc ebx
cmp ebx, 0x200
ja 0x18002d8e1
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x18002d8c5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, 0x200
mov rbx, qword [rsp + 0x190]
ja 0x18002d903
mov qword [0x180074b70], rsi
jmp 0x18002d917
mov rcx, rsi
call fcn.1800422ac
lea rcx, [0x180077340]
call fcn.1800428cc
mov rdi, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1800372a0
add rsp, 0x180
pop rsi
ret

Function at 0x18002da40
Capabilities:
Enumerate files on windows

Disassembly:
movups xmm0, xmmword [rcx]
movups xmmword [0x1800772c0], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [0x1800772d0], xmm1
movups xmm0, xmmword [rcx + 0x20]
mov ecx, dword [0x1800772b0]
movups xmmword [0x1800772e0], xmm0
test ecx, ecx
je 0x18002dad8
sub ecx, 1
je 0x18002dac4
sub ecx, 1
je 0x18002dab0
sub ecx, 1
je 0x18002da9c
cmp ecx, 1
je 0x18002da88
xor eax, eax
mov dword [0x1800772ac], eax
jmp 0x18002daea
mov eax, dword [0x1800772d0]
mov dword [0x1800772ac], eax
mov eax, dword [0x1800772e8]
jmp 0x18002daea
mov eax, dword [0x1800772cc]
mov dword [0x1800772ac], eax
mov eax, dword [0x1800772e4]
jmp 0x18002daea
mov eax, dword [0x1800772c8]
mov dword [0x1800772ac], eax
mov eax, dword [0x1800772e0]
jmp 0x18002daea
mov eax, dword [0x1800772c4]
mov dword [0x1800772ac], eax
mov eax, dword [0x1800772dc]
jmp 0x18002daea
mov eax, dword [0x1800772c0]
mov dword [0x1800772ac], eax
mov eax, dword [0x1800772d8]
cmp byte [0x1800772ec], 0
mov dword [0x1800772a8], eax
je 0x18002db07
cmp qword [0x180074b70], 0
je fcn.18002d810
ret

Function at 0x18002dcf0
Capabilities:
Set thread local storage value

Disassembly:
mov rax, qword [rcx]
mov r9, rcx
lock inc qword [rax]
cmp byte [0x180077261], 0
je 0x18002dd4e
rdtsc
shl rdx, 0x20
or rax, rdx
mov rdx, qword [rcx]
mov r8, rax
sub r8, qword [rcx + 0x10]
lock xadd qword [rdx + 8], r8
mov rdx, rax
sub rdx, qword [rcx + 8]
mov rcx, qword [rcx]
lock xadd qword [rcx + 0x10], rdx
mov rdx, qword [r9 + 0x18]
test rdx, rdx
je 0x18002dd41
sub rax, qword [r9 + 8]
add qword [rdx + 0x10], rax
mov rdx, qword [r9 + 0x18]
mov ecx, dword [0x180077264]
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]
ret
Function at 0x18002dd50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x180077261], 0
mov rbx, rcx
je 0x18002dda0
lock inc qword [0x18007f730]
rdtsc
shl rdx, 0x20
or rax, rdx
mov qword [rcx + 0x10], rax
mov qword [rcx + 8], rax
mov ecx, dword [0x180077264]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbx + 0x18], rax
mov rdx, rbx
mov ecx, dword [0x180077264]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x20
pop rbx
ret

Function at 0x18002df10
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [0x180077260], 0
mov rbx, rcx
jne 0x18002df94
mov word [0x180077260], 0x101
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edx, 0x40
mov qword [rsp + 0x20], rbx
lea r9, [0x18005f128]
mov dword [0x180077264], eax
lea rcx, [0x180077268]
lea r8, [rdx - 0x41]
call fcn.18002dbd0
mov ecx, dword [0x180077264]
cmp ecx, 0xffffffff
jne 0x18002df78
lea rcx, str.Unable_allocate_TLS_for_MKSGuestStats.__Timing_will_be_unavailable._n
call fcn.18002d500
mov byte [0x180077261], 0
jmp 0x18002df80
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rdx, rbx
lea rcx, str.MKSGuestStats_enabled_for__s._n
add rsp, 0x30
pop rbx
jmp fcn.18002d500
add rsp, 0x30
pop rbx
ret
Function at 0x18002ed60
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x180073c38]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rcx
lea r8, [rsp + 0x38]
mov rdx, rcx
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x18002eeff
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x50]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x18002eef2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x18002eef2
xor edx, edx
mov qword [rsp + 0x290], rsi
lea rcx, [rsp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
je 0x18002eec0
mov ecx, esi
call fcn.18003b870
mov rdi, rax
test rax, rax
je 0x18002eeea
mov r9, rax
mov qword [rsp + 0x288], rbp
mov r8d, esi
lea rcx, [rsp + 0x50]
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x18002ee84
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x30]
mov dword [rsp + 0x40], ebx
lea rdx, [0x18005f664]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x18002eeae
mov rax, qword [rsp + 0x30]
mov ecx, 3
mov esi, dword [rax + 8]
mov ebp, dword [rax + 0xc]
mov ebx, esi
shl rbx, 0x20
or rbx, rbp
call fcn.18000c540
test al, al
je 0x18002eeae
movzx eax, bp
lea rcx, str.Version:__hu___hu___hu___hu_n
movzx r8d, si
shr ebp, 0x10
shr esi, 0x10
mov r9d, ebp
mov edx, esi
mov dword [rsp + 0x20], eax
call fcn.18002d500
jmp 0x18002eeae
mov ecx, 3
call fcn.18000c540
test al, al
je 0x18002eeae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.UMFileUtil_GetModuleVersion
lea rcx, str._s:_GetFileVersionInfo_failed_with_error_code:__u_n
call fcn.18002d500
mov rcx, rdi
call fcn.18003b854
mov rbp, qword [rsp + 0x288]
jmp 0x18002eeea
mov ecx, 3
call fcn.18000c540
test al, al
je 0x18002eeea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.UMFileUtil_GetModuleVersion
lea rcx, str._s:_GetFileVersionInfoSize_failed_with_error_code:__u_n
call fcn.18002d500
mov rsi, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x18002ef2c
mov ecx, 3
call fcn.18000c540
test al, al
je 0x18002ef2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rdi
lea rdx, str.UMFileUtil_GetModuleVersion
mov r9d, eax
lea rcx, str._s:_GetModuleHandleEx_error_for_module__ls:__u_n
call fcn.18002d500
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1800372a0
mov rbx, qword [rsp + 0x298]
add rsp, 0x270
pop rdi
ret

Function at 0x180032410
Capabilities:
Reference the vmware io port

Disassembly:
mov eax, 0x5658
mov dword [rcx], 0x564d5868
mov word [rcx + 0x18], ax
jmp 0x180032470
push rbx
push rsi
push rdi
mov rax, rcx
push rax
mov rdi, qword [rax + 0x28]
mov rsi, qword [rax + 0x20]
mov rdx, qword [rax + 0x18]
mov rcx, qword [rax + 0x10]
mov rbx, qword [rax + 8]
mov rax, qword [rax]
in eax, dx
xchg qword [rsp], rax
mov qword [rax + 0x28], rdi
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], rdx
mov qword [rax + 0x10], rcx
mov qword [rax + 8], rbx
pop qword [rax]
pop rdi
pop rsi
pop rbx
ret
Function at 0x180036b00
Capabilities:
Create process memory minidump

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x5f0
mov rax, qword [0x180073c38]
xor rax, rsp
mov qword [rsp + 0x5e0], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x110]
mov qword [rsp + 0x58], rax
lea rdx, str.CoreDump_CoreDump
lea rcx, str._s:_faking_exception_to_get_context_n
call fcn.18002d500
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xcafebabe
call qword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x180049594
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800495b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180044e3c
or eax, 0xffffffff
jmp 0x1800495b6
xor eax, eax
add rsp, 0x28
ret