joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54e562
Capabilities:
Create http request

Disassembly:
mov eax, 0x57aff8
call fcn.00518628
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x54e59a
call fcn.0054fc30
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x54e5bf
push eax
push dword [esi + 4]
call fcn.0054f1cd
jmp 0x54e5cb
push esi
push eax
mov ecx, 0x670648
call fcn.0054e5dc
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x54e73c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x57b033
call fcn.00518628
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0053470f
mov eax, dword [0x5d2d10]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x670648
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.0054e5dc
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.00530d18
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.0050c801
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00530cc8
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.00530b8f
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x55053d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.0054fc30
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x55057a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x55057a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x55057e
xor eax, eax
jmp 0x5505fc
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.00531c00
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x5505b6
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x5505a0
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.005506ed
push ebx
mov edi, eax
call fcn.00531c29
test edi, edi
pop ecx
je 0x5505f8
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.005504b6
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00550601
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x55a415
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x55a43d
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x55a44e
push 2
call edi
test ax, ax
jge 0x55a44e
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0052da16
cmp dword [esi + 0x30], ebx
jne 0x55a528
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0052da16
cmp eax, dword [esp + 0x34]
jne 0x55a528
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x55a4c4
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x55a509
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x55a528
cmp eax, 0x205
je 0x55a528
cmp eax, 0x201
je 0x55a528
cmp eax, 0x204
je 0x55a528
cmp eax, ebx
jne 0x55a4ef
cmp dword [esp + 0x1c], 0x1b
je 0x55a528
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x670454]
jbe 0x55a51e
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x55a481
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x40c2b0
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 0x40c433
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 0x40c3e8
mov eax, dword [esi]
mov dword [edi], eax
movzx eax, byte [esi + 4]
add eax, 0xfffffffc
cmp eax, 0x22
ja case.0x40c307.11
movzx eax, byte [eax + 0x40c460]
jmp dword [eax*4 + 0x40c438]
push esi
push ebx
call fcn.00409c10
add esp, 8
jmp case.0x40c307.11
lea eax, [esi + 0x10]
cmp dword [esi + 8], eax
je 0x40c32e
push esi
call fcn.00409f00
add esp, 4
push 0x20
push esi
push ebx
call fcn.0040e9c0
add esp, 0xc
jmp case.0x40c307.11
movzx eax, byte [esi + 6]
lea eax, [eax*4 + 0x10]
push eax
push esi
push ebx
call fcn.0040e9c0
add esp, 0xc
jmp case.0x40c307.11
movzx eax, byte [esi + 6]
inc eax
shl eax, 4
push eax
push esi
push ebx
call fcn.0040e9c0
add esp, 0xc
jmp case.0x40c307.11
push esi
push ebx
call fcn.00414c70
add esp, 8
jmp case.0x40c307.11
push esi
push ebx
call fcn.00413a40
add esp, 8
jmp case.0x40c307.11
movzx eax, word [esi + 6]
test ax, ax
jne 0x40c3a0
mov ecx, 0x10
jmp 0x40c3a8
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.0040e9c0
add esp, 0xc
jmp case.0x40c307.11
push esi
push ebx
call fcn.00414740
movzx eax, byte [esi + 7]
add eax, 0x11
push eax
push esi
push ebx
call fcn.0040e9c0
add esp, 0x14
jmp case.0x40c307.11
mov eax, dword [esi + 0xc]
add eax, 0x11
push eax
push esi
push ebx
call fcn.0040e9c0
add esp, 0xc
jmp case.0x40c307.11
test cl, 7
jne 0x40c3fc
and cl, 0xc1
and al, 0x18
or cl, al
or cl, 1
mov byte [esi + 5], cl
jmp 0x40c41f
movzx eax, cl
and cl, 0xf8
and eax, 7
or cl, byte [eax + 0x44ec68]
mov byte [esi + 5], cl
and cl, 7
cmp cl, 3
jne 0x40c41f
cmp dword [ebp], 0
jne 0x40c41f
mov dword [ebp], esi
mov edi, esi
mov esi, dword [edi]
mov al, byte [esp + 0x18]
cmp esi, dword [esp + 0x20]
jne 0x40c2e0
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x40f9e0
Capabilities:
Check http status code

