joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001ec50
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14002c010]
xor rax, rsp
mov qword [rbp + 0x190], rax
xor esi, esi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], si
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
lea r9d, [rsi - 1]
lea r8, str.cs2.exe
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
test eax, eax
jle 0x14001ed74
mov r8, qword [rsp + 0x40]
cmp rbx, r8
ja 0x14001ecec
lea rax, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rbx
mov word [rax + rbx*2], si
jmp 0x14001ed40
mov rdx, rbx
sub rdx, r8
mov rdi, qword [rsp + 0x48]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x14001ed33
mov qword [rsp + 0x40], rbx
lea r9, [rsp + 0x30]
cmp rdi, 8
cmovae r9, qword [rsp + 0x30]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x14001ed28
movzx eax, si
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], si
jmp 0x14001ed40
mov r9, rdx
lea rcx, [rsp + 0x30]
call fcn.1400073f0
lea rax, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rax, qword [rsp + 0x30]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, str.cs2.exe
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x54]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14001edfb
lea rdi, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x7c]
sub rdi, rax
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + rdi]
sub edx, ecx
jne 0x14001ede3
add rax, 2
test ecx, ecx
jne 0x14001edd0
test edx, edx
je 0x14001edf7
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x14001edaa
mov esi, dword [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14001ee4a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001ee45
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001ee45
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001f9c4
mov eax, esi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14001f710
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14001ee80
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x14002c010]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor esi, esi
mov edi, edx
mov ebx, esi
nop word [rax + rax]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExA]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [rsp + 0x20], edi
jne 0x14001ef04
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x14001ef04
cmp byte [rsp + 0x30], sil
jne 0x14001ef30
test rbx, rbx
jne 0x14001eeb0
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14001f710
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov rax, rbx
jmp 0x14001ef0b
Function at 0x140002c80
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.140004770
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.140004770
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 0x140002cf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x140002e20
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002d3b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002dc5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002d20
mov rcx, rbx
call fcn.140003740
mov rdi, rax
test rax, rax
je 0x140002e42
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003880
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002e27
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002dbe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002dd0
add dword [0x1400090a4], 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 [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002dbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002c80
nop dword [rax]
xor esi, esi
jmp 0x140002d48
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002c80
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002c80
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400033b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x14000340c
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 0x140003403
test rsi, rsi
je 0x140003403
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400033e8
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 0x140003740
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400037c0
Capabilities:
Parse pe header

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

Function at 0x140003880
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006a30]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000389f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400038a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14002bb60
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14002bb6d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14002bb7d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14002bb65
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14002bb95
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14002bb82
sub eax, 3
jb 0x14002bbaf
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14002bbe6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14002bbd6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14002bbd4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14002bbc3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14002bb22
jmp 0x14002bb6d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1b400
mov dl, 9
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14002bc32
cmp rsi, rcx
jae 0x14002bc3a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14002bc19
cmp al, 0x8f
ja 0x14002bc19
cmp byte [rsi - 2], 0xf
je 0x14002bc1f
sub al, 0xe8
cmp al, 1
ja 0x14002bc03
cmp rsi, rcx
jae 0x14002bc3a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14002bc09
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14002bc3a
lodsb al, byte [rsi]
jmp 0x14002bc19
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x29000]
mov eax, dword [rdi]
or eax, eax
je 0x14002bca3
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2cab0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14002bc47
jns 0x14002bc7c
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14002bc86
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14002bc9d
mov qword [rbx], rax
add rbx, 8
jmp 0x14002bc67
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x18f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14002bcfb
sub rsp, 0xffffffffffffff80
jmp 0x14001bce0

Function at 0x205c000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x205c00a
jmp 0x205e00f
jmp fcn.01c8a058
Function at 0x14004d460
Capabilities:
Parse pe header

Disassembly:
jmp 0x140088794
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400884e7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400884e7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400884e7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400884e7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400884e7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400884e7
cmp dword [rcx + 0xf8], 0
je 0x1400884e7
mov ecx, ebx
call fcn.140088660
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400881bc
nop
cmp dword [rbp + 0x20], 0
je 0x140088535
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140088570
int3
xor r8d, r8d
xor edx, edx
jmp 0x140088478
Function at 0x14004d86b
Capabilities:
Print debug messages

Disassembly:
jmp 0x1400cbb14
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rbp, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
setne sil
test eax, eax
je 0x1400cbb60
test rbx, rbx
je 0x1400cbb4f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.14004da0a
cmp eax, 1
je 0x1400cbb60
mov eax, 4
jmp 0x1400cbba3
call fcn.140050485
cmp eax, 2
jne 0x1400cbb9c
call fcn.14004da6e
test al, al
je 0x1400cbb9c
call fcn.14004f247
test al, al
jne 0x1400cbb92
bts edi, 0x15
xor ecx, ecx
mov rdx, rbx
mov r8, rbp
mov r9d, edi
call fcn.1400504e4
jmp 0x1400cbba3
call fcn.14005032c
mov rcx, rax
jmp 0x1400cbb82
movzx eax, sil
add eax, 3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14004d90b
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
jmp 0x140065b40
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x30]
lea rcx, [0x1401431de]
call fcn.1400508f4
mov dword [rbp + 4], 0
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0x80010106
je 0x140065b99
cmp dword [rbp + 4], 0
jge 0x140065b99
mov edx, dword [rbp + 4]
lea rcx, str.____Error_while_initializing_COM__CoInitializeEx_failed:_0x_08lx__n
call fcn.14004d24e
mov eax, dword [rbp + 4]
jmp 0x140065be1
mov rax, qword [rbp + 0x100]
mov qword [rsp + 0x20], rax
lea r9, [0x140107990]
mov r8d, 1
xor edx, edx
lea rcx, [0x140107978]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jge 0x140065bde
mov edx, dword [rbp + 4]
lea rcx, str.____Error_while_initializing_the_INetFwPolicy2_interface__CoCreateInstance_for_INetFwPolicy2_failed:_0x_08lx__n
call fcn.14004d24e
mov eax, dword [rbp + 4]
jmp 0x140065be1
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x14004dc80
Capabilities:
Write file on windows

Disassembly:
jmp 0x140058550
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x40]
lea rcx, [0x14014305a]
call fcn.1400508f4
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x1400585b9
xor eax, eax
jmp 0x1400585ed
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbp + 0x24], eax
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x24]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x14004ddc0
Capabilities:
Create process on windows
Create thread

Disassembly:
jmp 0x14005abd0
push rbp
push rdi
sub rsp, 0x4e8
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0xc6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140131878]
xor rax, rbp
mov qword [rbp + 0x488], rax
lea rcx, [0x1401430bc]
call fcn.1400508f4
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rbp + 0x98]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov dword [rbp + 0xc4], 0
lea rax, [rbp + 0xf0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
cmp qword [0x140132a08], 0
je 0x14005ac63
mov rax, qword [0x140132a08]
jmp 0x14005add1
lea rcx, [0x140132a00]
call qword [sym.imp.KERNEL32.dll_InitializeSRWLock]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140132a10], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140132a18], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14004f63e]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140132a08], rax
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rbp + 0x10], 0x68
mov rcx, qword [0x140132a08]
call qword [sym.imp.KERNEL32.dll_GetThreadId]
mov r9d, eax
lea r8, str.GodFault.exe__t__u
mov edx, 0x104
lea rcx, [rbp + 0xf0]
call fcn.140050697
lea rdx, [rbp + 0xf0]
lea rcx, str.___Running_command:__ws_n
call fcn.14004d24e
lea rax, [rbp + 0x98]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0xf0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14005ad7d
lea rcx, str.____CreateProcessW_GodFault__failed__exiting..._n
call fcn.14004d24e
mov ecx, 1
call fcn.14004d460
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14005adb4
lea rdx, [rbp + 0xc4]
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x14005adb4
cmp dword [rbp + 0xc4], 0
je 0x14005adca
lea rcx, str.____GodFault_returned_failure__exiting..._n
call fcn.14004d24e
mov ecx, 1
call fcn.14004d460
mov rax, qword [0x140132a08]
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, [0x1400ffd80]
call fcn.14004fed6
mov rax, rdi
mov rcx, qword [rbp + 0x488]
xor rcx, rbp
call fcn.14004eb76
lea rsp, [rbp + 0x498]
pop rdi
pop rbp
ret
Function at 0x14004e5b3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400e8010
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140131878]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x1401354a0]
xor r11d, r11d
lea rdi, [0x14011602c]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x1400e8080
mov rax, 0xfffffffffffffffe
jmp 0x1400e81cd
cmp word [r10 + 6], r11w
jne 0x1400e80ef
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x1400e80aa
test r14, r14
je 0x1400e809b
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x1400e81cd
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x1400e80b8
mov r8b, 2
jmp 0x1400e80d6
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x1400e80c6
mov r8b, 3
jmp 0x1400e80d6
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x1400e81c2
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x1400e8118
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x1400e81c2
cmp bl, bpl
jb 0x1400e81c2
cmp bl, r8b
jae 0x1400e81c2
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x1400e8145
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x1400e81c2
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x1400e8127
cmp r9, rbp
jae 0x1400e8171
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x1400e8074
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x1400e81c2
cmp edx, 0x110000
jae 0x1400e81c2
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x1400e81c2
test r14, r14
je 0x1400e81b0
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.1400504df
jmp 0x1400e81cd
mov rdx, rsi
mov rcx, r10
call fcn.140050ce6
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14004eb76
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
jmp 0x14006dec8
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14006df55
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x14006df55
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006df55
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14006df3c
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14006df36
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14006df3e
add rdx, 0x28
jmp 0x14006df1b
xor edx, edx
test rdx, rdx
jne 0x14006df47
xor al, al
jmp 0x14006df5b
cmp dword [rdx + 0x24], 0
jge 0x14006df51
xor al, al
jmp 0x14006df5b
mov al, 1
jmp 0x14006df5b
xor al, al
jmp 0x14006df5b
add rsp, 0x18
ret
Function at 0x14004e950
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1400b98b0
mov rax, rcx
neg rcx
test rax, 7
je 0x1400b98cd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1400b9928
test al, 7
jne 0x1400b98c0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1400b98e1
mov rdx, qword [rax - 8]
test dl, dl
je 0x1400b9952
test dh, dh
je 0x1400b994c
shr rdx, 0x10
test dl, dl
je 0x1400b9946
test dh, dh
je 0x1400b9940
shr rdx, 0x10
test dl, dl
je 0x1400b993a
test dh, dh
je 0x1400b9934
shr edx, 0x10
test dl, dl
je 0x1400b992e
test dh, dh
jne 0x1400b98e1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x14004e991
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400d34e4
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400d356b
mov rsi, rbx
cmp word [rax], bp
je 0x1400d352a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400d3514
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400d3510
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004d04b
mov rdi, rax
test rax, rax
je 0x1400d3558
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14004eb7b
mov rbp, rdi
xor ecx, ecx
call fcn.14004d1c2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14004ed2e
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14007c770
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x140116fe8]
mov ecx, 2
lea r8, [0x140116fe0]
lea rdx, str.FlsGetValue
call fcn.14007c240
mov ecx, ebx
test rax, rax
je 0x14007c7aa
add rsp, 0x20
pop rbx
jmp qword [0x140144020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]