joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4521a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x45223f
cmp dword [ebx + 0x94], 0
jne 0x452239
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x452128
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x452239
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4521ff
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x452239
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414288
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45220e
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x452458
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x47dc94]
cmp dword [eax + 0x30], 0
je 0x4525b5
test bl, bl
jne 0x452506
cmp dword [esi + 0x9c], 0
jne 0x4524fb
mov eax, esi
call fcn.00454c54
push eax
push 0x452384
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4524cc
mov eax, dword [0x47dc94]
call fcn.00455334
test al, al
je 0x4524cc
mov eax, dword [0x47dcb8]
call fcn.004056d0
mov edi, eax
cmp edi, 0
jl 0x4524cc
push 0
mov eax, dword [0x47dcb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4524b6
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4524fb
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00414288
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4524db
inc dword [esi + 0x9c]
jmp 0x4525b5
cmp dword [esi + 0x9c], 0
jle 0x4525b5
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4525b5
cmp dword [esi + 0x44], 0
je 0x452561
mov eax, dword [0x47dc94]
call fcn.00455334
test al, al
je 0x452561
mov eax, dword [0x47dcb8]
call fcn.004056d0
mov edi, eax
cmp edi, 0
jl 0x452561
push 5
mov eax, dword [0x47dcb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45254b
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x452590
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00414288
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x452570
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x47dcb8
mov ecx, 1
mov edx, dword [0x452364]
call fcn.00405884
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x453048
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4530b2
mov eax, ebx
call fcn.00455334
test al, al
jne 0x4530b2
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404904
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x45309f
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4530bf
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404868
jmp 0x4530bf
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404868
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x454458
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4544c6
mov eax, esi
call fcn.0043e100
test al, al
je 0x4544c6
mov eax, dword [ebx + 0x84]
call fcn.0043ddf4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4544c6
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4544ba
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043ddf4
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00435df4
jmp 0x4544c6
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00454294
pop esi
pop ebx
ret
Function at 0x40c770
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x14]
mov al, byte [eax + 0x4c]
mov byte [esp + 0x10], al
mov esi, dword [edi]
cmp esi, dword [esp + 0x18]
je 0x40c8f3
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x24]
nop word [eax + eax]
mov cl, byte [esi + 5]
test cl, 0x18
je 0x40c8a8
mov eax, dword [esi]
mov dword [edi], eax
movzx eax, byte [esi + 4]
add eax, 0xfffffffc
cmp eax, 0x22
ja case.0x40c7c7.11
movzx eax, byte [eax + 0x40c920]
jmp dword [eax*4 + 0x40c8f8]
push esi
push ebx
call fcn.0040a0d0
add esp, 8
jmp case.0x40c7c7.11
lea eax, [esi + 0x10]
cmp dword [esi + 8], eax
je 0x40c7ee
push esi
call fcn.0040a3c0
add esp, 4
push 0x20
push esi
push ebx
call fcn.0040ee80
add esp, 0xc
jmp case.0x40c7c7.11
movzx eax, byte [esi + 6]
lea eax, [eax*4 + 0x10]
push eax
push esi
push ebx
call fcn.0040ee80
add esp, 0xc
jmp case.0x40c7c7.11
movzx eax, byte [esi + 6]
inc eax
shl eax, 4
push eax
push esi
push ebx
call fcn.0040ee80
add esp, 0xc
jmp case.0x40c7c7.11
push esi
push ebx
call fcn.00415130
add esp, 8
jmp case.0x40c7c7.11
push esi
push ebx
call fcn.00413f00
add esp, 8
jmp case.0x40c7c7.11
movzx eax, word [esi + 6]
test ax, ax
jne 0x40c860
mov ecx, 0x10
jmp 0x40c868
mov ecx, eax
shl ecx, 4
add ecx, 0x18
mov eax, dword [esi + 8]
add eax, ecx
push eax
push esi
push ebx
call fcn.0040ee80
add esp, 0xc
jmp case.0x40c7c7.11
push esi
push ebx
call fcn.00414c00
movzx eax, byte [esi + 7]
add eax, 0x11
push eax
push esi
push ebx
call fcn.0040ee80
add esp, 0x14
jmp case.0x40c7c7.11
mov eax, dword [esi + 0xc]
add eax, 0x11
push eax
push esi
push ebx
call fcn.0040ee80
add esp, 0xc
jmp case.0x40c7c7.11
test cl, 7
jne 0x40c8bc
and cl, 0xc1
and al, 0x18
or cl, al
or cl, 1
mov byte [esi + 5], cl
jmp 0x40c8df
movzx eax, cl
and cl, 0xf8
and eax, 7
or cl, byte [eax + 0x44ee10]
mov byte [esi + 5], cl
and cl, 7
cmp cl, 3
jne 0x40c8df
cmp dword [ebp], 0
jne 0x40c8df
mov dword [ebp], esi
mov edi, esi
mov esi, dword [edi]
mov al, byte [esp + 0x18]
cmp esi, dword [esp + 0x20]
jne 0x40c7a0
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x40fea0
Capabilities:
Check http status code

Disassembly:
sub esp, 0xd8
mov eax, dword [0x45a220]
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.0040f3a0
mov esi, eax
add esp, 8
test esi, esi
je 0x40fef4
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 0x40ff14
push 0x44f248
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
add esp, 8
test eax, eax
je 0x40ff2d
movzx ebx, byte [eax]
or ebx, 0x20
cmp ebx, 0x6e
jne 0x40ff2f
xor eax, eax
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044bf41
add esp, 0xd8
ret
xor ebx, ebx
push ebx
lea eax, [esp + 0x14]
push eax
push edi
call fcn.0040f320
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40ffcc
push 0x2e
push edi
call sub.VCRUNTIME140.dll_strchr
mov esi, eax
add esp, 8
test esi, esi
je 0x40ff12
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ff60
sub ecx, edx
cmp ecx, 0xc8
ja 0x40ff12
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 0x40ff80
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.0040f320
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40ff12
mov eax, edi
lea ecx, [esp + 0x18]
sub eax, ecx
add esi, eax
test esi, esi
je 0x40ff12
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 0x40ff14
Function at 0x410090
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
push esi
push edi
call dword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_localeconv]
mov ecx, dword [esp + 0x1c]
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 + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [eax], ecx
mov al, byte [ecx]
mov byte [esp + 0x1f], al
movzx eax, al
test byte [eax + 0x44ea19], 8
je 0x4100e5
mov al, byte [ecx + 1]
inc ecx
mov byte [esp + 0x1f], al
movzx eax, al
test byte [eax + 0x44ea19], 8
jne 0x4100d1
mov al, byte [esp + 0x1f]
lea edx, [ecx + 1]
cmp al, 0x2d
jne 0x4100fa
mov dword [esp + 0xc], 1
jmp 0x410103
cmp al, 0x2b
mov dword [esp + 0xc], esi
cmovne edx, ecx
cmp byte [edx], 0x30
jne 0x410249
mov al, byte [edx + 1]
cmp al, 0x78
je 0x41011b
cmp al, 0x58
jne 0x410249
movsd xmm2, qword [0x44f2b0]
add edx, 2
mov al, byte [edx]
movsx ecx, al
mov byte [esp + 0x1f], al
cmp ecx, dword [esp + 8]
jne 0x410147
cmp dword [esp + 0x14], 0
jne 0x41019c
mov dword [esp + 0x14], 1
inc edx
jmp 0x410126
movzx eax, al
test byte [eax + 0x44ea19], 0x10
je 0x41019c
test edi, edi
jne 0x410164
cmp byte [esp + 0x1f], 0x30
jne 0x410164
inc dword [esp + 0x10]
jmp 0x410191
inc edi
cmp edi, 0x1e
jg 0x410190
test byte [ecx + 0x44ea19], 2
je 0x410178
add ecx, 0xffffffd0
jmp 0x41017e
or ecx, 0x20
sub ecx, 0x57
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
jmp 0x410191
inc esi
cmp dword [esp + 0x14], 0
je 0x410199
dec esi
inc edx
jmp 0x410126
mov eax, dword [esp + 0x10]
add eax, edi
je 0x410249
mov eax, dword [esp + 0x20]
shl esi, 2
mov dword [eax], edx
mov al, byte [edx]
cmp al, 0x70
je 0x4101bb
cmp al, 0x50
jne 0x410223
mov al, byte [edx + 1]
xor ecx, ecx
mov byte [esp + 0x1f], al
cmp al, 0x2d
jne 0x4101d0
lea edi, [ecx + 1]
lea eax, [ecx + 2]
jmp 0x4101dd
xor eax, eax
xor edi, edi
cmp byte [esp + 0x1f], 0x2b
sete al
inc eax
add edx, eax
mov al, byte [edx]
mov byte [esp + 0x1f], al
movzx eax, al
test byte [eax + 0x44ea19], 2
je 0x410249
movsx eax, byte [esp + 0x1f]
lea ecx, [ecx + ecx*4]
inc edx
lea ecx, [ecx - 0x18]
lea ecx, [eax + ecx*2]
mov al, byte [edx]
mov byte [esp + 0x1f], al
movzx eax, al
test byte [eax + 0x44ea19], 2
jne 0x4101f1
mov eax, ecx
neg eax
test edi, edi
cmove eax, ecx
add esi, eax
mov eax, dword [esp + 0x20]
mov dword [eax], edx
cmp dword [esp + 0xc], 0
je 0x410231
xorps xmm1, xmmword [0x44f2c0]
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, 0x10
ret
fldz
pop edi
pop esi
add esp, 0x10
ret
Function at 0x414630
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 0x41466f
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 0x414655
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 0x4146ee
movzx eax, byte [edi + 7]
cmp ebx, eax
jne 0x4146e3
mov ecx, dword [esp + 0x20]
lea edx, [edi + 0x10]
mov esi, ebx
sub esi, 4
jb 0x4146b1
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4146b6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4146a0
cmp esi, 0xfffffffc
je 0x41471f
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4146e3
cmp esi, 0xfffffffd
je 0x41471f
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4146e3
cmp esi, 0xfffffffe
je 0x41471f
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4146e3
cmp esi, 0xffffffff
je 0x41471f
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x41471f
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x414686
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x20]
jl 0x4147c1
mov edi, dword [esp + 0x1c]
cmp eax, 0x7fffffff
jne 0x41473f
push 1
push edi
call fcn.0040b390
add esp, 8
cmp dword [esi + 0x1c], 0x7fffffff
je 0x41480e
jmp 0x41473f
mov ecx, dword [esp + 0x10]
mov al, byte [edi + 5]
mov cl, byte [ecx + 0x4c]
xor cl, 0x18
test al, cl
je 0x414735
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 0x4147ab
mov ebx, dword [edi + 0x10]
add esi, esi
mov edi, dword [ebx + 0x20]
cmp esi, edi
jge 0x414763
push esi
push edi
push dword [ebx + 0x18]
call fcn.00414cc0
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.0040ef90
add esp, 0x10
test eax, eax
jne 0x414792
cmp esi, edi
jge 0x4147a7
push edi
push esi
push dword [ebx + 0x18]
jmp 0x41479f
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x20], esi
cmp esi, edi
jle 0x4147a7
push esi
push edi
push eax
call fcn.00414cc0
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 0x4147c5
mov edi, dword [esp + 0x10]
lea eax, [ebx + 0x11]
push eax
push 4
push dword [esp + 0x24]
call fcn.0040b450
mov esi, eax
push ebx
push dword [esp + 0x30]
lea ecx, [esi + 0x10]
mov dword [esi + 8], ebp
mov byte [esi + 6], 0
push ecx
mov byte [esi + ebx + 0x10], 0
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x2c]
add esp, 0x18
mov byte [esi + 7], bl
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.00408a40
int3
Function at 0x414910
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
xor eax, dword [esp + 0x10]
test esi, esi
je 0x41493f
push edi
mov edi, dword [esp + 0xc]
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 0x414924
pop edi
pop esi
ret
Function at 0x421c80
Capabilities:
Encode data using xor

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

Disassembly:
push esi
push 0x45a4d0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0xfde9
mov dword [0x45a4d8], eax
mov dword [0x45a4dc], 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 0x44e8c9
push 5
call esi
mov esi, dword [esp + 0x18]
push 0
push 0x451680
push 0x451638
push 0x45191c
push esi
call sym.luart_static.exe_lua_registermodule
push 0x454788
push 0x454760
push 0x442100
push str.Task
push 0x45aa78
push esi
call sym.luart_static.exe_lua_registerobject
push 0x453dc8
push 0x453cb0
push 0x43e0a0
push str.File
push sym.luart_static.exe_TFile
push esi
call sym.luart_static.exe_lua_registerobject
add esp, 0x54
push 0x454200
push 0x4541b0
push 0x43fca0
push str.Buffer
push sym.luart_static.exe_TBuffer
push esi
call sym.luart_static.exe_lua_registerobject
push 0x454030
push 0x454008
push 0x43e960
push str.Pipe
push sym.luart_static.exe_TPipe
push esi
call sym.luart_static.exe_lua_registerobject
push 0x454128
push 0x454080
push 0x43ee10
push str.Directory
push sym.luart_static.exe_TDirectory
push esi
call sym.luart_static.exe_lua_registerobject
add esp, 0x48
push 0x453af8
push 0x453ac0
push 0x43cc60
push str.Datetime
push sym.luart_static.exe_TDatetime
push esi
call sym.luart_static.exe_lua_registerobject
push 0x454474
push 0x45446c
push 0x4405f0
push 0x45193c
push sym.luart_static.exe_TCOM
push esi
call sym.luart_static.exe_lua_registerobject
add esp, 0x30
push 0x45aaa0
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, 1
pop esi
ret

Function at 0x42a000
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x45a220]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
push edi
push esi
xor edi, edi
call sym.luart_static.exe_lua_gettop
add esp, 4
test eax, eax
je 0x42a03a
push edi
push 1
push esi
call sym.luart_static.exe_lua_tolwstring
add esp, 0xc
mov edi, eax
lea eax, [esp + 8]
push eax
push 0
push edi
push 0x45aaa0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x42a0c6
push 0xffffffffffffffff
lea eax, [esp + 0xc]
push eax
push esi
call sym.luart_static.exe_lua_pushlwstring
add esp, 0xc
cmp dword [esp + 0x21c], 0
je 0x42a0b3
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x44e8c9
push str..tmp
push 0
push 0xffffffffffffffff
push esi
call sym.luart_static.exe_lua_tolstring
add esp, 0xc
push eax
push esi
call sym.luart_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.luart_static.exe_lua_pushnewinstance
add esp, 0xc
jmp 0x42a0cf
mov eax, str.File
push 1
push eax
push esi
call sym.luart_static.exe_lua_pushnewinstance
add esp, 0xc
jmp 0x42a0cf
push esi
call sym.luart_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.0044bf41
add esp, 0x20c
ret
Function at 0x42c380
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
mov esi, 1
call sym.luart_static.exe_lua_gettop
mov edi, dword [ebp + 0x10]
add esp, 4
sub eax, edi
je 0x42c45e
dec eax
push edi
push ebx
mov dword [esp + 0x44], eax
call sym.luart_static.exe_lua_type
add esp, 8
cmp eax, 3
jne 0x42c42b
push edi
push ebx
call sym.luart_static.exe_lua_isinteger
add esp, 8
push 0
push edi
push ebx
test eax, eax
je 0x42c3e7
call sym.luart_static.exe_lua_tointegerx
push edx
push eax
push str._lld
push dword [ebp + 0xc]
call fcn.0041cc30
add esp, 0x1c
jmp 0x42c402
call sym.luart_static.exe_lua_tonumberx
add esp, 4
fstp qword [esp]
push str._.14g
push dword [ebp + 0xc]
call fcn.0041cc30
add esp, 0x10
test esi, esi
je 0x42c40a
test eax, eax
jg 0x42c457
xor esi, esi
mov eax, dword [esp + 0x3c]
inc edi
test eax, eax
jne 0x42c3a8
test esi, esi
jne 0x42c45e
push esi
push esi
push ebx
call sym.luart_static.exe_luaL_fileresult
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x38]
push eax
push edi
push ebx
call sym.luart_static.exe_luaL_checklstring
add esp, 0xc
test esi, esi
je 0x42c40a
push dword [ebp + 0xc]
push dword [esp + 0x3c]
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 + 0x38]
jne 0x42c40a
mov esi, 1
jmp 0x42c40c
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f0c0
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 0x42f0df
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x42f0d4
sub ebx, ecx
jmp 0x42f0e1
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 fcn.00439d70
inc edi
add esp, 8
mov dword [esp + 0x20], edi
test eax, eax
jne 0x42f225
push esi
call fcn.00439d40
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 0x42f120
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 0x42f158
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 0x42f1ef
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.0043ac80
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 0x42f1c3
lea ebx, [ecx + 0x5c]
cmp word [edi + esi*2], 0x2f
jne 0x42f1ba
xor eax, eax
push edi
mov word [edi + esi*2], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42f1b2
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 0x42f190
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
push esi
call fcn.00439a00
add esp, 4
test eax, eax
jne 0x42f1e3
push edi
push esi
call fcn.004397a0
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 0x42f1f3
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 fcn.00439370
mov eax, dword [esp + 0x20]
add esp, 8
mov edi, dword [esp + 0x20]
inc eax
mov dword [esp + 0x18], eax
test ebp, ebp
jne 0x42f0f2
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 0x42f260
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.luart_static.exe_lua_isstring
add esp, 8
test eax, eax
je 0x42f286
push 0
push esi
push edi
call sym.luart_static.exe_lua_tolwstring
add esp, 0xc
jmp 0x42f2a0
push dword [sym.luart_static.exe_TDirectory]
push esi
push edi
call sym.luart_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.0043efe0
push edi
mov esi, eax
call fcn.0043f230
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