joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003f140
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x14004e028]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r8, rcx
mov ebx, edx
movzx ecx, byte [rcx]
test cl, cl
je 0x14003f186
lea rax, [r8 + 1]
cmp cl, 0x25
jne 0x14003f176
cmp byte [rax], cl
jne 0x14003f186
cmp cl, cl
cmovne rax, r8
movzx ecx, byte [rax + 1]
lea r8, [rax + 1]
test cl, cl
jne 0x14003f167
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x14003f2e4
cmp byte [r8 + 1], dl
je 0x14003f2e4
lea r11, [rsp + 0x20]
mov r9, r8
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x14003f1c2
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x14003f1ea
sub dl, 0x61
cmp dl, 0x19
ja 0x14003f1dc
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x14003f1ea
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x14003f1a5
jmp 0x14003f1ed
inc r9
cmp r8, r9
jae 0x14003f21f
movabs rdx, 0x800000000000009
nop dword [rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x14003f214
bt rdx, rax
jb 0x14003f21a
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x14003f200
movaps xmm3, xmm2
mov byte [r11], 0
movq r9, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.14000aac0
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x14003f258
nop dword [rax + rax]
inc rcx
cmp byte [rcx], 0x20
je 0x14003f250
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x14003f2d6
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x14003f273
movzx r8d, byte [rcx + 1]
lea rdx, [rcx + 1]
movzx eax, r8b
cmovne rdx, rcx
cmp r8b, 0x2b
jne 0x14003f289
movzx eax, byte [rdx + 1]
lea rcx, [rdx + 1]
xorps xmm1, xmm1
cmovne rcx, rdx
cmp al, 0x30
jl 0x14003f2c4
movsd xmm2, qword [0x140047268]
cmp al, 0x39
ja 0x14003f2c4
movzx eax, al
inc rcx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x14003f2a0
cmp r9b, 0x2d
jne 0x14003f2df
xorps xmm1, xmmword [0x1400476c0]
movaps xmm0, xmm1
jmp 0x14003f2e7
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm1, xmm0
movaps xmm0, xmm1
jmp 0x14003f2e7
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14003f310
add rsp, 0x90
pop rbx
ret

Function at 0x14003ffb0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003fffa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003fffa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003fffa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003fffa
cmp dword [rcx + 0x84], 0xe
jbe 0x14003fffa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003fffc
xor al, al
add rsp, 0x28
ret
Function at 0x21bf713f0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0xf0
mov r9d, 0x10
lea r8, str.Unknown_error
xor ecx, ecx
movabs rax, 0x5473626d2e657865
movabs rdx, 0x63255c4d75647451
mov qword [rsp + 0x30], rax
lea rbx, [rsp + 0x30]
movabs rax, 0x2626257075626c69
mov qword [rsp + 0x38], rdx
movabs rdx, 0x6d656f7574203135
mov qword [rsp + 0x40], rax
movabs rax, 0x2e65786526267469
mov qword [rsp + 0x48], rdx
movabs rdx, 0x756474515473626d
mov qword [rsp + 0x50], rax
movabs rax, 0x75626c6963255c4d
mov qword [rsp + 0x58], rdx
movabs rdx, 0x6174696f6e202570
mov qword [rsp + 0x60], rax
movabs rax, 0x202d64657374696e
mov qword [rsp + 0x68], rdx
movabs rdx, 0x3d41674144586827
mov qword [rsp + 0x70], rax
movabs rax, 0x6335393f68617368
mov qword [rsp + 0x78], rdx
movabs rdx, 0x31353136372f646f
mov qword [rsp + 0x80], rax
movabs rax, 0x70702e636f6d2f33
mov qword [rsp + 0x88], rdx
movabs rdx, 0x2e6865726f6b7561
mov qword [rsp + 0x90], rax
movabs rax, 0x3133663337363039
mov qword [rsp + 0x98], rdx
movabs rdx, 0x6f6e312d38663439
mov qword [rsp + 0xa0], rax
movabs rax, 0x2f626f7466757369
mov qword [rsp + 0xa8], rdx
movabs rdx, 0x2768747470733a2f
mov qword [rsp + 0xb0], rax
movabs rax, 0x2d736f7572636520
mov qword [rsp + 0xb8], rdx
movabs rdx, 0x72616e7366657220
mov qword [rsp + 0xc0], rax
movabs rax, 0x72742d6269747374
mov qword [rsp + 0xc8], rdx
movabs rdx, 0x655e6c6c20737461
mov qword [rsp + 0xd0], rax
movabs rax, 0x6f775e65725e7368
mov qword [rsp + 0xd8], rdx
lea rdx, str.The_data_is_invalid_
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0xe8], 0x2f632070
mov byte [rsp + 0xec], 0
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov r11, rax
lea eax, [rax - 1]
test eax, eax
jle 0x21bf715f9
movsxd rdx, eax
mov rcx, rbx
add rdx, rbx
nop word [rax + rax]
movzx r8d, byte [rcx]
movzx r10d, byte [rdx]
add rcx, 1
sub rdx, 1
mov byte [rcx - 1], r10b
mov r10d, eax
sub eax, 1
mov byte [rdx + 1], r8b
mov r8d, r11d
sub r8d, r10d
cmp eax, r8d
jg 0x21bf715d0
mov dword [rsp + 0x28], 0
mov r9, rbx
lea r8, str.cmd.exe
xor ecx, ecx
mov qword [rsp + 0x20], 0
lea rdx, str.open
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
add rsp, 0xf0
pop rbx
ret

Function at 0x21bf717d0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.21bf724d0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.21bf724d0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x21bf71840
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x21bf78064]
mov r12, rcx
test ebx, ebx
jle 0x21bf71970
mov rax, qword [0x21bf78068]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x21bf7188c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x21bf71913
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x21bf71870
mov rcx, r12
call fcn.21bf71fc0
mov rsi, rax
test rax, rax
je 0x21bf71992
mov rax, qword [0x21bf78068]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.21bf720f0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x21bf78068]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x21bf71977
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x21bf7190c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x21bf71920
add dword [0x21bf78064], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x21bf78068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x21bf7190c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.21bf717d0
nop dword [rax]
xor ebx, ebx
jmp 0x21bf71897
mov rax, qword [0x21bf78068]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.21bf717d0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.21bf717d0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x21bf71c30
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x21bf780a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x21bf78080]
test rbx, rbx
je 0x21bf71c84
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x21bf71c7b
test r12, r12
je 0x21bf71c7b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x21bf71c60
lea rcx, [0x21bf780a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x21bf71fc0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x21bf74f80]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x21bf71fe0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x21bf71fe8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x21bf71fe0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x21bf72035
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x21bf7202c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x21bf71fe0
add rax, 0x28
cmp rax, r9
jne 0x21bf72018
xor eax, eax
ret

Function at 0x21bf72040
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x21bf74f80]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x21bf72060
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x21bf72068
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x21bf72060
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x21bf720f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x21bf74f80]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x21bf72110
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x21bf72118
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x140011334
Capabilities:
Terminate process

Disassembly:
jmp 0x140016d60
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011415
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400180b0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400180d0
xor al, al
jmp 0x140018151
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400180e3
xor al, al
jmp 0x140018151
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001810d
xor al, al
jmp 0x140018151
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140018121
xor al, al
jmp 0x140018151
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140018133
xor al, al
jmp 0x140018151
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001814f
xor al, al
jmp 0x140018151
mov al, 1
add rsp, 0x38
ret
Function at 0x140004664
Capabilities:
Enumerate processes

