joyce8/EMBER2024-capa huggingface dataset:
Function at 0x141146ff2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x78
mov dword [rsp + 0x6c], edx
mov qword [rsp + 0x60], rcx
cmp qword [rsp + 0x60], 0
jne 0x141147019
mov qword [rsp + 0x70], 0
jmp 0x141147153
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14114703d
mov qword [rsp + 0x70], 0
jmp 0x141147153
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x58]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14114706d
mov qword [rsp + 0x70], 0
jmp 0x141147153
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x88]
add rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
mov ecx, dword [rcx + 0x20]
add rax, rcx
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x48]
cmp eax, dword [rcx + 0x18]
jae 0x14114714a
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rcx + rdx*4]
add rax, rcx
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
mov edx, 0x911c9ac5
call fcn.141147ee8
cmp eax, dword [rsp + 0x6c]
jne 0x141147135
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
mov ecx, dword [rcx + 0x24]
add rax, rcx
mov ecx, dword [rsp + 0x3c]
movzx eax, word [rax + rcx*2]
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
mov edx, dword [rdx + 0x1c]
add rcx, rdx
mov edx, dword [rsp + 0x2c]
mov ecx, dword [rcx + rdx*4]
add rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x70], rax
jmp 0x141147153
jmp 0x14114713a
mov eax, dword [rsp + 0x3c]
add eax, 1
mov dword [rsp + 0x3c], eax
jmp 0x1411470a2
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x70]
add rsp, 0x78
ret

Function at 0x141147e7e
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x34], edx
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0
jne 0x141147ea9
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x24], eax
jmp 0x141147ecd
imul edx, dword [rsp + 0x34], 0x1000193
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
xor edx, eax
mov rcx, qword [rsp + 0x28]
add rcx, 2
call fcn.141147e7e
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
add rsp, 0x38
ret

Function at 0x141147ee8
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x34], edx
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
cmp eax, 0
jne 0x141147f13
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x24], eax
jmp 0x141147f37
imul edx, dword [rsp + 0x34], 0x1000193
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
xor edx, eax
mov rcx, qword [rsp + 0x28]
add rcx, 1
call fcn.141147ee8
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
add rsp, 0x38
ret
Function at 0x180007530
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x1800801a0]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov dword [rsp + 0x20], 0x130
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
nop
lea rdx, [rsp + 0x4c]
lea rcx, str.suddenattack.exe
call fcn.1800441e0
mov rcx, rbx
test eax, eax
je 0x1800075a4
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x180007570
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1800075ae
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180015320
add rsp, 0x160
pop rbx
ret
Function at 0x180010820
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x180010881
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x180010840
mov ecx, dword [r10]
jmp 0x18001096a
cmp ecx, 0x4e0
jb 0x18001096a
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1800108a0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1800108f0
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004a20]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004a30]
mov dword [rax], 1
mov rax, qword [0x140004a40]
mov dword [rax], 1
mov rax, qword [0x140004a10]
mov dword [rax], 1
mov rax, qword [0x1400048e0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x140004a00]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400049c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400049a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140004890]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x140001880
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 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x1400018f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1400070a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140001aa0
mov rax, qword [0x1400070a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000193c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400019c7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140001920
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x140001afd
mov rax, qword [0x1400070a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400070a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ae2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400019c0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001a50
add dword [0x1400070a4], 1
cmp ebx, 8
jae 0x1400019f8
test bl, 4
jne 0x140001ab0
test ebx, ebx
je 0x1400019e9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140001ad0
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 0x1400019e9
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 0x140001a2a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1400070a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400019c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x140001947
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x1400019e9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x1400019e9
mov rax, qword [0x1400070a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x140002010
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140007100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140002064
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 0x14000205b
test r12, r12
je 0x14000205b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002040
lea rcx, [0x140007100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002290
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x1400022a0
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x1400022b0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400022f5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x1400022ec
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x1400022f7
add rax, 0x28
cmp rax, r9
jne 0x1400022d8
xor eax, eax
ret

Function at 0x1400023a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x1400048e0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140002419
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002419
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 0x140002416
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 0x14000240d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140002419
add r8, 0x28
cmp r8, r9
jne 0x1400023f8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140002500
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1400048e0]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000256f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14000256f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x14000256d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002564
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002578
add rax, 0x28
cmp rax, r9
jne 0x140002550
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140002590
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x1400048e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140002608
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002608
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140002608
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002608
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x1400025fc
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002610
add rdx, 0x28
cmp rdx, r10
jne 0x1400025e8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x140002620
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14000262e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002605
test r8d, r8d
jg 0x140002618
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x140009320
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x1400093b0
cmp r10, r11
jb 0x140009426
cmp r10, rdx
ja 0x14000943a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x1400093b2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140009390
jmp 0x140009414
ja 0x1400093ba
mov r11, r10
cmp rax, r8
jne 0x140009354
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x1400093f0
mov rdi, r8
sub ecx, edx
jns 0x14000940b
jmp 0x140009416
cmp r8, rsi
je 0x14000944b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140009416
xor al, 1
cmp rdi, rsi
jne 0x1400093d0
jmp 0x140009416
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14005c3f0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14005c180
ud2
lea rcx, [0x14006bf7f]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14005c200
ud2
Function at 0x140019a09
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x50
xorps xmm0, xmm0
lea rsi, [rsp + 0x20]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [rsi + 0x20]
add rsp, 0x50
pop rsi
ret
Function at 0x14001e4f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x14001e54b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14001e54b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x14001e566
cmp eax, 0x42
jne 0x14001e54b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14001e616
cmp byte [r9 + r11], 0x5f
jne 0x14001e616
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14001e67e
mov rcx, rsi
xor edx, edx
call fcn.140019d80
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.140019d80
test al, al
jne 0x14001e711
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14001e5a2
lea rdx, [0x1400664fa]
mov r8d, 1
call fcn.140007060
test al, al
jne 0x14001e711
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14001e55a
xor r14d, r14d
lea rbx, str.__JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14001e5d4
cmp byte [rax + rcx], 0x45
je 0x14001e733
sub r14, 1
jb 0x14001e5f9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14001e5f9
mov r8d, 2
mov rdx, rbx
call fcn.140007060
test al, al
jne 0x14001e711
mov rcx, rsi
call fcn.14001e750
test al, al
jne 0x14001e711
mov rax, qword [rsi]
test rax, rax
jne 0x14001e5c0
jmp 0x14001e55a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x14001e6d8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x14001e672
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14001e65c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14001e64b
add dl, 0xa9
jmp 0x14001e65a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14001e6d8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14001e6d8
movzx edx, bl
add rax, rdx
jae 0x14001e620
jmp 0x14001e6d8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14001e6d8
cmp rax, rcx
jae 0x14001e6d5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14001e72b
cmp qword [rsi + 0x20], 0
je 0x14001e73f
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.14001e4f0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14001e55c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14001e719
lea rax, [0x140066891]
lea rdx, str.recursion_limit_reachedinvalid_syntax
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.140007060
test al, al
je 0x14001e719
mov dil, 2
jmp 0x14001e55a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14001e55a
mov dil, 1
xor r8d, r8d
jmp 0x14001e6da
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14001e55a
xor edi, edi
jmp 0x14001e55a
Function at 0x14002c710
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x98
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x50], 0x103
mov qword [rsp + 0x58], 0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14002c789
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x50]
cmp eax, 0x103
je 0x14002c7c0
test eax, eax
js 0x14002c79a
mov rax, qword [rsp + 0x58]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14002c7b3
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, 0x98
pop rdi
pop rsi
ret
mov byte [rsp + 0x4c], 0
mov dword [rsp + 0x48], 0
lea rax, [0x14006a2e0]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], 1
lea rax, [0x14006bc78]
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x80], xmm0
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x68]
call fcn.14002b3e0
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x60]
call fcn.14002b480
mov ecx, 7
int 0x29
ud2
Function at 0x14002e220
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 r14d, r14d
cmp r8, 0x201
jae 0x14002e2b0
jmp 0x14002e29f
jae 0x14002e36f
cmp r8, 0x201
jae 0x14002e2b0
lea r15, [rbp - 0x58]
mov r12d, 0x200
mov r13, r8
jmp 0x14002e308
sub r8, r14
sub rbx, r14
cmp rbx, r8
jae 0x14002e2df
lea rcx, [rbp + 0x3c8]
mov rdx, r14
call fcn.14005d0a0
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r14d, 0xffffffff
cmovb r14, rdi
mov qword [rbp + 0x3d8], r14
mov rbx, rdi
mov r15, qword [rbp + 0x3e8]
mov r12, r14
mov r13, r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r13d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x14002e330
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14002e3ce
mov r8d, esi
cmp r13, r8
jne 0x14002e290
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002e3f1
add r13, r13
mov eax, 0xffffffff
cmp r13, rax
cmovae r13, rax
mov r8, r13
cmp r8, 0x201
jb 0x14002e29f
jmp 0x14002e2b0
cmp r12, r8
jb 0x14002e40b
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.14002ed70
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rax, qword [rbp + 0x3e0]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
test rdi, rdi
je 0x14002e3b9
mov edx, 2
mov rcx, qword [rbp + 0x3e8]
call fcn.140005400
nop
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 rcx, qword [rbp + 0x3e0]
mov qword [rcx], rax
mov byte [rcx + 0x18], 2
test rdi, rdi
jne 0x14002e3a8
jmp 0x14002e3b9
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14005c200
jmp 0x14002e420
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r12
mov r8, rax
call fcn.14005c180
ud2