joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003be0c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea r8, str.DLL_binary_modules
mov edx, 0xfff0b9d8
mov rdi, rcx
call sym.wluart_static.exe_lua_getfield
test eax, eax
je 0x14003be8e
mov rcx, rdi
call sym.wluart_static.exe_lua_pushnil
jmp 0x14003be7d
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 - 2]
call sym.wluart_static.exe_lua_tolwstring
or edx, 0xffffffff
mov rcx, rdi
mov rbx, rax
call sym.wluart_static.exe_lua_touserdata
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, 0xfffffffe
mov rcx, rdi
call sym.wluart_static.exe_lua_settop
mov edx, 0xfffffffe
mov rcx, rdi
call sym.wluart_static.exe_lua_next
test eax, eax
jne 0x14003be38
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x14003be9c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edx, 0x64
mov rdi, rcx
xor ecx, ecx
lea r8d, [rdx - 0x5a]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rbx
xor ecx, ecx
mov qword [0x14006d9f0], rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [0x14006d9f0]
mov edx, eax
test rcx, rcx
je 0x14003bf68
cmp rdx, 2
jbe 0x14003bf68
call fcn.14003c2c8
mov qword [0x14006d9a8], rax
test rax, rax
je 0x14003bf68
lea rdx, str.package
mov rcx, rdi
call sym.wluart_static.exe_lua_getglobal
lea r8, str.searchers
or edx, 0xffffffff
mov rcx, rdi
call sym.wluart_static.exe_lua_getfield
xor r8d, r8d
lea rdx, [0x14003c064]
mov rcx, rdi
call sym.wluart_static.exe_lua_pushcclosure
mov ebx, 0xfffffffe
mov rcx, rdi
mov edx, ebx
call sym.wluart_static.exe_luaL_len
mov edx, ebx
mov rcx, rdi
lea r8, [rax + 1]
call sym.wluart_static.exe_lua_rawseti
lea edx, [rbx - 1]
mov rcx, rdi
call sym.wluart_static.exe_lua_settop
lea eax, [rbx + 3]
jmp 0x14003bf6a
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14003c2c8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov ebp, 1
mov edx, 0x4e078
mov ecx, ebp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
lea r9, [rsp + 0x40]
mov edx, ebp
lea r8d, [rbp + 3]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14003c31f
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x50]
mov edx, ebp
mov byte [rdi], 0x50
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r9d, 0x806
mov dword [rbx + 0x70], 6
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call fcn.14002cf70
test eax, eax
jne 0x14003c349
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ebx, ebx
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003e2a8
Capabilities:
Encrypt data via sspi
Send data
Send data on socket

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x98
mov rax, qword [0x14006d678]
xor rax, rsp
mov qword [rbp + 7], rax
mov rsi, qword [rdx + 0x80]
mov r13d, r9d
mov qword [rbp - 0x51], rdx
xor edi, edi
xor edx, edx
mov qword [rbp - 0x59], r8
call qword [sym.wluart_static.exe_lua_pushboolean]
xor r15d, r15d
test r13d, r13d
je 0x14003e402
mov edx, dword [rsi + 0x20]
mov r14d, r13d
sub r14d, r15d
mov ecx, 1
cmp dword [rsi + 0x28], r14d
cmovb r14d, dword [rsi + 0x28]
add edx, dword [rsi + 0x24]
add edx, r14d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov r12, rax
test rax, rax
je 0x14003e3fa
mov ecx, dword [rsi + 0x20]
movsxd rbx, r14d
add rcx, rax
mov edx, r15d
mov r8, rbx
add rdx, qword [rbp - 0x59]
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [rsi + 0x20]
lea r8, [rbp - 0x49]
and dword [rbp - 5], 0
xor r9d, r9d
and dword [rbp - 0x49], 0
xor edx, edx
mov dword [rbp - 0x39], ecx
lea rax, [rcx + r12]
mov dword [rbp - 0x35], 7
mov qword [rbp - 0x21], rax
mov eax, dword [rsi + 0x24]
mov dword [rbp - 0x19], eax
lea rax, [rcx + rbx]
mov rbx, qword [rbp - 0x51]
add rax, r12
mov qword [rbp - 0x11], rax
lea rax, [rbp - 0x39]
mov qword [rbp - 0x31], r12
mov dword [rbp - 0x25], 1
mov rcx, qword [rbx + 0x80]
mov dword [rbp - 0x29], r14d
mov dword [rbp - 0x15], 6
mov dword [rbp - 0x45], 4
mov qword [rbp - 0x41], rax
mov rcx, qword [rcx + 0x18]
call sub.Secur32.dll_EncryptMessage
test eax, eax
js 0x14003e3ed
mov r8d, dword [rbp - 0x19]
xor r9d, r9d
add r8d, dword [rbp - 0x29]
mov rdx, r12
add r8d, dword [rbp - 0x39]
mov rcx, qword [rbx + 8]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x14003e3f5
mov rcx, r12
add edi, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add r15d, dword [rsi + 0x28]
cmp r15d, r13d
jb 0x14003e2f7
jmp 0x14003e402
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
or edi, 0xffffffff
jmp 0x14003e402
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, edi
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.140056240
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14003e904
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0xe0
mov rax, qword [0x14006d678]
xor rax, rsp
mov qword [rsp + 0xd0], rax
and qword [rsp + 0x28], 0
mov rdi, rcx
movzx esi, r8w
lea rcx, [rsp + 0x30]
mov rax, rdx
mov qword [rsp + 0x20], rcx
mov rcx, rax
xor r9d, r9d
xor r8d, r8d
movzx edx, si
call sub.DNSAPI.dll_DnsQuery_A
mov ebx, eax
mov ebp, 1
test eax, eax
jne 0x14003e9d8
cmp si, bp
jne 0x14003e973
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 0x20]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
jmp 0x14003e9c1
cmp si, 0x1c
jne 0x14003e9b8
mov ebx, 0x80
lea rcx, [rsp + 0x50]
mov r8d, ebx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x30]
lea r8, [rsp + 0x50]
mov r9d, ebx
lea rdx, [rsp + 0x38]
lea ecx, [rbx - 0x69]
movups xmm0, xmmword [rax + 0x20]
movdqu xmmword [rsp + 0x38], xmm0
call sub.WS2_32.dll_inet_ntop
lea rdx, [rsp + 0x50]
jmp 0x14003e9c1
mov rdx, qword [rsp + 0x30]
mov rdx, qword [rdx + 0x20]
mov rcx, rdi
call qword [sym.wluart_static.exe_lua_pushstring]
mov rcx, qword [rsp + 0x30]
mov edx, ebp
call sub.DNSAPI.dll_DnsFree
jmp 0x14003ea0e
cmp ebx, 0x251d
je 0x14003ea05
cmp ebx, 0x25e5
je 0x14003ea05
cmp ebx, 0x232b
je 0x14003ea05
xor edx, edx
mov rcx, rdi
call qword [sym.wluart_static.exe_lua_pushboolean]
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x14003ea0e
mov rcx, rdi
call qword [sym.wluart_static.exe_lua_pushnil]
mov eax, ebp
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140056240
mov rbx, qword [rsp + 0x118]
add rsp, 0xe0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140041114
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14006d678]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor esi, esi
lea rdx, str.Mozilla_5.0__Windows_NT_6.1__Win64__x64__rv:89.0__Gecko_20100101_Firefox_89.0
xorps xmm0, xmm0
mov rbx, rcx
movups xmmword [rcx + 0x30], xmm0
mov qword [rcx + 0x40], rsi
lea edi, [rsi + 0xf]
mov qword [rcx + 0x48], rdi
lea r8d, [rsi + 0x4d]
mov byte [rcx + 0x30], sil
add rcx, 0x50
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], rsi
call fcn.140040474
xorps xmm0, xmm0
lea ecx, [rsi + 0x60]
movups xmmword [rbx + 0x70], xmm0
mov qword [rbx + 0x80], rsi
mov qword [rbx + 0x88], rdi
mov byte [rbx + 0x70], sil
movups xmmword [rbx + 0x98], xmm0
mov qword [rbx + 0xa8], rsi
mov qword [rbx + 0xb0], rdi
mov byte [rbx + 0x98], sil
movups xmmword [rbx + 0xc8], xmm0
mov qword [rbx + 0xd8], rsi
mov qword [rbx + 0xe0], rdi
mov byte [rbx + 0xc8], sil
movups xmmword [rbx + 0xe8], xmm0
mov qword [rbx + 0xf8], rsi
mov qword [rbx + 0x100], rdi
mov byte [rbx + 0xe8], sil
movups xmmword [rbx + 0x108], xmm0
mov qword [rbx + 0x118], rsi
mov qword [rbx + 0x120], rdi
mov byte [rbx + 0x108], sil
movups xmmword [rbx + 0x128], xmm0
mov qword [rbx + 0x138], rsi
mov qword [rbx + 0x140], rdi
mov byte [rbx + 0x128], sil
mov word [rbx + 0x148], si
movups xmmword [rbx + 0x150], xmm0
mov qword [rbx + 0x160], rsi
mov qword [rbx + 0x168], rdi
mov byte [rbx + 0x150], sil
mov qword [rbx + 0x101a8], rsi
mov qword [rbx + 0x101b0], rsi
call fcn.14005655c
movdqa xmm1, xmmword [0x1400611d0]
lea rcx, [rbx + 0x101b8]
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm1
movups xmmword [rbp - 0x50], xmm0
mov qword [rax], rax
lea rdx, [rbp - 0x60]
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx + 0x101a8], rax
lea rax, [rbp - 0x50]
mov qword [rbp - 0x60], rax
lea rax, [rbp - 0x10]
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x58], rax
mov byte [rbp - 0x50], sil
movdqa xmmword [rbp - 0x20], xmm1
mov byte [rbp - 0x30], sil
call fcn.140040f6c
lea rcx, [rbp - 0x50]
call fcn.1400412e4
mov rax, rbx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140056240
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400445d0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x1060
call fcn.140056270
sub rsp, rax
mov rax, qword [0x14006d678]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rbp, r8
xor edi, edi
and qword [rsp + 0x30], rdi
mov r15, rdx
mov r14, rcx
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rdi + 3]
mov rcx, rbp
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140044669
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, r14
call qword [sym.wluart_static.exe_luaL_getlasterror]
xor r8d, r8d
or edx, 0xffffffff
mov rcx, r14
call qword [sym.wluart_static.exe_lua_tolstring]
lea rdx, str.cannot_open_File_:__s
mov rcx, r14
mov r8, rax
call qword [sym.wluart_static.exe_luaL_error]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
jmp 0x14004469c
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x50]
add edi, dword [rsp + 0x40]
lea rcx, [r15 + 0x150]
call fcn.1400428f4
mov eax, edi
cmp rax, qword [rsp + 0x48]
jge 0x1400446c4
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140044679
jmp 0x140044636
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140056240
mov rbx, qword [rsp + 0x10a8]
add rsp, 0x1060
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140044e20
Capabilities:
Reference http user-agent string

Disassembly:
push rbx
sub rsp, 0x20
and qword [rcx + 0x10], 0
lea rdx, str.Mozilla_5.0__Windows_NT_6.1__Win64__x64__rv:89.0__Gecko_20100101_Firefox_89.0
mov rbx, rcx
xorps xmm0, xmm0
add rcx, 0x20
mov r8d, 0x4d
movups xmmword [rcx], xmm0
and qword [rcx + 0x10], 0
and qword [rcx + 0x18], 0
call fcn.140040474
mov eax, reloc.WS2_32.dll_ntohs
xorps xmm0, xmm0
movups xmmword [rbx + 0x40], xmm0
and qword [rbx + 0x50], 0
mov qword [rbx + 0x58], rax
mov byte [rbx + 0x40], 0
movups xmmword [rbx + 0x68], xmm0
and qword [rbx + 0x78], 0
mov qword [rbx + 0x80], rax
mov rax, rbx
mov byte [rbx + 0x68], 0
add rsp, 0x20
pop rbx
ret
Function at 0x1400458b8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
call qword [sym.wluart_static.exe_lua_pushlightuserdata]
mov r8d, 1
lea rdx, [0x140045704]
mov rcx, rsi
call qword [sym.wluart_static.exe_lua_pushcclosure]
mov r8d, 1
lea rdx, str.Task
mov rcx, rsi
call qword [sym.wluart_static.exe_lua_pushnewinstance]
or edx, 0xffffffff
mov rcx, rsi
call qword [sym.wluart_static.exe_lua_pushvalue]
and qword [rsp + 0x28], 0
mov r9, rdi
and dword [rsp + 0x20], 0
mov r8, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi], rax
test rax, rax
je 0x14004594a
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.wluart_static.exe_lua_callk]
jmp 0x14004597d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rsi
call qword [sym.wluart_static.exe_luaL_getlasterror]
xor r8d, r8d
or edx, 0xffffffff
mov rcx, rsi
call qword [sym.wluart_static.exe_lua_tolstring]
lea rdx, str.async_error_:__s
mov rcx, rsi
mov r8, rax
call qword [sym.wluart_static.exe_luaL_error]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400462ec
Capabilities:
Parse url

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
mov edx, 0x68
mov r14, r8
lea r15d, [rdx - 0x67]
mov ecx, r15d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
lea r8, [rsp + 0x50]
mov edx, ebx
mov rcx, rdi
mov rsi, rax
call qword [sym.wluart_static.exe_lua_tolwstring]
mov qword [r14], rax
mov r9, rsi
mov dword [rsi], 0x68
xor r8d, r8d
mov dword [rsi + 0x20], r15d
mov dword [rsi + 0x30], r15d
mov dword [rsi + 0x40], r15d
mov dword [rsi + 0x50], r15d
mov dword [rsi + 0x10], r15d
mov edx, dword [rsp + 0x50]
mov rcx, qword [r14]
call qword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x140046365
mov rax, rsi
jmp 0x140046384
mov ecx, 0x2ee5
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [r14]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14004644c
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
lea rdx, [0x14006da20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea rax, [0x140046398]
mov rcx, rbx
lea r9, str.get_error
mov qword [rsp + 0x20], rax
lea r8, str.getmime
lea rdx, [0x14006154c]
call qword [sym.wluart_static.exe_lua_registermodule]
lea rax, str.__gc
mov rcx, rbx
mov qword [rsp + 0x28], rax
lea r9, [0x14003e610]
lea rax, str.accept
lea r8, str.Socket
mov qword [rsp + 0x20], rax
lea rdx, [0x14006e2cc]
call qword [sym.wluart_static.exe_lua_registerobject]
lea rax, str.__gc
mov rcx, rbx
mov qword [rsp + 0x28], rax
lea r9, [0x140041938]
lea rax, [0x140060c00]
lea r8, str.Http
mov qword [rsp + 0x20], rax
lea rdx, [0x14006da08]
call qword [sym.wluart_static.exe_lua_registerobject]
lea rax, str.__gc
mov rcx, rbx
mov qword [rsp + 0x28], rax
lea r9, [0x140045200]
lea rax, str.get_hostname
lea r8, [0x140061558]
mov qword [rsp + 0x20], rax
lea rdx, [0x14006da0c]
call qword [sym.wluart_static.exe_lua_registerobject]
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x1400470a8
Capabilities:
Encode data using xor

Disassembly:
mov r9d, ecx
test rdx, rdx
jne 0x1400470b3
xor eax, eax
ret
not r9d
test r8, r8
je 0x1400470f4
lea r10, [0x1400618e0]
movzx ecx, byte [rdx]
mov eax, r9d
xor rax, rcx
shr r9d, 4
and eax, 0xf
shr rcx, 4
inc rdx
xor r9d, dword [r10 + rax*4]
mov eax, r9d
shr r9d, 4
and eax, 0xf
xor rax, rcx
xor r9d, dword [r10 + rax*4]
sub r8, 1
jne 0x1400470c2
not r9d
mov eax, r9d
ret

Function at 0x140047124
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
lea rcx, str.AdvAPI32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
mov qword [0x14006dc18], rax
lea rdx, str.CryptDecrypt
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006dc10], rax
lea r9, [0x140061a50]
lea rax, [0x1400470fc]
mov rcx, rbx
lea r8, str.hash
mov qword [rsp + 0x20], rax
lea rdx, str.crypto
call sym.wluart_static.exe_lua_registermodule
lea rax, str.__gc
mov rcx, rbx
mov qword [rsp + 0x28], rax
lea r9, [0x140046b50]
lea rax, str.encrypt
lea r8, str.Cipher
mov qword [rsp + 0x20], rax
lea rdx, [0x14006e2c8]
call sym.wluart_static.exe_lua_registerobject
mov r9d, 0x18
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [0x14006dc08]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x14004a6cc
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [sym.wluart_static.exe_TWidget]
mov edx, 1
mov r8d, dword [rax]
call qword [sym.wluart_static.exe_lua_toself]
mov ecx, dword [0x14006e2c4]
mov rdi, rax
lea rbx, [rax + 8]
cmp dword [rax + 0x10], ecx
jne 0x14004a73e
mov rcx, qword [rbx]
lea rdx, [rax + 0xa0]
call qword [sym.imp.USER32.dll_GetWindowPlacement]
mov rcx, qword [rbx]
xor r9d, r9d
lea edx, [r9 + 0xb]
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_SendMessageA]
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_DrawMenuBar]
mov rcx, qword [rbx]
mov r9d, 0x185
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_RedrawWindow]
mov rcx, qword [rbx]
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx]
xor r9d, r9d
mov dword [rsp + 0x30], 0x43
xor r8d, r8d
and dword [rsp + 0x28], 0
xor edx, edx
and dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x14006e2c4]
mov rcx, qword [rbx]
cmp dword [rdi + 0x10], eax
jne 0x14004a785
call qword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x14004a78b
call qword [sym.imp.USER32.dll_SetFocus]
mov r8, qword [rbx]
lea rdx, [0x140054e1c]
mov rcx, r8
call qword [sym.imp.USER32.dll_EnumChildWindows]
mov rbx, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x14004b83c
Capabilities:
Get graphical window text

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 r14
sub rsp, 0x20
mov rbp, rcx
mov rsi, rdx
mov rcx, rdx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd r14, eax
lea ebx, [r14 + 1]
movsxd rcx, ebx
add rcx, rcx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8d, ebx
mov rcx, rsi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov r8, r14
mov rdx, rdi
add r8, r8
mov rcx, rbp
call qword [sym.wluart_static.exe_lua_pushlstring]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x30]
mov eax, r14d
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14004dc84
Capabilities:
Get file attributes
Get file system object information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x320
mov rax, qword [0x14006d678]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov rdi, rcx
xor ebp, ebp
xor ecx, ecx
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x40], ebp
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x2b8
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, rdi
call qword [sym.wluart_static.exe_lua_gettop]
cmp eax, 1
jle 0x14004de1a
lea esi, [rbp + 2]
mov rcx, rdi
mov edx, esi
call qword [sym.wluart_static.exe_lua_type]
test eax, eax
je 0x14004de1a
cmp eax, 5
jne 0x14004dd70
lea r8, [rsp + 0x40]
mov edx, esi
mov rcx, rdi
call qword [sym.wluart_static.exe_lua_tocinstance]
mov rcx, qword [sym.wluart_static.exe_TBuffer]
mov r10, rax
mov edx, dword [rsp + 0x40]
cmp edx, dword [rcx]
jne 0x14004dd53
mov edx, dword [r10 + 8]
lea eax, [rbp + 0x10]
mov rcx, qword [r10 + 0x10]
lea r8d, [rbp + 1]
mov dword [rsp + 0x30], ebp
mov r9d, 0x30000
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateIconFromResourceEx]
jmp 0x14004de1f
mov rax, qword [sym.wluart_static.exe_TWidget]
cmp edx, dword [rax]
jne 0x14004dd70
mov rdx, qword [r10 + 0x60]
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_DuplicateIcon]
jmp 0x14004de1f
mov edx, esi
mov rcx, rdi
call qword [sym.wluart_static.exe_luaL_checkFilename]
mov rbx, rax
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], bp
jne 0x14004dd82
movzx esi, word [rbx + rax*2 - 2]
mov edx, 3
mov rcx, rdi
lea r8d, [rdx - 2]
call qword [sym.wluart_static.exe_luaL_optinteger]
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 1
xor r8d, r8d
mov rcx, rbx
lea edx, [rax - 1]
call qword [sym.imp.SHELL32.dll_ExtractIconExW]
inc eax
test eax, 0xfffffffe
jne 0x14004de11
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp si, 0x5c
je 0x14004dde4
cmp si, 0x2f
je 0x14004dde4
cmp eax, 0xffffffff
cmove eax, ebp
jmp 0x14004dde9
mov eax, reloc.WS2_32.dll_recv
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x111
lea r8, [rsp + 0x50]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x48], rax
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.140056240
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140056b90
Capabilities:
Parse pe header

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