joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d708c
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 0x1400d70c6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400d70cb
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 0x1400d7114
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400e5b60]
cmp byte [rcx + rax], 0
je 0x1400d7114
dec r8
sub rdx, 1
jne 0x1400d70fa
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400d88f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400d893a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400d893a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400d893a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400d893a
cmp dword [rcx + 0x84], 0xe
jbe 0x1400d893a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400d893c
xor al, al
add rsp, 0x28
ret
Function at 0x140b96058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140b961df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140b96089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b9606f
add dl, dl
jne 0x140b96096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b960f6
xor eax, eax
add dl, dl
jne 0x140b960a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b961ad
add dl, dl
jne 0x140b960b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b960c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b960d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b960dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140b960ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140b9607e
mov eax, 1
add dl, dl
jne 0x140b96106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b96113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b960fb
sub eax, ebx
mov ebx, 1
jne 0x140b9614c
mov ecx, 1
add dl, dl
jne 0x140b9612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b9613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b96123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b9607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140b96168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b96175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b9615d
cmp eax, 0x7d00
jae 0x140b9619b
cmp eax, 0x500
jb 0x140b96196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b9607e
cmp eax, 0x7f
ja 0x140b9619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b9607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140b961d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140b9607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0xd4a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00d4a1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0xd4a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xd4a06f
add dl, dl
jne 0xd4a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xd4a0f6
xor eax, eax
add dl, dl
jne 0xd4a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xd4a1ad
add dl, dl
jne 0xd4a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd4a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd4a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd4a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0xd4a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0xd4a07e
mov eax, 1
add dl, dl
jne 0xd4a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd4a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xd4a0fb
sub eax, ebx
mov ebx, 1
jne 0xd4a14c
mov ecx, 1
add dl, dl
jne 0xd4a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd4a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xd4a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xd4a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xd4a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd4a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xd4a15d
cmp eax, 0x7d00
jae 0xd4a19b
cmp eax, 0x500
jb 0xd4a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xd4a07e
cmp eax, 0x7f
ja 0xd4a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xd4a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0xd4a1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0xd4a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000c43c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140014c60], rbx
je 0x14000c4a3
cmp rax, rbx
jne 0x14000c496
mov ebx, 1
mov esi, ebx
jmp 0x14000c4a8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000c47b
mov ebx, 1
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c4c0
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000c52c
mov eax, dword [0x140014c68]
test eax, eax
jne 0x14000c521
mov dword [0x140014c68], ebx
lea r15, [0x14000eba0]
lea rdi, [0x14000eb88]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000c513
test eax, eax
jne 0x14000c517
cmp qword [rdi], r14
je 0x14000c508
mov rax, qword [rdi]
mov rcx, qword [0x14000eb40]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000c4ea
test eax, eax
je 0x14000c527
mov eax, 0xff
jmp 0x14000c682
mov dword [0x1400143e4], ebx
mov edi, 0x1f
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c553
lea rdx, [0x14000eb80]
lea rcx, [0x14000eb48]
call sub.msvcrt.dll__initterm
mov dword [0x140014c68], 2
test esi, esi
jne 0x14000c561
mov rax, r14
xchg qword [0x140014c60], rax
cmp qword [0x140014c80], r14
je 0x14000c594
lea rcx, [0x140014c80]
call fcn.14000ca70
test eax, eax
je 0x14000c594
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140014c80]
mov r9, qword [0x14000eb40]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000c5ad
mov eax, 0xff
jmp 0x14000c682
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000c633
test ax, ax
je 0x14000c5c8
test edx, edx
jne 0x14000c633
sub ax, bx
cmp ax, di
ja 0x14000c5de
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000c5c8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001878
mov dword [0x1400143e0], eax
cmp dword [0x140014400], r14d
jne 0x14000c61c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400143e4], r14d
jne 0x14000c631
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400143e0]
jmp 0x14000c682
cmp ax, 0x22
jne 0x14000c647
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000c5b6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140188000
add rsp, 0x28
jmp 0x14000c43c
Function at 0x140005570
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, rdx
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x1400055f0
cmp r11, r10
ja 0x140005667
cmp r10, rdx
ja 0x140005679
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x1400055f2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x1400055d0
jmp 0x140005654
ja 0x1400055fa
mov r11, r10
cmp rax, r8
jne 0x14000559e
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140005630
mov rdi, r8
sub ecx, edx
jns 0x14000564b
jmp 0x140005656
cmp r8, rsi
je 0x140005688
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140005656
xor al, 1
cmp rdi, rsi
jne 0x140005610
jmp 0x140005656
xor eax, eax
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400038b0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140002da0
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.1400042a0
int3

