joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140051014
Capabilities:
Modify service

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov qword [rsp + 0x168], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
lea rbp, [rax - 0x128]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x1400c9118]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov esi, edx
mov rdi, rcx
lea r14, str..._nsService.cpp
mov rdx, r14
lea rcx, [rbp + 0x40]
call fcn.140009aa8
nop
lea r12, [rdi + 0x40]
mov rbx, qword [r12]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov r8, rax
mov r9d, 0x17f
lea rdx, str.SetErrorControl___s:_d_
mov rcx, r12
call qword [rbx + 0x128]
nop
lea rcx, [rbp + 0x40]
call fcn.14000a3b0
lea rdx, [rdi + 0x10]
mov r8b, 1
lea rcx, [rbp]
call fcn.140022784
nop
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + pe_nt_image_headers64]
mov rdx, r14
lea rcx, [rbp + 0x40]
call fcn.140009aa8
nop
mov rbx, qword [r12]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov r9, rax
mov dword [rsp + 0x20], 0x184
mov r8d, esi
lea rdx, str.ErrorControl_d___s:_d_
mov rcx, r12
call qword [rbx + 0x140]
nop
lea rcx, [rbp + 0x40]
call fcn.14000a3b0
lea rcx, [rdi + 0x2f0]
call fcn.14004c808
xor r13d, r13d
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
mov r9d, esi
or edx, 0xffffffff
mov r8d, edx
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x140051289
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
cmp eax, 0x3e5
je 0x140051289
test eax, eax
je 0x140051289
mov rdx, r14
lea rcx, [rbp + 0x40]
call fcn.140009aa8
nop
mov r14, qword [r12]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov rsi, rax
mov ecx, r15d
call fcn.140023b78
mov ebx, eax
mov rdx, qword [rdi + 0x270]
lea rcx, [rdi + 0x270]
call qword [rdx + 0x1e8]
mov r8, rax
mov dword [rsp + 0x28], 0x195
mov qword [rsp + 0x20], rsi
mov r9d, ebx
lea rdx, str.ChangeServiceConfig__s_0x_x___s:_d_
mov rcx, r12
call qword [r14 + 0x130]
nop
lea rcx, [rbp + 0x40]
call fcn.14000a3b0
mov qword [rbp + 0x58], 7
mov qword [rbp + 0x50], r13
mov word [rbp + 0x40], r13w
cmp word [0x1400a54e0], r13w
jne 0x1400511fc
mov eax, r13d
jmp 0x140051208
lea rcx, [0x1400a54e0]
call fcn.140065008
mov r8, rax
lea rdx, [0x1400a54e0]
lea rcx, [rbp + 0x40]
call fcn.1400045d0
nop
mov qword [rbp + 0x78], 0xf
mov qword [rbp + 0x70], r13
mov byte [rbp + 0x60], r13b
lea rcx, str..._nsService.cpp
call fcn.1400653e0
mov r8, rax
lea rdx, str..._nsService.cpp
lea rcx, [rbp + 0x60]
call fcn.140004720
nop
mov ecx, r15d
call fcn.140023b78
mov edx, eax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x196
lea r8, [rbp + 0x60]
lea rcx, [rbp + 0x80]
call fcn.140022e44
lea rdx, [0x1400c67e8]
lea rcx, [rbp + 0x80]
call fcn.14005b684
nop
mov dword [rdi + 0x2d0], esi
lea rcx, [rbp]
call fcn.1400227dc
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.140058200
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140051ea0
Capabilities:
Modify service

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov qword [rsp + 0x168], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
lea rbp, [rax - 0x128]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x1400c9118]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov esi, edx
mov rdi, rcx
lea r14, str..._nsService.cpp
mov rdx, r14
lea rcx, [rbp + 0x40]
call fcn.140009aa8
nop
lea r12, [rdi + 0x40]
mov rbx, qword [r12]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov r8, rax
mov r9d, 0x158
lea rdx, str.SetStartType___s:_d_
mov rcx, r12
call qword [rbx + 0x128]
nop
lea rcx, [rbp + 0x40]
call fcn.14000a3b0
lea rdx, [rdi + 0x10]
mov r8b, 1
lea rcx, [rbp]
call fcn.140022784
nop
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + pe_nt_image_headers64]
mov rdx, r14
lea rcx, [rbp + 0x40]
call fcn.140009aa8
nop
mov rbx, qword [r12]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov r9, rax
mov dword [rsp + 0x20], 0x15d
mov r8d, esi
lea rdx, str.ServiceStart_d___s:_d_
mov rcx, r12
call qword [rbx + 0x140]
nop
lea rcx, [rbp + 0x40]
call fcn.14000a3b0
lea rcx, [rdi + 0x2f0]
call fcn.14004c808
xor r13d, r13d
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
or edx, 0xffffffff
mov r9d, edx
mov r8d, esi
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x140052115
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
cmp eax, 0x3e5
je 0x140052115
test eax, eax
je 0x140052115
mov rdx, r14
lea rcx, [rbp + 0x40]
call fcn.140009aa8
nop
mov r14, qword [r12]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov rsi, rax
mov ecx, r15d
call fcn.140023b78
mov ebx, eax
mov rdx, qword [rdi + 0x270]
lea rcx, [rdi + 0x270]
call qword [rdx + 0x1e8]
mov r8, rax
mov dword [rsp + 0x28], 0x16e
mov qword [rsp + 0x20], rsi
mov r9d, ebx
lea rdx, str.ChangeServiceConfig__s_0x_x___s:_d_
mov rcx, r12
call qword [r14 + 0x130]
nop
lea rcx, [rbp + 0x40]
call fcn.14000a3b0
mov qword [rbp + 0x58], 7
mov qword [rbp + 0x50], r13
mov word [rbp + 0x40], r13w
cmp word [0x1400a54e0], r13w
jne 0x140052088
mov eax, r13d
jmp 0x140052094
lea rcx, [0x1400a54e0]
call fcn.140065008
mov r8, rax
lea rdx, [0x1400a54e0]
lea rcx, [rbp + 0x40]
call fcn.1400045d0
nop
mov qword [rbp + 0x78], 0xf
mov qword [rbp + 0x70], r13
mov byte [rbp + 0x60], r13b
lea rcx, str..._nsService.cpp
call fcn.1400653e0
mov r8, rax
lea rdx, str..._nsService.cpp
lea rcx, [rbp + 0x60]
call fcn.140004720
nop
mov ecx, r15d
call fcn.140023b78
mov edx, eax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x16f
lea r8, [rbp + 0x60]
lea rcx, [rbp + 0x80]
call fcn.140022e44
lea rdx, [0x1400c67e8]
lea rcx, [rbp + 0x80]
call fcn.14005b684
nop
mov dword [rdi + 0x2bc], esi
lea rcx, [rbp]
call fcn.1400227dc
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.140058200
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140052154
Capabilities:
Modify service

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov qword [rsp + 0x168], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
lea rbp, [rax - 0x128]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x1400c9118]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov esi, edx
mov rdi, rcx
lea r14, str..._nsService.cpp
mov rdx, r14
lea rcx, [rbp + 0x40]
call fcn.140009aa8
nop
lea r12, [rdi + 0x40]
mov rbx, qword [r12]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov r8, rax
mov r9d, 0x131
lea rdx, str.SetType___s:_d_
mov rcx, r12
call qword [rbx + 0x128]
nop
lea rcx, [rbp + 0x40]
call fcn.14000a3b0
lea rdx, [rdi + 0x10]
mov r8b, 1
lea rcx, [rbp]
call fcn.140022784
nop
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + pe_nt_image_headers64]
mov rdx, r14
lea rcx, [rbp + 0x40]
call fcn.140009aa8
nop
mov rbx, qword [r12]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov r9, rax
mov dword [rsp + 0x20], 0x136
mov r8d, esi
lea rdx, str.ServiceType_d___s:_d_
mov rcx, r12
call qword [rbx + 0x140]
nop
lea rcx, [rbp + 0x40]
call fcn.14000a3b0
lea rcx, [rdi + 0x2f0]
call fcn.14004c808
mov edx, dword [rdi + 0x2b8]
and edx, 0x100
or edx, esi
xor r13d, r13d
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
or r8d, 0xffffffff
mov r9d, r8d
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x1400523d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
cmp eax, 0x3e5
je 0x1400523d5
test eax, eax
je 0x1400523d5
mov rdx, r14
lea rcx, [rbp + 0x40]
call fcn.140009aa8
nop
mov r14, qword [r12]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov rsi, rax
mov ecx, r15d
call fcn.140023b78
mov ebx, eax
mov rdx, qword [rdi + 0x270]
lea rcx, [rdi + 0x270]
call qword [rdx + 0x1e8]
mov r8, rax
mov dword [rsp + 0x28], 0x147
mov qword [rsp + 0x20], rsi
mov r9d, ebx
lea rdx, str.ChangeServiceConfig__s_0x_x___s:_d_
mov rcx, r12
call qword [r14 + 0x130]
nop
lea rcx, [rbp + 0x40]
call fcn.14000a3b0
mov qword [rbp + 0x58], 7
mov qword [rbp + 0x50], r13
mov word [rbp + 0x40], r13w
cmp word [0x1400a54e0], r13w
jne 0x140052348
mov eax, r13d
jmp 0x140052354
lea rcx, [0x1400a54e0]
call fcn.140065008
mov r8, rax
lea rdx, [0x1400a54e0]
lea rcx, [rbp + 0x40]
call fcn.1400045d0
nop
mov qword [rbp + 0x78], 0xf
mov qword [rbp + 0x70], r13
mov byte [rbp + 0x60], r13b
lea rcx, str..._nsService.cpp
call fcn.1400653e0
mov r8, rax
lea rdx, str..._nsService.cpp
lea rcx, [rbp + 0x60]
call fcn.140004720
nop
mov ecx, r15d
call fcn.140023b78
mov edx, eax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x148
lea r8, [rbp + 0x60]
lea rcx, [rbp + 0x80]
call fcn.140022e44
lea rdx, [0x1400c67e8]
lea rcx, [rbp + 0x80]
call fcn.14005b684
nop
mov dword [rdi + 0x2b8], esi
lea rcx, [rbp]
call fcn.1400227dc
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.140058200
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005cb30
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14005c904
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005c904
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005c904
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005c904
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005c904
cmp dword [rcx + 0x84], 0xe
jbe 0x14005c904
cmp dword [rcx + 0xf8], esi
je 0x14005c904
mov ecx, r14d
call fcn.14005ca4c
mov ecx, 2
call fcn.1400663a8
nop
cmp byte [0x1400ce630], 0
jne 0x14005c9ce
mov r15d, 1
mov eax, r15d
xchg dword [0x1400ce620], eax
test ebx, ebx
jne 0x14005c977
mov rdi, qword [0x1400c9118]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1400ce628]
cmp rcx, rax
je 0x14005c96e
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140004090]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400ceab0]
jmp 0x14005c983
cmp ebx, r15d
jne 0x14005c989
lea rcx, [0x1400ceac8]
call fcn.14006a428
nop
test ebx, ebx
jne 0x14005c9a0
lea rdx, [0x140089be0]
lea rcx, [0x140089bc0]
call fcn.14006a76c
lea rdx, [0x140089bf0]
lea rcx, [0x140089be8]
call fcn.14006a76c
movzx eax, byte [0x1400ce630]
test esi, esi
cmove eax, r15d
mov byte [0x1400ce630], al
jmp 0x14005c9ce
mov ecx, 2
call fcn.1400663fc
test esi, esi
jne 0x14005c9e5
mov ecx, r14d
call fcn.14005ca00
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14005c894
Function at 0x140001000
Capabilities:
Disable system features via registry on windows
Set registry value

Disassembly:
sub rsp, 0x78
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x58], 1
mov r9d, 0x20006
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x140001082
xor r8d, r8d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], r8
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r8
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0x20206
mov dword [rsp + 0x20], r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
lea rdx, str.DisableRegistryTools
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400010e0
add rsp, 0x78
ret

Function at 0x1400019a8
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4dad20
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4da642
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fd108]
test eax, eax
je 0x2fc4da6da
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fd110]
mov qword [rbp - 8], rax
jmp 0x2fc4da6be
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4da6b2
cmp qword [rbp - 0x10], 0
je 0x2fc4da6b2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4da678
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4da6db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4da7e0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4da808
mov eax, 0
jmp 0x2fc4da856
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4da831
mov eax, 0
jmp 0x2fc4da856
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4da851
mov eax, 0
jmp 0x2fc4da856
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4da85c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4da8da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4da8d1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4da8d1
mov rax, qword [rbp - 8]
jmp 0x2fc4da8ef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4da8a4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14003dad0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14003dadd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14003daed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14003dad5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14003db05
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14003daf2
sub eax, 3
jb 0x14003db1f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14003db56
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14003db46
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14003db44
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14003db33
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14003da92
jmp 0x14003dadd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x16a00
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14003dba2
cmp rsi, rcx
jae 0x14003dbaa
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14003db89
cmp al, 0x8f
ja 0x14003db89
cmp byte [rsi - 2], 0xf
je 0x14003db8f
sub al, 0xe8
cmp al, 1
ja 0x14003db73
cmp rsi, rcx
jae 0x14003dbaa
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14003db79
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14003dbaa
lodsb al, byte [rsi]
jmp 0x14003db89
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x3b000]
mov eax, dword [rdi]
or eax, eax
je 0x14003dc07
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x566bc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14003dbb7
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14003dc01
mov qword [rbx], rax
add rbx, 8
jmp 0x14003dbd7
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14003dc5f
sub rsp, 0xffffffffffffff80
jmp section.UPX0
Function at 0x2fc4d8e90
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d9f70
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d9892
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fc108]
test eax, eax
je 0x2fc4d992a
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fc110]
mov qword [rbp - 8], rax
jmp 0x2fc4d990e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d9902
cmp qword [rbp - 0x10], 0
je 0x2fc4d9902
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d98c8
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d992b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d9a30
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d9a58
mov eax, 0
jmp 0x2fc4d9aa6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d9a81
mov eax, 0
jmp 0x2fc4d9aa6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d9aa1
mov eax, 0
jmp 0x2fc4d9aa6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d9aac
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d9b2a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d9b21
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d9b21
mov rax, qword [rbp - 8]
jmp 0x2fc4d9b3f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d9af4
mov eax, 0
add rsp, 0x20
pop rbp
ret