joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140162390
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x10], rcx
mov rsi, rdx
mov rdi, r8
mov rbx, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.140134b80
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rcx + 8]
test rsi, rsi
je 0x1401623e1
add rsi, 0xc
jmp 0x1401623e3
xor esi, esi
mov qword [rbp - 0x48], rsi
mov r14, qword [rbp + 0x30]
mov qword [rsp + 0x20], r14
mov r14, qword [rbp + 0x38]
mov qword [rsp + 0x28], r14
mov rcx, rdx
mov qword [rbp - 0x50], rcx
mov rdx, rsi
mov qword [rbp - 0x58], rdx
mov r8, rdi
mov qword [rbp - 0x60], r8
mov r9, rbx
mov qword [rbp - 0x68], r9
lea rcx, [rbp - 0x90]
call fcn.1400058c0
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x60]
mov r9, qword [rbp - 0x68]
call sub.ADVAPI32.dll_RegQueryValueExW
mov esi, eax
lea rcx, [rbp - 0x90]
call fcn.140005910
nop
xor ecx, ecx
mov qword [rbp - 0x48], rcx
cmp byte [rbp - 0x40], 0
je 0x14016245c
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.140134c10
mov eax, esi
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x14016acf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
lea rcx, [rsi + 0xc]
movsxd rdi, edx
add rdi, rsi
cmp rcx, rdi
ja 0x14016ad16
mov eax, 0xd
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
test r8d, r8d
jbe 0x14016ad51
cmp r8d, 0xa
ja 0x14016ad51
test r9b, r9b
jne 0x14016ad51
movzx edx, byte [rdi]
test edx, edx
je 0x14016ad42
lea r9, [rdi + 1]
mov rbx, r9
movzx r8d, r8b
or edx, r8d
mov byte [rdi], dl
jmp 0x14016ae32
shl r8d, 4
mov byte [rdi], r8b
mov rbx, rdi
jmp 0x14016ae32
mov edx, 4
cmp r8d, 0xff
ja 0x14016ad66
mov edx, 1
jmp 0x14016ad84
cmp r8d, 0xffff
ja 0x14016ad76
mov edx, 2
jmp 0x14016ad84
cmp r8d, 0xffffff
ja 0x14016ad84
mov edx, 3
test r9b, r9b
je 0x14016adb8
lea rax, [rdi + 2]
cmp rcx, rax
ja 0x14016ad9f
mov eax, 0xd
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
movzx eax, byte [rdi]
test eax, eax
je 0x14016adb5
mov r9, rdi
lea rdi, [r9 + 1]
or eax, 0xb
mov byte [r9], al
jmp 0x14016adb8
mov byte [rdi], 0xb0
lea eax, [rdx + 0xb]
movzx r9d, byte [rdi]
test r9d, r9d
je 0x14016add6
mov r10, rdi
lea rdi, [r10 + 1]
movzx eax, al
or eax, r9d
mov byte [r10], al
jmp 0x14016addb
shl eax, 4
mov byte [rdi], al
cmp rdi, rcx
jae 0x14016ae05
cmp byte [rdi], 0
je 0x14016ae05
cmp r8d, 0x1000
jae 0x14016ae02
mov eax, r8d
shr eax, 8
add eax, 0xc0
mov byte [rdi], al
and r8d, 0xff
inc rdi
test edx, edx
jbe 0x14016ae27
cmp rcx, rdi
jbe 0x14016ae2c
mov rax, rdi
lea rdi, [rax + 1]
mov byte [rax], r8b
shr r8d, 8
dec edx
test edx, edx
ja 0x14016ae09
mov rbx, rdi
jmp 0x14016ae32
mov rbx, rdi
jmp 0x14016ae32
inc rdi
mov rbx, rdi
mov eax, dword [rsi]
add eax, dword [rsi + 4]
mov edx, dword [rsi + 8]
lea edi, [rax + rdx + 0x599d99ad]
call fcn.14008d0f0
xor eax, edi
mov dword [rsi + 0xc], eax
mov rax, rbx
sub rax, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x140176820
Capabilities:
Get token membership

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp + 0x10], rcx
mov rdi, rdx
mov rsi, r8
xor edx, edx
mov dword [rbp - 0x40], edx
mov dword [rbp - 0x48], edx
lea rdx, [rbp - 0x48]
cmp dword [rcx], ecx
call fcn.140134b80
mov rcx, qword [rbp + 0x10]
mov rbx, qword [rcx + 8]
mov qword [rbp + 0x20], rsi
cmp byte [rsi], 0
jne 0x140176870
xor eax, eax
jmp 0x140176875
mov eax, 1
mov dword [rbp - 0x40], eax
test rdi, rdi
jne 0x140176882
xor r14d, r14d
jmp 0x140176886
lea r14, [rdi + 0x10]
mov qword [rbp - 0x50], r14
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
lea r8, [rbp - 0x40]
mov qword [rbp - 0x58], r8
mov rcx, rbx
mov qword [rbp - 0x60], rcx
mov rdx, r14
mov qword [rbp - 0x68], rdx
lea rcx, [rbp - 0x90]
call fcn.1400058c0
mov r8, qword [rbp - 0x58]
mov rcx, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x68]
call sub.ADVAPI32.dll_CheckTokenMembership
mov esi, eax
lea rcx, [rbp - 0x90]
call fcn.140005910
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor ecx, ecx
mov qword [rbp - 0x50], rcx
test esi, esi
setne sil
movzx esi, sil
cmp dword [rbp - 0x40], 0
setne cl
mov rbx, qword [rbp + 0x20]
mov byte [rbx], cl
cmp byte [rbp - 0x48], 0
je 0x140176907
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.140134c10
call fcn.1400036e7
mov dword [rax + 8], edi
movzx eax, sil
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x14017c700
Capabilities:
Delete registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x10], rcx
mov rsi, rdx
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.140134b80
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rcx + 8]
test rsi, rsi
je 0x14017c748
add rsi, 0xc
jmp 0x14017c74a
xor esi, esi
mov qword [rbp - 0x48], rsi
mov rcx, rdx
mov qword [rbp - 0x50], rcx
mov rdx, rsi
mov qword [rbp - 0x58], rdx
lea rcx, [rbp - 0x80]
call fcn.1400058c0
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x58]
call sub.ADVAPI32.dll_RegDeleteValueW
mov esi, eax
lea rcx, [rbp - 0x80]
call fcn.140005910
nop
xor ecx, ecx
mov qword [rbp - 0x48], rcx
cmp byte [rbp - 0x40], 0
je 0x14017c795
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.140134c10
mov eax, esi
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14017c9c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x10], rcx
mov rsi, rdx
mov rdi, r8
mov rbx, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.140134b80
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rcx + 8]
test rsi, rsi
je 0x14017ca11
add rsi, 0xc
jmp 0x14017ca13
xor esi, esi
mov qword [rbp - 0x48], rsi
mov r14, qword [rbp + 0x30]
mov qword [rsp + 0x20], r14
mov r14, qword [rbp + 0x38]
mov qword [rsp + 0x28], r14
mov rcx, rdx
mov qword [rbp - 0x50], rcx
mov rdx, rsi
mov qword [rbp - 0x58], rdx
mov r8, rdi
mov qword [rbp - 0x60], r8
mov r9, rbx
mov qword [rbp - 0x68], r9
lea rcx, [rbp - 0x90]
call fcn.1400058c0
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x60]
mov r9, qword [rbp - 0x68]
call sub.ADVAPI32.dll_RegQueryValueExW
mov esi, eax
lea rcx, [rbp - 0x90]
call fcn.140005910
nop
xor ecx, ecx
mov qword [rbp - 0x48], rcx
cmp byte [rbp - 0x40], 0
je 0x14017ca8c
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.140134c10
mov eax, esi
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1401a3f60
Capabilities:
Hash data using murmur3

