joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004fe0
Capabilities:
Create directory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r13
push r14
push r15
sub rsp, 0x40
xor r14d, r14d
lea r13, [0x14000d040]
mov ebx, edx
mov rsi, rcx
mov rax, r13
lea edi, [r14 + 1]
cmp dword [rax], edi
je 0x14000502a
add r14d, edi
lea rcx, [0x14000d540]
add rax, 0x20
cmp rax, rcx
jl 0x140005013
cmp r14d, 0x28
jne 0x14000505d
and dword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [0x14000c828]
xor r8d, r8d
mov edx, 0x4bb
mov dword [rsp + 0x20], FDIDestroy
call fcn.140004ab0
or rax, 0xffffffffffffffff
jmp 0x1400051f6
lea rdx, str.MEMCAB
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x1400050ae
test ebx, 0x10b
jne 0x140005054
movsxd rdx, r14d
mov rcx, rdx
shl rcx, 5
and dword [rcx + r13], eax
mov rax, qword [0x14000d560]
and dword [rcx + r13 + 0x10], 0
mov qword [rcx + r13 + 8], rax
mov eax, dword [0x14000d568]
mov dword [rcx + r13 + 0x14], eax
mov dword [rcx + r13 + 4], edi
jmp 0x1400051f3
test bl, 8
je 0x1400050bc
or rcx, 0xffffffffffffffff
jmp 0x1400051cd
mov al, bl
and al, 3
neg al
sbb ebp, ebp
and ebp, 0xc0000000
add ebp, 0x80000000
bt ebx, 8
jae 0x1400050f2
bt ebx, 0xa
jae 0x1400050e0
mov ebx, edi
jmp 0x140005102
and ebx, 0x200
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffe
add ebx, 4
jmp 0x140005102
and ebx, 0x200
neg ebx
sbb ebx, ebx
and ebx, 2
add ebx, 3
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, ebp
mov dword [rsp + 0x20], ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400051cd
cmp ebx, 3
je 0x1400051cd
mov al, byte [rsi]
test al, al
je 0x1400051a7
xor r15d, r15d
lea rdi, [rsi + 1]
cmp byte [rdi], 0x3a
jne 0x140005159
cmp byte [rsi + 2], 0x5c
jne 0x140005159
lea rdi, [rsi + 3]
jmp 0x14000516b
cmp al, 0x5c
jne 0x14000516b
cmp byte [rdi], al
jne 0x14000516b
lea rdi, [rsi + 2]
mov r15d, 2
cmp byte [rdi], 0
je 0x1400051a7
cmp byte [rdi], 0x5c
jne 0x140005196
cmp byte [rdi - 1], 0x3a
je 0x140005196
test r15d, r15d
je 0x140005185
dec r15d
jmp 0x140005196
xor edx, edx
mov byte [rdi], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [rdi], 0x5c
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextA]
mov rdi, rax
cmp byte [rax], 0
jne 0x140005170
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, ebp
mov dword [rsp + 0x20], ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
movsxd rdx, r14d
mov rax, rdx
shl rax, 5
mov qword [rax + r13 + 0x18], rcx
cmp rcx, 0xffffffffffffffff
je 0x1400051ef
and dword [rax + r13], 0
and dword [rax + r13 + 4], 0
jmp 0x1400051f3
or rdx, 0xffffffffffffffff
mov rax, rdx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
ret
Function at 0x140005a00
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.140004d50
mov r8d, 0xa
mov dword [0x14000d568], eax
lea rdx, str.CABINET
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x14000d560], rax
test rax, rax
je 0x140005bf9
mov rcx, qword [0x14000c828]
test rcx, rcx
je 0x140005a9c
mov edx, 0x842
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x14000c828]
mov edx, 0x841
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
call fcn.1400058d8
test eax, eax
jne 0x140005aaf
mov edx, 0x4ba
jmp 0x140005b68
lea rax, [0x14000d56c]
mov qword [rsp + 0x40], rax
lea r9, [0x140005220]
mov dword [rsp + 0x38], 1
lea rax, [0x140005400]
mov qword [rsp + 0x30], rax
lea r8, [fcn.140004fe0]
lea rax, [fcn.140005390]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400054b0]
lea rax, [0x1400052c0]
lea rcx, [0x140005490]
mov qword [rsp + 0x20], rax
call qword [sym.imp.Cabinet.dll_FDICreate]
mov rdi, rax
test rax, rax
je 0x140005b5c
lea rax, [0x14000d560]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea r8, [0x1400096c0]
and qword [rsp + 0x28], 0
lea rax, [0x1400054c0]
lea rdx, str.MEMCAB
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.Cabinet.dll_FDICopy]
mov ebx, eax
test eax, eax
je 0x140005b89
mov rcx, rdi
call qword [sym.imp.Cabinet.dll_FDIDestroy]
test eax, eax
jne 0x140005b89
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.140004ab0
xor ebx, ebx
mov rcx, qword [0x14000d560]
test rcx, rcx
je 0x140005ba3
call qword [sym.imp.KERNEL32.dll_FreeResource]
and qword [0x14000d560], 0
test ebx, ebx
jne 0x140005bcd
cmp dword [0x14000d5fc], ebx
jne 0x140005bcd
and dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4f8
xor ecx, ecx
call fcn.140004ab0
test byte [0x14000cd18], 1
jne 0x140005bf7
test byte [0x14000de64], 1
jne 0x140005bf7
mov rcx, qword [0x14000c828]
xor r9d, r9d
movsxd r8, ebx
mov edx, 0xfa1
call qword [sym.imp.USER32.dll_SendMessageA]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140005e04
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 esi, esi
xor edi, edi
mov r14, rcx
mov rbx, rdx
sub r14, rdx
mov rbp, rcx
mov r9d, esi
lea r8, str.IXP_03d.TMP
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.1400010c4
inc esi
mov edx, 0x104
mov rcx, rbx
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140005e7d
mov al, byte [r14 + rcx]
test al, al
je 0x140005e7d
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140005e5e
test rdx, rdx
jne 0x140005e85
dec rcx
mov byte [rcx], dil
lea r8, [rsp + 0x20]
mov rcx, rbx
mov edx, 0x104
call fcn.140007528
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140005f16
cmp esi, 0x190
jl 0x140005e3b
mov r9, rbx
lea rdx, [0x14000993c]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x140005eec
mov rcx, rbx
mov edi, 1
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, edi
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140007d80
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, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x140005eb9
mov dword [0x14000cd00], 1
mov edi, 1
jmp 0x140005eec
Function at 0x140005f3c
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 0x14000602e
lea rdx, [rsp + 0x50]
call fcn.140005e04
test eax, eax
je 0x1400060bb
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 0x140005fb8
mov al, byte [r8 + rcx]
test al, al
je 0x140005fb8
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140005f99
test rdx, rdx
jne 0x140005fc0
dec rcx
mov byte [rcx], 0
test byte [0x14000de64], 0x20
je 0x14000601b
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx ecx, word [rsp + 0x20]
test ecx, ecx
je 0x14000600a
sub ecx, 1
je 0x140006001
sub ecx, 1
je 0x140005ff8
cmp ecx, 1
jne 0x14000601b
lea r8, [0x140009958]
jmp 0x140006011
lea r8, str.alpha
jmp 0x140006011
lea r8, str.mips
jmp 0x140006011
lea r8, str.i386
mov edx, edi
mov rcx, rbx
call fcn.140007528
lea r8, [0x1400096c0]
mov edx, edi
mov rcx, rbx
call fcn.140007528
jmp 0x14000606a
lea rbx, [0x14000d610]
mov edi, 0x104
mov rcx, rbx
sub r9, rbx
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x14000605f
mov al, byte [r9 + rcx]
test al, al
je 0x14000605f
mov byte [rcx], al
inc rcx
sub rdi, 1
jne 0x140006040
test rdi, rdi
jne 0x140006067
dec rcx
mov byte [rcx], 0
mov rcx, rbx
call fcn.140006574
test eax, eax
jne 0x14000608f
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x1400060bf
mov dword [0x14000cd00], 1
test esi, esi
je 0x1400060db
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.1400066d8
test eax, eax
jne 0x1400060db
cmp dword [0x14000cd00], eax
je 0x1400060bb
and dword [0x14000cd00], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
jmp 0x1400060e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [0x14000d544], ecx
jmp 0x1400060bb
and dword [0x14000d544], 0
mov eax, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140007d80
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140006574
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 0x14000658f
add edi, 0x14
mov ecx, 0x40
mov edx, edi
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
jne 0x140006601
and dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4b5
xor ecx, ecx
call fcn.140004ab0
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
xor eax, eax
mov dword [0x14000d544], ecx
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 0x140006644
sub rdx, rbx
mov r8, rbp
sub r8, rsi
mov rcx, rsi
lea rax, [rdx + rbx]
test rax, rax
je 0x140006637
mov al, byte [r8 + rcx]
test al, al
je 0x140006637
mov byte [rcx], al
inc rcx
sub rbx, 1
jne 0x14000661b
test rbx, rbx
jne 0x14000663f
dec rcx
mov byte [rcx], 0
jmp 0x14000664b
test edi, edi
je 0x14000664b
mov byte [rsi], 0
lea r8, str.TMP4351_.TMP
mov edx, edi
mov rcx, rsi
call fcn.140007528
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]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp rbx, 0xffffffffffffffff
je 0x1400065d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400065d0
test al, 0x10
je 0x1400065d0
and dword [0x14000d544], 0
mov eax, 1
jmp 0x1400065ec
Function at 0x140007120
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 0x1400071a7
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400071e5
lea r8, [rax + 8]
or rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], 0
jne 0x140007176
mov edx, dword [rbx + 4]
lea r9, [rax + 1]
mov ecx, dword [rbx]
add r9, r8
mov rax, rbp
call qword [vtable.H_MA8HI.0]
mov rcx, rbx
test eax, eax
je 0x1400071db
call qword [sym.imp.KERNEL32.dll_FreeResource]
add esi, edi
mov r9d, esi
lea r8, str.UPDFILE_lu
mov edx, reloc.Cabinet.dll_FDICreate
lea rcx, [rsp + 0x30]
call fcn.1400010c4
mov r8d, 0xa
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
jne 0x140007152
jmp 0x1400071f1
xor edi, edi
call qword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x1400071f1
mov dword [0x14000d544], 0x80070714
xor edi, edi
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140007d80
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x14000739c
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 0x1400073f0
mov al, byte [r9 + rcx]
test al, al
je 0x1400073f0
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x1400073d1
test r8, r8
jne 0x1400073f8
dec rcx
mov byte [rcx], 0
lea r8, str.advpack.dll
lea rcx, [rsp + 0x20]
call fcn.140007528
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140007433
test al, 0x10
jne 0x140007433
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x140007440
lea rcx, str.advpack.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140007d80
add rsp, 0x148
ret
Function at 0x140007460
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]
test rax, rax
je 0x1400074e3
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x1400074e3
mov rax, qword [rsp + 0x60]
mov r9, rsi
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
test rax, rax
jne 0x1400074c6
and qword [rsp + 0x20], rax
jmp 0x1400074cb
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FreeResource]
cmp rbx, 0xffffffffffffffff
jne 0x140007507
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4fb
xor ecx, ecx
call fcn.140004ab0
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 0x140007838
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 0x1400079b1
xor edi, edi
mov dword [rsp + 0x50], 0x94
lea rcx, [rsp + 0x50]
mov dword [0x14000c20c], edi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1400079ab
lea esi, [rdi + 1]
cmp dword [rsp + 0x60], esi
jne 0x1400079ab
cmp dword [rsp + 0x54], 4
jne 0x1400079ab
cmp dword [rsp + 0x58], 0xa
jae 0x1400079ab
lea ecx, [rdi + 0x4a]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1400079ab
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]
test eax, eax
jne 0x1400079ab
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, [0x1400096c0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140007944
mov eax, dword [0x14000c20c]
jmp 0x1400079b3
lea rdx, [rbp - 0x10]
mov cl, byte [rdx]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14000795e
add edi, 0xfffffffd
movsx eax, cl
shl edi, 4
add edi, eax
jmp 0x14000797d
cmp cl, 0x61
jl 0x140007966
add cl, 0xe0
movsx r8d, cl
sub r8d, 0x37
lea eax, [r8 - 0xa]
cmp eax, 5
ja 0x14000798b
shl edi, 4
add edi, r8d
mov rcx, rdx
call qword [sym.imp.USER32.dll_CharNextA]
mov rdx, rax
jmp 0x140007948
lea rax, [rbp - 0x10]
cmp rdx, rax
je 0x1400079ab
and edi, 0x3ff
cmp edi, esi
je 0x1400079a3
cmp edi, 0xd
jne 0x1400079ab
mov dword [0x14000c20c], esi
jmp 0x1400079b1
mov esi, dword [0x14000c20c]
mov eax, esi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140007d80
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 0x140007b28
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140008264
add rsp, 0x28
jmp 0x140007b28
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 0x140007b81
cmp rax, rbx
jne 0x140007b74
mov edi, 1
jmp 0x140007b81
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007b5b
mov eax, dword [0x14000cb80]
cmp eax, 1
jne 0x140007b96
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x140007c03
mov eax, dword [0x14000cb80]
test eax, eax
jne 0x140007bf9
mov dword [0x14000cb80], 1
lea r14, [0x140009640]
lea rbx, [0x140009628]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x140007beb
test eax, eax
jne 0x140007bef
cmp qword [rbx], 0
je 0x140007be0
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 0x140007bc1
test eax, eax
je 0x140007c03
mov eax, 0xff
jmp 0x140007d56
mov dword [0x14000c224], 1
mov eax, dword [0x14000cb80]
cmp eax, 1
jne 0x140007c2b
lea rdx, [0x140009620]
lea rcx, [0x140009610]
call sub.msvcrt.dll__initterm
mov dword [0x14000cb80], 2
test edi, edi
jne 0x140007c38
xor eax, eax
xchg qword [0x14000cb78], rax
cmp qword [0x14000cb88], 0
je 0x140007c6c
lea rcx, [0x14000cb88]
call fcn.1400081d0
test eax, eax
je 0x140007c6c
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]
cmp byte [rbx], 0x20
ja 0x140007cf5
cmp byte [rbx], 0
je 0x140007c8d
test edi, edi
jne 0x140007cf5
mov al, byte [rbx]
dec al
cmp al, 0x1f
ja 0x140007c9f
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x140007c8d
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.140002a58
mov dword [0x14000c220], eax
cmp dword [0x14000c240], 0
jne 0x140007cde
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000c224], 0
jne 0x140007cf3
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000c220]
jmp 0x140007d56
cmp byte [rbx], 0x22
jne 0x140007d07
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, byte [rbx]
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x140007d1c
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x140007c7f
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x1400080cc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008118
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140008110
cmp dword [rcx + 0x3c], edx
jl 0x140008110
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140008110
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 0x140008118
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xchg r8, rax
invalid
int1
xchg esi, eax
pop rdx
int 0xe4
jo 0x14003f6ba
mov byte [rdi + 0x569251fc], dl
xchg byte [rbx + 0x17df4677], bl
mov al, 0x55
mov esp, eax
push rsp
mov esi, 0xe43b310b
or esi, dword [rcx]
cmp esp, esp
cmp esp, esp
stosd dword [rdi], eax
mov bl, 0xd3
push 0xffffffff802f4053
nop
cmp al, 0x53
wait
mov dl, 0x82
in eax, 0x51
xchg ecx, eax
jno 0x14003f6dc
invalid
invalid
adc edx, dword [rbx]
xchg esp, eax
std
fidivr dword [rbp - 0x73fae441]
push rbx
lodsb al, byte [rsi]
xchg dword [rdi - 0x12], ebx
adc edx, dword [rbp + rdi*8 + 0x1bbfbdda]
add eax, 0x87ac538c
pop rdi
out dx, al
pushfq
adc al, 0x4e
sbb rax, 0x54e49cc1
sbb rax, 0x54e49cc1
rcr dword [rsp + riz*8 - 0x201b11ac], 0x29
out dx, al
in al, 0xdf
sub dword [rbx], ebx
mov ebx, 0xc2395c18
fild qword [rcx]
sbb edi, dword [rbx - 0x3dc6a3e8]
loope 0x14003f6e2
wait
adc al, 0xad
mov es, r11d
ja 0x14003f72b
sti
adc eax, 0x82ebff09
jmp 0x14003f732
pop rbp
jl 0x14003f769
add ah, byte [rcx + 0x1a0f0a67]
invalid
sbb bl, byte [rsi]
mov bl, 0x49
jb 0x14003f789
jb 0x14003f789
invalid
jnp 0x14003f6fd
leave
and esp, 0x26
or byte es:[rdi], bh
mov byte [rbp - 0x30c9a977], 0x41
insb byte [rdi], dx
leave
int3
cmp byte [rcx], 0x65
invalid
cmp dword [rbp - 0x16], esp
adc al, 8
sbb dword [rax - 0x30], 0x24
and al, 0x64
or ebp, dword [rdi]
shl byte [rsp + riz*2], 1
and al, 0x64
or ebp, dword [rdi]
fsub st(3)
js 0x14003f705
jne 0x14003f7b4
stosd dword [rdi], eax
and al, 0xea
invalid
cmp eax, dword [rax + rbp*2 + 0x4e]
sbb al, 0xe9
sub byte [rdx + 0x6d67328c], bh
imul bh
add esp, dword [rbx]
loopne 0x14003f72a
int 0xbe
add al, 0x22
mov esp, 0x4e0fb0d5
in al, dx
je 0x14003f802
int1
test al, 0x14
lodsb al, byte [rsi]
adc al, 0xac
sti
nop
sub esp, dword [rdi - 0x5998c15d]
invalid
xchg dword [rax - 0xad01b5c], edi
stosd dword [rdi], eax
int1
adc byte [rdx + 0x6a2a9900], al
sub ch, byte [rdx + 0x69]
and al, 0xc8
stosd dword [rdi], eax
sub byte [rdx], bl
add byte [rdx], dl
sub byte [rsp + rdx*4 + 0x99213dc], bl
cwde
int1
pop rdi
invalid
invalid
pop rbp
push rax
rol dword [rsi], cl
test dword [rbp + rcx*4 + 0x14cbae97], edx
invalid
push rdx
add bl, ch
sub al, 0xc5
test eax, 0x3e015a39
mov al, 0x6d
or byte [rax], dl
push rsp
invalid
Function at 0x1401c94dc
Capabilities:
Parse pe header

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