joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402abc30
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1e8
mov rsi, rcx
mov rdi, qword [rdx]
mov rbx, qword [rdx + 8]
movzx ebp, word [rdx + 0x10]
mov rax, qword [0x1403ce1a0]
cmp rax, 3
jne 0x140155ec8
cmp rbx, 0x17f
ja 0x140155eda
lea rcx, [rsp + 0x68]
mov rdx, rdi
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x68], 0
lea r8, [rbx + 1]
cmp rbx, 0xe
ja 0x140155e19
lea rcx, [rbx + 1]
xor eax, eax
xor edx, edx
nop
cmp byte [rsp + rdx + 0x68], 0
je 0x140155e2c
inc rdx
cmp rcx, rdx
jne 0x140155e00
mov rdx, r8
test rax, rax
jne 0x140155e36
jmp 0x140155e92
lea rdx, [rsp + 0x68]
xor ecx, ecx
call fcn.14003bb90
test rax, rax
jne 0x140155e36
jmp 0x140155e92
mov eax, 1
test rax, rax
je 0x140155e92
cmp rdx, rbx
jne 0x140155e92
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x68]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x140155ea6
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x140155eb9
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140155ebc
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
add rsp, 0x1e8
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.1402abbd0
cmp rbx, 0x17f
jbe 0x140155dd7
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
mov r9d, ebp
add rsp, 0x1e8
pop rbx
pop rbp
pop rdi
pop rsi
jmp 0x1402abc30
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.140030030
mov r8, qword [rsp + 0x40]
test r8, r8
je 0x1402abc90
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
cmp qword [rsp + 0x38], 0
je 0x1402abd1f
mov rcx, qword [0x1403ce198]
xor edx, edx
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.kernel32.dll_HeapFree]
mov rdi, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1402abcef
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x1402abd02
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bx
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test r14, r14
je 0x1402abd1f
mov rcx, qword [0x1403ce198]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140002060
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rdi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov r9, rcx
movabs rbp, 0xc2b2ae3d27d4eb4f
movabs rsi, 0x9e3779b185ebca87
movabs r14, 0x27d4eb2f165667c5
movabs r15, 0x7a1435883d4d519d
cmp rdi, 0x20
jb 0x140002159
mov r8, qword [r9 + 0x18]
mov rdx, qword [rcx + 8]
mov rax, r8
mov r9, qword [r9 + 0x20]
mov rcx, qword [rcx + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rcx
rol rax, 7
add r10, rax
mov rax, rdx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rdx, rbp
imul rcx, rbp
imul r8, rbp
imul r9, rbp
rol rdx, 0x1f
imul rdx, rsi
rol rcx, 0x1f
xor r10, rdx
rol r8, 0x1f
imul r10, rsi
imul rcx, rsi
imul r8, rsi
sub r10, r15
rol r9, 0x1f
xor r10, rcx
imul r10, rsi
imul r9, rsi
sub r10, r15
xor r10, r8
imul r10, rsi
sub r10, r15
xor r10, r9
imul r10, rsi
add rax, r10
add rax, rdi
jmp 0x140002161
lea rax, [rdi + r14]
add rax, qword [rcx + 0x18]
lea rdx, [r11 + 8]
cmp rdx, rbx
ja 0x14000219a
nop word [rax + rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, rbp
add r11, 8
rol rcx, 0x1f
imul rcx, rsi
xor rax, rcx
rol rax, 0x1b
imul rax, rsi
sub rax, r15
cmp rdx, rbx
jbe 0x140002170
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400021c5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rsi
xor rax, rcx
rol rax, 0x17
imul rax, rbp
add rax, r8
cmp r11, rbx
jae 0x1400021eb
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r14
xor rax, rcx
rol rax, 0xb
imul rax, rsi
cmp r11, rbx
jb 0x1400021d0
mov rbx, qword [rsp + 0x18]
mov rcx, rax
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
shr rcx, 0x21
xor rcx, rax
imul rcx, rbp
mov rbp, qword [rsp + 0x20]
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
ret

Function at 0x14000a500
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x14000a5b1
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.14000ffc0
cmp rax, 1
jne 0x14000a5e7
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14000a58d
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x14000a580
cmp rcx, 1
jb 0x14000a5e7
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14000a550
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000c4c0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14000fc7c
int3
Function at 0x14000a670
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a6b5
xor al, al
jmp 0x14000a702
cmp word [rbx], 0
je 0x14000a6cd
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a6c0
cmp word [rsp + 0x30], 0
je 0x14000a6fb
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a723
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a6e0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000c4c0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000fc7c
int3
Function at 0x14000b580
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x140030d18]
test rcx, rcx
je 0x14000b5bb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b5ae
mov rcx, qword [0x140030d18]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140030d18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140030d28], 0
je 0x14000b6ae
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x14002a9e8]
mov qword [rsp + 0x80], rsi
lea rsi, [0x140043550]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b68f
test al, 0x10
je 0x14000b68f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b635
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000cd80
Capabilities:
Parse pe header

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

