joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1403e8b40
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
lea rdx, [0x1407dbfe0]
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 0x1403e8b63
lea rax, [0x1407dbfe8]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x1403e8bab
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x1403e8ba8
lea rax, [0x1407dc020]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x1403e8bdb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x1403e8bd8
xor ecx, ecx
mov byte [0x1407dc039], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x1407dc042], rdx
lea r8, [0x1407dbfe0]
lea rbx, [0x1407dc03a]
mov qword [0x1407dc052], rdx
mov qword [0x1407dc062], rdx
mov qword [0x1407dc072], rdx
xor edx, edx
mov qword [0x1407dc03a], rax
mov qword [0x1407dc04a], rax
mov qword [0x1407dc05a], rax
mov qword [0x1407dc06a], rax
mov byte [0x1407dc07a], 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 0x1403e8db6
lea rcx, [0x1407dc020]
call qword [sym.imp.KERNEL32.DLL_FindAtomA]
test ax, ax
jne 0x1403e8d01
lea rsi, [0x1407dbf20]
lea r8, [0x1407dc07a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x1403e8cad
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x1403e8ca0
lea rcx, [0x1407dc020]
call qword [sym.imp.KERNEL32.DLL_AddAtomA]
test ax, ax
je 0x1403e8da3
lea rcx, [0x1403e8a50]
mov qword [0x1407dbf20], 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 [0x1407dbf20]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x1407dc020]
movzx ecx, ax
call qword [sym.imp.KERNEL32.DLL_GetAtomNameA]
lea r8, [0x1407dc07a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x1403e8dd6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x1403e8d53
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x1403e8d40
mov rax, rdx
mov qword [0x1407dbf20], rax
lea rsi, [0x1407dbf20]
jmp 0x1403e8d79
cmp rdx, rsi
je 0x1403e8cdf
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x1403e8d70
cmp rdx, rsi
je 0x1403e8cdf
mov qword [rdx + 8], rsi
lea rcx, [0x1403e8a50]
call sub.msvcrt.dll__onexit
jmp 0x1403e8cdf
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.1403e89c0
xor eax, eax
jmp 0x1403e8cf8
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.1403e89c0
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.1403e89c0
xor eax, eax
jmp 0x1403e8d5f
Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x140009008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x140009008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140009008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret

Function at 0x14017c9f1
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 0x2d], r8
push word [rsp + 0x1f]
push qword [rsp + 0x19]
mov byte [rsp + 0x15], dl
push qword [rsp + 0x17]
jmp 0x14017c9d1
Function at 0x14000269a
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
sub rsp, 0x38
mov rsi, rcx
mov rcx, rdx
mov edx, 1
mov r9, rsi
mov rdi, r8
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
cmp rdi, rax
je 0x1400026cd
mov rcx, rsi
mov qword [rsp + 0x28], rax
call fcn.140002511
mov rax, qword [rsp + 0x28]
add rsp, 0x38
pop rsi
pop rdi
ret

Function at 0x140002c2a
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rcx, rdx
mov edx, 1
mov r9, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rbx
mov qword [rsp + 0x28], rax
call fcn.140002511
mov rax, qword [rsp + 0x28]
add rsp, 0x30
pop rbx
ret

Function at 0x140002f23
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rsi, rcx
mov rbx, rdx
je 0x140002f42
mov rcx, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp 0x1400208f8

Function at 0x140004c0f
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov qword [rsp + 0x28], rdx
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x28]
mov rcx, rsi
mov edx, 1
mov rbx, rax
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp 0x1400208f8

Function at 0x140004c4e
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
cmp qword [0x14002eba8], 0
jne 0x140004c66
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.140004c0f
lea rsi, [rsp + 0x20]
mov rdx, rcx
mov rcx, rsi
call fcn.140004b79
mov rbx, qword [rsp + 0x28]
mov rcx, rsi
call qword [0x14002eba8]
test rbx, rbx
je 0x140004c97
test byte [rbx + 7], 0x40
jne 0x140004c97
mov rcx, rbx
call fcn.140004350
cmp byte [0x14002eb80], 0
je 0x140004cc7
mov rax, qword [0x14002ec08]
xor r8d, r8d
mov byte [0x14002eb80], 0
lea rcx, [0x14002ec08]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.140004bdb
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x140005b44
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
xor ebx, ebx
lea r12, [rsp + 0x20]
mov rsi, rcx
mov rdi, rdx
cmp rbx, rdi
mov ecx, 1
jl 0x140005ba1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x14002247b]
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp 0x1400208f8
call rbp
xor r8d, r8d
mov rdx, r12
mov rcx, rax
mov rax, rbx
shl rax, 4
movups xmm0, xmmword [rsi + rax]
movaps xmmword [rsp + 0x20], xmm0
call fcn.140005a92
cmp byte [0x14002eb80], 0
jne 0x140005bcf
inc rbx
jmp 0x140005b62
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
jmp qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
Function at 0x14000a4e0
Capabilities:
Hash data using murmur3

Disassembly:
push rsi
push rbx
xor esi, esi
xor ebx, ebx
mov rax, rdx
mov r8, rdx
mov r11, rcx
cqo
mov ecx, 4
idiv rcx
mov rax, r8
sub rax, rdx
mov rdx, qword [0x140026910]
mov r10b, byte [rdx]
cmp rax, rsi
jg 0x14000a522
mov rax, r8
mov ecx, 4
add r11, rsi
cqo
idiv rcx
xor ecx, ecx
jmp 0x14000a55b
mov edx, dword [r11 + rsi]
add rsi, 4
imul edx, edx, 0xcc9e2d51
rol edx, 0xf
test r10b, r10b
jne 0x14000a59d
imul edx, edx, 0x1b873593
xor edx, ebx
rol edx, 0xd
lea edx, [rdx + rdx*4]
lea ebx, [rdx - 0x19ab949c]
jmp 0x14000a509
dec rdx
shl ecx, 8
movzx eax, byte [r11 + rdx]
or ecx, eax
test rdx, rdx
jg 0x14000a54e
imul eax, ecx, 0xcc9e2d51
rol eax, 0xf
test r10b, r10b
jne 0x14000a59d
imul eax, eax, 0x1b873593
xor ebx, r8d
xor eax, ebx
mov edx, eax
shr edx, 0x10
xor edx, eax
imul edx, edx, 0x85ebca6b
mov eax, edx
shr eax, 0xd
xor eax, edx
imul eax, eax, 0xc2b2ae35
mov r9d, eax
shr r9d, 0x10
xor r9d, eax
mov rax, r9
pop rbx
pop rsi
ret
mov rdx, qword [rcx]
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x14000a5b3
add rcx, 8
jmp 0x14000a4e0

Function at 0x14000a5a3
Capabilities:
Hash data using murmur3

Disassembly:
push rsi
push rbx
xor esi, esi
xor ebx, ebx
mov rax, rdx
mov r8, rdx
mov r11, rcx
cqo
mov ecx, 4
idiv rcx
mov rax, r8
sub rax, rdx
mov rdx, qword [0x140026910]
mov r10b, byte [rdx]
cmp rax, rsi
jg 0x14000a522
mov rax, r8
mov ecx, 4
add r11, rsi
cqo
idiv rcx
xor ecx, ecx
jmp 0x14000a55b
mov edx, dword [r11 + rsi]
add rsi, 4
imul edx, edx, 0xcc9e2d51
rol edx, 0xf
test r10b, r10b
jne 0x14000a59d
imul edx, edx, 0x1b873593
xor edx, ebx
rol edx, 0xd
lea edx, [rdx + rdx*4]
lea ebx, [rdx - 0x19ab949c]
jmp 0x14000a509
dec rdx
shl ecx, 8
movzx eax, byte [r11 + rdx]
or ecx, eax
test rdx, rdx
jg 0x14000a54e
imul eax, ecx, 0xcc9e2d51
rol eax, 0xf
test r10b, r10b
jne 0x14000a59d
imul eax, eax, 0x1b873593
xor ebx, r8d
xor eax, ebx
mov edx, eax
shr edx, 0x10
xor edx, eax
imul edx, edx, 0x85ebca6b
mov eax, edx
shr eax, 0xd
xor eax, edx
imul eax, eax, 0xc2b2ae35
mov r9d, eax
shr r9d, 0x10
xor r9d, eax
mov rax, r9
pop rbx
pop rsi
ret
mov rdx, qword [rcx]
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x14000a5b3
add rcx, 8
jmp 0x14000a4e0
Function at 0x14000a7db
Capabilities:
Link many functions at runtime

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, qword [0x140026910]
mov r13, qword [rdx]
mov r12, qword [rdx + 8]
mov rbp, qword [r8]
mov rsi, qword [r8 + 8]
test rcx, rcx
je 0x14000a838
lea rdx, [0x140022ea0]
test r13, r13
je 0x14000a812
lea rdx, [r12 + 8]
mov qword [rsp + 0x28], rcx
call sub.KERNEL32.dll_GetProcAddress
cmp byte [rbx], 0
jne 0x14000a8bf
test rax, rax
jne 0x14000a8bf
test rbp, rbp
mov rcx, qword [rsp + 0x28]
jg 0x14000a844
cmp qword [0x14002f018], 0
jne 0x14000a86a
jmp 0x14000a859
lea rdx, [rsi + 8]
call sub.KERNEL32.dll_GetProcAddress
cmp byte [rbx], 0
jne 0x14000a8bf
test rax, rax
je 0x14000a838
jmp 0x14000a8bf
call fcn.140008046
cmp byte [rbx], 0
jne 0x14000a871
mov qword [0x14002f018], rax
mov rdi, qword [0x14002f018]
cmp byte [rbx], 0
je 0x14000a87a
xor eax, eax
jmp 0x14000a8bf
test rdi, rdi
je 0x14000a876
lea rdx, [0x140022ea0]
test r13, r13
je 0x14000a890
lea rdx, [r12 + 8]
mov rcx, rdi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
jne 0x14000a8bf
cmp byte [rbx], 0
jne 0x14000a8bf
test rbp, rbp
jle 0x14000a876
lea rdx, [rsi + 8]
mov rcx, rdi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.KERNEL32.dll_GetProcAddress
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x140017a18
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rax, qword gs:[0x60]
movzx rax, byte [rax + 2]
ret

Function at 0x140018a97
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x1400257b0]
mov edx, 1
jmp fcn.140005b44
sub rsp, 0x28
call fcn.140002249
call fcn.140002c5f
call fcn.140008569
call fcn.14000a47c
call fcn.14000aea3
call fcn.14000f1e0
call fcn.140010c78
call fcn.140012546
call fcn.14001752c
call fcn.140017ab6
nop
add rsp, 0x28
jmp 0x140018a97
sub rsp, 0x28
call fcn.140002d61
call fcn.1400060ab
call fcn.1400085bf
call fcn.14000a6d9
call fcn.14000af0e
call fcn.1400172b1
call fcn.140017310
call fcn.140017410
nop
add rsp, 0x28
jmp 0x14001a5c8

Function at 0x14001a940
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.1400205b0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]
Function at 0x14001a9b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14002f1d4]
test esi, esi
mov rbx, rcx
jle 0x14001aae0
mov rax, qword [0x14002f1d8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001a9fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14001aa85
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14001a9e0
mov rcx, rbx
call fcn.14001b420
test rax, rax
mov rdi, rax
je 0x14001ab02
mov rax, qword [0x14002f1d8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14001b560
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14002f1d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14001aae7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001aa7e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14001aa90
add dword [0x14002f1d4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x14002f1d8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001aa7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14001a940
nop dword [rax]
xor esi, esi
jmp 0x14001aa08
mov rax, qword [0x14002f1d8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.14001a940
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14001a940
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14001b070
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14002f240]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002f220]
test rbx, rbx
je 0x14001b0cc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14001b0c3
test rsi, rsi
je 0x14001b0c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001b0a8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14001b2e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14001b318
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14001b320
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x14001b2f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14001b318
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14001b320
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14001b300
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14001b318
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14001b320
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14001b420
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140026780]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14001b440
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14001b448
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14001b440
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14001b49d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x14001b494
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14001b440
add rax, 0x28
cmp rax, r9
jne 0x14001b480
xor eax, eax
ret

Function at 0x14001b4a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140026780]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14001b4bf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14001b4c8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14001b4bf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14001b560
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140026780]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14001b57f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14001b588
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
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 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 0x14000215b
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 0x140002163
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x14000219a
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 0x140002170
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400021c5
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 0x1400021eb
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 0x1400021d0
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 0x14000a310
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [section..data]
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 0x14000a3b5
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14000a36d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14000a360
cmp rcx, 1
jb 0x14000a3e6
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 0x14000a383
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14000e144
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14000a350
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000b720
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14000de48
int3
Function at 0x14000a470
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 0x14000a4b5
xor al, al
jmp 0x14000a502
cmp word [rbx], 0
je 0x14000a4cd
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a4c0
cmp word [rsp + 0x30], 0
je 0x14000a4fb
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a523
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a4e0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b720
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000de48
int3
Function at 0x14000acb0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001ce80
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002cd54]
lea rsi, [0x140031d90]
mov rdi, rcx
test r11d, r11d
jne 0x14000ad29
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000a530
test al, al
je 0x14000ae09
lea rcx, [rsp + 0x20]
call fcn.140011868
movsxd r11, dword [0x14002cd54]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002cd54], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000ad64
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 0x14000ad54
add rax, 2
test ecx, ecx
jne 0x14000ad40
test edx, edx
je 0x14000ad87
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ad34
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000ad70
cmp rax, 2
jne 0x14000ad8b
cmp word [rdi + 2], 0x3a
jne 0x14000ad8b
mov al, 1
jmp 0x14000ade8
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 0x14000adb6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000addd
mov bl, 1
cmp dword [0x14002cd54], 0x400
jge 0x14000addd
mov rcx, rdi
call fcn.140011868
movsxd rdx, dword [0x14002cd54]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002cd54], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000b720
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str.HOME
call fcn.14000ab50
int3