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

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x14005cd38
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14005cd5e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14005cd60
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14005cdb9
test ecx, ecx
jle 0x14005cd99
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14005cdb9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14005cdb9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x14005cde0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14005ce02
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14005ce18
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14005ce34
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14005ce36
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14005ce72
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14005cf0e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14005cead
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14005ceee
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14005cf0e
cmp rbx, rax
ja 0x14005cec0
test rbx, rbx
je 0x14005cf0e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x14005d370
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140095040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14005d39d
xor eax, eax
jmp 0x14005d509
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14005d3d7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14005d3d7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14005d509
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14005d4fc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14005d41a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14005d445
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14005d501
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14005d4b4
sub eax, 1
je 0x14005d4b4
cmp eax, 2
jne 0x14005d4fc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14005d501
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14005d4e2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14005d4fc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14005d501
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140072530
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14005e7d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140095040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14005e8a3
cmp byte [rcx + 0x71], 0
je 0x14005e8a3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14005e89f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14005e864
sub eax, 1
je 0x14005e868
cmp eax, 2
jne 0x14005e89f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140072530
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14005e896
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14005e89f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14005e84c
xor al, al
jmp 0x14005e84c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140072530
add rsp, 0x60
pop rbx
ret

Function at 0x140073170
Capabilities:
Parse pe header

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

Function at 0x1400733f0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14007342a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14007342f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140073478
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140076970]
cmp byte [rcx + rax], 0
je 0x140073478
dec r8
sub rdx, 1
jne 0x14007345e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140002140
Capabilities:
Enumerate processes

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x270
mov qword [rsp + 0x2a0], rcx
call fcn.14008e3b0
mov rdx, qword [rsp + 0x2a0]
lea rcx, [rsp + 0x2a0]
call fcn.14008e660
lea rdi, [rsp + 0x30]
mov r8d, 0x238
xor edx, edx
mov rcx, rdi
call sub.msvcrt.dll_memset
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
test rax, rax
jne 0x1400021d8
xor ebx, ebx
mov rcx, qword [rsp + 0x2a0]
call fcn.14008e6d0
mov rcx, qword [rsp + 0x28]
call fcn.14008e6d0
mov rax, rbx
add rsp, 0x270
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, rdi
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1400022b4
lea r12, [rsp + 0x5c]
lea rbp, [rsp + 0x28]
nop dword [rax]
call fcn.14008e420
call fcn.14008e420
call fcn.14008e420
call fcn.14008e420
call fcn.14008e480
mov r8d, eax
mov edx, 0x104
mov rcx, r12
call fcn.14008d940
call fcn.14008e5d0
mov rbx, rax
call fcn.14008e480
mov edx, eax
mov rcx, rbx
call fcn.14008adc0
call fcn.14008e480
mov edx, eax
mov rcx, rbp
call fcn.14008e790
call fcn.14008e420
call fcn.14008e420
call fcn.14008e480
mov edx, eax
mov rcx, qword [rsp + 0x2a0]
call fcn.14008adc0
call fcn.14008e700
call fcn.14008e420
call fcn.14008e420
call fcn.14008e480
mov edx, eax
mov rcx, qword [rsp + 0x28]
call fcn.14007e248
call fcn.14008e560
mov rbx, rax
call fcn.14008e560
mov rdx, rax
mov rcx, rbx
call fcn.14008e730
test eax, eax
jne 0x1400022c8
mov rdx, rdi
mov rcx, rsi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400021f8
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
jmp 0x1400021a9
movsxd rbx, dword [rsp + 0x38]
jmp 0x1400021ab
Function at 0x140005b50
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [0x140166ea0]
mov qword [rsp + 0x28], rax
call fcn.14008e3b0
lea rbx, [rsp + 0x28]
mov rdx, qword [rsp + 0x28]
mov rcx, rbx
call fcn.14008e660
mov qword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x28]
call fcn.14008b910
mov rcx, qword [rsp + 0x28]
test rax, rax
jle 0x140005bb8
add rax, 0x7ff5
mov edx, 0x7ff5
nop dword [rax]
xor byte [rcx + rdx - 0x7ff5], dl
add rdx, 1
cmp rax, rdx
jne 0x140005ba8
call fcn.14008e420
mov rcx, qword [0x1401925b0]
call fcn.14008e870
mov rcx, qword [rsp + 0x28]
call fcn.14008e870
call fcn.14008e480
mov edx, eax
mov rcx, rbx
call fcn.14008e790
mov r8d, 2
mov rdx, qword [rsp + 0x28]
mov rcx, 0xffffffffffffffff
call fcn.14007f640
movsxd rbx, eax
mov rcx, rbx
call fcn.14007f860
test rax, rax
jne 0x140005c28
mov rcx, qword [rsp + 0x20]
call fcn.14008e6d0
mov rcx, qword [rsp + 0x28]
call fcn.14008e6d0
nop
add rsp, 0x38
pop rbx
pop rsi
ret
mov rdx, qword [0x140192250]
lea rcx, [0x14015f628]
call fcn.14008e730
test eax, eax
jne 0x140005d90
call fcn.14008e420
call fcn.14008e420
mov rsi, qword [0x1401921a0]
call fcn.14008e480
mov edx, eax
mov rcx, rsi
call fcn.14008b4a0
call fcn.14008e480
lea rsi, [rsp + 0x20]
mov edx, eax
mov rcx, rsi
call fcn.14008e790
call fcn.14008e420
call fcn.14008e420
call fcn.14008e480
mov r8d, eax
lea rdx, [0x1401588ea]
mov rcx, qword [rsp + 0x20]
call fcn.14008b940
call fcn.14008e480
mov edx, eax
mov rcx, rsi
call fcn.14008e790
call fcn.14008e420
call fcn.14008e420
call fcn.14008e480
mov r8d, eax
lea rdx, reloc.WS2_32.dll_listen
mov rcx, qword [rsp + 0x20]
call fcn.14008b940
call fcn.14008e480
mov edx, eax
mov rcx, rsi
call fcn.14008e790
call fcn.14008e420
call fcn.14008e420
call fcn.14008e480
mov r8d, eax
lea rdx, [0x140167d62]
mov rcx, qword [rsp + 0x20]
call fcn.14008b940
call fcn.14008e480
mov edx, eax
mov rcx, rsi
call fcn.14008e790
mov rcx, qword [rsp + 0x20]
call fcn.14008b910
mov rdx, qword [rsp + 0x20]
test rax, rax
jle 0x140005d40
lea rcx, [rax + 0x4001]
mov eax, 0x4001
nop dword [rax]
xor byte [rdx + rax - 0x4001], al
add rax, 1
cmp rax, rcx
jne 0x140005d30
call fcn.14008e420
call fcn.14008e420
call fcn.14008e420
call fcn.14008e480
mov edx, eax
mov rcx, qword [rsp + 0x20]
call fcn.14008b4a0
call fcn.14008e700
call fcn.14008e5d0
mov rdx, rax
mov r8d, 2
mov rcx, rbx
call fcn.14007f9c0
call fcn.14008e4f0
mov rcx, rbx
call fcn.14007fa10
jmp 0x140005c09
call fcn.14008e420
call fcn.14008e420
mov rsi, qword [0x140192bc4]
jmp 0x140005c54

