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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x4c8
mov rax, qword [0x1400208c0]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
call fcn.1400119a0
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x88]
call fcn.1400022a0
nop
mov rdx, qword [rsp + 0x4d0]
lea rcx, [rsp + 0x90]
call fcn.140002fe0
lea rcx, [rsp + 0xa0]
call fcn.1400022a0
nop
mov edx, 0x400
mov rcx, qword [rsp + 0x4d8]
call fcn.14000c9d0
mov qword [rsp + 0x58], rax
mov r8d, 0x60
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.140012360
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14000df94
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.140012360
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14000dfaa
call fcn.140005c70
mov dword [rsp + 0x30], eax
jmp 0x14000e124
mov r8, qword [rsp + 0x4e8]
mov rdx, qword [rsp + 0x4e0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14000dfe0
call fcn.140005c70
mov dword [rsp + 0x30], eax
jmp 0x14000e124
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x14000e00b
call fcn.140005c70
mov dword [rsp + 0x30], eax
jmp 0x14000e124
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x34]
inc eax
cmp eax, dword [rsp + 0x34]
jae 0x14000e042
mov dword [rsp + 0x30], 0x8007000e
jmp 0x14000e124
mov eax, dword [rsp + 0x34]
inc eax
mov eax, eax
mov edx, eax
lea rcx, [rsp + 0xa0]
call fcn.1400051f0
nop
jmp 0x14000e05c
lea rcx, [rsp + 0xa0]
call fcn.140003db0
test rax, rax
jne 0x14000e07b
mov dword [rsp + 0x30], 0x8007000e
jmp 0x14000e124
lea rcx, [rsp + 0xa0]
call fcn.140003db0
mov qword [rsp + 0x70], rax
call fcn.1400119a0
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x34]
mov r8, qword [rsp + 0x78]
xor edx, edx
mov ecx, dword [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x14000e0d4
call fcn.140005c70
mov dword [rsp + 0x30], eax
jmp 0x14000e124
mov eax, dword [rsp + 0x40]
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0xa0]
call fcn.140003db0
xor ecx, ecx
mov rdx, qword [rsp + 0x80]
mov word [rax + rdx*2], cx
lea rcx, [rsp + 0xa0]
call fcn.140003db0
mov r8d, dword [rsp + 0x4f0]
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.14000da50
mov dword [rsp + 0x30], eax
cmp qword [rsp + 0x38], 0
je 0x14000e137
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0xa0]
call fcn.140003850
nop
lea rcx, [rsp + 0x88]
call fcn.140003160
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.140015df0
add rsp, 0x4c8
ret
Function at 0x14000f930
Capabilities:
Delete registry key

Disassembly:
push rsi
push rdi
sub rsp, 0xe8
mov rax, qword [0x1400208c0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x70]
lea rcx, [0x140018ca0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x5a
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14000fa10
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x14000f9ec
mov dword [rsp + 0x60], 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x60], 0
jne 0x14000fa10
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140015df0
add rsp, 0xe8
pop rdi
pop rsi
ret

Function at 0x140010010
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
test eax, eax
jne 0x140010023
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x38
ret

Function at 0x140010120
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
xor eax, eax
test eax, eax
jne 0x140010133
cmp qword [rsp + 0x70], 0
je 0x14001014b
mov dword [rsp + 0x38], 1
jmp 0x140010153
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x14001016c
mov eax, 0xd
jmp 0x1400101ed
xor eax, eax
test eax, eax
jne 0x140010139
mov dword [rsp + 0x34], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
lea rax, [rcx + rax*2]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x30], 1
jne 0x140010184
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x58
ret
Function at 0x140010250
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
xor eax, eax
test eax, eax
jne 0x140010268
cmp qword [rsp + 0x70], 0
je 0x140010280
mov dword [rsp + 0x30], 1
jmp 0x140010288
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x14001029e
mov eax, 0xd
jmp 0x1400102f2
xor eax, eax
test eax, eax
jne 0x14001026e
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc eax
mov eax, eax
shl rax, 1
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x78]
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x58
ret

Function at 0x140010a40
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1400208c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x70]
call fcn.14000bc70
test eax, eax
jne 0x140010a70
mov eax, 1
jmp 0x140010b71
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140010ab2
mov rax, qword [rsp + 0x70]
add rax, 0x50
xor r9d, r9d
mov r8, rax
lea rdx, str.Couldnt_open_service_manager
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x140010b71
mov rax, qword [rsp + 0x70]
add rax, 0x50
mov r8d, 0x10020
mov rdx, rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140010b09
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rax, qword [rsp + 0x70]
add rax, 0x50
xor r9d, r9d
mov r8, rax
lea rdx, str.Couldnt_open_service
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x140010b71
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [rsp + 0x30], 0
je 0x140010b51
mov eax, 1
jmp 0x140010b71
mov rax, qword [rsp + 0x70]
add rax, 0x50
xor r9d, r9d
mov r8, rax
lea rdx, str.Service_could_not_be_deleted
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140015df0
add rsp, 0x68
ret
Function at 0x140012570
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x24], 0
cmp dword [0x140021b2c], 0
je 0x140012597
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x140021b20], 0
je 0x1400125ac
mov dword [rsp + 0x24], 1
jmp 0x1400125e3
cmp dword [0x140021b2c], 0
jne 0x1400125c2
call fcn.1400126a0
test eax, eax
jne 0x1400125c2
jmp 0x1400125e3
mov rdx, qword [rsp + 0x40]
mov rcx, qword [section..data]
call fcn.1400122a0
test eax, eax
jne 0x1400125db
jmp 0x1400125e3
mov dword [rsp + 0x24], 1
cmp dword [rsp + 0x24], 0
jne 0x140012629
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x7f
je 0x140012617
cmp dword [rsp + 0x20], 0x7e
je 0x140012617
cmp dword [rsp + 0x20], 0x78
je 0x140012617
cmp dword [rsp + 0x20], 1
je 0x140012617
cmp dword [rsp + 0x20], 0x32
jne 0x140012629
mov dword [0x140021b20], 1
mov dword [rsp + 0x24], 1
mov eax, dword [rsp + 0x24]
add rsp, 0x38
ret

Function at 0x140015040
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
lea r8, [rsp + 0x30]
lea rdx, [0x1400201e8]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x14001506d
xor eax, eax
jmp 0x14001512f
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x20]
mov r8, qword [rsp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov dword [rsp + 0x24], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x24], 0
je 0x1400150a9
xor eax, eax
jmp 0x14001512f
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax]
cmp eax, 0x22
jne 0x140015102
mov rax, qword [rsp + 0x50]
add rax, 2
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
mov dx, 0x22
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_wcschr
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400150f6
xor eax, eax
jmp 0x14001512f
xor eax, eax
mov rcx, qword [rsp + 0x28]
mov word [rcx], ax
jmp 0x14001512a
lea rdx, [0x140020208]
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_wcsstr
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14001512a
xor eax, eax
mov rcx, qword [rsp + 0x28]
mov word [rcx], ax
mov eax, 1
add rsp, 0x48
ret
Function at 0x1400156b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400208c0]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x200
rep stosb byte [rdi], al
lea rdx, [0x1400203e8]
lea rcx, [0x140020410]
call fcn.140001ba0
lea r8, [rsp + 0x38]
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1400157a0
lea rdx, [0x140020450]
lea rcx, [0x140020478]
call fcn.140001ba0
lea r8, [rsp + 0x38]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1400157a0
lea rdx, [0x1400204b8]
lea rcx, [0x1400204e0]
call fcn.140001ba0
lea r8, [rsp + 0x38]
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1400157a0
lea rdx, str.Languagecurrent
lea rcx, str.SoftwareAdobeAcrobat_Reader_
call fcn.140001ba0
lea r8, [rsp + 0x38]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1400157a0
xor eax, eax
jmp 0x1400158bb
mov dword [rsp + 0x30], 0x100
mov eax, 2
imul rax, rax, 0
lea rax, [rsp + rax + 0x50]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x40], 0
jne 0x1400158b9
cmp dword [rsp + 0x44], 1
jne 0x1400158b9
cmp dword [rsp + 0x30], 6
jb 0x1400158b9
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
lea rax, [rsp + rax*2 + 0x4a]
mov rdx, rax
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
lea rdx, [0x140020588]
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14001585d
lea rdx, [0x140020590]
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140015879
lea rdx, [0x140020598]
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
mov eax, 1
jmp 0x1400158bb
cmp qword [rsp + 0x278], 0
je 0x1400158b0
cmp dword [rsp + 0x30], 0xd
jb 0x1400158b0
mov eax, 2
imul rax, rax, 0
lea rax, [rsp + rax + 0x50]
mov r8d, 0xd
mov rdx, rax
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov eax, 1
jmp 0x1400158bb
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140015df0
add rsp, 0x260
pop rdi
ret
Function at 0x140015c50
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x818
mov rax, qword [0x1400208c0]
xor rax, rsp
mov qword [rsp + 0x800], rax
lea r8, [rsp + 0x28]
mov rdx, qword [rsp + 0x828]
mov rcx, qword [rsp + 0x820]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140015c9f
mov eax, dword [rsp + 0x20]
jmp 0x140015cf6
mov r9d, 0x7d0
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140015cd5
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call fcn.140015c50
test eax, eax
je 0x140015c9f
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsp + 0x828]
mov rcx, qword [rsp + 0x820]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x800]
xor rcx, rsp
call fcn.140015df0
add rsp, 0x818
ret

Function at 0x140016ce8
Capabilities:
Parse pe header

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

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001b104
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b104
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027b2c
cmp rax, 0xffffffffffffffff
je 0x140027b2c
xor edi, edi
test rbp, rbp
jle 0x140027ad7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001da18
mov rbx, rax
test rax, rax
jne 0x140027a64
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027acd
mov edx, 0x8000
mov ecx, r14d
call fcn.140018a68
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001bde0
cmp eax, 0xffffffff
je 0x140027aad
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027a74
mov edx, r15d
mov ecx, r14d
call fcn.140018a68
jmp 0x140027acd
cmp byte [rsi + 0x38], dil
je 0x140027ac4
cmp dword [rsi + 0x34], 5
jne 0x140027ac4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027acd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400197c8
jmp 0x140027b40
jns 0x140027b40
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b104
cmp rax, 0xffffffffffffffff
jne 0x140027af8
cmp byte [rsi + 0x30], dil
je 0x140027b40
mov edi, dword [rsi + 0x2c]
jmp 0x140027b40
mov ecx, r14d
call fcn.140017594
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027b40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027b40
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027b39
mov eax, dword [rsi + 0x2c]
jmp 0x140027b3e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b104
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140028c30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140028c58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140028c58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x141138d00
Capabilities:
Encode data using xor

Disassembly:
jmp 0x141138d0a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x141138d33
pop rbp
sub rbp, 0x33
sub rbp, 0x1138d00
sub rsp, 0x20
lea edx, [rbx]
add dword [rax - 0x7f], ecx
in al, dx
and byte [rax], al
add byte [rax], al
jmp 0x141138d52
mov rax, 0x1138d00
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffc4bd236a
xor byte [rax], dl
inc rax
dec rcx
jne 0x141138d71
jmp 0x141138d88
and ah, bl
and ecx, 0xffffffe3
push rsi
push 0x6a
push 0x22
jmp 0x141138d3f
Function at 0x1400234d0
Capabilities:
Enumerate process modules

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x28], rdx
mov rax, rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
call fcn.14001fb50
mov rcx, qword [rsp + 0x28]
mov rdx, rax
mov rax, qword [rsp + 0x30]
mov dword [rsp + 0x44], edx
mov rax, qword [rax]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
call fcn.14001f940
mov rcx, qword [rsp + 0x38]
mov r8d, dword [rsp + 0x44]
mov r9, qword [rsp + 0x48]
mov rdx, rax
call sub.psapi.dll_EnumProcessModules
cmp eax, 0
jne 0x140023540
call fcn.140023260
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x50], 1
jmp 0x140023548
mov dword [rsp + 0x50], 0
mov eax, dword [rsp + 0x50]
mov edx, dword [rsp + 0x54]
add rsp, 0x58
ret
Function at 0x140042bf0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xd8
lea rbp, [rsp + 0x80]
mov r11, rdx
mov qword [rbp - 0x20], rcx
mov rax, qword [rbp + 0x90]
mov qword [rbp - 0x10], r9
lea rdx, [rbp - 0x10]
add rdx, 8
mov qword [rbp - 8], rax
mov rax, qword [0x14008f240]
mov qword [rbp], rax
mov rax, qword [0x14008f248]
mov qword [rbp + 8], rax
mov eax, 0xffffffff
mov r10, r8
sub r10, rax
cmovb rax, r8
mov r10d, eax
mov r8b, r9b
xor eax, eax
test r8b, 1
cmovne rax, rdx
xor edx, edx
mov r9d, edx
mov rsi, rbp
mov rdx, r9
mov r8, r9
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x30], r10d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
mov dword [rbp - 0x14], eax
jne 0x140042d04
mov rcx, qword [rbp - 0x20]
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
mov dword [rbp - 0x14], eax
jne 0x140042d04
mov dword [rbp + 0x10], 0
mov byte [rbp + 0x14], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], 1
mov qword [rbp + 0x40], 0
lea rax, [rbp + 0x50]
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], 0
lea rcx, [rbp + 0x10]
lea rdx, [rbp + 0x20]
call fcn.140041e50
mov qword [rbp + 0x18], rax
lea rcx, [rbp + 0x18]
call fcn.140042030
mov ecx, 7
int 0x29
ud2
mov eax, dword [rbp - 0x14]
mov dword [rbp - 0x24], eax
cmp eax, 0xffffffff
jg 0x140042d32
mov ecx, dword [rbp - 0x24]
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
movsxd rcx, eax
shl rcx, 0x20
or rcx, 2
mov eax, 1
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x30], rax
jmp 0x140042d40
mov rcx, qword [rbp + 8]
xor eax, eax
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x30], rax
mov rdx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x30]
add rsp, 0xd8
pop rsi
pop rbp
ret
Function at 0x1400568a8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x1400568f2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400568f2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400568f2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400568f2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400568f2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400568f4
xor al, al
add rsp, 0x28
ret
Function at 0x140011104
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001f290
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14003a21c]
call fcn.140011a73
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14001f2e8
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14001f3fa
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14001f393
cmp qword [rbp + 0x28], 0
jle 0x14001f393
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14001f331
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.1400119d3
nop
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rbp + 0x130], 0
jle 0x14001f3e9
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14001f3e9
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret