joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140053410
Capabilities:
Allocate thread local storage

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

Function at 0x140053e90
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov rdi, r8
mov r14, rdx
mov ebx, ecx
mov rax, qword [0x140154028]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x140053e60]
lea r8, [rsp + 0x20]
mov qword [r8], rax
lea rcx, [0x14015ffb8]
lea rdx, [0x140053d10]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140053f89
cmp dword [0x14015ffc0], 0
jne 0x140053f96
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x14015ffc4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
jne 0x140053f3f
mov ecx, 0x20
int3
lea rbp, [0x14015ffc8]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x14015ffd0]
mov qword [rax + rbx*8], rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [rsi + rbx*8], r14
mov esi, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140097620
mov eax, esi
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
int3
mov rcx, r14
call rdi
xor esi, esi
jmp 0x140053f6f

Function at 0x140054110
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14005414c
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 0x140054156
add rdi, rbx
sub rsi, rbx
jne 0x14005412a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x1400609e0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rsi, rcx
cmp rdx, 1
mov qword [rsp + 0x28], rcx
je 0x140060cb8
mov rdi, rdx
lea rax, [rdx - 1]
test rdx, rax
je 0x140060a19
mov rcx, rdi
int3
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x140060ccb
mov rax, rdi
shr rax, 0x3d
jne 0x140060cfa
lea rcx, [rdi*8]
int3
mov rbx, qword [rsi + 8]
mov edi, 2
cmp rbx, 2
jb 0x140060a33
cmp rdi, rbx
jb 0x140060cff
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
int3
mov rax, qword [rsi + 0x18]
test rax, rax
js 0x140060d0f
cvtsi2ss xmm0, rax
jmp 0x140060d24
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rax, qword [rsp + 0x28]
divss xmm0, dword [rax + 0x20]
call fcn.1400c2250
cvttss2si rcx, xmm0
movss xmm1, dword [0x140133710]
movaps xmm2, xmm0
subss xmm2, xmm1
cvttss2si rax, xmm2
btc rax, 0x3f
ucomiss xmm0, xmm1
cmovb rax, rcx
cmp rbx, 3
jb 0x140060ddb
mov rcx, rbx
shr rcx, 1
movabs rdx, 0x5555555555555555
and rdx, rcx
mov rbp, rbx
sub rbp, rdx
movabs rdx, 0x3333333333333333
mov rcx, rbp
shr rcx, 2
and rbp, rdx
and rcx, rdx
add rcx, rbp
mov rdx, rcx
shr rdx, 4
add rdx, rcx
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rdx
movabs rdx, 0x101010101010101
imul rdx, rcx
shr rdx, 0x38
cmp edx, 1
ja 0x140060ddb
cmp rax, 2
jb 0x140060de3
dec rax
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
jmp 0x140060de3
mov rcx, rax
int3
cmp rdi, rax
cmovb rdi, rax
cmp rdi, rbx
mov rcx, qword [rsp + 0x28]
jae 0x140060cd0
mov rdx, rdi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400c4170
Function at 0x140068220
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x140068269
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
add rax, 1
cmp rax, 2
jae 0x140068272
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140068259
mov qword [rdi], rsi
call fcn.140069e00
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140069e00
mov rcx, qword [rdi]
int3
Function at 0x140073d30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov edi, dword [0x14015e040]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test esi, esi
jne 0x140073d5d
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140073d53

Function at 0x140074ae0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140157278]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140074b14
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x140074b14
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x140074b0e

Function at 0x140074b20
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140157278]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140074b5e
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x140074b57
call fcn.14003ec80
jmp 0x140074b3e
Function at 0x140077df0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
movzx eax, byte [rcx + 0x4f]
test al, al
js 0x140077e88
test rax, rax
jne 0x140077e77
cmp dword [rsi + 0x50], 0
jne 0x140077e77
mov byte [rsi + 0x54], 0
mov rax, qword [rsi + 0x10]
mov qword [rsi + 8], rax
cmp rax, qword [rsi + 0x18]
je 0x140077e65
lea rdi, [rsi + 0x20]
movabs r14, 0x100003600
lea rcx, [rax + 1]
mov qword [rsi + 0x10], rcx
movzx edx, byte [rax]
mov rcx, rdi
xor r8d, r8d
call fcn.140065f70
cmp rax, 0xffffffffffffffff
jne 0x140077e57
cmp dword [rsi + 0x58], 1
jne 0x140077ea4
jmp 0x140077e91
mov rax, qword [rsi + 0x10]
mov qword [rsi + 8], rax
cmp rax, qword [rsi + 0x18]
jne 0x140077e33
mov byte [rsi + 0x54], 1
xor ebx, ebx
mov eax, ebx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x1400ec1b0
mov rax, qword [rsi + 0x40]
jmp 0x140077e08
mov rax, qword [rsi + 8]
movzx eax, byte [rax]
cmp rax, 0x20
ja 0x140077ea4
bt r14, rax
jb 0x140077e57
mov rax, qword [rsi + 0x10]
mov bl, 1
nop word [rax + rax]
cmp rax, qword [rsi + 0x18]
je 0x140077e6b
movzx edx, byte [rax]
mov rcx, rdi
xor r8d, r8d
call fcn.140065f70
cmp rax, 0xffffffffffffffff
jne 0x140077e6b
cmp dword [rsi + 0x58], 1
mov rax, qword [rsi + 0x10]
je 0x140077ede
add rax, 1
mov qword [rsi + 0x10], rax
jmp 0x140077eb0
movzx ecx, byte [rax]
cmp rcx, 0x20
ja 0x140077ed4
bt r14, rcx
jae 0x140077ed4
jmp 0x140077e6b
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rax, qword [0x140154028]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], 0
mov byte [rsp + 0x22], 0
mov rbx, qword [rcx + 0x10]
mov rax, qword [rcx + 0x18]
mov rcx, rax
cmp rbx, rax
je 0x1400ec21b
cmp dword [rsi + 0x58], 1
jne 0x1400ec218
movabs rdx, 0x100003600
mov rcx, rbx
movzx ebx, byte [rcx]
cmp rbx, 0x20
ja 0x1400ec21b
bt rdx, rbx
jae 0x1400ec21b
inc rcx
mov qword [rsi + 0x10], rcx
cmp rax, rcx
jne 0x1400ec1f8
mov rcx, rax
jmp 0x1400ec21b
mov rcx, rbx
cmp byte [rsi + 0x54], 0
sete dil
lea rbx, [rsp + 0x20]
test dil, 1
je 0x1400ec258
mov rdx, rax
mov rax, rcx
mov byte [rsi + 0x54], 1
mov qword [rsi + 8], rax
cmp rax, rdx
je 0x1400ec2b7
mov rcx, rax
inc rcx
mov qword [rsi + 0x10], rcx
xor edi, edi
test byte [rsi + 0x50], 1
mov rax, rdx
je 0x1400ec228
jmp 0x1400ec29d
mov byte [rsi + 0x54], 0
mov qword [rsi + 8], rcx
cmp rcx, rax
je 0x1400ec291
mov r8b, byte [rcx]
mov rcx, rsi
mov rdx, rbx
call fcn.1400ec2c0
mov rcx, qword [rsi + 0x10]
test al, al
je 0x1400ec288
inc rcx
mov qword [rsi + 0x10], rcx
cmp rcx, qword [rsi + 0x18]
jne 0x1400ec265
mov rax, rcx
cmp qword [rsi + 8], rcx
jne 0x1400ec29d
test byte [rsi + 0x50], 2
jne 0x1400ec29d
mov rdx, qword [rsi + 0x18]
jmp 0x1400ec234
mov sil, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140097620
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x1400ec2a0
Function at 0x14007b3f0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
cmp rdx, r9
mov r10, r9
cmovb r10, rdx
xor eax, eax
test r10, r10
je 0x14007b45e
xor r11d, r11d
mov r14, qword [r8 + r11*8]
mov r15, qword [rcx + r11*8]
mov rbx, r15
xor rbx, r14
mov edi, eax
lea rax, [rbx - 1]
mov rsi, r15
sub rsi, r14
xor rsi, r15
or rsi, rbx
not rbx
and rax, rbx
sar rax, 0x3f
xor rsi, r15
sar rsi, 0x3f
mov rbx, rsi
not rsi
and esi, 1
or rsi, rbx
mov rbx, rax
and edi, ebx
not rax
and rax, rsi
or rax, rdi
inc r11
cmp r10, r11
jne 0x14007b40b
cmp rdx, r9
jb 0x14007b470
cmp r9, rdx
jb 0x14007b49c
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor ecx, ecx
or rcx, qword [r8 + rdx*8]
inc rdx
cmp r9, rdx
jne 0x14007b472
mov rdx, rcx
not rdx
dec rcx
and rcx, rdx
sar rcx, 0x3f
mov rdx, rcx
and edx, eax
not rcx
or ecx, edx
mov eax, ecx
jmp 0x14007b468
xor esi, esi
or rsi, qword [rcx + r9*8]
inc r9
cmp rdx, r9
jne 0x14007b49e
mov rcx, rsi
not rcx
dec rsi
and rsi, rcx
sar rsi, 0x3f
mov rcx, rsi
and ecx, eax
not rsi
and esi, 1
or esi, ecx
mov eax, esi
jmp 0x14007b468

