joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140021540
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.140010190
sub rsp, rax
mov rax, qword [0x14003c280]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001f8b0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002158f
mov rax, rbp
jmp 0x140021697
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 + 0x3ea10]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140021a28
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3ea10]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140021693
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 0x140021693
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140021a28
test rax, rax
js 0x140021693
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140021693
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140021685
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140021685
cmp byte [rcx], 0xd
jne 0x14002166b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002167a
cmp byte [rcx + 1], 0xa
jne 0x14002167a
inc rcx
jmp 0x14002167a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3cd90]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002164d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140021697
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000f950
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 0x140023ff4
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140024024
xor eax, eax
jmp 0x1400240e7
mov rbp, rbx
cmp word [rax], si
je 0x140024049
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140024030
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002402c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14002270c
movsxd r14, eax
test eax, eax
jne 0x140024087
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002401d
mov rcx, r14
call fcn.14001ed70
mov rdi, rax
test rax, rax
jne 0x1400240a0
xor ecx, ecx
call fcn.14001d084
jmp 0x14002407c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14002270c
test eax, eax
jne 0x1400240d1
mov rcx, rdi
call fcn.14001d084
jmp 0x1400240db
xor ecx, ecx
call fcn.14001d084
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140026c14
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.14001d438
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 0x140026cb5
cmp ebx, dword [rsp + 0x30]
je 0x140026cae
test esi, esi
je 0x140026cae
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140026c89
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140026c96
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140026c73
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140026c9a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140026cb7
mov eax, 1
jmp 0x140026cb7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140027678
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, [0x14003ea10]
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 0x1400276cf
cmp word [rdx], r13w
jne 0x1400276cf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400276d4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400277f9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002781a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14002770d
mov rdx, r9
mov word [rbx], cx
jmp 0x140027734
cmp r9, r8
jae 0x140027744
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 0x1400276ee
jmp 0x1400277f9
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 0x1400277ee
cmp dword [rsp + 0x80], esi
je 0x1400277ee
lea r8, [0x14003ea10]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400277c6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140027796
mov word [rbx], r13w
jmp 0x1400277f6
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 0x1400277a3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400277f6
cmp word [rsp + 0x70], r13w
jne 0x1400277d3
cmp rbx, r14
je 0x140027790
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140021a30
cmp word [rsp + 0x70], r13w
je 0x1400277f9
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, [0x14003ea10]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400277f3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400277f9
Function at 0x140029d40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140029d68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140029d68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140009220
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x1401137c0]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov dword [rsp + 0x20], 0x238
xor bl, bl
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400092f0
mov qword [rsp + 0x280], rbp
mov ebp, 1
mov qword [rsp + 0x288], rsi
lea rsi, str.spoofer.exe
nop dword [rax]
lea r8, [rsp + 0x4c]
xor eax, eax
nop word [rax + rax]
movzx edx, word [r8 + rax*2]
movzx ecx, word [rsi + rax*2]
sub edx, ecx
jne 0x1400092c6
movzx edx, word [r8 + rax*2 + 2]
movzx ecx, word [rsi + rax*2 + 2]
sub edx, ecx
jne 0x1400092c6
add rax, 2
cmp rax, 0xc
jne 0x1400092a0
test edx, edx
movzx ebx, bl
lea rdx, [rsp + 0x20]
mov rcx, rdi
cmove ebx, ebp
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140009290
mov rsi, qword [rsp + 0x288]
mov rbp, qword [rsp + 0x280]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400a6610
mov rbx, qword [rsp + 0x290]
add rsp, 0x270
pop rdi
ret
Function at 0x1400106f0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140010712
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14001078c
mov rdi, r14
mov rcx, rbx
call fcn.140013be0
test rax, rax
jle 0x140010764
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.1400da2d0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14001077c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x140010784
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140010726
sub r14, rdi
jmp 0x14001086f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400107a3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400107a5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400107d7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400da2d0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14001086c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140010812
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14001084d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400b88a8
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14001086c
cmp rbp, rax
ja 0x140010820
test rbp, rbp
je 0x14001086c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400b88a8
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x140028cd0
Capabilities:
Encode data using xor
Hash data using fnv

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14002d77c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14002d77c
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 0x14002d795
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 0x14002d76c
cmp byte [rax], 0x5c
jne 0x14002d766
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14002d766
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14002d752
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14002d763
test r8b, 0x10
jne 0x14002d766
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14002d766
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140029850
test edi, edi
jne 0x14002d6d0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140029840
int3
Function at 0x14003cc40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x450
mov rax, qword [0x1401137c0]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov r15, 0xffffffffffffffff
mov rbx, r9
mov rdi, r15
mov r14, r8
mov rbp, rdx
nop dword [rax + rax]
inc rdi
cmp byte [r9 + rdi], 0
jne 0x14003cc80
mov rcx, rdi
add rcx, 1
cmovb rcx, r15
call fcn.1400ba69c
lea rdx, [rdi + 1]
mov r9, r15
mov r8, rbx
mov rcx, rax
mov rsi, rax
call fcn.1400ba1e8
mov dword [rsp + 0x38], 0x400
call fcn.14003cde0
xor r8d, r8d
mov rdx, rbp
test eax, eax
mov rcx, 0xffffffff80000002
lea rax, [rsp + 0x30]
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
jne 0x14003cce3
mov r9d, 0x20019
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003cdab
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14003cdab
xor ebx, ebx
lea rcx, [rsp + 0x40]
mov rax, r15
inc rax
cmp byte [rcx + rax], bl
jne 0x14003cd38
test rax, rax
je 0x14003cd6e
movsx ecx, byte [rsp + rbx + 0x40]
call fcn.1400ba1bc
mov byte [rsp + rbx + 0x40], al
lea rcx, [rsp + 0x40]
inc rbx
mov rax, r15
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x14003cd60
cmp rbx, rax
jb 0x14003cd45
test rdi, rdi
je 0x14003cd8a
mov rbx, rsi
movsx ecx, byte [rbx]
call fcn.1400ba1bc
mov byte [rbx], al
lea rbx, [rbx + 1]
sub rdi, 1
jne 0x14003cd76
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.1400a8994
test rax, rax
je 0x14003cdab
mov rcx, rsi
call fcn.1400b838c
mov eax, 1
jmp 0x14003cdb5
mov rcx, rsi
call fcn.1400b838c
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400a6610
mov rbx, qword [rsp + 0x480]
add rsp, 0x450
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003d540
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x60
mov rax, qword [0x1401137c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rbx, rcx
xor ebp, ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x50], rbp
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x14003d642
mov qword [rsp + 0x40], rbp
lea edx, [rbp - 1]
mov dword [rsp + 0x38], ebp
xor r9d, r9d
mov qword [rsp + 0x30], rbp
xor r8d, r8d
mov dword [rsp + 0x28], 3
xor ecx, ecx
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x14003d63c
lea rax, [rsp + 0x50]
xor edx, edx
lea r9, [0x1400e0a00]
mov qword [rsp + 0x20], rax
lea r8d, [rbp + 1]
lea rcx, [0x1400e0a10]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14003d63c
mov rcx, rbx
mov qword [rsp + 0x90], rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x40], rsi
xor r8d, r8d
mov qword [rsp + 0x38], rbp
mov rdi, rax
mov qword [rsp + 0x30], rbp
mov rdx, qword [rcx]
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
mov r10, qword [rdx + 0x18]
mov rdx, rax
call r10
mov ebx, eax
mov rcx, rdi
not ebx
shr ebx, 0x1f
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov rdi, qword [rsp + 0x90]
mov eax, ebx
jmp 0x14003d644
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400a6610
add rsp, 0x60
pop rsi
pop rbp
pop rbx
ret

Function at 0x14003d7c0
Capabilities:
Check for trap flag exception

Disassembly:
push rbp
mov rbp, rsp
pushfq
pop rax
bts eax, 8
push rax
popfq
mov al, 1
jmp 0x14003d7d5
mov rsp, rbp
pop rbp
ret
Function at 0x14003d800
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x2b0
mov rax, qword [0x1401137c0]
xor rax, rsp
mov qword [rsp + 0x2a8], rax
mov qword [rsp + 0x38], rsp
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14003d995
lea rdx, [0x1401015f0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14003d995
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
je 0x14003d995
mov dword [rsp + 0x60], 0x238
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14003d995
mov byte [rsp + 0x30], 0
xor esi, esi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x2a0], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x34], eax
mov r8d, dword [rsp + 0x68]
cmp eax, r8d
jne 0x14003d8d0
lea rdx, [0x14003d95a]
mov rcx, qword [rsp + 0x38]
call fcn.1400da134
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14003d8fb
lea rdx, [0x14003d95a]
mov rcx, qword [rsp + 0x38]
call fcn.1400da134
mov qword [rsp + 0x20], rsi
mov r9d, 4
lea r8, [rsp + 0x2a0]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x14003d92f
lea rdx, [0x14003d95a]
mov rcx, qword [rsp + 0x38]
call fcn.1400da134
mov eax, dword [rbx]
cmp dword [rsp + 0x2a0], eax
je 0x14003d951
mov byte [rsp + 0x30], 1
lea rdx, [0x14003d97e]
mov rcx, qword [rsp + 0x38]
call fcn.1400da134
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x14003d97e
xor esi, esi
mov rbx, qword [rsp + 0x50]
mov eax, dword [rsp + 0x34]
jmp 0x14003d8b5
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14003d98e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsp + 0x30]
jmp 0x14003d997
xor al, al
mov rcx, qword [rsp + 0x2a8]
xor rcx, rsp
call fcn.1400a6610
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14004d0c0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14004d1a2
call fcn.140065550
test al, al
jne 0x14004d1a2
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x14004d0f2
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.14006f470
test rax, rax
je 0x14004d137
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.14006f470
mov rsi, rax
test rax, rax
je 0x14004d137
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x14004d16b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.140061a30
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x14004d150
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140053ec0
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x1401137c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov r14, qword [rdx + 0x10]
mov rbx, rcx
mov rax, qword [rdx + 0x18]
lea rcx, str.SSL_PROXY
cmp qword [rdx], rcx
jne 0x140053f07
mov rdi, qword [rax + 0xd8]
mov rsi, qword [rax + 0xe0]
mov ebp, dword [rax + 0xe8]
jmp 0x140053f15
mov rdi, qword [rax + 0x50]
mov rsi, qword [rax + 0x58]
mov ebp, dword [rax + 0x6d0]
mov qword [rsp + 0x80], r15
test rdi, rdi
je 0x1400540db
mov r9, qword [rbx]
test r9, r9
je 0x140053f5b
mov r8, r9
mov rax, rdi
sub r8, rdi
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140053f53
inc rax
test ecx, ecx
jne 0x140053f40
test edx, edx
je 0x1400540db
mov rcx, qword [rbx + 8]
cmp rcx, r9
je 0x140053f6a
call qword [fcn.1400b838c]
mov rcx, qword [rbx + 0x10]
call qword [fcn.1400b838c]
mov rcx, qword [rbx]
call qword [fcn.1400b838c]
xor r15d, r15d
mov rcx, rdi
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx], r15
mov byte [rbx + 0x18], r15b
call qword [case.0x14004e7db.2]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
jne 0x140053fde
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140053fb2
call qword [fcn.1400b838c]
mov rcx, qword [rbx + 0x10]
call qword [fcn.1400b838c]
mov rcx, qword [rbx]
call qword [fcn.1400b838c]
mov eax, 0x1b
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx], r15
mov byte [rbx + 0x18], r15b
jmp 0x1400540e1
test rsi, rsi
je 0x140054022
mov r8, rsi
sub r8, rdi
nop dword [rax]
movzx edx, byte [rdi]
movzx eax, byte [rdi + r8]
sub edx, eax
jne 0x140054003
inc rdi
test eax, eax
jne 0x140053ff0
test edx, edx
je 0x140054022
mov rcx, rsi
call qword [case.0x14004e7db.2]
mov qword [rbx + 8], rax
test rax, rax
jne 0x140054026
cmp qword [rbx], r15
je 0x140053fb2
xor ecx, ecx
jmp 0x140053fac
mov qword [rbx + 8], rcx
mov rdi, qword [rbx]
mov qword [rbx + 0x10], r15
test rdi, rdi
je 0x140054067
cmp byte [rdi], r15b
je 0x140054067
lea r8, [rsp + 0x20]
mov rdx, rdi
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jne 0x140054063
lea r8, [rsp + 0x20]
mov rdx, rdi
lea ecx, [rax + 0x17]
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x140054067
mov cl, 1
jmp 0x140054069
xor cl, cl
mov rax, qword [rbx]
mov byte [rbx + 0x18], cl
cmp byte [rax], r15b
je 0x1400540db
test cl, cl
jne 0x1400540db
mov rdi, 0xffffffffffffffff
nop
inc rdi
cmp byte [rax + rdi], r15b
jne 0x140054080
test rdi, rdi
je 0x140054098
cmp byte [rax + rdi - 1], 0x2e
jne 0x140054098
dec rdi
cmp rdi, 0xffff
jae 0x1400540db
lea rdx, [rdi + 1]
mov ecx, 1
call qword [fcn.1400ad8d8]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1400540c5
mov rcx, qword [rbx + 8]
cmp rcx, qword [rbx]
jmp 0x140053faa
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, rax
call fcn.140061a80
mov rax, qword [rbx + 0x10]
mov byte [rdi + rax], r15b
mov dword [r14 + 0x50], ebp
xor eax, eax
mov r15, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400a6610
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret