joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a7c0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x14000a865
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14000a81d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14000a810
cmp rcx, 1
jb 0x14000a896
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14000a833
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1400106d0
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14000a800
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000bd80
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14001038c
int3

Function at 0x14000a920
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a965
xor al, al
jmp 0x14000a9b2
cmp word [rbx], 0
je 0x14000a97d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a970
cmp word [rsp + 0x30], 0
je 0x14000a9ab
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a9d3
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a990
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000bd80
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14001038c
int3
Function at 0x14000b270
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.140020750
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x140032d14]
lea rsi, [0x140037d50]
mov rdi, rcx
test r11d, r11d
jne 0x14000b2e9
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000a9e0
test al, al
je 0x14000b3c9
lea rcx, [rsp + 0x20]
call fcn.140014a40
movsxd r11, dword [0x140032d14]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x140032d14], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000b324
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000b314
add rax, 2
test ecx, ecx
jne 0x14000b300
test edx, edx
je 0x14000b347
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000b2f4
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000b330
cmp rax, 2
jne 0x14000b34b
cmp word [rdi + 2], 0x3a
jne 0x14000b34b
mov al, 1
jmp 0x14000b3a8
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000b376
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000b39d
mov bl, 1
cmp dword [0x140032d14], 0x400
jge 0x14000b39d
mov rcx, rdi
call fcn.140014a40
movsxd rdx, dword [0x140032d14]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x140032d14], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000bd80
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str.HOME
call fcn.14000b110
int3

Function at 0x14000b4f0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x140032d18]
test rcx, rcx
je 0x14000b530
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b51e
mov rcx, qword [0x140032d18]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140032d18]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x28
ret
Function at 0x14000c640
Capabilities:
Parse pe header

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

Function at 0x140010380
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140010207
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140010207
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140010207
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140010207
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140010207
cmp dword [rcx + 0x84], 0xe
jbe 0x140010207
cmp dword [rcx + 0xf8], 0
je 0x140010207
mov ecx, ebx
call fcn.1400102ac
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400100a0
nop
cmp dword [rbp + 0x20], 0
jne 0x140010268
call fcn.140014e7c
cmp eax, 1
jne 0x140010258
xor dl, dl
jmp 0x140010262
call fcn.140014e48
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140010273
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001027c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140010198
Function at 0x140019b78
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140019bff
mov rsi, rbx
cmp word [rax], bp
je 0x140019bbe
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140019ba8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140019ba4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400170b0
mov rdi, rax
test rax, rax
je 0x140019bec
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140020e00
mov rbp, rdi
xor ecx, ecx
call fcn.140016090
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001c120
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001c136
mov al, 1
jmp 0x14001c1a2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001c147
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001c1a0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001a31c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001c1a0
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001c1a0
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001c1a0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001c1a2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400205e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140020608
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140020608
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140028974
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001c284
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c284
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028ac4
cmp rax, 0xffffffffffffffff
je 0x140028ac4
xor edi, edi
test rbp, rbp
jle 0x140028a6f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001eb98
mov rbx, rax
test rax, rax
jne 0x1400289fc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028a65
mov edx, 0x8000
mov ecx, r14d
call fcn.140019be8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001cf60
cmp eax, 0xffffffff
je 0x140028a45
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028a0c
mov edx, r15d
mov ecx, r14d
call fcn.140019be8
jmp 0x140028a65
cmp byte [rsi + 0x38], dil
je 0x140028a5c
cmp dword [rsi + 0x34], 5
jne 0x140028a5c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028a65
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a948
jmp 0x140028ad8
jns 0x140028ad8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c284
cmp rax, 0xffffffffffffffff
jne 0x140028a90
cmp byte [rsi + 0x30], dil
je 0x140028ad8
mov edi, dword [rsi + 0x2c]
jmp 0x140028ad8
mov ecx, r14d
call fcn.14001871c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028ad8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140028ad8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028ad1
mov eax, dword [rsi + 0x2c]
jmp 0x140028ad6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c284
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140029bd0
Capabilities:
Parse pe header

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

Function at 0x100411cf0
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
Function at 0x1683834
Capabilities:
Encode data using base64

Disassembly:
je 0x1713acf
movzx eax, byte [r9]
shl edi, 8
inc ecx
test r12b, 0x9d
cmc
or edi, eax
jmp 0x170500a
ret
inc r9
clc
cmp ecx, 5
jmp 0x170a15c
push 0x11139535
call fcn.0168506f
mov eax, 0x400
movzx r13d, r11w
mov rdi, r15
movsx r13d, cx
movzx eax, ax
bswap r13d
rep stosw word [rdi], ax
xor r13d, 0xbd0c9f8e
sal di, cl
mov r9, r8
shl edi, cl
sub dil, 0xbf
lea r13, [r8 - 1]
sar dil, cl
btr rcx, 0xa3
btr rdi, rsi
mov edi, ebx
or r8d, 0xffffffff
test r14b, r11b
inc cx
mov ecx, ebx
test r11b, 0xb0
test dl, bpl
cmp r9, r13
jmp 0x1683834
jl 0x1706907
mov qword [rsp + 0x28], rsi
dec rsi
nop
mov eax, r10d
add rsp, 0x30
pop r15
movzx bx, bh
pop r14
movzx bp, r12b
pop r13
movzx rdi, di
mov bp, r14w
pop r12
mov bl, 0x10
movsx ebp, r14w
pop rdi
setge bh
pop rbp
movzx bx, spl
pop rbx
jmp 0x1687f09

Function at 0x168ec35
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rdx, qword [rsp + 0x10]
mov qword [rsp + 0x10], 0x4a18f626
push qword [rsp + 8]
popfq
lea rsp, [rsp + 0x10]
call fcn.01720c94
push rsi
movzx r10, bp
bswap r10w
xor r11d, r11d
neg sil
mov r10, rcx
mov esi, r8d
test r8d, r8d
jmp 0x16962fe
je 0x167e210
mov qword [rsp + 0x10], rbx
mov ebx, edx
adc al, 0x81
ror ah, cl
mov qword [rsp + 0x18], rdi
movzx eax, bx
mov rdi, qword [rsp + 0x30]
ror ax, 0x11
rol rax, 0x3e
add rbx, r9
cdqe
bswap ax
nop
cmp bpl, spl

Function at 0x17188e9
Capabilities:
Encode data using base64

Disassembly:
lea rsp, [rsp + 0x20]
je 0x1691230
mov edx, 0x35976c0b
dec dx
shr dx, 0x62
push rbx
movzx ebx, dl
sal dl, 3
rol edx, 0x11
lea rbx, [0x016999b0]

Function at 0x1727726
Capabilities:
Encode data using base64

Disassembly:
jmp 0x1691224
push 0x4c3f650d
xor edx, ecx
jmp 0x16982bc
lea rsp, [rsp + 0x28]
jne 0x1718911
pop rbx
push 0x3f068726
jmp 0x1703fcd
xchg dword [rdx], ebx
add r15d, dword [r11]
sub al, 0xc6
retf 0x7a47
add dl, ch
test bh, ah
or ah, dh
jb 0x1698267
invalid
mov bl, ch
cmc
sbb dword [rbp - 0x7f], ecx
fst qword [rax + 0x50f5436c]
invalid
or byte [rdx - 0x6f7b7102], ch
test eax, 0xc3c0e141
jrcxz 0x1698222
test byte [rax - 0xb], bh
xchg edx, eax
cli
movabs dword [0x18900a4f031c19c5], eax
loope 0x169825a
scasb al, byte [rdi]
sar dword [0x7c74d350], cl
sub bh, byte [rax + rsi - 0x791785b3]
invalid
call fcn.0167d247
jb 0x1698293
sbb eax, 0x2aaf187d
mov dil, 0
add eax, 0xfadf2865
invalid
not ecx
mov dword [rdi], ecx
push 0xfffffffffd18040f
lea rsp, [rsp + 0x10]
jmp fcn.01711390
mov edx, 0x1d1b3007
dec dl
sete dl
movzx edx, byte [rbp + rdx - 0x1d1b3000]
jge 0x1684472
jmp 0x1683f95
Function at 0x140002787
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
sub rsp, 0x28
call fcn.140012770
mov r15, qword [rsp + 0x28]
cmp r15, 1
jne 0x1400027c3
push qword [0x1400204d4]
pop rcx
call fcn.14000715c
and rax, rax
je 0x1400027c3
push qword [0x1400204d4]
pop rcx
call fcn.1400071f8
call fcn.14000458d
push qword [0x140020554]
pop rcx
call fcn.14000dd04
push qword [0x14002052c]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
push qword [0x140020584]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
mov rax, qword [rsp + 0x40]
mov qword [0x1400204cc], rax
jmp 0x140001250
Function at 0x14000375d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012770
push qword [rsp + 0x48]
push qword [rsp + 0x48]
pop rcx
pop rdx
call sub.KERNEL32.dll_LoadResource
mov qword [rsp + 0x28], rax
push qword [rsp + 0x48]
push qword [rsp + 0x48]
pop rcx
pop rdx
call sub.KERNEL32.dll_SizeofResource
mov qword [0x1400204ec], rax
push qword [0x1400204ec]
pop rcx
call fcn.14000cdc0
mov qword [rsp + 0x30], rax
push qword [0x1400204ec]
push qword [rsp + 0x38]
push qword [rsp + 0x38]
pop rcx
pop rdx
pop r8
call fcn.14000cde0
push qword [rsp + 0x28]
pop rcx
call sub.KERNEL32.dll_FreeResource
mov rax, qword [rsp + 0x30]
jmp 0x1400037db
add rsp, 0x38
ret

