joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e1b20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
xor r14d, r14d
nop word [rax + rax]
mov eax, dword [rbx]
mov dword [rsp + 0x20], eax
mov rax, qword [rbx + 0x18]
mov word [rsp + 0x32], r14w
test rax, rax
je 0x1400e1b6d
mov eax, dword [rax]
mov dword [rsp + 0x24], eax
jmp 0x1400e1b72
mov dword [rsp + 0x24], r14d
mov eax, dword [rbx + 0x10]
shr eax, 0xa
test al, 1
je 0x1400e1b9d
mov rax, qword [rbx + 0x88]
test rax, rax
je 0x1400e1b9d
mov rax, qword [rax + 0x3b0]
test rax, rax
je 0x1400e1b9d
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x28], eax
jmp 0x1400e1ba2
mov dword [rsp + 0x28], r14d
mov eax, dword [rbx + 0xbc]
mov dword [rsp + 0x2c], eax
cmp qword [rbx + 0x20], r14
je 0x1400e1bbc
movzx eax, byte [rbx + 0x60]
mov byte [rsp + 0x30], al
jmp 0x1400e1bc1
mov byte [rsp + 0x30], 0xff
cvttss2si ecx, dword [rbx + 0x48]
mov eax, dword [rbx + 8]
mov r8d, dword [rbp + 0x24]
and eax, 0x3fc20
mov dword [rsp + 0x34], eax
mov byte [rsp + 0x31], sil
cvttss2si eax, dword [rbx + 0x4c]
mov word [rsp + 0x38], cx
cvttss2si ecx, dword [rbx + 0x50]
mov word [rsp + 0x3a], ax
cvttss2si eax, dword [rbx + 0x54]
mov word [rsp + 0x3c], cx
cvttss2si ecx, dword [rbx + 0x58]
mov word [rsp + 0x3e], ax
cvttss2si eax, dword [rbx + 0x5c]
mov word [rsp + 0x40], cx
mov ecx, dword [rbp + 0x20]
mov word [rsp + 0x42], ax
cmp ecx, r8d
jne 0x1400e1c43
inc ecx
test r8d, r8d
je 0x1400e1c2e
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x1400e1c33
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
lea rcx, [rbp + 0x20]
call fcn.1400e32f0
movsxd rax, dword [rbp + 0x20]
mov rcx, qword [rbp + 0x28]
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
lea rdx, [rax + rax*8]
mov eax, dword [rsp + 0x40]
movups xmmword [rcx + rdx*4], xmm0
movups xmmword [rcx + rdx*4 + 0x10], xmm1
mov dword [rcx + rdx*4 + 0x20], eax
inc dword [rbp + 0x20]
mov rdx, qword [rbx + 0x20]
test rdx, rdx
je 0x1400e1c82
lea r8d, [rsi + 1]
mov rcx, rbp
call fcn.1400e1b20
mov rbx, qword [rbx + 0x28]
test rbx, rbx
je 0x1400e1c92
inc esi
jmp 0x1400e1b50
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x1400fa760
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1403360b0]
mov rcx, qword [rax + 0x5000]
mov r9, qword [rax + 0x4140]
movups xmm0, xmmword [r9 + 0x278]
movups xmmword [rcx + 0x170], xmm0
mov rax, qword [r9 + 0x2e0]
movups xmm0, xmmword [rcx + 0x150]
movss xmm4, dword [rcx + 0x150]
movss xmm3, dword [rcx + 0x154]
movss xmm2, dword [rcx + 0x158]
movss xmm1, dword [rcx + 0x15c]
movups xmmword [r9 + 0x278], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x2e0]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [rcx + 0x232]
mov rcx, qword [rcx + 0x1a0]
mov rdx, qword [r9 + 0x2e0]
add rsp, 0x38
jmp fcn.1400f6740

Function at 0x1400fa840
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1403360b0]
mov rcx, qword [rax + 0x5000]
mov r10, qword [rax + 0x4140]
movsxd rax, dword [rcx + 0x74]
movups xmm0, xmmword [rcx + 0x170]
movss xmm4, dword [rcx + 0x170]
movss xmm3, dword [rcx + 0x174]
movss xmm2, dword [rcx + 0x178]
movss xmm1, dword [rcx + 0x17c]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x70
mov rax, qword [r10 + 0x2e0]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x278], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x2e0]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [r9 + 0x5c]
mov rdx, qword [r10 + 0x2e0]
mov rcx, qword [rcx + 0x1a0]
add rsp, 0x38
jmp fcn.1400f6740
Function at 0x14010f000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x14032f0c0]
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 rsi, 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 qword [rsp + 0x278], rdi
nop dword [rax]
mov r10d, dword [rbx + 0x14]
mov eax, r10d
mov r14d, dword [rbx + 4]
cmp r10d, r14d
mov r9d, dword [rbx + 0xc]
cmovg eax, r14d
cmp r9d, eax
jl 0x14010f19c
cmp r10d, r14d
mov eax, r14d
cmovg eax, r10d
cmp r9d, eax
jg 0x14010f19c
cmp r10d, r14d
jne 0x14010f0a0
sub rbx, 0x10
jmp 0x14010f1e4
mov edx, dword [rsi + 0x88]
xor r9d, r9d
cmp r10d, r14d
setge r9b
inc r9d
cmp edx, r9d
je 0x14010f112
mov eax, dword [rsi + 4]
mov ecx, eax
mov r8d, dword [rsi + 8]
neg ecx
cmp r10d, r14d
jge 0x14010f0d4
dec eax
add eax, r10d
and eax, ecx
sub eax, r10d
jmp 0x14010f0dc
and ecx, r10d
mov eax, r10d
sub eax, ecx
cmp eax, r8d
setge r11b
test edx, edx
je 0x14010f0fb
movzx edx, r11b
mov rcx, rsi
call fcn.14010e8d0
test al, al
jne 0x14010f1f5
movzx r8d, r11b
mov edx, r9d
mov rcx, rsi
call fcn.14010e7e0
test al, al
jne 0x14010f1f5
mov edx, dword [rsi + 0x64]
lea r9, [0x14010ea00]
mov ecx, dword [rsi + 0x60]
mov r8, rbx
cmp r10d, r14d
jge 0x14010f13e
mov dword [rsp + 0x28], edx
mov edx, 2
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.14010ecc0
jmp 0x14010f192
mov eax, dword [rbx + 4]
neg ecx
movzx edi, byte [rsi + 0x6a]
neg eax
mov dword [rbx + 4], eax
neg edx
mov eax, dword [rbx + 0xc]
neg eax
mov dword [rsp + 0x28], ecx
mov dword [rbx + 0xc], eax
mov rcx, rsi
mov eax, dword [rbx + 0x14]
neg eax
mov dword [rsp + 0x20], edx
mov edx, 2
mov dword [rbx + 0x14], eax
call fcn.14010ecc0
test dil, dil
je 0x14010f18a
cmp byte [rsi + 0x6a], 0
jne 0x14010f18a
mov rdx, qword [rsi + 0x70]
mov ecx, dword [rdx + 0x20]
neg ecx
mov dword [rdx + 0x20], ecx
mov ecx, dword [rbx + 4]
neg ecx
mov dword [rbx + 4], ecx
test al, al
jne 0x14010f1f5
sub rbx, 0x10
jmp 0x14010f1e4
mov eax, dword [rbx + 8]
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x20], ecx
add ecx, eax
mov dword [rbx + 0x24], r10d
lea edx, [rax + rbp]
mov eax, ecx
sar eax, 1
mov dword [rbx + 0x18], eax
lea eax, [rcx + rdx]
sar eax, 2
lea ecx, [r10 + r9]
mov dword [rbx + 0x10], eax
mov eax, ecx
sar edx, 1
sar eax, 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 + 0x14], eax
mov dword [rbx + 0xc], edx
add rbx, 0x10
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x14010f1f9
mov ebp, dword [rbx]
jmp 0x14010f060
mov al, 1
jmp 0x14010f202
mov dword [rsi + 0x58], ebp
xor al, al
mov dword [rsi + 0x5c], r14d
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401f4d70
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret
Function at 0x14010f830
Capabilities:
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 r15d, r15d
sub rax, 0x34
mov qword [rcx + 0x78], r15
mov qword [rcx + 0x28], rax
mov r14d, edx
mov rax, qword [rcx + 0x30]
mov rbx, rcx
mov word [rcx + 0x6a], r15w
lea ebp, [r15 - 1]
mov dword [rcx + 0x3c], r15d
mov edi, r15d
mov qword [rcx + 0x70], rax
mov qword [rax + 0x10], rax
mov word [rcx + 0x68], r15w
cmp r15w, word [rcx + 0xb8]
jge 0x14010f96b
mov esi, r15d
mov rax, qword [rbx + 0xd0]
lea edx, [rbp + 1]
mov dword [rbx + 0x88], r15d
mov r9d, r14d
mov qword [rbx + 0x80], r15
mov rcx, rbx
movsx ebp, word [rsi + rax]
mov r8d, ebp
call fcn.14010f4f0
test al, al
jne 0x14010fa06
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 0x5c]
lea eax, [r8 - 1]
test edx, eax
jne 0x14010f8ff
cmp edx, dword [rbx + 0x60]
jl 0x14010f8ff
cmp edx, dword [rbx + 0x64]
jg 0x14010f8ff
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x14010f8ff
mov rax, qword [rbx + 0x70]
movzx ecx, byte [rcx + 0x18]
xor cl, byte [rax + 0x18]
test cl, 8
jne 0x14010f8ff
add qword [rbx + 0x30], 0xfffffffffffffffc
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x10]
cmp qword [rbx + 0x30], rax
je 0x14010f922
test byte [r9 + 0x18], 8
je 0x14010f922
neg r8d
and r8d, edx
sub edx, r8d
cmp edx, dword [rbx + 8]
jmp 0x14010f933
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.14010e8d0
test al, al
jne 0x14010fa06
mov rax, qword [rbx + 0x80]
test rax, rax
je 0x14010f956
mov qword [r9 + 0x28], rax
movsx eax, word [rbx + 0xb8]
inc edi
add rsi, 2
cmp edi, eax
jl 0x14010f893
movzx edi, word [rbx + 0x68]
mov rdx, qword [rbx + 0x78]
cmp di, 1
jbe 0x14010fa0a
test rdx, rdx
je 0x14010fa0a
mov ebp, 0xffff
nop dword [rax + rax]
lea rsi, [rdx + 8]
cmp di, 1
jbe 0x14010f9a8
movsxd rcx, dword [rdx + 0x1c]
mov rax, qword [rdx + 0x10]
lea r10, [rax + rcx*4]
jmp 0x14010f9ab
mov r10, r15
mov qword [rsi], r10
test byte [rdx + 0x18], 8
mov r11d, dword [rdx + 0x20]
mov r8d, r11d
mov eax, dword [rdx + 0x1c]
je 0x14010f9c6
dec r11d
add r11d, eax
jmp 0x14010f9dd
sub r8d, eax
inc r8d
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.14010e970
test al, al
jne 0x14010fa06
lea edx, [r11 + 1]
mov rcx, rbx
call fcn.14010e970
test al, al
jne 0x14010fa06
mov rdx, qword [rsi]
add di, bp
jne 0x14010f990
jmp 0x14010fa0e
mov al, 1
jmp 0x14010fa19
mov qword [rbx + 0x78], r15
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 0x140179690
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x14032f0c0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, rcx
mov rcx, qword [0x140336490]
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x1401796e0
cmp dword [rax + 0x20], 4
jge 0x1401796d4
mov rax, qword [rax + 0x10]
jmp 0x1401796da
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1401796c8
cmp byte [rcx + 0x19], 0
jne 0x1401798c5
cmp dword [rcx + 0x20], 4
jg 0x1401798c5
lea r8, [rcx + 0x28]
mov r10, qword [r8 + 0x18]
lea rdx, [rcx + 0x30]
cmp qword [rcx + 0x48], 0xf
jbe 0x14017970a
mov rdx, qword [rdx]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test r10, r10
je 0x140179743
movabs r11, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
xor r9, rax
imul r9, r11
inc rcx
cmp rcx, r10
jb 0x140179730
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140179c20
mov rdx, qword [rax + 8]
test rdx, rdx
jne 0x14017975d
mov rdx, qword [rsi + 0x10]
lea r8, [rsi + 8]
lea rcx, [rsp + 0x38]
call fcn.140177da0
lea r8, [rsi + 8]
mov rdx, qword [rsi + 0x10]
lea rcx, [rsp + 0x60]
call fcn.140177da0
lea rcx, [rsp + 0x60]
call fcn.140002360
mov rbx, rax
lea rcx, [rsp + 0x38]
call fcn.140002360
cmp rax, rbx
je 0x1401797f9
lea rax, str.list_iterators_incompatible
mov qword [rsp + 0x28], rax
lea rax, [0x1402e4364]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0xc2
lea rdx, [0x1402eec90]
lea ecx, [r9 + 2]
call fcn.1402033a0
cmp eax, 1
jne 0x1401797d0
int3
mov qword [rsp + 0x20], 0
mov r9d, 0xc2
lea r8, str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.39.33519includelist
lea rdx, [0x1402e44a4]
lea rcx, str._list_iterators_incompatible_
call fcn.140203dc0
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x70]
mov edx, 3
lea rcx, [rsp + 0x30]
call fcn.1401f1c90
lea rcx, [rsp + 0x60]
call fcn.1400023f0
lea rcx, [rsp + 0x30]
call fcn.1401f1d70
nop
mov edx, 3
lea rcx, [rsp + 0x30]
call fcn.1401f1c90
lea rcx, [rsp + 0x38]
call fcn.1400023f0
lea rcx, [rsp + 0x30]
call fcn.1401f1d70
nop
cmp rdi, rbx
je 0x14017987e
cmp qword [rsi + 0x18], 1
jne 0x140179882
mov al, 1
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401f4d70
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
xor al, al
jmp 0x140179859
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1401793c0
mov r8, rax
lea rdx, str.AcceptEncoding_does_not_accept_any_other_values_if_disabled_is_present._You_set_the_following_encodings:
lea rcx, [rsp + 0x88]
call fcn.1400b1590
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140179360
lea rdx, [0x14032c8b0]
lea rcx, [rsp + 0x38]
call fcn.1401f9600
int3
lea rcx, str.invalid_map_K__T__key
call fcn.1401f2220
int3
Function at 0x14017ec40
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x14032f0c0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov eax, dword [0x14033651c]
mov ecx, eax
inc eax
mov dword [0x14033651c], eax
test ecx, ecx
jne 0x14017edff
cmp byte [0x1403364f3], cl
lea rax, [fcn.14022b0a0]
mov qword [fcn.14022b0a0], rax
lea rax, [fcn.140229280]
mov qword [fcn.140229280], rax
lea rax, [fcn.14020d5f0]
mov qword [fcn.14020d5f0], rax
lea rax, [case.0x140194a27.0]
mov qword [case.0x140194a27.0], rax
lea rax, case.0x1401d6e31.2
mov qword [str._1_], rax
jne 0x14017ecd8
mov rax, qword [case.0x1401d6e31.3]
mov byte [0x1403364f3], 1
call qword [rax + 0x20]
test eax, eax
je 0x14017ee1f
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14017ee1f
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x14017ee19
shr ax, 8
cmp al, 2
jne 0x14017ee19
call fcn.1401a1f30
test eax, eax
jne 0x14017ee1f
lea rcx, str.iphlpapi.dll
mov qword [rsp + 0x1e0], rbx
call fcn.140186980
mov qword [0x1403365b8], rax
test rax, rax
je 0x14017ed52
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14017ed52
mov qword [0x140336140], rax
lea rcx, str.ws2_32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x14017edac
lea rdx, str.FreeAddrInfoExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetAddrInfoExCancel
mov rcx, rbx
mov qword [0x140336148], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetAddrInfoExW
mov rcx, rbx
mov qword [0x140336158], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140336150], rax
xor edx, edx
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.1401a2140
test al, al
mov dword [rsp + 0x20], 3
setne byte [0x140336ac1]
xor r8d, r8d
lea edx, [r8 + 2]
lea ecx, [rdx + 4]
call fcn.1401a2140
test al, al
lea rcx, [0x140336ab8]
setne byte [0x140336ac0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rbx, qword [rsp + 0x1e0]
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1401f4d70
add rsp, 0x1e8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
dec dword [0x14033651c]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1401f4d70
add rsp, 0x1e8
ret
Function at 0x140182d00
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov edx, 0x2b
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x140182ddb
xor r14d, r14d
nop dword [rax]
mov rax, qword [case.0x1401d6e31.3]
lea rdx, [rsp + 0x50]
mov edi, 4
mov r8d, 4
cmp rsi, rdi
mov rcx, rbp
cmovb rdi, rsi
call qword [rax + 0x50]
cmp eax, 4
je 0x140182d5d
mov edx, eax
jmp 0x140182d8b
cmp byte [0x1403364f2], r14b
jne 0x140182d95
mov r9d, 2
mov dword [rsp + 0x50], r14d
lea rdx, [rsp + 0x50]
xor ecx, ecx
lea r8d, [r9 + 2]
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
neg eax
sbb edx, edx
and edx, 2
mov eax, edx
test eax, eax
jne 0x140182ddd
mov eax, dword [rsp + 0x50]
jmp 0x140182db4
imul eax, dword [0x140336548], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x140336548], eax
ror eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x140182dd2
sub rsi, rdi
nop dword [rax]
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x140182dc0
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x140182d30
mov eax, edx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140182df0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
sub rdi, 1
je 0x140182e99
xor ebp, ebp
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
nop
mov rax, qword [case.0x1401d6e31.3]
lea rdx, [rsp + 0x50]
mov r8d, 4
mov rcx, rbx
call qword [rax + 0x50]
cmp eax, 4
jne 0x140182e65
cmp byte [0x1403364f2], bpl
jne 0x140182eb1
lea r9d, [rax - 2]
mov dword [rsp + 0x50], ebp
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
neg eax
sbb eax, eax
and eax, 2
test eax, eax
jne 0x140182e9e
mov ecx, dword [rsp + 0x50]
cmp ecx, 0xfffffffc
jae 0x140182e20
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x3e
sub ecx, eax
movzx eax, byte [rcx + r14]
mov byte [rsi], al
inc rsi
sub rdi, 1
jne 0x140182e20
mov byte [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
imul ecx, dword [0x140336548], 0x41c64e6d
add ecx, 0x3039
mov dword [0x140336548], ecx
ror ecx, 0x10
mov dword [rsp + 0x50], ecx
jmp 0x140182e6d
Function at 0x140186980
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x1401869aa
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1402f3900]
mov rcx, rbx
mov r14, rax
call fcn.140236ad0
test rax, rax
je 0x140186a09
mov rcx, rbx
test r14, r14
je 0x1401869f6
xor edx, edx
lea r8d, [rdx + 8]
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test r14, r14
je 0x140186a40
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140186a40
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x140186b08
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop dword [rax]
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x140186a70
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.14022b0a0]
mov rsi, rax
test rax, rax
je 0x140186afa
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140186afa
mov rax, rdi
cmp byte [rsi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x140186aa0
mov word [rax + rsi], 0x5c
inc rdi
cmp byte [rsi + rdi], bpl
jne 0x140186ab1
mov rax, rsi
sub rax, rbx
add rdi, rax
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rdi + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x140186ad0
mov rcx, rsi
test r14, r14
je 0x140186af1
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x140186af7
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rsi
call qword [fcn.140229280]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x14018ec00
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14018ecf4
call fcn.1401a5820
test al, al
jne 0x14018ecf4
xor r8d, r8d
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp byte [rbx + rdx], r8b
jne 0x14018ec30
test rdx, rdx
je 0x14018ec8c
lea rcx, [rbx - 1]
add rcx, rdx
cmp rcx, rbx
jb 0x14018ec8c
nop word [rax + rax]
cmp byte [rcx], 0x2e
je 0x14018ec5f
dec rcx
cmp rcx, rbx
jae 0x14018ec50
jmp 0x14018ec8c
cmp rcx, rbx
je 0x14018ec8c
lea rax, [rcx - 1]
cmp rax, rbx
jb 0x14018ec8c
nop dword [rax]
cmp byte [rax], 0x2e
je 0x14018ec7f
dec rax
cmp rax, rbx
jae 0x14018ec70
jmp 0x14018ec8c
lea r8, [rax + 1]
mov rax, rbx
sub rax, r8
add rdx, rax
test r8, r8
cmovne rbx, r8
mov r8d, 0x1505
lea r9, [rbx + rdx]
cmp rbx, r9
jae 0x14018ecc7
lea rdx, [0x1402e0f40]
nop dword [rax]
movzx eax, byte [rbx]
inc rbx
imul r8, r8, 0x21
movsx rcx, byte [rax + rdx]
xor r8, rcx
cmp rbx, r9
jb 0x14018ecb0
mov rcx, r8
movabs rax, 0x410410410410411
mul r8
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub r8, rcx
mov rax, r8
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140194c00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movzx eax, byte [rdx + 0x24]
cmp byte [rcx + 0x24], al
jne 0x140194c84
mov eax, dword [rdx + 0x20]
cmp dword [rcx + 0x20], eax
jne 0x140194c84
mov r8, qword [rdx + 0x10]
mov rdx, qword [rcx + 0x10]
test rdx, rdx
je 0x140194c7c
test r8, r8
je 0x140194c84
cmp byte [rdx], 0
je 0x140194c51
lea r9, [0x1402e0f40]
nop
movzx eax, byte [r8]
test al, al
je 0x140194c51
movzx ecx, byte [rdx]
movzx eax, byte [rax + r9]
cmp byte [rcx + r9], al
jne 0x140194c72
inc rdx
inc r8
cmp byte [rdx], 0
jne 0x140194c30
xor r9d, r9d
mov ecx, r9d
mov eax, r9d
cmp byte [rdx], cl
sete cl
cmp byte [r8], al
mov r9d, ecx
setne al
xor r9d, eax
test r9d, r9d
setne al
ret
xor r9d, r9d
test r9d, r9d
setne al
ret
test r8, r8
jne 0x140194c84
mov al, 1
ret
xor al, al
ret
Function at 0x14019e280
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [fcn.14020d5f0]
mov rdi, rax
test rax, rax
je 0x14019e2fd
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x14019e328
cmp ebx, esi
je 0x14019e328
cmp ebx, 0x8000
ja 0x14019e328
cmp ebx, esi
jb 0x14019e323
mov edx, ebx
mov rcx, rdi
call qword [fcn.14020d5f0]
mov rdi, rax
test rax, rax
jne 0x14019e2c0
mov rcx, rbp
call qword [fcn.140229280]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x14019e308
mov rcx, rdi
jmp 0x14019e300