joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4101d0
Capabilities:
Check http status code

Disassembly:
sub esp, 0xd8
mov eax, dword [0x475d80]
xor eax, esp
mov dword [esp + 0xd4], eax
push ebx
push ebp
mov ebp, dword [esp + 0xe8]
lea eax, [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xec]
push eax
push edi
call fcn.0040f6d0
mov esi, eax
add esp, 8
test esi, esi
je 0x410224
mov ecx, dword [esp + 0x10]
sub esi, edi
mov edx, dword [esp + 0x14]
mov al, 3
mov dword [ebp], ecx
mov dword [ebp + 4], edx
mov byte [ebp + 8], al
lea eax, [esi + 1]
jmp 0x410244
push 0x4665c0
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
add esp, 8
test eax, eax
je 0x41025d
movzx ebx, byte [eax]
or ebx, 0x20
cmp ebx, 0x6e
jne 0x41025f
xor eax, eax
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00463052
add esp, 0xd8
ret
xor ebx, ebx
push ebx
lea eax, [esp + 0x14]
push eax
push edi
call fcn.0040f650
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4102fc
push 0x2e
push edi
call sub.VCRUNTIME140.dll_strchr
mov esi, eax
add esp, 8
test esi, esi
je 0x410242
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410290
sub ecx, edx
cmp ecx, 0xc8
ja 0x410242
lea edx, [esp + 0x18]
mov ecx, edi
sub edx, edi
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4102b0
call dword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_localeconv]
sub esi, edi
push ebx
mov eax, dword [eax]
mov al, byte [eax]
mov byte [esp + esi + 0x1c], al
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0040f650
mov esi, eax
add esp, 0xc
test esi, esi
je 0x410242
mov eax, edi
lea ecx, [esp + 0x18]
sub eax, ecx
add esi, eax
test esi, esi
je 0x410242
movsd xmm0, qword [esp + 0x10]
sub esi, edi
mov al, 0x13
movsd qword [ebp], xmm0
mov byte [ebp + 8], al
lea eax, [esi + 1]
jmp 0x410244
Function at 0x4103c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x14
push esi
push edi
call dword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_localeconv]
mov ecx, dword [esp + 0x20]
xor edi, edi
xor esi, esi
xorps xmm1, xmm1
mov eax, dword [eax]
movsx eax, byte [eax]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov dword [eax], ecx
mov al, byte [ecx]
mov byte [esp + 0x23], al
movzx eax, al
test byte [eax + 0x465d91], 8
je 0x410415
mov al, byte [ecx + 1]
inc ecx
mov byte [esp + 0x23], al
movzx eax, al
test byte [eax + 0x465d91], 8
jne 0x410401
cmp byte [esp + 0x23], 0x2d
lea edx, [ecx + 1]
jne 0x410429
mov dword [esp + 0xc], 1
jmp 0x410433
cmp byte [ecx], 0x2b
mov dword [esp + 0xc], esi
cmovne edx, ecx
cmp byte [edx], 0x30
jne 0x41057c
mov al, byte [edx + 1]
cmp al, 0x78
je 0x41044b
cmp al, 0x58
jne 0x41057c
movsd xmm2, qword [0x466628]
add edx, 2
mov al, byte [edx]
movsx ecx, al
mov dword [esp + 0x10], edx
mov byte [esp + 0x23], al
cmp ecx, dword [esp + 8]
jne 0x41047b
cmp dword [esp + 0x18], 0
jne 0x4104d0
mov dword [esp + 0x18], 1
inc edx
jmp 0x410456
movzx eax, al
test byte [eax + 0x465d91], 0x10
je 0x4104d0
test edi, edi
jne 0x410498
cmp byte [esp + 0x23], 0x30
jne 0x410498
inc dword [esp + 0x14]
jmp 0x4104c5
inc edi
cmp edi, 0x1e
jg 0x4104c4
test byte [ecx + 0x465d91], 2
je 0x4104ac
add ecx, 0xffffffd0
jmp 0x4104b2
or ecx, 0x20
sub ecx, 0x57
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
jmp 0x4104c5
inc esi
cmp dword [esp + 0x18], 0
je 0x4104cd
dec esi
inc edx
jmp 0x410456
mov eax, dword [esp + 0x14]
add eax, edi
je 0x41057c
mov eax, dword [esp + 0x24]
shl esi, 2
mov dword [eax], edx
mov al, byte [edx]
cmp al, 0x70
je 0x4104ef
cmp al, 0x50
jne 0x410556
mov al, byte [edx + 1]
inc edx
xor ecx, ecx
cmp al, 0x2d
jne 0x410505
mov edx, dword [esp + 0x10]
lea edi, [ecx + 1]
add edx, 2
jmp 0x410512
cmp al, 0x2b
jne 0x410510
mov edx, dword [esp + 0x10]
add edx, 2
xor edi, edi
mov al, byte [edx]
mov byte [esp + 0x23], al
movzx eax, al
test byte [eax + 0x465d91], 2
je 0x41057c
movsx eax, byte [esp + 0x23]
lea ecx, [ecx + ecx*4]
inc edx
lea ecx, [ecx - 0x18]
lea ecx, [eax + ecx*2]
mov al, byte [edx]
mov byte [esp + 0x23], al
movzx eax, al
test byte [eax + 0x465d91], 2
jne 0x410524
mov eax, ecx
neg eax
test edi, edi
cmove eax, ecx
add esi, eax
mov eax, dword [esp + 0x24]
mov dword [eax], edx
cmp dword [esp + 0xc], 0
je 0x410564
xorps xmm1, xmmword [0x466630]
push esi
sub esp, 8
movsd qword [esp], xmm1
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_ldexp]
add esp, 0xc
pop edi
pop esi
add esp, 0x14
ret
fldz
pop edi
pop esi
add esp, 0x14
ret
Function at 0x414a60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x18]
mov edx, ebx
push ebp
push esi
mov esi, dword [eax + 0x10]
push edi
mov dword [esp + 0x10], esi
mov ebp, dword [esi + 0x48]
xor ebp, ebx
test ebx, ebx
je 0x414a9f
mov edi, dword [esp + 0x20]
movzx ecx, byte [edi + edx - 1]
mov eax, ebp
shl eax, 5
add ecx, eax
mov eax, ebp
shr eax, 2
add ecx, eax
xor ebp, ecx
sub edx, 1
jne 0x414a85
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
dec ecx
and ecx, ebp
mov edi, dword [eax + ecx*4]
lea eax, [eax + ecx*4]
mov dword [esp + 0x14], eax
test edi, edi
je 0x414b1e
movzx eax, byte [edi + 7]
cmp ebx, eax
jne 0x414b13
mov ecx, dword [esp + 0x20]
lea edx, [edi + 0x10]
mov esi, ebx
sub esi, 4
jb 0x414ae1
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x414ae6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x414ad0
cmp esi, 0xfffffffc
je 0x414b4f
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x414b13
cmp esi, 0xfffffffd
je 0x414b4f
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x414b13
cmp esi, 0xfffffffe
je 0x414b4f
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x414b13
cmp esi, 0xffffffff
je 0x414b4f
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x414b4f
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x414ab6
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x20]
jl 0x414bf1
mov edi, dword [esp + 0x1c]
cmp eax, 0x7fffffff
jne 0x414b6f
push 1
push edi
call fcn.0040b680
add esp, 8
cmp dword [esi + 0x1c], 0x7fffffff
je 0x414c3e
jmp 0x414b6f
mov ecx, dword [esp + 0x10]
mov al, byte [edi + 5]
mov cl, byte [ecx + 0x4c]
xor cl, 0x18
test al, cl
je 0x414b65
xor al, 0x18
mov byte [edi + 5], al
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov esi, dword [esi + 0x20]
cmp esi, 0x1fffffff
jg 0x414bdb
mov ebx, dword [edi + 0x10]
add esi, esi
mov edi, dword [ebx + 0x20]
cmp esi, edi
jge 0x414b93
push esi
push edi
push dword [ebx + 0x18]
call fcn.00415120
add esp, 0xc
lea eax, [esi*4]
push eax
lea eax, [edi*4]
push eax
push dword [ebx + 0x18]
mov eax, dword [esp + 0x28]
push eax
call fcn.0040f2c0
add esp, 0x10
test eax, eax
jne 0x414bc2
cmp esi, edi
jge 0x414bd7
push edi
push esi
push dword [ebx + 0x18]
jmp 0x414bcf
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x20], esi
cmp esi, edi
jle 0x414bd7
push esi
push edi
push eax
call fcn.00415120
add esp, 0xc
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
dec ecx
and ecx, ebp
lea eax, [eax + ecx*4]
mov dword [esp + 0x14], eax
jmp 0x414bf5
mov edi, dword [esp + 0x10]
lea eax, [ebx + 0x11]
push eax
push 4
push dword [esp + 0x24]
call fcn.0040b750
mov esi, eax
push ebx
push dword [esp + 0x30]
lea ecx, [esi + 0x10]
mov dword [esi + 8], ebp
mov byte [esi + 6], 0
mov byte [esi + ebx + 0x10], 0
push ecx
mov byte [esi + 7], bl
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x2c]
add esp, 0x18
mov eax, dword [ecx]
mov dword [esi + 0xc], eax
mov eax, esi
mov dword [ecx], esi
inc dword [edi + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 4
push edi
call fcn.00408cc0
int3
Function at 0x414d50
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
xor eax, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
test esi, esi
je 0x414d7e
movzx edx, byte [edi + esi - 1]
mov ecx, eax
shl ecx, 5
add edx, ecx
mov ecx, eax
shr ecx, 2
add edx, ecx
xor eax, edx
sub esi, 1
jne 0x414d64
pop edi
pop esi
ret

Function at 0x414d90
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp byte [edi + 6], 0
jne 0x414dd9
mov edx, dword [edi + 8]
push esi
mov esi, dword [edi + 0xc]
xor edx, esi
test esi, esi
je 0x414dcd
push ebx
lea ebx, [edi + 0xf]
add ebx, esi
nop
mov ecx, edx
lea ebx, [ebx - 1]
mov eax, edx
shl ecx, 5
shr eax, 2
add ecx, eax
movzx eax, byte [ebx + 1]
add ecx, eax
xor edx, ecx
sub esi, 1
jne 0x414db0
pop ebx
pop esi
mov dword [edi + 8], edx
mov eax, edx
mov byte [edi + 6], 1
pop edi
ret
mov eax, dword [edi + 8]
pop edi
ret
Function at 0x423430
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov ecx, dword [esp + 0x30]
xorps xmm0, xmm0
mov eax, dword [esp + 0x2c]
push ebx
mov ebx, dword [esp + 0x38]
push ebp
mov ebp, dword [esp + 0x40]
movlpd qword [esp + 0x20], xmm0
mov edx, dword [esp + 0x24]
push esi
push edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], 0xff
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], 0x10
mov dword [esp + 0x18], edx
xor ebp, ecx
xor ebx, eax
mov ecx, ebx
mov edx, ebp
mov ebp, dword [esp + 0x1c]
mov ebx, ebp
xor ebx, ecx
mov esi, ebp
mov dword [esp + 0x1c], ebx
xor esi, edi
mov ebx, dword [esp + 0x10]
xor eax, esi
mov edi, dword [esp + 0x10]
xor ebx, edx
xor edi, dword [esp + 0x18]
xor dword [esp + 0x14], edi
mov dword [esp + 0x28], ebx
mov ebx, ebp
mov ebp, dword [esp + 0x10]
shld ebp, ebx, 0x11
xor ebp, edx
shl ebx, 0x11
xor ebx, ecx
mov edx, esi
shrd esi, edi, 0x13
xor ecx, ecx
shl edx, 0xd
or ecx, esi
shr edi, 0x13
mov esi, dword [esp + 0x1c]
or edx, edi
sub dword [esp + 0x20], 1
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
jne 0x423478
push dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
push dword [esp + 0x40]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x40]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x3c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x1c]
push esi
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], edx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebp
mov dword [eax + 4], ecx
call sym.wluart_static.exe_lua_pushinteger
push dword [esp + 0x54]
push dword [esp + 0x54]
push esi
call sym.wluart_static.exe_lua_pushinteger
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x42b7f0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0xb4
mov eax, dword [0x475d80]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push ebp
mov ebp, dword [esp + 0xc0]
lea eax, [esp + 0xc]
push 0
push 0x55
push eax
push dword [sym.wluart_static.exe_locale]
call dword [sym.imp.KERNEL32.dll_LCIDToLocaleName]
test eax, eax
je 0x42b88c
push 0
push 0
push dword [esp + 0xcc]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
push 2
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
add esp, 8
mov ebx, eax
lea eax, [esp + 0xc]
push dword [esp + 8]
push ebx
push dword [esp + 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x42b882
mov eax, dword [esp + 8]
dec eax
push eax
push ebx
push ebp
call sym.wluart_static.exe_lua_pushlwstring
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x10
jmp 0x42b895
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push ebp
call sym.wluart_static.exe_lua_pushnil
add esp, 4
mov ecx, dword [esp + 0xb8]
mov eax, 1
pop ebp
pop ebx
xor ecx, esp
call fcn.00463052
add esp, 0xb4
ret

Function at 0x42b990
Capabilities:
Get common file path

Disassembly:
push esi
push 0x476150
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0xfde9
mov dword [0x476158], eax
mov dword [0x47615c], 0
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov esi, dword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_setlocale]
push str..UTF8
push 0
call esi
push 0x465c19
push 5
call esi
mov esi, dword [esp + 0x18]
push 0
push 0x468a48
push 0x468a00
push 0x468d74
push esi
call sym.wluart_static.exe_lua_registermodule
push 0x46bc1c
push 0x46bbf4
push 0x4448a0
push str.Task
push sym.wluart_static.exe_TTask
push esi
call sym.wluart_static.exe_lua_registerobject
push 0x46b1b8
push 0x46b098
push 0x43fef0
push str.File
push sym.wluart_static.exe_TFile
push esi
call sym.wluart_static.exe_lua_registerobject
add esp, 0x54
push 0x46b650
push 0x46b5f0
push 0x441d40
push str.Buffer
push sym.wluart_static.exe_TBuffer
push esi
call sym.wluart_static.exe_lua_registerobject
push 0x46b440
push 0x46b420
push 0x440810
push str.Pipe
push sym.wluart_static.exe_TPipe
push esi
call sym.wluart_static.exe_lua_registerobject
push 0x46b500
push 0x46b450
push 0x4410e0
push str.Directory
push sym.wluart_static.exe_TDirectory
push esi
call sym.wluart_static.exe_lua_registerobject
add esp, 0x48
push 0x46af40
push 0x46af08
push 0x43e9d0
push str.Datetime
push sym.wluart_static.exe_TDatetime
push esi
call sym.wluart_static.exe_lua_registerobject
push 0x46b8b4
push 0x46b8ac
push 0x4428f0
push 0x468d94
push sym.wluart_static.exe_TCOM
push esi
call sym.wluart_static.exe_lua_registerobject
add esp, 0x30
push 0x476860
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, 1
pop esi
ret
Function at 0x42baf0
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x475d80]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
push edi
push esi
xor edi, edi
call sym.wluart_static.exe_lua_gettop
add esp, 4
test eax, eax
je 0x42bb2a
push edi
push 1
push esi
call sym.wluart_static.exe_lua_tolwstring
add esp, 0xc
mov edi, eax
lea eax, [esp + 8]
push eax
push 0
push edi
push 0x476860
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x42bbb6
push 0xffffffffffffffff
lea eax, [esp + 0xc]
push eax
push esi
call sym.wluart_static.exe_lua_pushlwstring
add esp, 0xc
cmp dword [esp + 0x21c], 0
je 0x42bba3
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x465c19
push str..tmp
push 0
push 0xffffffffffffffff
push esi
call sym.wluart_static.exe_lua_tolstring
add esp, 0xc
push eax
push esi
call sym.wluart_static.exe_luaL_gsub
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, str.Directory
push 1
push eax
push esi
call sym.wluart_static.exe_lua_pushnewinstance
add esp, 0xc
jmp 0x42bbbf
mov eax, str.File
push 1
push eax
push esi
call sym.wluart_static.exe_lua_pushnewinstance
add esp, 0xc
jmp 0x42bbbf
push esi
call sym.wluart_static.exe_lua_pushnil
add esp, 4
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esp + 0x214]
add esp, 4
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.00463052
add esp, 0x20c
ret
Function at 0x42e070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call sym.wluart_static.exe_lua_gettop
mov edi, dword [ebp + 0x10]
add esp, 4
sub eax, edi
mov esi, 1
mov dword [esp + 0x38], eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x42e166
nop
dec eax
push edi
push ebx
mov dword [esp + 0x40], eax
call sym.wluart_static.exe_lua_type
add esp, 8
cmp eax, 3
jne 0x42e133
push edi
push ebx
call sym.wluart_static.exe_lua_isinteger
add esp, 8
push 0
push edi
push ebx
test eax, eax
je 0x42e0ef
call sym.wluart_static.exe_lua_tointegerx
push edx
push eax
push str._lld
push dword [ebp + 0xc]
call fcn.0041e310
add esp, 0x1c
jmp 0x42e10a
call sym.wluart_static.exe_lua_tonumberx
add esp, 4
fstp qword [esp]
push str._.14g
push dword [ebp + 0xc]
call fcn.0041e310
add esp, 0x10
test esi, esi
je 0x42e112
test eax, eax
jg 0x42e15f
xor esi, esi
mov eax, dword [esp + 0x38]
inc edi
test eax, eax
jne 0x42e0b0
test esi, esi
jne 0x42e166
push esi
push esi
push ebx
call sym.wluart_static.exe_luaL_fileresult
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x3c]
push eax
push edi
push ebx
call sym.wluart_static.exe_luaL_checklstring
add esp, 0xc
test esi, esi
je 0x42e112
push dword [ebp + 0xc]
push dword [esp + 0x40]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, dword [esp + 0x3c]
jne 0x42e112
mov esi, 1
jmp 0x42e114
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430e20
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
push edi
xor edi, edi
test ebx, ebx
je 0x430e3f
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x430e34
sub ebx, ecx
jmp 0x430e41
xor ebx, ebx
mov esi, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
lea ebp, [eax + 1]
push edi
push esi
call sym.wluart_static.exe_zip_entry_openbyindex
inc edi
add esp, 8
mov dword [esp + 0x20], edi
test eax, eax
jne 0x430f85
push esi
call sym.wluart_static.exe_zip_entry_name
mov edi, eax
add esp, 4
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x430e80
sub esi, ecx
inc esi
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [esp + 0x30]
add esp, 4
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x430eb8
push ebx
push edi
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x430f4f
mov eax, dword [esp + 0x14]
push esi
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], esi
push eax
push dword [esp + 0x24]
call fcn.0043cba0
mov edi, eax
xor ecx, ecx
mov eax, dword [esp + 0x24]
add esp, 0x14
xor esi, esi
mov word [edi + eax*2 - 2], cx
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x430f23
lea ebx, [ecx + 0x5c]
cmp word [edi + esi*2], 0x2f
jne 0x430f1a
xor eax, eax
push edi
mov word [edi + esi*2], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x430f12
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [edi + esi*2], bx
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x430ef0
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
push esi
call sym.wluart_static.exe_zip_entry_isdir
add esp, 4
test eax, eax
jne 0x430f43
push edi
push esi
call sym.wluart_static.exe_zip_entry_fread
add esp, 8
neg eax
sbb ebp, ebp
inc ebp
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x430f53
mov esi, dword [esp + 0x28]
push dword [esp + 0x14]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push esi
call sym.wluart_static.exe_zip_entry_close
mov eax, dword [esp + 0x20]
add esp, 8
mov edi, dword [esp + 0x20]
inc eax
mov dword [esp + 0x18], eax
test ebp, ebp
jne 0x430e52
pop edi
pop esi
pop ebp
xor edx, edx
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x18]
xor edx, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x430fc0
Capabilities:
Set current directory

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push esi
push edi
call sym.wluart_static.exe_lua_isstring
add esp, 8
test eax, eax
je 0x430fe6
push 0
push esi
push edi
call sym.wluart_static.exe_lua_tolwstring
add esp, 0xc
jmp 0x431000
push dword [sym.wluart_static.exe_TDirectory]
push esi
push edi
call sym.wluart_static.exe_lua_checkcinstance
mov eax, dword [eax + 0x50]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
add esp, 0x10
mov edi, eax
call fcn.004412b0
push edi
mov esi, eax
call fcn.004413d0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, esi
pop edi
pop esi
ret
Function at 0x431410
Capabilities:
Compute adler32 checksum

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov eax, 0x5e6ea9af
mul ebp
push esi
mov esi, dword [esp + 0x18]
mov ebx, ebp
shr edx, 0xb
imul eax, edx, 0x15b0
push edi
mov edi, dword [esp + 0x18]
movzx ecx, di
shr edi, 0x10
sub ebx, eax
mov dword [esp + 0x18], ebx
test esi, esi
jne 0x43144c
pop edi
lea eax, [esi + 1]
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x43154d
xor edx, edx
mov dword [esp + 0x1c], edx
cmp ebx, 7
jbe 0x4314b6
mov ebp, 7
sub ebp, esi
movzx eax, byte [esi]
add edx, 8
add ecx, eax
movzx eax, byte [esi + 1]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 2]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 3]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 4]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 5]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 6]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 7]
add esi, 8
add edi, ecx
add ecx, eax
add edi, ecx
lea eax, [esi + ebp]
cmp eax, ebx
jb 0x431466
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x18]
xor ebx, ebx
xor ebp, ebp
cmp edx, eax
jae 0x43150e
sub eax, edx
cmp eax, 2
jb 0x431501
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
sub edx, eax
sub edx, 2
shr edx, 1
inc edx
lea eax, [eax + edx*2]
mov dword [esp + 0x10], eax
movzx eax, byte [esi]
add ecx, eax
movzx eax, byte [esi + 1]
add ebx, ecx
add esi, 2
add ecx, eax
add ebp, ecx
sub edx, 1
jne 0x4314e0
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x18]
jae 0x431509
movzx eax, byte [esi]
add ecx, eax
add edi, ecx
inc esi
lea eax, [ebx + ebp]
add edi, eax
mov eax, 0x80078071
mov ebp, dword [esp + 0x20]
mul ecx
mov ebx, 0x15b0
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul eax, edx, 0xffff000f
add edi, eax
sub ebp, dword [esp + 0x18]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebx
jne 0x431454
shl edi, 0x10
lea eax, [ecx + edi]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x431900
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x43190d
xor eax, eax
pop esi
ret
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
not eax
test edi, edi
je 0x431952
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 + 0x469c40]
mov ecx, eax
shr eax, 4
and ecx, 0xf
xor edx, ecx
xor eax, dword [edx*4 + 0x469c40]
sub edi, 1
jne 0x431920
pop edi
not eax
pop esi
ret
Function at 0x432820
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]
test edi, edi
jl 0x432893
jg 0x43285a
test ecx, ecx
jb 0x432893
cmp ebx, ecx
jne 0x432862
cmp edx, edi
je 0x432876
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 0x432893
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