Function at 0x14000b930
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x14000b955
cmp rax, rcx
je 0x14000b95b
cmp rdx, 4
jae 0x14000b962
xor eax, eax
xor r8d, r8d
jmp 0x14000ba00
pop rbp
jmp fcn.1400028c0
xor eax, eax
jmp 0x14000ba17
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400353c0]
movdqa xmm3, xmmword [0x1400353d0]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14000b990
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000ba17
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000ba00
pop rbp
ret
Function at 0x14000c9f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov r10, qword [rcx]
test r10, r10
je 0x14000ca74
mov r11, qword [rcx + 8]
mov r8, qword [rcx + 0x10]
cmp r8, r11
jae 0x14000ca74
movzx eax, byte [r10 + r8]
cmp eax, 0x49
mov rbx, rcx
je 0x14000ca8d
cmp eax, 0x42
jne 0x14000ca74
lea rsi, [r8 + 1]
mov qword [rcx + 0x10], rsi
mov r9b, 1
cmp rsi, r11
jae 0x14000cbbd
cmp byte [r10 + rsi], 0x5f
jne 0x14000cb4c
lea rax, [r8 + 2]
mov qword [rcx + 0x10], rax
xor eax, eax
cmp rax, r8
jae 0x14000cbbd
mov edx, dword [rcx + 0x18]
inc edx
cmp edx, 0x1f4
jbe 0x14000cc17
mov dil, 1
xor r9d, r9d
jmp 0x14000cbbf
xor edx, edx
call fcn.140008530
mov esi, eax
add sil, sil
mov eax, esi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
inc r8
mov qword [rcx + 0x10], r8
xor edx, edx
call fcn.140008530
test al, al
jne 0x14000cbfd
mov rdx, rbx
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14000cacc
lea rdx, [0x14003824b]
mov r8d, 1
call fcn.140002e20
mov rdx, rbx
test al, al
jne 0x14000cbfd
mov rax, qword [rdx]
mov sil, 1
test rax, rax
je 0x14000ca80
xor r14d, r14d
lea rdi, [0x1400385a1]
nop word cs:[rax + rax]
mov rcx, qword [rdx + 0x10]
cmp rcx, qword [rdx + 8]
jae 0x14000cb04
cmp byte [rax + rcx], 0x45
je 0x14000cc50
sub r14, 1
jb 0x14000cb2c
mov rcx, qword [rdx + 0x20]
test rcx, rcx
je 0x14000cb2c
mov r8d, 2
mov rdx, rdi
call fcn.140002e20
mov rdx, rbx
test al, al
jne 0x14000cbfd
mov rcx, rdx
call fcn.140009d90
test al, al
jne 0x14000cbfd
mov rdx, rbx
mov rax, qword [rbx]
test rax, rax
jne 0x14000caf0
jmp 0x14000ca80
xor eax, eax
mov r14d, 0x3e
nop word cs:[rax + rax]
movzx edx, byte [r10 + rsi]
cmp dl, 0x5f
je 0x14000cbad
lea edi, [rdx - 0x30]
cmp dil, 0xa
jb 0x14000cb8f
lea edi, [rdx - 0x61]
cmp dil, 0x1a
jae 0x14000cb81
add dl, 0xa9
jmp 0x14000cb8d
lea edi, [rdx - 0x41]
cmp dil, 0x1a
jae 0x14000cbbd
add dl, 0xe3
mov edi, edx
inc rsi
mov qword [rcx + 0x10], rsi
mul r14
jo 0x14000cbbd
movzx edx, dil
xor edi, edi
add rax, rdx
jb 0x14000cbbf
cmp rsi, r11
jb 0x14000cb60
jmp 0x14000cbbf
inc rsi
mov qword [rcx + 0x10], rsi
inc rax
jne 0x14000ca4f
xor edi, edi
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x14000cc05
mov ecx, r9d
xor cl, 1
movzx ecx, cl
lea r8, [rcx + rcx*8]
add r8, 0x10
lea rcx, str.invalid_syntaxrecursion_limit_reached_for_______::closureshim_as__mut_const___dyn___unsafe_extern__
lea rdx, [0x140038580]
test r9b, r9b
cmovne rdx, rcx
mov rcx, rax
call fcn.140002e20
mov rcx, rbx
test al, al
je 0x14000cc05
mov sil, 2
jmp 0x14000ca80
mov qword [rcx], 0
mov byte [rcx + 8], dil
xor esi, esi
jmp 0x14000ca80
cmp qword [rcx + 0x20], 0
je 0x14000cc10
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movaps xmmword [rbp - 0x10], xmm1
movaps xmmword [rbp - 0x20], xmm0
mov qword [rcx + 0x10], rax
mov dword [rcx + 0x18], edx
mov rsi, rcx
call fcn.14000c9f0
movaps xmm0, xmmword [rbp - 0x20]
movaps xmm1, xmmword [rbp - 0x10]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14000ca82
inc rcx
mov qword [rdx + 0x10], rcx
jmp 0x14000ca80
Function at 0x14000fda0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov ecx, dword [0x140034098]
test ecx, ecx
je 0x14000fe9d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14000fdd1
cmp qword [rax + 8], 0
jne 0x14000fe8e
mov ecx, dword [0x140034098]
test ecx, ecx
je 0x14000feb0
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14000fe94
test rax, rax
jne 0x14000fe4f
mov qword [rbp - 8], 0
lea rax, [0x140034080]
mov qword [rbp - 0x10], rax
movzx eax, byte [0x140042030]
mov ecx, 0x18
call fcn.14002d850
test rax, rax
je 0x14000fedc
mov rcx, qword [rbp]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rax], xmm0
mov ecx, dword [0x140034098]
test ecx, ecx
je 0x14000fec3
dec ecx
mov rdx, rax
mov rsi, rax
call sub.KERNEL32.dll_TlsSetValue
mov rax, rsi
mov rdx, qword [rax + 8]
mov rcx, qword [rax + 0x10]
mov qword [rbp - 0x10], rdx
mov qword [rbp - 8], rcx
mov qword [rax + 8], 1
mov qword [rax + 0x10], 0
test rdx, rdx
je 0x14000fe8e
test rcx, rcx
je 0x14000fe8e
lock dec qword [rcx]
jne 0x14000fe8e
lea rcx, [rbp - 8]
mov rsi, rax
call fcn.14000ffb0
mov rax, rsi
add rax, 0x10
jmp 0x14000fe96
xor eax, eax
add rsp, 0x38
pop rsi
pop rbp
ret
lea rcx, [0x140034080]
call fcn.140010070
mov ecx, eax
jmp 0x14000fdbb
lea rcx, [0x140034080]
call fcn.140010070
mov ecx, eax
jmp 0x14000fde1
lea rcx, [0x140034080]
mov rsi, rax
call fcn.140010070
mov ecx, eax
mov rax, rsi
jmp 0x14000fe41
mov ecx, 8
mov edx, 0x18
call fcn.140001c30
ud2
Function at 0x140010070
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov rsi, rcx
cmp qword [rcx], 0
je 0x140010105
mov rax, qword [0x140044038]
mov dword [rbp], 0
lea rbx, [rsi + 0x10]
mov r8, rbp
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rbp + 4], eax
cmp eax, 1
jne 0x140010144
cmp dword [rbp], 0
je 0x140010128
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140010159
mov edi, eax
mov rax, qword [0x1400420c0]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1400420c0], rsi
jne 0x1400100e0
mov eax, edi
inc eax
mov dword [rsi + 0x18], eax
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x140010139
call sub.KERNEL32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x14001019b
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14001012d
mov edi, dword [rbp + 4]
jmp 0x140010139
mov edi, dword [rsi + 0x18]
jmp 0x140010137
mov edi, eax
mov ecx, dword [rbp + 4]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp - 0x30], 0
lea rcx, [rbp + 4]
lea rdx, [rbp - 0x30]
call fcn.140010200
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 1
mov qword [rbp - 0x20], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
lea rdx, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rbp - 0x30]
call fcn.1400023f0
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 1
mov qword [rbp - 0x20], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
lea rcx, [rbp + 4]
lea rdx, [rbp - 0x30]
call fcn.140010250
int3

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

Disassembly:
push rbp
push rsi
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x140034078]
test ecx, ecx
je 0x14001092b
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400108bc
cmp byte [rax + 8], 0
jne 0x14001091c
mov ecx, dword [0x140034078]
test ecx, ecx
je 0x14001093e
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140010922
test rax, rax
jne 0x140010916
movzx eax, byte [0x140042030]
mov ecx, 0x10
call fcn.14002d850
test rax, rax
je 0x140010967
lea rcx, [0x140034060]
mov qword [rax], rcx
mov byte [rax + 8], 0
mov ecx, dword [0x140034078]
test ecx, ecx
je 0x140010951
dec ecx
mov rdx, rax
mov rsi, rax
call sub.KERNEL32.dll_TlsSetValue
mov rax, rsi
mov word [rax + 8], 1
add rax, 9
jmp 0x140010924
xor eax, eax
add rsp, 0x28
pop rsi
pop rbp
ret
lea rcx, [0x140034060]
call fcn.140010070
mov ecx, eax
jmp 0x1400108ab
lea rcx, [0x140034060]
call fcn.140010070
mov ecx, eax
jmp 0x1400108c8
lea rcx, [0x140034060]
mov rsi, rax
call fcn.140010070
mov ecx, eax
mov rax, rsi
jmp 0x140010908
mov ecx, 8
mov edx, 0x10
call fcn.140001c30
int3
Function at 0x140010de0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x140034058]
test ecx, ecx
je 0x140010ea2
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140010e16
cmp qword [rax + 8], 0
je 0x140010e16
add rax, 0x10
jmp 0x140010e9b
mov ecx, dword [0x140034058]
test ecx, ecx
je 0x140010eb5
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140010e99
test rax, rax
jne 0x140010e7c
movzx eax, byte [0x140042030]
mov ecx, 0x20
call fcn.14002d850
test rax, rax
je 0x140010ede
lea rcx, [0x140034040]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x140034058]
test ecx, ecx
je 0x140010ec8
dec ecx
mov rdx, rax
mov rsi, rax
call sub.KERNEL32.dll_TlsSetValue
mov rax, rsi
mov qword [rax + 8], 1
mov rcx, rax
add rax, 0x10
mov qword [rcx + 0x10], 0
mov byte [rcx + 0x18], 0
jmp 0x140010e9b
xor eax, eax
add rsp, 0x28
pop rsi
pop rbp
ret
lea rcx, [0x140034040]
call fcn.140010070
mov ecx, eax
jmp 0x140010dfb
lea rcx, [0x140034040]
call fcn.140010070
mov ecx, eax
jmp 0x140010e26
lea rcx, [0x140034040]
mov rsi, rax
call fcn.140010070
mov ecx, eax
mov rax, rsi
jmp 0x140010e6e
mov ecx, 8
mov edx, 0x20
call fcn.140001c30
int3

Function at 0x140013420
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
sub byte [rax - 0x73], cl
insb byte [rdi], dx
and al, 0x20
Function at 0x140032250
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.140033010
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.140033010
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 0x1400322c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140042154]
mov rbx, rcx
test esi, esi
jle 0x1400323f0
mov rax, qword [0x140042158]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14003230b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140032395
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400322f0
mov rcx, rbx
call fcn.140032d30
mov rdi, rax
test rax, rax
je 0x140032412
mov rax, qword [0x140042158]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140032e70
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140042158]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400323f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14003238e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400323a0
add dword [0x140042154], 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 [0x140042158]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14003238e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140032250
nop dword [rax]
xor esi, esi
jmp 0x140032318
mov rax, qword [0x140042158]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140032250
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140032250
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400329a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400421c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400421a0]
test rbx, rbx
je 0x1400329fc
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 rsi, rsi
je 0x1400329f3
test eax, eax
jne 0x1400329f3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400329d8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]