joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000eb3c
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x8a0
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rsp + 0x890], rax
mov rbx, rcx
lea r8, [0x14005bb80]
lea rcx, [rsp + 0x20]
mov edx, 0x432
xor edi, edi
call fcn.14001b554
mov r8, rbx
lea rcx, [rsp + 0x20]
mov edx, 0x432
call fcn.14001b4d0
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x14000eba7
lea rcx, [rsp + 0x20]
call fcn.14001ee68
mov edi, 1
mov eax, edi
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.140013a90
mov rbx, qword [rsp + 0x8b8]
add rsp, 0x8a0
pop rdi
ret

Function at 0x14000ebcc
Capabilities:
Check if file exists

Disassembly:
sub rsp, 0x28
lea rcx, [0x14003d820]
call fcn.14000eb3c
lea rcx, [0x14003d460]
call fcn.14000eb3c
lea rcx, [0x14003d7c0]
call fcn.14000eb3c
lea rcx, [0x14003d880]
call fcn.14000eb3c
lea rcx, [0x14003d8e0]
call fcn.14000eb3c
lea rcx, [0x14003b760]
call fcn.14000eb3c
lea rcx, [0x14003d6d0]
add rsp, 0x28
jmp fcn.14000eb3c

Function at 0x14000ecf0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0xf8
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor eax, eax
lea rcx, [rsp + 0x74]
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
xor edx, edx
movups xmmword [rsp + 0x50], xmm0
lea r8d, [rax + 0x64]
call fcn.140015c00
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x48], rax
lea rdx, [0x14005cb80]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
and qword [rsp + 0x38], 0
xor ecx, ecx
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000ed8c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140013a90
add rsp, 0xf8
ret

Function at 0x14000eda8
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rsp + 0x38], rax
and qword [r11 - 0x18], 0
lea rax, [r11 - 0x18]
mov rdi, rdx
mov qword [r11 - 0x28], rax
mov rdx, rcx
mov rbx, r8
mov rcx, 0xffffffff80000002
mov r9d, 0xf003f
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000ee36
cmp qword [rsp + 0x30], 0
je 0x14000ee36
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x30]
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140013a90
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140013160
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov edi, r8d
lea rdx, str.Received_Post_Shell_Event__ld_n
lea rcx, [0x140058fb0]
call fcn.140006558
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rax
and dword [rsp + 0x38], eax
and qword [rsp + 0x40], rax
lea rdx, str.SoftwareIntelDisplayigfxcuiMISC
lea ecx, [rax + 1]
call fcn.140004e14
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140013207
mov dword [rsp + 0x48], 2
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.InstallStage
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov qword [rsp + 0x30], rbx
and dword [rsp + 0x38], ebx
call fcn.14000dc40
xor edx, edx
mov ecx, edi
call fcn.14000de7c
mov byte [0x14005e508], 1
test rbx, rbx
je 0x14001322a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140013a90
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x14001e540
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14001e39f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001e39f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001e39f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001e39f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001e39f
cmp dword [rcx + 0x84], 0xe
jbe 0x14001e39f
cmp dword [rcx + 0xf8], 0
je 0x14001e39f
mov ecx, ebx
call fcn.14001e45c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14001e22c
nop
cmp dword [rbp + 0x20], 0
je 0x14001e3ed
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001e3f8
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001e330

Function at 0x14001ee68
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001ee88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001b37c
or eax, 0xffffffff
jmp 0x14001ee8a
xor eax, eax
add rsp, 0x28
ret
Function at 0x140029168
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x140028e81
call fcn.14001b408
mov dword [rax], 0x16
call fcn.14001b29c
jmp 0x140028fdd
mov eax, dword [rcx + 0x14]
shr eax, 0xd
mov ebp, 1
test bpl, al
je 0x140028fdd
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test bpl, al
jne 0x140028fdd
mov eax, dword [rcx + 0x14]
shr eax, 1
test bpl, al
je 0x140028eb8
lock or dword [rcx + 0x14], 0x10
jmp 0x140028fdd
lock or dword [rcx + 0x14], ebp
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140028ecb
call fcn.140029568
mov r14d, dword [rbx + 0x10]
cmp r14d, ebp
jne 0x140028edc
mov rax, qword [rbx]
mov r15b, byte [rax]
jmp 0x140028edf
xor r15b, r15b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.140028b38
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.140033b08
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140028fcb
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140028f72
mov rcx, rbx
call fcn.140028b38
cmp eax, 0xffffffff
je 0x140028f5d
mov rcx, rbx
call fcn.140028b38
cmp eax, 0xfffffffe
je 0x140028f5d
mov rcx, rbx
call fcn.140028b38
movsxd rdi, eax
lea rsi, [0x14005f770]
mov rcx, rbx
sar rdi, 6
call fcn.140028b38
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140028f64
lea rdx, [0x1400574d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140028f72
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140028f98
mov eax, dword [rbx + 0x14]
shr eax, 6
test bpl, al
je 0x140028f98
mov eax, dword [rbx + 0x14]
shr eax, 8
test bpl, al
jne 0x140028f98
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp r14d, ebp
jne 0x140028fb3
movzx ecx, byte [rdx]
shl cx, 8
movzx eax, r15b
or cx, ax
dec dword [rbx + 0x10]
jmp 0x140028fbf
movzx ecx, word [rdx]
mov ebp, 2
add dword [rbx + 0x10], 0xfffffffe
lea rax, [rdx + rbp]
mov qword [rbx], rax
movzx eax, cx
jmp 0x140028fe2
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
jmp 0x140028e4c
Function at 0x14002ab6c
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.140013f30
sub rsp, rax
mov rax, qword [0x140057108]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140028b38
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002abbb
mov rax, rbp
jmp 0x14002acc3
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 + 0x5f770]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002b05c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x5f770]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002acbf
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 0x14002acbf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002b05c
test rax, rax
js 0x14002acbf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002acbf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002acb1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002acb1
cmp byte [rcx], 0xd
jne 0x14002ac97
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002aca6
cmp byte [rcx + 1], 0xa
jne 0x14002aca6
inc rcx
jmp 0x14002aca6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x57c10]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002ac79
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002acc3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140013a90
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 0x14002cd84
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14002ce0b
mov rsi, rbx
cmp word [rax], bp
je 0x14002cdca
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002cdb4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002cdb0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140027584
mov rdi, rax
test rax, rax
je 0x14002cdf8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140016a60
mov rbp, rdi
xor ecx, ecx
call fcn.140026e6c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003365c
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14005f770]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1400336ba
cmp word [rdx], r12w
jne 0x1400336ba
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400336c0
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14003381b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400337f6
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400336f9
mov rcx, r9
jmp 0x14003371c
cmp r9, rdx
jae 0x140033733
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1400336dd
jmp 0x14003381b
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400337f0
cmp dword [rsp + 0x80], edi
je 0x1400337f0
mov rdx, r14
lea r11, [0x14005f770]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1400337c9
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14003379c
mov word [rbx], r12w
jmp 0x140033817
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1400337a5
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140033817
cmp word [rsp + 0x70], r12w
jne 0x1400337d6
cmp rbx, rsi
je 0x140033796
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14002b064
cmp word [rsp + 0x70], r12w
je 0x14003381b
mov word [rbx], r13w
jmp 0x140033817
lea r11, [0x14005f770]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140033813
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14003381b
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140036a28
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.14002b064
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002b064
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140036b78
cmp rax, 0xffffffffffffffff
je 0x140036b78
xor edi, edi
test rbp, rbp
jle 0x140036b23
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14002b108
mov rbx, rax
test rax, rax
jne 0x140036ab0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140036b19
mov edx, 0x8000
mov ecx, r14d
call fcn.140020c6c
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.14002a54c
cmp eax, 0xffffffff
je 0x140036af9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140036ac0
mov edx, r15d
mov ecx, r14d
call fcn.140020c6c
jmp 0x140036b19
cmp byte [rsi + 0x38], dil
je 0x140036b10
cmp dword [rsi + 0x34], 5
jne 0x140036b10
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140036b19
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140026e6c
jmp 0x140036b8c
jns 0x140036b8c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002b064
cmp rax, 0xffffffffffffffff
jne 0x140036b44
cmp byte [rsi + 0x30], dil
je 0x140036b8c
mov edi, dword [rsi + 0x2c]
jmp 0x140036b8c
mov ecx, r14d
call fcn.14002d2cc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140036b8c
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 0x140036b8c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140036b85
mov eax, dword [rsi + 0x2c]
jmp 0x140036b8a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002b064
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 0x140003ce0
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 0x140003d70
jmp 0x140003d5f
jae 0x140003e30
cmp r8, 0x201
jae 0x140003d70
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140003dc8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x140003d9f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14001a510
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 0x140003df1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140003e98
mov r8d, r14d
cmp r15, r8
jne 0x140003d50
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140003ebb
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140003d5f
jmp 0x140003d70
cmp rsi, r8
jb 0x140003ed5
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1400061c0
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 0x140003e81
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140001470
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 0x140003e69
jmp 0x140003e81
lea rcx, str.internal_error:_entered_unreachable_code_rustc_a28077b28a02b92985b3a3faecf92813155f1ea1library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001b150
jmp 0x140003eea
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001b5a0
ud2
Function at 0x14000af20
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 [0x140037580]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000af64
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 0x14000afca
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000b001
test eax, eax
js 0x14000afdb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000aff4
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.140005e70
mov rcx, rax
call fcn.140001dc0
mov ecx, 7
int 0x29
ud2
Function at 0x140018460
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400184da
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 0x1400184d0
cmp r11, r10
ja 0x140018573
cmp r10, rdx
ja 0x140018587
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400184d2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400184b0
jmp 0x140018547
ja 0x1400184da
mov r11, r10
cmp rax, r8
jne 0x140018482
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001854b
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 0x140018520
mov r8, r10
sub ecx, r9d
jns 0x14001853e
jmp 0x14001854d
cmp r10, rdx
je 0x140018559
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001854d
xor al, 1
cmp r8, rdx
jne 0x140018500
jmp 0x14001854d
xor eax, eax
jmp 0x14001854d
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__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001b150
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001b620
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001b5a0
ud2

Function at 0x140019f94
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140019fde
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140019fde
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140019fde
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140019fde
cmp dword [rcx + 0x84], 0xe
jbe 0x140019fde
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140019fe0
xor al, al
add rsp, 0x28
ret
Function at 0x2fc4daac0
Capabilities:
Write file on windows

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

Function at 0x2fc4db4c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fe108]
test eax, eax
je 0x2fc4db55a
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fe110]
mov qword [rbp - 8], rax
jmp 0x2fc4db53e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4db532
cmp qword [rbp - 0x10], 0
je 0x2fc4db532
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4db4f8
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4db55b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4db660
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4db688
mov eax, 0
jmp 0x2fc4db6d6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4db6b1
mov eax, 0
jmp 0x2fc4db6d6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4db6d1
mov eax, 0
jmp 0x2fc4db6d6
mov eax, 1
add rsp, 0x20
pop rbp
ret