Disassembly:
sub esp, 0xd8
mov eax, dword [0x45a210]
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.0040eee0
mov esi, eax
add esp, 8
test esi, esi
je 0x40fa34
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 0x40fa54
push 0x44f0a0
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
add esp, 8
test eax, eax
je 0x40fa6d
movzx ebx, byte [eax]
or ebx, 0x20
cmp ebx, 0x6e
jne 0x40fa6f
xor eax, eax
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044c1d1
add esp, 0xd8
ret
xor ebx, ebx
push ebx
lea eax, [esp + 0x14]
push eax
push edi
call fcn.0040ee60
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40fb0c
push 0x2e
push edi
call sub.VCRUNTIME140.dll_strchr
mov esi, eax
add esp, 8
test esi, esi
je 0x40fa52
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40faa0
sub ecx, edx
cmp ecx, 0xc8
ja 0x40fa52
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 0x40fac0
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.0040ee60
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40fa52
mov eax, edi
lea ecx, [esp + 0x18]
sub eax, ecx
add esi, eax
test esi, esi
je 0x40fa52
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 0x40fa54
Function at 0x40fbd0
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 + 0x44e871], 8
je 0x40fc25
mov al, byte [ecx + 1]
inc ecx
mov byte [esp + 0x1f], al
movzx eax, al
test byte [eax + 0x44e871], 8
jne 0x40fc11
mov al, byte [esp + 0x1f]
lea edx, [ecx + 1]
cmp al, 0x2d
jne 0x40fc3a
mov dword [esp + 0xc], 1
jmp 0x40fc43
cmp al, 0x2b
mov dword [esp + 0xc], esi
cmovne edx, ecx
cmp byte [edx], 0x30
jne 0x40fd89
mov al, byte [edx + 1]
cmp al, 0x78
je 0x40fc5b
cmp al, 0x58
jne 0x40fd89
movsd xmm2, qword [0x44f118]
add edx, 2
mov al, byte [edx]
movsx ecx, al
mov byte [esp + 0x1f], al
cmp ecx, dword [esp + 8]
jne 0x40fc87
cmp dword [esp + 0x14], 0
jne 0x40fcdc
mov dword [esp + 0x14], 1
inc edx
jmp 0x40fc66
movzx eax, al
test byte [eax + 0x44e871], 0x10
je 0x40fcdc
test edi, edi
jne 0x40fca4
cmp byte [esp + 0x1f], 0x30
jne 0x40fca4
inc dword [esp + 0x10]
jmp 0x40fcd1
inc edi
cmp edi, 0x1e
jg 0x40fcd0
test byte [ecx + 0x44e871], 2
je 0x40fcb8
add ecx, 0xffffffd0
jmp 0x40fcbe
or ecx, 0x20
sub ecx, 0x57
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
jmp 0x40fcd1
inc esi
cmp dword [esp + 0x14], 0
je 0x40fcd9
dec esi
inc edx
jmp 0x40fc66
mov eax, dword [esp + 0x10]
add eax, edi
je 0x40fd89
mov eax, dword [esp + 0x20]
shl esi, 2
mov dword [eax], edx
mov al, byte [edx]
cmp al, 0x70
je 0x40fcfb
cmp al, 0x50
jne 0x40fd63
mov al, byte [edx + 1]
xor ecx, ecx
mov byte [esp + 0x1f], al
cmp al, 0x2d
jne 0x40fd10
lea edi, [ecx + 1]
lea eax, [ecx + 2]
jmp 0x40fd1d
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 + 0x44e871], 2
je 0x40fd89
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 + 0x44e871], 2
jne 0x40fd31
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 0x40fd71
xorps xmm1, xmmword [0x44f120]
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 0x414170
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 0x4141af
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 0x414195
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 0x41422e
movzx eax, byte [edi + 7]
cmp ebx, eax
jne 0x414223
mov ecx, dword [esp + 0x20]
lea edx, [edi + 0x10]
mov esi, ebx
sub esi, 4
jb 0x4141f1
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4141f6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4141e0
cmp esi, 0xfffffffc
je 0x41425f
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x414223
cmp esi, 0xfffffffd
je 0x41425f
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x414223
cmp esi, 0xfffffffe
je 0x41425f
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x414223
cmp esi, 0xffffffff
je 0x41425f
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x41425f
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x4141c6
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x20]
jl 0x414301
mov edi, dword [esp + 0x1c]
cmp eax, 0x7fffffff
jne 0x41427f
push 1
push edi
call fcn.0040aed0
add esp, 8
cmp dword [esi + 0x1c], 0x7fffffff
je 0x41434e
jmp 0x41427f
mov ecx, dword [esp + 0x10]
mov al, byte [edi + 5]
mov cl, byte [ecx + 0x4c]
xor cl, 0x18
test al, cl
je 0x414275
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 0x4142eb
mov ebx, dword [edi + 0x10]
add esi, esi
mov edi, dword [ebx + 0x20]
cmp esi, edi
jge 0x4142a3
push esi
push edi
push dword [ebx + 0x18]
call fcn.00414800
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.0040ead0
add esp, 0x10
test eax, eax
jne 0x4142d2
cmp esi, edi
jge 0x4142e7
push edi
push esi
push dword [ebx + 0x18]
jmp 0x4142df
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x20], esi
cmp esi, edi
jle 0x4142e7
push esi
push edi
push eax
call fcn.00414800
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 0x414305
mov edi, dword [esp + 0x10]
lea eax, [ebx + 0x11]
push eax
push 4
push dword [esp + 0x24]
call fcn.0040af90
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.00408580
int3
Function at 0x414450
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 0x41447f
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 0x414464
pop edi
pop esi
ret
Function at 0x4217c0
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 0x421805
push dword [esp + 0x40]
mov esi, dword [esp + 0x38]
push dword [esp + 0x40]
push esi
call sym.luart.exe_lua_pushinteger
push dword [esp + 0x54]
push dword [esp + 0x54]
push esi
call sym.luart.exe_lua_pushinteger
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x429ab0
Capabilities:
Get common file path

Disassembly:
push esi
push 0x45a2c0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0xfde9
mov dword [0x45a2c8], eax
mov dword [0x45a2cc], 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 0x44e7b8
push 5
call esi
mov esi, dword [esp + 0x18]
push 0
push 0x4514f8
push 0x4514b0
push 0x45179c
push esi
call sym.luart.exe_lua_registermodule
push 0x454590
push 0x454568
push 0x441e10
push str.Task
push 0x45aa78
push esi
call sym.luart.exe_lua_registerobject
push 0x453b80
push 0x453a68
push 0x43daf0
push str.File
push sym.luart.exe_TFile
push esi
call sym.luart.exe_lua_registerobject
add esp, 0x54
push 0x454008
push 0x453fb8
push 0x43f740
push str.Buffer
push sym.luart.exe_TBuffer
push esi
call sym.luart.exe_lua_registerobject
push 0x453e38
push 0x453e10
push 0x43e3b0
push str.Pipe
push sym.luart.exe_TPipe
push esi
call sym.luart.exe_lua_registerobject
push 0x453f00
push 0x453e58
push 0x43e860
push str.Directory
push sym.luart.exe_TDirectory
push esi
call sym.luart.exe_lua_registerobject
add esp, 0x48
push 0x453908
push 0x4538d0
push 0x43c6b0
push str.Datetime
push sym.luart.exe_TDatetime
push esi
call sym.luart.exe_lua_registerobject
push 0x45427c
push 0x454274
push 0x440090
push 0x4517c4
push sym.luart.exe_TCOM
push esi
call sym.luart.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 0x429c10
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x45a210]
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.exe_lua_gettop
add esp, 4
test eax, eax
je 0x429c4a
push edi
push 1
push esi
call sym.luart.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 0x429cd6
push 0xffffffffffffffff
lea eax, [esp + 0xc]
push eax
push esi
call sym.luart.exe_lua_pushlwstring
add esp, 0xc
cmp dword [esp + 0x21c], 0
je 0x429cc3
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x44e7b8
push str..tmp
push 0
push 0xffffffffffffffff
push esi
call sym.luart.exe_lua_tolstring
add esp, 0xc
push eax
push esi
call sym.luart.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.exe_lua_pushnewinstance
add esp, 0xc
jmp 0x429cdf
mov eax, str.File
push 1
push eax
push esi
call sym.luart.exe_lua_pushnewinstance
add esp, 0xc
jmp 0x429cdf
push esi
call sym.luart.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.0044c1d1
add esp, 0x20c
ret
Function at 0x42bf90
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.exe_lua_gettop
mov edi, dword [ebp + 0x10]
add esp, 4
sub eax, edi
je 0x42c06e
dec eax
push edi
push ebx
mov dword [esp + 0x44], eax
call sym.luart.exe_lua_type
add esp, 8
cmp eax, 3
jne 0x42c03b
push edi
push ebx
call sym.luart.exe_lua_isinteger
add esp, 8
push 0
push edi
push ebx
test eax, eax
je 0x42bff7
call sym.luart.exe_lua_tointegerx
push edx
push eax
push str._lld
push dword [ebp + 0xc]
call fcn.0041c770
add esp, 0x1c
jmp 0x42c012
call sym.luart.exe_lua_tonumberx
add esp, 4
fstp qword [esp]
push str._.14g
push dword [ebp + 0xc]
call fcn.0041c770
add esp, 0x10
test esi, esi
je 0x42c01a
test eax, eax
jg 0x42c067
xor esi, esi
mov eax, dword [esp + 0x3c]
inc edi
test eax, eax
jne 0x42bfb8
test esi, esi
jne 0x42c06e
push esi
push esi
push ebx
call sym.luart.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.exe_luaL_checklstring
add esp, 0xc
test esi, esi
je 0x42c01a
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 0x42c01a
mov esi, 1
jmp 0x42c01c
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ecd0
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 0x42ecef
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x42ece4
sub ebx, ecx
jmp 0x42ecf1
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.luart.exe_zip_entry_openbyindex
inc edi
add esp, 8
mov dword [esp + 0x20], edi
test eax, eax
jne 0x42ee35
push esi
call sym.luart.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 0x42ed30
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 0x42ed68
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 0x42edff
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.0043a840
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 0x42edd3
lea ebx, [ecx + 0x5c]
cmp word [edi + esi*2], 0x2f
jne 0x42edca
xor eax, eax
push edi
mov word [edi + esi*2], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42edc2
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 0x42eda0
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
push esi
call sym.luart.exe_zip_entry_isdir
add esp, 4
test eax, eax
jne 0x42edf3
push edi
push esi
call sym.luart.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 0x42ee03
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.luart.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 0x42ed02
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