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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140044088]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebx, r8d
mov esi, 3
lea r15, [rsp + 0x98]
mov ebp, esi
mov edi, edx
mov r13, rcx
test r8d, r8d
je 0x140007c72
lea rcx, [r15 - 8]
mov r8d, ebx
nop word [rax + rax]
mov eax, dword [rcx + 8]
lea rcx, [rcx + 0x10]
add ebp, 4
add ebp, eax
sub r8, 1
jne 0x140007c60
mov ecx, ebp
call fcn.14000a474
mov r14, rax
mov word [rax], di
mov byte [rax + 2], bl
test ebx, ebx
je 0x140007cb8
lea rdi, [r15 - 8]
mov r15, rbx
nop dword [rax]
mov ebx, dword [rdi + 8]
lea rdi, [rdi + 0x10]
mov ecx, esi
mov r8d, ebx
add esi, 4
mov dword [rcx + r14], ebx
mov rdx, qword [rdi]
mov ecx, esi
add rcx, r14
call fcn.14000b230
add esi, ebx
sub r15, 1
jne 0x140007c90
mov rcx, qword [r13 + 0x28]
lea r9, [rsp + 0x30]
xor ebx, ebx
mov r8d, ebp
mov rdx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140007cde
cmp ebp, dword [rsp + 0x30]
je 0x140007ce6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, r14
call fcn.14000a46c
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140009e60
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140007d10
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140044088]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x50]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140007d68
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140007daf
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rcx
mov rdx, rdi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ecx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140007dd5
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x140007dd5
mov dword [rsp + 0x28], 4
lea r8, str.DelayLaunch
mov r9d, 4
mov qword [rsp + 0x20], rsi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140009e60
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140007e00
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x90
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x140044088]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x50], ebx
call fcn.140007f20
mov rsi, rax
test rax, rax
jne 0x140007e4f
lea eax, [rbx + 2]
jmp 0x140007eeb
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.1400081a0
nop
lea rbp, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rbp, qword [rsp + 0x60]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov r9d, 0xffff
lea r8, str.DelayLaunch
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, eax
test eax, eax
jne 0x140007eb3
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rdx, rbp
mov rcx, rsi
call fcn.140007d10
mov ebx, eax
cmp ebx, 5
jne 0x140007ecc
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rdx, rdi
call fcn.1400082c0
mov ebx, eax
mov r8, qword [rsp + 0x78]
cmp r8, 8
jb 0x140007ee9
inc r8
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x60]
call fcn.140006620
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140009e60
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400082c0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x4f]
sub rsp, 0xc0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140044088]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, rdx
mov rsi, qword [rbp + 0x77]
mov dword [rbp + 0xf], 4
xor eax, eax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
mov qword [rbp - 1], rax
mov qword [rbp + 7], rax
mov qword [rbp - 9], 7
xor r15d, r15d
mov qword [rbp - 0x11], r15
mov word [rbp - 0x21], r15w
lea r8d, [rax + 2]
lea rdx, [0x14003d668]
lea rcx, [rbp - 0x21]
call fcn.140005630
nop
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
lea r8d, [r15 + 1]
lea rdx, [0x14003cbb0]
lea rcx, [rbp - 0x21]
call fcn.140005780
lea r8d, [r15 + 6]
lea rdx, str.pipe_
lea rcx, [rbp - 0x21]
call fcn.140005780
movzx eax, word [str.treadstone_service]
neg ax
sbb r8, r8
and r8d, 0x12
lea rdx, str.treadstone_service
lea rcx, [rbp - 0x21]
call fcn.140005780
mov dword [rbp - 1], 0xc0000000
lea rcx, [rbp - 0x21]
call fcn.140007b40
test rdi, rdi
jne 0x1400083a9
mov eax, r15d
jmp 0x1400083b6
mov edx, 0xff
mov rcx, rdi
call fcn.140013b7c
lea rbx, [rax*2 + 2]
mov edx, 0xff
lea r14, str.DelayLaunch
mov rcx, r14
call fcn.140013b7c
lea rax, [rax*2 + 2]
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x48], 4
lea rcx, [rbp + 0xf]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 4
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov r9, rbx
mov edx, 5
lea r8d, [rdx - 1]
lea rcx, [rbp - 0x21]
call fcn.140007c10
mov ebx, eax
test eax, eax
jne 0x140008453
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x17]
lea r8d, [rax + 9]
lea rdx, [rbp + 0x1f]
mov rcx, qword [rbp + 7]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140008447
cmp dword [rbp + 0x17], ebx
jne 0x140008459
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
je 0x140008459
mov rcx, qword [rbp + 7]
jmp 0x140008472
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x14000846f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
mov qword [rbp + 7], rcx
mov ebx, dword [rbp + 0x24]
test rcx, rcx
je 0x140008481
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 7], r15
mov r8, qword [rbp - 9]
cmp r8, 8
jb 0x14000849b
inc r8
mov rdx, qword [rbp - 0x21]
lea rcx, [rbp - 0x21]
call fcn.140006620
mov eax, ebx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140009e60
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001cfdc
Capabilities:
Get geographical location

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, 0x20
mov edi, r9d
mov rsi, r8
mov ebp, edx
lea r9, [0x140036c28]
mov r14, rcx
lea r8, [0x140036c20]
lea rdx, str.GetLocaleInfoEx
mov ecx, 0xc
call fcn.14001ca68
mov rbx, rax
test rax, rax
je 0x14001d03f
mov rcx, rax
call qword [fcn.140005160]
mov r9d, edi
mov r8, rsi
mov edx, ebp
mov rcx, r14
call rbx
jmp 0x14001d059
xor edx, edx
mov rcx, r14
call fcn.14001d458
mov ecx, eax
mov r9d, edi
mov r8, rsi
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14001fcdc
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14001fb42
call fcn.140011930
mov dword [rax], 0x16
call fcn.140011324
mov eax, 0xffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14001fb24
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14001fb24
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x20]
shr ecx, 1
test cl, 1
je 0x14001fb74
lock or dword [rax + 0x14], 0x10
jmp 0x14001fb24
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14001fb91
mov rcx, qword [rbp + 0x20]
call fcn.14001f8e4
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x10], 1
jne 0x14001fba6
mov rcx, qword [rax]
mov sil, 1
mov r14b, byte [rcx]
jmp 0x14001fbac
xor sil, sil
xor r14b, r14b
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.14001c5c4
mov rdx, qword [rbp + 0x20]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1400287f0
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 2
ja 0x14001fbff
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x20]
and dword [rax + 0x10], 0
jmp 0x14001fb24
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14001fc6b
mov rcx, qword [rbp + 0x20]
call fcn.14001c5c4
cmp eax, 0xffffffff
je 0x14001fc52
mov rcx, qword [rbp + 0x20]
call fcn.14001c5c4
cmp eax, 0xfffffffe
je 0x14001fc52
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.14001c5c4
movsxd rdi, eax
lea r15, [0x140046380]
mov rcx, rbx
sar rdi, 6
call fcn.14001c5c4
and eax, 0x3f
shl rax, 6
add rax, qword [r15 + rdi*8]
jmp 0x14001fc59
lea rax, [0x140044430]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001fc6b
mov rax, qword [rbp + 0x20]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x20], 0x200
jne 0x14001fca1
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14001fc9d
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14001fc9d
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test sil, sil
je 0x14001fcbf
movzx edx, byte [rcx]
dec dword [rax + 0x10]
shl dx, 8
movzx ecx, r14b
or dx, cx
inc qword [rax]
jmp 0x14001fcca
movzx edx, word [rcx]
add dword [rax + 0x10], 0xfffffffe
add qword [rax], 2
movzx eax, dx
jmp 0x14001fb29
jmp 0x14001faf0
Function at 0x1418b0058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1418b01df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1418b0089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1418b006f
add dl, dl
jne 0x1418b0096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1418b00f6
xor eax, eax
add dl, dl
jne 0x1418b00a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1418b01ad
add dl, dl
jne 0x1418b00b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418b00c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418b00d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418b00dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1418b00ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1418b007e
mov eax, 1
add dl, dl
jne 0x1418b0106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418b0113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1418b00fb
sub eax, ebx
mov ebx, 1
jne 0x1418b014c
mov ecx, 1
add dl, dl
jne 0x1418b012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1418b013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1418b0123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1418b007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1418b0168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1418b0175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1418b015d
cmp eax, 0x7d00
jae 0x1418b019b
cmp eax, 0x500
jb 0x1418b0196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1418b007e
cmp eax, 0x7f
ja 0x1418b019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1418b007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1418b01d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1418b007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1858150
Capabilities:
Encode data using xor

Disassembly:
jmp 0x185815a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1858183
pop rbp
sub rbp, 0x33
sub rbp, 0x1458150
sub rsp, 0x20
jmp 0x18581a2
mov rax, 0x1458150
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x7e1aac74
xor byte [rax], dl
inc rax
dec rcx
jne 0x18581c1
jmp 0x18581d8
cmp al, 0xfd
popfq
invalid
Function at 0x140003dc0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400038a0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140003dff
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 [0x1400482a8]
jmp 0x140003e09
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x14002c0c0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x14002f1d0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140002da0
lea rcx, [rsp + 0x40]
call fcn.14002f190
movzx eax, al
test eax, eax
jne 0x14002f218
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14002f0c0
mov rax, qword [rsp + 0x70]
jmp 0x14002f3e9
lea rcx, [rsp + 0x40]
call fcn.140002e20
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14002f140
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.140002e20
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.14002ef90
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14002f2be
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14002f0c0
mov rax, qword [rsp + 0x80]
jmp 0x14002f3e9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.14001e480
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140002da0
lea rcx, [rsp + 0x48]
call fcn.140002de0
movzx eax, al
test eax, eax
jne 0x14002f325
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.140002dc0
lea rcx, [rsp + 0x40]
call fcn.14002f0c0
mov rax, qword [rsp + 0x88]
jmp 0x14002f3e9
lea rcx, [rsp + 0x48]
call fcn.140002e20
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140002e20
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.14002ef90
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14002f3bb
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.140002dc0
lea rcx, [rsp + 0x40]
call fcn.14002f0c0
mov rax, qword [rsp + 0xa0]
jmp 0x14002f3e9
lea rcx, [rsp + 0x48]
call fcn.140003350
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.140002dc0
lea rcx, [rsp + 0x40]
call fcn.14002f0c0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x140035d70
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140046560
sub rsp, rax
mov rax, qword [0x14005e008]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14005fc40]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140035f62
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140035eb6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140035eb6
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x140035e9b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140035e38
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140035f22
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140035f81
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x140035f5d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140035f81
jmp 0x140035e0e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400010b0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140035fa0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140046560
sub rsp, rax
mov rax, qword [0x14005e008]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14005fc40]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1400361ad
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x1400360f9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1400360f9
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x1400360d9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x140036068
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14003616d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400361cc
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x1400361a8
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400361cc
jmp 0x14003603e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400010b0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x14003bf80
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
lea rcx, [rsp + 0xe8]
call fcn.14002a740
lea rcx, [rsp + 0xb8]
call fcn.14002a740
lea rcx, [rsp + 0x88]
call fcn.14002a740
call fcn.14002a820
mov r8d, eax
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x130]
call fcn.14002a6f0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x14003c022
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x88]
call fcn.14002a7a0
lea rcx, [rsp + 0xb8]
call fcn.14002a7a0
lea rcx, [rsp + 0xe8]
call fcn.14002a7a0
mov eax, dword [rsp + 0x54]
jmp 0x14003c1c8
call fcn.14002a820
mov r8d, eax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x138]
call fcn.14002a6f0
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x14003c082
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x88]
call fcn.14002a7a0
lea rcx, [rsp + 0xb8]
call fcn.14002a7a0
lea rcx, [rsp + 0xe8]
call fcn.14002a7a0
mov eax, dword [rsp + 0x5c]
jmp 0x14003c1c8
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x168], 0
je 0x14003c108
call fcn.14002a820
mov r8d, eax
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x168]
call fcn.14002a6f0
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x14003c0f6
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x88]
call fcn.14002a7a0
lea rcx, [rsp + 0xb8]
call fcn.14002a7a0
lea rcx, [rsp + 0xe8]
call fcn.14002a7a0
mov eax, dword [rsp + 0x64]
jmp 0x14003c1c8
lea rcx, [rsp + 0x88]
call fcn.14002aa10
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xb8]
call fcn.14002aa10
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xe8]
call fcn.14002aa10
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x148]
mov r8, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x88]
call fcn.14002a7a0
lea rcx, [rsp + 0xb8]
call fcn.14002a7a0
lea rcx, [rsp + 0xe8]
call fcn.14002a7a0
mov eax, dword [rsp + 0x68]
add rsp, 0x128
ret