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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x208
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rbp + 0x186], ax
mov rax, qword [0x14048e138]
cmp rax, 3
jne 0x140148310
lea rax, [rbp + 0x186]
mov qword [rbp + 0x170], rax
cmp rdi, 0x17f
ja 0x140148336
lea rbx, [rbp - 0x60]
mov rcx, rbx
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov byte [rbp + rdi - 0x60], 0
inc rdi
lea rcx, [rbp + 0x158]
mov rdx, rbx
mov r8, rdi
call fcn.1401780e0
cmp qword [rbp + 0x158], 0
je 0x140148281
lea rax, [0x140452208]
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140148301
mov rcx, qword [rbp + 0x160]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x120], xmm0
movaps xmmword [rbp + 0x140], xmm0
movaps xmmword [rbp + 0x130], xmm0
mov dword [rbp + 0x128], 1
mov qword [rbp + 0x178], 0
lea r8, [rbp + 0x120]
lea r9, [rbp + 0x178]
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x1401482e2
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1401482fa
mov rax, qword [rbp + 0x178]
movzx ecx, word [rbp + 0x186]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov rax, rsi
add rsp, 0x208
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rbx, rdx
call fcn.140130490
mov rdx, rbx
lea rax, [rbp + 0x186]
mov qword [rbp + 0x170], rax
cmp rdi, 0x17f
jbe 0x140148237
lea r9, [rbp + 0x170]
mov rcx, rsi
mov r8, rdi
call fcn.140131230
jmp 0x140148301
Function at 0x140148790
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
movaps xmmword [rbp - 0x60], xmm0
mov dword [rbp + 0x34], pe_nt_image_headers64
lea rdx, [rbp - 0x60]
lea r8, [rbp + 0x34]
mov rcx, rax
call sub.ws2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x140148819
mov eax, dword [rbp + 0x34]
movzx ecx, word [rbp - 0x60]
cmp ecx, 0x17
je 0x140148828
cmp ecx, 2
jne 0x140148866
cmp eax, 0xf
jbe 0x140148880
movzx eax, word [rbp - 0x5e]
rol ax, 8
mov ecx, dword [rbp - 0x5c]
mov word [rsi], 0
mov word [rsi + 6], ax
mov dword [rsi + 2], ecx
jmp 0x140148876
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x14014886d
cmp eax, 0x1b
jbe 0x140148898
movzx eax, word [rbp - 0x5e]
rol ax, 8
mov ecx, dword [rbp - 0x5c]
mov edx, dword [rbp - 0x48]
movups xmm0, xmmword [rbp - 0x58]
movups xmmword [rbp + 0x24], xmm0
mov word [rsi], 1
movups xmm0, xmmword [rbp + 0x22]
movups xmmword [rsi + 2], xmm0
movzx r8d, word [rbp + 0x32]
mov word [rsi + 0x12], r8w
mov dword [rsi + 0x14], ecx
mov dword [rsi + 0x18], edx
mov word [rsi + 0x1c], ax
jmp 0x140148876
lea rax, str.invalid_argument
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xb8
pop rsi
pop rbp
ret
lea rcx, [0x14045450a]
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len___mem::size_of::_c::sockaddr_in___
mov edx, 0x39
call fcn.14017afe0
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in6___
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len___mem::size_of::_c::sockaddr_in___
mov edx, 0x3a
call fcn.14017afe0
int3
Function at 0x14014d070
Capabilities:
Read file via mapping

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xd0
lea rbp, [rsp + 0x80]
mov rax, r8
mov rsi, rcx
mov dword [rbp + 8], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
mov dword [rbp + 0x20], 7
mov qword [rbp + 0x24], 0
mov word [rbp + 0x2c], 0
mov byte [rbp + 0x28], 1
lea r8, [rbp + 8]
mov rcx, rdx
mov rdx, rax
call fcn.140136d70
mov rdi, rdx
test rax, rax
je 0x14014d0f7
mov qword [rbp - 0x40], rax
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x38], rdi
call fcn.1400ff320
mov qword [rsi], 0
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 8]
mov rdx, rdi
call fcn.140136ff0
cmp dword [rbp + 8], 2
jne 0x14014d11b
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 2
jmp 0x14014d14a
movups xmm0, xmmword [rbp + 8]
movups xmm1, xmmword [rbp + 0x18]
movups xmm2, xmmword [rbp + 0x28]
movups xmm3, xmmword [rbp + 0x38]
movaps xmmword [rbp - 0x40], xmm0
mov rax, qword [rbp + 0x48]
mov qword [rbp], rax
movaps xmmword [rbp - 0x10], xmm3
movaps xmmword [rbp - 0x20], xmm2
movaps xmmword [rbp - 0x30], xmm1
cmp qword [rbp - 0x40], 2
jne 0x14014d173
lea rcx, [rbp - 0x38]
call fcn.1400ff320
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp sub.kernel32.dll_CloseHandle
mov r12, qword [rbp - 8]
test rdi, rdi
je 0x14014d1c1
mov qword [rbp - 0x40], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbp - 0x40]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x14014d23d
mov rbx, qword [rbp - 0x40]
jmp 0x14014d1c3
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.kernel32.dll_CreateFileMappingA
test rax, rax
je 0x14014d22c
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.kernel32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.kernel32.dll_CloseHandle
test r15, r15
je 0x14014d22c
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x14014d266
mov qword [rsi], 0
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
jmp 0x14014d266
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp + 8], 1
lea rcx, [rbp + 0x10]
mov qword [rbp + 0x10], rax
call fcn.1400ff320
mov qword [rsi], 0
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
jmp 0x14014d0e5
Function at 0x14014f110
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rsi, rcx
mov ecx, dword [0x140193150]
test ecx, ecx
je 0x14014f142
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14014f15b
add rax, 8
jmp 0x14014f207
lea rcx, [0x140193138]
call fcn.140143d70
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14014f139
je 0x14014f17c
xor edi, edi
test rsi, rsi
je 0x14014f183
mov r14, qword [rsi]
mov qword [rsi], 0
test r14, r14
cmovne edi, dword [rsi + 0x10]
cmovne r14, qword [rsi + 8]
jmp 0x14014f186
xor eax, eax
jmp 0x14014f207
xor r14d, r14d
mov rax, qword [0x140472688]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call fcn.14000d8f0
test rax, rax
je 0x14014f232
mov rbx, rax
mov rsi, rax
lea rax, [0x140193138]
mov qword [rsi], rax
mov qword [rsi + 8], r14
mov byte [rsi + 0x10], dil
mov ecx, dword [0x140193150]
test ecx, ecx
je 0x14014f212
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x140193150]
test ecx, ecx
je 0x14014f222
dec ecx
add rbx, 8
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x14014f204
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call fcn.14000d900
mov rax, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, [0x140193138]
call fcn.140143d70
mov ecx, eax
jmp 0x14014f1cc
lea rcx, [0x140193138]
call fcn.140143d70
mov ecx, eax
jmp 0x14014f1e0
mov ecx, 8
mov edx, 0x18
call fcn.14016da90
int3

Function at 0x14014f250
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rsi, rcx
mov ecx, dword [0x140193170]
test ecx, ecx
je 0x14014f280
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14014f299
add rax, 8
jmp 0x14014f336
lea rcx, [0x140193158]
call fcn.140143d70
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14014f277
je 0x14014f334
xor edi, edi
test rsi, rsi
je 0x14014f2b5
cmp byte [rsi], 0
mov byte [rsi], 0
movzx eax, byte [rsi + 1]
cmove eax, edi
mov edi, eax
mov rax, qword [0x140472688]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.14000d8f0
test rax, rax
je 0x14014f35f
mov rbx, rax
mov rsi, rax
lea rax, [0x140193158]
mov qword [rsi], rax
mov byte [rsi + 8], dil
mov ecx, dword [0x140193170]
test ecx, ecx
je 0x14014f33f
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x140193170]
test ecx, ecx
je 0x14014f34f
dec ecx
add rbx, 8
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x14014f32f
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.14000d900
mov rax, rbx
jmp 0x14014f336
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140193158]
call fcn.140143d70
mov ecx, eax
jmp 0x14014f2f7
lea rcx, [0x140193158]
call fcn.140143d70
mov ecx, eax
jmp 0x14014f30b
mov ecx, 8
mov edx, 0x10
call fcn.14016da90
int3
Function at 0x14014f370
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rsi, rcx
mov ecx, dword [0x140193190]
test ecx, ecx
je 0x14014f3a0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14014f3b9
add rax, 8
jmp 0x14014f456
lea rcx, [0x140193178]
call fcn.140143d70
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14014f397
je 0x14014f454
xor edi, edi
test rsi, rsi
je 0x14014f3d5
cmp byte [rsi], 0
mov byte [rsi], 0
movzx eax, byte [rsi + 1]
cmove eax, edi
mov edi, eax
mov rax, qword [0x140472688]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.14000d8f0
test rax, rax
je 0x14014f47f
mov rbx, rax
mov rsi, rax
lea rax, [0x140193178]
mov qword [rsi], rax
mov byte [rsi + 8], dil
mov ecx, dword [0x140193190]
test ecx, ecx
je 0x14014f45f
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x140193190]
test ecx, ecx
je 0x14014f46f
dec ecx
add rbx, 8
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x14014f44f
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.14000d900
mov rax, rbx
jmp 0x14014f456
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140193178]
call fcn.140143d70
mov ecx, eax
jmp 0x14014f417
lea rcx, [0x140193178]
call fcn.140143d70
mov ecx, eax
jmp 0x14014f42b
mov ecx, 8
mov edx, 0x10
call fcn.14016da90
int3

Function at 0x14014f490
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rsi, rcx
mov ecx, dword [0x1401931d0]
test ecx, ecx
je 0x14014f4c2
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14014f4db
add rax, 8
jmp 0x14014f5a1
lea rcx, [0x1401931b8]
call fcn.140143d70
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14014f4b9
je 0x14014f4f7
test rsi, rsi
je 0x14014f4fe
mov r14, qword [rsi]
mov qword [rsi], 0
test r14, r14
je 0x14014f501
mov r14, qword [rsi + 8]
jmp 0x14014f501
xor eax, eax
jmp 0x14014f5a1
xor r14d, r14d
lea rsi, [0x1401931b8]
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], r14
mov rax, qword [0x140472688]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.14000d8f0
test rax, rax
je 0x14014f5cc
mov rbx, rax
mov rdi, rax
mov qword [rax], rsi
mov qword [rax + 8], r14
mov ecx, dword [0x1401931d0]
test ecx, ecx
je 0x14014f5ac
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rsi, rax
mov ecx, dword [0x1401931d0]
test ecx, ecx
je 0x14014f5bc
dec ecx
add rbx, 8
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
test rsi, rsi
je 0x14014f59e
mov rax, qword [rsi + 8]
test rax, rax
je 0x14014f58b
lock dec qword [rax]
jne 0x14014f58b
mov rcx, rsi
add rcx, 8
call fcn.140108770
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call fcn.14000d900
mov rax, rbx
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, [0x1401931b8]
call fcn.140143d70
mov ecx, eax
jmp 0x14014f54b
lea rcx, [0x1401931b8]
call fcn.140143d70
mov ecx, eax
jmp 0x14014f55f
lea rsi, [rbp - 8]
mov ecx, 8
mov edx, 0x10
call fcn.14016da90
ud2
Function at 0x14014f600
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rsi, rcx
mov ecx, dword [0x140193210]
test ecx, ecx
je 0x14014f632
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14014f64b
add rax, 8
jmp 0x14014f711
lea rcx, [0x1401931f8]
call fcn.140143d70
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14014f629
je 0x14014f667
test rsi, rsi
je 0x14014f66e
mov r14, qword [rsi]
mov qword [rsi], 0
test r14, r14
je 0x14014f671
mov r14, qword [rsi + 8]
jmp 0x14014f671
xor eax, eax
jmp 0x14014f711
xor r14d, r14d
lea rsi, [0x1401931f8]
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], r14
mov rax, qword [0x140472688]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.14000d8f0
test rax, rax
je 0x14014f73c
mov rbx, rax
mov rdi, rax
mov qword [rax], rsi
mov qword [rax + 8], r14
mov ecx, dword [0x140193210]
test ecx, ecx
je 0x14014f71c
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rsi, rax
mov ecx, dword [0x140193210]
test ecx, ecx
je 0x14014f72c
dec ecx
add rbx, 8
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
test rsi, rsi
je 0x14014f70e
mov rax, qword [rsi + 8]
test rax, rax
je 0x14014f6fb
lock dec qword [rax]
jne 0x14014f6fb
mov rcx, rsi
add rcx, 8
call fcn.1401089b0
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call fcn.14000d900
mov rax, rbx
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, [0x1401931f8]
call fcn.140143d70
mov ecx, eax
jmp 0x14014f6bb
lea rcx, [0x1401931f8]
call fcn.140143d70
mov ecx, eax
jmp 0x14014f6cf
lea rsi, [rbp - 8]
mov ecx, 8
mov edx, 0x10
call fcn.14016da90
ud2
Function at 0x140183dc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x140183e4a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140183e40
cmp r11, r10
ja 0x140183ec6
cmp r10, rdx
ja 0x140183ed8
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x140183e42
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140183e20
jmp 0x140183ea7
ja 0x140183e4a
mov r11, r10
cmp rax, r8
jne 0x140183de7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x140183eab
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140183e80
mov r8, r10
sub ecx, r9d
jns 0x140183e9e
jmp 0x140183ead
cmp r10, rdx
je 0x140183eba
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x140183ead
xor al, 1
cmp r8, rdx
jne 0x140183e60
jmp 0x140183ead
xor eax, eax
jmp 0x140183ead
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, [0x1404674a0]
call fcn.14017ac90
lea r8, str.tF_
mov rcx, r11
mov rdx, r10
call fcn.1401812b0
lea r8, str.tF_
mov rcx, r10
call fcn.140181240
int3

Function at 0x140191900
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140192790
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140192790
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140191970
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14048e1e4]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140191b00
mov rax, qword [0x14048e1e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x1401919bc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140191a45
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x1401919a0
mov rcx, rdi
call fcn.1401924d0
test rax, rax
mov r12, rax
je 0x140191b52
mov rax, qword [0x14048e1e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140192610
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14048e1e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140191b35
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140191a3e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140191ab0
add dword [0x14048e1e4], 1
cmp ebx, 8
jae 0x140191a71
test bl, 4
jne 0x140191b10
test ebx, ebx
je 0x140191a66
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140191b24
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140191a66
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x140191a8a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x14048e1e8]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x140191a3e
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140191900
xor esi, esi
jmp 0x1401919c7
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140191a66
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140191a66
mov rax, qword [0x14048e1e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140191900
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140191900
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x140192120
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14048e240]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14048e220]
test rbx, rbx
je 0x140192174
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14019216b
test rsi, rsi
je 0x14019216b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140192150
lea rcx, [0x14048e240]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1401924d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1404725c0]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14019253f
mov rcx, r9
call fcn.1401923a0
test eax, eax
je 0x14019253f
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 0x14019253d
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 0x140192534
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14019253f
add rdx, 0x28
cmp rdx, r9
jne 0x140192520
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x408c30
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, str.d3d10.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x408c73
lea rcx, [rsp + 0x30]
call fcn.00408b80
mov rcx, rbx
test eax, eax
jne 0x408c6d
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_FreeLibrary]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, str.d3d9.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x408cec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Error_in_loading_DirectX:
mov ebx, eax
call fcn.00402790
mov edx, ebx
mov rcx, rax
call qword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rdx, qword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_]
mov rcx, rax
call qword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Return_code:_0
call fcn.00402790
mov rdx, qword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_]
mov rcx, rax
call qword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor ecx, ecx
call qword [sym.imp.MSVCR100.dll_exit]
int3
lea rcx, [rsp + 0x30]
call fcn.00408910
add rsp, 0x20
pop rbx
ret
Function at 0x40f083
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x0041f2d0]
jne 0x40eaea
rol rcx, 0x10
test cx, 0xffff
jne 0x40eae6
repz ret
ror rcx, 0x10
jmp 0x40efdc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x0041f460]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x0041f558]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x40f061
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x0041f460]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x40f083
mov rax, qword [rsp + 0x88]
mov qword [0x0041f558], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x0041f4f8], rax
mov rax, qword [0x0041f558]
mov qword [0x0041f3d0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x0041f4e0], rax
mov dword [0x0041f3c0], 0xc0000409
mov dword [0x0041f3c4], 1
mov rax, qword [0x0041f2d0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x0041f2d8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x0041f458], eax
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x00415f48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x0041f458], 0
jne 0x40f10a
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret