joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f6b0
Capabilities:
Compute adler32 checksum
Enumerate pe sections

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x14]
mov eax, 0x5e6ea9af
mul ebp
push esi
mov esi, dword [esp + 0x10]
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, ebp
push edi
mov edi, dword [esp + 0x18]
movzx ecx, si
shr esi, 0x10
sub edx, eax
mov dword [esp + 0x14], edx
test edi, edi
jne 0x42f6ea
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
pop ecx
ret
test ebp, ebp
je 0x42f7e2
push ebx
xor ebx, ebx
cmp edx, 7
jbe 0x42f74d
mov ebp, 7
sub ebp, edi
movzx eax, byte [edi]
add ebx, 8
add ecx, eax
movzx eax, byte [edi + 1]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 2]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 3]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 4]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 5]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 6]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 7]
add edi, 8
add esi, ecx
add ecx, eax
add esi, ecx
lea eax, [edi + ebp]
cmp eax, edx
jb 0x42f701
xor ebp, ebp
cmp ebx, edx
jae 0x42f7a2
mov eax, edx
sub eax, ebx
cmp eax, 2
jb 0x42f793
sub edx, ebx
sub edx, 2
shr edx, 1
inc edx
lea eax, [ebx + edx*2]
mov ebx, ebp
mov dword [esp + 0x10], eax
nop dword [eax]
movzx eax, byte [edi]
add ecx, eax
movzx eax, byte [edi + 1]
add ebp, ecx
add edi, 2
add ecx, eax
add ebx, ecx
sub edx, 1
jne 0x42f770
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x18]
jae 0x42f79d
jmp 0x42f795
mov ebx, ebp
movzx eax, byte [edi]
add ecx, eax
add esi, ecx
inc edi
lea eax, [ebx + ebp]
add esi, eax
mov eax, 0x80078071
mov ebp, dword [esp + 0x20]
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul esi
shr edx, 0xf
imul eax, edx, 0xffff000f
mov edx, 0x15b0
add esi, eax
sub ebp, dword [esp + 0x18]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], edx
jne 0x42f6f3
pop ebx
shl esi, 0x10
pop edi
lea eax, [ecx + esi]
pop esi
pop ebp
pop ecx
ret

Function at 0x42fb70
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x42fb7d
xor eax, eax
pop esi
ret
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
not eax
test edi, edi
je 0x42fbc2
nop dword [eax]
mov cl, byte [esi]
lea esi, [esi + 1]
movzx edx, cl
mov ecx, edx
shr edx, 4
xor ecx, eax
shr eax, 4
and ecx, 0xf
xor eax, dword [ecx*4 + 0x452a38]
mov ecx, eax
shr eax, 4
and ecx, 0xf
xor edx, ecx
xor eax, dword [edx*4 + 0x452a38]
sub edi, 1
jne 0x42fb90
pop edi
not eax
pop esi
ret
Function at 0x430a90
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi + 0x48]
push dword [eax + 0x3c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__telli64
mov ecx, dword [esp + 0x1c]
add esp, 8
mov edi, dword [esp + 0x18]
cdq
mov ebx, eax
mov eax, dword [esi + 0x48]
add ecx, dword [eax + 0x40]
adc edi, dword [eax + 0x44]
js 0x430b01
jg 0x430ac8
test ecx, ecx
jb 0x430b01
cmp ebx, ecx
jne 0x430ad0
cmp edx, edi
je 0x430ae4
push 0
push edi
push ecx
push dword [eax + 0x3c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
add esp, 0x10
test eax, eax
jne 0x430b01
mov eax, dword [esi + 0x48]
push dword [eax + 0x3c]
push dword [esp + 0x24]
push 1
push dword [esp + 0x28]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
ret
pop edi
mov dword [esi + 0x1c], 0x16
xor eax, eax
pop esi
pop ebx
ret
Function at 0x439800
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x2040
call fcn.0044c3f0
mov eax, dword [0x45a220]
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 0x43984e
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x203c]
xor ecx, esp
call fcn.0044bf41
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 0x43989c
pop edi
mov eax, 0xfffffffd
pop esi
mov ecx, dword [esp + 0x203c]
xor ecx, esp
call fcn.0044bf41
add esp, 0x2040
ret
mov ecx, dword [esp + 0x12]
test cl, cl
js 0x4398ab
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 0x4398d4
or eax, 0x10
mov dword [esi + 0x4e008], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
push ebx
push 0x452524
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 0x439919
lea eax, [ebx - 0x10]
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x203c]
xor ecx, esp
call fcn.0044bf41
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 0x4399ca
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.0042fb70
add esp, 0xc
mov dword [esi + 0x70], eax
test byte [esi + 0x50], 0xf
lea eax, [esp + 0x4c]
jne 0x43998c
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 0x4399c2
add dword [esi + 0x78], edi
adc dword [esi + 0x7c], 0
add dword [esi + 0x68], edi
adc dword [esi + 0x6c], 0
jmp 0x4399a8
push 0
push edi
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.00434a90
add esp, 0x10
cmp eax, 1
je 0x4399a8
test eax, eax
jne 0x4399c2
push ebx
push 0x2000
lea eax, [esp + 0x54]
push 1
push eax
call ebp
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x439940
jmp 0x4399ca
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.0044bf41
add esp, 0x2040
ret
Function at 0x439d70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x45c
mov eax, dword [0x45a220]
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 0x439db2
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.0044bf41
add esp, 0x45c
ret
cmp dword [esi + 0x14], 1
je 0x439dd4
pop edi
mov eax, 0xfffffffc
pop esi
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.0044bf41
add esp, 0x45c
ret
cmp edi, dword [esi + 0x10]
jb 0x439df5
pop edi
mov eax, 0xfffffff6
pop esi
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.0044bf41
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 0x439e1e
pop edi
mov eax, 0xfffffff5
pop esi
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.0044bf41
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 0x439e3f
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.0043a1b0
add esp, 0x10
mov dword [esi + 0x5c], eax
pop ebp
pop ebx
test eax, eax
jne 0x439e72
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.0044bf41
add esp, 0x45c
ret
lea eax, [esp + 8]
push eax
push edi
push esi
call fcn.00431db0
add esp, 0xc
test eax, eax
jne 0x439ea1
pop edi
mov eax, 0xfffffffd
pop esi
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.0044bf41
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.0044bf41
add esp, 0x45c
ret
Function at 0x43ce90
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push 0x45a178
push str.read
push 2
push edi
call sym.luart_static.exe_luaL_checkoption
push edi
mov ebx, eax
call sym.luart_static.exe_lua_gettop
push dword [sym.luart_static.exe_TFile]
mov ebp, eax
push 1
push edi
call sym.luart_static.exe_lua_toself
mov esi, eax
add esp, 0x20
cmp dword [esi + 0x14], 0
jne 0x43cfcb
mov eax, dword [esi + 4]
test eax, eax
je 0x43cee2
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
push dword [ebx*4 + 0x45a18c]
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 0x43cf19
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.luart_static.exe_luaL_error
add esp, 0x10
mov dword [esi + 0x54], ebx
cmp ebx, 2
jge 0x43cf58
push dword [esi + 4]
call sym.luart_static.exe_detectBOM
add esp, 4
mov dword [esi + 0x18], eax
cmp ebp, 1
jne 0x43cf3d
test eax, eax
jne 0x43cf9d
mov dword [esi + 0x18], ebp
jmp 0x43cf9d
cmp ebp, 3
jne 0x43cf9d
push 0x45a19c
push str.binary
push ebp
push edi
call sym.luart_static.exe_luaL_checkoption
mov dword [esi + 0x18], eax
jmp 0x43cf9a
push 0x45a19c
push str.utf8
push 3
push edi
call sym.luart_static.exe_luaL_checkoption
add esp, 0x10
mov dword [esi + 0x18], eax
sub eax, 1
je 0x43cf88
sub eax, 1
jne 0x43cf9d
push dword [esi + 4]
push 1
push 2
push 0x453c80
jmp 0x43cf94
push dword [esi + 4]
push 1
push 3
push 0x453f50
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [esi + 4], 0
je 0x43cfcb
push 1
push edi
call sym.luart_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 0x43e200
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 0x45a518
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ax, word [0x45a518]
add esp, 0x20
cmp al, 0xff
jne 0x43e23b
cmp ah, 0xfe
jne 0x43e267
mov eax, 2
pop esi
ret
cmp al, 0xef
jne 0x43e267
cmp ah, 0xbb
jne 0x43e267
push esi
push 1
push 1
push 0x45a518
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp byte [0x45a518], 0xbf
jne 0x43e267
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 0x43e280
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 0x43e301
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 0x43e2fa
push dword [esp + 0x24]
call sym.luart_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 0x43e550
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebx
push edi
push dword [sym.luart_static.exe_TFile]
push 1
push dword [esp + 0x14]
call sym.luart_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.luart_static.exe_lua_toboolean
add esp, 8
test eax, eax
je 0x43e598
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 0x43efe0
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 0x43f010
Capabilities:
Copy file
Delete directory
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
sub esp, 0x258
mov eax, dword [0x45a220]
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 0x4518e4
push ebp
mov dword [esp + 0x18], edi
call fcn.0042f060
mov esi, eax
push esi
call fcn.0043f230
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 0x43f169
lea eax, [esp + 0x14]
push eax
push 0x454188
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x43f146
mov ecx, 0x454190
lea eax, [esp + 0x40]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43f0b6
test dx, dx
je 0x43f0b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43f0b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x43f090
xor eax, eax
jmp 0x43f0bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x43f132
mov ecx, 0x454194
lea eax, [esp + 0x40]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43f0ee
test dx, dx
je 0x43f0ea
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43f0ee
add eax, 4
add ecx, 4
test dx, dx
jne 0x43f0c8
xor eax, eax
jmp 0x43f0f3
sbb eax, eax
or eax, 1
test eax, eax
je 0x43f132
lea eax, [esp + 0x40]
push eax
push ebp
call fcn.0042f060
add esp, 8
mov esi, eax
test byte [esp + 0x14], 0x10
lea eax, [esp + 0x40]
je 0x43f11e
push esi
push eax
call fcn.0043f010
add esp, 8
jmp 0x43f128
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x43f169
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 0x43f083
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x44ef38
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, 1
jmp 0x43f16b
xor eax, eax
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044bf41
add esp, 0x258
ret
Function at 0x43f230
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 0x43f270
xor ecx, ecx
mov esi, eax
cmp si, 0x2f
jne 0x43f261
mov word [ecx + edi], bp
inc edx
lea ecx, [edx + edx]
movzx eax, word [ecx + ebx]
mov esi, eax
test ax, ax
jne 0x43f257
push 0x5c
push edi
mov dword [esp + 0x1c], 1
call sub.VCRUNTIME140.dll_wcschr
mov esi, eax
add esp, 8
test esi, esi
je 0x43f2ed
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 0x43f2b2
push eax
push edi
call ebx
test eax, eax
jne 0x43f2b2
call ebp
cmp eax, 0xb7
jne 0x43f2e5
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 0x43f295
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 0x43f300
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
sub esp, 0x254
mov eax, dword [0x45a220]
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 0x43f41e
lea eax, [esp + 0x10]
push eax
push 0x454188
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43f403
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop word [eax + eax]
mov ecx, 0x454190
lea eax, [esp + 0x3c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43f396
test dx, dx
je 0x43f392
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43f396
add eax, 4
add ecx, 4
test dx, dx
jne 0x43f370
xor eax, eax
jmp 0x43f39b
sbb eax, eax
or eax, 1
test eax, eax
je 0x43f3f3
mov eax, 0x454194
lea ecx, [esp + 0x3c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x43f3ce
test dx, dx
je 0x43f3ca
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x43f3ce
add ecx, 4
add eax, 4
test dx, dx
jne 0x43f3a8
xor eax, eax
jmp 0x43f3d3
sbb eax, eax
or eax, 1
test eax, eax
je 0x43f3f3
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x3c]
push eax
je 0x43f3ed
call fcn.0043f300
add esp, 4
jmp 0x43f3ef
call edi
test eax, eax
je 0x43f41e
lea eax, [esp + 0x10]
push eax
push esi
call ebx
test eax, eax
jne 0x43f360
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x44ef38
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x43f420
xor eax, eax
mov ecx, dword [esp + 0x260]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044bf41
add esp, 0x254
ret
Function at 0x4412f0
Capabilities:
Delete file

Disassembly:
push edi
mov edi, dword [esp + 8]
push str.DLL_binary_modules
push 0xfff0b9d8
push edi
call sym.luart_static.exe_lua_getfield
add esp, 0xc
test eax, eax
je 0x44136e
push edi
call sym.luart_static.exe_lua_pushnil
push 0xfffffffffffffffe
push edi
call sym.luart_static.exe_lua_next
add esp, 0xc
test eax, eax
je 0x44136e
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.luart_static.exe_lua_tolwstring
push 0xffffffffffffffff
push edi
mov esi, eax
call sym.luart_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.luart_static.exe_lua_settop
push 0xfffffffffffffffe
push edi
call sym.luart_static.exe_lua_next
add esp, 0x14
test eax, eax
jne 0x441330
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
ret

Function at 0x441380
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
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 [0x45a51c], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, dword [0x45a51c]
mov ebx, eax
test edi, edi
je 0x44142d
cmp ebx, 2
jbe 0x44142d
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 0x4413fe
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.004321b0
add esp, 0x10
test eax, eax
jne 0x441436
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [0x45a4fc], 0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov dword [0x45a4fc], esi
test esi, esi
je 0x44142d
mov esi, dword [esp + 0x18]
push str.package
push esi
call sym.luart_static.exe_lua_getglobal
push str.searchers
push 0xffffffffffffffff
push esi
call sym.luart_static.exe_lua_getfield
push 0
push 0x441550
push esi
call sym.luart_static.exe_lua_pushcclosure
push 0xfffffffffffffffe
push esi
call sym.luart_static.exe_luaL_len
add eax, 1
adc edx, 0
push edx
push eax
push 0xfffffffffffffffe
push esi
call sym.luart_static.exe_lua_rawseti
push 0xfffffffffffffffd
push esi
call sym.luart_static.exe_lua_settop
add esp, 0x40
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 8
ret