joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e500
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
push esi
push 2
push 1
push 0x470ff8
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ax, word [0x470ff8]
add esp, 0x20
cmp al, 0xff
jne 0x43e53b
cmp ah, 0xfe
jne 0x43e567
mov eax, 2
pop esi
ret
cmp al, 0xef
jne 0x43e567
cmp ah, 0xbb
jne 0x43e567
push esi
push 1
push 1
push 0x470ff8
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp byte [0x470ff8], 0xbf
jne 0x43e567
mov eax, 1
pop esi
ret
push 0
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
add esp, 0x10
xor eax, eax
pop esi
ret

Function at 0x43e580
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x24]
push edi
push 0
push 0x2000000
push 3
push 0
push 2
push 0x100
push dword [ebx + 0x50]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x43e601
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x1c]
push eax
lea ecx, [ebx + 0x3c]
push ecx
call esi
lea eax, [esp + 0x14]
push eax
lea eax, [ebx + 0x2c]
push eax
call esi
lea eax, [esp + 0xc]
push eax
lea eax, [ebx + 0x1c]
push eax
call esi
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
pop esi
test eax, eax
jne 0x43e5fa
push dword [esp + 0x24]
call sym.wluart.exe_lua_error
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
add esp, 0x18
ret

Function at 0x43e850
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebx
push edi
push dword [sym.wluart.exe_TFile]
push 1
push dword [esp + 0x14]
call sym.wluart.exe_lua_toself
add esp, 0xc
mov ebx, eax
push dword [ebx + 0x50]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push dword [esp + 0x10]
mov edi, eax
call sym.wluart.exe_lua_toboolean
add esp, 8
test eax, eax
je 0x43e898
or edi, dword [esp + 0x10]
push edi
push dword [ebx + 0x50]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 0x10]
not eax
and edi, eax
push edi
push dword [ebx + 0x50]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
xor eax, eax
pop ebx
ret

Function at 0x43f2e0
Capabilities:
Get common file path

Disassembly:
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea edi, [eax + 1]
lea ecx, [edi + edi]
push ecx
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
add esp, 8
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
pop edi
mov eax, esi
pop esi
ret
Function at 0x43f310
Capabilities:
Copy file
Delete directory
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
sub esp, 0x258
mov eax, dword [0x470d00]
xor eax, esp
mov dword [esp + 0x254], eax
push ebx
push ebp
mov ebp, dword [esp + 0x268]
push esi
push edi
mov edi, dword [esp + 0x26c]
push 0x464c2c
push ebp
mov dword [esp + 0x18], edi
call fcn.0042f4f0
mov esi, eax
push esi
call fcn.0043f580
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push esi
call ebx
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x43f469
lea eax, [esp + 0x14]
push eax
push 0x467454
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x43f446
mov ecx, 0x46745c
lea eax, [esp + 0x40]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43f3b6
test dx, dx
je 0x43f3b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43f3b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x43f390
xor eax, eax
jmp 0x43f3bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x43f432
mov ecx, 0x467460
lea eax, [esp + 0x40]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43f3ee
test dx, dx
je 0x43f3ea
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43f3ee
add eax, 4
add ecx, 4
test dx, dx
jne 0x43f3c8
xor eax, eax
jmp 0x43f3f3
sbb eax, eax
or eax, 1
test eax, eax
je 0x43f432
lea eax, [esp + 0x40]
push eax
push ebp
call fcn.0042f4f0
add esp, 8
mov esi, eax
test byte [esp + 0x14], 0x10
lea eax, [esp + 0x40]
je 0x43f41e
push esi
push eax
call fcn.0043f310
add esp, 8
jmp 0x43f428
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x43f469
push esi
call ebx
add esp, 4
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x43f383
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x462268
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, 1
jmp 0x43f46b
xor eax, eax
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045f6d1
add esp, 0x258
ret
Function at 0x43f580
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
movzx ecx, word [ebx]
xor edx, edx
add esp, 4
mov edi, eax
mov eax, ecx
lea ebp, [edx + 0x5c]
test cx, cx
je 0x43f5c0
xor ecx, ecx
mov esi, eax
cmp si, 0x2f
jne 0x43f5b1
mov word [ecx + edi], bp
inc edx
lea ecx, [edx + edx]
movzx eax, word [ecx + ebx]
mov esi, eax
test ax, ax
jne 0x43f5a7
push 0x5c
push edi
mov dword [esp + 0x1c], 1
call sub.VCRUNTIME140.dll_wcschr
mov esi, eax
add esp, 8
test esi, esi
je 0x43f63d
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
cmp word [esi - 2], 0x3a
mov word [esi], ax
je 0x43f602
push eax
push edi
call ebx
test eax, eax
jne 0x43f602
call ebp
cmp eax, 0xb7
jne 0x43f635
mov eax, 0x5c
mov word [esi], ax
sub esi, edi
sar esi, 1
inc esi
push eax
lea eax, [edi + esi*2]
push eax
call sub.VCRUNTIME140.dll_wcschr
mov esi, eax
add esp, 8
test esi, esi
jne 0x43f5e5
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esp + 0x14], 0
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x43f650
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
sub esp, 0x254
mov eax, dword [0x470d00]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
mov ebp, dword [esp + 0x260]
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x43f76e
lea eax, [esp + 0x10]
push eax
push 0x467454
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43f753
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop word [eax + eax]
mov ecx, 0x46745c
lea eax, [esp + 0x3c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43f6e6
test dx, dx
je 0x43f6e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43f6e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x43f6c0
xor eax, eax
jmp 0x43f6eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x43f743
mov eax, 0x467460
lea ecx, [esp + 0x3c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x43f71e
test dx, dx
je 0x43f71a
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x43f71e
add ecx, 4
add eax, 4
test dx, dx
jne 0x43f6f8
xor eax, eax
jmp 0x43f723
sbb eax, eax
or eax, 1
test eax, eax
je 0x43f743
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x3c]
push eax
je 0x43f73d
call fcn.0043f650
add esp, 4
jmp 0x43f73f
call edi
test eax, eax
je 0x43f76e
lea eax, [esp + 0x10]
push eax
push esi
call ebx
test eax, eax
jne 0x43f6b0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x462268
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x43f770
xor eax, eax
mov ecx, dword [esp + 0x260]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045f6d1
add esp, 0x254
ret
Function at 0x441770
Capabilities:
Delete file

Disassembly:
push edi
mov edi, dword [esp + 8]
push str.DLL_binary_modules
push 0xfff0b9d8
push edi
call sym.wluart.exe_lua_getfield
add esp, 0xc
test eax, eax
je 0x4417ee
push edi
call sym.wluart.exe_lua_pushnil
push 0xfffffffffffffffe
push edi
call sym.wluart.exe_lua_next
add esp, 0xc
test eax, eax
je 0x4417ee
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push 0
push 0xfffffffffffffffe
push edi
call sym.wluart.exe_lua_tolwstring
push 0xffffffffffffffff
push edi
mov esi, eax
call sym.wluart.exe_lua_touserdata
add esp, 0x14
push eax
call ebx
push esi
call ebp
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push 0xfffffffffffffffe
push edi
call sym.wluart.exe_lua_settop
push 0xfffffffffffffffe
push edi
call sym.wluart.exe_lua_next
add esp, 0x14
test eax, eax
jne 0x4417b0
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
ret

Function at 0x441800
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
cmp dword [0x470ffc], 0
jne 0x441959
push ebx
push esi
push edi
push 0xa
push 0x64
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov dword [0x470ffc], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, dword [0x470ffc]
mov ebx, eax
test edi, edi
je 0x4418b0
cmp ebx, 2
jbe 0x4418b0
push 0x4e018
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
add esp, 8
mov esi, eax
lea eax, [esp + 0xc]
push eax
push 4
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x44188b
lea eax, [esp + 0x10]
mov byte [edi], 0x50
push eax
push dword [esp + 0x10]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x806
push ebx
push edi
push esi
mov dword [esi + 0x50], 6
call fcn.00432650
add esp, 0x10
test eax, eax
jne 0x4418c3
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
pop edi
pop esi
mov dword [0x470fdc], 0
xor eax, eax
pop ebx
add esp, 8
ret
mov dword [0x470fdc], esi
test esi, esi
je 0x4418b0
mov ebx, dword [esp + 0x18]
push str.package
push ebx
call sym.wluart.exe_lua_getglobal
push str.searchers
push 0xffffffffffffffff
push ebx
call sym.wluart.exe_lua_getfield
push 0xffffffffffffffff
push ebx
call sym.wluart.exe_luaL_len
push 0xfffffffffffffffe
push ebx
mov edi, eax
mov esi, edx
call sym.wluart.exe_lua_pushvalue
push 1
push 0x441bb0
push ebx
call sym.wluart.exe_lua_pushcclosure
add edi, 1
adc esi, 0
push esi
push edi
push 0xfffffffffffffffe
push ebx
call sym.wluart.exe_lua_rawseti
add esp, 0x40
push 0xfffffffffffffffe
push ebx
call sym.wluart.exe_lua_pushvalue
push 1
push 0x441a20
push ebx
call sym.wluart.exe_lua_pushcclosure
add edi, 1
adc esi, 0
push esi
push edi
push 0xfffffffffffffffe
push ebx
call sym.wluart.exe_lua_rawseti
push 0xfffffffffffffffd
push ebx
call sym.wluart.exe_lua_settop
mov eax, dword [0x470fdc]
add esp, 0x2c
pop edi
pop esi
pop ebx
add esp, 8
ret
mov eax, dword [0x470fdc]
add esp, 8
ret
Function at 0x443c50
Capabilities:
Encrypt data via sspi
Send data
Send data on socket

Disassembly:
sub esp, 0x4c
mov eax, dword [0x470d00]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x58]
push ebx
push esi
push edi
mov edi, dword [esp + 0x60]
xor esi, esi
push esi
mov dword [esp + 0x18], edi
push eax
mov edi, dword [edi + 0x74]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
call dword [0x46a5c8]
mov eax, dword [esp + 0x70]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x443de4
push ebp
mov esi, eax
mov eax, dword [edi + 0x10]
sub esi, ebx
cmp dword [edi + 0x18], esi
cmovb esi, dword [edi + 0x18]
add eax, dword [edi + 0x14]
add eax, esi
push eax
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x443dc2
mov eax, dword [esp + 0x14]
add eax, ebx
push esi
push eax
mov eax, dword [edi + 0x10]
add eax, ebp
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [edi + 0x10]
add esp, 0xc
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], 7
lea ecx, [eax + ebp]
mov dword [esp + 0x30], ebp
mov eax, dword [edi + 0x14]
mov dword [esp + 0x40], eax
lea eax, [ecx + esi]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push 0
push eax
mov eax, dword [esi + 0x74]
push 0
mov dword [esp + 0x44], 1
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], 6
mov dword [esp + 0x5c], 0
mov dword [esp + 0x2c], 4
mov dword [esp + 0x28], 0
push dword [eax + 0xc]
call sub.Secur32.dll_EncryptMessage
test eax, eax
js 0x443da5
mov eax, dword [esp + 0x40]
add eax, dword [esp + 0x34]
add eax, dword [esp + 0x28]
push 0
push eax
push ebp
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x443dac
mov esi, dword [esp + 0x10]
add esi, eax
push ebp
mov dword [esp + 0x14], esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add ebx, dword [edi + 0x18]
add esp, 4
mov eax, dword [esp + 0x6c]
cmp ebx, eax
jb 0x443c98
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0045f6d1
add esp, 0x4c
ret
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0045f6d1
add esp, 0x4c
ret
push 0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esp + 0x14]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0045f6d1
add esp, 0x4c
ret
mov ecx, dword [esp + 0x54]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045f6d1
add esp, 0x4c
ret
Function at 0x444360
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x98
mov eax, dword [0x470d00]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xa0]
lea ecx, [esp]
push ebx
mov ebx, dword [esp + 0xa8]
push esi
push edi
mov edi, dword [esp + 0xa8]
push 0
push ecx
push 0
push 0
push ebx
push eax
call sub.DNSAPI.dll_DnsQuery_A
mov esi, eax
test esi, esi
jne 0x44441b
cmp bx, 1
jne 0x4443b9
mov eax, dword [esp + 0xc]
push dword [eax + 0x18]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
jmp 0x444404
cmp bx, 0x1c
jne 0x4443fd
push 0x80
lea eax, [esp + 0x24]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x18]
add esp, 0xc
movups xmm0, xmmword [eax + 0x18]
push 0x80
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x18]
push eax
push 0x17
movups xmmword [esp + 0x20], xmm0
call sub.WS2_32.dll_inet_ntop
lea eax, [esp + 0x20]
push eax
jmp 0x444404
mov eax, dword [esp + 0xc]
push dword [eax + 0x18]
push edi
call dword [0x46a550]
add esp, 8
push 1
push dword [esp + 0x10]
call sub.DNSAPI.dll_DnsFree
jmp 0x444452
cmp esi, 0x251d
je 0x444448
cmp esi, 0x25e5
je 0x444448
cmp esi, 0x232b
je 0x444448
push 0
push edi
call dword [0x46a5c8]
add esp, 8
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x444452
push edi
call dword [0x46a5bc]
add esp, 4
mov ecx, dword [esp + 0xa0]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045f6d1
add esp, 0x98
ret
Function at 0x44aae0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push esi
push edi
call dword [0x46a5cc]
push 1
push 0x44a920
push edi
call dword [0x46a554]
push 1
push str.Task
push edi
call dword [0x46a58c]
push 0xffffffffffffffff
push edi
call dword [0x46a604]
add esp, 0x28
push 0
push 0
push esi
push dword [esp + 0x20]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
test eax, eax
je 0x44ab48
push 0
push 0
push 0
push 0
push edi
call dword [0x46a61c]
add esp, 0x14
pop edi
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call dword [0x46a600]
push 0
push 0xffffffffffffffff
push edi
call dword [0x46a54c]
push eax
push str.async_error_:__s
push edi
call dword [0x46a5ec]
add esp, 0x20
pop edi
pop esi
ret

Function at 0x44b470
Capabilities:
Initialize winsock library

Disassembly:
push esi
push edi
push 0x471018
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, dword [esp + 0xc]
push 0x44b450
push 0x4682a0
push 0x4682c8
push 0x468400
push edi
call dword [0x46a64c]
mov esi, dword [sym.wluart.exe_lua_registerobject]
push 0x467bf8
push 0x467b58
push 0x443fe0
push str.Socket
push 0x47168c
push edi
call esi
push 0x467d20
push 0x467cb0
push 0x446800
push str.Http
push 0x471008
push edi
call esi
add esp, 0x44
push 0x468238
push 0x4681b8
push 0x44a330
push 0x46840c
push 0x47100c
push edi
call esi
add esp, 0x18
mov eax, 1
pop edi
pop esi
ret

Function at 0x44bfd0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push str.AdvAPI32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.CryptDecrypt
push eax
mov dword [0x4711f4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44bfb0
push 0x468758
push 0x468738
push str.crypto
push dword [esp + 0x14]
mov dword [0x4711f0], eax
call sym.wluart.exe_lua_registermodule
push 0x468448
push 0x468410
push 0x44ba50
push str.Cipher
push 0x471688
push dword [esp + 0x2c]
call sym.wluart.exe_lua_registerobject
add esp, 0x2c
push 0xf0000000
push 0x18
push 0
push 0
push 0x4711ec
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov eax, 1
ret
Function at 0x44d940
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
push esi
call dword [0x46a5a8]
mov ebx, dword [esp + 0x30]
add esp, 4
mov ebp, dword [sym.wluart.exe_lua_tolwstring]
cmp eax, 1
jle 0x44d972
push 0
push 2
push esi
call ebp
add esp, 0xc
mov edi, eax
jmp 0x44d974
mov edi, ebx
push 0
push 1
push esi
call dword [0x46a5dc]
push 0
push 0xffffffffffffffff
push esi
call ebp
add esp, 0x18
mov dword [esp + 0x2c], 0
mov ebp, eax
lea eax, [esp + 0x2c]
push eax
push 0x44da50
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_EnumThreadWindows]
push 0
push 0
push 0x7f
push dword [esp + 0x38]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x471208], eax
test eax, eax
jne 0x44d9d8
push 0x65
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x471208], eax
mov eax, dword [esp + 0x28]
push 0xffffffffffffffff
push 0
or eax, 0x1000
mov dword [esp + 0x1c], edi
push 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push eax
push 0x44d380
push 0
push 0
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp edi, ebx
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
je 0x44da1e
push edi
call ebx
add esp, 4
push ebp
call ebx
mov eax, dword [esp + 0x20]
push dword [eax*4 + 0x470218]
push esi
call dword [0x46a550]
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x44dea0
Capabilities:
Create thread

Disassembly:
sub esp, 0x14
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x44da50
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_EnumThreadWindows]
push 0
push 0
push 0x7f
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x471208], eax
test eax, eax
jne 0x44deee
push 0x65
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x471208], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
push 0xffffffffffffffff
or eax, 0x1000
push 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
push 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 0x44d380
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
add esp, 0x14
ret
Function at 0x4514b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
push esi
push edi
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebp, eax
lea esi, [ebp*2]
lea ecx, [esi + 2]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
lea ecx, [ebp + 1]
mov edi, eax
push ecx
push edi
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
push edi
push dword [esp + 0x18]
call dword [0x46a5c4]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x10
mov eax, ebp
pop edi
pop esi
pop ebp
ret
Function at 0x453e30
Capabilities:
Get file attributes
Get file system object information

Disassembly:
sub esp, 0x2c0
mov eax, dword [0x470d00]
xor eax, esp
mov dword [esp + 0x2bc], eax
push ebx
push edi
mov edi, dword [esp + 0x2cc]
push 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x2b4
mov ebx, eax
lea eax, [esp + 0x14]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push edi
call dword [0x46a5a8]
add esp, 0x10
cmp eax, 1
jle 0x453fd9
push 2
push edi
call dword [0x46a5b0]
add esp, 8
test eax, eax
je 0x453fd9
push esi
cmp eax, 5
jne 0x453f22
lea eax, [esp + 0x10]
push eax
push 2
push edi
call dword [0x46a6b8]
mov ecx, dword [sym.wluart.exe_TBuffer]
add esp, 0xc
mov esi, dword [esp + 0x10]
mov edx, eax
cmp esi, dword [ecx]
jne 0x453ef7
push 0
push 0x10
push 0x10
push 0x30000
push 1
push dword [edx + 4]
push dword [edx + 8]
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x2bc]
xor ecx, esp
call fcn.0045f6d1
add esp, 0x2c0
ret
mov eax, dword [sym.wluart.exe_TWidget]
cmp esi, dword [eax]
jne 0x453f22
push dword [edx + 0x30]
push ebx
call dword [sym.imp.SHELL32.dll_DuplicateIcon]
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x2bc]
xor ecx, esp
call fcn.0045f6d1
add esp, 0x2c0
ret
push 2
push edi
call dword [0x46a5a4]
mov esi, eax
add esp, 8
mov edx, esi
lea eax, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x453f35
push 1
sub edx, eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
sar edx, 1
push 1
push 3
push edi
movzx ebx, word [esi + edx*2 - 2]
call dword [0x46a5e8]
add esp, 0x10
dec eax
push eax
push esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x453f74
cmp eax, 0xffffffff
jne 0x453fb3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp ebx, 0x5c
je 0x453f8f
cmp ebx, 0x2f
je 0x453f8f
xor ecx, ecx
cmp eax, 0xffffffff
cmove eax, ecx
jmp 0x453f94
mov eax, 0x10
push 0x111
push 0x2b4
lea ecx, [esp + 0x1c]
push ecx
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esp + 0x10]
add esp, 4
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x2bc]
xor ecx, esp
call fcn.0045f6d1
add esp, 0x2c0
ret
mov ecx, dword [esp + 0x2c4]
mov eax, dword [esp + 8]
pop edi
pop ebx
xor ecx, esp
call fcn.0045f6d1
add esp, 0x2c0
ret
Function at 0x4564d0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
push esi
push 2
push 1
push 0x471254
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ax, word [0x471254]
add esp, 0x20
cmp al, 0xff
jne 0x45650b
cmp ah, 0xfe
jne 0x456537
mov eax, 2
pop esi
ret
cmp al, 0xef
jne 0x456537
cmp ah, 0xbb
jne 0x456537
push esi
push 1
push 1
push 0x471254
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp byte [0x471254], 0xbf
jne 0x456537
mov eax, 1
pop esi
ret
push 0
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
add esp, 0x10
xor eax, eax
pop esi
ret