joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a64b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
movsxd r13, dword [rcx + 0x3c]
mov ebx, dword [rcx + r13 + 0x54]
mov r8, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x1400a651a
lea r9, [rsp + 0x20]
mov rcx, rsi
mov rdx, rbx
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400a651a
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rcx, rsi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx eax, word [rdi + r13 + 6]
test ax, ax
je 0x1400a65bd
movsxd rcx, dword [rdi + 0x3c]
lea rbp, [rcx + rdi]
add rbp, 0x110
xor ebx, ebx
jmp 0x1400a6555
movzx eax, word [rdi + r13 + 6]
inc rbx
movzx ecx, ax
add rbp, 0x28
cmp rbx, rcx
jae 0x1400a65bd
cmp dword [rbp + 0x1c], 0
js 0x1400a6546
mov r14d, dword [rbp]
mov r15d, dword [rbp + 4]
lea r12, [rdi + r15]
add r15, rsi
mov rcx, r12
mov rdx, r15
mov r8, r14
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x1400a6540
mov rcx, r15
mov rdx, r14
mov r8d, 0x40
lea r9, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400a6540
mov rcx, r15
mov rdx, r12
mov r8, r14
call sub.msvcrt.dll_memcpy
mov r8d, dword [rsp + 0x24]
mov rcx, r15
mov rdx, r14
lea r9, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1400a6540
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400a6640
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, 0x48
test rcx, rcx
je 0x1400a6814
mov r14, rdx
mov rbx, rcx
movsxd rcx, dword [rcx + 0x3c]
mov r15d, dword [rcx + rbx + 0x88]
mov r13d, dword [r15 + rbx + 0x1c]
add r13, rbx
mov rax, rdx
shr rax, 0x10
test ax, ax
je 0x1400a66d4
mov ebp, dword [rbx + r15 + 0x18]
test ebp, ebp
je 0x1400a6814
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], r8
mov r12d, dword [rbx + r15 + 0x20]
mov esi, dword [rbx + r15 + 0x24]
add r12, rbx
add rsi, rbx
xor edi, edi
nop dword [rax + rax]
mov ecx, dword [r12]
add rcx, rbx
mov rdx, r14
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x1400a66ea
add r12, 4
add rsi, 2
dec ebp
jne 0x1400a66b0
jmp 0x1400a681b
movzx eax, r14w
mov ecx, dword [rbx + r15 + 0x10]
sub rax, rcx
mov edi, dword [r13 + rax*4]
jmp 0x1400a6818
movzx eax, word [rsi]
mov edi, dword [r13 + rax*4]
cmp r15d, edi
ja 0x1400a6818
mov rax, qword [rsp + 0x38]
add r15d, dword [rbx + rax + 0x8c]
cmp edi, r15d
jae 0x1400a6818
add rdi, rbx
mov rcx, rdi
mov edx, 0x2e
call sub.msvcrt.dll_strchr
mov rbx, rax
inc rbx
mov rsi, rbx
sub rsi, rdi
lea rcx, [rsi + 4]
mov edx, 2
call sub.msvcrt.dll_calloc
test rax, rax
je 0x1400a6814
mov r14, rax
lea r8, [rsi + 1]
mov qword [rsp + 0x20], rsi
xor ecx, ecx
mov rdx, rax
mov r9, rdi
call qword [sym.imp.msvcrt.dll_mbstowcs_s]
mov dword [r14 + rsi*2], 0x6c0064
mov word [r14 + rsi*2 + 4], 0x6c
lea rdx, [0x1400aa002]
mov r8d, 4
mov rcx, r14
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
je 0x1400a67a2
lea rdx, str.ext_
mov r8d, 4
mov rcx, r14
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x1400a67f0
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
mov rdx, r14
call fcn.1400a59d0
test rax, rax
je 0x1400a67f0
mov rsi, rax
mov rcx, r14
call sub.msvcrt.dll_free
mov rdi, qword [rsp + 0x40]
lea rcx, [rdi + 1]
mov edx, 2
call sub.msvcrt.dll_calloc
test rax, rax
je 0x1400a6814
mov r14, rax
add rdi, rdi
mov rcx, rax
mov rdx, rsi
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov rdx, rbx
mov r8, r14
call fcn.1400a6640
mov rdi, rax
mov rcx, r14
call sub.msvcrt.dll_free
jmp 0x1400a681b
xor edi, edi
jmp 0x1400a681b
add rdi, rbx
mov rax, rdi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400a6b60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400a79b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400a79b0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x1400a6bd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400ad0a4]
mov rbx, rcx
test esi, esi
jle 0x1400a6d00
mov rax, qword [0x1400ad0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400a6c1b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400a6ca5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400a6c00
mov rcx, rbx
call fcn.1400a7620
mov rdi, rax
test rax, rax
je 0x1400a6d22
mov rax, qword [0x1400ad0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400a7760
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400ad0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400a6d07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400a6c9e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400a6cb0
add dword [0x1400ad0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400ad0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400a6c9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400a6b60
nop dword [rax]
xor esi, esi
jmp 0x1400a6c28
mov rax, qword [0x1400ad0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400a6b60
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400a6b60
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400a7290
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400ad100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400ad0e0]
test rbx, rbx
je 0x1400a72ec
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400a72e3
test rsi, rsi
je 0x1400a72e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400a72c8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400a7620
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400aa3b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400a7640
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400a7648
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400a7640
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400a769d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400a7694
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400a7640
add rax, 0x28
cmp rax, r9
jne 0x1400a7680
xor eax, eax
ret

Function at 0x1400a76a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400aa3b0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400a76bf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400a76c8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400a76bf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400a7760
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400aa3b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400a777f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400a7788
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
push rcx
mov rdx, qword [rdx + 0x20]
push rsi
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
push r9
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov r8d, dword [rax + 0x20]
push rax
mov ecx, dword [rax + 0x18]
add r8, rdx
jrcxz 0x1400040ca
dec rcx
xor r9, r9
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140003f58
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003fa2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003fa2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003fa2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003fa2
cmp dword [rcx + 0x84], 0xe
jbe 0x140003fa2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003fa4
xor al, al
add rsp, 0x28
ret
Function at 0x1400028e0
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 qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov r15d, edx
lea r14d, [rdx - 1]
mov rdi, rcx
xor r12d, r12d
nop word [rax + rax]
mov esi, r12d
mov ebp, r12d
test r14d, r14d
je 0x140002ad6
nop
movzx ecx, byte [rdi + 8]
add cl, 0xff
shl esi, cl
add esi, esi
nop dword [rax + rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x140002994
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x140002950
mov ecx, dword [r10]
jmp 0x140002a77
cmp ecx, 0x4e0
jb 0x140002a77
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1400029b0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140002a00
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r12d
mov dword [r10], r12d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 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
mov edx, dword [rdi + 0x10]
cmp eax, edx
ja 0x140002930
movzx ecx, byte [rdi + 8]
or esi, eax
add cl, 0xff
shl ebp, cl
add ebp, ebp
or ebp, edx
cmp ebp, r14d
jb 0x140002920
xor edx, edx
mov eax, ebp
div r15d
xor edx, edx
mov ecx, eax
mov eax, esi
div r15d
cmp eax, ecx
jb 0x140002afa
xor edx, edx
mov eax, ebp
div r15d
cmp edx, r14d
jne 0x140002910
mov rbx, qword [rsp + 0x20]
mov eax, esi
mov rbp, qword [rsp + 0x28]
xor edx, edx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
div r15d
mov eax, edx
pop r15
pop r14
pop r12
ret
Function at 0x140002b20
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 qword [rsp + 0x20], rdi
push r14
xor r14d, r14d
mov rdi, rcx
mov esi, r14d
mov ebp, r14d
movzx ecx, byte [rdi + 8]
add cl, 0xff
shl esi, cl
add esi, esi
nop dword [rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x140002bb4
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x140002b70
mov ecx, dword [r10]
jmp 0x140002c97
cmp ecx, 0x4e0
jb 0x140002c97
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140002bd0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140002c20
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r14d
mov dword [r10], r14d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 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 ecx, edx
shr ecx, 0x12
xor ecx, edx
cmp ecx, dword [rdi + 0x10]
ja 0x140002b50
add rbp, qword [rdi + 8]
or esi, ecx
cmp rbp, 0x20
jb 0x140002b42
mov rbx, qword [rsp + 0x10]
mov eax, esi
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x28]
pop r14
ret
Function at 0x1400151c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400a50e8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x30], 0
movdqa xmm0, xmmword [0x1400816e0]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
lea rcx, [0x1400a7940]
call fcn.14000a3b0
cmp byte [0x1400a76e0], 0
je 0x140015467
lea rcx, [0x1400a7940]
call fcn.1400073f0
cmp byte [0x1400a76e0], 0
je 0x140015467
mov edx, 6
lea rcx, str.Welcome_to_EG__n_n
call fcn.140017f60
mov edx, 6
lea rcx, str.Login_Key:__n
call fcn.140017f60
lea rdx, [0x1400a7940]
lea rcx, [0x1400a9490]
call fcn.14000ea20
lea rcx, [0x1400a7940]
call fcn.140007a30
cmp al, 1
jne 0x140015467
cmp byte [0x1400a76e0], 0
je 0x140015467
lea rbx, [0x1400a76e8]
mov rcx, rbx
cmp qword [0x1400a7700], 0x10
cmovae rcx, qword [0x1400a76e8]
mov r8, qword [0x1400a76f8]
cmp r8, 2
jne 0x140015467
lea rdx, [0x140081a64]
call fcn.140053150
test eax, eax
jne 0x140015467
mov edx, dword [0x1400a76dc]
lea rcx, [0x1400a9520]
call fcn.14000fbe0
mov rcx, rax
lea rdx, [0x140082028]
call fcn.14000dee0
mov r8d, 8
lea rdx, str.58738046
lea rcx, [0x1400a79c0]
call fcn.14000a250
lea rdx, [rsp + 0x50]
lea rcx, [0x1400a7940]
call fcn.14000aca0
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x140015318
mov rax, qword [rax]
cmp r8, 4
jne 0x140015336
lea rdx, str.Core
mov rcx, rax
call fcn.140053150
test eax, eax
jne 0x140015336
xor dil, dil
jmp 0x140015339
mov dil, 1
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140015376
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015371
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140015472
call fcn.1400501b4
test dil, dil
jne 0x140015467
cmp byte [0x1400a76e0], dil
je 0x140015467
cmp qword [0x1400a7700], 0x10
cmovae rbx, qword [0x1400a76e8]
mov r8, qword [0x1400a76f8]
cmp r8, 4
jne 0x140015467
lea rdx, str.Core
mov rcx, rbx
call fcn.140053150
test eax, eax
jne 0x140015467
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], eax
xor r9d, r9d
lea r8, [0x140012d70]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 2
lea rcx, str.Done
call fcn.140017f60
lea rdx, [rsp + 0x30]
lea rcx, [0x1400a9490]
call fcn.14000ea20
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140015441
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001543c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140015461
call fcn.1400501b4
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140050250
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
call fcn.140057064
nop
mov ecx, 0x2b
call fcn.14005b204
int3
call fcn.140057064
int3

Function at 0x140015cf0
Capabilities:
Reference http user-agent string

Disassembly:
xor eax, eax
mov dword [rcx + 0x18], eax
mov qword [rcx], rax
lea rax, [0x1400819e0]
mov qword [rcx + 8], rax
lea rax, str.Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__Trident_5.0_
mov qword [rcx + 0x10], rax
mov rax, rcx
ret
Function at 0x140016040
Capabilities:
Initialize winhttp library

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx], 0
mov rbx, rcx
je 0x140016057
xor al, al
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rcx + 0x10]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
test rax, rax
mov qword [rbx], rax
setne al
add rsp, 0x30
pop rbx
ret
Function at 0x14001afd0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r15
sub rsp, 0x30
movsxd rbx, dword [rsp + 0x78]
xor r12d, r12d
mov qword [rsp + 0x58], r14
mov r11d, r12d
movsxd r14, dword [rsp + 0x70]
mov r10d, r12d
mov rsi, r9
mov rdi, r8
mov r15, rdx
mov rax, r12
test rbx, rbx
jle 0x14001b046
lea r9, [r14 + r14*2]
shl r9, 5
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rdi]
lea r9, [r9 + 0x18]
mov rdx, qword [r10 + rcx]
mov rcx, qword [rsi]
lea r8, [rdx + rax*4]
inc rax
mov rdx, qword [r9 + rcx - 0x18]
mov ecx, dword [rdx + r11]
xor dword [r8], ecx
cmp rax, rbx
jl 0x14001b020
add r10, 0x18
add r11, 4
cmp r10, 0x60
jl 0x14001b004
mov rdx, qword [rdi + 0x10]
mov qword [rdi + 0x10], r12
mov rcx, qword [rdi + 8]
mov qword [rdi + 8], r12
mov rax, qword [rdi]
mov qword [rdi], r12
mov qword [r15], rax
mov qword [r15 + 8], rcx
mov qword [r15 + 0x10], rdx
mov rbx, qword [rdi]
mov qword [rsp + 0x50], rbp
mov r14, qword [rsp + 0x58]
test rbx, rbx
je 0x14001b146
mov rbp, qword [rdi + 8]
cmp rbx, rbp
je 0x14001b0e5
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001b0dc
mov rdx, qword [rbx + 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
cmp rdx, 0x1000
jb 0x14001b0cc
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001b16a
mov rcx, r8
call fcn.1400501b4
mov qword [rbx], r12
mov qword [rbx + 8], r12
mov qword [rbx + 0x10], r12
add rbx, 0x18
cmp rbx, rbp
jne 0x14001b094
mov r8, qword [rdi]
movabs rax, 0x2aaaaaaaaaaaaaab
mov rcx, qword [rdi + 0x10]
sub rcx, r8
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 3
cmp rdx, 0x1000
jb 0x14001b133
mov rcx, qword [r8 - 8]
add rdx, 0x27
sub r8, rcx
lea rax, [r8 - 8]
cmp rax, 0x1f
ja 0x14001b16a
mov r8, rcx
mov rcx, r8
call fcn.1400501b4
mov qword [rdi], r12
mov qword [rdi + 8], r12
mov qword [rdi + 0x10], r12
mov rcx, rsi
call fcn.14001af40
mov rbp, qword [rsp + 0x50]
mov rax, r15
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r12
pop rdi
ret
call fcn.140057064
int3
Function at 0x140020e70
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
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r14d, r8d
mov rbx, rdx
xor r12d, r12d
mov ecx, dword [0x1400aa078]
mov rax, qword gs:[0x58]
mov rsi, qword [rax + rcx*8]
mov eax, 0x13a8
mov eax, dword [rax + rsi]
cmp dword [0x1400a90e8], eax
jg 0x14002106b
mov r15d, 0x1398
mov eax, dword [r15 + rsi]
mov r13d, reloc.OLEAUT32.dll_SafeArrayGetDim
test al, 1
jne 0x140020f28
or eax, 1
mov dword [r15 + rsi], eax
mov edi, r13d
add rdi, rsi
call fcn.140028e54
mov dword [rdi + 0x1384], 0xffffffff
mov dword [rdi + 4], eax
mov edx, 1
lea r8, [rdi + 8]
nop dword [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [r8], eax
inc rdx
lea r8, [r8 + 4]
cmp rdx, 0x270
jb 0x140020f00
mov dword [rdi], 0x270
mov eax, dword [r15 + rsi]
mov ebp, 0x13a0
test al, 2
jne 0x140020f4c
or eax, 2
mov dword [r15 + rsi], eax
mov dword [rsi + rbp], r12d
mov eax, dword [0x1400a50b8]
dec eax
mov dword [rsi + rbp + 4], eax
mov eax, 0x20
test r14d, r14d
cmovne eax, r14d
movsxd rdx, eax
xor r8d, r8d
mov rcx, rbx
call fcn.140002790
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140020f78
mov rcx, qword [rbx]
mov rdx, rcx
jmp 0x140020f7b
mov rdx, rbx
mov rdi, rcx
mov r14, qword [rbx + 0x10]
add r14, rdx
cmp rcx, r14
je 0x140021048
lea r15, [rsi + rbp]
mov ebp, r13d
add rbp, rsi
mov r12d, 0x80000000
lea r13, [0x1400a50a8]
nop word [rax + rax]
mov edx, dword [r15 + 4]
mov ecx, dword [r15]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x30], 0x20
mov dword [rsp + 0x38], 0xffffffff
lea eax, [rcx - 0x80000000]
lea esi, [rcx + r12]
cmp ecx, r12d
cmovae esi, eax
lea eax, [rdx - 0x80000000]
lea ecx, [rdx + r12]
cmp edx, r12d
cmovae ecx, eax
sub ecx, esi
cmp ecx, 0xffffffff
jne 0x140021000
lea rcx, [rsp + 0x28]
call fcn.140002b20
jmp 0x14002100d
lea edx, [rcx + 1]
lea rcx, [rsp + 0x28]
call fcn.1400028e0
lea ecx, [rsi + rax]
lea eax, [rcx - 0x80000000]
lea edx, [rcx + r12]
cmp ecx, r12d
cmovae edx, eax
mov rcx, r13
cmp qword [0x1400a50c0], 0x10
cmovae rcx, qword [0x1400a50a8]
movsxd rax, edx
movzx ecx, byte [rax + rcx]
mov byte [rdi], cl
inc rdi
cmp rdi, r14
jne 0x140020fb0
mov rax, rbx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, [0x1400a90e8]
call fcn.140050918
cmp dword [0x1400a90e8], 0xffffffff
jne 0x140020ebc
mov edx, 0x30
lea rcx, [0x1400a50a8]
call fcn.1400020f0
mov qword [0x1400a50a8], rax
mov qword [0x1400a50b8], 0x2a
mov qword [0x1400a50c0], 0x2f
movups xmm0, xmmword [str.ABCDFGHJKLMNPQRSTVWXZabcdfghjklmnpqrstvwxz]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400817b0]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1400817c0]
movsd qword [rax + 0x20], xmm0
movzx edx, word [0x1400817c8]
mov word [rax + 0x28], dx
mov byte [rax + 0x2a], 0
lea rcx, [0x140080680]
call fcn.1400504d4
nop
lea rcx, [0x1400a90e8]
call fcn.1400508b8
jmp 0x140020ebc