joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005f80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
xor r8d, r8d
lea rcx, str.CABINET
xor edx, edx
call fcn.1400051f8
mov r8d, 0xa
mov dword [0x14000d568], eax
lea rdx, str.CABINET
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov qword [0x14000d560], rax
test rax, rax
je 0x1400061c1
mov rcx, qword [0x14000c828]
test rcx, rcx
je 0x140006046
mov edx, 0x842
call qword [sym.imp.USER32.dll_GetDlgItem]
nop dword [rax + rax]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
nop dword [rax + rax]
mov rcx, qword [0x14000c828]
mov edx, 0x841
call qword [sym.imp.USER32.dll_GetDlgItem]
nop dword [rax + rax]
mov rcx, rax
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
nop dword [rax + rax]
call fcn.140005e44
test eax, eax
jne 0x140006059
mov edx, 0x4ba
jmp 0x140006124
lea rax, [0x14000d56c]
mov qword [rsp + 0x40], rax
lea r9, [0x140005820]
mov dword [rsp + 0x38], 1
lea rax, [0x140005a20]
mov qword [rsp + 0x30], rax
lea r8, [fcn.1400055c0]
lea rax, [fcn.1400059b0]
mov qword [rsp + 0x28], rax
lea rdx, [0x140005ad0]
lea rax, [0x1400058d0]
lea rcx, [0x140005ab0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.Cabinet.dll_FDICreate]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140006118
lea rax, [0x14000d560]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea r8, [0x140009760]
and qword [rsp + 0x28], 0
lea rax, [0x140005af0]
lea rdx, str.MEMCAB
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.Cabinet.dll_FDICopy]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x140006145
mov rcx, rdi
call qword [sym.imp.Cabinet.dll_FDIDestroy]
nop dword [rax + rax]
test eax, eax
jne 0x140006145
mov edx, dword [0x14000d56c]
add edx, 0x514
and dword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [0x14000c828]
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
call fcn.140004f2c
xor ebx, ebx
mov rcx, qword [0x14000d560]
test rcx, rcx
je 0x140006165
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
and qword [0x14000d560], 0
test ebx, ebx
jne 0x14000618f
cmp dword [0x14000d5fc], ebx
jne 0x14000618f
and dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4f8
xor ecx, ecx
call fcn.140004f2c
test byte [0x14000cd18], 1
jne 0x1400061bf
test byte [0x14000de64], 1
jne 0x1400061bf
mov rcx, qword [0x14000c828]
xor r9d, r9d
movsxd r8, ebx
mov edx, 0xfa1
call qword [sym.imp.USER32.dll_SendMessageA]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1400063dc
Capabilities:
Delete file
Delete registry value
Persist via run registry key
Set current directory
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, qword [0x14000d608]
jmp 0x14000645e
cmp dword [0x14000cd04], 0
mov rdi, rbx
jne 0x14000643c
cmp dword [0x14000de60], 0
jne 0x14000643c
mov rcx, qword [rbx]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop dword [rax + rax]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop dword [rax + rax]
mov rcx, qword [rdi]
mov rbx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
test rbx, rbx
jne 0x140006404
mov eax, dword [0x14000cd00]
mov ebx, 1
test eax, eax
je 0x140006507
cmp dword [0x14000cd04], 0
jne 0x140006507
cmp dword [0x14000de60], 0
jne 0x140006507
lea r8, [0x14000d610]
mov edx, 0x104
lea rax, [rsp + 0x40]
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400064c3
mov al, byte [r8 + rcx]
test al, al
je 0x1400064c3
mov byte [rcx], al
add rcx, rbx
sub rdx, rbx
jne 0x1400064a5
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
test byte [0x14000de64], 0x20
mov byte [rax], 0
je 0x1400064e4
lea rcx, [rsp + 0x40]
call fcn.140007ea0
lea rcx, [0x140009830]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
call fcn.140002034
mov eax, dword [0x14000cd00]
cmp word [0x14000de78], bx
je 0x140006577
test eax, eax
je 0x140006577
cmp byte [0x14000c7d0], 0
je 0x140006577
lea rax, [rsp + 0x30]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x140006577
mov rcx, qword [rsp + 0x30]
lea rdx, [0x14000c7d0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
and dword [0x14000cd00], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400086f0
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x1400065a8
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x140
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor ebx, ebx
mov r14, rcx
mov esi, ebx
sub r14, rdx
mov rdi, rdx
mov rbp, rcx
mov r9d, esi
lea r8, str.IXP_03d.TMP
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.1400010bc
inc esi
mov edx, 0x104
mov rcx, rdi
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140006621
mov al, byte [r14 + rcx]
test al, al
je 0x140006621
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140006602
test rdx, rdx
lea rax, [rcx - 1]
lea r8, [rsp + 0x20]
mov edx, 0x104
cmovne rax, rcx
mov rcx, rdi
mov byte [rax], bl
call fcn.140007e08
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1400066df
cmp esi, 0x190
jl 0x1400065df
mov r9, rdi
lea rdx, [0x1400099dc]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
nop dword [rax + rax]
test eax, eax
je 0x1400066b4
mov rcx, rdi
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop dword [rax + rax]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400086f0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [rax + rax]
test eax, eax
je 0x14000666f
mov dword [0x14000cd00], 1
mov ebx, 1
jmp 0x1400066b4
Function at 0x140006710
Capabilities:
Create directory
Delete directory
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov esi, r8d
mov r9, rcx
test edx, edx
je 0x14000680b
lea rdx, [rsp + 0x50]
call fcn.1400065a8
test eax, eax
je 0x1400068c0
lea rbx, [0x14000d610]
mov edi, 0x104
lea r8, [rsp + 0x50]
mov edx, edi
mov rcx, rbx
sub r8, rbx
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14000678c
mov al, byte [r8 + rcx]
test al, al
je 0x14000678c
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x14000676d
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
test byte [0x14000de64], 0x20
je 0x1400067f8
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop dword [rax + rax]
movzx ecx, word [rsp + 0x20]
test ecx, ecx
je 0x1400067e7
sub ecx, 1
je 0x1400067de
sub ecx, 1
je 0x1400067d5
cmp ecx, 1
jne 0x1400067f8
lea r8, [0x1400099f8]
jmp 0x1400067ee
lea r8, str.alpha
jmp 0x1400067ee
lea r8, str.mips
jmp 0x1400067ee
lea r8, str.i386
mov edx, edi
mov rcx, rbx
call fcn.140007e08
lea r8, [0x140009760]
mov edx, edi
mov rcx, rbx
call fcn.140007e08
jmp 0x14000684a
lea rbx, [0x14000d610]
mov edi, 0x104
mov rcx, rbx
sub r9, rbx
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x14000683c
mov al, byte [r9 + rcx]
test al, al
je 0x14000683c
mov byte [rcx], al
inc rcx
sub rdi, 1
jne 0x14000681d
test rdi, rdi
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
mov rcx, rbx
call fcn.140006d9c
test eax, eax
jne 0x140006875
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [rax + rax]
test eax, eax
je 0x140006894
mov dword [0x14000cd00], 1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.140006f14
test eax, eax
je 0x1400068a1
and dword [0x14000d544], 0
mov eax, 1
jmp 0x1400068c2
call fcn.140007958
mov dword [0x14000d544], eax
jmp 0x1400068c0
cmp dword [0x14000cd00], 0
je 0x1400068c0
and dword [0x14000cd00], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400086f0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140006d9c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbp, rcx
or rdi, 0xffffffffffffffff
inc rdi
cmp byte [rdi + rcx], 0
jne 0x140006db7
add edi, 0x14
mov ecx, 0x40
mov edx, edi
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x140006e21
and dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4b5
xor ecx, ecx
call fcn.140004f2c
call fcn.140007958
mov dword [0x14000d544], eax
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
lea rax, [rdi - 1]
mov edx, 0x7ffffffe
cmp rax, rdx
ja 0x140006e67
sub rdx, rbx
mov r8, rbp
sub r8, rsi
mov rcx, rsi
lea rax, [rdx + rbx]
test rax, rax
je 0x140006e57
mov al, byte [r8 + rcx]
test al, al
je 0x140006e57
mov byte [rcx], al
inc rcx
sub rbx, 1
jne 0x140006e3b
test rbx, rbx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
jmp 0x140006e6e
test edi, edi
je 0x140006e6e
mov byte [rsi], 0
lea r8, str.TMP4351_.TMP
mov edx, edi
mov rcx, rsi
call fcn.140007e08
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x4000080
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
nop dword [rax + rax]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
cmp rbx, 0xffffffffffffffff
je 0x140006dfe
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140006dfe
test al, 0x10
je 0x140006dfe
and dword [0x14000d544], 0
mov eax, 1
jmp 0x140006e0b
Function at 0x140007984
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor esi, esi
mov rbp, rcx
xor r9d, r9d
mov edi, 1
jmp 0x140007a2b
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140007a75
lea r8, [rax + 8]
or rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], 0
jne 0x1400079ea
lea r9, [rax + 1]
add r9, r8
movabs r10, 0x9cd83f3038deab70
mov edx, dword [rbx + 4]
mov rax, rbp
mov ecx, dword [rbx]
call qword [vtable.H_MA8HI.0]
mov rcx, rbx
test eax, eax
je 0x140007a65
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
add esi, edi
mov r9d, esi
lea r8, str.UPDFILE_lu
mov edx, reloc.Cabinet.dll_FDICreate
lea rcx, [rsp + 0x30]
call fcn.1400010bc
mov r8d, 0xa
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
test rax, rax
jne 0x1400079b6
jmp 0x140007a81
xor edi, edi
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
jmp 0x140007a81
mov dword [0x14000d544], 0x80070714
xor edi, edi
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400086f0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x140007c50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x148
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edx, 0x104
lea r9, [0x14000d610]
lea rax, [rsp + 0x20]
mov r8d, edx
sub r9, rax
lea rcx, [rsp + 0x20]
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x140007ca4
mov al, byte [r9 + rcx]
test al, al
je 0x140007ca4
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x140007c85
test r8, r8
lea rax, [rcx - 1]
lea r8, str.advpack.dll
cmovne rax, rcx
lea rcx, [rsp + 0x20]
mov byte [rax], 0
call fcn.140007e08
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140007cf6
test al, 0x10
jne 0x140007cf6
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
nop dword [rax + rax]
jmp 0x140007d09
lea rcx, str.advpack.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400086f0
add rsp, 0x148
ret
Function at 0x140007d28
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [0x14000de70]
mov rbp, r8
mov rcx, rbx
mov r8d, 5
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
test rax, rax
je 0x140007dc3
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140007dc3
mov rax, qword [rsp + 0x60]
mov r9, rsi
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
test rax, rax
jne 0x140007d9a
and qword [rsp + 0x20], rax
jmp 0x140007d9f
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
nop dword [rax + rax]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
cmp rbx, 0xffffffffffffffff
jne 0x140007de7
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4fb
xor ecx, ecx
call fcn.140004f2c
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140008154
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x18]
sub rsp, 0x110
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp], rax
mov esi, dword [0x14000c20c]
mov dword [rsp + 0x30], InitCommonControls
cmp esi, 0xfffffffe
jne 0x1400082ec
xor edi, edi
mov dword [rsp + 0x50], 0x94
lea rcx, [rsp + 0x50]
mov dword [0x14000c20c], edi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
nop dword [rax + rax]
test eax, eax
je 0x1400082e6
lea esi, [rdi + 1]
cmp dword [rsp + 0x60], esi
jne 0x1400082e6
cmp dword [rsp + 0x54], 4
jne 0x1400082e6
cmp dword [rsp + 0x58], 0xa
jae 0x1400082e6
lea ecx, [rdi + 0x4a]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
nop dword [rax + rax]
test eax, eax
je 0x1400082e6
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Control_PanelDesktopResourceLocale
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x1400082e6
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rbp - 0x10]
xor r8d, r8d
lea rdx, [0x140009760]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x1400082e6
lea rcx, [rbp - 0x10]
mov al, byte [rcx]
sub al, 0x30
cmp al, 9
ja 0x14000828f
movsx eax, byte [rcx]
add edi, 0xfffffffd
shl edi, 4
add edi, eax
jmp 0x1400082b5
mov al, byte [rcx]
sub al, 0x20
cmp byte [rcx], 0x61
movzx edx, al
movzx eax, byte [rcx]
cmovl edx, eax
movsx r8d, dl
lea eax, [r8 - 0x41]
cmp eax, 5
ja 0x1400082c6
shl edi, 4
add edi, 0xffffffc9
add edi, r8d
call qword [sym.imp.USER32.dll_CharNextA]
nop dword [rax + rax]
mov rcx, rax
jmp 0x14000827a
lea rax, [rbp - 0x10]
cmp rcx, rax
je 0x1400082e6
and edi, 0x3ff
cmp edi, esi
je 0x1400082de
cmp edi, 0xd
jne 0x1400082e6
mov dword [0x14000c20c], esi
jmp 0x1400082ec
mov esi, dword [0x14000c20c]
mov eax, esi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400086f0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140008478
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call 0x140008bf4
add rsp, 0x28
jmp 0x140008478
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x14000cb78], rbx
je 0x1400084c2
cmp rax, rbx
jne 0x1400084da
mov edi, 1
mov eax, dword [0x14000cb80]
cmp eax, 1
jne 0x1400084e7
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x14000855e
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400084ab
mov eax, dword [0x14000cb80]
test eax, eax
jne 0x140008554
mov dword [0x14000cb80], 1
lea r14, [0x1400096c0]
lea rbx, [0x1400096a8]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x140008546
test eax, eax
jne 0x14000854a
cmp qword [rbx], 0
je 0x14000853b
movabs r10, 0xd30527475e523070
mov rax, qword [rbx]
mov rcx, qword [vtable.H_MA8HI.0]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x140008512
test eax, eax
je 0x14000855e
mov eax, 0xff
jmp 0x1400086bb
mov dword [0x14000c224], 1
mov eax, dword [0x14000cb80]
cmp eax, 1
jne 0x140008586
lea rdx, [0x1400096a0]
lea rcx, [0x140009690]
call sub.msvcrt.dll__initterm
mov dword [0x14000cb80], 2
test edi, edi
jne 0x140008593
xor eax, eax
xchg qword [0x14000cb78], rax
cmp qword [0x14000cb88], 0
je 0x1400085d1
lea rcx, [0x14000cb88]
call fcn.140008b60
test eax, eax
je 0x1400085d1
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14000cb88]
mov r9, qword [vtable.H_MA8HI.0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x14000865d
test cl, cl
je 0x1400085f4
test edi, edi
jne 0x14000865d
dec cl
cmp cl, 0x1f
ja 0x140008607
inc rbx
mov qword [rsp + 0x28], rbx
mov cl, byte [rbx]
jmp 0x1400085f4
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140002d70
mov dword [0x14000c220], eax
cmp dword [0x14000c240], 0
jne 0x140008646
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000c224], 0
jne 0x14000865b
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000c220]
jmp 0x1400086bb
cmp cl, 0x22
jne 0x14000866f
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x140008681
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x1400085e4
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x140008a4c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008a98
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140008a90
cmp dword [rcx + 0x3c], edx
jl 0x140008a90
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140008a90
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140008a98
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001be0
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r13d, edx
mov esi, ecx
mov r8d, ecx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r12, rax
test rax, rax
je 0x140001dad
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
xor ebp, ebp
mov qword [rsp + 0x58], rbp
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140001c68
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r15b, r15b
mov r14, qword [rsp + 0x48]
jmp 0x140001d6a
mov dword [rsp + 0x28], 0x1c
lea rdx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32First]
mov rdi, qword [rsp + 0x50]
test eax, eax
je 0x140001cea
cmp dword [rsp + 0x34], esi
jne 0x140001cd8
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x20], rax
test rax, rax
je 0x140001cd8
cmp rdi, rbp
je 0x140001cbc
mov qword [rdi], rax
add rdi, 8
mov qword [rsp + 0x50], rdi
jmp 0x140001cd8
lea r8, [rsp + 0x20]
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.1400064f0
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
lea rdx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140001c87
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15b, 1
mov r14, qword [rsp + 0x48]
mov rsi, r14
cmp r14, rdi
je 0x140001d60
test r13d, r13d
jne 0x140001d42
nop dword [rax + rax]
mov rbx, qword [rsi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
xor r8d, r8d
movzx edx, r15b
cmp eax, 0xffffffff
cmovne r8d, edx
movzx r15d, r8b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsi, 8
cmp rsi, rdi
jne 0x140001d10
jmp 0x140001d60
mov rbx, qword [rsi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsi, 8
cmp rsi, rdi
jne 0x140001d42
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test r14, r14
je 0x140001da9
sub rbp, r14
and rbp, 0xfffffffffffffff8
mov rax, r14
cmp rbp, 0x1000
jb 0x140001d9e
add rbp, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001d9e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rbp
mov rcx, r14
call fcn.140006b6c
movzx eax, r15b
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400068d0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000740c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007456
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007456
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007456
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007456
cmp dword [rcx + 0x84], 0xe
jbe 0x140007456
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140007458
xor al, al
add rsp, 0x28
ret