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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140064d60]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140064d40]
test rbx, rbx
je 0x14003cfdc
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 0x14003cfd3
test rsi, rsi
je 0x14003cfd3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14003cfb8
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 0x14003d1f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14003d228
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14003d230
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14003d200
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14003d228
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14003d230
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14003d210
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14003d228
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14003d230
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14003d330
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140057db0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14003d350
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14003d358
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14003d350
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14003d3ad
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]
cmp rcx, r8
mov rdx, r8
jb 0x14003d3a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14003d350
add rax, 0x28
cmp rax, r9
jne 0x14003d390
xor eax, eax
ret

Function at 0x14003d3b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140057db0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14003d3cf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14003d3d8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14003d3cf
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x14003d470
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140057db0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14003d48f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14003d498
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400471c0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
mov qword [rsp + 0x20], rax
movabs rax, 0x7520676e696e6165
mov qword [rsp + 0x28], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x30], rax
movabs rax, 0x20726f6620737965
mov qword [rsp + 0x38], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x87], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x1400472ca
lea rcx, [rsp + 0x20]
mov eax, 0x28
jmp 0x1400472a2
add rax, 1
cmp rax, 0x6b
je 0x1400472bf
cmp byte [rcx + rax], 0
jne 0x140047298
cmp eax, 0x6a
movsxd rdx, eax
je 0x1400472bf
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
lea rcx, [rsp + 0x20]
mov eax, 0x28
mov edx, 0x27
jmp 0x1400472b3

Function at 0x140047640
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140065950], 1
je 0x1400476b8
lea rdi, [0x140065950]
mov rcx, rdi
call fcn.140046f40
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.1400468c0
mov esi, dword [0x140065950]
test esi, esi
jne 0x1400476c8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x14004ff18], eax
je 0x14004e6f6
mov dword [0x140065950], 1
mov rcx, rbp
call fcn.140046bb0
test rbx, rbx
je 0x1400476b8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400472e0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140047698
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.1400462c0
jmp 0x140047698
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
Function at 0x1400476f0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.1400473f0
cmp qword [0x140068048], 0
mov rbx, rax
je 0x140047808
test rax, rax
je 0x140047808
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.14004a9b0
cmp eax, 1
je 0x140047816
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
lea r9, [rbx + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.14004e6fc
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x14004ff18]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14004781c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.1400471c0
nop
jmp fcn.14004e6fc

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

Disassembly:
sub rsp, 0x28
call fcn.140047640
mov ecx, dword [0x14004ff18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140047850
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1400476f0
Function at 0x140047fc0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
test rdx, rdx
mov rbx, rcx
mov rsi, rdx
je 0x1400480e8
cmp eax, 1
je 0x14004801b
call fcn.140046f40
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.1400468c0
mov r12d, dword [rbx]
test r12d, r12d
je 0x140048030
cmp r12d, 1
jne 0x1400480c0
mov rcx, rbp
call fcn.140046bb0
test rdi, rdi
je 0x14004801b
mov rcx, rdi
call fcn.1400472e0
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x1400473c0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140047640
mov ecx, dword [0x14004ff18]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x140048128
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140047640
mov ecx, dword [0x14004ff18]
call r12
test rax, rax
je 0x140048110
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140047640
mov ecx, dword [0x14004ff18]
call r12
test rax, rax
je 0x140048100
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x140048006
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.1400462c0
jmp 0x140048006
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1400476f0
test rax, rax
jne 0x1400480a9
jmp 0x14004e715
call fcn.1400476f0
test rax, rax
jne 0x140048085
jmp 0x14004e72e
call fcn.1400476f0
test rax, rax
jne 0x14004805f
jmp 0x14004e724
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x1400483b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.140047640
mov ecx, dword [0x14004ff18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140048428
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.14004a9c0
cmp esi, dword [rbx + 0x48]
jae 0x140048403
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140048403
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.14004aa00
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1400476f0
mov rbx, rax
jmp 0x1400483dd
Function at 0x140048440
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.140047640
mov ecx, dword [0x14004ff18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140048550
lea r14, [rbx + 0x68]
mov rcx, r14
call fcn.14004a9c0
cmp esi, dword [rbx + 0x48]
jae 0x1400484d0
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r14
mov byte [rax + rsi], 1
call fcn.14004aa00
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rbx + 0x50]
lea r15d, [rsi + 1]
movsxd r13, r15d
lea rdx, [r13*8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
test rax, rax
mov rdi, rax
je 0x14004855d
mov rcx, qword [rbx + 0x58]
mov rdx, r13
movq xmm6, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
movq xmm0, rax
test rax, rax
mov r13, rax
punpcklqdq xmm6, xmm0
je 0x14004855d
mov eax, dword [rbx + 0x48]
mov edx, r15d
lea rcx, [rdi + rax*8]
sub edx, eax
lea r8, [rdx*8]
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov edx, dword [rbx + 0x48]
mov r8d, r15d
lea rcx, [r13 + rdx]
sub r8d, edx
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movaps xmmword [rbx + 0x50], xmm6
mov dword [rbx + 0x48], r15d
jmp 0x140048494
call fcn.1400476f0
mov rbx, rax
jmp 0x14004847f
mov rcx, r14
call fcn.14004aa00
mov eax, 0xc
jmp 0x1400484b2

Function at 0x1400485e0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140047640
mov ecx, dword [0x14004ff18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140048608
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.1400476f0
test rax, rax
jne 0x1400485fa
add rsp, 0x28
ret

Function at 0x140048670
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140047640
mov ecx, dword [0x14004ff18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140048698
add rax, 0x18
add rsp, 0x28
ret
call fcn.1400476f0
test rax, rax
jne 0x14004868a
jmp 0x14004868e

Function at 0x1400487b0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140065958]
test eax, eax
jne 0x1400487c8
xor eax, eax
add rsp, 0x28
ret
call fcn.140047640
mov ecx, dword [0x14004ff18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400487f8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x1400487be
test byte [rax + 0x40], 3
je 0x1400487be
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x1400487c0
call fcn.1400476f0
test rax, rax
jne 0x1400487de
jmp 0x1400487be
Function at 0x140048810
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140047640
mov ecx, dword [0x14004ff18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140048850
test ebx, ebx
jle 0x140048840
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.1400476f0
test rax, rax
jne 0x14004882d
add rsp, 0x20
pop rbx
ret

Function at 0x140048940
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140047640
mov ecx, dword [0x14004ff18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x1400489b8
test byte [rbx + 0x40], 0xc
jne 0x14004896f
mov eax, dword [0x140065958]
test eax, eax
jne 0x140048980
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1400468c0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400489a3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400489a3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400489cc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140046bb0
call fcn.1400476f0
test rax, rax
mov rbx, rax
jne 0x14004895f
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x1400489ea
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140046bb0
call fcn.140048860
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140048a70
call fcn.140049b50
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140048aa8
call fcn.140047640
mov ecx, dword [0x14004ff18]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140048b00
test esi, esi
je 0x140048a86
call fcn.140048940
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140048ae0
mov edx, edi
call fcn.140049c00
call fcn.140048940
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140047640
mov ecx, dword [0x14004ff18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140048af0
call fcn.140048940
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140048940
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140047640
mov ecx, dword [0x14004ff18]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x140048a45
call fcn.1400476f0
mov rbx, rax
jmp 0x140048a45
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140048a5e
call fcn.1400476f0
jmp 0x140048a86
call fcn.1400476f0
mov rbx, rax
jmp 0x140048a41
Function at 0x140048a00
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140047640
mov ecx, dword [0x14004ff18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x1400489b8
test byte [rbx + 0x40], 0xc
jne 0x14004896f
mov eax, dword [0x140065958]
test eax, eax
jne 0x140048980
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1400468c0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400489a3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400489a3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400489cc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140046bb0
call fcn.1400476f0
test rax, rax
mov rbx, rax
jne 0x14004895f
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x1400489ea
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140046bb0
call fcn.140048860
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140048a70
call fcn.140049b50
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140048aa8
call fcn.140047640
mov ecx, dword [0x14004ff18]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140048b00
test esi, esi
je 0x140048a86
call fcn.140048940
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140048ae0
mov edx, edi
call fcn.140049c00
call fcn.140048940
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140047640
mov ecx, dword [0x14004ff18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140048af0
call fcn.140048940
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140048940
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140047640
mov ecx, dword [0x14004ff18]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x140048a45
call fcn.1400476f0
mov rbx, rax
jmp 0x140048a45
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140048a5e
call fcn.1400476f0
jmp 0x140048a86
call fcn.1400476f0
mov rbx, rax
jmp 0x140048a41

Function at 0x140048b10
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140047640
mov ecx, dword [0x14004ff18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140048b80
test esi, esi
je 0x140048b60
call fcn.140048940
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140048b90
mov edx, esi
call fcn.140049c00
call fcn.140048940
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140048940
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140048940
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400476f0
mov rbx, rax
jmp 0x140048b31
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140048b4a
Function at 0x140004884
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012b50
mov r15, qword [0x140020514]
cmp r15, 1
jne 0x140004953
push qword [0x140020604]
pop rcx
call fcn.14000dd04
mov r15, rax
and r15, r15
jle 0x1400048e9
mov rcx, qword [0x140020604]
call fcn.14000dd0c
mov rcx, qword [0x140020604]
call fcn.14000dd20
or rax, rax
je 0x1400048e9
mov rbp, qword [0x14002060c]
push qword [rbp + 0x10]
pop rcx
call fcn.14000e1bc
jmp 0x1400048c6
push qword [0x1400205f4]
pop rcx
call fcn.14000dd04
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004953
push 5
push 0
push 1
push qword [0x1400205f4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009060
mov rcx, qword [0x1400205f4]
call fcn.14000dd0c
mov rcx, qword [0x1400205f4]
call fcn.14000dd20
or rax, rax
je 0x140004953
mov rbp, qword [0x1400205fc]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004930
mov rax, 1
jmp 0x14000495f
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006b38
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
invalid
out dx, al
xor ecx, dword [rbx + 0x34]
ret
sal byte [rcx - 0x7b], cl
mov r12d, 0x7c0d36ec
invalid
fucomi st(0)
jns 0x14003f726
in eax, dx
xchg byte [rcx - 0x76d4fa06], cl
invalid
enter 0xfffffffffffff4ae, 0xffffffffffffff93
mov esp, 0xf567bef6
mov ebp, 0xcf429197
jle 0x14003f6a2
mov r11b, 0x96
xchg esi, eax
or dh, byte [rsi + rcx*8]
xchg ecx, eax
invalid
jnp 0x14003f740
invalid
enter 0x29e3, 0x17
stc
invalid
jrcxz 0x14003f71d
invalid
adc esi, eax
mov bh, 0xc9
stosd dword [rdi], eax
in al, 0x92
xchg edi, eax
invalid
pop rdx
int1
sbb dword [rdx - 0xf139463], esp
push rsi
adc eax, 0x4c6077e1
std
sub eax, 0xa2c00b14
push rdx
ret
or eax, eax
movabs byte [0xbd88019028c3f2ff], al
sti
sub dword [rbx - 0x24], esi
push rbp
jrcxz 0x14003f6f1
xor al, 0x5b
test byte [rsi + rcx*4 + 0x3e], 0x93
invalid
scasb al, byte [rdi]
invalid
Function at 0x200001000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xa0
mov rbx, rdx
xor edx, edx
mov rsi, rcx
lea r8d, [rdx + 0x7f]
lea rcx, [rsp + 0x21]
call fcn.20000d940
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x20]
mov rdi, rbx
xor r8d, r8d
repne scasb al, byte [rdi]
mov rax, qword [0x200017c68]
mov qword [rdx], rax
movzx eax, word [0x200017c70]
not rcx
mov word [rdx + 8], ax
movzx eax, byte [0x200017c72]
dec rcx
movsxd r10, ecx
mov byte [rdx + 0xa], al
test ecx, ecx
jle 0x2000010b7
mov r9, rsi
sub r9, rbx
nop dword [rax]
movzx edi, byte [rbx]
mov eax, 0x66666667
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r8d
lea ecx, [rdx + rdx*4]
add ecx, ecx
sub eax, ecx
cdqe
movzx ecx, byte [rsp + rax + 0x20]
cmp dil, cl
je 0x20000109e
xor dil, cl
mov byte [r9 + rbx], dil
inc rbx
inc r8d
sub r10, 1
jne 0x200001070
movsxd rax, r8d
mov byte [rax + rsi], r10b
jmp 0x2000010be
movsxd rax, r8d
mov byte [rax + rsi], r8b
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x2000010e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xa0
mov rbx, rdx
xor edx, edx
mov esi, r8d
mov rdi, rcx
lea rcx, [rsp + 0x21]
lea r8d, [rdx + 0x7f]
call fcn.20000d940
mov rax, qword [str.Error_Code]
lea r11, [rsp + 0x20]
mov qword [r11], rax
movzx eax, word [0x200017c80]
xor r9d, r9d
mov word [r11 + 8], ax
movzx eax, byte [0x200017c82]
mov byte [r11 + 0xa], al
test esi, esi
je 0x20000117d
sub rdi, rbx
nop dword [rax + rax]
movzx r8d, byte [rbx]
test r8b, r8b
je 0x20000116e
mov eax, 0xcccccccd
mul r9d
mov eax, r9d
shr edx, 3
lea ecx, [rdx + rdx*4]
add ecx, ecx
sub eax, ecx
movzx ecx, r8b
movsx edx, byte [rsp + rax + 0x20]
cmp ecx, edx
je 0x20000116e
xor r8b, dl
inc r9d
mov byte [rdi + rbx], r8b
inc rbx
cmp r9d, esi
jb 0x200001140
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret