joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1404d9b4d
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
cmovne rax, rax
movsx eax, r11w
mov qword [rsp + 0x18], rbp
push rsi
bswap ax
not ax
setb al
push rdi
cwde
lahf
movsx rax, r9w
push r12
movsx rax, dx
not rax
push r14
movzx rax, r15w
bswap ax
push r15
movzx rax, r11w
mov eax, 0x1470
jmp 0x1404d9b92
call fcn.140445c7d
sub rsp, rax
bswap r14d
mov rax, qword [0x1400b7288]
or r14, r11
xor rax, rsp
btr r15, r9
movsx di, sil
btc bx, r11w
mov qword [rsp + 0x1460], rax
add edi, 0xe261ab2
movzx r15w, dil
movsxd r10, edx
cwde
cbw
btc r12w, r14w
mov rbx, rcx
sar dl, cl
bswap r12
mov rax, r10
btr rdx, 0x72
sar r14b, cl
mov r14d, r9d
cwd
sar rax, 6
lea rcx, [0x1400ba940]
sub dil, al
btr r15w, 0xe
and r10d, 0x3f
bts di, r12w
rcl dx, 0x8a
movzx di, r13b
add r14, r8
not r12b
jmp 0x1404d9c1f
mov r15, r8
mov rdi, r8
sub r12w, r11w
xadd dx, r12w
mov r12b, 0xca
mov rax, qword [rcx + rax*8]
lea rdx, [r10 + r10*8]
sub r12d, r11d
mov r12, qword [rax + rdx*8 + 0x28]
sub eax, eax
mov qword [rbx], rax
cmp r8, r14
jmp 0x1404d9c4e
mov dword [rbx + 8], eax
jae 0x1404d9ddf
lea rax, [rsp + 0x50]
cmp rdi, r14
jae 0x1404d9cb5
movzx ecx, word [rdi]
cmp r8b, 0x94
add rdi, 2
cmp r11b, 0xf8
cmp cx, 0xa
jmp 0x1404d9c7d
jne 0x1404d9c9a
mov edx, 0xd
stc
cmp r11d, ebx
mov word [rax], dx
add rax, 2
cmp r15w, 0x46e1
stc
mov word [rax], cx
add rax, 2
lea rcx, [rsp + 0x6f8]
cmp si, bx
cmp rax, rcx
jb 0x1404d9c5c
and qword [rsp + 0x38], 0
xadd cl, r8b
test r14b, 0x63
lea rcx, [rsp + 0x50]
btc r9w, ax
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x50]
sub rax, rcx
mov dword [rsp + 0x28], 0xd55
not cl
ror r9, 0x94
sal r9, cl
lea rcx, [rsp + 0x700]
cmovo r9w, r15w
not r9b
sar rax, 1
mov qword [rsp + 0x20], rcx
inc ch
mov r9d, eax
sub cl, r12b
rcl ecx, 0x74
clc
mov ecx, 0xfde9
sub edx, edx
jmp 0x1404d9d1c
call fcn.1404c68fd
mov ebp, eax
stc
test rsp, 0x62d14512
clc
test eax, eax
jmp 0x1404d9d33
je 0x1404d9dcc
xor esi, esi
jmp 0x1404d9d40
test eax, eax
jmp 0x1404d9d47
je 0x1404d9dad
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x700]
shl r8, 0x12
movsx ecx, r14w
movzx r8d, r9w
mov ecx, esi
lea r9, [rsp + 0x40]
rcr r8b, cl
mov r8d, ebp
test dil, dil
cmp r15b, 0xad
add rdx, rcx
rcr cx, cl
mov rcx, r12
cmp ebx, ebx
sub r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jmp 0x1404d9d96
je 0x1404d9dcc
add esi, dword [rsp + 0x40]
cmp esi, ebp
jmp 0x1404d9da7
jb 0x1404d9d4d
mov eax, edi
test r12, 0x4c3009a4
test r14d, r11d
sub eax, r15d
mov dword [rbx + 4], eax
cmp rdi, r14
jmp 0x1404d9dc7
jmp 0x1404d9c51
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
movsxd rcx, r11d
adc cx, 0x4c6e
not rax
mov rax, rbx
mov rcx, qword [rsp + 0x1460]
jmp 0x1404d9df3
xor rcx, rsp
jmp 0x1404d9dfb
call fcn.14049cefa
lea r11, [rsp + 0x1470]
mov rbx, qword [r11 + 0x30]
movsxd r14, eax
movsx r12, ax
mov rbp, qword [r11 + 0x40]
cmovne di, r9w
mov rsp, r11
bswap si
movsxd r15, ecx
movsx r14, ax
pop r15
pop r14
setge dil
mov r12w, r10w
bswap si
pop r12
pop rdi
movsx esi, r10w
mov sil, 0xbf
pop rsi
ret
Function at 0x1404dd39b
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
mov r8b, 0x1c
sub rsp, 0x20
bt rdx, 0xd
shrd r9w, bx, 0x7d
mov rbx, rcx
lea r9, [0x1400c8e90]
sub r8d, eax
or dh, 0xf3
shld r8w, sp, 0xab
xor ecx, ecx
not r8b
mov r8b, bpl
cmovns r8d, r8d
lea r8, [0x1400c8e88]
mov dl, spl
lea rdx, [0x1400cfb70]
jmp 0x1404dd3e7
call fcn.1404dd6a0
test rax, rax
jmp 0x1404dd3f4
je 0x1404dd41a
mov rcx, rbx
btr rbx, rsp
rol rbx, cl
add rsp, 0x20
cmovp bx, r13w
pop rbx
jmp 0x1404dd413
push qword [0x1400b8d90]
ret
add rsp, 0x20
pop rbx
jmp 0x1404dd424
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x1404dd52b
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
stc
add r9b, 0xa7
push rdi
movsx rdi, ax
sub rsp, 0x20
setnp r8b
movsx r9w, r9b
movsxd rbx, ebx
mov rbx, rdx
seto dil
lea r9, [0x1400c8ea8]
movsx rdx, r8w
mov edi, ecx
movsx edx, r9w
lea rdx, [0x1400cf748]
mov r8d, 0x58aa2c6e
mov ecx, 3
movsxd r8, ebx
lea r8, [0x1400c8ea0]
call fcn.1404dd6a0
mov rdx, rbx
mov ecx, edi
cmp ch, bl
jmp 0x1404dd58f
test rax, rax
jmp 0x1404dd597
je 0x1404dd5a8
call qword [0x1400b8d90]
jmp 0x1404dd5ae
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
cmovo edi, r10d
add rsp, 0x20
jmp 0x1404dd5c0
pop rdi
jmp 0x1404dd5c6
ret
Function at 0x140027d00
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.14001b6a4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b6a4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027e50
cmp rax, 0xffffffffffffffff
je 0x140027e50
xor edi, edi
test rbp, rbp
jle 0x140027dfb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001dc90
mov rbx, rax
test rax, rax
jne 0x140027d88
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027df1
mov edx, 0x8000
mov ecx, r14d
call fcn.140015848
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.14001c380
cmp eax, 0xffffffff
je 0x140027dd1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027d98
mov edx, r15d
mov ecx, r14d
call fcn.140015848
jmp 0x140027df1
cmp byte [rsi + 0x38], dil
je 0x140027de8
cmp dword [rsi + 0x34], 5
jne 0x140027de8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027df1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019d68
jmp 0x140027e64
jns 0x140027e64
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b6a4
cmp rax, 0xffffffffffffffff
jne 0x140027e1c
cmp byte [rsi + 0x30], dil
je 0x140027e64
mov edi, dword [rsi + 0x2c]
jmp 0x140027e64
mov ecx, r14d
call fcn.140016e48
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027e64
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 0x140027e64
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027e5d
mov eax, dword [rsi + 0x2c]
jmp 0x140027e62
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b6a4
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 0x14135dcaa
Capabilities:
Encode data using xor

Disassembly:
add qword [rsp], 0xffffffffbefe8dc1
push qword [rsp + 8]
popfq
lea rsp, [rsp + 0x18]
call fcn.1413f5396
add byte [rbx + 0x48], dl
xor r14, qword [rdx]
insb byte [rdi], dx
insb byte [rdi], dx
add byte [rbx + 0x28], bl
mov gs, word [rdi]
invalid
not rcx
mov rcx, qword [rsp + 0x10]
jno 0x14134b2df
Function at 0x6d8be3d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8df5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8be558
mov rax, qword [0x6d8df5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8be41c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8be4a5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8be400
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8be58d
mov rax, qword [0x6d8df5e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d8df5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8be570
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8be49e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8be500
add dword [0x6d8df5e4], 1
cmp edi, 8
jae 0x6d8be4d3
test dil, 4
jne 0x6d8be544
test edi, edi
je 0x6d8be4c8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8be55f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d8be4c8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d8be4ec
jmp 0x6d8be4c8
add rsi, qword [0x6d8df5e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d8be49e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d8be4c8
xor esi, esi
jmp 0x6d8be427
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8be4c8
mov rax, qword [0x6d8df5e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d8bece0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8df8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8df8a0]
test rbx, rbx
je 0x6d8bed34
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d8bed2b
test rsi, rsi
je 0x6d8bed2b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d8bed10
lea rcx, [0x6d8df8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d8bef70
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d8bef80
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d8bef90
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d8befd1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d8befc8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8befd3
add rax, 0x28
cmp rax, r9
jne 0x6d8befb4
xor eax, eax
ret

Function at 0x6d8bf070
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8dc1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d8bf0dd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8bf0dd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d8bf0dd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8bf0d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8bf0df
add rax, 0x28
cmp rax, r9
jne 0x6d8bf0c0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d8bf1e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8dc1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8bf200
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8bf1f8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d8bf25d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8bf254
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8bf264
add rax, 0x28
cmp rax, r9
jne 0x6d8bf240
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8bf280
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8dc1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8bf2ee
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8bf2ee
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8bf2ee
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8bf2ee
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d8bf2e5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8bf2f5
add rcx, 0x28
cmp rcx, rax
jne 0x6d8bf2d0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8bf308
jmp 0x6d8bf2ee
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8bf316
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8bf2ee
test r9d, r9d
jg 0x6d8bf300
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8bf680
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140002940
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
push r15
xor rax, rax
push rax
push rax
push rax
sub rsp, 0x28
call fcn.14003d0e0
push 0
sub rsp, 8
sub rsp, 0x20
call sub.USER32.dll_GetForegroundWindow
add rsp, 0x28
mov rax, rax
push rax
pop rcx
pop rdx
call sub.USER32.dll_GetWindowThreadProcessId
mov qword [rsp + 0x28], rax
call sub.KERNEL32.dll_GetCurrentThreadId
mov qword [rsp + 0x30], rax
mov r15, qword [rsp + 0x28]
cmp r15, qword [rsp + 0x30]
je 0x1400029e7
push 1
push qword [rsp + 0x38]
push qword [rsp + 0x38]
pop rcx
pop rdx
pop r8
call sub.USER32.dll_AttachThreadInput
push qword [rsp + 0x50]
pop rcx
call sub.USER32.dll_BringWindowToTop
cmp qword [rsp + 0x58], 0
je 0x1400029cf
push 5
push qword [rsp + 0x58]
pop rcx
pop rdx
call sub.USER32.dll_ShowWindow
push 0
push qword [rsp + 0x38]
push qword [rsp + 0x38]
pop rcx
pop rdx
pop r8
call sub.USER32.dll_AttachThreadInput
jmp 0x140002a09
push qword [rsp + 0x50]
pop rcx
call sub.USER32.dll_BringWindowToTop
cmp qword [rsp + 0x58], 0
je 0x140002a09
push 5
push qword [rsp + 0x58]
pop rcx
pop rdx
call sub.USER32.dll_ShowWindow
xor rax, rax
add rsp, 0x40
pop r15
ret
Function at 0x14000959a
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
push rax
push rax
push rax
push rax
sub rsp, 0x28
call fcn.14003d0e0
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.14003d1b0
add rsp, 0x10
mov rax, qword [rsp + 0x28]
mov rax, rax
push rax
push 1
push 0
pop rcx
pop rdx
pop r8
call sub.KERNEL32.dll_CreateMutexW
mov qword [rsp + 0x30], rax
mov r15, qword [rsp + 0x30]
and r15, r15
je 0x14000960e
call sub.KERNEL32.dll_GetLastError
mov r15, rax
cmp r15, 0xb7
jne 0x14000960e
mov rax, 1
jmp 0x140009611
xor rax, rax
and rax, rax
je 0x140009666
push qword [rsp + 0x30]
pop rcx
call sub.KERNEL32.dll_CloseHandle
movabs rdx, str.An_instance_of_the_application_is_currently_running._n_nDo_you_want_to_continue_
lea rcx, [rsp + 0x38]
call fcn.14003ce60
push 0x124
push qword [rsp + 0x40]
movabs rax, 0x1400d9a4c
push rax
pop rcx
pop rdx
pop r8
call fcn.14000a580
mov qword [rsp + 0x40], rax
mov r15, qword [rsp + 0x40]
cmp r15, 7
jne 0x140009666
jmp 0x1400023ac
xor rax, rax
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.14003d180
add rsp, 0x28
mov rcx, qword [rsp + 0x40]
sub rsp, 0x28
call fcn.14003d180
add rsp, 0x28
pop rax
add rsp, 0x50
pop r15
ret
Function at 0x140009868
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push r15
xor rax, rax
push rax
push rax
push rax
push rax
sub rsp, 0x28
call fcn.14003d0e0
push 0
sub rsp, 8
push 1
mov rbp, qword [rsp + 0x78]
movsxd rax, dword [rbp]
mov rax, rax
push rax
pop rcx
pop rdx
sub rsp, 0x20
call sub.USER32.dll_GetAncestor
add rsp, 0x28
mov rax, rax
push rax
pop rcx
pop rdx
call sub.USER32.dll_ShowWindow
mov rbp, qword [rsp + 0x60]
movsxd rax, dword [rbp + 0x34]
mov rax, rax
push rax
pop rcx
call sub.USER32.dll_IsWindow
and rax, rax
je 0x140009a29
push 5
mov rbp, qword [rsp + 0x68]
movsxd rax, dword [rbp + 0x34]
mov rax, rax
push rax
pop rcx
pop rdx
call sub.USER32.dll_GetWindow
mov qword [rsp + 0x28], rax
push 0xffffffffffffffec
mov rbp, qword [rsp + 0x68]
movsxd rax, dword [rbp + 0x34]
mov rax, rax
push rax
pop rcx
pop rdx
call sub.USER32.dll_GetWindowLongPtrW
mov r15, rax
or r15, 0x80000
mov rax, r15
push rax
push 0xffffffffffffffec
mov rbp, qword [rsp + 0x70]
movsxd rax, dword [rbp + 0x34]
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
call sub.USER32.dll_SetWindowLongPtrW
push 2
push 0
push 0
mov rbp, qword [rsp + 0x78]
movsxd rax, dword [rbp + 0x34]
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
pop r9
call sub.USER32.dll_SetLayeredWindowAttributes
push 2
push 0
push 0
push qword [rsp + 0x40]
pop rcx
pop rdx
pop r8
pop r9
call sub.USER32.dll_SetLayeredWindowAttributes
push 0xfffffffffffffff0
push qword [rsp + 0x30]
pop rcx
pop rdx
call sub.USER32.dll_GetWindowLongPtrW
mov r15, rax
and r15, 0xffffffffefffffff
mov rax, r15
push rax
push 0xfffffffffffffff0
push qword [rsp + 0x38]
pop rcx
pop rdx
pop r8
call sub.USER32.dll_SetWindowLongPtrW
push 0xfffffffffffffff0
mov rbp, qword [rsp + 0x68]
movsxd rax, dword [rbp + 0x34]
mov rax, rax
push rax
pop rcx
pop rdx
call sub.USER32.dll_GetWindowLongPtrW
mov r15, rax
or r15, 0x20000000
and r15, 0xffffffffbfffffff
mov rax, r15
push rax
push 0xfffffffffffffff0
mov rbp, qword [rsp + 0x70]
movsxd rax, dword [rbp + 0x34]
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
call sub.USER32.dll_SetWindowLongPtrW
push 0
mov rbp, qword [rsp + 0x68]
movsxd rax, dword [rbp + 0x34]
mov rax, rax
push rax
pop rcx
pop rdx
call sub.USER32.dll_SetParent
mov rbp, qword [rsp + 0x60]
movsxd rax, dword [rbp]
mov rax, rax
push rax
mov rbp, qword [rsp + 0x68]
movsxd rax, dword [rbp + 0x34]
mov rax, rax
push rax
pop rcx
pop rdx
call sub.USER32.dll_SetParent
mov qword [rsp + 0x30], 0
jmp 0x140009a34
push qword [0x1400dfed0]
pop rcx
call fcn.14003c490
mov r15, rax
dec r15
cmp r15, qword [rsp + 0x30]
jl 0x140009a9e
mov r15, qword [rsp + 0x30]
mov rbp, qword [0x1400dfed0]
shl r15, 3
push qword [r15 + rbp]
pop rcx
call fcn.14000a388
and rax, rax
je 0x140009a97
push qword [rsp + 0x30]
lea rax, [0x140009696]
mov rax, rax
push rax
pop rcx
pop rdx
call fcn.14000a424
mov qword [rsp + 0x38], rax
push 0x7d0
push qword [rsp + 0x40]
pop rcx
pop rdx
call fcn.14000a504
inc qword [rsp + 0x30]
jno 0x140009a34
xor rax, rax
add rsp, 0x48
pop r15
pop rbp
ret
Function at 0x140009e84
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 [0x1400dd0b4]
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 0x14000a424
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 0x14000a4ea
lea rcx, [0x1400e0b00]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400dff10]
jmp 0x14000a4ae
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000a4ab
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x1400dff10]
mov rdx, rsi
call fcn.14003c20c
jmp 0x14000a4ae
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000a47b
mov rdx, qword [reloc.WS2_32.dll_accept]
lea rcx, [0x1400dff10]
mov rdi, rdx
inc rdx
mov qword [reloc.WS2_32.dll_accept], rdx
lea edx, [rbx + 0x20]
call fcn.14003c254
lea rcx, [0x1400e0b00]
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 0x14000a6cc
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14000a743
movsxd rdx, ecx
lea rcx, [0x14000a628]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x1400dff18]
test rbx, rbx
je 0x14000a7b6
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14000a739
cmp byte [rbx + 0x20], 0
je 0x14000a739
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 0x14000a6ff
jmp 0x14000a7b6
mov rbx, qword [0x1400dff18]
test rbx, rbx
je 0x14000a7b6
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14000a7ae
cmp byte [rbx + 0x21], 0
je 0x14000a772
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x14000a79e
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, [0x1400dff18]
call fcn.14003c20c
mov rbx, rdi
test rdi, rdi
jne 0x14000a74f
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400284e0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1400dff40], 0
jne 0x140028505
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400dff40], 1
mov dword [0x1400dff44], eax
mov rcx, qword [0x1400dfdb0]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400dff44]
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 0x1400286c0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x1400dff40], 0
mov ebx, ecx
jne 0x1400286e4
call fcn.1400284e0
mov ecx, dword [0x1400dff44]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14002870c
call fcn.1400284e0
mov ecx, dword [0x1400dff44]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea rdx, [rdi + 8]
mov r8d, sendto
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 0x140028720
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 0x140028760
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret