joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003e540
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x30
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov eax, 1
shl rax, cl
cmp rdx, rax
jbe 0x18003e579
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
mov rbx, qword [rsi + 8]
lea rax, [rdx - 1]
or rax, 1
mov edi, 1
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.18003e40c
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x18003e68b
mov rcx, qword [rcx]
movabs r8, 0xcbf29ce484222325
xor r9d, r9d
movzx edx, byte [r9 + rax + 0x10]
movabs r10, 0x100000001b3
xor r8, rdx
inc r9
imul r8, r10
cmp r9, 4
jb 0x18003e5d2
mov r11, qword [rsi + 0x30]
mov rdi, qword [rsi + 0x18]
and r11, r8
add r11, r11
cmp qword [rdi + r11*8], rbx
jne 0x18003e611
mov qword [rdi + r11*8], rax
mov qword [rdi + r11*8 + 8], rax
jmp 0x18003e67f
mov r10, qword [rdi + r11*8 + 8]
mov edx, dword [rax + 0x10]
cmp edx, dword [r10 + 0x10]
jne 0x18003e654
mov r10, qword [r10]
cmp r10, rax
je 0x18003e60a
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x18003e60a
mov r10, qword [r10 + 8]
cmp edx, dword [r10 + 0x10]
je 0x18003e6a9
cmp qword [rdi + r11*8], r10
jne 0x18003e64a
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [rdi + r11*8], rax
mov rax, rcx
cmp rcx, rbx
jne 0x18003e5c2
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call fcn.18003e6d0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov r10, qword [r10]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x18003e67f
Function at 0x18003e78c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, r8
mov r13, rdx
mov r12, rcx
cmp rdx, r8
je 0x18003e84d
mov rax, qword [rcx + 8]
mov rdi, rdx
mov rbp, qword [rcx + 0x18]
movabs r14, 0xcbf29ce484222325
mov r15, qword [rdx + 8]
xor ecx, ecx
mov qword [rsp + 0x20], rax
movabs rdx, 0x100000001b3
movzx eax, byte [rcx + r13 + 0x10]
inc rcx
xor r14, rax
imul r14, rdx
cmp rcx, 4
jb 0x18003e7e4
and r14, qword [r12 + 0x30]
add r14, r14
mov rax, qword [rbp + r14*8]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + r14*8 + 8]
mov qword [rsp + 0x28], rax
mov rcx, rdi
mov rbx, rdi
mov rdi, qword [rdi]
mov edx, 0x18
call fcn.180099d1c
dec qword [r12 + 0x10]
cmp rbx, qword [rsp + 0x28]
je 0x18003e86e
cmp rdi, rsi
jne 0x18003e816
cmp qword [rsp + 0x30], r13
jne 0x18003e846
mov qword [rbp + r14*8], rdi
mov qword [r15], rdi
mov qword [rdi + 8], r15
lea r11, [rsp + 0x40]
mov rax, rsi
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
cmp qword [rsp + 0x30], r13
jne 0x18003e884
mov r13, qword [rsp + 0x20]
mov qword [rbp + r14*8], r13
mov rax, r13
jmp 0x18003e887
mov rax, r15
mov qword [rbp + r14*8 + 8], rax
cmp rdi, rsi
je 0x18003e846
xor ecx, ecx
movabs r14, 0xcbf29ce484222325
movabs r13, 0x100000001b3
movzx eax, byte [rdi + rcx + 0x10]
inc rcx
xor r14, rax
imul r14, r13
cmp rcx, 4
jb 0x18003e8a7
and r14, qword [r12 + 0x30]
mov r13, qword [rsp + 0x20]
add r14, r14
mov rax, qword [rbp + r14*8 + 8]
mov qword [rsp + 0x28], rax
mov rcx, rdi
mov rbx, rdi
mov rdi, qword [rdi]
mov edx, 0x18
call fcn.180099d1c
dec qword [r12 + 0x10]
cmp rbx, qword [rsp + 0x28]
je 0x18003e8fd
cmp rdi, rsi
je 0x18003e841
jmp 0x18003e8d3
mov qword [rbp + r14*8], r13
mov qword [rbp + r14*8 + 8], r13
jmp 0x18003e88c
Function at 0x18003e90c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x20], r9
mov r12, r8
mov r14, rdx
xor ecx, ecx
movabs r15, 0xcbf29ce484222325
movzx eax, byte [r8 + rcx]
xor r15, rax
movabs rdx, 0x100000001b3
imul r15, rdx
inc rcx
cmp rcx, 4
jb 0x18003e937
mov rax, qword [0x1800e2130]
and rax, r15
add rax, rax
mov rcx, qword [0x1800e2118]
mov rbx, qword [rcx + rax*8 + 8]
mov rbp, qword [0x1800e2108]
cmp rbx, rbp
jne 0x18003e9a2
mov rbx, rbp
mov rsi, rbp
movabs rax, 0x2e8ba2e8ba2e8ba
cmp qword [0x1800e2110], rax
jne 0x18003e9e1
lea rcx, str.unordered_map_set_too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
mov rdx, qword [rcx + rax*8]
mov eax, dword [r8]
jmp 0x18003e9b4
cmp rbx, rdx
je 0x18003e9d7
mov rbx, qword [rbx + 8]
cmp eax, dword [rbx + 0x10]
jne 0x18003e9ab
mov rbp, qword [rbx]
mov rsi, rbp
mov rax, rbx
mov rbx, rbp
test rax, rax
je 0x18003e981
mov qword [r14], rax
mov byte [r14 + 8], 0
jmp 0x18003eb47
mov rbp, rbx
xor eax, eax
mov rsi, rbx
jmp 0x18003e9c5
lea rax, [0x1800e2108]
mov qword [rsp + 0x30], rax
and qword [rsp + 0x38], 0
mov ecx, 0x58
call fcn.18009a3ac
mov rdi, rax
mov qword [rsp + 0x38], rax
mov r8, qword [rsp + 0x20]
mov rdx, r12
lea rcx, [rax + 0x10]
call fcn.18003f5a4
nop
mov r8, qword [0x1800e2110]
lea rcx, [r8 + 1]
xorps xmm0, xmm0
test rcx, rcx
js 0x18003ea31
cvtsi2ss xmm0, rcx
jmp 0x18003ea46
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, qword [0x1800e2138]
xorps xmm1, xmm1
test rcx, rcx
js 0x18003ea5c
cvtsi2ss xmm1, rcx
jmp 0x18003ea71
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [0x1800e2100]
seta al
test al, al
je 0x18003eade
call fcn.18003f0e0
mov rcx, qword [0x1800e2130]
and rcx, r15
add rcx, rcx
mov rdx, qword [0x1800e2118]
mov rax, qword [rdx + rcx*8 + 8]
mov rbx, qword [0x1800e2108]
cmp rax, rbx
je 0x18003eaca
mov r8, qword [rdx + rcx*8]
mov ecx, dword [rdi + 0x10]
jmp 0x18003eac2
mov rbx, rax
cmp rax, r8
je 0x18003eb21
mov rax, qword [rax + 8]
cmp ecx, dword [rax + 0x10]
jne 0x18003eab6
mov rbx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rsi, rbx
mov rbp, qword [rsp + 0x20]
mov r8, qword [0x1800e2110]
mov rdx, qword [rbx + 8]
inc r8
mov qword [0x1800e2110], r8
mov qword [rdi], rbp
mov qword [rdi + 8], rdx
mov qword [rdx], rdi
mov qword [rbx + 8], rdi
mov rax, qword [0x1800e2130]
and rax, r15
add rax, rax
mov rcx, qword [0x1800e2118]
mov r8, qword [rcx + rax*8]
cmp r8, qword [0x1800e2108]
jne 0x18003eb28
mov qword [rcx + rax*8], rdi
jmp 0x18003eb3a
mov qword [rsp + 0x20], rax
jmp 0x18003eacf
cmp r8, rsi
jne 0x18003eb33
mov qword [rcx + rax*8], rdi
jmp 0x18003eb3f
cmp qword [rcx + rax*8 + 8], rdx
jne 0x18003eb3f
mov qword [rcx + rax*8 + 8], rdi
mov qword [r14], rdi
mov byte [r14 + 8], 1
mov rax, r14
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18003f0e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rcx, qword [0x1800e2110]
xorps xmm0, xmm0
add rcx, 1
js 0x18003f101
cvtsi2ss xmm0, rcx
jmp 0x18003f116
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [0x1800e2100]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
movss xmm1, dword [0x1800d6df8]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x18003f148
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x18003f148
movabs rax, 0x8000000000000000
mov rcx, rax
mov rdx, qword [0x1800e2138]
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rdx, rcx
jae 0x18003f17d
cmp rdx, 0x200
jae 0x18003f17a
shl rdx, 3
cmp rdx, rcx
jae 0x18003f17d
mov rdx, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov eax, 1
shl rax, cl
cmp rdx, rax
jbe 0x18003f1a6
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
mov rbx, qword [0x1800e2108]
lea rax, [rdx - 1]
or rax, 1
mov edi, 1
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x1800e2118]
lea rdx, [rdi + rdi]
call fcn.18003e40c
mov rax, qword [0x1800e2108]
lea r9, [rdi - 1]
mov qword [0x1800e2130], r9
mov qword [0x1800e2138], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x18003f2f4
mov rcx, qword [rcx]
movabs r11, 0xcbf29ce484222325
xor r8d, r8d
movzx edx, byte [r8 + rax + 0x10]
movabs r10, 0x100000001b3
xor r11, rdx
inc r8
imul r11, r10
cmp r8, 4
jb 0x18003f20e
mov rdi, qword [0x1800e2118]
and r11, r9
add r11, r11
cmp qword [rdi + r11*8], rbx
jne 0x18003f24c
mov qword [rdi + r11*8], rax
mov qword [rdi + r11*8 + 8], rax
jmp 0x18003f2ba
mov r10, qword [rdi + r11*8 + 8]
mov edx, dword [rax + 0x10]
cmp edx, dword [r10 + 0x10]
jne 0x18003f28f
mov r10, qword [r10]
cmp r10, rax
je 0x18003f245
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x18003f245
mov r10, qword [r10 + 8]
cmp edx, dword [r10 + 0x10]
je 0x18003f2ce
cmp qword [rdi + r11*8], r10
jne 0x18003f285
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [rdi + r11*8], rax
mov rax, rcx
cmp rcx, rbx
je 0x18003f2f4
mov r9, qword [0x1800e2130]
jmp 0x18003f1fe
mov r10, qword [r10]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x18003f2ba
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call fcn.18003f32c
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x18003f400
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x38], rcx
mov rbp, r8
mov r13, rdx
cmp rdx, r8
je 0x18003f4d0
mov rax, qword [rcx + 8]
mov rsi, rdx
mov r14, qword [rdx + 8]
movabs r15, 0xcbf29ce484222325
mov r12, qword [rcx + 0x18]
xor edx, edx
mov qword [rsp + 0x20], rax
movabs r8, 0x100000001b3
movzx eax, byte [rdx + r13 + 0x10]
inc rdx
xor r15, rax
imul r15, r8
cmp rdx, 4
jb 0x18003f45a
and r15, qword [rcx + 0x30]
add r15, r15
mov rax, qword [r12 + r15*8]
mov qword [rsp + 0x30], rax
mov rax, qword [r12 + r15*8 + 8]
mov qword [rsp + 0x28], rax
mov rbx, rsi
mov rdi, rsi
mov rsi, qword [rsi]
lea rcx, [rbx + 0x18]
call fcn.18003de5c
mov edx, 0x58
mov rcx, rbx
call fcn.180099d1c
mov rdx, qword [rsp + 0x38]
dec qword [rdx + 0x10]
cmp rbx, qword [rsp + 0x28]
je 0x18003f4f1
cmp rsi, rbp
jne 0x18003f48a
cmp qword [rsp + 0x30], r13
jne 0x18003f4c9
mov qword [r12 + r15*8], rsi
mov qword [r14], rsi
mov qword [rsi + 8], r14
lea r11, [rsp + 0x40]
mov rax, rbp
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
cmp qword [rsp + 0x30], r13
jne 0x18003f506
mov r13, qword [rsp + 0x20]
mov qword [r12 + r15*8], r13
mov rax, r13
jmp 0x18003f509
mov rax, r14
mov qword [r12 + r15*8 + 8], rax
cmp rsi, rbp
je 0x18003f4c9
movabs rcx, 0xcbf29ce484222325
xor r8d, r8d
movabs r13, 0x100000001b3
movzx eax, byte [rsi + r8 + 0x10]
inc r8
xor rcx, rax
imul rcx, r13
cmp r8, 4
jb 0x18003f52a
mov r15, qword [rdx + 0x30]
mov r13, qword [rsp + 0x20]
and r15, rcx
add r15, r15
mov rax, qword [r12 + r15*8 + 8]
mov qword [rsp + 0x28], rax
mov rbx, rsi
mov rdi, rsi
mov rsi, qword [rsi]
lea rcx, [rbx + 0x18]
call fcn.18003de5c
mov edx, 0x58
mov rcx, rbx
call fcn.180099d1c
mov rdx, qword [rsp + 0x38]
dec qword [rdx + 0x10]
cmp rbx, qword [rsp + 0x28]
je 0x18003f593
cmp rsi, rbp
je 0x18003f4c5
jmp 0x18003f559
mov qword [r12 + r15*8], r13
mov qword [r12 + r15*8 + 8], r13
jmp 0x18003f50e
Function at 0x18004ccfc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1800de010]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, dword [rcx + 0x58]
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov ebp, r9d
mov eax, dword [rcx + 0x5c]
mov rdi, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x290]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x30], r9d
mov esi, dword [rbx + 0x14]
mov eax, esi
mov r14d, dword [rbx + 4]
cmp esi, r14d
mov r9d, dword [rbx + 0xc]
cmovg eax, r14d
cmp r9d, eax
jl 0x18004ce2f
cmp esi, r14d
mov eax, r14d
cmovg eax, esi
cmp r9d, eax
jg 0x18004ce2f
cmp esi, r14d
jne 0x18004cd92
sub rbx, 0x10
jmp 0x18004ce79
mov edx, dword [rdi + 0x88]
xor r9d, r9d
cmp esi, r14d
setge r9b
inc r9d
cmp edx, r9d
je 0x18004cdf2
mov eax, dword [rdi + 4]
mov ecx, eax
neg ecx
cmp esi, r14d
jge 0x18004cdc0
dec eax
add eax, esi
and eax, ecx
sub eax, esi
jmp 0x18004cdc6
and ecx, esi
mov eax, esi
sub eax, ecx
cmp eax, dword [rdi + 8]
setge r10b
test edx, edx
je 0x18004cde0
mov dl, r10b
mov rcx, rdi
call fcn.18004c598
test al, al
jne 0x18004ce2b
mov r8b, r10b
mov edx, r9d
mov rcx, rdi
call fcn.18004c4cc
test al, al
jne 0x18004ce2b
mov ecx, dword [rdi + 0x60]
lea r9, [0x18004c6b4]
mov eax, dword [rdi + 0x64]
mov r8, rbx
mov dword [rsp + 0x28], eax
mov edx, 2
mov dword [rsp + 0x20], ecx
mov rcx, rdi
cmp esi, r14d
jge 0x18004ce1e
call fcn.18004c958
jmp 0x18004ce23
call fcn.18004cacc
test al, al
je 0x18004cd89
mov al, 1
jmp 0x18004ce93
mov eax, dword [rbx + 8]
lea r8, [rbx + 0x10]
mov ecx, dword [r8]
mov dword [rbx + 0x20], ecx
add ecx, eax
mov dword [rbx + 0x24], esi
lea edx, [rax + rbp]
mov eax, ecx
sar eax, 1
mov dword [rbx + 0x18], eax
lea eax, [rcx + rdx]
sar eax, 2
lea ecx, [rsi + r9]
mov dword [r8], eax
mov eax, ecx
sar eax, 1
sar edx, 1
mov dword [rbx + 8], edx
lea edx, [r14 + r9]
mov dword [rbx + 0x1c], eax
lea eax, [rcx + rdx]
sar eax, 2
sar edx, 1
mov dword [rbx + 0xc], edx
mov dword [rbx + 0x14], eax
mov rbx, r8
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x18004ce8a
mov ebp, dword [rbx]
jmp 0x18004cd55
mov dword [rdi + 0x58], ebp
xor al, al
mov dword [rdi + 0x5c], r14d
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180099990
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x18004cebc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x350
mov rax, qword [0x1800de010]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov eax, dword [rcx + 0x58]
lea rbx, [rsp + 0x30]
mov r14d, dword [rsp + 0x398]
mov rdi, rcx
mov dword [rsp + 0x48], eax
mov eax, dword [rcx + 0x5c]
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x390]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x3a0]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x44], r8d
mov dword [rsp + 0x38], r9d
mov dword [rsp + 0x30], r14d
mov esi, dword [rbx + 0x1c]
mov ecx, esi
mov ebp, dword [rbx + 4]
cmp esi, ebp
mov r8d, dword [rbx + 0x14]
mov eax, r8d
mov edx, dword [rbx + 0xc]
cmovg ecx, ebp
cmp r8d, edx
cmovg eax, edx
cmp eax, ecx
jl 0x18004d00c
cmp esi, ebp
mov eax, ebp
cmovg eax, esi
cmp r8d, edx
cmovg edx, r8d
cmp edx, eax
jg 0x18004d00c
cmp esi, ebp
jne 0x18004cf72
sub rbx, 0x18
jmp 0x18004d018
mov edx, dword [rdi + 0x88]
xor r9d, r9d
cmp esi, ebp
setg r9b
inc r9d
cmp edx, r9d
je 0x18004cfd0
mov eax, dword [rdi + 4]
mov ecx, eax
neg ecx
cmp esi, ebp
jg 0x18004cf9e
dec eax
add eax, esi
and eax, ecx
sub eax, esi
jmp 0x18004cfa4
and ecx, esi
mov eax, esi
sub eax, ecx
cmp eax, dword [rdi + 8]
setge r10b
test edx, edx
je 0x18004cfbe
mov dl, r10b
mov rcx, rdi
call fcn.18004c598
test al, al
jne 0x18004d008
mov r8b, r10b
mov edx, r9d
mov rcx, rdi
call fcn.18004c4cc
test al, al
jne 0x18004d008
mov ecx, dword [rdi + 0x60]
lea r9, [fcn.18004c70c]
mov eax, dword [rdi + 0x64]
mov r8, rbx
mov dword [rsp + 0x28], eax
mov edx, 3
mov dword [rsp + 0x20], ecx
mov rcx, rdi
cmp esi, ebp
jg 0x18004cffb
call fcn.18004c958
jmp 0x18004d000
call fcn.18004cacc
test al, al
je 0x18004cf69
mov al, 1
jmp 0x18004d033
mov rcx, rbx
call fcn.18004c70c
add rbx, 0x18
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x18004d02a
mov r14d, dword [rbx]
jmp 0x18004cf2a
mov dword [rdi + 0x58], r14d
xor al, al
mov dword [rdi + 0x5c], ebp
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.180099990
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x18004d364
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

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 rax, qword [rcx + 0x20]
xor r14d, r14d
sub rax, 0x34
mov qword [rcx + 0x78], r14
mov qword [rcx + 0x28], rax
mov ebp, edx
mov rax, qword [rcx + 0x30]
mov rbx, rcx
mov word [rcx + 0x6a], r14w
lea r15d, [r14 + 1]
mov dword [rcx + 0x3c], r14d
mov esi, r14d
mov qword [rcx + 0x70], rax
mov qword [rax + 0x10], rax
mov word [rcx + 0x68], r14w
cmp r14w, word [rcx + 0xb8]
jge 0x18004d4b2
movzx r10d, r14w
mov edi, r14d
mov rax, qword [rbx + 0xd0]
mov r9d, ebp
mov dword [rbx + 0x88], r14d
movzx edx, r10w
mov qword [rbx + 0x80], r14
mov rcx, rbx
movzx r8d, word [rdi + rax]
call fcn.18004d05c
test al, al
jne 0x18004d54a
mov rax, qword [rbx + 0xd0]
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 0x5c]
movzx r10d, word [rdi + rax]
lea eax, [r8 - 1]
test edx, eax
jne 0x18004d441
cmp edx, dword [rbx + 0x60]
jl 0x18004d441
cmp edx, dword [rbx + 0x64]
jg 0x18004d441
mov r9, qword [rbx + 0x80]
test r9, r9
je 0x18004d441
mov rax, qword [rbx + 0x70]
mov cl, byte [rax + 0x18]
xor cl, byte [r9 + 0x18]
test cl, 8
jne 0x18004d441
add qword [rbx + 0x30], 0xfffffffffffffffc
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x10]
cmp qword [rbx + 0x30], rax
je 0x18004d464
test byte [r9 + 0x18], 8
je 0x18004d464
neg r8d
and r8d, edx
sub edx, r8d
cmp edx, dword [rbx + 8]
jmp 0x18004d475
lea eax, [r8 - 1]
neg r8d
add eax, edx
and eax, r8d
sub eax, edx
cmp eax, dword [rbx + 8]
setge dl
mov rcx, rbx
call fcn.18004c598
test al, al
jne 0x18004d54a
mov rax, qword [rbx + 0x80]
test rax, rax
je 0x18004d498
mov qword [r9 + 0x28], rax
movsx eax, word [rbx + 0xb8]
add esi, r15d
add rdi, 2
add r10w, r15w
cmp esi, eax
jl 0x18004d3ca
movzx r11d, word [rbx + 0x68]
mov rdx, qword [rbx + 0x78]
cmp r11w, r15w
jbe 0x18004d54f
test rdx, rdx
je 0x18004d54f
lea rdi, [rdx + 8]
cmp r11w, r15w
jbe 0x18004d4e6
movsxd rcx, dword [rdx + 0x1c]
mov rax, qword [rdx + 0x10]
lea r10, [rax + rcx*4]
jmp 0x18004d4e9
mov r10, r14
mov qword [rdi], r10
test byte [rdx + 0x18], 8
mov r10d, dword [rdx + 0x20]
mov r8d, r10d
mov eax, dword [rdx + 0x1c]
je 0x18004d504
dec r10d
add r10d, eax
jmp 0x18004d51b
sub r8d, eax
add r8d, r15d
dec eax
mov dword [rdx + 0x20], r8d
movsxd rcx, eax
shl rcx, 2
add qword [rdx + 0x10], rcx
mov edx, r8d
mov rcx, rbx
call fcn.18004c62c
test al, al
jne 0x18004d54a
lea edx, [r10 + 1]
mov rcx, rbx
call fcn.18004c62c
test al, al
jne 0x18004d54a
mov rdx, qword [rdi]
mov eax, 0xffff
add r11w, ax
je 0x18004d553
jmp 0x18004d4ce
mov al, r15b
jmp 0x18004d55e
mov qword [rbx + 0x78], r14
mov rax, qword [rbx + 0x28]
cmp qword [rbx + 0x30], rax
setae al
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 0x18009879c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r10d, r10d
mov r11, rdx
mov r9d, ecx
test rdx, rdx
je 0x180098821
lea rdi, [0x1800c1160]
not r9d
cmp r8d, 8
jb 0x1800987f8
mov edx, r8d
shr rdx, 3
add r8d, 0xfffffff8
mov ebx, 8
movzx ecx, byte [r11]
mov eax, r9d
xor rcx, rax
shr r9d, 8
movzx eax, cl
inc r11
xor r9d, dword [rdi + rax*4]
sub rbx, 1
jne 0x1800987d4
sub rdx, 1
jne 0x1800987cb
test r8d, r8d
je 0x18009881b
movzx ecx, byte [r11]
mov eax, r9d
xor rcx, rax
shr r9d, 8
movzx eax, cl
inc r11
xor r9d, dword [rdi + rax*4]
add r8d, 0xffffffff
jne 0x1800987fd
not r9d
mov r10d, r9d
mov rbx, qword [rsp + 8]
mov eax, r10d
mov rdi, qword [rsp + 0x10]
ret
Function at 0x1400200a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.140021400
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x140020d72
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140045168]
test eax, eax
je 0x140020e0a
lea rax, [0x140045140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140045170]
mov qword [rbp - 8], rax
jmp 0x140020dee
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140020de2
cmp qword [rbp - 0x10], 0
je 0x140020de2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140020da8
lea rax, [0x140045140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140020e0b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140020f10
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140020f38
mov eax, 0
jmp 0x140020f86
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140020f61
mov eax, 0
jmp 0x140020f86
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140020f81
mov eax, 0
jmp 0x140020f86
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140020f8c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14002100a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140021001
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140021001
mov rax, qword [rbp - 8]
jmp 0x14002101f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140020fd4
mov eax, 0
add rsp, 0x20
pop rbp
ret