joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400077fc
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
mov rbx, rcx
mov rdi, qword [rcx + 0x10]
test rdi, rdi
je 0x140007893
mov rbx, qword [rcx]
cmp qword [rdi], 0
je 0x14000786c
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14000788c
lea rdx, str.RegDeleteKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000788c
and qword [rsp + 0x28], 0
mov rdx, qword [rdi]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [0x140010580]
jmp 0x14000787c
cmp dword [rdi + 8], 0
je 0x14000788c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
nop
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov eax, 1
jmp 0x14000787c
cmp byte [0x140018bd8], 0
jne 0x1400078de
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1400078ca
lea rdx, str.RegDeleteKeyExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
mov qword [0x140018bd0], rax
jmp 0x1400078d1
mov r10, qword [0x140018bd0]
mov eax, 1
mov byte [0x140018bd8], al
jmp 0x1400078e5
mov r10, qword [0x140018bd0]
mov rdx, rsi
mov rcx, qword [rbx]
test r10, r10
je 0x140007875
xor r9d, r9d
mov r8d, dword [rbx + 8]
mov rax, r10
call qword [0x140010580]
jmp 0x14000787c
Function at 0x14000b774
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x30
and qword [rax - 0x18], 0
and qword [rax + 8], 0
cmp dword [0x140018cac], 0
jne 0x14000b83c
mov eax, dword [0x140018cb4]
test eax, eax
jne 0x14000b83c
xor edi, edi
mov ecx, dword [0x140018cb0]
test ecx, ecx
je 0x14000b7d2
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140018cb4]
mov ecx, dword [0x140018cb0]
test eax, eax
je 0x14000b7df
mov ebx, 1
mov edi, ebx
jmp 0x14000b80d
test ecx, ecx
jne 0x14000b7f1
call fcn.14000b8b8
test eax, eax
jne 0x14000b7f1
lea ebx, [rax + 1]
jmp 0x14000b80d
lea rdx, [rsp + 0x40]
mov rcx, qword [0x140017240]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ebx, 1
test eax, eax
cmovne edi, ebx
test edi, edi
jne 0x14000b841
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x7e]
cmp ecx, ebx
jbe 0x14000b82c
cmp eax, 0x78
je 0x14000b82c
cmp eax, ebx
je 0x14000b82c
cmp eax, 0x32
jne 0x14000b834
mov dword [0x140018cb4], ebx
mov edi, ebx
test edi, edi
jne 0x14000b841
xor ebx, ebx
jmp 0x14000b841
mov ebx, 1
test ebx, ebx
jne 0x14000b857
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea rcx, str.version.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
mov qword [rsp + 0x20], rax
cmp dword [0x140018cac], 0
je 0x14000b87e
cmp dword [0x140018cb4], 0
jne 0x14000b8b0
xor edi, edi
test rbx, rbx
sete dil
test edi, edi
je 0x14000b895
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14000b897
xor esi, esi
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x14000b8b0
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
jmp 0x14000b847
Function at 0x14000ba9c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000000
lea rdx, [0x140011c58]
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000bb69
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x28]
and qword [rbp + 0x28], 0
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000bb5a
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea rdx, str.InsecureQI
lea rax, [rbp + 0x20]
mov dword [rbp + 0x18], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000bb5a
cmp dword [rbp + 0x18], 4
jne 0x14000bb5a
mov ebx, dword [rbp + 0x20]
cmp ebx, 3
ja 0x14000bb5a
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x14000bb6b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000bb6b
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x14000bb69
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14000bb7a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret
Function at 0x14000bf24
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
mov rbp, rsp
sub rsp, 0x30
cmp byte [0x140018cc8], 0
je 0x14000bf4a
mov eax, dword [0x140018ccc]
jmp 0x14000c04f
and qword [rbp + 0x18], 0
lea rax, [rbp + 0x18]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwarePoliciesMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 4
lea rsi, [0x140018ccc]
test eax, eax
jne 0x14000bfb6
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, str.CLSIDInterfaceTest
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000bfb6
cmp dword [rbp + 0x10], ebx
je 0x14000c025
mov rcx, qword [rbp + 0x18]
and qword [rbp + 0x18], 0
test rcx, rcx
je 0x14000bfca
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp + 0x18]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000c02d
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, str.CLSIDInterfaceTest
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000c02d
cmp dword [rbp + 0x10], ebx
jne 0x14000c02d
mov ebx, dword [0x140018ccc]
jmp 0x14000c036
and dword [0x140018ccc], 0
xor ebx, ebx
mov rcx, qword [rbp + 0x18]
mov al, 1
mov byte [0x140018cc8], al
test rcx, rcx
je 0x14000c04d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret

Function at 0x14000cd5c
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x140017008]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rdx
mov r8, rcx
or rdi, 0xffffffffffffffff
lea rcx, [rsp + 0x20]
mov r9, rdi
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea edx, [rdi + 0x5d]
lea rcx, [rsp + 0x20]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
lea rdx, [rsp + 0x228]
mov r9, rdi
add rax, 2
mov r8, rbx
sub rdx, rax
mov rcx, rax
sar rdx, 1
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea rcx, [rsp + 0x20]
call fcn.14000ccd4
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x14000cddf
mov eax, ebx
jmp 0x14000cde5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x140018dbc], eax
test rdi, rdi
je 0x14000cdf4
mov eax, ebx
jmp 0x14000cdff
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [0x140018db8], eax
cmp eax, 0xffffffff
jne 0x14000ce12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [0x140018db4], ebx
mov rax, rdi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000e0a0
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret
Function at 0x14000ce3c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140017008]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor ebx, ebx
mov dword [rsp + 0x40], 0x208
lea rax, [rsp + 0x40]
mov rdi, rcx
mov qword [rsp + 0x30], rax
lea r8, str.CommonFilesDir
lea rax, [rsp + 0x50]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x28], rax
lea esi, [rbx + 2]
mov r9d, esi
mov qword [rsp + 0x20], rbx
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersion
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x14000ceef
cmp dword [rsp + 0x40], 4
jb 0x14000ceef
mov eax, dword [rsp + 0x40]
lea r8, str.Microsoft_SharedOffice16_
shr rax, 1
lea rcx, [rsp + 0x50]
mov edx, 0x104
cmp word [rsp + rax*2 + 0x4c], 0x5c
cmove ebx, esi
or r9, 0xffffffffffffffff
add r8, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.14000cd5c
jmp 0x14000cef1
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14000e0a0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14000cf18
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x140017008]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0x208
mov qword [rsp + 0x30], rax
lea rdx, str.SoftwareMicrosoftOffice16.0CommonFilesPaths
lea rax, [rsp + 0x50]
mov rbx, rcx
mov r8, rcx
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov r9d, 2
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x14000cf8f
cmp dword [rsp + 0x40], 4
jb 0x14000cf8f
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.14000cd5c
jmp 0x14000cf91
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14000e0a0
add rsp, 0x270
pop rbx
ret

Function at 0x14000d968
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x14000d9e0
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x14000d9e0
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x14000d9e0
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14000d9d4
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14000d9f2
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14000d9c2
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14000d9e2
Function at 0x14000ec48
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14028dce0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14028dcf0]
mov dword [rax], 1
mov rax, qword [0x14028dd00]
mov dword [rax], 1
mov rax, qword [0x14028dc60]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14028dcd0]
mov dword [0x14029100c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14028dda0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14028dd80]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14028dc40]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140127e50
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140127ec0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1402910a4]
mov rbx, rcx
test esi, esi
jle 0x140127ff0
mov rax, qword [0x1402910a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140127f0b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140127f95
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140127ef0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140128012
mov rax, qword [0x1402910a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1402910a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140127ff7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140127f8e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140127fa0
add dword [0x1402910a4], 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 [0x1402910a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140127f8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140127f18
mov rax, qword [0x1402910a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1401285a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140291100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402910e0]
test rbx, rbx
je 0x1401285fc
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 rsi, rsi
je 0x1401285f3
test eax, eax
jne 0x1401285f3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1401285d8
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 0x140128810
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140128828
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140128830
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140128840
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14012888d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140128884
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14012888f
add rax, 0x28
cmp rax, r9
jne 0x140128870
xor eax, eax
ret

Function at 0x140128890
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140128920
mov rdx, qword [0x14028dc60]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14012890e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14012890e
cmp word [rax + 0x18], 0x20b
jne 0x14012890e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140128920
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1401288f9
add rbx, 0x28
cmp rbx, rdi
je 0x140128920
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1401288f0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

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

Function at 0x1401289b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14028dc60]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1401289cf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1401289d8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1401289cf
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1401289f0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14028dc60]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140128a10
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140128a18
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140128a10
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140128a60
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140128a57
test rcx, rcx
je 0x140128a10
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140128a48
xor eax, eax
ret

Function at 0x140128a70
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14028dc60]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140128a8f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140128a98
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x14028dc60]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140128ad0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140128ad8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140128ad0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140128ad0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140128b24
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140128b30
add rdx, 0x28
cmp rdx, r9
jne 0x140128b10
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14028dc60]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140128b62
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140128b70
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140128b62
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140128b62
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140128b62
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140128bc5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140128bd8
add rdx, 0x28
cmp r10, rdx
jne 0x140128bb0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140128be7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140128bf7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140128bce
test ecx, ecx
jg 0x140128be0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140003d40
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rdx + 0x4a], 0
mov rbx, rcx
je 0x140003d66
xor eax, eax
lea r8d, [rax - 0x4c]
xor byte [rax + rdx], r8b
inc rax
cmp rax, 0x49
jb 0x140003d51
mov byte [rdx + 0x4a], 0
call fcn.140006050
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140003d80
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov r9, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x68], rcx
xor esi, esi
cmp byte [r8 + 6], sil
je 0x140003db4
mov ecx, esi
lea eax, [rcx - 0x4c]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 5
jb 0x140003da0
mov byte [r8 + 6], sil
lea rax, [r8 + 5]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], sil
cmp r9, rax
je 0x140003de9
mov r8d, 5
mov rdx, r9
lea rcx, [rsp + 0x48]
call fcn.140005950
nop
cmp byte [rbx + 0xa], 0
je 0x140003e13
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x4c]
xor byte [rcx + rbx], al
inc rcx
cmp rcx, 9
jb 0x140003e00
mov byte [rbx + 0xa], 0
lea rax, [rbx + 9]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], 0
cmp rbx, rax
je 0x140003e48
mov r8d, 9
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140005950
nop
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x28]
mov rcx, rdi
call fcn.140007450
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140003e9c
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003e96
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003e96
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140062604
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140003edc
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003ed7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003ed7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140062604
mov rax, rdi
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret