joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140179300
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x30]
call fcn.1401784b0
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
add rsp, 0x28
jmp 0x140179300
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1402bf200]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, qword [rbp + 0x48]
cmp rbx, 1
jl 0x140179390
movabs rax, 0x624dd2f1a9fbe77
mul rbx
mov r8, rbx
sub r8, rdx
shr r8, 1
add r8, rdx
shr r8, 9
mov qword [rbp - 0x20], r8
mov qword [rbp - 0x28], 0
mov r9d, 0xffffffff
mov qword [rbp - 0x18], r9
mov rax, r8
shr rax, 0x3f
lea rcx, [rbp - 0x28]
lea rdx, [rbp - 0x20]
test al, al
cmove rcx, rdx
lea rdi, [rbp - 0x18]
cmp r8, r9
cmovle rdi, rcx
mov edi, dword [rdi]
jmp 0x140179392
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r12d, [rdi + rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, eax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rax
mov rsi, qword [rbp + 0x40]
mov rdx, rsi
lea rcx, [rbp - 0x50]
call fcn.140179a10
nop
mov r15d, 0xffffffff
mov r8, qword [rbp - 0x38]
test r8, r8
je 0x140179487
movabs r13, 0x7fffffffffffffff
mov rdx, rbx
cmp rbx, r13
je 0x14017940b
mov eax, r12d
sub eax, r14d
cmp eax, edi
ja 0x1401794df
mov ecx, eax
test eax, eax
je 0x140179409
imul rdx, rcx, 0x3e8
jmp 0x14017940b
xor edx, edx
mov rax, qword [r8]
mov rcx, r8
mov rax, qword [rax + 0x10]
call qword [case.0x1400617cf.0]
test al, al
je 0x1401794df
lea rcx, [rbp - 0x38]
call fcn.1400060d0
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140179453
mov eax, r15d
lock xadd dword [rcx + 0xc], eax
cmp eax, 1
jne 0x140179453
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400617cf.0]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, eax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rax
mov rdx, rsi
lea rcx, [rbp - 0x50]
call fcn.140179a10
nop
mov r8, qword [rbp - 0x38]
test r8, r8
jne 0x1401793e4
mov bl, 1
lea rcx, [rbp - 0x38]
call fcn.1400060d0
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x1401794b8
lock xadd dword [rax + 0xc], r15d
cmp r15d, 1
jne 0x1401794b8
mov rcx, qword [rbp - 0x40]
mov rdx, qword [rcx]
mov rax, qword [rdx + 8]
call qword [case.0x1400617cf.0]
movzx eax, bl
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14019acb0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor bl, bl
jmp 0x140179489
Function at 0x14017a320
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, qword [rsp + 0x40]
mov qword [rsp + 0x28], rdi
lea rax, vtable.asw::mi::IExportable.0
mov qword [rdi], rax
xor esi, esi
mov dword [rsp + 0x20], esi
mov ebx, 1
mov dword [rsp + 0x24], ebx
mov rdx, qword [rsp + 0x20]
call fcn.14004d7e0
nop
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], rsi
lea rax, vtable.asw::tasklib::task_scheduler.0
mov qword [rdi], rax
mov byte [rdi + 0x18], sil
lea rcx, [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
mov qword [rdi + 0x48], rsi
mov qword [rdi + 0x50], rsi
mov qword [rdi + 0x58], rsi
mov qword [rdi + 0x60], rsi
mov qword [rdi + 0x68], rsi
mov qword [rdi + 0x70], rsi
mov qword [rdi + 0x78], rsi
mov qword [rdi + 0x80], rsi
mov qword [rdi + 0x88], rsi
mov qword [rdi + 0x90], 0x3938700
mov qword [rdi + 0x98], 0x3938700
mov qword [rdi + 0xa0], 0x11e1a300
call fcn.1401d41e8
mov ecx, eax
mov dword [rdi + 0x142c], 0xffffffff
mov dword [rdi + 0xac], eax
lea rdx, [rdi + 0xb0]
nop dword [rax]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, ebx
mov dword [rdx], ecx
inc rbx
lea rdx, [rdx + 4]
cmp rbx, 0x270
jb 0x14017a3f0
mov dword [rdi + 0xa8], 0x270
mov qword [rdi + 0x1430], rsi
movabs rax, 0x3ff0000000000000
mov qword [rdi + 0x1438], rax
lea rax, vtable.constructible_task_scheduler.0
mov qword [rdi], rax
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140180f80
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 8
mov r9, qword [rsp + 0x10]
mov r10d, 0x270
mov ecx, dword [r9]
cmp ecx, r10d
jne 0x140180fe1
lea r8, [r9 + 8]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140180fa0
mov ecx, dword [r9]
jmp 0x1401810c8
cmp ecx, 0x4e0
jb 0x1401810c8
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140181000
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140181050
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x14019696c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1401969e4
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1401969e4
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1401969e4
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1401969d8
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1401969f6
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1401969c6
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1401969e6
Function at 0x14019a790
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14019a7ca
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14019a7cf
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14019a818
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1402282d0]
cmp byte [rcx + rax], 0
je 0x14019a818
dec r8
sub rdx, 1
jne 0x14019a7fe
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14019b808
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14019b852
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14019b852
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14019b852
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14019b852
cmp dword [rcx + 0x84], 0xe
jbe 0x14019b852
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14019b854
xor al, al
add rsp, 0x28
ret

Function at 0x1401b9790
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401b9580
Function at 0x1401bea20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1401bea52
call fcn.1401b3190
mov dword [rax], 0x16
call fcn.1401a9cb0
jmp 0x1401beb71
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401beb71
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1401beb71
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1401bea81
lock or dword [rcx + 0x14], 0x10
jmp 0x1401beb71
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1401bea95
call fcn.1401bedc4
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1401bc7c0
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1401c0808
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1401beb5f
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1401beb2a
mov rcx, rsi
call fcn.1401bc7c0
cmp eax, edi
je 0x1401beb15
mov rcx, rsi
call fcn.1401bc7c0
cmp eax, 0xfffffffe
je 0x1401beb15
mov rcx, rsi
call fcn.1401bc7c0
movsxd rbx, eax
lea r14, [0x140323970]
mov rcx, rsi
sar rbx, 6
call fcn.1401bc7c0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1401beb1c
lea rdx, [0x1402bf5f0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401beb2a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1401beb4e
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1401beb4e
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1401beb4e
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1401beb74
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1401c00dc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14019baa0
sub rsp, rax
mov rax, qword [0x1402bf200]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1401bc7c0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401c012b
mov rax, rbp
jmp 0x1401c0233
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x323970]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1401c0fe0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x323970]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401c022f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401c022f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1401c0fe0
test rax, rax
js 0x1401c022f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401c022f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401c0221
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401c0221
cmp byte [rcx], 0xd
jne 0x1401c0207
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401c0216
cmp byte [rcx + 1], 0xa
jne 0x1401c0216
inc rcx
jmp 0x1401c0216
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2bf640]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401c01e9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401c0233
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14019acb0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401c035c
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140323970]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1401c03ba
cmp word [rdx], r12w
jne 0x1401c03ba
or byte [rax + r8*8 + 0x38], cl
jmp 0x1401c03c0
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1401c051b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1401c04f6
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1401c03f9
mov rcx, r9
jmp 0x1401c041c
cmp r9, rdx
jae 0x1401c0433
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1401c03dd
jmp 0x1401c051b
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401c04f0
cmp dword [rsp + 0x80], edi
je 0x1401c04f0
mov rdx, r14
lea r11, [0x140323970]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1401c04c9
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1401c049c
mov word [rbx], r12w
jmp 0x1401c0517
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1401c04a5
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1401c0517
cmp word [rsp + 0x70], r12w
jne 0x1401c04d6
cmp rbx, rsi
je 0x1401c0496
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1401c0fe8
cmp word [rsp + 0x70], r12w
je 0x1401c051b
mov word [rbx], r13w
jmp 0x1401c0517
lea r11, [0x140323970]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1401c0513
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1401c051b
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401c1ccc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1401c1d53
mov rsi, rbx
cmp word [rax], bp
je 0x1401c1d12
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401c1cfc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401c1cf8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401bb620
mov rdi, rax
test rax, rax
je 0x1401c1d40
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401d7a40
mov rbp, rdi
xor ecx, ecx
call fcn.1401bb5e4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401d3a60
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
cmp rdx, 0x20
jb 0x1401d3b87
mov qword [rsp + 0x40], rbp
movabs rbp, 0x60ea27eeadc0b5d6
mov qword [rsp + 0x48], r12
add rbp, r8
mov qword [rsp + 0x50], r14
lea r12, [rdx - 0x1f]
mov qword [rsp + 0x58], r15
movabs r14, 0xc2b2ae3d27d4eb4f
add r14, r8
add r12, rcx
movabs r15, 0x61c8864e7a143579
add r15, r8
nop dword [rax]
mov rcx, rbx
call fcn.1401d3dd0
mov rdx, rax
mov rcx, rbp
call fcn.1401d3d60
lea rcx, [rbx + 8]
mov rbp, rax
call fcn.1401d3dd0
mov rdx, rax
mov rcx, r14
call fcn.1401d3d60
lea rcx, [rbx + 0x10]
mov r14, rax
call fcn.1401d3dd0
mov rdx, rax
mov rcx, rdi
call fcn.1401d3d60
lea rcx, [rbx + 0x18]
mov rdi, rax
call fcn.1401d3dd0
mov rdx, rax
mov rcx, r15
call fcn.1401d3d60
add rbx, 0x20
mov r15, rax
cmp rbx, r12
jb 0x1401d3ac0
mov rcx, rax
mov rdx, rbp
rol rcx, 0x12
mov rax, rdi
rol rax, 0xc
add rcx, rax
mov rax, r14
rol rax, 7
add rcx, rax
mov rax, rbp
rol rax, 1
add rcx, rax
call fcn.1401d3d20
mov rcx, rax
mov rdx, r14
call fcn.1401d3d20
mov rcx, rax
mov rdx, rdi
call fcn.1401d3d20
mov rcx, rax
mov rdx, r15
call fcn.1401d3d20
mov r15, qword [rsp + 0x58]
mov r14, qword [rsp + 0x50]
mov r12, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
jmp 0x1401d3b94
movabs rax, 0x27d4eb2f165667c5
add rax, r8
lea rcx, [rax + rsi]
mov r9d, 1
mov r8, rsi
mov rdx, rbx
add rsp, 0x20
pop rdi
pop rsi
pop rbx
jmp 0x1401d3bf0
mov rax, rcx
shr rax, 0x21
xor rax, rcx
movabs rcx, 0xc2b2ae3d27d4eb4f
imul rax, rcx
mov rcx, rax
shr rcx, 0x1d
xor rcx, rax
movabs rax, 0x165667b19e3779f9
imul rcx, rax
mov rax, rcx
shr rax, 0x20
xor rax, rcx
ret
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r15
sub rsp, 0x20
mov rsi, r8
mov qword [rsp + 0x50], r14
and esi, 0x1f
mov r14d, r9d
mov rdi, rdx
mov rbx, rcx
movabs r15, 0x9e3779b185ebca87
cmp rsi, 8
jb 0x1401d3c81
mov qword [rsp + 0x40], rbp
mov ebp, esi
shr rbp, 3
imul rax, rbp, 0xfffffffffffffff8
mov qword [rsp + 0x48], r12
movabs r12, 0x7a1435883d4d519d
add rsi, rax
cmp r14d, 1
jne 0x1401d3c52
mov rcx, rdi
call fcn.1401d3dd0
jmp 0x1401d3c55
mov rax, qword [rdi]
mov rdx, rax
xor ecx, ecx
add rdi, 8
call fcn.1401d3d60
xor rbx, rax
rol rbx, 0x1b
imul rbx, r15
sub rbx, r12
sub rbp, 1
jne 0x1401d3c42
mov r12, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
cmp rsi, 4
jb 0x1401d3cc9
cmp r14d, 1
jne 0x1401d3c97
mov rcx, rdi
call fcn.1401d3db0
jmp 0x1401d3c99
mov eax, dword [rdi]
mov eax, eax
add rdi, 4
imul rax, r15
xor rbx, rax
movabs rax, 0xc2b2ae3d27d4eb4f
rol rbx, 0x17
imul rbx, rax
movabs rax, 0x165667b19e3779f9
add rbx, rax
sub rsi, 4
mov r14, qword [rsp + 0x50]
test rsi, rsi
je 0x1401d3cfc
movabs rcx, 0x27d4eb2f165667c5
nop dword [rax]
movzx eax, byte [rdi]
lea rdi, [rdi + 1]
imul rax, rcx
xor rbx, rax
rol rbx, 0xb
imul rbx, r15
sub rsi, 1
jne 0x1401d3ce0
mov rcx, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rdi
pop rsi
jmp 0x1401d3bb0
Function at 0x1401d42b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401d42d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401d42d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400027f0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x1401e4294]
mov qword [rsp + 0x40], rsi
xor esi, esi
mov rdi, rcx
test al, 1
jne 0x140002838
or eax, 1
mov dword [0x1401e4280], esi
mov qword [0x1401e4288], rsi
mov dword [0x1401e4294], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
lea rcx, [0x14017e180]
mov dword [0x1401e4280], eax
call fcn.1400dea64
mov ecx, dword [0x1401e4280]
cmp ecx, 0xffffffff
je 0x140002901
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140002906
cmp dword [0x1401e4280], 0xffffffff
je 0x1400028f0
mov ecx, 0x438
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbp
call fcn.1400ddc18
lea rbp, vtable.LogBuffer.0
mov rbx, rax
test rax, rax
je 0x1400028c0
mov qword [rax], rbp
mov qword [rax + 8], rsi
mov qword [rax + 0x410], rsi
mov byte [rax + 0x418], 0x20
mov dword [rax + 0x41c], esi
mov dword [rax + 0x420], esi
mov dword [rax + 0x428], 0xa
mov byte [rax + 0x42c], 0x20
mov dword [rax + 0x430], esi
jmp 0x1400028c3
mov rbx, rsi
mov ecx, dword [0x1401e4280]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1400028e6
test rbx, rbx
je 0x1400028e6
mov rcx, rbx
mov qword [rbx], rbp
call fcn.1400ddb14
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov ecx, dword [0x1401e4280]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140002906
call fcn.140033c50
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x140002914
mov qword [rax + 8], rdi
add rsp, 0x20
pop rdi
ret
Function at 0x140014ea0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x1401dd3a0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
xor eax, eax
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], ax
call fcn.1400e5f10
lea rax, [rsp + 0x30]
lea rdx, str.LspCategories
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x30], 0x103
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140014f48
lea rax, [rsp + 0x34]
lea rdx, str.LspCategories
mov r9d, 4
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400dd780
add rsp, 0x260
pop rbx
ret

Function at 0x140014f70
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x260
mov rax, qword [0x1401dd3a0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
xor eax, eax
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], ax
call fcn.1400e5f10
lea rax, [rsp + 0x30]
lea rdx, str.ProtocolName
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x30], 0x103
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140015007
mov qword [rsp + 0x278], rsi
lea rdi, [rsp + 0x40]
lea rsi, str.Sophos_Web_Intelligence_IFSLSP
mov ecx, 0x1f
repe cmpsw word [rsi], word [rdi]
mov rsi, qword [rsp + 0x278]
jne 0x140015007
mov al, 1
jmp 0x140015009
xor al, al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400dd780
add rsp, 0x260
pop rdi
ret