Function at 0x140007d00
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.14008e3b0
mov r8, rbx
xor edx, edx
mov ecx, 0x1f0fff
call sub.KERNEL32.dll_OpenProcess
mov rbx, rax
mov edx, 0x64
mov rcx, rax
call sub.KERNEL32.dll_WaitForSingleObject
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x140045df1
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140007d40
Capabilities:
Enumerate processes

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x278
mov edi, ecx
lea rax, str.CefSharp.BrowserSubprocess.exe
mov qword [rsp + 0x28], rax
call fcn.14008e3b0
lea rcx, [rsp + 0x28]
mov rdx, qword [rsp + 0x28]
call fcn.14008e660
lea rsi, [rsp + 0x30]
mov r8d, 0x238
xor edx, edx
mov rcx, rsi
call sub.msvcrt.dll_memset
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x30], 0x238
jmp 0x140007ef5
call fcn.14008e420
call fcn.14008e420
call fcn.14008e480
mov edx, eax
mov rcx, qword [rsp + 0x28]
call fcn.14008adc0
call fcn.14008e700
call fcn.14008e560
mov rdx, rax
mov rcx, qword [rsp + 0x20]
call fcn.14008e730
test eax, eax
jne 0x140007e92
nop word [rax + rax]
mov rdx, rsi
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x140007ee8
mov eax, dword [rsp + 0x50]
cmp eax, edi
jne 0x140007de0
mov r15d, dword [rsp + 0x38]
call fcn.14008e420
call fcn.14008e420
call fcn.14008e480
mov r8d, eax
mov edx, 0x104
mov rcx, r12
call fcn.14008d940
call fcn.14008e480
mov edx, eax
mov rcx, rbp
call fcn.14008e790
call fcn.14008e420
call fcn.14008e420
call fcn.14008e420
call fcn.14008e420
call fcn.14008e480
mov edx, eax
mov rcx, qword [rsp + 0x20]
call fcn.14007e248
call fcn.14008e5d0
mov r13, rax
call fcn.14008e480
mov edx, eax
mov rcx, r13
call fcn.14008adc0
call fcn.14008e480
mov edx, eax
mov rcx, rbp
call fcn.14008e790
mov rdx, qword [rsp + 0x28]
lea rcx, [0x140192f00]
call fcn.14008e730
test eax, eax
je 0x140007da0
movsxd rcx, r15d
call fcn.140007d00
mov ecx, 0x1f4
call fcn.14007bc08
mov r14d, 1
jmp 0x140007de0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
mov rcx, qword [rsp + 0x28]
call fcn.14008e6d0
mov rcx, qword [rsp + 0x20]
call fcn.14008e6d0
nop
add rsp, 0x278
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
test r14b, r14b
je 0x140007eb8
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
test rax, rax
je 0x140007eb8
mov rdx, rsi
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140007eb0
xor r14d, r14d
lea r12, [rsp + 0x5c]
lea rbp, [rsp + 0x20]
jmp 0x140007df3
Function at 0x14000d1c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rsi
push rbx
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
call fcn.14008e3b0
mov qword [rsp + 0x28], 0
call fcn.14008e420
call fcn.14008e420
call fcn.14008e480
mov edx, eax
mov ecx, 0x800
call fcn.14008aa10
call fcn.14008e700
call fcn.14008e480
lea rcx, [rsp + 0x28]
mov edx, eax
call fcn.14008e790
call sub.KERNEL32.dll_GetTickCount
mov rbx, rax
movss xmm6, dword [0x14011e150]
lea rsi, [0x140192f00]
nop dword [rax]
call fcn.14008e3b0
mov r8, rsi
mov edx, 0xffffffff
movaps xmm0, xmm6
call fcn.14000b890
call sub.KERNEL32.dll_GetTickCount
sub rax, rbx
cmp rax, 0xfa
jle 0x14000d228
mov rcx, qword [rsp + 0x28]
call fcn.14008e6d0
nop
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rsi
ret
Function at 0x1400163f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
movsxd rsi, ecx
movsxd rdi, edx
call fcn.14008e3b0
mov qword [rsp + 0x28], 0
call fcn.14008e420
call fcn.14008e420
call fcn.14008e480
mov edx, eax
mov ecx, 0x800
call fcn.14008aa10
call fcn.14008e700
call fcn.14008e480
lea rcx, [rsp + 0x28]
mov edx, eax
call fcn.14008e790
call sub.KERNEL32.dll_GetTickCount
mov r12, rax
movss xmm6, dword [0x14011e150]
lea rbp, [0x140192f00]
nop dword [rax + rax]
call fcn.14008e3b0
mov r8, rbp
mov edx, 0xffffffff
movaps xmm0, xmm6
call fcn.14000b890
mov r8, qword [rsp + 0x28]
mov edx, 6
mov rcx, rsi
call qword [0x140192d00]
mov rbx, rax
call fcn.14008e420
call fcn.14008e420
call fcn.14008e420
call fcn.14008e480
mov edx, eax
mov rcx, qword [rsp + 0x28]
call fcn.14008b4a0
call fcn.14008e5d0
mov rcx, rax
call fcn.14008a510
call fcn.14008e4f0
test ebx, ebx
je 0x1400164ce
call sub.KERNEL32.dll_GetTickCount
sub rax, r12
cmp rax, rdi
jle 0x140016460
mov rcx, qword [rsp + 0x28]
call fcn.14008e6d0
nop
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140045a40
Capabilities:
Parse pe header
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
cmp word [0x140000000], 0x5a4d
je 0x140045a7d
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
lea rdi, [0x140000000]
jmp 0x140045b0b
movsxd rax, dword [0x14000003c]
lea rdi, [0x140000000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x140045aa1
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x140045b0b
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x140045ae8
cmp ecx, 0x20b
je 0x140045ac0
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x140045b0b
cmp dword [rax + 0x84], 0xe
ja 0x140045ad4
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x140045b0b
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
jmp 0x140045b0b
cmp dword [rax + 0x74], 0xe
ja 0x140045af9
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x140045b0b
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
mov ecx, 2
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x140195ee0], 0xffffffffffffffff
mov qword [0x140195f00], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x140192f70]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x140192f74]
mov dword [rcx], eax
call fcn.140045d30
cmp dword [0x140195f20], 0
jne 0x140045b65
lea rcx, [0x140045d40]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x1401470f8]
lea rcx, [0x1401470f0]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x140192f78]
mov dword [rsp + 0xd8], r11d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x140192f7c]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x1401470e8]
lea rcx, [0x1401470e0]
call sub.msvcrt.dll__initterm
mov r11, qword [sym.imp.msvcrt.dll__acmdln]
mov r8, qword [r11]
mov qword [rsp + 0x30], r8
cmp byte [r8], 0x22
jne 0x140045c06
nop
nop
inc r8
mov qword [rsp + 0x30], r8
movzx eax, byte [r8]
test al, al
je 0x140045bf6
cmp al, 0x22
je 0x140045bf6
jmp 0x140045be0
cmp byte [r8], 0x22
jne 0x140045c16
inc r8
mov qword [rsp + 0x30], r8
jmp 0x140045c16
cmp byte [r8], 0x20
jbe 0x140045c16
inc r8
mov qword [rsp + 0x30], r8
jmp 0x140045c06
movzx eax, byte [r8]
test al, al
je 0x140045c2c
cmp al, 0x20
ja 0x140045c2c
inc r8
mov qword [rsp + 0x30], r8
jmp 0x140045c16
test byte [rsp + 0x8c], 1
je 0x140045c41
movzx r9d, word [rsp + 0x90]
jmp 0x140045c47
mov r9d, 0xa
xor edx, edx
mov rcx, rdi
call fcn.140040b60
Function at 0x140046d0c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140046c9c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140196000]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140192f90]
jmp 0x140046d48
cmp qword [rbx + 0x18], rdi
je 0x140046d4f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140046d3f
jmp 0x140046d69
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140192f90]
call fcn.14008d8d4
lea rcx, [0x140196000]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140046d84
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 0x140046e4a
lea rcx, [0x140196000]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140192f90]
jmp 0x140046e0e
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140046e0b
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x140192f90]
mov rdx, rsi
call fcn.14008d8d4
jmp 0x140046e0e
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140046ddb
mov rdx, qword [reloc.WS2_32.dll_accept]
lea rcx, [0x140192f90]
mov rdi, rdx
inc rdx
mov qword [reloc.WS2_32.dll_accept], rdx
lea edx, [rbx + 0x20]
call fcn.14008d890
lea rcx, [0x140196000]
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 0x14004a52c
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14004a5a3
movsxd rdx, ecx
lea rcx, [0x14004a488]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x140192fc8]
test rbx, rbx
je 0x14004a616
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14004a599
cmp byte [rbx + 0x20], 0
je 0x14004a599
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 0x14004a55f
jmp 0x14004a616
mov rbx, qword [0x140192fc8]
test rbx, rbx
je 0x14004a616
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14004a60e
cmp byte [rbx + 0x21], 0
je 0x14004a5d2
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x14004a5fe
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, [0x140192fc8]
call fcn.14008d8d4
mov rbx, rdi
test rdi, rdi
jne 0x14004a5af
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14004b250
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x140196080]
call fcn.14008d474
test rax, rax
je 0x14004b28d
cmp dword [rax + 0x28], 0
je 0x14004b28d
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.14004ae70
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp fcn.14008ec20