Function at 0x14000fa88
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 0x14000faf7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000faf7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000faf7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000faf7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000faf7
cmp dword [rcx + 0x84], 0xe
jbe 0x14000faf7
cmp dword [rcx + 0xf8], 0
je 0x14000faf7
mov ecx, ebx
call fcn.14000fb9c
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.14000f990
nop
cmp dword [rbp + 0x20], 0
jne 0x14000fb58
call fcn.14001476c
cmp eax, 1
jne 0x14000fb48
xor dl, dl
jmp 0x14000fb52
call fcn.140014738
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14000fb63
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000fb6c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000fa88

Function at 0x14000fc70
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 0x14000faf7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000faf7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000faf7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000faf7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000faf7
cmp dword [rcx + 0x84], 0xe
jbe 0x14000faf7
cmp dword [rcx + 0xf8], 0
je 0x14000faf7
mov ecx, ebx
call fcn.14000fb9c
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.14000f990
nop
cmp dword [rbp + 0x20], 0
jne 0x14000fb58
call fcn.14001476c
cmp eax, 1
jne 0x14000fb48
xor dl, dl
jmp 0x14000fb52
call fcn.140014738
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14000fb63
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000fb6c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000fa88
Function at 0x140019468
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 0x1400194ef
mov rsi, rbx
cmp word [rax], bp
je 0x1400194ae
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140019498
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140019494
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400169a0
mov rdi, rax
test rax, rax
je 0x1400194dc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140020680
mov rbp, rdi
xor ecx, ecx
call fcn.140015980
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 0x14001ba10
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001ba26
mov al, 1
jmp 0x14001ba92
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001ba37
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001ba90
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019c0c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001ba90
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001ba90
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001ba90
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001ba92
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001fed0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001fef8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001fef8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002930
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
sub rsp, 0x28
call fcn.1400123e0
mov r15, qword [rsp + 0x28]
cmp r15, 1
jne 0x14000296c
push qword [0x14002045c]
pop rcx
call fcn.140007170
and rax, rax
je 0x14000296c
push qword [0x14002045c]
pop rcx
call fcn.14000720c
push qword [0x14002050c]
pop rcx
call fcn.14000da6c
push qword [0x1400204ec]
pop rcx
call fcn.14000da6c
call fcn.140004907
push qword [0x1400204ac]
pop rcx
call fcn.14000da6c
push qword [0x140020484]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
push qword [0x14002051c]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
mov rax, qword [rsp + 0x40]
mov qword [0x140020454], rax
jmp 0x14000123b

Function at 0x1400029c8
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
push rbp
push r15
mov rax, 0x14
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x1400029e1
sub rsp, 0x28
call fcn.1400123e0
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.1400122f0
add rsp, 0x10
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x30]
sub rsp, 0x10
call fcn.1400122f0
add rsp, 0x10
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x38]
sub rsp, 0x10
call fcn.1400122f0
add rsp, 0x10
lea rax, [rsp + 0x40]
lea rbp, [rsp + 0x40]
mov dword [rbp], 0x70
mov dword [rbp + 4], 0x140
mov dword [rbp + 0x30], 0
movabs rax, str.open
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x10], rax
mov rax, qword [rsp + 0x28]
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x18], rax
mov rax, qword [rsp + 0x38]
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x20], rax
mov rax, qword [rsp + 0x30]
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x28], rax
lea rax, [rsp + 0x40]
mov rax, rax
push rax
pop rcx
call sub.SHELL32.DLL_ShellExecuteExW
mov qword [rsp + 0xb0], rax
push 0x19
pop rcx
call fcn.140007364
lea rax, [rsp + 0xb8]
mov rax, rax
push rax
lea rbp, [rsp + 0x48]
push qword [rbp + 0x68]
pop rcx
pop rdx
call sub.KERNEL32.dll_GetExitCodeProcess
and rax, rax
je 0x140002afa
mov r15, qword [rsp + 0xb8]
cmp r15, 0x103
je 0x140002afa
jmp 0x140002afc
jmp 0x140002abc
mov rax, qword [rsp + 0xb8]
jmp 0x140002b09
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.140012360
add rsp, 0x28
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.140012360
add rsp, 0x28
mov rcx, qword [rsp + 0x40]
sub rsp, 0x28
call fcn.140012360
add rsp, 0x28
pop rax
add rsp, 0xc8
pop r15
pop rbp
ret
Function at 0x14000350f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.1400123e0
push qword [rsp + 0x48]
push qword [rsp + 0x48]
pop rcx
pop rdx
call sub.KERNEL32.dll_LoadResource
mov qword [rsp + 0x28], rax
push qword [rsp + 0x48]
push qword [rsp + 0x48]
pop rcx
pop rdx
call sub.KERNEL32.dll_SizeofResource
mov qword [0x14002046c], rax
push qword [0x14002046c]
pop rcx
call fcn.14000c9e0
mov qword [rsp + 0x30], rax
push qword [0x14002046c]
push qword [rsp + 0x38]
push qword [rsp + 0x38]
pop rcx
pop rdx
pop r8
call fcn.14000cb10
push qword [rsp + 0x28]
pop rcx
call sub.KERNEL32.dll_FreeResource
mov rax, qword [rsp + 0x30]
jmp 0x14000358d
add rsp, 0x38
ret

Function at 0x1400047e2
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
xor rax, rax
push rax
push rax
push rax
push rax
sub rsp, 0x28
call fcn.1400123e0
mov rcx, qword [rsp + 0x70]
call fcn.140006a58
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.1400122f0
add rsp, 0x10
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
sub rsp, 0x10
call fcn.1400122f0
add rsp, 0x10
push rcx
sub rsp, 0x28
call fcn.1400121c0
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.1400121c0
add rsp, 0x28
pop rcx
push rax
push 0x800
pop rcx
pop rdx
sub rsp, 0x20
call fcn.140008170
add rsp, 0x28
lea rcx, [rsp + 0x40]
pop rdx
call fcn.140012210
push 0x800
push qword [rsp + 0x40]
pop rcx
pop rdx
call sub.KERNEL32.dll_GetSystemDirectoryW
push qword [rsp + 0x38]
pop rcx
call sub.SHLWAPI.DLL_PathAddBackslashW
mov rcx, qword [rsp + 0x38]
push rcx
sub rsp, 0x28
call fcn.1400121c0
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.140012450
add rsp, 0x28
pop rax
push rax
call fcn.1400125a0
pop rdx
add rax, rdx
jmp 0x1400048ca
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.140012360
add rsp, 0x28
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.140012360
add rsp, 0x28
mov rcx, qword [rsp + 0x40]
sub rsp, 0x28
call fcn.140012360
add rsp, 0x28
pop rax
add rsp, 0x48
ret
Function at 0x140004907
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.1400123e0
mov r15, qword [0x14002048c]
cmp r15, 1
jne 0x1400049d6
push qword [0x14002057c]
pop rcx
call fcn.14000d5b4
mov r15, rax
and r15, r15
jle 0x14000496c
mov rcx, qword [0x14002057c]
call fcn.14000d5bc
mov rcx, qword [0x14002057c]
call fcn.14000d5d0
or rax, rax
je 0x14000496c
mov rbp, qword [0x140020584]
push qword [rbp + 0x10]
pop rcx
call fcn.14000da6c
jmp 0x140004949
push qword [0x14002056c]
pop rcx
call fcn.14000d5b4
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x1400049d6
push 5
push 0
push 1
push qword [0x14002056c]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009070
mov rcx, qword [0x14002056c]
call fcn.14000d5bc
mov rcx, qword [0x14002056c]
call fcn.14000d5d0
or rax, rax
je 0x1400049d6
mov rbp, qword [0x140020574]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x1400049b3
mov rax, 1
jmp 0x1400049e2
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006a58
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x14000720c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14000719c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x140007248
cmp qword [rbx + 0x18], rdi
je 0x14000724f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000723f
jmp 0x140007269
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400205b8]
call fcn.140011c68
lea rcx, [0x140021170]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add byte [rax], al
stc
inc dword [rax]
add cl, bh
inc dword [rax]
add cl, bh
inc dword [rax]
add cl, bh
inc dword [rax]
add cl, bh
inc dword [rax]
add cl, bh
inc dword [rax]
add byte [rax], al
stc
add byte [rax], al
stc
inc dword [rax]
add cl, bh
inc dword [rax]
add cl, bh
inc dword [rax]
add cl, bh
inc dword [rax]
add cl, bh
inc dword [rax]
add cl, bh
inc dword [rax]
add cl, bh
inc dword [rax]
add byte [rax], al
stc
add byte [rax], al
stc
inc dword [rax]
add cl, bh
inc dword [rax]
add cl, bh
inc dword [rax]
add cl, bh
inc dword [rax]
add cl, bh
inc dword [rax]
add cl, bh
stc
stc
inc dword [rax]
add cl, bh
inc dword [rax]
add cl, bh
inc dword [rax]
add cl, bh
inc dword [rax]
add bl, bh
inc dword [rax]
add byte [rax], al
cli
add byte [rax], al
cli
inc dword [rax]
add cl, bh
inc dword [rax]
add cl, bh
inc dword [rax]
add cl, bh
inc dword [rax]
add byte [rax], al
stc
add byte [rax], al
stc
inc dword [rax]
add al, bh
inc dword [rax]
add byte [rcx], al
idiv bh
add byte [rcx], al
idiv bh
add byte [rcx], al
idiv bh
add byte [rcx], al
idiv bh
add byte [rax], al
sti
add byte [rcx], al
idiv bh
add byte [rcx], al
idiv bh
add byte [rcx], al
idiv bh
add byte [rcx], al
idiv bh
add byte [rax], al
sti
inc dword [rax]
add bl, bh
sti
sti
inc dword [rax]
add ebx, esi
inc dword [rax]
invalid
jmp 0x14003f6b3
inc dword [rax]
add al, 0xec
inc dword [rax]
add esi, ebx
inc dword [rax]
add al, 0xf8
inc dword [rcx]
add edx, edi
inc dword [rdx + rax]
invalid
Function at 0x140008010
Capabilities:
Get thread local storage value

Disassembly:
mov r10, rcx
test rcx, rcx
je 0x140008041
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140008020
mov ecx, 1
mov r9d, r8d
sub ecx, edx
add eax, ecx
mov rcx, r10
mov r8d, eax
jmp 0x140008050
mov ecx, r8d
jmp fcn.140012810
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov ebp, r8d
test r8d, r8d
mov edi, r9d
mov esi, edx
mov rbx, rcx
cmovs ebp, r15d
call fcn.140012630
mov edx, edi
mov ecx, ebp
mov r14d, eax
call fcn.1400126d0
mov rdi, rax
test r14d, r14d
je 0x1400080a1
mov ecx, r14d
call fcn.140012850
mov rbx, rax
test rbx, rbx
je 0x1400080e7
cmp esi, 1
jle 0x1400080c1
nop dword [rax + rax]
cmp word [rbx], r15w
je 0x1400080e7
dec esi
add rbx, 2
cmp esi, 1
jg 0x1400080b0
movzx eax, word [rbx]
test ax, ax
je 0x1400080e7
sub rbx, rdi
nop dword [rax]
test ebp, ebp
je 0x1400080e7
mov word [rdi], ax
movzx eax, word [rbx + rdi + 2]
add rdi, 2
dec ebp
test ax, ax
jne 0x1400080d0
mov ecx, ebp
call fcn.140012900
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov word [rdi], r15w
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140008110
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov esi, 0x40
mov ecx, esi
call fcn.1400126d0
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.14001671c
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x140008140
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140012900