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

Disassembly:
mov eax, 0x2040
call fcn.00463670
mov eax, dword [0x475d80]
xor eax, esp
mov dword [esp + 0x203c], eax
push esi
mov esi, dword [esp + 0x2048]
mov dword [esp + 4], 0
push edi
mov edi, dword [esp + 0x2050]
test esi, esi
jne 0x43b77e
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x203c]
xor ecx, esp
call fcn.00463052
add esp, 0x2040
ret
push 0x2000
lea eax, [esp + 0x48]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x38
lea eax, [esp + 0x1c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wstat64]
add esp, 0x20
test eax, eax
je 0x43b7cc
pop edi
mov eax, 0xfffffffd
pop esi
mov ecx, dword [esp + 0x203c]
xor ecx, esp
call fcn.00463052
add esp, 0x2040
ret
mov ecx, dword [esp + 0x12]
test cl, cl
js 0x43b7db
or dword [esi + 0x4e008], 1
movzx eax, cx
and ecx, 0xf000
shl eax, 0x10
or eax, dword [esi + 0x4e008]
mov dword [esi + 0x4e008], eax
cmp ecx, 0x4000
jne 0x43b804
or eax, 0x10
mov dword [esi + 0x4e008], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
push ebx
push 0x46997c
push edi
mov dword [esi + 0x4e010], eax
mov dword [esi + 0x4e014], ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x43b849
lea eax, [ebx - 0x10]
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x203c]
xor ecx, esp
call fcn.00463052
add esp, 0x2040
ret
push ebp
mov ebp, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
lea eax, [esp + 0x4c]
push ebx
push 0x2000
push 1
push eax
call ebp
mov edi, eax
add esp, 0x10
test edi, edi
je 0x43b8fa
nop dword [eax]
add dword [esi + 0x60], edi
lea eax, [esp + 0x4c]
push edi
adc dword [esi + 0x64], 0
push eax
push dword [esi + 0x70]
call fcn.00431900
add esp, 0xc
mov dword [esi + 0x70], eax
test byte [esi + 0x50], 0xf
lea eax, [esp + 0x4c]
jne 0x43b8bc
push edi
push eax
push dword [esi + 0x7c]
mov eax, dword [esi + 0x3c]
push dword [esi + 0x78]
push dword [esi + 0x44]
call eax
add esp, 0x14
cmp eax, edi
jne 0x43b8f2
add dword [esi + 0x78], edi
adc dword [esi + 0x7c], 0
add dword [esi + 0x68], edi
adc dword [esi + 0x6c], 0
jmp 0x43b8d8
push 0
push edi
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.004366d0
add esp, 0x10
cmp eax, 1
je 0x43b8d8
test eax, eax
jne 0x43b8f2
push ebx
push 0x2000
lea eax, [esp + 0x54]
push 1
push eax
call ebp
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x43b870
jmp 0x43b8fa
mov dword [esp + 0x10], 0xfffffff8
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [esp + 0x2050]
add esp, 4
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.00463052
add esp, 0x2040
ret
Function at 0x43b9a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x45c
mov eax, dword [0x475d80]
xor eax, esp
mov dword [esp + 0x458], eax
push esi
mov esi, dword [esp + 0x464]
push edi
mov edi, dword [esp + 0x46c]
test esi, esi
jne 0x43b9e2
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.00463052
add esp, 0x45c
ret
cmp dword [esi + 0x14], 1
je 0x43ba04
pop edi
mov eax, 0xfffffffc
pop esi
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.00463052
add esp, 0x45c
ret
cmp edi, dword [esi + 0x10]
jb 0x43ba25
pop edi
mov eax, 0xfffffff6
pop esi
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.00463052
add esp, 0x45c
ret
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
add eax, dword [ecx]
jne 0x43ba4e
pop edi
mov eax, 0xfffffff5
pop esi
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.00463052
add esp, 0x45c
ret
push ebx
movzx ebx, word [eax + 0x1c]
push ebp
lea ebp, [eax + 0x2e]
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x43ba6f
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [esi + 0x5c], 0
push 0x2f
push 0x5c
push ebx
push ebp
call fcn.0043c060
add esp, 0x10
mov dword [esi + 0x5c], eax
pop ebp
pop ebx
test eax, eax
jne 0x43baa2
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.00463052
add esp, 0x45c
ret
lea eax, [esp + 8]
push eax
push edi
push esi
call fcn.00433b40
add esp, 0xc
test eax, eax
jne 0x43bad1
pop edi
mov eax, 0xfffffffd
pop esi
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.00463052
add esp, 0x45c
ret
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x68], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x60], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x6c], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x78], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 0x64], ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xa0], eax
mov ax, word [esp + 0x1e]
mov dword [esi + 0x7c], ecx
mov ecx, dword [esp + 0x4c]
mov word [esi + 0xa8], ax
mov eax, dword [esp + 0x44]
mov dword [esi + 0xa4], ecx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x4e008], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x58], edi
mov dword [esi + 0x4e014], ecx
mov ecx, dword [esp + 0x460]
mov dword [esi + 0x4e010], eax
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00463052
add esp, 0x45c
ret
Function at 0x43f000
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push 0x47518c
push str.read
push 2
push edi
call sym.wluart_static.exe_luaL_checkoption
push edi
mov ebx, eax
call sym.wluart_static.exe_lua_gettop
push dword [sym.wluart_static.exe_TFile]
mov ebp, eax
push 1
push edi
call sym.wluart_static.exe_lua_toself
mov esi, eax
add esp, 0x20
cmp dword [esi + 0x14], 0
jne 0x43f13b
mov eax, dword [esi + 4]
test eax, eax
je 0x43f052
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
push dword [ebx*4 + 0x4751a0]
push dword [esi + 0x50]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
mov dword [esi + 4], eax
test eax, eax
jne 0x43f089
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
push eax
push str.File_open_failed__s
push edi
call sym.wluart_static.exe_luaL_error
add esp, 0x10
mov dword [esi + 0x54], ebx
cmp ebx, 2
jge 0x43f0c8
push dword [esi + 4]
call sym.wluart_static.exe_detectBOM
add esp, 4
mov dword [esi + 0x18], eax
cmp ebp, 1
jne 0x43f0ad
test eax, eax
jne 0x43f10d
mov dword [esi + 0x18], ebp
jmp 0x43f10d
cmp ebp, 3
jne 0x43f10d
push 0x4751b0
push str.binary
push ebp
push edi
call sym.wluart_static.exe_luaL_checkoption
mov dword [esi + 0x18], eax
jmp 0x43f10a
push 0x4751b0
push str.utf8
push 3
push edi
call sym.wluart_static.exe_luaL_checkoption
add esp, 0x10
mov dword [esi + 0x18], eax
sub eax, 1
je 0x43f0f8
sub eax, 1
jne 0x43f10d
push dword [esi + 4]
push 1
push 2
push 0x46b068
jmp 0x43f104
push dword [esi + 4]
push 1
push 3
push 0x46b34c
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [esi + 4], 0
je 0x43f13b
push 1
push edi
call sym.wluart_static.exe_lua_pushvalue
push dword [esi + 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
add esp, 0x10
mov dword [esi + 0xc], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x440140
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 0x476198
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ax, word [0x476198]
add esp, 0x20
cmp al, 0xff
jne 0x44017f
cmp byte [0x476199], 0xfe
jne 0x4401af
mov eax, 2
pop esi
ret
cmp al, 0xef
jne 0x4401af
cmp byte [0x476199], 0xbb
jne 0x4401af
push esi
push 1
push 1
push 0x476198
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp byte [0x476198], 0xbf
jne 0x4401af
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 0x4401d0
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 0x440251
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 0x44024a
push dword [esp + 0x24]
call sym.wluart_static.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 0x4404f0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebx
push edi
push dword [sym.wluart_static.exe_TFile]
push 1
push dword [esp + 0x14]
call sym.wluart_static.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_static.exe_lua_toboolean
add esp, 8
test eax, eax
je 0x440538
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 0x440980
Capabilities:
Read file on windows
Read pipe

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 4]
push 0
push eax
push 0
push 0
push 0
push edi
mov dword [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x440a54
mov eax, dword [esp + 4]
test eax, eax
je 0x440a54
push ebx
push ebp
push esi
inc eax
push eax
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 8
mov ebp, eax
xor esi, esi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 0
push eax
sub ecx, esi
lea eax, [esi + ebp]
push ecx
push eax
push edi
call ebx
test eax, eax
mov eax, dword [esp + 0x14]
je 0x4409f3
test eax, eax
jne 0x4409f7
add esi, eax
jmp 0x4409d2
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push dword [esp + 0x18]
push ebp
push 0
push 1
call edi
mov esi, eax
lea ecx, [esi + esi]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov ebx, eax
push esi
push ebx
push dword [esp + 0x18]
push ebp
push 0
push 1
call edi
push dword [esp + 0x10]
push ebx
push dword [esp + 0x24]
call sym.wluart_static.exe_lua_pushlwstring
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push ebx
call esi
push ebp
call esi
add esp, 0x14
mov eax, 1
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
xor eax, eax
pop edi
add esp, 8
ret
Function at 0x440f40
Capabilities:
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x1a54
call fcn.00463670
mov eax, dword [0x475d80]
xor eax, esp
mov dword [esp + 0x1a50], eax
push ebx
mov ebx, dword [esp + 0x1a5c]
push ebp
mov ebp, dword [esp + 0x1a64]
push esi
push edi
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push 0x46b5a8
lea eax, [esp + 0x1268]
push 0x400
push eax
call fcn.0042b7b0
add esp, 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4410c0
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, 0x46b59c
lea eax, [esp + 0x3c]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x440fe6
test dx, dx
je 0x440fe2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x440fe6
add eax, 4
add ecx, 4
test dx, dx
jne 0x440fc0
xor eax, eax
jmp 0x440feb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4410a2
mov eax, 0x46b5a0
lea ecx, [esp + 0x3c]
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x441026
test dx, dx
je 0x441022
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x441026
add ecx, 4
add eax, 4
test dx, dx
jne 0x441000
xor eax, eax
jmp 0x44102b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4410a2
lea eax, [esp + 0x3c]
push eax
push ebx
push 0x46b578
lea eax, [esp + 0xa6c]
push 0x400
push eax
call fcn.0042b7b0
lea eax, [esp + 0x50]
push eax
push ebp
push 0x46b578
lea eax, [esp + 0x280]
push 0x400
push eax
call fcn.0042b7b0
add esp, 0x28
lea eax, [esp + 0x260]
test byte [esp + 0x10], 0x10
je 0x44108d
push eax
lea eax, [esp + 0xa64]
push eax
call fcn.00440f40
add esp, 8
jmp 0x44109e
push 0
push eax
lea eax, [esp + 0xa68]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4410c0
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x440fb2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x4410c2
xor eax, eax
mov ecx, dword [esp + 0x1a60]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00463052
add esp, 0x1a54
ret

Function at 0x4412b0
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 0x4413d0
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 0x441410
xor ecx, ecx
mov esi, eax
cmp si, 0x2f
jne 0x441401
mov word [ecx + edi], bp
inc edx
lea ecx, [edx + edx]
movzx eax, word [ecx + ebx]
mov esi, eax
test ax, ax
jne 0x4413f7
push 0x5c
push edi
mov dword [esp + 0x1c], 1
call sub.VCRUNTIME140.dll_wcschr
mov esi, eax
add esp, 8
test esi, esi
je 0x44148d
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 0x441452
push eax
push edi
call ebx
test eax, eax
jne 0x441452
call ebp
cmp eax, 0xb7
jne 0x441485
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 0x441435
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 0x4414a0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
sub esp, 0x254
mov eax, dword [0x475d80]
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 0x4415be
lea eax, [esp + 0x10]
push eax
push 0x46b594
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4415a3
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop word [eax + eax]
mov ecx, 0x46b59c
lea eax, [esp + 0x3c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x441536
test dx, dx
je 0x441532
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x441536
add eax, 4
add ecx, 4
test dx, dx
jne 0x441510
xor eax, eax
jmp 0x44153b
sbb eax, eax
or eax, 1
test eax, eax
je 0x441593
mov eax, 0x46b5a0
lea ecx, [esp + 0x3c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x44156e
test dx, dx
je 0x44156a
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x44156e
add ecx, 4
add eax, 4
test dx, dx
jne 0x441548
xor eax, eax
jmp 0x441573
sbb eax, eax
or eax, 1
test eax, eax
je 0x441593
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x3c]
push eax
je 0x44158d
call fcn.004414a0
add esp, 4
jmp 0x44158f
call edi
test eax, eax
je 0x4415be
lea eax, [esp + 0x10]
push eax
push esi
call ebx
test eax, eax
jne 0x441500
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x4662b0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4415c0
xor eax, eax
mov ecx, dword [esp + 0x260]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00463052
add esp, 0x254
ret
Function at 0x442250
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [sym.wluart_static.exe_TBuffer]
mov edi, dword [esp + 0x18]
push 1
push edi
call sym.wluart_static.exe_lua_toself
mov esi, eax
add esp, 0xc
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x442278
jmp dword [eax*4 + 0x4423ac]
push dword [esi + 8]
push edi
call sym.wluart_static.exe_lua_pushstring
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
push 0xffffffffffffffff
push dword [esi + 8]
push edi
call sym.wluart_static.exe_lua_pushlwstring
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
mov ebp, dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
lea eax, [esp + 0x18]
push eax
push 0
push 0x40000001
push dword [esi + 4]
mov dword [esp + 0x28], 0
push dword [esi + 8]
call ebp
test eax, eax
je 0x4423a1
push dword [esp + 0x18]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov ebx, eax
lea eax, [esp + 0x18]
push eax
push ebx
push 0x40000001
push dword [esi + 4]
push dword [esi + 8]
call ebp
test eax, eax
je 0x44230b
push dword [esp + 0x18]
push ebx
push edi
call sym.wluart_static.exe_lua_pushlstring
add esp, 0xc
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
mov ebp, dword [esi + 4]
mov eax, dword [esi + 8]
add ebp, ebp
mov esi, ebp
mov dword [esp + 0x18], eax
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov ebx, eax
sub esi, 1
js 0x442370
mov edi, dword [esp + 0x18]
mov eax, esi
mov edx, esi
shr eax, 1
and edx, 1
shl edx, 2
mov ecx, 4
sub ecx, edx
movsx eax, byte [eax + edi]
sar eax, cl
and eax, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ebx + esi], al
sub esi, 1
jns 0x442342
mov edi, dword [esp + 0x14]
push ebp
push ebx
push edi
call sym.wluart_static.exe_lua_pushlstring
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
push dword [eax*4 + 0x4751dc]
push str.unknown_encoding__s
push edi
call sym.wluart_static.exe_luaL_error
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x4435b0
Capabilities:
Delete file

Disassembly:
push edi
mov edi, dword [esp + 8]
push str.DLL_binary_modules
push 0xfff0b9d8
push edi
call sym.wluart_static.exe_lua_getfield
add esp, 0xc
test eax, eax
je 0x44362e
push edi
call sym.wluart_static.exe_lua_pushnil
push 0xfffffffffffffffe
push edi
call sym.wluart_static.exe_lua_next
add esp, 0xc
test eax, eax
je 0x44362e
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_static.exe_lua_tolwstring
push 0xffffffffffffffff
push edi
mov esi, eax
call sym.wluart_static.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_static.exe_lua_settop
push 0xfffffffffffffffe
push edi
call sym.wluart_static.exe_lua_next
add esp, 0x14
test eax, eax
jne 0x4435f0
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
ret
Function at 0x443640
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
cmp dword [0x47619c], 0
jne 0x4437af
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 [0x47619c], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, dword [0x47619c]
mov ebx, eax
test edi, edi
je 0x4436f0
cmp ebx, 2
jbe 0x4436f0
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 0x4436cb
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.00433f40
add esp, 0x10
test eax, eax
jne 0x443703
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 [0x47617c], 0
xor eax, eax
pop ebx
add esp, 8
ret
mov dword [0x47617c], esi
test esi, esi
je 0x4436f0
mov ebx, dword [esp + 0x18]
push str.package
push ebx
call sym.wluart_static.exe_lua_getglobal
push str.searchers
push 0xffffffffffffffff
push ebx
call sym.wluart_static.exe_lua_getfield
push 0xffffffffffffffff
push ebx
call sym.wluart_static.exe_luaL_len
push 0xfffffffffffffffe
push ebx
mov edi, eax
mov esi, edx
call sym.wluart_static.exe_lua_pushvalue
push 1
push 0x443c60
push ebx
call sym.wluart_static.exe_lua_pushcclosure
add edi, 1
adc esi, 0
push esi
push edi
push 0xfffffffffffffffe
push ebx
call sym.wluart_static.exe_lua_rawseti
add esp, 0x40
push 0xfffffffffffffffe
push ebx
call sym.wluart_static.exe_lua_pushvalue
push 1
push 0x4438a0
push ebx
call sym.wluart_static.exe_lua_pushcclosure
add edi, 1
adc esi, 0
push esi
push edi
push 0xfffffffffffffffe
push ebx
call sym.wluart_static.exe_lua_rawseti
push 0xfffffffffffffffd
push ebx
call sym.wluart_static.exe_lua_settop
add esp, 0x2c
push 0x1000
call dword [sym.imp.KERNEL32.dll_SetDefaultDllDirectories]
push 0x476860
call dword [sym.imp.KERNEL32.dll_AddDllDirectory]
mov eax, dword [0x47617c]
pop edi
pop esi
pop ebx
add esp, 8
ret
mov eax, dword [0x47617c]
add esp, 8
ret