joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013cd0
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [0x140024980]
mov qword [rsp + 0x80], rdi
xor ebx, ebx
mov qword [0x140024980], rbx
mov qword [0x140024988], rbx
lea ecx, [rbx + 0x60]
call fcn.140019510
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [0x140024980], rax
xorps xmm0, xmm0
movups xmmword [0x140024990], xmm0
mov qword [0x1400249a0], rbx
mov qword [0x1400249a8], rbx
lea r8d, [rbx + 0x4d]
lea rdx, str.Mozilla_5.0__Windows_NT_6.1__Win64__x64__rv:89.0__Gecko_20100101_Firefox_89.0
lea rcx, [0x140024990]
call fcn.1400062c0
nop
xorps xmm0, xmm0
movups xmmword [0x1400249b0], xmm0
mov qword [0x1400249c0], rbx
mov qword [0x1400249c8], 0xf
mov byte [0x1400249b0], bl
movups xmmword [0x1400249d0], xmm0
mov qword [0x1400249e0], rbx
mov qword [0x1400249e8], 0xf
mov byte [0x1400249d0], bl
movups xmmword [0x1400249f0], xmm0
mov qword [0x140024a00], rbx
mov qword [0x140024a08], 0xf
mov byte [0x1400249f0], bl
movups xmmword [0x140024a10], xmm0
mov qword [0x140024a20], rbx
mov qword [0x140024a28], 0xf
mov byte [0x140024a10], bl
movups xmmword [0x140024a30], xmm0
mov qword [0x140024a40], rbx
mov qword [0x140024a48], 0xf
mov byte [0x140024a30], bl
movups xmmword [0x140024a50], xmm0
mov qword [0x140024a60], rbx
mov qword [0x140024a68], rbx
lea r8d, [rbx + 3]
lea rdx, [0x14001df70]
lea rcx, [0x140024a50]
call fcn.1400062c0
nop
xorps xmm0, xmm0
movups xmmword [0x140024a70], xmm0
mov qword [0x140024a80], rbx
mov qword [0x140024a88], 0xf
mov byte [0x140024a70], bl
movups xmmword [0x140024a90], xmm0
mov qword [0x140024aa0], rbx
mov qword [0x140024aa8], rbx
lea r8d, [rbx + 0xf]
lea rdx, str.www.example.com
lea rcx, [0x140024a90]
call fcn.1400062c0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x40], xmm1
xor r8d, r8d
lea rdx, [0x14001c5fb]
lea rcx, [rsp + 0x30]
call fcn.1400062c0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x60], xmm1
xor r8d, r8d
lea rdx, [0x14001c5fb]
lea rcx, [rsp + 0x50]
call fcn.1400062c0
nop
lea rcx, [0x140024ab0]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
call fcn.140004300
nop
lea r9, [fcn.1400012a0]
lea edx, [rbx + 0x40]
lea r8d, [rbx + 1]
lea rcx, [rsp + 0x30]
call fcn.14001954c
mov qword [0x140024ac0], rbx
mov rax, rdi
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x140019fe0
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005490]
mov dword [rax], 1
mov rax, qword [0x1400054a0]
mov dword [rax], 1
mov rax, qword [0x1400054b0]
mov dword [rax], 1
mov rax, qword [0x140005440]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400016d0
Capabilities:
Create process on windows

Disassembly:
push rbp
push rdi
sub rsp, 0xb8
lea rbp, [rsp + 0xb0]
call sym.__main
lea rax, str.nvidia.exe
mov qword [rbp - 8], rax
lea rax, str.NVIDIA_551.61_Drivers__Modded_by_NVCleanstall_
mov qword [rbp - 0x10], rax
lea rax, [0x14000508f]
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x90]
mov eax, 0
mov ecx, 0xe
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x90], 0x70
mov dword [rbp - 0x8c], 0x40
lea rax, str.open
mov qword [rbp - 0x80], rax
mov rax, qword [rbp - 8]
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x60], 1
mov qword [rbp - 0x58], 0
lea rax, [rbp - 0x90]
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
test eax, eax
je 0x140001774
mov rax, qword [rbp - 0x28]
test rax, rax
jne 0x14000177b
mov eax, 1
jmp 0x140001780
mov eax, 0
test al, al
je 0x14000178e
mov eax, 1
jmp 0x140001814
mov rax, qword [rbp - 0x28]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_WaitForInputIdle]
call rax
mov rax, qword [rbp - 0x10]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_FindWindowA]
call rax
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x1400017ca
mov eax, 1
jmp 0x140001814
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sym.ClickButtonInWindow_HWND____char_const_
test eax, eax
sete al
test al, al
je 0x1400017ea
mov eax, 1
jmp 0x140001814
mov rax, qword [rbp - 0x28]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0xb8
pop rdi
pop rbp
ret
Function at 0x14000181e
Capabilities:
Get graphical window text

Disassembly:
push rbp
sub rsp, 0x220
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1b0], rcx
mov qword [rbp + 0x1b8], rdx
lea rdx, [rbp + 0xa0]
mov rax, qword [rbp + 0x1b0]
mov r8d, 0x100
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_GetClassNameA]
call rax
lea rax, [rbp + 0xa0]
lea rdx, str.Button
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x1400018c8
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x1b0]
mov r8d, 0x100
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_GetWindowTextA]
call rax
mov rdx, qword [rbp + 0x1b8]
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.strstr
test rax, rax
je 0x1400018c8
mov rdx, qword [rbp + 0x1b8]
mov rax, qword [rbp + 0x1b0]
mov rcx, rax
call sym.PressButtonWithText_HWND____char_const_
mov eax, 0
jmp 0x1400018cd
mov eax, 1
add rsp, 0x220
pop rbp
ret

Function at 0x140001c80
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002952
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000a168]
test eax, eax
je 0x1400029ea
lea rax, [0x14000a140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000a170]
mov qword [rbp - 8], rax
jmp 0x1400029ce
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400029c2
cmp qword [rbp - 0x10], 0
je 0x1400029c2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002988
lea rax, [0x14000a140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400029eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140002af0
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140002bea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002be1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002be1
mov rax, qword [rbp - 8]
jmp 0x140002bff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002bb4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x402913
Capabilities:
Parse pe header

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
cmp word [rdx], 0x5a4d
jne 0x40293d
movsxd rax, dword [rdx + 0x3c]
lea rcx, [rsi + 8]
cmp dword [rdx + rax], 0x4550
jne 0x40295a
add rdx, rax
mov qword [rcx], rdx
xor eax, eax
jmp 0x402975
xor ecx, ecx
call fcn.0043753b
mov qword [rsi + 0x10], rdx
and qword [rsi + 0x18], 0
mov dword [rsi + 0x20], 1
mov qword [rsi + 8], rax
jmp 0x402970
lea rdx, str._rustc_f1edd0429582dd29cccacaf50fd134b05593bd9clibrary_std_srciocopy.rs
xor r8d, r8d
call fcn.004374ba
mov dword [rsi + 0x20], 2
mov eax, 1
mov qword [rsi], rax
add rsp, 0x20
pop rsi
ret
Function at 0x40e67c
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
lea rcx, [0x0043c010]
call fcn.0040e6b3
mov ecx, eax
add rsp, 0x28
jmp fcn.00439e28

Function at 0x40e697
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
call fcn.0040e6b3
mov ecx, eax
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.00439e30
Function at 0x4173f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rcx, qword [0x0043c040]
test rcx, rcx
jne 0x417411
lea rcx, [0x0043c040]
call fcn.00432870
mov rcx, rax
call fcn.00439e28
cmp rax, 1
jbe 0x41742d
mov rdi, rax
cmp dword [rax], 1
jne 0x41742d
add rdi, 8
jmp 0x4174d8
mov rcx, qword [0x0043c040]
test rcx, rcx
jne 0x417448
lea rcx, [0x0043c040]
call fcn.00432870
mov rcx, rax
call fcn.00439e28
test rax, rax
je 0x41745f
mov rsi, rax
cmp rax, 1
jne 0x4174ab
xor edi, edi
jmp 0x4174d8
mov ecx, 0x20
mov edx, 8
call fcn.00408ae0
test rax, rax
je 0x4174e2
mov rsi, rax
mov qword [rax], 0
lea rax, [0x0043c040]
mov qword [rsi + 0x18], rax
mov rcx, qword [0x0043c040]
test rcx, rcx
jne 0x4174a3
lea rcx, [0x0043c040]
call fcn.00432870
mov rcx, rax
mov rdx, rsi
call fcn.00439e30
lea rdi, [rsi + 8]
cmp qword [rsi], 0
mov rcx, qword [rsi + 0x10]
mov qword [rsi], 1
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
je 0x4174d8
test rcx, rcx
je 0x4174d8
lock sub qword [rcx], 1
jne 0x4174d8
call fcn.004175d0
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0x20
mov edx, 8
call fcn.00408ec0
ud2
Function at 0x4180e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rcx, qword [0x0043c050]
test rcx, rcx
jne 0x418100
lea rcx, [0x0043c050]
call fcn.00432870
mov rcx, rax
call fcn.00439e28
cmp rax, 1
jbe 0x418117
mov rsi, rax
cmp dword [rax], 1
je 0x4181a4
mov rcx, qword [0x0043c050]
test rcx, rcx
jne 0x418132
lea rcx, [0x0043c050]
call fcn.00432870
mov rcx, rax
call fcn.00439e28
test rax, rax
je 0x418149
mov rsi, rax
cmp rax, 1
jne 0x418195
xor esi, esi
jmp 0x4181a8
mov ecx, 0x18
mov edx, 8
call fcn.00408ae0
test rax, rax
je 0x4181b1
mov rsi, rax
mov qword [rax], 0
lea rax, [0x0043c050]
mov qword [rsi + 0x10], rax
mov rcx, qword [0x0043c050]
test rcx, rcx
jne 0x41818d
lea rcx, [0x0043c050]
call fcn.00432870
mov rcx, rax
mov rdx, rsi
call fcn.00439e30
mov qword [rsi], 1
mov qword [rsi + 8], 0
add rsi, 8
mov rax, rsi
add rsp, 0x20
pop rsi
ret
mov ecx, 0x18
mov edx, 8
call fcn.00408ec0
ud2
Function at 0x41a2a0
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rsi, rcx
mov dword [rsp + 0x60], 0
mov word [rsp + 0x64], 0
mov dword [rsp + 0x54], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x58], 7
mov byte [rsp + 0x60], 1
lea rcx, [rsp + 0x90]
lea r9, [rsp + 0x40]
call fcn.0042f240
cmp dword [rsp + 0x90], 1
mov rdi, qword [rsp + 0x98]
jne 0x41a34f
cmp dil, 3
jne 0x41a343
mov rdi, qword [rsp + 0xa0]
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
call qword [rax]
mov rax, qword [rdi + 8]
cmp qword [rax + 8], 0
je 0x41a332
mov rcx, qword [rdi]
mov rdx, qword [rax + 0x10]
call fcn.00408b70
mov rcx, qword [0x00448110]
xor edx, edx
mov r8, rdi
call fcn.00439d68
mov qword [rsi], 0
jmp 0x41a476
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.0042f410
cmp dword [rsp + 0x40], 1
mov r12, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
jne 0x41a3ad
cmp r12b, 3
jne 0x41a467
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
call qword [rax]
mov rax, qword [rbx + 8]
cmp qword [rax + 8], 0
je 0x41a397
mov rcx, qword [rbx]
mov rdx, qword [rax + 0x10]
call fcn.00408b70
mov rcx, qword [0x00448110]
xor edx, edx
mov r8, rbx
call fcn.00439d68
jmp 0x41a467
cmp rbx, 2
je 0x41a467
mov qword [rsp + 0x40], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x41a462
mov r14, qword [rsp + 0x40]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, r14
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.kernel32.dll_CreateFileMappingA
test rax, rax
je 0x41a488
mov rbx, 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, rbx
call sub.kernel32.dll_CloseHandle
test r15, r15
je 0x41a488
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x41a46e
call sub.kernel32.dll_GetLastError
mov qword [rsi], 0
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
nop
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov qword [rsi], 0
mov rcx, r14
call sub.kernel32.dll_CloseHandle
jmp 0x41a46e
Function at 0x432870
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov rsi, rcx
lea rcx, [0x004480e8]
call sub.kernel32.dll_AcquireSRWLockExclusive
mov rbx, qword [rsi]
test rbx, rbx
jne 0x4328fb
mov rbx, qword [rsi + 8]
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x432915
mov edi, eax
test rbx, rbx
je 0x4328ef
mov ecx, 0x18
mov edx, 8
call fcn.00408ae0
test rax, rax
je 0x43292f
mov rcx, rax
mov qword [rax], rbx
mov qword [rax + 8], 0
mov dword [rax + 0x10], edi
mov rax, qword [0x00448128]
nop word cs:[rax + rax]
nop dword [rax]
mov qword [rcx + 8], rax
lock cmpxchg qword [0x00448128], rcx
jne 0x4328e0
mov ebx, edi
mov rax, rbx
xchg qword [rsi], rax
test edi, edi
je 0x432940
lea rcx, [0x004480e8]
call sub.kernel32.dll_ReleaseSRWLockExclusive
mov rax, rbx
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
ret
lea rcx, str.assertion_failed:_key___c::TLS_OUT_OF_INDEXESlibrary_std_src_syswindows_thread_local_key.rs
lea r8, [0x00441b98]
mov edx, 0x2e
call fcn.0040a720
ud2
mov ecx, 0x18
mov edx, 8
call fcn.00408ec0
ud2
mov byte [rsp + 0x2c], 0
mov dword [rsp + 0x28], 0
lea rax, str.assertion_failed:_key___0
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
mov qword [rsp + 0x90], 0
lea rax, str._rustc_f1edd0429582dd29cccacaf50fd134b05593bd9clibrary_std_srciocopy.rs
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
lea rax, [0x0040a950]
mov qword [rsp + 0x48], rax
lea rax, str.fatal_runtime_error:__n
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 2
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x50]
call fcn.004181d0
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.004182e0
mov ecx, 7
int 0x29
ud2
Function at 0x435140
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov dword [rsp + 0x34], 0
mov edx, 0xffffffff
cmp r9, rdx
mov r8d, 0xffffffff
cmovb r8d, r9d
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov rdx, rax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x435194
mov eax, dword [rsp + 0x34]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x4351c5
call sub.kernel32.dll_GetLastError
mov edi, eax
mov ecx, eax
call fcn.00431ed0
cmp al, 0xb
jne 0x4351ae
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x4351c5
shl rdi, 0x20
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], 0
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x4352d0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov dword [rsp + 0x2c], 0
mov edx, 0xffffffff
cmp r9, rdx
mov r8d, 0xffffffff
cmovb r8d, r9d
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rdx, rax
call sub.kernel32.dll_WriteFile
test eax, eax
je 0x43531e
mov eax, dword [rsp + 0x2c]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x435338
call sub.kernel32.dll_GetLastError
shl rax, 0x20
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], 0
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x30
pop rsi
ret

Function at 0x43a3f0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
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.0043b4c0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.0043b4c0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x43a460
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x004487f4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x43a608
mov rax, qword [0x004487f8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x43a4ac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x43a537
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x43a490
mov rcx, r12
call fcn.0043b1c0
mov rbp, rax
test rax, rax
je 0x43a642
mov rax, qword [0x004487f8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.0043b2f0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004487f8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x43a651
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x43a530
sub eax, 4
and eax, 0xfffffffb
jne 0x43a5c0
add dword [0x004487f4], 1
cmp ebx, 8
jae 0x43a568
test bl, 4
jne 0x43a610
test ebx, ebx
je 0x43a559
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x43a630
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x43a559
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x43a59a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x004487f8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x43a530
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0043a3f0
nop dword [rax]
xor edi, edi
jmp 0x43a4b7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x43a559
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x43a559
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.0043a3f0
mov rax, qword [0x004487f8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.0043a3f0
nop
nop dword [rax]
Function at 0x43ae30
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00448ae0]
call qword [sym.imp.kernel32.dll_EnterCriticalSection]
mov rbx, qword [0x00448ac0]
test rbx, rbx
je 0x43ae84
mov rdi, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rsi, qword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x43ae7b
test r12, r12
je 0x43ae7b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x43ae60
lea rcx, [0x00448ae0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.kernel32.dll_LeaveCriticalSection]

Function at 0x43b1c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00442fb0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x43b239
mov rcx, r10
call fcn.0043b090
test eax, eax
je 0x43b239
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x43b236
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x43b22d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x43b239
add r8, 0x28
cmp r8, r9
jne 0x43b218
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret