joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140065100
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14004bca0
sub rsp, rax
mov rax, qword [0x1400bc060]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14006091c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14006514f
mov rax, rbp
jmp 0x140065257
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xbf410]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14006604c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xbf410]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140065253
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140065253
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14006604c
test rax, rax
js 0x140065253
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140065253
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140065245
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140065245
cmp byte [rcx], 0xd
jne 0x14006522b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14006523a
cmp byte [rcx + 1], 0xa
jne 0x14006523a
inc rcx
jmp 0x14006523a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xbc460]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14006520d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140065257
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14004afb0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400653ec
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400bf410]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140065443
cmp word [rdx], r13w
jne 0x140065443
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140065448
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14006556d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14006558e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140065481
mov rdx, r9
mov word [rbx], cx
jmp 0x1400654a8
cmp r9, r8
jae 0x1400654b8
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140065462
jmp 0x14006556d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140065562
cmp dword [rsp + 0x80], esi
je 0x140065562
lea r8, [0x1400bf410]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14006553a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14006550a
mov word [rbx], r13w
jmp 0x14006556a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140065517
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14006556a
cmp word [rsp + 0x70], r13w
jne 0x140065547
cmp rbx, r14
je 0x140065504
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140066054
cmp word [rsp + 0x70], r13w
je 0x14006556d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400bf410]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140065567
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14006556d
Function at 0x140069d5c
Capabilities:
Query environment variable

Disassembly:
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 0x140069d8c
xor eax, eax
jmp 0x140069e4f
mov rbp, rbx
cmp word [rax], si
je 0x140069db1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140069d98
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140069d94
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.140068650
movsxd r14, eax
test eax, eax
jne 0x140069def
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140069d85
mov rcx, r14
call fcn.140063c4c
mov rdi, rax
test rax, rax
jne 0x140069e08
xor ecx, ecx
call fcn.140062418
jmp 0x140069de4
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.140068650
test eax, eax
jne 0x140069e39
mov rcx, rdi
call fcn.140062418
jmp 0x140069e43
xor ecx, ecx
call fcn.140062418
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 0x14006cf2c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140060efc
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14006cfcd
cmp ebx, dword [rsp + 0x30]
je 0x14006cfc6
test esi, esi
je 0x14006cfc6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14006cfa1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14006cfae
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14006cf8b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14006cfb2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14006cfcf
mov eax, 1
jmp 0x14006cfcf
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140070d04
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140051790
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140070d8e
cmp byte [rbp - 0x21], r15b
je 0x140070d89
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140070dc4
call fcn.140062c34
test eax, eax
jne 0x140070db0
cmp byte [rbp - 0x21], r15b
je 0x140070da8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140070dc4
cmp byte [rbp - 0x21], r15b
je 0x140070dc1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14005d9f8
test eax, eax
jne 0x140070e64
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140051790
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140070e03
cmp byte [rbp - 0x21], r15b
je 0x140070e38
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140070e38
call fcn.140062c34
test eax, eax
jne 0x140070e24
cmp byte [rbp - 0x21], r15b
je 0x140070e1d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140070e38
cmp byte [rbp - 0x21], r15b
je 0x140070e35
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14005d9f8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140070e64
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140070e67
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140070e75
mov rcx, rdi
call fcn.140062418
cmp byte [rbp + 0x3f], r15b
je 0x140070e84
mov rcx, qword [rbp + 0x27]
call fcn.140062418
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140071c54
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140066054
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140066054
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140071da4
cmp rax, 0xffffffffffffffff
je 0x140071da4
xor edi, edi
test rbp, rbp
jle 0x140071d4f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14006289c
mov rbx, rax
test rax, rax
jne 0x140071cdc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140071d45
mov edx, 0x8000
mov ecx, r14d
call fcn.14005edb0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140062110
cmp eax, 0xffffffff
je 0x140071d25
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140071cec
mov edx, r15d
mov ecx, r14d
call fcn.14005edb0
jmp 0x140071d45
cmp byte [rsi + 0x38], dil
je 0x140071d3c
cmp dword [rsi + 0x34], 5
jne 0x140071d3c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140071d45
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140062418
jmp 0x140071db8
jns 0x140071db8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140066054
cmp rax, 0xffffffffffffffff
jne 0x140071d70
cmp byte [rsi + 0x30], dil
je 0x140071db8
mov edi, dword [rsi + 0x2c]
jmp 0x140071db8
mov ecx, r14d
call fcn.14006a9d8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140071db8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140071db8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140071db1
mov eax, dword [rsi + 0x2c]
jmp 0x140071db6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140066054
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x402cd7
Capabilities:
Parse pe header

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
cmp word [rdx], 0x5a4d
jne 0x402d01
movsxd rax, dword [rdx + 0x3c]
lea rcx, [rsi + 8]
cmp dword [rdx + rax], 0x4550
jne 0x402d1e
add rdx, rax
mov qword [rcx], rdx
xor eax, eax
jmp 0x402d39
xor ecx, ecx
call fcn.0043672b
mov qword [rsi + 0x10], rdx
and qword [rsi + 0x18], 0
mov dword [rsi + 0x20], 1
mov qword [rsi + 8], rax
jmp 0x402d34
lea rdx, str._rustc_f1edd0429582dd29cccacaf50fd134b05593bd9clibrary_std_srciocopy.rs
xor r8d, r8d
call fcn.004366aa
mov dword [rsi + 0x20], 2
mov eax, 1
mov qword [rsi], rax
add rsp, 0x20
pop rsi
ret

Function at 0x40d86c
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
lea rcx, [0x0043b010]
call fcn.0040d8a3
mov ecx, eax
add rsp, 0x28
jmp fcn.00439470

Function at 0x40d887
Capabilities:
Set thread local storage value

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rcx, qword [0x0043b040]
test rcx, rcx
jne 0x416601
lea rcx, [0x0043b040]
call fcn.00431a60
mov rcx, rax
call fcn.00439470
cmp rax, 1
jbe 0x41661d
mov rdi, rax
cmp dword [rax], 1
jne 0x41661d
add rdi, 8
jmp 0x4166c8
mov rcx, qword [0x0043b040]
test rcx, rcx
jne 0x416638
lea rcx, [0x0043b040]
call fcn.00431a60
mov rcx, rax
call fcn.00439470
test rax, rax
je 0x41664f
mov rsi, rax
cmp rax, 1
jne 0x41669b
xor edi, edi
jmp 0x4166c8
mov ecx, 0x20
mov edx, 8
call fcn.00408300
test rax, rax
je 0x4166d2
mov rsi, rax
mov qword [rax], 0
lea rax, [0x0043b040]
mov qword [rsi + 0x18], rax
mov rcx, qword [0x0043b040]
test rcx, rcx
jne 0x416693
lea rcx, [0x0043b040]
call fcn.00431a60
mov rcx, rax
mov rdx, rsi
call fcn.00439478
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 0x4166c8
test rcx, rcx
je 0x4166c8
lock sub qword [rcx], 1
jne 0x4166c8
call fcn.004167c0
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0x20
mov edx, 8
call fcn.004086e0
ud2
Function at 0x4172d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rcx, qword [0x0043b050]
test rcx, rcx
jne 0x4172f0
lea rcx, [0x0043b050]
call fcn.00431a60
mov rcx, rax
call fcn.00439470
cmp rax, 1
jbe 0x417307
mov rsi, rax
cmp dword [rax], 1
je 0x417394
mov rcx, qword [0x0043b050]
test rcx, rcx
jne 0x417322
lea rcx, [0x0043b050]
call fcn.00431a60
mov rcx, rax
call fcn.00439470
test rax, rax
je 0x417339
mov rsi, rax
cmp rax, 1
jne 0x417385
xor esi, esi
jmp 0x417398
mov ecx, 0x18
mov edx, 8
call fcn.00408300
test rax, rax
je 0x4173a1
mov rsi, rax
mov qword [rax], 0
lea rax, [0x0043b050]
mov qword [rsi + 0x10], rax
mov rcx, qword [0x0043b050]
test rcx, rcx
jne 0x41737d
lea rcx, [0x0043b050]
call fcn.00431a60
mov rcx, rax
mov rdx, rsi
call fcn.00439478
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.004086e0
ud2
Function at 0x419490
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.0042e430
cmp dword [rsp + 0x90], 1
mov rdi, qword [rsp + 0x98]
jne 0x41953f
cmp dil, 3
jne 0x419533
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 0x419522
mov rcx, qword [rdi]
mov rdx, qword [rax + 0x10]
call fcn.00408390
mov rcx, qword [0x00447110]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov qword [rsi], 0
jmp 0x419666
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.0042e600
cmp dword [rsp + 0x40], 1
mov r12, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
jne 0x41959d
cmp r12b, 3
jne 0x419657
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
call qword [rax]
mov rax, qword [rbx + 8]
cmp qword [rax + 8], 0
je 0x419587
mov rcx, qword [rbx]
mov rdx, qword [rax + 0x10]
call fcn.00408390
mov rcx, qword [0x00447110]
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapFree
jmp 0x419657
cmp rbx, 2
je 0x419657
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 0x419652
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 0x419678
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 0x419678
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x41965e
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 0x41965e
Function at 0x431a60
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov rsi, rcx
lea rcx, [0x004470e8]
call sub.kernel32.dll_AcquireSRWLockExclusive
mov rbx, qword [rsi]
test rbx, rbx
jne 0x431aeb
mov rbx, qword [rsi + 8]
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x431b05
mov edi, eax
test rbx, rbx
je 0x431adf
mov ecx, 0x18
mov edx, 8
call fcn.00408300
test rax, rax
je 0x431b1f
mov rcx, rax
mov qword [rax], rbx
mov qword [rax + 8], 0
mov dword [rax + 0x10], edi
mov rax, qword [0x00447128]
nop word cs:[rax + rax]
nop dword [rax]
mov qword [rcx + 8], rax
lock cmpxchg qword [0x00447128], rcx
jne 0x431ad0
mov ebx, edi
mov rax, rbx
xchg qword [rsi], rax
test edi, edi
je 0x431b30
lea rcx, [0x004470e8]
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, [0x00440a48]
mov edx, 0x2e
call fcn.00409910
ud2
mov ecx, 0x18
mov edx, 8
call fcn.004086e0
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, [0x00409b40]
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.004173c0
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.004174d0
mov ecx, 7
int 0x29
ud2
Function at 0x434330
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 0x434384
mov eax, dword [rsp + 0x34]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x4343b5
call sub.kernel32.dll_GetLastError
mov edi, eax
mov ecx, eax
call fcn.004310c0
cmp al, 0xb
jne 0x43439e
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x4343b5
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 0x4344c0
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 0x43450e
mov eax, dword [rsp + 0x2c]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x434528
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 0x439a40
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.0043ab10
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.0043ab10
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 0x439ab0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x004477f4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x439c58
mov rax, qword [0x004477f8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x439afc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x439b87
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x439ae0
mov rcx, r12
call fcn.0043a810
mov rbp, rax
test rax, rax
je 0x439c92
mov rax, qword [0x004477f8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.0043a940
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004477f8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x439ca1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x439b80
sub eax, 4
and eax, 0xfffffffb
jne 0x439c10
add dword [0x004477f4], 1
cmp ebx, 8
jae 0x439bb8
test bl, 4
jne 0x439c60
test ebx, ebx
je 0x439ba9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x439c80
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 0x439ba9
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 0x439bea
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 [0x004477f8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x439b80
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00439a40
nop dword [rax]
xor edi, edi
jmp 0x439b07
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x439ba9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x439ba9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00439a40
mov rax, qword [0x004477f8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.00439a40
nop
nop dword [rax]