joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14010ad00
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x28]
xor ebx, ebx
cmp dword [rdi - 0x10], ebx
je 0x14010ad78
mov rsi, qword [rcx + 0x18]
mov rbp, qword [rcx + 0x10]
call fcn.140010338
mov rcx, rax
test rax, rax
je 0x14010ad4f
mov rax, qword [rax]
mov rax, qword [rax + 0xe8]
call qword [case.0x140030af2.0]
test rax, rax
je 0x14010ad4f
mov rcx, qword [rax + 0x40]
jmp 0x14010ad52
mov rcx, rbx
mov dword [rsp + 0x28], 1
mov r9, rbp
mov r8, rdi
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
setae bl
mov eax, ebx
jmp 0x14010ad7a
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14012c1ac
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x18], 0
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.1401a200c
test eax, eax
jne 0x14012c210
mov eax, dword [rsp + 0x30]
lea r8, str._s_s_X.tmp
mov dword [rsp + 0x28], eax
mov r9, rsi
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call fcn.140002340
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14012c222
jmp 0x14012c1d0
mov r9, rbx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14012c410
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, r9
mov r15, r8
mov rdi, rdx
mov rbp, rcx
test rdx, rdx
je 0x14012c4d1
mov esi, 0x811c9dc5
xor ebx, ebx
mov rcx, rdx
call fcn.1401973c0
mov r8, rax
mov eax, 0xcccccccd
mul r8d
shr edx, 3
inc edx
test r8d, r8d
je 0x14012c474
movzx ecx, word [rdi + rbx*2]
imul esi, esi, 0x1000193
xor esi, ecx
add ebx, edx
cmp ebx, r8d
jb 0x14012c461
mov dword [r14], esi
xor edx, edx
mov eax, esi
div dword [rbp + 0x10]
mov dword [r15], edx
mov rbx, qword [rbp + 8]
test rbx, rbx
je 0x14012c4b6
mov rbx, qword [rbx + rdx*8]
test rbx, rbx
je 0x14012c4b6
mov eax, dword [r14]
cmp dword [rbx + 8], eax
jne 0x14012c4ac
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call fcn.14019f540
nop
test eax, eax
je 0x14012c4b1
mov rbx, qword [rbx]
jmp 0x14012c48e
mov rax, rbx
jmp 0x14012c4b8
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
call fcn.140009598
int3
Function at 0x1401354c0
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, rdx
mov rbp, rcx
cmp dword [rdx + 8], 0x100
jne 0x1401355f5
mov ebx, dword [rdx + 0x10]
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1401355f5
cmp ebx, 0x43
je 0x14013550c
cmp ebx, 0x2d
jne 0x1401355f5
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1401355f5
call qword [sym.imp.USER32.dll_EmptyClipboard]
nop
call fcn.140009208
mov rcx, rax
test rax, rax
je 0x140135612
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140030af2.0]
add rax, 0x18
mov qword [rsp + 0x58], rax
movzx eax, byte [rbp + 0x196]
movzx r9d, byte [rbp + 0x195]
movzx r8d, byte [rbp + 0x194]
mov dword [rsp + 0x20], eax
lea rdx, str.RGB__d___d___d_
lea rcx, [rsp + 0x58]
call fcn.140007750
mov rbx, qword [rsp + 0x58]
mov eax, dword [rbx - 0x10]
inc eax
movsxd rdx, eax
add rdx, rdx
mov ecx, 0x2000
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r14, rax
test rax, rax
je 0x1401355cc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1401355cc
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, r14
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
or eax, 0xffffffff
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x1401355f5
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
mov rax, qword [rax + 8]
call qword [case.0x140030af2.0]
mov rdx, rsi
mov rcx, rbp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
jmp method.CDialogEx.virtual_536
mov ecx, 0x80004005
call fcn.1400023a0
int3
Function at 0x140189764
Capabilities:
Parse pe header

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

Function at 0x140190700
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14019056b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14019056b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14019056b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14019056b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14019056b
cmp dword [rcx + 0x84], 0xe
jbe 0x14019056b
cmp dword [rcx + 0xf8], 0
je 0x14019056b
mov ecx, ebx
call fcn.14019061c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1401903f8
nop
cmp dword [rbp + 0x20], 0
je 0x1401905b9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401905c4
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401904fc

Function at 0x1401955d4
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1402497f8]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x14020e820]
mov rbp, rcx
call fcn.14019fc68
xor edi, edi
test rax, rax
je 0x1401956ba
mov ebx, edi
call fcn.140196468
mov r14d, dword [rax]
call fcn.140196468
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1401aaed4
mov rsi, rax
test rax, rax
je 0x14019564b
call fcn.140196468
mov dword [rax], r14d
jmp 0x140195675
call fcn.140196468
cmp dword [rax], 0x22
jne 0x1401956b2
call fcn.140196468
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1401aaed4
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1401956b2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140195679
cmp rax, 3
je 0x140195694
mov rcx, rsi
call fcn.140195530
test al, al
je 0x1401956a5
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1401956a5
mov dil, 1
mov rcx, rbx
call fcn.140196b28
mov al, dil
jmp 0x1401956bc
mov rcx, rbx
call fcn.140196b28
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140188c70
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1401a2798
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140189410
sub rsp, rax
mov rax, qword [0x1402497f8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1401a2458
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401a27e7
mov rax, rbp
jmp 0x1401a28ef
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x256380]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1401ad0dc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x256380]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401a28eb
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401a28eb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1401ad0dc
test rax, rax
js 0x1401a28eb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401a28eb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401a28dd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401a28dd
cmp byte [rcx], 0xd
jne 0x1401a28c3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401a28d2
cmp byte [rcx + 1], 0xa
jne 0x1401a28d2
inc rcx
jmp 0x1401a28d2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x249c60]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401a28a5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401a28ef
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140188c70
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1401a70cc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401a70e2
mov al, 1
jmp 0x1401a7142
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401a70f3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401a7140
mov ecx, dword [rcx + 0x18]
nop
call fcn.1401a2ec4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401a7140
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401a7140
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401a7140
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401a7142
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1401ac47c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140256380]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1401ac4d3
cmp word [rdx], r13w
jne 0x1401ac4d3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1401ac4d8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401ac5fd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1401ac61e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1401ac511
mov rdx, r9
mov word [rbx], cx
jmp 0x1401ac538
cmp r9, r8
jae 0x1401ac548
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1401ac4f2
jmp 0x1401ac5fd
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401ac5f2
cmp dword [rsp + 0x80], esi
je 0x1401ac5f2
lea r8, [0x140256380]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1401ac5ca
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1401ac59a
mov word [rbx], r13w
jmp 0x1401ac5fa
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1401ac5a7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401ac5fa
cmp word [rsp + 0x70], r13w
jne 0x1401ac5d7
cmp rbx, r14
je 0x1401ac594
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401ad0e4
cmp word [rsp + 0x70], r13w
je 0x1401ac5fd
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140256380]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401ac5f7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401ac5fd
Function at 0x1401b0634
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1401b06bb
mov rsi, rbx
cmp word [rax], bp
je 0x1401b067a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401b0664
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401b0660
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401a7c14
mov rdi, rax
test rax, rax
je 0x1401b06a8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14018ba50
mov rbp, rdi
xor ecx, ecx
call fcn.1401a7bd8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401b3124
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1401a758c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1401b31c5
cmp ebx, dword [rsp + 0x30]
je 0x1401b31be
test esi, esi
je 0x1401b31be
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1401b3199
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1401b31a6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1401b3183
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1401b31aa
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1401b31c7
mov eax, 1
jmp 0x1401b31c7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1401b5d50
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1402497f8]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1401b5d9a
call fcn.140196448
mov dword [rax], 0xf
call fcn.140196468
mov dword [rax], 0xd
call fcn.140194de4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140188c70
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1401b5da5
lea eax, [rbx + 1]
jmp 0x1401b5d87
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1401b5d85
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1401b5d87
Function at 0x1401b7c8c
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.1401ad0e4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1401ad0e4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401b7ddc
cmp rax, 0xffffffffffffffff
je 0x1401b7ddc
xor edi, edi
test rbp, rbp
jle 0x1401b7d87
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1401a7b60
mov rbx, rax
test rax, rax
jne 0x1401b7d14
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401b7d7d
mov edx, 0x8000
mov ecx, r14d
call fcn.1401a4084
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.1401aa3ec
cmp eax, 0xffffffff
je 0x1401b7d5d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401b7d24
mov edx, r15d
mov ecx, r14d
call fcn.1401a4084
jmp 0x1401b7d7d
cmp byte [rsi + 0x38], dil
je 0x1401b7d74
cmp dword [rsi + 0x34], 5
jne 0x1401b7d74
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1401b7d7d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401a7bd8
jmp 0x1401b7df0
jns 0x1401b7df0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1401ad0e4
cmp rax, 0xffffffffffffffff
jne 0x1401b7da8
cmp byte [rsi + 0x30], dil
je 0x1401b7df0
mov edi, dword [rsi + 0x2c]
jmp 0x1401b7df0
mov ecx, r14d
call fcn.1401a2ec4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401b7df0
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 0x1401b7df0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401b7de9
mov eax, dword [rsi + 0x2c]
jmp 0x1401b7dee
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1401ad0e4
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 0x1401b8290
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401b82b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401b82b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001860
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
xor r8d, r8d
movsxd r11, edx
mov r9, rcx
mov r10d, r8d
mov eax, r8d
test edx, edx
jle 0x180001888
cmp byte [rax + rcx], 0x7b
je 0x180001888
inc r10d
inc rax
cmp rax, r11
jl 0x180001877
cmp r10d, edx
jne 0x1800018d7
test edx, edx
jle 0x1800019ad
mov r10d, edx
lea rdx, [0x180050660]
nop
movsx rax, byte [r9]
lea r9, [r9 + 1]
movzx ecx, r8w
shr rcx, 8
xor rcx, rax
shl r8w, 8
movzx ecx, cl
movzx ecx, word [rdx + rcx*2]
xor r8w, cx
sub r10, 1
jne 0x1800018a0
mov eax, 0x3fff
and ax, r8w
add rsp, 8
ret
mov qword [rsp], rbx
lea ebx, [r10 + 1]
movsxd rcx, ebx
mov rax, rcx
cmp rcx, r11
jge 0x180001901
nop word [rax + rax]
cmp byte [rax + r9], 0x7d
je 0x180001901
inc ecx
inc rax
cmp rax, r11
jl 0x1800018f0
cmp ecx, edx
je 0x18000196b
cmp ecx, ebx
je 0x18000196b
sub ecx, r10d
movsxd rax, r10d
lea r11, [r9 + 1]
add r11, rax
dec ecx
test ecx, ecx
jle 0x1800019a9
mov r9d, ecx
lea rdx, [0x180050660]
nop word [rax + rax]
movsx rax, byte [r11]
lea r11, [r11 + 1]
movzx ecx, r8w
shr rcx, 8
xor rcx, rax
shl r8w, 8
movzx eax, cl
movzx eax, word [rdx + rax*2]
xor r8w, ax
sub r9, 1
jne 0x180001930
mov rbx, qword [rsp]
mov eax, 0x3fff
and ax, r8w
add rsp, 8
ret
test edx, edx
jle 0x1800019a9
mov r10d, edx
lea rdx, [0x180050660]
nop dword [rax]
movsx rax, byte [r9]
lea r9, [r9 + 1]
movzx ecx, r8w
shr rcx, 8
xor rcx, rax
shl r8w, 8
movzx eax, cl
movzx eax, word [rdx + rax*2]
xor r8w, ax
sub r10, 1
jne 0x180001980
mov rbx, qword [rsp]
mov eax, 0x3fff
and ax, r8w
add rsp, 8
ret
Function at 0x180008cb0
Capabilities:
Set socket configuration

Disassembly:
mov edx, dword [rcx + 0x38]
or r8d, 0xffffffff
sub edx, 1
je 0x180008cc8
cmp edx, 1
jne 0x180008cc4
xor r8d, r8d
mov eax, r8d
ret
jmp sym.php_redis.dll_qedis_sock_connect

Function at 0x18002c1c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r14
push r15
sub rsp, 0x20
mov r15, r9
mov edi, r8d
mov r14, rdx
mov rbp, rcx
call fcn.18002d5f0
mov rbx, rax
test rax, rax
je 0x18002c2d3
mov qword [rsp + 0x40], rsi
or esi, 0xffffffff
cmp byte [rbp + 0x40], 1
jne 0x18002c259
mov r11, qword [rax + 0x10]
xor r9d, r9d
mov r8d, esi
test r11, r11
je 0x18002c246
lea r10, [rax + 0x18]
lea rdi, [0x180059790]
nop dword [rax + rax]
movsx ecx, byte [r10]
lea r10, [r10 + 1]
mov eax, r8d
inc r9d
xor rcx, rax
shr eax, 8
movzx edx, cl
movsxd rcx, r9d
mov r8d, dword [rdi + rdx*4]
xor r8d, eax
cmp rcx, r11
jb 0x18002c220
not r8d
xor edx, edx
imul r8d, dword [rbp]
mov eax, r8d
div esi
mov edi, eax
jmp 0x18002c272
mov r8d, edi
mov rdx, r14
mov rcx, rbp
call fcn.18002d700
mov edi, eax
test eax, eax
js 0x18002c2a8
cmp eax, dword [rbp]
jge 0x18002c2a8
movzx eax, byte [rbx + 5]
test al, 2
jne 0x18002c293
add dword [rbx], esi
jne 0x18002c293
mov rcx, rbx
test al, 1
je 0x18002c28d
call qword [0x18004e120]
jmp 0x18002c293
call qword [0x18004e4f8]
test r15, r15
je 0x18002c29b
mov dword [r15], edi
movsxd rax, edi
shl rax, 4
add rax, qword [rbp + 0x10]
jmp 0x18002c2ce
movzx eax, byte [rbx + 5]
test al, 2
jne 0x18002c2cc
or esi, 0xffffffff
add dword [rbx], esi
jne 0x18002c2cc
mov rcx, rbx
test al, 1
je 0x18002c2c6
call qword [0x18004e120]
jmp 0x18002c2cc
call qword [0x18004e4f8]
xor eax, eax
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140001bf4
Capabilities:
Parse pe header

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