joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140131c94
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140131b27
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140131b27
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140131b27
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140131b27
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140131b27
cmp dword [rcx + 0x84], 0xe
jbe 0x140131b27
cmp dword [rcx + 0xf8], 0
je 0x140131b27
mov ecx, ebx
call fcn.140131bc8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1401319b8
cmp dword [rbp + 0x20], 0
je 0x140131b74
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140131b7c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140131ac0
Function at 0x1401476fc
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14014771c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140138958
or eax, 0xffffffff
jmp 0x14014771e
xor eax, eax
add rsp, 0x28
ret

Function at 0x14014bf78
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14014bf98
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140138958
or eax, 0xffffffff
jmp 0x14014bf9a
xor eax, eax
add rsp, 0x28
ret
Function at 0x140154100
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x280
mov rax, qword [0x1401b7030]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
lea rdx, [rcx + 0x90]
lea rcx, [rsp + 0x38]
call fcn.140154240
nop
mov edx, dword [rbx + 0x98]
lea eax, [rdx + 1]
mov dword [rbx + 0x98], eax
test edx, edx
jg 0x1401541de
mov ecx, 0x202
lea rdx, [rsp + 0xd0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140154203
cmp byte [rbx + 0x9c], al
je 0x14015417b
lea rcx, [rsp + 0x38]
call fcn.140154330
mov eax, 1
jmp 0x1401541ea
mov byte [rbx + 0x78], 0
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rbx + 0x80], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x88], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x1401534b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0xa0], rax
mov byte [rbx + 0x9c], 1
lea rcx, [rsp + 0x38]
call fcn.140154330
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14011c340
add rsp, 0x280
pop rbx
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop
mov r9d, eax
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rsp + 0x50]
call fcn.1401542c0
lea rdx, [0x1401b2e08]
lea rcx, [rsp + 0x50]
call fcn.140121974
int3
lea rcx, [0x1401ba540]
jmp 0x140154100

Function at 0x140154230
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x280
mov rax, qword [0x1401b7030]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
lea rdx, [rcx + 0x90]
lea rcx, [rsp + 0x38]
call fcn.140154240
nop
mov edx, dword [rbx + 0x98]
lea eax, [rdx + 1]
mov dword [rbx + 0x98], eax
test edx, edx
jg 0x1401541de
mov ecx, 0x202
lea rdx, [rsp + 0xd0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140154203
cmp byte [rbx + 0x9c], al
je 0x14015417b
lea rcx, [rsp + 0x38]
call fcn.140154330
mov eax, 1
jmp 0x1401541ea
mov byte [rbx + 0x78], 0
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rbx + 0x80], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x88], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x1401534b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0xa0], rax
mov byte [rbx + 0x9c], 1
lea rcx, [rsp + 0x38]
call fcn.140154330
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14011c340
add rsp, 0x280
pop rbx
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop
mov r9d, eax
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rsp + 0x50]
call fcn.1401542c0
lea rdx, [0x1401b2e08]
lea rcx, [rsp + 0x50]
call fcn.140121974
int3
lea rcx, [0x1401ba540]
jmp 0x140154100
Function at 0x140157620
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r13, rcx
mov rdi, r8
mov rcx, r8
mov r12, rdx
call fcn.140155510
xor ebp, ebp
test eax, eax
je 0x140157692
mov rcx, rdi
call fcn.140155520
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd rsi, eax
test eax, eax
jle 0x140157692
mov ebx, ebp
nop dword [rax]
mov rax, qword [rdi + 0x20]
mov rcx, qword [rax]
mov ecx, dword [rcx + rbx*4]
call qword [sym.imp.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x20]
mov rdx, qword [rcx]
mov dword [rdx + rbx*4], eax
inc rbx
cmp rbx, rsi
jl 0x140157670
lea rbx, [rdi + 0x28]
mov r14d, 4
mov rsi, rbx
mov r15d, r14d
mov ecx, dword [rsi]
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsi], eax
lea rsi, [rsi + 4]
sub r15, 1
jne 0x1401576a2
mov rcx, rdi
call fcn.140155520
add eax, dword [reloc.WS2_32.dll_recv]
lea rdx, [rdi + 0x38]
mov rcx, qword [r13 + 8]
lea r9, [rsp + 0x80]
mov qword [rsp + 0x40], rbp
lea r8d, [r15 + 2]
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x80], eax
mov eax, dword [r13 + 4]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], ebp
call qword [sym.imp.WS2_32.dll_WSASendTo]
test eax, eax
mov esi, 0xffffffff
cmove esi, dword [rsp + 0x80]
nop
mov ecx, dword [rbx]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbx], eax
lea rbx, [rbx + 4]
sub r14, 1
jne 0x140157710
mov rcx, rdi
call fcn.140155510
test eax, eax
je 0x140157772
mov rcx, rdi
call fcn.140155520
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd rbx, eax
test eax, eax
jle 0x140157772
nop dword [rax + rax]
mov rcx, qword [rdi + 0x20]
mov rdx, qword [rcx]
mov ecx, dword [rdx + rbp*4]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rdi + 0x20]
mov rdx, qword [rcx]
mov dword [rdx + rbp*4], eax
inc rbp
cmp rbp, rbx
jl 0x140157750
lea r11, [rsp + 0x50]
mov eax, esi
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x2fc4cebb0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4cfc90
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4cf5b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f2108]
test eax, eax
je 0x2fc4cf64a
lea rax, [0x2fc4f20e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f2110]
mov qword [rbp - 8], rax
jmp 0x2fc4cf62e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4cf622
cmp qword [rbp - 0x10], 0
je 0x2fc4cf622
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4cf5e8
lea rax, [0x2fc4f20e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cf64b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cf750
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4cf778
mov eax, 0
jmp 0x2fc4cf7c6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4cf7a1
mov eax, 0
jmp 0x2fc4cf7c6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4cf7c1
mov eax, 0
jmp 0x2fc4cf7c6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cf7cc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4cf84a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cf841
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4cf841
mov rax, qword [rbp - 8]
jmp 0x2fc4cf85f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4cf814
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400319c1
Capabilities:
Identify system language via api

Disassembly:
push r15
xor rax, rax
push rax
sub rsp, 0x28
call fcn.1400efdb0
mov rcx, qword [rsp + 0x60]
call fcn.14006af80
push rcx
sub rsp, 0x28
call fcn.1400efa80
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.1400efa80
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
sub rsp, 0x20
call sub.KERNEL32.dll_GetUserDefaultLangID
add rsp, 0x28
mov rax, rax
push rax
pop rcx
pop rdx
sub rsp, 0x20
call fcn.1400ed670
add rsp, 0x28
lea rcx, [rsp + 0x30]
pop rdx
call fcn.1400efb40
push qword [rsp + 0x28]
pop rcx
call fcn.1400ed0d0
mov r15, rax
cmp r15, 3
jne 0x140031a84
push rcx
sub rsp, 0x28
call fcn.1400efa80
add rsp, 0x28
pop rcx
push rax
movabs rcx, 0x1401dc51c
sub rsp, 0x28
call fcn.1400efad0
add rsp, 0x28
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.1400efad0
add rsp, 0x28
lea rcx, [rsp + 0x30]
pop rdx
call fcn.1400efb40
mov rcx, qword [rsp + 0x28]
push rcx
sub rsp, 0x28
call fcn.1400efa80
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.1400efad0
add rsp, 0x28
pop rax
push rax
call fcn.1400efc80
pop rdx
add rax, rdx
jmp 0x140031abd
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.1400efe20
add rsp, 0x28
pop rax
add rsp, 0x30
pop r15
ret
Function at 0x14004da37
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
push r15
mov rax, 7
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x14004da4a
sub rsp, 0x28
call fcn.1400efdb0
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.1400ef920
add rsp, 0x10
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x30]
sub rsp, 0x10
call fcn.1400ef920
add rsp, 0x10
push qword [rsp + 0x28]
pop rcx
call fcn.14004e496
push qword [rsp + 0x30]
movabs rcx, 0x1401dc3be
pop rdx
call fcn.1400efc20
or rax, rax
je 0x14004db7b
cmp dword [0x14088cb84], 0
je 0x14004db59
movabs rax, str.Advapi32.dll
push rax
push 0xffffffffffffffff
pop rcx
pop rdx
call fcn.1400b25d0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14004db57
movabs rax, str.RegDeleteKeyExA
push rax
push qword [rsp + 0x40]
pop rcx
pop rdx
call fcn.1400b2658
mov qword [rsp + 0x40], rax
sub rsp, 8
push 0
movsxd r15, dword [0x14088cb8c]
or r15, 0xf003f
mov rax, r15
push rax
mov rax, qword [0x14088ca78]
mov rax, rax
push rax
push qword [0x14088caa0]
push qword [rsp + 0x68]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.1400b3c84
add rsp, 0x30
mov qword [rsp + 0x48], rax
push qword [rsp + 0x38]
pop rcx
call fcn.1400b24bc
jmp 0x14004db76
mov rax, qword [0x14088ca78]
mov rax, rax
push rax
push qword [0x14088caa0]
pop rcx
pop rdx
call sub.ADVAPI32.dll_RegDeleteKeyW
mov qword [rsp + 0x48], rax
jmp 0x14004dc40
lea rax, [rsp + 0x58]
mov rax, rax
push rax
push qword [0x14088caa0]
push qword [rsp + 0x40]
pop rcx
pop rdx
pop r8
call sub.ADVAPI32.dll_RegConnectRegistryW
movsxd rax, eax
mov qword [rsp + 0x50], rax
cmp dword [0x14088cb84], 0
je 0x14004dc25
movabs rax, str.Advapi32.dll
push rax
push 0xffffffffffffffff
pop rcx
pop rdx
call fcn.1400b25d0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14004dc23
push 0
movsxd r15, dword [0x14088cb8c]
or r15, 0xf003f
mov rax, r15
push rax
mov rax, qword [0x14088ca78]
mov rax, rax
push rax
push qword [rsp + 0x70]
movabs rax, str.RegDeleteKeyExA
push rax
push qword [rsp + 0x60]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.1400b3188
add rsp, 0x30
mov qword [rsp + 0x48], rax
push qword [rsp + 0x38]
pop rcx
call fcn.1400b24bc
jmp 0x14004dc40
mov rax, qword [0x14088ca78]
mov rax, rax
push rax
push qword [rsp + 0x60]
pop rcx
pop rdx
call sub.ADVAPI32.dll_RegDeleteKeyW
mov qword [rsp + 0x48], rax
mov r15, qword [rsp + 0x48]
and r15, r15
jne 0x14004dc53
mov rax, 1
jmp 0x14004dc56
xor rax, rax
push rax
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.1400efe20
add rsp, 0x28
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.1400efe20
add rsp, 0x28
pop rax
add rsp, 0x60
pop r15
ret

Function at 0x14006af80
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 [0x140886430]
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 0x14006be0c
Capabilities:
Get file size
Read file on windows

Disassembly:
or r8d, 0xffffffff
jmp 0x14006be18
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r13d, r13d
mov ebp, r8d
mov rax, rdx
mov r14, rcx
mov ebx, r13d
test rdx, rdx
je 0x14006c01d
cmp word [rdx], r13w
je 0x14006c01d
mov qword [r11 - 0x38], r13
lea r15d, [r13 + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rax
mov r8d, r15d
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x14006c018
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rsi, eax
test eax, eax
jle 0x14006c00f
mov ecx, ebp
call fcn.14006c5c4
mov rdi, rax
test rax, rax
je 0x14006c00f
mov rcx, r14
lea edx, [r13 + 2]
cmp ebp, 0xffffffff
je 0x14006bec6
mov edx, ebp
call fcn.14006cbe8
mov rbx, rax
test rax, rax
je 0x14006c007
mov qword [rax + 0x40], rdi
mov qword [rbx + 0x60], r13
mov dword [rbx + 0x68], r13d
mov dword [rbx + 0x20], r13d
cmp r14, 0xffffffffffffffff
lea r8, [rsi + 0x10]
cmove r14, rax
xor edx, edx
mov qword [rax + 0x48], r14
mov rax, qword [rax + 8]
mov qword [rbx + 0x58], rax
mov rcx, qword [0x14088c668]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 0x38], rax
test rax, rax
je 0x14006bf30
lea ecx, [rsi + 0x10]
mov dword [rax + 8], ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], r13
mov rax, qword [rbx + 0x38]
add rax, 0x10
mov qword [rbx + 0x70], rax
cmp ebp, 0xffffffff
je 0x14006bf39
mov dword [rbx + 0x50], r15d
mov rdx, rbx
mov rcx, rdi
call fcn.1400f8520
mov ebp, r13d
mov r14d, 0x4000
test esi, esi
jle 0x14006c003
lea eax, [r14 + rbp]
cmp eax, esi
jle 0x14006bf63
mov r14d, esi
sub r14d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.1400f7870
mov r15, rax
test rax, rax
je 0x14006bff1
lea r9, [rsp + 0x78]
mov r8d, r14d
mov rdx, rax
mov rcx, r12
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x78]
cmp edx, r14d
jne 0x14006bfdd
add ebp, edx
cmp dword [rbx + 0x20], r13d
jne 0x14006bfaf
mov rcx, r15
call fcn.14006c6a0
mov dword [rbx + 0x20], eax
mov edx, dword [rsp + 0x78]
mov rcx, rdi
cmp ebp, esi
jl 0x14006bfbe
mov r8d, 1
jmp 0x14006bfc1
xor r8d, r8d
call fcn.1400f7d60
test eax, eax
je 0x14006bfd0
cmp ebp, esi
jl 0x14006bf55
jmp 0x14006c003
mov rcx, rdi
call fcn.1400f7ba0
mov dword [rbx + 0x24], eax
jmp 0x14006bff8
lea rax, [0x14019b898]
mov dword [rbx + 0x24], 0x100
mov qword [rbx + 0x30], rax
jmp 0x14006c003
mov dword [rbx + 0x24], 1
mov rdx, rdi
mov rcx, rbx
call fcn.14006c79c
mov qword [rbx + 0x40], r13
mov rcx, rdi
call fcn.1400f7ef0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
jmp 0x14006c01f
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14006be18
Capabilities:
Get file size
Read file on windows

Disassembly:
or r8d, 0xffffffff
jmp 0x14006be18
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r13d, r13d
mov ebp, r8d
mov rax, rdx
mov r14, rcx
mov ebx, r13d
test rdx, rdx
je 0x14006c01d
cmp word [rdx], r13w
je 0x14006c01d
mov qword [r11 - 0x38], r13
lea r15d, [r13 + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rax
mov r8d, r15d
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x14006c018
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rsi, eax
test eax, eax
jle 0x14006c00f
mov ecx, ebp
call fcn.14006c5c4
mov rdi, rax
test rax, rax
je 0x14006c00f
mov rcx, r14
lea edx, [r13 + 2]
cmp ebp, 0xffffffff
je 0x14006bec6
mov edx, ebp
call fcn.14006cbe8
mov rbx, rax
test rax, rax
je 0x14006c007
mov qword [rax + 0x40], rdi
mov qword [rbx + 0x60], r13
mov dword [rbx + 0x68], r13d
mov dword [rbx + 0x20], r13d
cmp r14, 0xffffffffffffffff
lea r8, [rsi + 0x10]
cmove r14, rax
xor edx, edx
mov qword [rax + 0x48], r14
mov rax, qword [rax + 8]
mov qword [rbx + 0x58], rax
mov rcx, qword [0x14088c668]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 0x38], rax
test rax, rax
je 0x14006bf30
lea ecx, [rsi + 0x10]
mov dword [rax + 8], ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], r13
mov rax, qword [rbx + 0x38]
add rax, 0x10
mov qword [rbx + 0x70], rax
cmp ebp, 0xffffffff
je 0x14006bf39
mov dword [rbx + 0x50], r15d
mov rdx, rbx
mov rcx, rdi
call fcn.1400f8520
mov ebp, r13d
mov r14d, 0x4000
test esi, esi
jle 0x14006c003
lea eax, [r14 + rbp]
cmp eax, esi
jle 0x14006bf63
mov r14d, esi
sub r14d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.1400f7870
mov r15, rax
test rax, rax
je 0x14006bff1
lea r9, [rsp + 0x78]
mov r8d, r14d
mov rdx, rax
mov rcx, r12
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x78]
cmp edx, r14d
jne 0x14006bfdd
add ebp, edx
cmp dword [rbx + 0x20], r13d
jne 0x14006bfaf
mov rcx, r15
call fcn.14006c6a0
mov dword [rbx + 0x20], eax
mov edx, dword [rsp + 0x78]
mov rcx, rdi
cmp ebp, esi
jl 0x14006bfbe
mov r8d, 1
jmp 0x14006bfc1
xor r8d, r8d
call fcn.1400f7d60
test eax, eax
je 0x14006bfd0
cmp ebp, esi
jl 0x14006bf55
jmp 0x14006c003
mov rcx, rdi
call fcn.1400f7ba0
mov dword [rbx + 0x24], eax
jmp 0x14006bff8
lea rax, [0x14019b898]
mov dword [rbx + 0x24], 0x100
mov qword [rbx + 0x30], rax
jmp 0x14006c003
mov dword [rbx + 0x24], 1
mov rdx, rdi
mov rcx, rbx
call fcn.14006c79c
mov qword [rbx + 0x40], r13
mov rcx, rdi
call fcn.1400f7ef0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
jmp 0x14006c01f
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14006cea8
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 0x14006cf6e
lea rcx, [0x14090aaa0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14088d1c0]
jmp 0x14006cf32
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14006cf2f
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x14088d1c0]
mov rdx, rsi
call fcn.1400ef7b4
jmp 0x14006cf32
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14006ceff
mov rdx, qword [0x140886180]
lea rcx, [0x14088d1c0]
mov rdi, rdx
inc rdx
mov qword [0x140886180], rdx
lea edx, [rbx + 0x20]
call fcn.1400ef7fc
lea rcx, [0x14090aaa0]
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 0x14006d2f4
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14006d36b
movsxd rdx, ecx
lea rcx, [0x14006d250]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x14088d1d0]
test rbx, rbx
je 0x14006d3de
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14006d361
cmp byte [rbx + 0x20], 0
je 0x14006d361
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 0x14006d327
jmp 0x14006d3de
mov rbx, qword [0x14088d1d0]
test rbx, rbx
je 0x14006d3de
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14006d3d6
cmp byte [rbx + 0x21], 0
je 0x14006d39a
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x14006d3c6
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, [0x14088d1d0]
call fcn.1400ef7b4
mov rbx, rdi
test rdi, rdi
jne 0x14006d377
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14006daa0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x14090ab00]
call fcn.1400ef398
test rax, rax
je 0x14006dadd
cmp dword [rax + 0x28], 0
je 0x14006dadd
mov rcx, qword [rax + 0x18]
mov r9d, ebx
mov r8d, dword [rcx + 4]
mov edx, dword [rcx]
mov rcx, qword [rax + 0x10]
add rsp, 0x20
pop rbx
jmp fcn.14006d6c0
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp fcn.1400f04e0