joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ac420
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push r14
push r15
sub rsp, 0x20
mov r14, rcx
mov esi, r8d
mov ecx, 0x4000
mov r15, rdx
call fcn.1401313c0
mov rbp, rax
test rax, rax
jne 0x1400ac45b
lea eax, [rbp + 4]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
mov qword [rsp + 0x48], rdi
cmp esi, 0xffffffff
je 0x1400ac482
cmp ebx, esi
jae 0x1400ac4ff
mov eax, esi
sub eax, ebx
mov r8d, eax
cmp eax, 0x4000
jb 0x1400ac488
mov r8d, 0x4000
mov r9, r14
mov edx, 1
mov rcx, rbp
call fcn.14013a718
mov rdi, rax
test rax, rax
je 0x1400ac4e4
mov r9, r15
mov r8, rax
mov edx, 1
mov rcx, rbp
call fcn.14013a434
cmp rax, rdi
jne 0x1400ac4bc
add ebx, edi
jmp 0x1400ac467
mov rcx, rbp
call fcn.140125238
mov ecx, 2
call fcn.14012f8d4
mov rcx, rax
lea rdx, str._fcopy:_write_error_n
call fcn.14006bf80
mov eax, 0xa
jmp 0x1400ac509
mov rcx, r14
call fcn.140139a98
test eax, eax
je 0x1400ac4ff
mov rcx, rbp
call fcn.140125238
mov eax, reloc.WS2_32.dll_inet_addr
jmp 0x1400ac509
mov rcx, rbp
call fcn.140125238
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rsi
ret

Function at 0x1400aca80
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x290
mov rax, qword [0x1401b7030]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rcx
movzx ecx, byte [rcx]
call fcn.140134f80
test eax, eax
je 0x1400acab0
cmp byte [rbx + 1], 0x3a
je 0x1400acad3
lea r9, [rsp + 0x50]
mov edx, 0x104
lea r8, [rsp + 0x170]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea rbx, [rsp + 0x170]
mov r8d, 3
mov qword [rsp + 0x50], rbx
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1401322d0
mov dword [rsp + 0x38], 0x104
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x4c]
lea rax, [rsp + 0x44]
mov byte [rsp + 0x43], 0
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x170]
lea rax, [rsp + 0x48]
mov r8d, 0x104
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea rcx, [rsp + 0x60]
call fcn.14013696c
mov rcx, rax
lea rdx, [0x1401a09c4]
mov r8d, 3
call fcn.14012e560
test eax, eax
je 0x1400acb91
mov r8d, 4
lea rdx, str.VFAT
lea rcx, [rsp + 0x60]
call fcn.14012e560
test eax, eax
je 0x1400acb91
mov r8d, 4
lea rdx, str.HPFS
lea rcx, [rsp + 0x60]
call fcn.14012e560
test eax, eax
je 0x1400acb91
xor eax, eax
jmp 0x1400acb96
mov eax, 1
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14011c340
add rsp, 0x290
pop rbx
ret
Function at 0x1400ad770
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, dword [0x1401bebc4]
mov rbx, rcx
mov ecx, dword [0x1401c02f8]
test eax, eax
jne 0x1400ad7be
mov r8d, edx
mov rdx, rbx
call fcn.140135c54
mov edi, eax
lea ecx, [rax + 1]
test ecx, 0xfffffffe
jne 0x1400ad88d
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp eax, 1
jne 0x1400ad817
shr edx, 1
mov esi, edx
mov r8d, edx
add rsi, rbx
mov rdx, rsi
call fcn.140135c54
mov edi, eax
mov ecx, eax
dec eax
cmp eax, 0xfffffffd
ja 0x1400ad8b6
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rsi]
lea rsi, [rsi + 1]
mov byte [rbx], al
inc rbx
cmp al, 0xa
jne 0x1400ad80b
mov word [rbx - 1], 0xa0d
inc rbx
inc edi
add ecx, 0xffffffff
jne 0x1400ad7f0
mov eax, edi
sub rbx, rax
jmp 0x1400ad88d
lea r8d, [rdx - 1]
mov rsi, rbx
mov rdx, rbx
call fcn.140135c54
mov edi, eax
mov ecx, eax
lea eax, [rdi - 1]
cmp eax, 0xfffffffd
ja 0x1400ad8b6
mov byte [rdi + rbx], 0xa
nop word [rax + rax]
movzx eax, byte [rsi]
lea rsi, [rsi + 1]
mov byte [rbx], al
mov rdx, rbx
inc rbx
cmp al, 0xd
jne 0x1400ad85d
cmp byte [rsi], 0xa
jne 0x1400ad85d
mov rbx, rdx
dec edi
add ecx, 0xffffffff
jne 0x1400ad840
test edi, edi
jne 0x1400ad87e
mov ecx, dword [0x1401c02f8]
mov edi, 1
mov r8d, edi
mov rdx, rbx
call fcn.140135c54
jmp 0x1400ad88d
mov eax, edi
lea ecx, [rdi - 1]
sub rbx, rax
cmp byte [rcx + rbx], 0x1a
cmove edi, ecx
mov ecx, dword [0x1401c02f0]
mov r8d, edi
mov rdx, rbx
call fcn.1400a4de0
mov dword [0x1401c02f0], eax
mov eax, dword [0x1401c0708]
add eax, edi
mov dword [0x1401c0708], eax
cmp eax, edi
jb 0x1400ad8c8
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea rdx, str.file_exceeds_Zips_4GB_uncompressed_size_limit
mov ecx, 6
call fcn.1400a8390
int3
Function at 0x1400adff0
Capabilities:
Get disk information
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
cmp dword [0x1401bebd4], 1
mov rbx, rcx
jne 0x1400ae11b
xor esi, esi
mov dword [0x1401bebd4], 2
test rcx, rcx
je 0x1400ae033
movzx eax, byte [rcx]
cmp al, 0x80
jae 0x1400ae033
cmp byte [rcx + 1], 0x3a
jne 0x1400ae033
lea rcx, [0x14020ab40]
movzx edi, byte [rax + rcx]
jmp 0x1400ae035
mov edi, esi
xor ecx, ecx
mov dword [0x1401c0710], 0x28
mov dword [0x1401c0714], 0x210000
call fcn.14012d7b4
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call fcn.140132260
mov rcx, rax
mov dword [rax + 0x20], 0xffffffff
mov qword [rax], rsi
mov dword [rax + 8], esi
mov qword [rax + 0xc], 1
mov dword [rax + 0x14], 0x50
call fcn.140136dc4
mov qword [0x1401c0718], rax
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x38], esi
lea rax, [rsp + 0x80]
test edi, edi
mov dword [rsp + 0x78], 0x5c3a78
mov byte [rsp + 0x78], dil
lea rdi, [0x1401c02d8]
cmove rcx, rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x88]
mov rdx, rdi
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 0xd]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x1400ae0f4
xor r8d, r8d
mov qword [0x1401beba0], rdi
mov rcx, rdi
call fcn.1400abc90
jmp 0x1400ae0fb
mov qword [0x1401beba0], rsi
test rbx, rbx
je 0x1400ae111
cmp byte [rbx], 0x80
jae 0x1400ae11b
cmp byte [rbx + 1], 0x3a
jne 0x1400ae11b
cmp byte [rbx + 2], sil
jne 0x1400ae11b
xor eax, eax
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
cmp byte [rbx], 0x2d
jne 0x1400ae138
cmp byte [rbx + 1], 0
jne 0x1400ae138
xor r8d, r8d
mov rcx, rbx
add rsp, 0x50
pop rdi
pop rsi
pop rbx
jmp fcn.1400abc90
mov rcx, 0xffffffffffffffff
nop
inc rcx
cmp byte [rbx + rcx], 0
jne 0x1400ae140
add rcx, 2
call fcn.1401313c0
mov rdi, rax
test rax, rax
jne 0x1400ae165
lea eax, [rdi + 4]
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
mov rcx, rdi
sub rcx, rbx
nop dword [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1400ae170
movzx eax, byte [rdi]
mov rbx, rdi
test al, al
je 0x1400ae1af
cmp al, 0x5c
jne 0x1400ae18f
mov byte [rbx], 0x2f
call fcn.140137290
movsxd rdx, eax
mov rcx, rbx
call fcn.140137210
movsxd rcx, eax
add rbx, rcx
movzx eax, byte [rbx]
test al, al
jne 0x1400ae188
movzx eax, byte [rdi]
mov rbx, rdi
test al, al
je 0x1400ae1d7
cmp al, 0x3a
je 0x1400ae1f9
call fcn.140137290
movsxd rdx, eax
mov rcx, rbx
call fcn.140137210
movsxd rcx, eax
add rbx, rcx
movzx eax, byte [rbx]
test al, al
jne 0x1400ae1b6
mov rsi, rdi
mov rdx, rsi
mov rcx, rdi
call fcn.1400adc00
mov rcx, rdi
mov ebx, eax
call fcn.140125238
mov eax, ebx
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
movzx eax, byte [rbx + 1]
lea rsi, [rbx + 1]
mov rbx, rsi
test al, al
je 0x1400ae229
cmp al, 0x3a
je 0x1400ae23d
call fcn.140137290
movsxd rdx, eax
mov rcx, rbx
call fcn.140137210
movsxd rcx, eax
add rbx, rcx
movzx eax, byte [rbx]
test al, al
jne 0x1400ae208
cmp rsi, rdi
jbe 0x1400ae1da
cmp byte [rsi], 0
jne 0x1400ae1da
mov eax, 0x2e
mov word [rsi], ax
jmp 0x1400ae1da
mov eax, 0xffffffff
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400b0de0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov ecx, 0x50
call fcn.140137a60
mov rdx, rdi
mov ecx, 0x4b
call fcn.140137a60
mov rdx, rdi
mov ecx, 3
call fcn.140137a60
mov rdx, rdi
mov ecx, 4
call fcn.140137a60
movsx ecx, byte [rbx + 2]
mov rdx, rdi
call fcn.140137a60
movsx ecx, byte [rbx + 3]
mov rdx, rdi
call fcn.140137a60
movsx ecx, byte [rbx + 0x3c]
mov rdx, rdi
call fcn.140137a60
movsx ecx, byte [rbx + 0x3d]
mov rdx, rdi
call fcn.140137a60
movsx ecx, byte [rbx + 6]
mov rdx, rdi
call fcn.140137a60
movsx ecx, byte [rbx + 7]
mov rdx, rdi
call fcn.140137a60
movsx ecx, byte [rbx + 8]
mov rdx, rdi
call fcn.140137a60
mov eax, dword [rbx + 8]
mov rdx, rdi
shr eax, 8
movsx ecx, al
call fcn.140137a60
movsx ecx, byte [rbx + 0xa]
mov rdx, rdi
call fcn.140137a60
movsx ecx, byte [rbx + 0xb]
mov rdx, rdi
call fcn.140137a60
movsx ecx, byte [rbx + 0xc]
mov rdx, rdi
call fcn.140137a60
mov eax, dword [rbx + 0xc]
mov rdx, rdi
shr eax, 8
movsx ecx, al
call fcn.140137a60
movsx ecx, byte [rbx + 0xe]
mov rdx, rdi
call fcn.140137a60
movsx ecx, byte [rbx + 0xf]
mov rdx, rdi
call fcn.140137a60
movsx ecx, byte [rbx + 0x10]
mov rdx, rdi
call fcn.140137a60
mov eax, dword [rbx + 0x10]
mov rdx, rdi
shr eax, 8
movsx ecx, al
call fcn.140137a60
movsx ecx, byte [rbx + 0x12]
mov rdx, rdi
call fcn.140137a60
movsx ecx, byte [rbx + 0x13]
mov rdx, rdi
call fcn.140137a60
movsx ecx, byte [rbx + 0x14]
mov rdx, rdi
call fcn.140137a60
mov eax, dword [rbx + 0x14]
mov rdx, rdi
shr eax, 8
movsx ecx, al
call fcn.140137a60
movsx ecx, byte [rbx + 0x16]
mov rdx, rdi
call fcn.140137a60
movsx ecx, byte [rbx + 0x17]
mov rdx, rdi
call fcn.140137a60
movsx ecx, byte [rbx + 0x18]
mov rdx, rdi
call fcn.140137a60
mov eax, dword [rbx + 0x18]
mov rdx, rdi
shr rax, 8
movsx ecx, al
call fcn.140137a60
movsx ecx, byte [rbx + 0x20]
mov rdx, rdi
call fcn.140137a60
mov eax, dword [rbx + 0x20]
mov rdx, rdi
shr rax, 8
movsx ecx, al
call fcn.140137a60
mov r8, qword [rbx + 0x18]
mov r9, rdi
mov rcx, qword [rbx + 0x68]
mov edx, 1
call fcn.14013a434
cmp rax, qword [rbx + 0x18]
jne 0x1400b0fc1
mov r8, qword [rbx + 0x20]
test r8, r8
je 0x1400b0fb4
mov rcx, qword [rbx + 0x50]
mov r9, rdi
mov edx, 1
call fcn.14013a434
cmp rax, qword [rbx + 0x20]
jne 0x1400b0fc1
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov eax, 0xa
add rsp, 0x20
pop rdi
ret
Function at 0x1400b13b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r14, qword [rsp + 0x68]
mov esi, edx
mov r12, qword [0x1401bebf0]
mov ebx, ecx
mov rdx, r14
mov ecx, 0x50
mov r15, r9
mov ebp, r8d
call fcn.140137a60
mov rdx, r14
mov ecx, 0x4b
call fcn.140137a60
mov rdx, r14
mov ecx, 5
call fcn.140137a60
mov rdx, r14
mov ecx, 6
call fcn.140137a60
mov rdx, r14
xor ecx, ecx
call fcn.140137a60
mov rdx, r14
xor ecx, ecx
call fcn.140137a60
mov rdx, r14
xor ecx, ecx
call fcn.140137a60
mov rdx, r14
xor ecx, ecx
call fcn.140137a60
movsx edi, bl
mov rdx, r14
mov ecx, edi
call fcn.140137a60
shr ebx, 8
mov rdx, r14
movsx ebx, bl
mov ecx, ebx
call fcn.140137a60
mov rdx, r14
mov ecx, edi
call fcn.140137a60
mov rdx, r14
mov ecx, ebx
call fcn.140137a60
movsx ecx, sil
mov rdx, r14
call fcn.140137a60
mov eax, esi
mov rdx, r14
shr eax, 8
movsx ecx, al
call fcn.140137a60
mov eax, esi
mov rdx, r14
shr eax, 0x10
movsx ecx, al
call fcn.140137a60
shr esi, 0x18
mov rdx, r14
movsx ecx, sil
call fcn.140137a60
movsx ecx, bpl
mov rdx, r14
call fcn.140137a60
mov eax, ebp
mov rdx, r14
shr eax, 8
movsx ecx, al
call fcn.140137a60
mov eax, ebp
mov rdx, r14
shr eax, 0x10
movsx ecx, al
call fcn.140137a60
shr ebp, 0x18
mov rdx, r14
movsx ecx, bpl
call fcn.140137a60
movsx ecx, r15b
mov rdx, r14
call fcn.140137a60
mov rax, r15
mov rdx, r14
shr rax, 8
movsx ecx, al
call fcn.140137a60
test r15, r15
je 0x1400b1529
mov r9, r14
mov r8, r15
mov edx, 1
mov rcx, r12
call fcn.14013a434
cmp rax, r15
je 0x1400b1529
mov eax, 0xa
jmp 0x1400b152b
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400b2690
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov r10, rcx
mov eax, 0x12345678
movzx ecx, byte [rcx]
mov r9d, 0x23456789
mov dword [0x1401c0738], eax
mov r8d, 0x34567890
mov dword [0x1401c073c], r9d
mov dword [0x1401c0740], r8d
test cl, cl
je 0x1400b2733
mov r11, qword [0x14020b0f0]
nop word [rax + rax]
xor rcx, qword [0x1401c0738]
lea r10, [r10 + 1]
movzx edx, cl
mov ecx, eax
shr ecx, 8
mov eax, dword [r11 + rdx*4]
mov edx, r8d
xor eax, ecx
shr edx, 8
movzx ecx, al
add ecx, r9d
mov dword [0x1401c0738], eax
imul r9d, ecx, 0x8088405
inc r9d
mov ecx, r9d
mov dword [0x1401c073c], r9d
shr rcx, 0x18
xor rcx, qword [0x1401c0740]
movzx ecx, cl
mov r8d, dword [r11 + rcx*4]
movzx ecx, byte [r10]
xor r8d, edx
mov dword [0x1401c0740], r8d
test cl, cl
jne 0x1400b26d0
ret
Function at 0x1400b2a40
Capabilities:
Generate random numbers using the delphi lcg
Write file on windows

Disassembly:
push rsi
push rdi
push r15
sub rsp, 0x20
cmp qword [0x1401bec08], 0
mov r15, r9
mov rdi, r8
mov rsi, rcx
je 0x1400b2b3a
mov qword [rsp + 0x40], rbx
mov rbx, rcx
mov r11d, edi
test edi, edi
je 0x1400b2b35
mov r9d, dword [0x1401c0740]
mov r10d, dword [0x1401c0738]
mov qword [rsp + 0x48], rbp
mov ebp, dword [0x1401c073c]
mov qword [rsp + 0x50], r14
mov r14, qword [0x14020b0f0]
nop dword [rax + rax]
movsx rdx, byte [rbx]
lea rbx, [rbx + 1]
mov r8d, r9d
mov rax, rdx
xor rax, qword [0x1401c0738]
and r8d, 0xfffd
movzx ecx, al
or r8d, 2
mov eax, r10d
shr eax, 8
mov r10d, dword [r14 + rcx*4]
mov ecx, r9d
xor r10d, eax
shr ecx, 8
movzx eax, r10b
add eax, ebp
mov dword [0x1401c0738], r10d
imul ebp, eax, 0x8088405
inc ebp
mov eax, ebp
mov dword [0x1401c073c], ebp
shr rax, 0x18
xor rax, qword [0x1401c0740]
movzx eax, al
mov r9d, dword [r14 + rax*4]
mov eax, r8d
xor eax, 1
xor r9d, ecx
imul eax, r8d
mov dword [0x1401c0740], r9d
shr eax, 8
xor al, dl
mov byte [rbx - 1], al
add r11d, 0xffffffff
jne 0x1400b2aa0
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov r9, r15
mov r8, rdi
mov edx, 1
mov rcx, rsi
add rsp, 0x20
pop r15
pop rdi
pop rsi
jmp fcn.14013a434
Function at 0x1400b4690
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401b7030]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp dword [0x1401bec98], 0
je 0x1400b46c6
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14011c340
add rsp, 0x50
pop rbx
ret
mov ebx, 1
mov qword [rsp + 0x60], rsi
mov edx, ebx
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rsi, rax
test rax, rax
je 0x1400b4846
xchg dword [0x1401bec18], eax
mov qword [rsp + 0x68], rdi
movsxd rdi, eax
test eax, eax
je 0x1400b472e
mov eax, edi
mov rcx, rsi
xchg dword [0x1401bec18], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x1401bec98]
jmp 0x1400b4841
lea rcx, [0x14020d260]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor edx, edx
lea rcx, [0x1401da860]
mov r8d, 0x124
call fcn.1401216a0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400b4830
lea r8, [rsp + 0x3c]
mov dword [rsp + 0x38], ebx
lea rdx, str.SeBackupPrivilege
mov dword [rsp + 0x44], 2
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
xor edi, edi
test eax, eax
je 0x1400b47cb
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x28], rdi
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1400b47cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400b47cb
mov dword [0x1401bec04], ebx
jmp 0x1400b4825
cmp dword [0x1401bec04], edi
jne 0x1400b4825
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeSecurityPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1400b4825
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x28], rdi
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1400b4825
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1401bec9c]
test eax, eax
cmove ecx, ebx
mov dword [0x1401bec9c], ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
mov dword [0x1401bec98], ebx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14011c340
add rsp, 0x50
pop rbx
ret
Function at 0x1400bb7f0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov edi, edx
movsxd rcx, r8d
call fcn.1400bb230
mov r10d, eax
mov r8d, 0x80000000
xor r9d, r9d
test r10d, r8d
je 0x1400bb823
xor r9d, ebx
lea ecx, [r8 - 1]
test r10d, ecx
je 0x1400bb83b
mov ecx, ebx
shr r8d, 1
mov eax, ebx
shr ecx, 1
mov ebx, ecx
xor ebx, 0xedb88320
and al, 1
cmove ebx, ecx
jmp 0x1400bb812
mov rbx, qword [rsp + 0x30]
xor r9d, edi
mov eax, r9d
add rsp, 0x20
pop rdi
ret
Function at 0x1400f2e10
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
mov r9, qword [rcx + 0x18]
cmp rbx, 0x20
jb 0x1400f2eed
mov rdx, qword [rcx + 8]
mov r11, r9
mov r8, qword [rcx + 0x10]
mov rax, rdx
mov r10, qword [rcx + 0x20]
rol r11, 0xc
rol rax, 1
add r11, rax
mov qword [rsp + 0x30], rsi
movabs rsi, 0x9e3779b185ebca87
mov qword [rsp + 0x38], rdi
movabs rdi, 0xc2b2ae3d27d4eb4f
mov rax, r8
rol rax, 7
add r11, rax
mov rax, r10
imul rdx, rdi
imul r9, rdi
imul r8, rdi
imul r10, rdi
mov rdi, qword [rsp + 0x38]
rol rax, 0x12
add r11, rax
rol rdx, 0x1f
imul rdx, rsi
movabs rax, 0x7a1435883d4d519d
rol r9, 0x1f
xor r11, rdx
rol r8, 0x1f
imul r11, rsi
imul r9, rsi
imul r8, rsi
sub r11, rax
rol r10, 0x1f
imul r10, rsi
xor r11, r8
imul r11, rsi
sub r11, rax
xor r11, r9
movabs r9, 0x85ebca77c2b2ae63
imul r11, rsi
sub r11, rax
xor r11, r10
imul r11, rsi
mov rsi, qword [rsp + 0x30]
add r9, r11
jmp 0x1400f2efa
movabs rdx, 0x27d4eb2f165667c5
add r9, rdx
add r9, rbx
lea rdx, [rcx + 0x28]
mov rcx, r9
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400f2b50

Function at 0x140111990
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rbx + 0x30], 0
jne 0x140111a49
lea rax, [rsp + 0x48]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x140111750]
xor edx, edx
mov dword [rsp + 0x20], 4
xor ecx, ecx
call fcn.14013af14
mov ecx, dword [rsp + 0x48]
mov dword [rbx + 0x68], ecx
mov qword [rbx + 0x60], rax
test rax, rax
je 0x140111a5b
mov edx, dword [rbx + 0x34]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x140111a7f
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x140111a25
lea rcx, [rbx + 8]
mov dword [rbx + 0x30], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.140111560
lea rdx, [0x1401b3410]
lea rcx, [rsp + 0x40]
call fcn.140121974
int3
lea rdx, [0x1401b33e0]
lea rcx, [rsp + 0x40]
call fcn.140121974
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.140111560
lea rdx, [0x1401b3410]
lea rcx, [rsp + 0x40]
call fcn.140121974
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.140111560
lea rdx, [0x1401b3410]
lea rcx, [rsp + 0x40]
call fcn.140121974
int3
Function at 0x140111ab0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1401da6e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
je 0x140111b1f
lea rcx, [rax + 8]
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rdi + 8]
mov dword [rdi + 0x30], 2
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [rdi + 0x58], 0
mov rbx, qword [rsp + 0x30]
je 0x140111b1b
mov r8, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [r8]
xor ecx, ecx
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14013afe8
mov qword [rdi + 0x70], rsi
xor ecx, ecx
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14013afe8

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
lea rsi, [0x140174ff0]
mov rbx, rdx
mov r11, rcx
not r8d
cmp rdx, 8
jbe 0x140114206
mov qword [rsp + 0x10], rdi
test cl, 7
je 0x140114154
nop word [rax + rax]
movzx eax, byte [r11]
dec rbx
movzx ecx, r8b
inc r11
xor rcx, rax
mov eax, r8d
shr eax, 8
mov r8d, dword [rsi + rcx*4]
xor r8d, eax
test r11b, 7
jne 0x140114130
mov rdi, rbx
and ebx, 7
and rdi, 0xfffffffffffffff8
add rdi, r11
cmp r11, rdi
jae 0x140114201
nop word [rax + rax]
xor r8d, dword [r11]
mov r10d, dword [r11 + 4]
add r11, 8
mov r9d, r8d
mov eax, r8d
shr rax, 0x10
movzx edx, al
mov eax, r8d
shr rax, 8
movzx ecx, al
mov eax, r10d
mov r8d, dword [rsi + rdx*4 + 0x1400]
shr rax, 0x10
xor r8d, dword [rsi + rcx*4 + 0x1800]
movzx ecx, al
mov eax, r10d
shr rax, 8
xor r8d, dword [rsi + rcx*4 + 0x400]
movzx ecx, al
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rsi + rcx*4 + 0x800]
xor r8d, dword [rsi + rax*4 + 0x1000]
mov eax, r10d
shr rax, 0x18
xor r8d, dword [rsi + rax*4]
movzx eax, r9b
xor r8d, dword [rsi + rax*4 + 0x1c00]
movzx eax, r10b
xor r8d, dword [rsi + rax*4 + 0xc00]
cmp r11, rdi
jb 0x140114170
mov rdi, qword [rsp + 0x10]
test rbx, rbx
je 0x140114232
nop dword [rax + rax]
movzx eax, byte [r11]
lea r11, [r11 + 1]
movzx ecx, r8b
xor rcx, rax
mov eax, r8d
shr eax, 8
mov r8d, dword [rsi + rcx*4]
xor r8d, eax
sub rbx, 1
jne 0x140114210
mov rbx, qword [rsp + 0x18]
not r8d
mov eax, r8d
pop rsi
ret
Function at 0x140114240
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
lea rsi, [0x140176ff0]
mov rbx, rdx
mov r11, rcx
not r8
cmp rdx, 4
jbe 0x14011430f
mov qword [rsp + 0x10], rdi
test cl, 3
je 0x140114295
nop word [rax + rax]
movzx eax, byte [r11]
dec rbx
movzx ecx, r8b
inc r11
xor rcx, rax
mov rax, r8
shr rax, 8
mov r8, qword [rsi + rcx*8]
xor r8, rax
test r11b, 3
jne 0x140114270
mov rdi, rbx
and ebx, 3
and rdi, 0xfffffffffffffffc
add rdi, r11
cmp r11, rdi
jae 0x14011430a
nop word [rax + rax]
mov r10d, dword [r11]
add r11, 4
mov eax, r8d
xor r10, rax
mov rax, r10
shr rax, 0x10
movzx edx, al
mov rax, r10
shr rax, 8
movzx ecx, al
mov rax, r10
shr rax, 0x18
mov r9, qword [rsi + rdx*8 + 0x800]
xor r9, qword [rsi + rcx*8 + 0x1000]
xor r9, qword [rsi + rax*8]
movzx eax, r10b
xor r9, qword [rsi + rax*8 + 0x1800]
mov rax, r8
shr rax, 0x20
mov r8, r9
xor r8, rax
cmp r11, rdi
jb 0x1401142b0
mov rdi, qword [rsp + 0x10]
test rbx, rbx
je 0x140114343
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r11]
lea r11, [r11 + 1]
movzx ecx, r8b
xor rcx, rax
mov rax, r8
shr rax, 8
mov r8, qword [rsi + rcx*8]
xor r8, rax
sub rbx, 1
jne 0x140114320
mov rbx, qword [rsp + 0x18]
not r8
mov rax, r8
pop rsi
ret