Function at 0x14007b720
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
movsxd rax, dword [rdx + 8]
test rax, rax
je 0x14007b813
mov r14, rcx
mov rcx, qword [rdx]
xor edi, edi
xor esi, esi
or rsi, qword [rcx + rdi*8]
inc rdi
cmp rax, rdi
jne 0x14007b740
test rsi, rsi
je 0x14007b813
test eax, eax
jle 0x14007b838
mov rax, qword [rdx]
test byte [rax], 1
je 0x14007b838
cmp dword [rdx + 0x10], 0
jne 0x14007b871
lea rdi, [r14 + 0x18]
mov rcx, rdi
call fcn.1400455f0
test rax, rax
je 0x14007b891
mov eax, dword [r14 + 0x20]
test eax, eax
jle 0x14007b858
mov rdx, qword [rdi]
lea rcx, [rax - 1]
cmp qword [rdx + rax*8 - 8], 0
mov rax, rcx
je 0x14007b78c
inc ecx
mov dword [r14 + 0x20], ecx
mov rax, qword [rdi]
mov r9, qword [rax]
mov ebx, 1
mov edx, 0x40
xor ecx, ecx
movabs r8, 0x8000000000000000
mov esi, ebx
and esi, 1
neg rsi
mov rax, r9
and rax, rsi
mov rdi, rax
xor rdi, rbx
shr rdi, 1
and rax, rbx
add rax, rdi
and rsi, r8
shr rcx, 1
or rcx, rsi
mov rbx, rax
dec rdx
jne 0x14007b7c8
mov qword [r14 + 0x30], rcx
mov qword [r14 + 0x38], 0
mov esi, 1
mov eax, esi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov dword [rsp + 0x20], 0xa5
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_bn_montgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x69
int3
mov dword [rsp + 0x20], 0xa9
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_bn_montgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x68
jmp 0x14007b831
mov dword [r14 + 0x20], eax
test eax, eax
jne 0x14007b7ac
mov dword [r14 + 0x28], 0
jmp 0x14007b7ac
mov dword [rsp + 0x20], 0xad
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_bn_montgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x6d
jmp 0x14007b831
mov dword [rsp + 0x20], 0xb3
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_bn_montgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x44
jmp 0x14007b831
Function at 0x14007b8c0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x208
movaps xmmword [rsp + 0x1f0], xmm6
mov rax, qword [0x140154028]
xor rax, rsp
mov qword [rsp + 0x1e8], rax
test rdx, rdx
je 0x14007ba15
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
movaps xmm6, xmmword [0x140133080]
movaps xmmword [rsp + 0x1a0], xmm6
movaps xmmword [rsp + 0x190], xmm6
test byte [0x14015ffa7], 0x40
je 0x14007bb65
mov eax, 0x40000000
and eax, dword [0x14015ffa0]
je 0x14007bb65
lea rcx, [rsp + 0x190]
mov edx, 0x20
call fcn.140019a50
test eax, eax
je 0x14007bb65
lea r15, [rsp + 0x18c]
xor eax, eax
mov cl, byte [rbx + rax]
xor byte [rsp + rax + 0x190], cl
inc rax
cmp rax, 0x20
jne 0x14007b958
lea r14, [rsp + 0x60]
mov r8d, 0x130
mov rcx, r14
mov dl, 0xaa
call fcn.140099ee0
mov ecx, 1
int3
mov rcx, qword [rsp + 0x1e8]
xor rcx, rsp
call fcn.140097620
movaps xmm6, xmmword [rsp + 0x1f0]
add rsp, 0x208
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
int3

Function at 0x14007cdc0
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x14007cdea
xor r9d, r9d
xor eax, eax
nop word [rax + rax]
movzx r10d, byte [rdx + r9]
xor r10b, byte [rcx + r9]
movzx r10d, r10b
or eax, r10d
add r9, 1
cmp r8, r9
jne 0x14007cdd0
ret
xor eax, eax
jmp 0x14007cde9

Function at 0x14007e500
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x14015fa40]
cmp rsi, 1
jbe 0x14007e523
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140074b20
lea rcx, [0x14015fa40]
call fcn.14004de50
test al, al
je 0x14007e569
mov qword [0x14015fa48], 0
lea rdi, [0x14015fa40]
lea rsi, [0x14015fa48]
mov rcx, rsi
xor edx, edx
call fcn.14003ee90
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.14004def0
jmp 0x14007e513
mov rsi, qword [0x14015fa40]
jmp 0x14007e513

Function at 0x140088100
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x140154028]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x140053e60]
mov qword [rsp + 0x20], rax
lea rcx, [0x14015ffb8]
lea rdx, [0x140053d10]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140088194
cmp dword [0x14015ffc0], 0
jne 0x140088190
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x14015ffc4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x140088190
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140097620
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x140088178
int3

Function at 0x140088610
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x14008863c
xor ecx, ecx
lea r9, [0x140145870]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
add rcx, 1
cmp r8, rcx
jne 0x140088620
ret
Function at 0x140089d80
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140160070]
mov ecx, dword [0x140157484]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140089de6
lea rcx, [0x140160068]
xor edx, edx
call fcn.140074b20
mov eax, dword [0x140160080]
mov ecx, dword [0x140157484]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140089e22
lea rcx, [0x140160078]
xor edx, edx
add rsp, 0x28
jmp fcn.140074b20
lea rcx, [0x140160070]
int3
lea rcx, [0x140160080]
int3

Function at 0x140089f80
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140160088]
cmp rsi, 1
jbe 0x140089fa3
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140074b20
lea rcx, [0x140160088]
call fcn.14004de50
test al, al
je 0x140089fe9
mov qword [0x140160090], 0
lea rdi, [0x140160088]
lea rsi, [0x140160090]
mov rcx, rsi
xor edx, edx
call fcn.14003ee90
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.14004def0
jmp 0x140089f93
mov rsi, qword [0x140160088]
jmp 0x140089f93

Function at 0x14008a000
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x1401600a0]
mov ecx, dword [0x140157484]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14008a03d
lea rcx, [0x140160098]
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.140074b20
lea rcx, [0x1401600a0]
int3
Function at 0x140098485
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rax, rax
sub rcx, 0xd55f
add rax, rcx
add rax, 0xd55f
add rcx, 0xd55f
sub rsp, 0x3f0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
and rcx, 0
add rcx, rsi
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x5aa1
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x441e
lea r9, [0x140094264]
add byte [rax - 0x7d], cl
invalid
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x140098542
je 0x140098559
insb byte [rdi], dx
cld
add byte [rax], al
je 0x140098563
jne 0x14009852d
lea rax, [0x140097a56]
add rax, 0xb32
call rax
je 0x1400984fe
push rsp
ror byte [rax - 0x39], cl
shl dword [rsi], 0x3e
add byte [rax], al
mov rcx, 0x3e26
mov r9d, 0x8d68
mov r10d, 0x92819200
lea eax, [rax]
add byte [rcx - 0x46], al
add byte [rdx - 0xb76d7f], dl
leave
dec rcx
xor byte [rax + rcx], r9b
add r9d, r10d
rol r9d, 1
test rcx, rcx
jne 0x14009856c
add rax, 0x1ebd
mov rsp, rbp
mov rbp, qword [rsp]
add rsp, 8
ret
Function at 0x1400cb8e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov r15b, byte [rbp + 0x78]
test byte [r9 + 8], 1
jne 0x1400cb93f
movzx eax, word [rbp + 0x70]
movzx edx, r15b
mov rbx, qword [rcx]
mov dword [rsp + 0x28], edx
mov word [rsp + 0x20], ax
mov rdx, r14
mov r8, rdi
call qword [rbx + 0x30]
mov rax, r14
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rsi, [rbp - 0x20]
mov rcx, r9
mov rdx, rsi
call fcn.140064c70
lea rdx, [0x140159488]
mov rcx, rsi
call fcn.140065440
mov r12, rax
mov rcx, qword [rbp - 0x20]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
test eax, eax
jne 0x1400cb978
mov rax, qword [rcx]
call qword [rax + 8]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r13, [rbp - 0x20]
mov qword [r13 + 0x10], rax
movaps xmm0, xmmword [0x140133080]
movaps xmmword [r13], xmm0
mov rax, qword [r12]
xor r15b, 1
movzx esi, r15b
mov rcx, r12
mov rdx, r13
call qword [rax + rsi*8 + 0x28]
movzx ebx, byte [r13 + 0x17]
test bl, bl
mov rcx, qword [r13]
mov r8, qword [r13 + 8]
mov rax, rbx
cmovs rax, r8
test rax, rax
je 0x1400cba30
test bl, bl
mov rsi, rcx
cmovns rsi, r13
test rdi, rdi
je 0x1400cba1f
movzx eax, word [rsi]
mov rcx, qword [rdi + 0x30]
cmp rcx, qword [rdi + 0x38]
je 0x1400cba23
lea rdx, [rcx + 2]
mov qword [rdi + 0x30], rdx
mov word [rcx], ax
cmp ax, 0xffff
jne 0x1400cb9f5
xor edi, edi
mov bl, byte [rbp - 9]
mov rcx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x18]
add rsi, 2
test bl, bl
mov rax, r13
cmovs rax, rcx
movzx edx, bl
cmovs rdx, r8
lea rax, [rax + rdx*2]
cmp rsi, rax
jne 0x1400cb9d0
jmp 0x1400cba30
xor edi, edi
jmp 0x1400cba00
mov rbx, qword [rdi]
mov rcx, rdi
mov edx, eax
call qword [rbx + 0x60]
jmp 0x1400cb9ed
shr bl, 7
mov qword [r14], rdi
test bl, bl
je 0x1400cb92b
call fcn.140096800
jmp 0x1400cb92b
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x14075ef00
Capabilities:
Terminate process

Disassembly:
or ah, byte [rdi]
sbb dword [rsi + rsi*8], 0xffffff90
add dh, dh
invalid
cld
pop r11
jmp 0x14075ef0d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14075ef1d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14075ef05
lea eax, [rcx + 1]
jmp 0x14075ef2b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14075ef3e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14075ef24
sub eax, 3
jb 0x14075ef5e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14075efad
sar eax, 1
movsxd rbp, eax
jb 0x14075ef94
jmp 0x14075ef6c
add ebx, ebx
jne 0x14075ef6a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14075ef94
inc ecx
add ebx, ebx
jne 0x14075ef7a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14075ef94
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14075ef8d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14075ef7c
add ecx, 2
jmp 0x14075ef99
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14075eec2
jmp 0x14075ef0d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x75b000]
mov eax, dword [rdi]
or eax, eax
je 0x14075f019
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x75f1e4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14075efbd
jns 0x14075eff2
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14075effc
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14075f013
mov qword [rbx], rax
add rbx, 8
jmp 0x14075efdd
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14075f05d
cmp al, 0xef
ja 0x14075f045
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14075f025
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x14075f034
mov eax, dword [rdi]
add rdi, 4
jmp 0x14075f034
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x247]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14075f0b1
sub rsp, 0xffffffffffffff80
jmp 0x1406f1480
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x140001070
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
cmp ecx, 3
je 0x14000108c
lea rcx, str.ShellExecute_editexplorefindopenprintrunas_pathFile_n
call fcn.140001010
xor eax, eax
add rsp, 0x38
ret
mov r8, qword [rdx + 0x10]
xor r9d, r9d
mov rdx, qword [rdx + 8]
xor ecx, ecx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov dword [0x14001fc00], eax
lea rcx, str.Error:__d_n
call fcn.140001010
mov eax, dword [0x14001fc00]
add rsp, 0x38
ret

Function at 0x140001ae4
Capabilities:
Parse pe header

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

Function at 0x140005680
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400054ac

Function at 0x1400120b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400120d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400120d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret