joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006530
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1400065a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140037104]
mov rbx, rcx
test esi, esi
jle 0x1400066d0
mov rax, qword [0x140037108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400065eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140006675
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400065d0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400066f2
mov rax, qword [0x140037108]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140037108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400066d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000666e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140006680
add dword [0x140037104], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140037108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000666e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400065f8
mov rax, qword [0x140037108]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140006c60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140037160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140037140]
test rbx, rbx
je 0x140006cbc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140006cb3
test rsi, rsi
je 0x140006cb3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140006c98
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140006ed0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140006ee8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140006ef0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140006f00
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x140006f4d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140006f44
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140006f4f
add rax, 0x28
cmp rax, r9
jne 0x140006f30
xor eax, eax
ret

Function at 0x140006f50
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140006fe0
mov rdx, qword [0x140032b20]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140006fce
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140006fce
cmp word [rax + 0x18], 0x20b
jne 0x140006fce
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140006fe0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140006fb9
add rbx, 0x28
cmp rbx, rdi
je 0x140006fe0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140006fb0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140006ff0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140032b20]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140007010
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140007018
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140007010
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000706d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140007064
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140007010
add rax, 0x28
cmp rax, r9
jne 0x140007050
xor eax, eax
ret

Function at 0x140007070
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140032b20]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000708f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140007098
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000708f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1400070b0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140032b20]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400070d0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400070d8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400070d0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140007120
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140007117
test rcx, rcx
je 0x1400070d0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140007108
xor eax, eax
ret

Function at 0x140007130
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140032b20]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000714f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140007158
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140007170
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140032b20]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140007190
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140007198
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140007190
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140007190
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400071e4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400071f0
add rdx, 0x28
cmp r9, rdx
jne 0x1400071d0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140007200
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140032b20]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140007222
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140007230
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140007222
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140007222
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140007222
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140007285
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140007298
add rdx, 0x28
cmp rdx, r10
jne 0x140007270
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400072a7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400072b7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000728e
test ecx, ecx
jg 0x1400072a0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x18004b8a0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x468
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3e0], 0xfffffffffffffffe
mov qword [rbp + 0x3d8], rcx
xor ebx, ebx
lea rcx, [rbp - 0x58]
mov r8d, 0x400
xor edx, edx
call fcn.18006a2c0
mov qword [rbp + 0x3c0], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3c8], xmm0
mov esi, 0x200
mov r13d, 2
cmp rsi, 0x201
jae 0x18004b922
jmp 0x18004b970
mov rsi, r8
jae 0x18004b9cd
cmp rsi, 0x201
jb 0x18004b970
mov r8, rsi
sub r8, rbx
mov rax, qword [rbp + 0x3c8]
sub rax, rbx
cmp rax, r8
jae 0x18004b94d
lea rcx, [rbp + 0x3c0]
mov rdx, rbx
call fcn.1800760c0
mov r13, qword [rbp + 0x3c0]
mov qword [rbp + 0x3d0], rsi
mov rbx, rsi
mov r15, r13
mov r14, rsi
mov r12, r13
jmp 0x18004b97d
lea r12, [rbp - 0x58]
mov r15, r12
mov r14d, 0x200
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, esi
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x18004b9a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18004ba15
mov r8d, edi
cmp rsi, r8
jne 0x18004b910
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18004ba6c
add rsi, rsi
cmp rsi, 0x201
jae 0x18004b922
jmp 0x18004b970
cmp r14, r8
jb 0x18004ba86
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.18004e3d0
mov rax, qword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d8]
mov qword [rsi + 0x18], rax
movups xmm0, xmmword [rbp + 0x3a8]
movups xmmword [rsi + 8], xmm0
xor eax, eax
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3c8]
test rdx, rdx
jne 0x18004ba42
jmp 0x18004ba55
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d8]
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3c8]
test rdx, rdx
je 0x18004ba55
add rdx, rdx
je 0x18004ba55
mov r8d, 2
mov rcx, r13
call fcn.180010e00
mov rax, rsi
add rsp, 0x468
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, str.internal_error:_entered_unreachable_code_rustc_e092d0b6b43f2de967af0887873151bb1c0b18d3library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.180076c20
jmp 0x18004ba9b
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.180076ef0
ud2
Function at 0x1800611b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov dword [rsp + 0x2c], r8d
lea eax, [r8 - 2]
cmp eax, 0x22
ja 0x18006137a
mov r9, rdx
mov edx, 1
test r9, r9
je 0x1800611ec
mov al, byte [rcx]
cmp al, 0x2d
je 0x1800611f4
cmp al, 0x2b
jne 0x180061205
add r9, 0xffffffffffffffff
je 0x1800611fa
add rcx, 1
jmp 0x180061205
xor r10d, r10d
jmp 0x180061362
cmp r9, 1
jne 0x180061205
mov r10d, 0x100
jmp 0x180061362
cmp r8d, 0x10
ja 0x18006126d
cmp r9, 9
jae 0x18006126d
xor r10d, r10d
cmp r8d, 0xa
jbe 0x1800612db
mov r11d, 0xffffffff
xor edx, edx
xor eax, eax
jmp 0x180061243
imul eax, r8d
add eax, edi
add rdx, 1
cmp r9, rdx
je 0x18006133a
movzx esi, byte [rcx + rdx]
lea edi, [rsi - 0x30]
cmp edi, 9
jbe 0x180061230
or esi, 0x20
add esi, 0xffffff9f
add esi, 0xa
cmovb esi, r11d
mov edi, esi
cmp esi, r8d
jb 0x180061230
mov edx, 0x101
jmp 0x180061356
xor r10d, r10d
cmp r8d, 0xa
jbe 0x180061304
mov r11d, 0xffffffff
xor eax, eax
nop word cs:[rax + rax]
nop dword [rax]
movzx esi, byte [rcx + r10]
mul r8d
seto dl
lea edi, [rsi - 0x30]
mov ebx, 1
cmp edi, 0xa
jb 0x1800612bf
or esi, 0x20
add esi, 0xffffff9f
add esi, 0xa
cmovb esi, r11d
xor ebx, ebx
cmp esi, r8d
setb bl
mov edi, esi
test ebx, ebx
sete bl
or dl, bl
jne 0x18006133e
add eax, edi
jb 0x180061351
add r10, 1
cmp r9, r10
jne 0x180061290
jmp 0x180061337
xor edx, edx
xor eax, eax
nop
movzx ebx, byte [rcx + rdx]
lea edi, [rbx - 0x30]
cmp edi, r8d
jae 0x180061263
imul eax, r8d
add eax, ebx
add eax, 0xffffffd0
add rdx, 1
cmp r9, rdx
jne 0x1800612e0
jmp 0x18006133a
xor eax, eax
nop word cs:[rax + rax]
movzx edi, byte [rcx + r10]
mul r8d
seto dl
add edi, 0xffffffd0
cmp edi, r8d
setae bl
jae 0x18006133e
test dl, dl
jne 0x18006133e
add eax, edi
jb 0x180061351
add r10, 1
cmp r9, r10
jne 0x180061310
xor r10d, r10d
xor edx, edx
jmp 0x180061362
xor bl, 1
movzx edx, bl
shl rdx, 8
add rdx, 0x101
jmp 0x180061356
mov edx, 0x201
mov r10d, edx
and r10d, 0x300
xor eax, eax
shl rax, 0x20
or rax, r10
movzx ecx, dl
or rcx, rax
mov rax, rcx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
lea rax, [rsp + 0x2c]
mov qword [rsp + 0x30], rax
lea rax, [0x180068120]
mov qword [rsp + 0x38], rax
lea rax, str.from_str_radix_int:_must_lie_in_the_range___2__36_____found
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.librarycore_src_nummod.rs
lea rcx, [rsp + 0x40]
call fcn.180076d90
ud2
jmp 0x1800611b0
Function at 0x1800667d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x18006684a
mov r11, qword [rsp + 0x70]
mov ebp, ecx
shr ebp, 8
lea r8, [rdx + r8*2]
xor eax, eax
mov rbx, rdx
movzx edi, byte [rdx + 1]
add rdx, 2
lea r10, [rax + rdi]
cmp byte [rbx], bpl
jne 0x180066840
cmp r10, rax
jb 0x1800668dd
cmp r10, r11
ja 0x1800668ea
add rax, r9
xor ebx, ebx
nop dword [rax + rax]
cmp rdi, rbx
je 0x180066842
lea rsi, [rbx + 1]
cmp byte [rax + rbx], cl
mov rbx, rsi
jne 0x180066820
jmp 0x1800668b2
ja 0x18006684a
mov rax, r10
cmp rdx, r8
jne 0x1800667ed
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1800668b6
mov rbx, qword [rsp + 0x78]
add rdx, rbx
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
nop
lea rsi, [rbx + 1]
movzx edi, byte [rbx]
test dil, dil
js 0x180066890
mov rbx, rsi
sub ecx, edi
jns 0x1800668a9
jmp 0x1800668b8
cmp rsi, rdx
je 0x1800668c3
and edi, 0x7f
shl edi, 8
movzx ebp, byte [rbx + 1]
add rbx, 2
or edi, ebp
sub ecx, edi
js 0x1800668b8
xor al, 1
cmp rbx, rdx
jne 0x180066870
jmp 0x1800668b8
xor eax, eax
jmp 0x1800668b8
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, str.called__Option::unwrap____on_a__None__value:
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.180076c20
ud2
mov rcx, rax
mov rdx, r10
call fcn.180076f00
ud2
mov rcx, r10
mov rdx, r11
call fcn.180076ef0
ud2
Function at 0x1800672c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov dword [rsp + 0x2c], r8d
lea eax, [r8 - 2]
cmp eax, 0x22
ja 0x18006137a
mov r9, rdx
mov edx, 1
test r9, r9
je 0x1800611ec
mov al, byte [rcx]
cmp al, 0x2d
je 0x1800611f4
cmp al, 0x2b
jne 0x180061205
add r9, 0xffffffffffffffff
je 0x1800611fa
add rcx, 1
jmp 0x180061205
xor r10d, r10d
jmp 0x180061362
cmp r9, 1
jne 0x180061205
mov r10d, 0x100
jmp 0x180061362
cmp r8d, 0x10
ja 0x18006126d
cmp r9, 9
jae 0x18006126d
xor r10d, r10d
cmp r8d, 0xa
jbe 0x1800612db
mov r11d, 0xffffffff
xor edx, edx
xor eax, eax
jmp 0x180061243
imul eax, r8d
add eax, edi
add rdx, 1
cmp r9, rdx
je 0x18006133a
movzx esi, byte [rcx + rdx]
lea edi, [rsi - 0x30]
cmp edi, 9
jbe 0x180061230
or esi, 0x20
add esi, 0xffffff9f
add esi, 0xa
cmovb esi, r11d
mov edi, esi
cmp esi, r8d
jb 0x180061230
mov edx, 0x101
jmp 0x180061356
xor r10d, r10d
cmp r8d, 0xa
jbe 0x180061304
mov r11d, 0xffffffff
xor eax, eax
nop word cs:[rax + rax]
nop dword [rax]
movzx esi, byte [rcx + r10]
mul r8d
seto dl
lea edi, [rsi - 0x30]
mov ebx, 1
cmp edi, 0xa
jb 0x1800612bf
or esi, 0x20
add esi, 0xffffff9f
add esi, 0xa
cmovb esi, r11d
xor ebx, ebx
cmp esi, r8d
setb bl
mov edi, esi
test ebx, ebx
sete bl
or dl, bl
jne 0x18006133e
add eax, edi
jb 0x180061351
add r10, 1
cmp r9, r10
jne 0x180061290
jmp 0x180061337
xor edx, edx
xor eax, eax
nop
movzx ebx, byte [rcx + rdx]
lea edi, [rbx - 0x30]
cmp edi, r8d
jae 0x180061263
imul eax, r8d
add eax, ebx
add eax, 0xffffffd0
add rdx, 1
cmp r9, rdx
jne 0x1800612e0
jmp 0x18006133a
xor eax, eax
nop word cs:[rax + rax]
movzx edi, byte [rcx + r10]
mul r8d
seto dl
add edi, 0xffffffd0
cmp edi, r8d
setae bl
jae 0x18006133e
test dl, dl
jne 0x18006133e
add eax, edi
jb 0x180061351
add r10, 1
cmp r9, r10
jne 0x180061310
xor r10d, r10d
xor edx, edx
jmp 0x180061362
xor bl, 1
movzx edx, bl
shl rdx, 8
add rdx, 0x101
jmp 0x180061356
mov edx, 0x201
mov r10d, edx
and r10d, 0x300
xor eax, eax
shl rax, 0x20
or rax, r10
movzx ecx, dl
or rcx, rax
mov rax, rcx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
lea rax, [rsp + 0x2c]
mov qword [rsp + 0x30], rax
lea rax, [0x180068120]
mov qword [rsp + 0x38], rax
lea rax, str.from_str_radix_int:_must_lie_in_the_range___2__36_____found
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.librarycore_src_nummod.rs
lea rcx, [rsp + 0x40]
call fcn.180076d90
ud2
jmp 0x1800611b0
Function at 0x180070374
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 0x1800703a4
xor eax, eax
jmp 0x180070467
mov rbp, rbx
cmp word [rax], si
je 0x1800703c9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800703b0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800703ac
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.1800702c4
movsxd r14, eax
test eax, eax
jne 0x180070407
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18007039d
mov rcx, r14
call fcn.1800715fc
mov rdi, rax
test rax, rax
jne 0x180070420
xor ecx, ecx
call fcn.18006e928
jmp 0x1800703fc
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.1800702c4
test eax, eax
jne 0x180070451
mov rcx, rdi
call fcn.18006e928
jmp 0x18007045b
xor ecx, ecx
call fcn.18006e928
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 0x18000187f
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x18009aed0
mov qword [rsp + 8], rcx
sub rsp, 0x38
call fcn.180099f20
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18009af07
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x180112020]
jmp 0x18009af0d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x38
ret

Function at 0x1800024a0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x18007caa0
mov rax, rcx
neg rcx
test rax, 7
je 0x18007cabd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x18007cb18
test al, 7
jne 0x18007cab0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x18007cad1
mov rdx, qword [rax - 8]
test dl, dl
je 0x18007cb42
test dh, dh
je 0x18007cb3c
shr rdx, 0x10
test dl, dl
je 0x18007cb36
test dh, dh
je 0x18007cb30
shr rdx, 0x10
test dl, dl
je 0x18007cb2a
test dh, dh
je 0x18007cb24
shr edx, 0x10
test dl, dl
je 0x18007cb1e
test dh, dh
jne 0x18007cad1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x180002784
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x180023110
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.180022a90
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18002314f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x180112020]
jmp 0x180023159
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1800028bf
Capabilities:
Query environment variable

Disassembly:
jmp 0x180098590
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 r14d, r14d
mov rbx, rax
test rax, rax
je 0x180098678
mov rsi, rax
cmp word [rax], r14w
je 0x1800985e3
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x1800985cb
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x1800985c7
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call fcn.1800031e8
movsxd rbp, eax
test eax, eax
je 0x180098678
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov rcx, rbp
lea edx, [r9 - 0x64]
call fcn.18000269e
mov rdi, rax
test rax, rax
je 0x180098666
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.1800031e8
test eax, eax
je 0x180098666
mov rsi, rdi
mov rdi, r14
jmp 0x180098669
mov rsi, r14
mov edx, 2
mov rcx, rdi
call fcn.1800017fd
jmp 0x18009867b
mov rsi, r14
test rbx, rbx
je 0x180098689
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1800028ce
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x180023040
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.180022a10
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x180023081
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x180112020]
jmp 0x180023087
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x180002941
Capabilities:
Get geographical location

Disassembly:
jmp 0x18009b1a0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.18009a120
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x18009b1f3
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
call qword [0x180112020]
jmp 0x18009b215
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.18000224d
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x48
ret
Function at 0x18000294b
Capabilities:
Terminate process

Disassembly:
jmp 0x180009960
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