Function at 0x14000458d
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012770
mov r15, qword [0x140020504]
cmp r15, 1
jne 0x14000465c
push qword [0x1400205ec]
pop rcx
call fcn.14000d884
mov r15, rax
and r15, r15
jle 0x1400045f2
mov rcx, qword [0x1400205ec]
call fcn.14000d88c
mov rcx, qword [0x1400205ec]
call fcn.14000d8a0
or rax, rax
je 0x1400045f2
mov rbp, qword [0x1400205f4]
push qword [rbp + 0x10]
pop rcx
call fcn.14000dd04
jmp 0x1400045cf
push qword [0x1400205dc]
pop rcx
call fcn.14000d884
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x14000465c
push 5
push 0
push 1
push qword [0x1400205dc]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140008be0
mov rcx, qword [0x1400205dc]
call fcn.14000d88c
mov rcx, qword [0x1400205dc]
call fcn.14000d8a0
or rax, rax
je 0x14000465c
mov rbp, qword [0x1400205e4]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004639
mov rax, 1
jmp 0x140004668
add rsp, 0x38
pop r15
pop rbp
ret
Function at 0x140006018
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 [0x14001f1c0]
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 0x1400071f8
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007188
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x1400211f0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020628]
jmp 0x140007234
cmp qword [rbx + 0x18], rdi
je 0x14000723b
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000722b
jmp 0x140007255
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020628]
call fcn.140011fd8
lea rcx, [0x1400211f0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140007270
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 0x140007336
lea rcx, [0x1400211f0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020628]
jmp 0x1400072fa
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400072f7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x140020628]
mov rdx, rsi
call fcn.140011fd8
jmp 0x1400072fa
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400072c7
mov rdx, qword [0x14001f150]
lea rcx, [0x140020628]
mov rdi, rdx
inc rdx
mov qword [0x14001f150], rdx
lea edx, [rbx + 0x20]
call fcn.140012020
lea rcx, [0x1400211f0]
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 0x1400074d0
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 0x140007634
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, [0x140019658]
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 0x140007600
cmp word [r14 + 2], di
je 0x140007600
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [r14 + rax*2], di
jne 0x140007540
movsxd r15, eax
nop dword [rax]
mov r8, r15
mov rdx, r14
mov rcx, rbx
call sub.msvcrt.dll_wcsncmp
test eax, eax
je 0x14000756d
cmp word [rbx], bp
je 0x14000756d
add rbx, 2
jmp 0x140007550
inc edi
cmp edi, r12d
je 0x140007582
cmp word [rbx], bp
je 0x14000758b
lea rbx, [rbx + r15*2]
mov rsi, rbx
jmp 0x140007550
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
xor r15d, r15d
mov rcx, rbx
call fcn.1400129c0
mov r14, qword [rsp + 0x20]
mov edi, eax
test eax, eax
je 0x1400075ba
mov ecx, r13d
call fcn.140012a30
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.140012a60
test edi, edi
mov rdi, qword [rsp + 0x60]
mov rbx, rax
jne 0x1400075de
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 0x14000760d
test ax, ax
jne 0x140007620
inc edi
cmp edi, edx
je 0x140007626
test ax, ax
je 0x14000758e
lea rsi, [rbx + 2]
add rbx, 2
jmp 0x140007600
mov rbp, rbx
sub rbp, rsi
sar rbp, 1
jmp 0x14000758e
mov ecx, r9d
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
jmp fcn.140012b40

Function at 0x140008000
Capabilities:
Get thread local storage value

Disassembly:
mov r10, rcx
test rcx, rcx
je 0x140008031
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140008010
mov ecx, 1
mov r9d, r8d
sub ecx, edx
add eax, ecx
mov rcx, r10
mov r8d, eax
jmp 0x140008040
mov ecx, r8d
jmp fcn.140012b40
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov ebp, r8d
test r8d, r8d
mov edi, r9d
mov esi, edx
mov rbx, rcx
cmovs ebp, r15d
call fcn.1400129c0
mov edx, edi
mov ecx, ebp
mov r14d, eax
call fcn.140012a60
mov rdi, rax
test r14d, r14d
je 0x140008091
mov ecx, r14d
call fcn.140012b80
mov rbx, rax
test rbx, rbx
je 0x1400080d7
cmp esi, 1
jle 0x1400080b1
nop dword [rax + rax]
cmp word [rbx], r15w
je 0x1400080d7
dec esi
add rbx, 2
cmp esi, 1
jg 0x1400080a0
movzx eax, word [rbx]
test ax, ax
je 0x1400080d7
sub rbx, rdi
nop dword [rax]
test ebp, ebp
je 0x1400080d7
mov word [rdi], ax
movzx eax, word [rbx + rdi + 2]
add rdi, 2
dec ebp
test ax, ax
jne 0x1400080c0
mov ecx, ebp
call fcn.140012c30
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov word [rdi], r15w
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140008100
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.140012a60
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.1400167bc
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x140008130
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140012c30

Function at 0x14000bab4
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14000bb2b
movsxd rdx, ecx
lea rcx, [0x14000ba10]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x140020668]
test rbx, rbx
je 0x14000bb9e
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14000bb21
cmp byte [rbx + 0x20], 0
je 0x14000bb21
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 0x14000bae7
jmp 0x14000bb9e
mov rbx, qword [0x140020668]
test rbx, rbx
je 0x14000bb9e
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14000bb96
cmp byte [rbx + 0x21], 0
je 0x14000bb5a
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x14000bb86
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, [0x140020668]
call fcn.140011fd8
mov rbx, rdi
test rdi, rdi
jne 0x14000bb37
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret