joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f0c40
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp edx, 2
je 0x1400f0d70
ja 0x1400f0c88
test edx, edx
je 0x1400f0d08
mov eax, dword [0x140305ec8]
test eax, eax
je 0x1400f0df0
mov dword [0x140305ec8], 1
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp edx, 3
jne 0x1400f0c75
mov eax, dword [0x140305ec8]
test eax, eax
je 0x1400f0c75
lea r12, [0x140305ee0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140305ec0]
test rbx, rbx
je 0x1400f0cf4
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 rsi, rsi
je 0x1400f0e18
test eax, eax
jne 0x1400f0e18
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400f0cc8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400f0c75
mov eax, dword [0x140305ec8]
test eax, eax
jne 0x1400f0d88
mov eax, dword [0x140305ec8]
cmp eax, 1
jne 0x1400f0c75
mov rbx, qword [0x140305ec0]
test rbx, rbx
je 0x1400f0d41
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx + 0x10]
call sub.msvcrt.dll_free
test rbx, rbx
jne 0x1400f0d30
lea rcx, [0x140305ee0]
mov qword [0x140305ec0], 0
mov dword [0x140305ec8], 0
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x1400f0c75
call fcn.1400f03c0
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r12, [0x140305ee0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140305ec0]
test rbx, rbx
je 0x1400f0ddc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word [rax + rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400f0e08
test rsi, rsi
je 0x1400f0e08
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400f0db8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400f0d12
lea rcx, [0x140305ee0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x1400f0c6b
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400f0db8
jmp 0x1400f0ddc
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400f0cc8
jmp 0x1400f0cf4

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

Disassembly:
mov r8, qword [0x1402a9250]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400f0f70
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400f0f78
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400f0f70
movzx eax, word [rdx + 0x14]
sub rcx, r8
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400f0fc5
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400f0fbc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400f0f70
add rax, 0x28
cmp rax, r9
jne 0x1400f0fa8
xor eax, eax
ret
Function at 0x1400f0fd0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402a9250]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400f0fef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400f0ff8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400f0fef
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400f1090
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402a9250]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400f10af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400f10b8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x180014420
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
lea r13d, [rdx - 0xa]
mov r15d, edx
mov r14, rcx
cmp edx, r13d
jbe case.0x180014485.19
mov rdi, qword [rsp + 0x90]
lea r12d, [rdx - 0x7f]
mov esi, dword [rsp + 0x88]
lea rdx, [0x180000000]
mov ebp, dword [rsp + 0x88]
xor ebx, ebx
nop word [rax + rax]
cmp r12d, 0x17
ja case.0x180014485.4
mov ecx, dword [rdx + r12*4 + 0x146c4]
add rcx, rdx
jmp rcx
mov ecx, 0x18
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
jmp 0x180014671
mov r9d, 0x124
mov qword [rsp + 0x20], rbx
mov r8, r14
xor edx, edx
xor ecx, ecx
call fcn.18003cf80
test al, al
jne 0x180014500
mov ebx, 0x66
xor esi, esi
nop dword [rax]
cmp ebx, 0x66
je 0x1800144d3
cmp ebx, 0x10c
je case.0x180014485.19
jmp 0x1800144f0
mov r8, qword [0x18005a178]
mov r9d, 0x16
xor edx, edx
xor ecx, ecx
call fcn.180013640
mov dword [rsp + 0x90], esi
add ebx, 0xa6
cmp ebx, 0x1b2
jb 0x1800144c0
xor ebx, ebx
mov esi, ebx
jmp 0x180014671
cmp dword [rdi + 4], 0
mov edx, ebx
jle 0x180014528
mov rcx, rbx
mov rax, qword [rdi + 8]
lea rcx, [rcx + 0x204]
inc edx
mov dword [rax + rcx - 4], ebx
cmp edx, dword [rdi + 4]
jl 0x180014512
mov dword [rdi + 0x10], ebx
jmp 0x180014671
mov eax, 0x73
cmp eax, 0x73
je 0x180014547
cmp eax, 0x125
je case.0x180014485.19
jmp 0x180014551
mov dword [rdi], ebx
mov qword [rsp + 0x90], rdi
add eax, 0xb2
cmp eax, 0x1d7
jb 0x180014535
mov r8, qword [0x18005a178]
mov r9d, 0x16
xor edx, edx
xor ecx, ecx
call fcn.180013640
mov dword [rsp + 0x90], esi
jmp 0x180014671
movsxd rax, dword [r14]
imul rcx, rax, 0x204
mov dword [rdi + 4], eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rdi + 8], rax
jmp 0x180014671
mov rcx, qword [r14 + 0x28]
call qword [r14 + 0x20]
test al, al
je 0x180014671
mov ebx, 0x12
cmp ebx, 0x12
je 0x180014610
cmp ebx, 0x98
je 0x1800145eb
cmp ebx, 0x11e
je 0x1800145d3
cmp ebx, 0x1a4
jne 0x180014618
call qword [r14 + 0x50]
jmp 0x180014618
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
sub ecx, ebp
mul ecx
mov esi, edx
shr esi, 6
jmp 0x180014618
xor eax, eax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xdd
call fcn.180010440
jmp 0x180014618
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
add ebx, 0x86
cmp ebx, 0x22a
jb 0x1800145b0
xor ebx, ebx
jmp 0x180014671
mov r8, qword [0x18005a178]
xor r9d, r9d
xor ecx, ecx
lea edx, [r9 + 0x27]
call fcn.180031220
test al, al
je 0x180014689
mov rdx, qword [0x18005a178]
lea r9, [rsp + 0x88]
mov qword [rsp + 0x28], rbx
mov r8d, 0xe6
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x88], 1
call fcn.18002f9c0
lea rdx, [0x180000000]
dec r15d
dec r12d
cmp r15d, r13d
ja 0x180014470
jmp case.0x180014485.19
mov dword [rsp + 0x90], ebx
jmp case.0x180014485.19
mov rcx, r14
call qword [0x18005a1d8]
mov byte [rsp + 0x90], al
mov rax, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180019f40
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov ebx, dword [rsp + 0x60]
lea r15d, [rcx - 8]
mov r12, r8
mov r14, rdx
cmp ecx, r15d
jbe case.0x180019f96.9
lea ebp, [rcx - 0x8f]
xor r13d, r13d
lea rdx, [0x180000000]
cmp ebp, 0x12
ja case.0x180019f96.3
mov ecx, dword [rdx + rbp*4 + 0x1a080]
add rcx, rdx
jmp rcx
mov qword [r14 + 0x18], r13
jmp case.0x180019f96.3
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rdx, [0x180000000]
jmp case.0x180019f96.3
mov qword [r14 + 0xc8], r13
jmp case.0x180019f96.3
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x18001a079
lea ebx, [rax + 1]
lea rdx, [0x180000000]
jmp case.0x180019f96.3
lea rdi, [r14 + 0xd0]
mov esi, 0x38
nop dword [rax]
mov r8, qword [rdi]
mov r9d, 0x64
xor edx, edx
mov qword [rsp + 0x20], r13
xor ecx, ecx
call fcn.18002c980
lea rdi, [rdi + 8]
sub rsi, 1
jne 0x180019ff0
mov rcx, qword [r14 + 0xc8]
xor r9d, r9d
mov qword [rsp + 0x28], r13
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0x119
call fcn.180020300
lea rdx, [0x180000000]
jmp case.0x180019f96.3
mov qword [r14 + 0x30], r13
mov qword [r14 + 0x20], r13
jmp case.0x180019f96.3
mov qword [r14 + 8], r13
dec ebp
lea eax, [rbp + 0x8f]
cmp eax, r15d
ja 0x180019f83
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, r13d
jmp 0x18001a05c
Function at 0x180042e90
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
cmp edx, 1
jne 0x180042eae
lea ecx, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_GetUserGeoID]
mov qword [0x1800573a0], rbx
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x180042fe0
Capabilities:
Terminate thread

Disassembly:
mov rax, rdx
mov r9, rcx
mov rcx, rax
xor edx, edx
mov r8d, 0x118
jmp fcn.180013970
Function at 0x140003ec0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140003f50
jmp 0x140003f3f
jae 0x140004010
cmp r8, 0x201
jae 0x140003f50
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140003fa8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x140003f7f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14001aab0
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140003fd1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140004078
mov r8d, r14d
cmp r15, r8
jne 0x140003f30
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000409b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140003f3f
jmp 0x140003f50
cmp rsi, r8
jb 0x1400040b5
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140005c00
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x140004061
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140001510
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x140004049
jmp 0x140004061
lea rcx, str.internal_error:_entered_unreachable_code_rustc_5680fa18feaa87f3ff04063800aec256c3d4b4belibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001b460
jmp 0x1400040ca
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001b8b0
ud2
Function at 0x140006600
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140006630
test ecx, ecx
jne 0x140006680
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x14000663c
test ecx, ecx
jne 0x140006680
mov rcx, rdi
call fcn.1400064e0
movzx eax, al
test bpl, bpl
jne 0x140006687
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x140006673.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x1400067f8]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x140006673.2
xor eax, eax
test bpl, bpl
je 0x14000664c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x1400067d9
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x1400066ba
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140006739
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x140006700
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x14000671b
inc rax
dec rdi
cmp rax, 1
jne 0x1400066e0
jmp 0x140006739
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x14000671b
cmp ebx, 0x5c
je 0x14000671b
inc rax
dec rdi
cmp rax, 1
jne 0x140006700
jmp 0x140006739
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x1400067e7
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140006763
mov al, 9
cmp rdx, 2
je 0x140006767
cmp rdx, 1
jne 0x140006777
cmp byte [r8], 0x2e
jne 0x140006777
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140006777
mov al, 0xa
jmp 0x140006777
cmp byte [r8], 0x2e
jne 0x140006777
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x140006673.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x140006673.2
mov ecx, 2
jmp case.0x140006673.2
lea r8, str.library_std_srcpath.rs
call fcn.14001b830
ud2
lea r8, str.library_std_srcpath.rs
call fcn.14001b830
ud2
Function at 0x14000ad00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14001d918]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000ad44
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000adaa
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000ade1
test eax, eax
js 0x14000adbb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000add4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140005970
mov rcx, rax
call fcn.140001cf0
mov ecx, 7
int 0x29
ud2

Function at 0x1400188e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001895a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
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 0x140018950
cmp r10, r11
jb 0x1400189f3
cmp r10, rdx
ja 0x140018a07
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140018952
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140018930
jmp 0x1400189c7
ja 0x14001895a
mov r11, r10
cmp rax, r8
jne 0x140018902
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400189cb
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1400189a0
mov r8, r10
sub ecx, r9d
jns 0x1400189be
jmp 0x1400189cd
cmp r10, rdx
je 0x1400189d9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400189cd
xor al, 1
cmp r8, rdx
jne 0x140018980
jmp 0x1400189cd
xor eax, eax
jmp 0x1400189cd
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuelibrarycore_src_nummod.rsfrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001b460
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001b930
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001b8b0
ud2
Function at 0x14001a43c
Capabilities:
Parse pe header

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

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

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

Disassembly:
mov rax, qword [0x140008008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x140008008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140008008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140008008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x140001060
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14001b020]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
mov rbx, rcx
mov ecx, 8
call fcn.140014714
test rax, rax
je 0x140001091
mov qword [rax], rdi
mov qword [rsp + 0x30], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400018c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x1400010de
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140014870
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x140005930
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x58]
xor r15d, r15d
mov r11, qword [rsp + 0x70]
mov r13, rdx
mov rax, qword [rsp + 0x60]
mov qword [r14], r8
mov qword [r11], rax
mov rdi, qword [r14]
cmp rdi, r9
je 0x140005ac3
mov r12, qword [rsp + 0x68]
lea r8d, [r15 + 1]
mov rsi, qword [r11]
mov r9d, 0x3ff
mov r10d, 0x2400
mov ebx, 0x2800
cmp rsi, r12
je 0x140005ac3
movzx edx, word [r13]
xor bpl, bpl
movzx ecx, word [rdi]
cmp r8w, dx
jae 0x1400059c9
lea eax, [r10 + rcx]
cmp ax, r9w
ja 0x140005ae7
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x1400059df
mov eax, ecx
add cx, bx
cmp cx, r9w
ja 0x1400059df
shl eax, 0xa
mov bpl, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x1400059f2
movzx r9d, al
mov r10d, r15d
mov ebx, r15d
jmp 0x140005a3d
mov r9d, eax
cmp eax, 0x800
jae 0x140005a0c
shr r9d, 6
mov r10d, r8d
or r9b, 0xc0
mov ebx, r8d
jmp 0x140005a3d
cmp eax, 0x10000
jae 0x140005a26
shr r9d, 0xc
mov r10d, 2
or r9b, 0xe0
mov ebx, r10d
jmp 0x140005a3d
shr r9d, 0x12
mov r10d, 3
movzx ebx, bpl
or r9b, 0xf0
xor ebx, 1
add ebx, ebx
lea r8d, [rbx + 1]
mov rdx, r12
sub rdx, rsi
mov ecx, r8d
cmp rdx, rcx
jl 0x140005ac3
lea rcx, [rdi + 2]
mov qword [r14], rcx
test bpl, bpl
jne 0x140005a61
cmp r10d, 3
jae 0x140005a6d
mov rcx, qword [r11]
mov r8d, ebx
mov byte [rcx], r9b
inc qword [r11]
mov r9, qword [r11]
test r8d, r8d
jle 0x140005a9e
lea ecx, [r10 + r10*2]
add ecx, ecx
nop dword [rax + rax]
sub ecx, 6
mov edx, eax
shr edx, cl
dec r8d
and dl, 0x3f
or dl, 0x80
mov byte [r9], dl
inc qword [r11]
mov r9, qword [r11]
test r8d, r8d
jg 0x140005a80
shr eax, 0xa
mov r8d, 1
test bpl, bpl
mov ecx, r8d
cmovne ecx, eax
mov word [r13], cx
mov rdi, qword [r14]
cmp rdi, qword [rsp + 0x50]
jne 0x14000597e
mov rax, qword [rsp + 0x48]
cmp rax, qword [r14]
sete r15b
mov eax, r15d
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov eax, 2
jmp 0x140005ad2
Function at 0x140015360
Capabilities:
Parse pe header

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