joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400048bc
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbp
lea rbp, [rsp - 0x1340]
mov eax, 0x1440
call fcn.140035fc0
sub rsp, rax
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x1458], rbx
mov qword [rsp + 0x1460], rsi
mov qword [rsp + 0x1468], rdi
mov rax, qword [0x14009e1c8]
xor rax, rsp
mov qword [rbp + 0x1338], rax
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x68], ebx
movdqa xmm0, xmmword [0x14008b100]
movdqu xmmword [rsp + 0x28], xmm0
movdqa xmm1, xmmword [0x14008afe0]
movdqu xmmword [rsp + 0x38], xmm1
movdqa xmm0, xmmword [0x14008b030]
movdqu xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x58], 0x5a595857
mov dword [rsp + 0x5c], 0x33323130
mov dword [rsp + 0x60], 0x37363534
mov word [rsp + 0x64], 0x3938
mov byte [rsp + 0x66], bl
mov dword [rbp + 0x1330], 0x6578652e
mov byte [rbp + 0x1334], bl
mov qword [rbp - 0x70], 0xf
mov qword [rbp - 0x78], rbx
mov byte [rsp + 0x78], bl
xor r8d, r8d
lea rdx, [0x14008a0d0]
lea rcx, [rsp + 0x78]
call fcn.140006b0c
nop
call fcn.14000ffd0
nop
xor r8d, r8d
lea esi, [rbx + 1]
mov dl, sil
lea rcx, [rsp + 0x78]
call fcn.140006994
call fcn.14000ffd0
mov ecx, eax
or dword [rbp + 0x1324], 0xffffffff
mov dword [rbp - 0x5c], eax
mov r8d, esi
mov edx, esi
mov r9d, 0x270
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, r8d
mov dword [rbp + rdx*4 - 0x5c], ecx
add r8d, esi
add rdx, rsi
cmp rdx, r9
jl 0x1400049c5
mov dword [rbp - 0x60], r9d
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x24], 0x3d
mov qword [rbp - 0x70], 0xf
mov qword [rbp - 0x78], rbx
mov byte [rsp + 0x78], bl
mov ebx, 8
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x20]
call fcn.140007b48
movsxd rcx, eax
mov r8b, byte [rsp + rcx + 0x28]
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.140006d30
sub rbx, rsi
jne 0x140004a09
lea r8, [rbp + 0x1330]
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.140007934
nop
xor r8d, r8d
mov dl, sil
lea rcx, [rsp + 0x78]
call fcn.140006994
mov rax, rdi
mov rcx, qword [rbp + 0x1338]
xor rcx, rsp
call fcn.140035270
lea r11, [rsp + 0x1440]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140004c20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x14009e1c8]
xor rax, rsp
mov qword [rbp - 8], rax
xor r14d, r14d
mov dword [rbp - 0x20], 0x730075
lea rcx, [rbp - 0x20]
mov word [rbp - 0xc], r14w
mov rsi, r8
mov dword [rbp - 0x1c], 0x720065
mov rdi, rdx
mov dword [rbp - 0x18], 0x320033
mov dword [rbp - 0x14], 0x64002e
mov dword [rbp - 0x10], 0x6c006c
mov dword [rbp - 0x30], 0x7373654d
mov dword [rbp - 0x2c], 0x42656761
mov dword [rbp - 0x28], 0x57786f
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140004cc6
lea rdx, [rbp - 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140004cbd
lea r9d, [r14 + 0x40]
mov r8, rsi
mov rdx, rdi
xor ecx, ecx
call rax
jmp 0x140004cc8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140035270
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400086e4
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov rbx, rcx
mov esi, 0x7fffffff
mov ebp, 0x9908b0df
mov r9, qword [rbx]
cmp dword [r9], 0x270
jne 0x14000874e
lea r8, [r9 + 8]
mov r10d, 0x270
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
and edx, esi
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, ebp
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140008716
jmp 0x14000880c
cmp dword [r9], 0x4e0
jb 0x14000880c
lea r10, [r9 + 0x9c4]
mov r11d, 0xe3
mov edx, dword [r10 + 4]
xor edx, dword [r10]
and edx, esi
xor edx, dword [r10]
lea r10, [r10 + 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, ebp
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub r11, 1
jne 0x140008768
lea r10, [r9 + 0xd50]
mov r11d, 0x18c
mov edx, dword [r10 + 4]
xor edx, dword [r10]
and edx, esi
xor edx, dword [r10]
lea r10, [r10 + 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, ebp
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub r11, 1
jne 0x1400087a7
mov edx, dword [r9 + 0x1380]
xor edx, dword [r9 + 4]
and edx, esi
xor edx, dword [r9 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, ebp
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
and dword [r9], r11d
mov eax, dword [r9]
mov edx, dword [r9 + rax*4 + 4]
inc eax
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
cmp eax, dword [rbx + 0x10]
ja 0x140008700
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
ret
Function at 0x14000ddf8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 9], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14009e1c8]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov dword [rbp + 0x3f], 0x74726956
mov dword [rbp + 0x43], 0x416c6175
mov dword [rbp + 0x47], 0x636f6c6c
mov word [rbp + 0x4b], 0x7845
xor ebx, ebx
mov byte [rbp + 0x4d], bl
mov dword [rsp + 0x20], r9d
mov r9d, 0x3000
mov r8, rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
jne 0x14000dec7
mov qword [rbp - 0x11], 0xf
mov qword [rbp - 0x19], rbx
mov byte [rbp - 0x29], bl
cmp byte [rbp + 0x3f], bl
je 0x14000de83
lea rcx, [rbp + 0x3f]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], bl
jne 0x14000de78
mov rbx, rax
mov r8, rbx
lea rdx, [rbp + 0x3f]
lea rcx, [rbp - 0x29]
call fcn.140006b0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rbp - 0x29]
lea rcx, [rbp + 0x1f]
call fcn.14000a7cc
nop
mov rdx, rax
lea rcx, [rbp + 7]
call fcn.1400014b4
lea rdx, [0x14009c758]
lea rcx, [rbp + 7]
call fcn.140056204
nop
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140035270
mov rbx, qword [rsp + 0xd0]
add rsp, 0xb0
pop rbp
ret
Function at 0x14000f264
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14009e1c8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r12, rcx
xor r15d, r15d
cmp qword [rcx + 0x68], r15
je 0x14000f3e9
cmp byte [rcx + 0x71], r15b
je 0x14000f3e9
mov rax, qword [rcx]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call fcn.140035f18
or edx, 0xffffffff
mov rcx, r12
call rbx
cmp eax, 0xffffffff
jne 0x14000f2d6
xor al, al
jmp 0x14000f3eb
mov edx, 0xf
mov qword [rbp - 0x18], rdx
xor ecx, ecx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x20], 8
lea rax, [rbp - 0x30]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], r15b
mov r8, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
lea r9, [rbp - 0x30]
cmp rdx, 0x10
cmovae r9, r8
lea r14, [rbp - 0x30]
cmovae r14, r8
mov rsi, qword [r12 + 0x68]
mov rdx, qword [rsi]
mov rbx, qword [rbp - 0x20]
add rbx, r9
mov rdi, qword [rdx + 0x40]
mov rcx, rdi
call fcn.140035f18
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, r14
lea rdx, [r12 + 0x74]
mov rcx, rsi
call rdi
mov ecx, eax
test eax, eax
je 0x14000f35a
sub ecx, 1
jne 0x14000f3ce
jmp 0x14000f35f
mov byte [r12 + 0x71], r15b
lea rax, [rbp - 0x30]
mov r8, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
cmovae rax, r8
mov rbx, qword [rbp - 0x40]
sub rbx, rax
je 0x14000f3aa
lea rcx, [rbp - 0x30]
cmp rdx, 0x10
cmovae rcx, r8
mov r9, qword [r12 + 0x80]
mov r8, rbx
mov edx, 1
call fcn.14005cf8c
cmp rbx, rax
jne 0x14000f3d6
mov rdx, qword [rbp - 0x18]
mov r8, qword [rbp - 0x30]
cmp byte [r12 + 0x71], r15b
je 0x14000f3d3
test rbx, rbx
jne 0x14000f305
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.140006d30
jmp 0x14000f2fd
cmp ecx, 2
jne 0x14000f3d6
mov r15b, 1
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.140006994
mov al, r15b
jmp 0x14000f3eb
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140035270
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140033150
Capabilities:
Encrypt data using rc4 prga

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 rbx, rcx
mov ebp, 0x7ff
movzx ecx, word [rcx + 6]
mov esi, edx
shr cx, 4
and cx, bp
cmp cx, bp
jne 0x1400331b0
test byte [rbx + 6], 0xf
jne 0x1400331a1
xor edi, edi
cmp word [rbx + 4], di
jne 0x1400331a1
cmp word [rbx + 2], di
jne 0x1400331a1
cmp word [rbx], di
jne 0x1400331a1
lea r10d, [rdi + 1]
jmp 0x1400331a7
mov r10d, 2
movzx eax, r10w
jmp 0x1400333bb
xor edi, edi
test cx, cx
jne 0x1400331cb
mov rcx, rbx
call fcn.140034ef4
movzx ecx, ax
cmp di, ax
jl 0x1400333b8
test esi, esi
jle 0x140033200
movsx eax, cx
sub ebp, eax
cmp ebp, esi
jg 0x140033200
movsd xmm0, qword [0x14009e100]
mov ebp, 0x8000
test word [rbx + 6], bp
je 0x1400331f2
xorps xmm0, xmmword [0x14007b540]
movsd qword [rbx], xmm0
mov eax, 1
jmp 0x1400333bb
movsx edx, cx
mov eax, edx
neg eax
cmp eax, esi
jge 0x140033227
add si, cx
mov eax, 0x800f
and word [rbx + 6], ax
shl si, 4
or word [rbx + 6], si
or eax, 0xffffffff
jmp 0x1400333bb
movzx ecx, word [rbx + 6]
lea r11d, [rsi - 1]
movzx r14d, cx
add r11d, edx
and cx, 0xf
mov ebp, 0x8000
mov r15d, 0x10
and r14w, bp
or cx, r15w
lea eax, [r11 + 0x35]
mov word [rbx + 6], cx
cmp eax, 0x34
ja 0x1400333ad
lea r10d, [r15 - 0xf]
movzx esi, di
cmp r11w, 0xfff0
jg 0x1400332c5
movzx edx, word [rbx + 2]
mov eax, 0xfff0
sub ax, r11w
movzx r9d, cx
movzx ecx, word [rbx + 4]
shr ax, 4
add ax, r10w
movzx r8d, ax
movzx eax, r8w
shl ax, 4
add r11w, ax
test si, si
mov eax, edi
setne al
movzx esi, ax
or si, word [rbx]
mov word [rbx], dx
movzx edx, cx
movzx ecx, r9w
mov r9d, edi
sub r8, r10
jne 0x140033299
mov word [rbx + 6], di
mov word [rbx + 4], cx
mov word [rbx + 2], dx
neg r11w
je 0x14003334f
movzx r8d, word [rbx]
mov eax, edi
movzx edx, r8w
movsx r9d, r11w
sub r15d, r9d
mov ecx, r15d
shl dx, cl
test si, si
movzx esi, dx
movzx edx, word [rbx + 2]
setne al
or si, ax
movzx eax, dx
shl ax, cl
movzx ecx, r11w
shr r8w, cl
mov ecx, r15d
or ax, r8w
movzx r8d, word [rbx + 4]
mov word [rbx], ax
movzx eax, r8w
shl ax, cl
movzx ecx, r11w
shr dx, cl
mov ecx, r15d
or ax, dx
movzx edx, word [rbx + 6]
mov word [rbx + 2], ax
movzx eax, dx
shl ax, cl
movzx ecx, r11w
shr r8w, cl
mov ecx, r9d
or ax, r8w
shr dx, cl
mov word [rbx + 6], dx
mov word [rbx + 4], ax
or word [rbx + 6], r14w
movzx eax, word [rbx + 6]
cmp bp, si
jb 0x140033364
jne 0x140033385
test byte [rbx], r10b
je 0x140033385
add word [rbx], r10w
jne 0x140033385
add word [rbx + 2], r10w
jne 0x140033385
add word [rbx + 4], r10w
jne 0x140033385
add ax, r10w
mov word [rbx + 6], ax
jmp 0x14003321f
cmp ax, r14w
jne 0x14003321f
cmp word [rbx + 4], di
jne 0x14003321f
cmp word [rbx + 2], di
jne 0x14003321f
cmp word [rbx], di
je 0x1400333b8
jmp 0x14003321f
mov word [rbx + 6], r14w
mov dword [rbx + 2], edi
mov word [rbx], di
movzx eax, di
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
Function at 0x140035a9c
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140035b2d
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140035b2d
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140035b2d
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140035b11
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140035b0b
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140035b13
add rdx, 0x28
jmp 0x140035af0
xor edx, edx
test rdx, rdx
jne 0x140035b1c
xor al, al
jmp 0x140035b33
test dword [rdx + 0x24], 0x80000000
je 0x140035b29
xor al, al
jmp 0x140035b33
mov al, 1
jmp 0x140035b33
xor al, al
jmp 0x140035b33
add rsp, 0x18
ret

Function at 0x140038ffc
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14003900f
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.140043130
lea rdx, [0x14009c098]
lea rcx, [rsp + 0x20]
call fcn.140056204
int3

Function at 0x140043b44
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1400a2aa0]
xor edx, edx
jmp fcn.140038ffc

Function at 0x14004452c
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1400a2aa0]
jmp fcn.140038ffc

Function at 0x140047e6c
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x18]
xor ebx, ebx
mov ecx, dword [rax + 0xb0]
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140047e91
mov cl, al
and cl, 3
cmove rbx, rax
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140051934
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [rcx + 0x30]
mov rdi, rcx
mov rdx, qword [rax + 0x18]
mov ecx, dword [rdx + 0xb0]
call sub.KERNEL32.dll_TlsGetValue
mov r8, rax
test rax, rax
je 0x14005197f
mov dl, al
and dl, 3
cmp dl, 1
jne 0x14005197f
and r8, 0xfffffffffffffffe
je 0x14005197f
mov rax, qword [rdi + 0x80]
cmp r8, rax
jne 0x14005197f
and qword [r8 + 0x20], 0
jmp 0x1400519b4
and dword [rsp + 0x28], 0
lea rax, [0x140039408]
mov qword [rsp + 0x30], rax
jmp 0x1400519a8
mov rax, qword [rdi + 0x88]
test rax, rax
jne 0x1400519b4
lea rcx, [rsp + 0x20]
call fcn.1400371e8
mov rax, qword [rdi + 0x80]
test rax, rax
jne 0x140051992
mov rax, qword [rdi]
mov rbx, qword [rax + 0x40]
mov rcx, rbx
call fcn.140035f18
mov edx, 1
mov rcx, rdi
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
jmp rax
Function at 0x140057d6c
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140057b40
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140057b40
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140057b40
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140057b40
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140057b40
cmp dword [rcx + 0x84], 0xe
jbe 0x140057b40
cmp dword [rcx + 0xf8], esi
je 0x140057b40
mov ecx, r14d
call fcn.140057c88
mov ecx, 2
call fcn.14005c0c8
nop
cmp byte [0x1400a2d50], 0
jne 0x140057c0a
mov r15d, 1
mov eax, r15d
xchg dword [0x1400a2d44], eax
test ebx, ebx
jne 0x140057bb3
mov rdi, qword [0x14009e1c8]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1400a2d48]
cmp rcx, rax
je 0x140057baa
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400014b0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400a2fb8]
jmp 0x140057bbf
cmp ebx, r15d
jne 0x140057bc5
lea rcx, [0x1400a2fd0]
call fcn.140061ae0
nop
test ebx, ebx
jne 0x140057bdc
lea rdx, [0x1400775d0]
lea rcx, [0x1400775a8]
call fcn.14006216c
lea rdx, [0x1400775e0]
lea rcx, [0x1400775d8]
call fcn.14006216c
movzx eax, byte [0x1400a2d50]
test esi, esi
cmove eax, r15d
mov byte [0x1400a2d50], al
jmp 0x140057c0a
mov ecx, 2
call fcn.14005c11c
test esi, esi
jne 0x140057c21
mov ecx, r14d
call fcn.140057c3c
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140057ad0
Function at 0x140003e20
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14006b040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, 0xffff
movzx edi, dx
mov rbx, rcx
cmp si, dx
jne 0x140003e51
xor eax, eax
jmp 0x140003f9b
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x140003e8e
mov r9, qword [rcx + 0x58]
movsxd r10, dword [r9]
lea rdx, [r8 + r10*2]
cmp r8, rdx
jae 0x140003e8e
lea ecx, [r10 - 1]
movzx eax, di
mov dword [r9], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], di
jmp 0x140003f9b
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xb0], rbp
je 0x140003f90
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140003ed5
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140003ee3
movzx ecx, di
jmp 0x140003f37
lea rax, [rsp + 0x40]
mov word [rsp + 0x50], di
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x52]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003f50
sub eax, 1
je 0x140003f50
cmp eax, 2
jne 0x140003f90
movzx ecx, word [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, si
cmove di, si
movzx eax, di
jmp 0x140003f93
mov rbp, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbp, rax
je 0x140003f7e
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbp
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbp, rax
jne 0x140003f90
lea rax, [rsp + 0x50]
mov byte [rbx + 0x72], 1
cmp qword [rsp + 0x48], rax
cmovne si, di
movzx eax, si
mov rbp, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400578d0
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400044a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14006b040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004575
cmp byte [rcx + 0x72], 0
je 0x140004575
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x140004571
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140004536
sub eax, 1
je 0x14000453a
cmp eax, 2
jne 0x140004571
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400578d0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004568
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140004571
cmp byte [rbx + 0x72], 0
sete al
jmp 0x14000451e
xor al, al
jmp 0x14000451e
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400578d0
add rsp, 0x60
pop rbx
ret

Function at 0x140007840
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000789d
lea rbx, [0x14005b0c0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140007884
cmp r10, 2
jb 0x140007884
cmp byte [r9], r8b
jne 0x140007884
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140007860
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1400078df
lea rbx, [0x14005b0c0]
cmp r8b, 0x23
jne 0x1400078c3
cmp byte [r9], r8b
jne 0x1400078c3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1400078b0
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x140007a20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x140007a3a
mov qword [r8], 0
lea rdx, [0x14005f4c4]
call fcn.1400078f0
mov rbx, rax
test rax, rax
jne 0x140007a5a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140007b33
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140007b33
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140007b33
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140007b33
cmp rdi, 0xffffffffffffffff
je 0x140007b33
mov rax, qword [0x14006bab8]
test rax, rax
je 0x140007ad0
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140007b33
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140007b20
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14006bab8]
test rax, rax
je 0x140007b15
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140007b3c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x140007b2e
mov qword [r14], rdi
mov rax, rsi
jmp 0x140007b3e
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14000a8a0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x110]
lea r8, [0x14005b0c0]
movsxd rcx, dword [rcx + 0x108]
mov r11d, edx
shr r11d, 0x18
mov r9d, edx
shr r9d, 8
mov r10d, edx
shr r10d, 0x10
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r9b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r10b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, r11
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
mov rcx, qword [0x14006bab8]
not ebx
cmp dword [rcx + 0x401c], ebx
jne 0x14000a935
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.14002a160
mov eax, ebx
add rsp, 0x20
pop rbx
ret