joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400103e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
xor r14d, r14d
lea rax, [rsp + 0x68]
mov rbx, rdx
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rax
mov rdi, r8
mov rsi, rcx
mov qword [rsp + 0x30], r14
lea rdx, str.SOFTWAREATIA4CurrentPredictors
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0xf003f
xor bpl, bpl
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x14001058b
cmp qword [rsi + 0x18], 0x10
jb 0x140010451
mov rdx, qword [rsi]
jmp 0x140010454
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140010580
cmp qword [rbx + 0x18], 0x10
jb 0x14001049a
mov rdx, qword [rbx]
jmp 0x14001049d
mov rdx, rbx
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140010526
mov eax, dword [rsp + 0x50]
cmp eax, 4
jne 0x14001051f
cmp qword [rdi + 0x18], 0x10
jb 0x1400104d3
mov rcx, qword [rdi]
jmp 0x1400104d6
mov rcx, rdi
call qword [sym.imp.MSVCR110.dll_atoi]
cmp qword [rbx + 0x18], 0x10
mov dword [rsp + 0x60], eax
jb 0x1400104ec
mov rdx, qword [rbx]
jmp 0x1400104ef
mov rdx, rbx
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
mov eax, dword [rsp + 0x50]
sete bpl
cmp eax, 1
jne 0x140010575
jmp 0x14001052e
mov dword [rsp + 0x50], 1
cmp qword [rdi + 0x18], 0x10
mov rax, qword [rdi + 0x10]
jb 0x14001053e
mov rcx, qword [rdi]
jmp 0x140010541
mov rcx, rdi
cmp qword [rbx + 0x18], 0x10
jb 0x14001054d
mov rdx, qword [rbx]
jmp 0x140010550
mov rdx, rbx
inc eax
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bpl
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsi + 0x18], 0x10
jb 0x14001059b
mov rcx, qword [rsi]
call qword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsi + 0x18], 0xf
mov qword [rsi + 0x10], r14
mov byte [rsi], r14b
cmp qword [rbx + 0x18], 0x10
jb 0x1400105ba
mov rcx, qword [rbx]
call qword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], r14
mov byte [rbx], r14b
cmp qword [rdi + 0x18], 0x10
jb 0x1400105d9
mov rcx, qword [rdi]
call qword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r14
movzx eax, bpl
mov byte [rdi], r14b
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140010600
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
push r14
push r15
sub rsp, 0x60
or rbx, 0xffffffffffffffff
movzx r14d, r8b
mov r15, rdx
mov rax, rbx
mov rdi, rcx
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x140010620
test rax, rax
jne 0x140010641
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop rdi
ret
mov eax, 0x2001f
mov r9d, 0x20019
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x88], rsi
xor esi, esi
test r14b, r14b
cmovne r9d, eax
lea rax, [rsp + 0x30]
lea rdx, str.SOFTWAREATIA4Current
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebp, eax
test eax, eax
jne 0x1400106e6
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x98]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x98], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, eax
test r14b, r14b
je 0x1400106d7
mov rcx, qword [rsp + 0x30]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
je 0x140010730
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], rsi
mov word [rsp + 0x38], si
cmp word [rdi], si
jne 0x140010703
mov rbx, rsi
jmp 0x14001070c
inc rbx
cmp word [rdi + rbx*2], si
jne 0x140010703
lea rcx, [rsp + 0x38]
mov r8, rbx
mov rdx, rdi
call fcn.140008b90
lea rdx, [rsp + 0x38]
mov r8, r15
call fcn.1400118f0
test al, al
cmovne ebp, esi
test ebp, ebp
mov rsi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x90]
sete al
add rsp, 0x60
pop r15
pop r14
pop rdi
ret

Function at 0x140010760
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x50
or rbx, 0xffffffffffffffff
mov r14, rdx
mov rdi, rcx
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x140010776
test rax, rax
jne 0x14001078e
add rsp, 0x50
pop r14
pop rdi
pop rbx
ret
lea rax, [rsp + 0x88]
mov qword [rsp + 0x70], rbp
lea rdx, str.SOFTWAREATIA4Current
mov qword [rsp + 0x78], rsi
xor esi, esi
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x88], rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebp, eax
test eax, eax
jne 0x14001081a
mov rcx, qword [rsp + 0x88]
lea rax, [rsp + 0x80]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x80], 8
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x88]
mov ebp, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
je 0x140010864
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
cmp word [rdi], si
jne 0x140010837
mov rbx, rsi
jmp 0x140010840
inc rbx
cmp word [rdi + rbx*2], si
jne 0x140010837
lea rcx, [rsp + 0x30]
mov r8, rbx
mov rdx, rdi
call fcn.140008b90
lea rdx, [rsp + 0x30]
mov r8, r14
call fcn.140011a70
test al, al
cmovne ebp, esi
test ebp, ebp
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
sete al
add rsp, 0x50
pop r14
pop rdi
pop rbx
ret
Function at 0x140010880
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x50
mov rbx, rdx
test rdx, rdx
je 0x140010950
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400108a0
test rax, rax
je 0x140010950
lea rax, [rsp + 0x60]
mov qword [rsp + 0x68], rdi
xor edi, edi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
lea rdx, str.SOFTWAREATIA4Current
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x20006
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14001090a
xor al, al
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbx
ret
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x70]
mov r9d, 4
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x68]
test ebx, ebx
sete al
add rsp, 0x50
pop rbx
ret
xor al, al
add rsp, 0x50
pop rbx
ret

Function at 0x140010960
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
push rdi
sub rsp, 0x50
xor edi, edi
lea rax, [r11 + 0x10]
lea rdx, str.SOFTWAREATIA4Current
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], rdi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x20006
mov qword [r11 + 0x10], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1400109b8
xor al, al
add rsp, 0x50
pop rdi
ret
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
lea rdx, [0x1400188c0]
mov r9d, 0xb
xor r8d, r8d
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x60], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x68]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x60]
sete al
add rsp, 0x50
pop rdi
ret

Function at 0x140011e00
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
xor dil, dil
mov rsi, r9
mov rbx, r8
mov rax, rdx
test rdx, rdx
je 0x140011e62
cmp qword [r8 + 0x18], 8
mov dword [rsp + 0x34], 4
jb 0x140011e2d
mov rdx, qword [r8]
jmp 0x140011e30
mov rdx, rbx
lea rcx, [rsp + 0x34]
lea r9, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140011e62
mov eax, dword [rsp + 0x30]
mov dil, 1
mov dword [rsi], eax
cmp qword [rbx + 0x18], 8
jb 0x140011e72
mov rcx, qword [rbx]
call qword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_]
xor eax, eax
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rax
mov word [rbx], ax
movzx eax, dil
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140011e90
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
xor dil, dil
mov rsi, r9
mov rbx, r8
mov rax, rdx
test rdx, rdx
je 0x140011ef3
cmp qword [r8 + 0x18], 8
mov dword [rsp + 0x34], 4
jb 0x140011ebd
mov rdx, qword [r8]
jmp 0x140011ec0
mov rdx, rbx
lea rcx, [rsp + 0x34]
lea r9, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140011ef3
mov eax, dword [rsp + 0x30]
mov dil, 1
mov qword [rsi], rax
cmp qword [rbx + 0x18], 8
jb 0x140011f03
mov rcx, qword [rbx]
call qword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_]
xor eax, eax
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rax
mov word [rbx], ax
movzx eax, dil
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400b8410
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400b841d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400b842d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400b8415
lea eax, [rcx + 1]
jmp 0x1400b843b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400b844e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400b8434
sub eax, 3
jb 0x1400b846e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400b84bd
sar eax, 1
movsxd rbp, eax
jb 0x1400b84a4
jmp 0x1400b847c
add ebx, ebx
jne 0x1400b847a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400b84a4
inc ecx
add ebx, ebx
jne 0x1400b848a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400b84a4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400b849d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400b848c
add ecx, 2
jmp 0x1400b84a9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400b83d2
jmp 0x1400b841d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x70e00
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400b850d
cmp rsi, rcx
jae 0x1400b8515
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400b84f4
cmp al, 0x8f
ja 0x1400b84f4
cmp byte [rsi - 2], 0xf
je 0x1400b84fa
sub al, 0xe8
cmp al, 1
ja 0x1400b84de
cmp rsi, rcx
jae 0x1400b8515
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400b84e4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400b8515
lodsb al, byte [rsi]
jmp 0x1400b84f4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xb5000]
mov eax, dword [rdi]
or eax, eax
je 0x1400b8572
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xbeb58]
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 0x1400b8522
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 0x1400b856c
mov qword [rbx], rax
add rbx, 8
jmp 0x1400b8542
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400b85ac
cmp al, 0xef
ja 0x1400b859e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400b857e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400b858d
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 + 0x24f]
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 0x1400b8600
sub rsp, 0xffffffffffffff80
jmp 0x140044bf8
Function at 0x1400020c0
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.140007e60
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.140007e60
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 0x140002130
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 0x140002260
mov rax, qword [0x14000e0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000217b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002205
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002160
mov rcx, rbx
call fcn.140002b80
mov rdi, rax
test rax, rax
je 0x140002282
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.140002cc0
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 0x140002267
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400021fe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002210
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 0x1400021fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400020c0
nop dword [rax]
xor esi, esi
jmp 0x140002188
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.1400020c0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400020c0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400027f0
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 0x14000284c
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 0x140002843
test rsi, rsi
je 0x140002843
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002828
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 0x140002b80
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002c00
Capabilities:
Parse pe header

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

Function at 0x140002cc0
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x14005da5d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14005da6d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14005da55
lea eax, [rcx + 1]
jmp 0x14005da7b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14005da8e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14005da74
sub eax, 3
jb 0x14005daae
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14005dafd
sar eax, 1
movsxd rbp, eax
jb 0x14005dae4
jmp 0x14005dabc
add ebx, ebx
jne 0x14005daba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005dae4
inc ecx
add ebx, ebx
jne 0x14005daca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005dae4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14005dadd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14005dacc
add ecx, 2
jmp 0x14005dae9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14005da12
jmp 0x14005da5d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x36400
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14005db4d
cmp rsi, rcx
jae 0x14005db55
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14005db34
cmp al, 0x8f
ja 0x14005db34
cmp byte [rsi - 2], 0xf
je 0x14005db3a
sub al, 0xe8
cmp al, 1
ja 0x14005db1e
cmp rsi, rcx
jae 0x14005db55
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14005db24
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14005db55
lodsb al, byte [rsi]
jmp 0x14005db34
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x5b000]
mov eax, dword [rdi]
or eax, eax
je 0x14005dbb2
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x5d5a0]
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 0x14005db62
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 0x14005dbac
mov qword [rbx], rax
add rbx, 8
jmp 0x14005db82
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14005dbec
cmp al, 0xef
ja 0x14005dbde
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14005dbbe
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14005dbcd
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 + 0x237]
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 0x14005dc40
sub rsp, 0xffffffffffffff80
jmp 0x140011720
Function at 0x1401095f0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1401095fd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14010960d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1401095f5
lea eax, [rcx + 1]
jmp 0x14010961b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14010962e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140109614
sub eax, 3
jb 0x14010964e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14010969d
sar eax, 1
movsxd rbp, eax
jb 0x140109684
jmp 0x14010965c
add ebx, ebx
jne 0x14010965a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140109684
inc ecx
add ebx, ebx
jne 0x14010966a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140109684
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14010967d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14010966c
add ecx, 2
jmp 0x140109689
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1401095b2
jmp 0x1401095fd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x27800
mov dl, 0x12
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1401096ed
cmp rsi, rcx
jae 0x1401096f5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1401096d4
cmp al, 0x8f
ja 0x1401096d4
cmp byte [rsi - 2], 0xf
je 0x1401096da
sub al, 0xe8
cmp al, 1
ja 0x1401096be
cmp rsi, rcx
jae 0x1401096f5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1401096c4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1401096f5
lodsb al, byte [rsi]
jmp 0x1401096d4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xf5000]
mov eax, dword [rdi]
or eax, eax
je 0x140109752
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x109b28]
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 0x140109702
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 0x14010974c
mov qword [rbx], rax
add rbx, 8
jmp 0x140109722
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14010978c
cmp al, 0xef
ja 0x14010977e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14010975e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14010976d
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 + 0x20f]
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 0x1401097e0
sub rsp, 0xffffffffffffff80
jmp 0x140013b30