Disassembly:
push rdi
push rsi
sub rsp, 0x28
mov esi, ecx
cmp edx, 0xffffffff
jne 0x1401a3f74
mov edi, 0xd5313557
jmp 0x1401a3f9b
mov ecx, edx
call fcn.1401a3e90
mov rdx, rax
lea rcx, [0x14055bc28]
lea r8, [0x14055fe10]
call fcn.140091210
mov rcx, rax
call fcn.1401a3e20
mov edi, eax
mov eax, edi
rol eax, 0xd
add eax, edi
mov edi, eax
xor edi, esi
mov eax, edi
rol eax, 0xf
add eax, edi
add rsp, 0x28
pop rsi
pop rdi
ret
Function at 0x1401b35a0
Capabilities:
Create process on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0xf0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov rax, qword [rbp + 0x48]
test rcx, rcx
jne 0x1401b35d5
xor ecx, ecx
jmp 0x1401b35e1
add rcx, 0xc
mov qword [rbp - 0x40], rcx
mov rcx, qword [rbp - 0x40]
test rdx, rdx
jne 0x1401b35ea
xor edx, edx
jmp 0x1401b35f6
add rdx, 0xc
mov qword [rbp - 0x48], rdx
mov rdx, qword [rbp - 0x48]
xor r10d, r10d
cmp byte [rbp + 0x30], 0
setne r10b
test rax, rax
jne 0x1401b360b
xor r11d, r11d
jmp 0x1401b3617
add rax, 0xc
mov qword [rbp - 0x50], rax
mov r11, qword [rbp - 0x50]
mov dword [rsp + 0x20], r10d
mov eax, dword [rbp + 0x38]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r11
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x48], rax
mov qword [rbp - 0x58], rcx
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x68], r8
mov qword [rbp - 0x70], r9
lea rcx, [rbp - 0x98]
call fcn.1400058c0
mov rcx, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x68]
mov r9, qword [rbp - 0x70]
call sub.KERNEL32.dll_CreateProcessW
mov esi, eax
lea rcx, [rbp - 0x98]
call fcn.140005910
xor eax, eax
test esi, esi
setne al
movzx eax, al
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1401b4720
Capabilities:
Create service

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x108
lea rbp, [rsp + 0x140]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x90], xmm4
movaps xmmword [rbp - 0x80], xmm4
movaps xmmword [rbp - 0x70], xmm4
movaps xmmword [rbp - 0x60], xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov rsi, rcx
mov edi, r9d
mov rcx, qword [rbp + 0x48]
mov rax, qword [rbp + 0x50]
mov r9, qword [rbp + 0x60]
mov r10, qword [rbp + 0x68]
mov r11, qword [rbp + 0x70]
test rdx, rdx
jne 0x1401b477e
xor ebx, ebx
jmp 0x1401b478a
add rdx, 0xc
mov qword [rbp - 0x40], rdx
mov rbx, qword [rbp - 0x40]
test r8, r8
jne 0x1401b4794
xor r14d, r14d
jmp 0x1401b47a0
add r8, 0xc
mov qword [rbp - 0x48], r8
mov r14, qword [rbp - 0x48]
test rcx, rcx
jne 0x1401b47aa
xor r15d, r15d
jmp 0x1401b47b6
add rcx, 0xc
mov qword [rbp - 0x50], rcx
mov r15, qword [rbp - 0x50]
test rax, rax
jne 0x1401b47c0
xor r12d, r12d
jmp 0x1401b47cc
add rax, 0xc
mov qword [rbp - 0x58], rax
mov r12, qword [rbp - 0x58]
test r9, r9
jne 0x1401b47d6
xor r13d, r13d
jmp 0x1401b47e2
add r9, 0xc
mov qword [rbp - 0x60], r9
mov r13, qword [rbp - 0x60]
test r10, r10
jne 0x1401b47eb
xor eax, eax
jmp 0x1401b47f7
add r10, 0xc
mov qword [rbp - 0x70], r10
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x68], rax
test r11, r11
jne 0x1401b4808
xor edx, edx
mov qword [rbp - 0x80], rdx
jmp 0x1401b4818
add r11, 0xc
mov qword [rbp - 0x78], r11
mov rdx, qword [rbp - 0x78]
mov qword [rbp - 0x80], rdx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, dword [rbp + 0x30]
mov dword [rsp + 0x20], ecx
mov ecx, dword [rbp + 0x38]
mov dword [rsp + 0x28], ecx
mov ecx, dword [rbp + 0x40]
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r12
mov r15, qword [rbp + 0x58]
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r13
mov r15, qword [rbp - 0x68]
mov qword [rsp + 0x58], r15
mov r15, qword [rbp - 0x80]
mov qword [rsp + 0x60], r15
mov rcx, rsi
mov qword [rbp - 0x98], rcx
mov rdx, rbx
mov qword [rbp - 0xa0], rdx
mov r8, r14
mov qword [rbp - 0xa8], r8
mov r9d, edi
mov dword [rbp - 0x84], r9d
lea rcx, [rbp - 0xd0]
call fcn.1400058c0
mov rcx, qword [rbp - 0x98]
mov rdx, qword [rbp - 0xa0]
mov r8, qword [rbp - 0xa8]
mov r9d, dword [rbp - 0x84]
call sub.ADVAPI32.dll_CreateServiceW
mov rsi, rax
lea rcx, [rbp - 0xd0]
call fcn.140005910
call fcn.1400036e7
mov rdi, rax
mov qword [rbp - 0x90], rdi
call sub.KERNEL32.dll_GetLastError
mov rdx, qword [rbp - 0x90]
mov dword [rdx + 8], eax
mov rax, rsi
add rsp, 0x108
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1401b4980
Capabilities:
Delete service

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x90]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rsi, rcx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rsi
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x70]
call fcn.1400058c0
mov rcx, qword [rbp - 0x48]
call sub.ADVAPI32.dll_DeleteService
mov esi, eax
lea rcx, [rbp - 0x70]
call fcn.140005910
call fcn.1400036e7
mov rdi, rax
mov qword [rbp - 0x40], rdi
call sub.KERNEL32.dll_GetLastError
mov rdx, qword [rbp - 0x40]
mov dword [rdx + 8], eax
xor eax, eax
test esi, esi
setne al
movzx eax, al
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1401b4ad0
Capabilities:
Start service

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov rsi, rcx
mov edi, edx
mov ebx, r8d
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rsi
mov qword [rbp - 0x50], rcx
mov edx, edi
mov dword [rbp - 0x3c], edx
mov r8d, ebx
mov dword [rbp - 0x40], r8d
lea rcx, [rbp - 0x78]
call fcn.1400058c0
mov rcx, qword [rbp - 0x50]
mov edx, dword [rbp - 0x3c]
mov r8d, dword [rbp - 0x40]
call sub.ADVAPI32.dll_StartServiceA
mov esi, eax
lea rcx, [rbp - 0x78]
call fcn.140005910
call fcn.1400036e7
mov rdi, rax
mov qword [rbp - 0x48], rdi
call sub.KERNEL32.dll_GetLastError
mov rdx, qword [rbp - 0x48]
mov dword [rdx + 8], eax
mov eax, esi
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x14020d8e0
Capabilities:
Hash data using murmur3

Disassembly:
xor eax, eax
mov r8d, dword [rdx + 8]
test r8d, r8d
jle 0x14020d91e
mov r9d, eax
lea r9, [rdx + r9*8 + 0x10]
mov r9, qword [r9]
mov r10, r9
test r10, r10
jne 0x14020d903
xor r10d, r10d
jmp 0x14020d907
mov r10d, dword [r9 + 0x14]
mov r9d, ecx
rol r9d, 0xd
add r9d, ecx
mov ecx, r9d
xor ecx, r10d
inc eax
cmp r8d, eax
jg 0x14020d8eb
mov eax, ecx
rol eax, 0xf
add eax, ecx
ret

Function at 0x140210f80
Capabilities:
Hash data using murmur3

Disassembly:
push rdi
push rsi
sub rsp, 0x28
mov esi, ecx
mov edi, edx
call fcn.1400010ce
mov eax, dword [rax]
add eax, 0x165667b1
add eax, 8
imul edx, esi, 0xc2b2ae3d
add edx, eax
rol edx, 0x11
imul eax, edx, 0x27d4eb2f
imul edx, edi, 0xc2b2ae3d
add edx, eax
rol edx, 0x11
imul eax, edx, 0x27d4eb2f
mov edx, eax
shr edx, 0xf
xor eax, edx
imul eax, eax, 0x85ebca77
mov edx, eax
shr edx, 0xd
xor eax, edx
imul eax, eax, 0xc2b2ae3d
mov edx, eax
shr edx, 0x10
xor eax, edx
add rsp, 0x28
pop rsi
pop rdi
ret
Function at 0x140210ff0
Capabilities:
Hash data using murmur3

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
mov edi, edx
mov ebx, r8d
call fcn.1400010ce
mov eax, dword [rax]
add eax, 0x165667b1
add eax, 0xc
imul edx, esi, 0xc2b2ae3d
add edx, eax
rol edx, 0x11
imul eax, edx, 0x27d4eb2f
imul edx, edi, 0xc2b2ae3d
add edx, eax
rol edx, 0x11
imul eax, edx, 0x27d4eb2f
imul edx, ebx, 0xc2b2ae3d
add edx, eax
rol edx, 0x11
imul eax, edx, 0x27d4eb2f
mov edx, eax
shr edx, 0xf
xor eax, edx
imul eax, eax, 0x85ebca77
mov edx, eax
shr edx, 0xd
xor eax, edx
imul eax, eax, 0xc2b2ae3d
mov edx, eax
shr edx, 0x10
xor eax, edx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140215e90
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push rdi
push rsi
push rbp
push rbx
sub rsp, 0x28
mov rsi, r8
mov edi, edx
xor ebx, ebx
mov ebp, dword [rsi + 8]
test ebp, ebp
jle 0x140215ec4
mov ecx, ebx
mov rcx, qword [rsi + rcx*8 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov edx, edi
rol edx, 0xd
add edx, edi
mov edi, eax
xor edi, edx
inc ebx
cmp ebp, ebx
jg 0x140215ea6
mov eax, edi
rol eax, 0xf
add eax, edi
add rsp, 0x28
pop rbx
pop rbp
pop rsi
pop rdi
ret

Function at 0x140215ee0
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push rdi
push rsi
push rbp
push rbx
sub rsp, 0x28
mov rsi, r8
mov edi, edx
xor ebx, ebx
mov ebp, dword [rsi + 8]
test ebp, ebp
jle 0x140215f14
mov ecx, ebx
mov rcx, qword [rsi + rcx*8 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov edx, edi
rol edx, 0xd
add edx, edi
mov edi, eax
xor edi, edx
inc ebx
cmp ebp, ebx
jg 0x140215ef6
mov eax, edi
rol eax, 0xf
add eax, edi
add rsp, 0x28
pop rbx
pop rbp
pop rsi
pop rdi
ret
Function at 0x2fbac1dc8
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x2fbac90a0], 0
je 0x2fbac1deb
mov edx, 1
jmp 0x2fbac1fb3
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
xor edx, edx
mov rcx, qword [rax + 0x10]
xor eax, eax
mov rbx, qword [rcx + 0x30]
test rbx, rbx
je 0x2fbac1e4e
movsxd rdx, dword [rbx + 0x3c]
mov edx, dword [rbx + rdx + 0x88]
test edx, edx
je 0x2fbac1e46
lea rax, [rdx + rbx]
mov edx, dword [rax + 0xc]
add rdx, rbx
mov r8d, dword [rdx]
or r8d, 0x20202020
cmp r8d, 0x6c64746e
jne 0x2fbac1e46
mov edx, dword [rdx + 4]
or edx, 0x20202020
cmp edx, 0x6c642e6c
je 0x2fbac1e51
mov rcx, qword [rcx]
mov rdx, rbx
jmp 0x2fbac1e00
mov rbx, rdx
xor edx, edx
test rax, rax
je 0x2fbac1fb3
mov ebp, dword [rax + 0x1c]
mov edi, dword [rax + 0x24]
xor esi, esi
lea r13, [0x2fbac90a8]
mov edx, dword [rax + 0x18]
mov eax, dword [rax + 0x20]
add rdi, rbx
add rbp, rbx
lea r10d, [rdx - 1]
add rax, rbx
lea r12, [rax + r10*4]
add r10, r10
add r10, rdi
mov ecx, dword [r12]
add rcx, rbx
cmp word [rcx], 0x775a
jne 0x2fbac1ec4
call fcn.2fbac1d10
mov r11d, esi
inc esi
shl r11, 4
add r11, r13
mov dword [r11], eax
movzx eax, word [r10]
mov eax, dword [rbp + rax*4]
mov dword [r11 + 4], eax
xor eax, eax
mov qword [r11 + 8], rax
cmp esi, 0x1f4
je 0x2fbac1ed6
sub r12, 4
lea rax, [r10 - 2]
cmp rdi, r10
je 0x2fbac1ed6
mov r10, rax
jmp 0x2fbac1e88
mov dword [0x2fbac90a0], esi
lea ebp, [rsi - 1]
lea r10, [0x2fbac90a8]
test ebp, ebp
je 0x2fbac1f3d
lea rdx, [0x2fbac90a0]
xor ecx, ecx
lea eax, [rcx + 1]
mov r8d, dword [rdx + 0xc]
mov rcx, rax
shl rax, 4
add rax, r10
mov r9d, dword [rax + 4]
cmp r9d, r8d
jae 0x2fbac1f31
mov edi, dword [rdx + 8]
mov r11, qword [rdx + 0x10]
mov r12d, dword [rax]
mov dword [rdx + 0xc], r9d
mov r9, qword [rax + 8]
mov dword [rdx + 8], r12d
mov qword [rdx + 0x10], r9
mov dword [rax], edi
mov dword [rax + 4], r8d
mov qword [rax + 8], r11
add rdx, 0x10
cmp ecx, ebp
jb 0x2fbac1ef3
dec ebp
jmp 0x2fbac1ee6
mov eax, dword [0x2fbac90ac]
mov r13d, dword [0x2fbac90bc]
xor edi, edi
lea r15, [0x2fbac4440]
sub r13d, eax
lea r12, [rbx + rax]
mov r14d, edi
cmp edi, r13d
jae 0x2fbac1de1
lea rdx, [r12 + rdi]
mov r8d, 3
mov rcx, r15
inc rdi
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x2fbac1f5a
lea rdi, [0x2fbac90a0]
test r14d, r14d
je 0x2fbac1de1
add rdi, 0x10
cmp esi, ebp
je 0x2fbac1de1
mov ecx, dword [rdi - 4]
mov r8d, r13d
mov edx, r14d
inc ebp
add rcx, rbx
call fcn.2fbac1d38
mov qword [rdi], rax
jmp 0x2fbac1f8f
mov eax, edx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x2fbac26a0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbx, rcx
mov ecx, 0x800
call sub.msvcrt.dll_malloc
mov r8d, 0x800
mov rcx, rbx
mov rbp, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov rcx, rbp
lea rdx, [0x2fbac5060]
call sub.msvcrt.dll_fopen
mov r12, qword [0x2fbac5320]
lea rdx, [rsp + 0x38]
mov rdi, rax
movsxd rax, dword [r12]
mov rcx, rdi
mov qword [rsp + 0x38], rax
call sub.msvcrt.dll_fsetpos
movsxd r8, dword [r12 + 4]
mov rcx, r8
mov qword [rsp + 0x28], r8
call sub.msvcrt.dll_malloc
mov r8, qword [rsp + 0x28]
mov r9, rdi
mov edx, 1
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_fread
mov rcx, rdi
mov rsi, rax
call sub.msvcrt.dll_fclose
mov edx, dword [r12 + 4]
movsxd r8, esi
xor r9d, r9d
lea rax, [rbx + r8]
mov ecx, edx
mov rdi, rax
sub ecx, esi
cmp edx, esi
lea rsi, [r12 + r8 + 0x18]
cmovl rcx, r9
lea r8, [r12 + 8]
rep movsb byte [rdi], byte [rsi]
mov rcx, rbx
call fcn.2fbac1495
mov rcx, rbp
call sub.msvcrt.dll_free
mov rcx, rbx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sub.msvcrt.dll_free

Function at 0x2fbac29d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.2fbac3610
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.2fbac3610
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x2fbac2a40
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x2fbacb054]
mov rbx, rcx
test esi, esi
jle 0x2fbac2b70
mov rax, qword [0x2fbacb058]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2fbac2a8b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2fbac2b15
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2fbac2a70
mov rcx, rbx
call fcn.2fbac32a0
mov rdi, rax
test rax, rax
je 0x2fbac2b92
mov rax, qword [0x2fbacb058]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.2fbac33e0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x2fbacb058]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2fbac2b77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2fbac2b0e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2fbac2b20
add dword [0x2fbacb054], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x2fbacb058]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2fbac2b0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2fbac29d0
nop dword [rax]
xor esi, esi
jmp 0x2fbac2a98
mov rax, qword [0x2fbacb058]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.2fbac29d0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.2fbac29d0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x2fbac2f10
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x2fbacb080]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2fbacb060]
test rbx, rbx
je 0x2fbac2f6c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x2fbac2f63
test rsi, rsi
je 0x2fbac2f63
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2fbac2f48
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x2fbac32a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x2fbac5290]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2fbac32c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2fbac32c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2fbac32c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x2fbac331d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x2fbac3314
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x2fbac32c0
add rax, 0x28
cmp rax, r9
jne 0x2fbac3300
xor eax, eax
ret

Function at 0x2fbac3320
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2fbac5290]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x2fbac333f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x2fbac3348
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x2fbac333f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x2fbac33e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2fbac5290]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x2fbac33ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x2fbac3408
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret