joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14021dc30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1403f3888]
cmp ecx, 0xffffffff
je 0x14021dc52
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14021dc57
call fcn.14021dd70
mov eax, dword [0x1403fc630]
mov ecx, dword [0x1403f3d34]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14021dd07
mov rbx, qword [0x1403fc628]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14021dd4d
mov rax, qword [0x1403fae10]
inc rax
xor ecx, ecx
lea rdx, [0x1403fae20]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x14021dd5a
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x1403fc620]
inc ecx
mov dword [0x1403fc620], ecx
mov dword [rax + 0x14], ecx
mov qword [0x1403fae10], r8
mov qword [rsi], r8
mov eax, dword [rax + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x14021dd6c
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1403fc630]
call fcn.140318620
cmp dword [0x1403fc630], 0xffffffff
jne 0x14021dc7c
mov ecx, 8
call fcn.140318438
mov rbx, rax
mov rcx, rax
call fcn.1402f3440
mov qword [0x1403fc628], rbx
lea rcx, [0x1403fc630]
call fcn.1403186b8
jmp 0x14021dc7c
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x14021dc94
inc rcx
cmp rcx, 0x100
jne 0x14021dca7
jmp 0x14021dced
int3

Function at 0x14021dd70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.1403199a0
sub rsp, rax
mov rax, qword [0x1403e4018]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1403f3888]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
jne 0x14021de0c
lea rcx, [rsp + 0x2c]
call fcn.1402296e0
test al, al
je 0x14021de87
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
jne 0x14021ddee
lea rcx, [rsp + 0x2c]
call fcn.1402296e0
test al, al
je 0x14021de8a
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14021de8a
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
mov eax, 0xffffffff
lock cmpxchg dword [0x1403f3888], ecx
je 0x14021de0c
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1403f3888]
mov dword [rsp + 0x2c], ecx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14021de84
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.14031b780
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.1403184ac
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.14031b320
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140319a10
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
int3
int3
int3
Function at 0x14021de90
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1403f3888]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14021dece
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x14021dec7
call fcn.14021dd70
jmp 0x14021deae

Function at 0x140220920
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x1403e4018]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x1403bc150]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x140220a9c
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x1403fe400]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.14033e1c8
mov rcx, rbx
call fcn.14033c934
sub r14, rax
lea rdx, [0x1403bde8c]
mov rcx, rbx
mov r8, r14
call fcn.14033e1c8
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.14031b780
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
lea rcx, str.PROGRAMFILES
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x1402209f8
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14033e210
test eax, eax
je 0x140220a33
lea rcx, str.PROGRAMFILES_X86_
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140220a2f
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14033e210
test eax, eax
je 0x140220a33
xor eax, eax
jmp 0x140220a35
mov al, 1
mov byte [0x1403fdff9], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1403c6a20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140220a8d
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [case.0x140318756.0]
test eax, eax
je 0x140220a8d
cmp dword [rsp + 0x30], 0
setne al
jmp 0x140220a8f
xor eax, eax
mov byte [0x1403fe600], al
mov byte [0x1403fdff8], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140319a10
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140220d60
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x1403e4018]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x140220d93
mov rax, qword [rsi + 8]
test rax, rax
je 0x140220dc2
bt ebx, 8
jae 0x140220da7
mov eax, ebx
and eax, 0x200
jne 0x140220dc2
cmp edi, 2
lea rax, [0x1403fe000]
lea rcx, [0x1403fe200]
cmove rcx, rax
cmp word [rcx], 0
je 0x140220de1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140319a10
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xorps xmm0, xmm0
lea r14, [rsp + 0x40]
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [r14], 0
je 0x140220dc2
cmp byte [0x1403fe600], 0
setne al
bt ebx, 8
jb 0x140220dc2
shr ebx, 9
and ebx, 1
or bl, al
je 0x140220dc2
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movzx ebp, byte [rsi + 0x17]
test bpl, bpl
js 0x140220e44
mov rdi, rsi
jmp 0x140220e4b
mov rdi, qword [rsi]
mov rbp, qword [rsi + 8]
mov ebx, 1
xor r14d, r14d
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov r15, qword [r12 + 8]
mov r13, rbp
sub r13, r15
jb 0x140220e89
mov rdx, qword [r12]
mov rcx, rdi
mov r8, r15
call fcn.1403315a8
test eax, eax
je 0x140220e9a
add r12, 0x28
inc r14
cmp r14, rbx
jb 0x140220e69
jmp 0x140220f1d
movzx edx, word [rdi + r15*2]
cmp edx, 0x5c
je 0x140220ea8
test edx, edx
jne 0x140220e89
lea rcx, [rdi + r15*2]
mov r8d, dword [r12 + 0x10]
lea rax, str.WOW6432Node_
cmp r8d, 1
je 0x140220eda
cmp r8d, 2
jne 0x140220ed0
mov rdi, rcx
lea rax, str.WOW6432Node
jmp 0x140220eda
mov rdi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
cmp dx, 0x5c
mov dword [rsp + 0x2c], r8d
jne 0x140220ef8
lea rdx, [rcx + 2]
dec r13
cmp word [rcx + 2], 0x5c
mov rcx, rdx
je 0x140220ee5
jmp 0x140220efb
mov rdx, rcx
mov rbx, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
mov rbp, r13
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rax
xor r14d, r14d
mov rdi, rdx
jmp 0x140220e90
cmp dword [rsp + 0x2c], 0
je 0x140220dc2
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x140220f34
mov rax, qword [rsi]
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, rsi
mov r8, qword [rsp + 0x38]
call fcn.140367250
jmp 0x140220dc2
Function at 0x140221d50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x1403e4018]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x140221d20]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x1403fe608]
lea rdx, [0x140221b80]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140221e48
cmp dword [0x1403fe610], 0
jne 0x140221e55
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x1403fe614]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x140221dfc
mov ecx, 1
mov edx, 0x28
call fcn.1402f36e0
test rax, rax
je 0x140221e55
mov r14, rax
mov ecx, dword [0x1403fe614]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140221e4d
lea r15, [0x1403fe618]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x1403fe620]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov esi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140319a10
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14032e0b0
mov rcx, r14
call fcn.1402f3640
mov rcx, rsi
mov rax, rdi
call qword [case.0x140318756.0]
xor esi, esi
jmp 0x140221e2c

Function at 0x140222460
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x1403fe648], 0
jne 0x14022249d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140222490
mov dword [rdi], eax
mov dword [0x1403fe650], eax
mov qword [0x1403fe648], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3

Function at 0x1402296e0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1402296f5
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x14022b050
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x30
mov rax, rcx
mov rcx, qword [0x1403e4018]
xor rcx, rsp
mov qword [rsp + 0x28], rcx
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x14022b0d3
cmp byte [rax + 0x90], 0
jne 0x14022b0d3
mov sil, 1
cmp byte [rax + 0x91], 0
jne 0x14022b0be
lea rdx, [rsp + 0x27]
mov byte [rdx], 0xaa
mov r8d, 1
mov r9d, 2
call qword [sym.imp.WS2_32.dll_recv]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
je 0x14022b0d3
cmp esi, 0xffffffff
setne cl
cmp eax, 0x2733
sete sil
or sil, cl
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140319a10
mov eax, esi
add rsp, 0x30
pop rsi
ret
xor esi, esi
jmp 0x14022b0be
Function at 0x14022b0e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1403e4018]
xor rax, rsp
mov qword [rsp + 0xb8], rax
lea rbx, [rsp + 0x28]
mov r8d, 0x90
mov rcx, rbx
mov dl, 0xaa
call fcn.14031b780
mov rcx, rbx
call fcn.14022a150
lea r8, [rsp + 0xa8]
mov rdx, qword [r8 + 8]
mov rcx, qword [rdi + 8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14022b17a
mov r8d, dword [rsp + 0xa8]
mov rdx, qword [rsp + 0xb0]
mov rcx, rsi
call fcn.1402167b0
xor ecx, ecx
test al, al
mov esi, 0xffffff94
cmovne esi, ecx
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140319a10
mov eax, esi
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.140223ef0
mov esi, eax
jmp 0x14022b15d

Function at 0x14022bec0
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor ecx, ecx
xor eax, eax
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x14022bfe2
mov r10d, eax
xor ecx, ecx
mov eax, 1
xchg rbx, r9
cpuid
xchg rbx, r9
mov r9d, ecx
mov r11d, edx
mov esi, eax
cmp r10d, 7
jb 0x14022c018
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr r10b, 4
and r10b, 1
mov dword [r8], esi
mov eax, esi
and eax, 0xf
mov dword [r8 + 8], eax
shr esi, 0xc
and esi, 3
mov dword [r8 + 4], esi
mov eax, r11d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r11d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r11d, 0x1a
and r11b, 1
mov byte [r8 + 0xe], r11b
mov eax, r9d
and al, 1
mov byte [r8 + 0xf], al
mov eax, r9d
shr eax, 9
and al, 1
mov byte [r8 + 0x10], al
mov eax, r9d
shr eax, 0x13
and al, 1
mov byte [r8 + 0x11], al
mov eax, r9d
shr eax, 0x14
and al, 1
mov byte [r8 + 0x12], al
mov eax, r9d
shr eax, 0x17
and al, 1
mov byte [r8 + 0x13], al
mov eax, r9d
shr eax, 0x1f
mov byte [r8 + 0x1a], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x14022c020
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
mov byte [r8 + 0x14], al
mov ecx, r9d
shr ecx, 0x19
and cl, 1
mov byte [r8 + 0x17], cl
shr r9d, 0xc
and r9b, 1
mov byte [r8 + 0x15], r9b
test al, al
setne al
test edi, edi
setne cl
and cl, al
mov byte [r8 + 0x16], cl
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x14022c024
mov eax, 0x80000007
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x14022c02a
pop rdi
pop rsi
ret
xor r10d, r10d
jmp 0x14022bf1c
xor eax, eax
jmp 0x14022bfb1
mov dl, byte [r8 + 0x19]
jmp 0x14022c011
cmp byte [r8 + 0x1a], 0
je 0x14022c015
mov eax, 0x40000000
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x14022c015
cmp ecx, 0x666f736f
jne 0x14022c015
cmp edx, 0x76482074
jne 0x14022c015
mov byte [r8 + 0x19], 1
jmp 0x14022c015
Function at 0x14022c190
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1403e4018]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rdi, rsi
jae 0x14022c218
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x14022c211
mov rdx, rcx
add rdi, rdx
cmp al, 1
jne 0x14022c1d2
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140319a10
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14024e130
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
cmp r9b, 1
jne 0x14024e14b
xor r10d, r10d
mov r9d, 1
mov r11, rcx
jmp 0x14024e19c
movzx r11d, r9b
and r8d, 0xfffffffe
mov r9d, 3
mov eax, 3
sub eax, r11d
xor r10d, r10d
cmp eax, r8d
jge 0x14024e189
sub r9d, r11d
movsxd rax, r9d
movsxd r8, r8d
cmp byte [rcx + rax], 0
jne 0x14024e183
add rax, 2
cmp rax, r8
jl 0x14024e172
jmp 0x14024e189
mov r10d, 1
xor eax, 1
and r11d, 1
add r11, rcx
mov r9d, 2
mov r8d, eax
movsxd rax, r8d
add rcx, rax
mov r8b, 1
cmp r11, rcx
jae 0x14024e1dd
mov eax, r9d
lea rsi, [0x1403cbc10]
movzx edi, byte [r11]
test byte [rdi + rsi], 1
je 0x14024e1c8
add r11, rax
cmp r11, rcx
jb 0x14024e1b4
jmp 0x14024e1dd
cmp edi, 0x2b
je 0x14024e1da
cmp edi, 0x2d
jne 0x14024e1dd
add r11, rax
xor r8d, r8d
jmp 0x14024e1dd
add r11, rax
mov rsi, r11
cmp r11, rcx
jae 0x14024e1f8
mov eax, r9d
mov rsi, r11
cmp byte [rsi], 0x30
jne 0x14024e1f8
add rsi, rax
cmp rsi, rcx
jb 0x14024e1eb
cmp rsi, rcx
jae 0x14024e242
mov r14d, r9d
xor edi, edi
xor eax, eax
movzx r15d, byte [rsi + rdi]
lea ebx, [r15 - 0x30]
cmp bl, 0xa
setb bl
jae 0x14024e22d
lea rax, [rax + rax*4]
lea rax, [r15 + rax*2]
add rax, 0xffffffffffffffd0
add rdi, r14
lea r15, [rsi + rdi]
cmp r15, rcx
jb 0x14024e204
test rax, rax
jns 0x14024e248
movabs rax, 0x7fffffffffffffff
lea r14, [rax + 1]
jmp 0x14024e24e
xor edi, edi
mov bl, 1
xor eax, eax
mov r14, rax
neg r14
test r8b, r8b
cmovne r14, rax
mov qword [rdx], r14
test edi, edi
jne 0x14024e266
mov eax, 0xffffffff
cmp r11, rsi
je 0x14024e29d
test r10d, r10d
setne al
or al, bl
mov eax, r10d
jne 0x14024e29d
mov eax, edi
mov r10d, r9d
add rax, rsi
lea r11, [0x1403cbc10]
movzx ebx, byte [rax]
test byte [rbx + r11], 1
je 0x14024e298
add rax, r10
cmp rax, rcx
jb 0x14024e282
xor eax, eax
jmp 0x14024e29d
mov eax, 1
lea ecx, [r9 + r9*8]
lea ecx, [r9 + rcx*2]
cmp edi, ecx
jb 0x14024e346
jbe 0x14024e2ce
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + 1]
test r8b, r8b
cmovne rcx, rax
mov qword [rdx], rcx
mov eax, 2
jmp 0x14024e346
mov ecx, r9d
xor r11d, r11d
lea r10, [0x1403cc4b8]
mov rdi, rsi
movsx r9d, byte [rdi]
movsx ebx, byte [r11 + r10]
cmp r9b, bl
jne 0x14024e2fc
lea r14, [r11 + 1]
add rdi, rcx
cmp r11, 0x11
mov r11, r14
jb 0x14024e2de
cmp r9b, bl
jne 0x14024e30e
lea rcx, [rcx + rcx*8]
movsx ecx, byte [rsi + rcx*2]
add ecx, 0xffffffc8
jmp 0x14024e318
sub r9d, ebx
add r9d, r9d
lea ecx, [r9 + r9*4]
test ecx, ecx
js 0x14024e346
movabs r9, 0x7fffffffffffffff
lea r10, [r9 + 1]
test r8b, r8b
cmovne r10, r9
mov qword [rdx], r10
mov edx, 3
cmovne eax, edx
test ecx, ecx
mov ecx, 2
cmovne eax, ecx
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1402dd5d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r14, qword [rcx + 0x90]
test r14, r14
je 0x1402dd709
mov rsi, rcx
mov rdi, qword [rcx + 0x10]
mov r15, qword [rcx]
mov r13, qword [r15 + 0x20]
movsxd rbx, dword [r14 + 0x10]
mov r12d, dword [r14 + 0x14]
mov al, byte [rsi + 0x1f]
test al, al
je 0x1402dd61e
dec al
mov byte [rsi + 0x1f], al
movzx eax, al
mov ebp, dword [rsi + rax*4 + 0xd0]
jmp 0x1402dd626
mov ebp, dword [rsi + 0x38]
inc ebp
mov dword [rsi + 0x38], ebp
movsxd rax, dword [rdi + 0x90]
lea r9d, [rax + 7]
lea r8d, [r12 + 2]
cmp dword [rdi + 0x94], eax
jle 0x1402dd673
lea ecx, [rax + 1]
mov dword [rdi + 0x90], ecx
mov rcx, qword [rdi + 0x88]
lea rax, [rax + rax*2]
mov dword [rcx + rax*8], 0x35
mov dword [rcx + rax*8 + 4], r8d
mov dword [rcx + rax*8 + 8], r9d
mov dword [rcx + rax*8 + 0xc], r12d
mov qword [rcx + rax*8 + 0x10], 0
jmp 0x1402dd685
mov dword [rsp + 0x20], r12d
mov rcx, rdi
mov edx, 0x35
call fcn.14026f1c0
shl rbx, 5
mov rax, qword [r13 + rbx + 0x18]
mov r9, qword [rax + 0x68]
mov r8d, dword [r14 + 0x10]
mov dword [rsp + 0x20], reloc.WS2_32.dll_WSAStartup
mov rcx, rsi
xor edx, edx
call fcn.1402a79c0
mov rcx, rdi
mov edx, 5
lea r8, [0x1403d24c0]
call fcn.140235960
test rax, rax
je 0x1402dd709
lea ecx, [r12 + 1]
mov dword [rax + 4], ecx
mov dword [rax + 0x20], ecx
dec r12d
mov dword [rax + 0x34], r12d
mov dword [rax + 0x3c], ebp
mov dword [rax + 0x50], ebp
mov dword [rax + 0x54], ecx
mov word [rax + 0x4a], 8
test ebp, ebp
je 0x1402dd6fd
movzx eax, byte [rsi + 0x1f]
cmp rax, 7
ja 0x1402dd6fd
lea ecx, [rax + 1]
mov byte [rsi + 0x1f], cl
mov dword [rsi + rax*4 + 0xd0], ebp
mov r14, qword [r14]
test r14, r14
jne 0x1402dd5fa
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1402e6500
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x1402e653c
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1402e6546
add rdi, rbx
sub rsi, rbx
jne 0x1402e651a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x1402f2cd0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1403e4018]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1403f7508]
mov ecx, dword [0x1403f3d34]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1402f2d30
mov rsi, qword [0x1403f7500]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140319a10
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1403f7508]
call fcn.140318620
cmp dword [0x1403f7508], 0xffffffff
jne 0x1402f2d0c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14031b780
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.140318438
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1403f7550]
mov ecx, dword [0x1403f3d34]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1402f2df0
lea r8, [0x1403f7520]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140204d10
mov qword [0x1403f7500], rsi
lea rcx, [0x1403f7508]
call fcn.1403186b8
jmp 0x1402f2d0c
lea rcx, [0x1403f7550]
call fcn.140318620
cmp dword [0x1403f7550], 0xffffffff
jne 0x1402f2dc1
xorps xmm0, xmm0
movups xmmword [0x1403f7540], xmm0
movups xmmword [0x1403f7530], xmm0
movups xmmword [0x1403f7520], xmm0
lea rcx, [0x1403f7520]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1403f7550]
call fcn.1403186b8
jmp 0x1402f2dc1