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

Disassembly:
push rbx
mov rbx, qword [rsp + 0x30]
mov r10, qword [rsp + 0x38]
mov r11, rcx
movzx ecx, byte [rdx]
cmp cl, 0xb0
je 0x1407305f8
cmp cl, 0x8a
je 0x140730640
xor eax, eax
cmp cl, 0xb1
je 0x140730620
pop rbx
ret
movzx eax, byte [rdx + 2]
cmp al, 0xb1
je 0x140730680
mov rcx, rdx
cmp al, 0x8a
je 0x140730660
mov eax, dword [rdx + 0x2c]
mov qword [rbx], rcx
add eax, r8d
pop rbx
ret
movsxd r8, r8d
mov rcx, r11
shl r8, 5
add r8, qword [rdx + 0x20]
mov rdx, qword [r8 + 8]
mov r8, r10
mov qword [rbx], rdx
pop rbx
jmp fcn.14072f850
mov rdx, qword [rdx + 0x20]
movsxd rax, r8d
shl rax, 5
add rax, qword [rdx + 0x20]
mov rax, qword [rax + 8]
mov qword [rbx], rax
lea eax, [r8 + r9]
pop rbx
ret
mov rax, qword [rdx + 0x20]
mov r9, qword [rax + 0x20]
cmp dword [r9], 1
jle 0x14073060b
movsxd rax, r8d
shl rax, 5
mov rcx, qword [r9 + rax + 8]
jmp 0x14073060b
mov rcx, qword [rdx + 0x20]
cmp dword [rcx], 1
jle 0x14073069a
movsxd rax, r8d
shl rax, 5
mov rcx, qword [rcx + rax + 8]
jmp 0x14073060b
mov rcx, rdx
jmp 0x14073060b
Function at 0x140771f60
Capabilities:
Reference sql statements

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rax, str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
movsxd rdi, edx
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov rbp, r8
cmp qword [rcx + rdi*8 + 0x28], 0
mov rsi, rdi
lea r12, [rdi + 4]
mov r13, r9
lea rax, str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
mov qword [rsp + 0x48], rax
je 0x140772000
mov ecx, dword [rbx + 0x40]
test ecx, ecx
je 0x140771fb8
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rbx + rdi*8 + 0x28]
mov r8, rbp
mov edx, 1
mov rcx, r12
call fcn.1406e4490
mov rcx, r12
call fcn.140748990
cmp eax, 0x65
je 0x140772020
cmp eax, 0x64
je 0x140772050
mov rcx, r12
call fcn.140717830
mov edx, dword [rbx + 0x40]
test edx, edx
jne 0x140771fa6
mov dword [rbx + 0x40], eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rdx, qword [rsp + rdi*8 + 0x40]
mov r9, qword [rcx + 0x10]
mov r8, qword [rcx + 8]
call fcn.140766740
mov qword [rbx + r12*8 + 8], rax
jmp 0x140771f9f
test esi, esi
lea rdx, str.__parent
mov r9, r13
mov r8, rbp
lea rax, str.__rowid
mov rcx, rbx
cmove rax, rdx
lea rdx, str.Mapping___lld_____lld__missing_from__s_table
mov qword [rsp + 0x20], rax
call fcn.140709820
jmp 0x140771fdf
xor edx, edx
mov rcx, r12
call fcn.1406b3b10
mov r9, rax
cmp rax, r13
je 0x140771fdf
test esi, esi
lea rdx, str.__parent
mov r8, rbp
mov rcx, rbx
lea rax, str.__rowid
mov qword [rsp + 0x30], r13
cmove rax, rdx
mov qword [rsp + 0x28], rbp
lea rdx, str.Found___lld_____lld__in__s_table__expected___lld_____lld_
mov qword [rsp + 0x20], rax
call fcn.140709820
jmp 0x140771fdf
Function at 0x14078e770
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 fcn.140799ad0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140799ad0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14078e7e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x140c44174]
mov r12, rcx
test ebx, ebx
jle 0x14078e910
mov rax, qword [0x140c44178]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14078e82c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14078e8b3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14078e810
mov rcx, r12
call fcn.14078f180
mov rsi, rax
test rax, rax
je 0x14078e932
mov rax, qword [0x140c44178]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14078f2b0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140c44178]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.DLL_VirtualQuery]
test rax, rax
je 0x14078e917
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14078e8ac
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14078e8c0
add dword [0x140c44174], 1
add rsp, 0x50
pop rbx
pop rsi
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 rbx, qword [0x140c44178]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
test eax, eax
jne 0x14078e8ac
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14078e770
nop dword [rax]
xor ebx, ebx
jmp 0x14078e837
mov rax, qword [0x140c44178]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14078e770
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14078e770
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14078edf0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140c441e0]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x140c441c0]
test rbx, rbx
je 0x14078ee44
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 0x14078ee3b
test r12, r12
je 0x14078ee3b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14078ee20
lea rcx, [0x140c441e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
Function at 0x14078f180
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140bcd9c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14078f1a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14078f1a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14078f1a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14078f1f5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14078f1ec
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14078f1a0
add rax, 0x28
cmp rax, r9
jne 0x14078f1d8
xor eax, eax
ret

Function at 0x14078f200
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140bcd9c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14078f220
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14078f228
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x14078f220
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x14078f2b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140bcd9c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14078f2d0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14078f2d8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140790e00
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140bcda40]
mov rax, qword [rsi]
test rax, rax
je 0x140790e90
cmp qword [rax + 0x30], 0
jne 0x140790eb0
lea rbx, [0x1407d8148]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140790e60
cmp qword [rax + 0x30], 0
jne 0x140790e80
lea rdx, [0x1407d8148]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x140799e10
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140795d00
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140790e42
test rax, rax
jne 0x140790e80
call fcn.140795d00
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140790e50
call fcn.140795d00
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140790e20
test rax, rax
jne 0x140790eb0
call fcn.140795d00
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140790e2b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x140790ec0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140790fd2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140790faa
add rax, 1
cmp rax, 0x6b
je 0x140790fc7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140790fa0
cmp edx, 0x6a
je 0x140790fc7
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140790fbb
Function at 0x1407919e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [0x140bcda40]
mov rax, qword [rsi]
test rax, rax
je 0x140791bd0
cmp qword [rax + 0x28], 0
jne 0x140791bb8
lea rcx, [0x140c44298]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x140791bc5
call fcn.140790ff0
mov rax, qword [rsi]
test rax, rax
je 0x140791a60
cmp qword [rax + 0x30], 0
jne 0x140791a80
lea rdx, [0x1407d8148]
mov qword [rax + 0x30], rdx
mov rax, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov r12, rax
test rax, rax
je 0x140791a94
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140795d00
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140791a30
test rax, rax
jne 0x140791a80
call fcn.140795d00
nop dword [rax]
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov r12, rax
test rax, rax
jne 0x140791a4e
call fcn.140790b30
cmp qword [0x140c48050], 0
mov rbx, rax
je 0x140791a4e
test rax, rax
je 0x140791a4e
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.DLL_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.140797ba0
cmp eax, 1
je 0x140791c3d
mov rbp, qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_GetCurrentThread]
mov r12, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_DuplicateHandle]
test eax, eax
je 0x140799e16
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.DLL_GetThreadPriority]
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [rsi]
test rax, rax
je 0x140791c18
cmp qword [rax + 0x30], 0
je 0x140791c00
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
test eax, eax
je 0x140799e16
mov r12, rbx
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x140791a1c
mov rax, qword [rsi]
jmp 0x140791a29
call fcn.140795d00
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x140791a08
test rax, rax
jne 0x140791bb8
call fcn.140795d00
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x140791a1c
jmp 0x140791a21
lea rdx, [0x1407d8148]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x140791b8e
call fcn.140795d00
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140791c00
test rax, rax
jne 0x140791b8a
call fcn.140795d00
jmp 0x140791b8a
call fcn.140790ec0
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x140bcda40]
mov rdx, qword [rax]
lea rax, [0x140c442a8]
mov qword [rdx + 0x10], rax
ret
Function at 0x140795b80
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x140795ba0
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.DLL_FormatMessageA]
test eax, eax
jne 0x140795be8
call qword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
test eax, eax
je 0x140795b94
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.DLL_LocalFree]
jmp 0x140795bd5
Function at 0x140795d00
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
lea rdx, [0x140c44380]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x140795d23
lea rax, [0x140c44388]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x140795d6b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140795d68
lea rax, [0x140c443c0]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x140795d9b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140795d98
xor ecx, ecx
mov byte [0x140c443d9], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x140c443e2], rdx
lea r8, [0x140c44380]
lea rbx, [0x140c443da]
mov qword [0x140c443f2], rdx
mov qword [0x140c44402], rdx
mov qword [0x140c44412], rdx
xor edx, edx
mov qword [0x140c443da], rax
mov qword [0x140c443ea], rax
mov qword [0x140c443fa], rax
mov qword [0x140c4440a], rax
mov byte [0x140c4441a], 0
call qword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x140795f76
lea rcx, [0x140c443c0]
call qword [sym.imp.KERNEL32.DLL_FindAtomA]
test ax, ax
jne 0x140795ec1
lea rsi, [0x140c442c0]
lea r8, [0x140c4441a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x140795e6d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140795e60
lea rcx, [0x140c443c0]
call qword [sym.imp.KERNEL32.DLL_AddAtomA]
test ax, ax
je 0x140795f63
lea rcx, [0x140795c10]
mov qword [0x140c442c0], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rax, qword [0x140c442c0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x140c443c0]
movzx ecx, ax
call qword [sym.imp.KERNEL32.DLL_GetAtomNameA]
lea r8, [0x140c4441a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140795f96
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140795f13
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140795f00
mov rax, rdx
mov qword [0x140c442c0], rax
lea rsi, [0x140c442c0]
jmp 0x140795f39
cmp rdx, rsi
je 0x140795e9f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140795f30
cmp rdx, rsi
je 0x140795e9f
mov qword [rdx + 8], rsi
lea rcx, [0x140795c10]
call sub.msvcrt.dll__onexit
jmp 0x140795e9f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.140795b80
xor eax, eax
jmp 0x140795eb8
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.140795b80
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.140795b80
xor eax, eax
jmp 0x140795f1f
Function at 0x1400020b0
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 r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x1400021ab
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x1400021b3
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400021ea
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x1400021c0
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x140002215
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x14000223b
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x140002220
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
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
pop r12
ret

Function at 0x14000a340
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x14000a3e5
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14000a39d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14000a390
cmp rcx, 1
jb 0x14000a416
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14000a3b3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14000fb6c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14000a380
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000b750
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14000f830
int3
Function at 0x14000a4a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002e008]
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 0x14000a4e5
xor al, al
jmp 0x14000a532
cmp word [rbx], 0
je 0x14000a4fd
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a4f0
cmp word [rsp + 0x30], 0
je 0x14000a52b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a553
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a510
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b750
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000f830
int3
Function at 0x14000ace0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001f830
sub rsp, rax
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002fd74]
lea rsi, [0x140034db0]
mov rdi, rcx
test r11d, r11d
jne 0x14000ad59
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000a560
test al, al
je 0x14000ae3f
lea rcx, [rsp + 0x20]
call fcn.140013e7c
movsxd r11, dword [0x14002fd74]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002fd74], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000ad94
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000ad84
add rax, 2
test ecx, ecx
jne 0x14000ad70
test edx, edx
je 0x14000adb7
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ad64
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000ada0
cmp rax, 2
jne 0x14000adbb
cmp word [rdi + 2], 0x3a
jne 0x14000adbb
mov al, 1
jmp 0x14000ae1e
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000ade8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000ade8
mov bl, 1
jmp 0x14000adec
test bl, bl
je 0x14000ae13
cmp dword [0x14002fd74], 0x400
jge 0x14000ae13
mov rcx, rdi
call fcn.140013e7c
movsxd rdx, dword [0x14002fd74]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002fd74], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000b750
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str.HOME
call fcn.14000ab80
int3
Function at 0x14000af60
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002fd78]
test rcx, rcx
je 0x14000af9b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000af8e
mov rcx, qword [0x14002fd78]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002fd78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140038db2], 0
je 0x14000b08e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140029868]
mov qword [rsp + 0x80], rsi
lea rsi, [0x1400325b0]
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 0x14000b06f
test al, 0x10
je 0x14000b06f
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 0x14000b015
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