Disassembly:
push rbp
push r15
mov rax, 0x4c
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x14000466e
sub rsp, 0x28
call fcn.14003cb80
lea rbp, [rsp + 0x30]
mov dword [rbp], 0x238
push 0
push 0xf
pop rcx
pop rdx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x270], rax
fnop
fnop
cmp qword [rsp + 0x270], 0
je 0x140004829
lea rax, [rsp + 0x30]
mov rax, rax
push rax
push qword [rsp + 0x278]
pop rcx
pop rdx
call sub.KERNEL32.dll_Process32FirstW
mov qword [rsp + 0x278], rax
fnop
fnop
cmp qword [rsp + 0x278], 0
je 0x140004829
push rcx
sub rsp, 0x28
call fcn.14003cbf0
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.14003cbf0
add rsp, 0x28
pop rcx
push rax
lea rbp, [rsp + 0x48]
lea rax, [rbp + 0x2c]
mov rax, rax
push rax
pop rcx
pop rdx
sub rsp, 0x20
call fcn.14003a630
add rsp, 0x28
lea rcx, [rsp + 0x30]
pop rdx
call fcn.14003ccb0
push qword [rsp + 0x28]
movabs rdx, str.Red_Blueas_Light.exe
mov rcx, qword [rsp]
sub rsp, 0x28
call fcn.14003cf10
add rsp, 0x28
or rax, rax
jne 0x1400047a1
movabs rdx, str.Red_lp_light.exe
mov rcx, qword [rsp]
sub rsp, 0x28
call fcn.14003cf10
add rsp, 0x28
or rax, rax
jne 0x1400047a1
movabs rdx, 0x140094b2e
mov rcx, qword [rsp]
sub rsp, 0x28
call fcn.14003cf10
add rsp, 0x28
or rax, rax
je 0x1400047b6
mov r15, qword [rsp + 0x270]
inc r15
mov qword [rsp + 0x270], r15
jmp 0x1400047f0
sub rsp, 8
movabs rax, str.PureBasic_Compilation
push rax
push qword [rsp + 0x40]
pop rcx
pop rdx
sub rsp, 0x20
call fcn.140018280
add rsp, 0x28
and rax, rax
je 0x1400047f0
mov r15, qword [rsp + 0x270]
inc r15
mov qword [rsp + 0x270], r15
pop rax
mov r15, qword [rsp + 0x268]
cmp r15, 1
jle 0x140004801
jmp 0x140004829
lea rax, [rsp + 0x30]
mov rax, rax
push rax
push qword [rsp + 0x278]
pop rcx
pop rdx
call sub.KERNEL32.dll_Process32NextW
mov qword [rsp + 0x278], rax
fnop
fnop
jmp 0x1400046e3
push qword [rsp + 0x270]
pop rcx
call sub.KERNEL32.dll_CloseHandle
fnop
fnop
mov r15, qword [rsp + 0x268]
cmp r15, 1
je 0x14000484d
jmp 0x14000131d
xor rax, rax
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.14003cd90
add rsp, 0x28
pop rax
add rsp, 0x288
pop r15
pop rbp
ret
Function at 0x140005f64
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
push rax
push rax
sub rsp, 0x28
call fcn.14003cb80
mov rcx, qword [rsp + 0x70]
call fcn.140016890
push rcx
sub rsp, 0x28
call fcn.14003cbf0
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.14003cbf0
add rsp, 0x28
pop rcx
push rax
push 0x104
pop rcx
pop rdx
sub rsp, 0x20
call fcn.140018300
add rsp, 0x28
lea rcx, [rsp + 0x38]
pop rdx
call fcn.14003ccb0
lea rax, [rsp + 0x28]
mov rax, rax
push rax
movsxd rax, dword [rsp + 0x58]
mov rax, rax
push rax
push 0
pop rcx
pop rdx
pop r8
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
mov r15, rax
and r15, r15
jne 0x1400060f0
mov rax, qword [rsp + 0x30]
mov rax, rax
push rax
push qword [rsp + 0x30]
pop rcx
pop rdx
call sub.SHELL32.DLL_SHGetPathFromIDListW
and rax, rax
je 0x1400060f0
push rcx
sub rsp, 0x28
call fcn.14003cbf0
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.14003cbf0
add rsp, 0x28
pop rcx
push rax
push 1
push qword [rsp + 0x50]
pop rcx
pop rdx
pop r8
sub rsp, 0x20
call fcn.140018360
add rsp, 0x28
call fcn.14003ce90
movabs rcx, 0x1400941c8
pop rdx
push rcx
mov rcx, rdx
sub rsp, 0x20
call fcn.14003cec0
add rsp, 0x20
pop rcx
mov rdx, rax
call fcn.14003cf10
or rax, rax
jne 0x1400060c1
mov rcx, qword [rsp + 0x30]
push rcx
sub rsp, 0x28
call fcn.14003cbf0
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.14003cc40
add rsp, 0x28
movabs rcx, 0x1400941c8
sub rsp, 0x28
call fcn.14003cc40
add rsp, 0x28
lea rcx, [rsp + 0x38]
pop rdx
call fcn.14003ccb0
mov rcx, qword [rsp + 0x30]
push rcx
sub rsp, 0x28
call fcn.14003cbf0
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.14003cc40
add rsp, 0x28
pop rax
push rax
call fcn.14003cdc0
pop rdx
add rax, rdx
jmp 0x1400060fa
call fcn.14003d060
mov word [rax], 0
push rax
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.14003cd90
add rsp, 0x28
pop rax
add rsp, 0x40
pop r15
ret

Function at 0x140016890
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 [0x140144740]
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 0x1400178dc
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x1400179a2
lea rcx, [0x140147c70]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401471c8]
jmp 0x140017966
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140017963
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x1401471c8]
mov rdx, rsi
call fcn.14003ca34
jmp 0x140017966
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140017933
mov rdx, qword [0x140144710]
lea rcx, [0x1401471c8]
mov rdi, rdx
inc rdx
mov qword [0x140144710], rdx
lea edx, [rbx + 0x20]
call fcn.14003ca7c
lea rcx, [0x140147c70]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x140017ac4
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140017760
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140147c70]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401471c8]
jmp 0x140017b00
cmp qword [rbx + 0x18], rdi
je 0x140017b07
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140017af7
jmp 0x140017b21
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1401471c8]
call fcn.14003ca34
lea rcx, [0x140147c70]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140017f40
Capabilities:
Get thread local storage value

Disassembly:
mov r10, rcx
test rcx, rcx
je 0x140017f71
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140017f50
mov ecx, 1
mov r9d, r8d
sub ecx, edx
add eax, ecx
mov rcx, r10
mov r8d, eax
jmp fcn.140017e80
mov ecx, r8d
jmp fcn.14003d440

Function at 0x140017f80
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov esi, 0x40
mov ecx, esi
call fcn.14003d270
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.1400726dc
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x140017fb0
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14003d380
Function at 0x1400184b0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
xor r15d, r15d
mov r13d, r9d
mov r12d, edx
mov ebp, r15d
cmp edx, 1
jl 0x140018614
mov qword [rsp + 0x50], rbx
test rcx, rcx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x20], r14
lea r14, [0x140083e44]
mov rbx, r14
mov edi, r15d
cmovne rbx, rcx
test r8, r8
cmovne r14, r8
mov rsi, rbx
movzx ecx, word [r14]
test cx, cx
je 0x1400185e0
cmp word [r14 + 2], di
je 0x1400185e0
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [r14 + rax*2], di
jne 0x140018520
movsxd r15, eax
nop dword [rax]
mov r8, r15
mov rdx, r14
mov rcx, rbx
call sub.msvcrt.dll_wcsncmp
test eax, eax
je 0x14001854d
cmp word [rbx], bp
je 0x14001854d
add rbx, 2
jmp 0x140018530
inc edi
cmp edi, r12d
je 0x140018562
cmp word [rbx], bp
je 0x14001856b
lea rbx, [rbx + r15*2]
mov rsi, rbx
jmp 0x140018530
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
xor r15d, r15d
mov rcx, rbx
call fcn.14003d200
mov r14, qword [rsp + 0x20]
mov edi, eax
test eax, eax
je 0x14001859a
mov ecx, r13d
call fcn.14003d480
movsxd r8, ebp
mov rdx, rsi
mov rcx, rax
add r8, r8
call sub.msvcrt.dll_memmove
mov edx, r13d
mov ecx, ebp
call fcn.14003d270
test edi, edi
mov rdi, qword [rsp + 0x60]
mov rbx, rax
jne 0x1400185be
movsxd r8, ebp
mov rdx, rsi
mov rcx, rax
call sub.msvcrt.dll_wcsncpy
mov rsi, qword [rsp + 0x58]
movsxd rcx, ebp
mov word [rbx + rcx*2], r15w
mov rbx, qword [rsp + 0x50]
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret
movzx eax, word [rbx]
cmp ax, cx
je 0x1400185ed
test ax, ax
jne 0x140018600
inc edi
cmp edi, edx
je 0x140018606
test ax, ax
je 0x14001856e
lea rsi, [rbx + 2]
add rbx, 2
jmp 0x1400185e0
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
jmp 0x14001856e
mov ecx, r9d
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
jmp fcn.14003d440
Function at 0x14001c25c
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14001c2d3
movsxd rdx, ecx
lea rcx, [0x14001c1b8]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x1401473f8]
test rbx, rbx
je 0x14001c346
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14001c2c9
cmp byte [rbx + 0x20], 0
je 0x14001c2c9
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x14001c28f
jmp 0x14001c346
mov rbx, qword [0x1401473f8]
test rbx, rbx
je 0x14001c346
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14001c33e
cmp byte [rbx + 0x21], 0
je 0x14001c302
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x14001c32e
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.DLL_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x1401473f8]
call fcn.14003ca34
mov rbx, rdi
test rdi, rdi
jne 0x14001c2df
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14001c870
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140147408], 0
jne 0x14001c895
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140147408], 1
mov dword [0x14014740c], eax
mov rcx, qword [0x140146d3c]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x14014740c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, eax
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp 0x14001ca50
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140147408], 0
mov ebx, ecx
jne 0x14001ca74
call fcn.14001c870
mov ecx, dword [0x14014740c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14001ca9c
call fcn.14001c870
mov ecx, dword [0x14014740c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea rdx, [rdi + 8]
mov r8d, 0x11
nop word [rax + rax]
imul eax, ebx, 0x53a9b4fb
mov ecx, 1
mov ebx, 1
sub ecx, eax
lea rdx, [rdx + 4]
mov dword [rdx + 0x40], ecx
imul eax, ecx, 0x53a9b4fb
sub ebx, eax
mov dword [rdx - 4], ebx
dec r8
jne 0x14001cab0
lea esi, [r8 + 0x1f]
mov dword [rdi], r8d
mov dword [rdi + 4], 0xa
lea ebp, [rsi - 0xf]
nop word [rax + rax]
movsxd r11, dword [rdi]
movsxd rbx, dword [rdi + 4]
mov r10d, dword [rdi + rbx*4 + 8]
mov r9d, dword [rdi + r11*4 + 8]
mov eax, dword [rdi + r11*4 + 0x4c]
ror r9d, 5
lea rcx, [rdi + r11*4]
lea r8, [rdi + r11*4]
ror eax, 0xd
add r9d, r10d
add eax, dword [rdi + rbx*4 + 0x4c]
dec r11d
mov dword [r8 + 0x4c], r9d
cmovs r11d, ebp
dec ebx
mov dword [rcx + 8], eax
cmovs ebx, ebp
mov dword [rdi], r11d
mov dword [rdi + 4], ebx
dec rsi
jne 0x14001caf0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret