joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1e7a2510
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov cl, 0x6f
pop ds
cmp byte [eax + 4], ch
add dword [eax], eax
add byte [ebp - 0x3337b], cl
call dword [eax - 1]
jne 0x1e7a252b
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x1e7a2556
push 0xc6fffffc
test dword [edx + edi*8 - 0x7cfe0001], edi
mov ebp, 0xfffffc68
add byte [edi + edx - 0x7d], dh
mov ebp, 0xfffffc68
add byte [edi], cl
test ah, dl
add dword [eax], eax
add byte [ebx + 0xf010c7d], al
test dl, cl
add dword [eax], eax
add byte [ebx + 0xf080c7d], al
test dword [eax - 0x7fffffff], ecx
movsd dword es:[edi], dword [esi]
dec eax
stc
invalid
cmp dword [ebp - 0x398], 0
je 0x1e7a2720
cmp dword [ebp + 0xc], 1
je 0x1e7a2720
cmp dword [ebp + 0xc], 8
jne 0x1e7a26e8
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
invalid
test dword [esi - 7], ecx
invalid
invalid

Function at 0x1e7a2790
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.1e7a1872
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1e7a1827
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.1e7a1862
cmp byte [esp + eax*2 + 0x1046866], 0
add byte [ebp - 0x12b7b], cl
call dword [eax - 1]
xchg ebp, eax
sub al, 0xfc
invalid

Function at 0x1e7a7500
Capabilities:
Compare security identifiers

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 4], 0x1e7ba2c0
je 0x1e7a751c
mov eax, dword [sym.imp.python27.dll__Py_NotImplementedStruct]
inc dword [eax]
mov eax, dword [sym.imp.python27.dll__Py_NotImplementedStruct]
ret 8
mov eax, dword [eax + 8]
mov ecx, dword [ecx + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov ecx, dword [esp + 8]
cmp ecx, 2
jne 0x1e7a7541
test eax, eax
je 0x1e7a754a
mov eax, dword [sym.imp.python27.dll__Py_TrueStruct]
inc dword [eax]
ret 8
cmp ecx, 3
jne 0x1e7a7554
test eax, eax
je 0x1e7a7537
mov eax, dword [sym.imp.python27.dll__Py_ZeroStruct]
inc dword [eax]
ret 8
mov eax, dword [sym.imp.python27.dll__Py_NotImplementedStruct]
inc dword [eax]
ret 8
Function at 0x104adc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x31000]
push edi
jmp 0x104adda
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x104ade1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x104add0
mov eax, 1
add ebx, ebx
jne 0x104adf3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x104ae04
jne 0x104ae23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x104ae23
dec eax
add ebx, ebx
jne 0x104ae10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x104ade8
add ebx, ebx
jne 0x104ae1f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x104ae75
xor ecx, ecx
sub eax, 3
jb 0x104ae3b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x104aeaa
sar eax, 1
mov ebp, eax
jmp 0x104ae46
add ebx, ebx
jne 0x104ae46
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x104ae14
inc ecx
add ebx, ebx
jne 0x104ae54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x104ae14
add ebx, ebx
jne 0x104ae61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x104ae56
jne 0x104ae72
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x104ae56
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x104ae94
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x104ae86
jmp 0x104add6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x104ae94
add edi, ecx
jmp 0x104add6
pop esi
mov edi, esi
mov ecx, 0xc84
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x104aeb2
cmp byte [edi], 9
jne 0x104aeb2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x104aeb7
lea edi, [esi + 0x48000]
mov eax, dword [edi]
or eax, eax
je 0x104af2f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4a7b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4a8b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x104aee4
mov ecx, edi
jns 0x104af13
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4a8bc]
or eax, eax
je 0x104af29
mov dword [ebx], eax
add ebx, 4
jmp 0x104af01
call dword [esi + 0x4a8b8]
mov ebp, dword [esi + 0x4a8c0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x104af63
sub esp, 0xffffff80
jmp 0x10247f6
Function at 0x401870
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push 0
push 0x3f1
mov eax, dword [0x429a84]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x3ea
mov ecx, dword [0x429a84]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x3ee
mov edx, dword [0x429a84]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x3f3
mov eax, dword [0x429a84]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x3ef
mov ecx, dword [0x429a84]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push 0x2711
mov edx, dword [0x429a84]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xff
lea eax, [ebp - 0x200]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x429fac]
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x200]
push eax
push 0x3ed
mov ecx, dword [0x429a84]
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea edx, [ebp - 0x200]
push edx
mov eax, dword [ebp + 8]
push eax
push str._Error__ld:__s_
call fcn.00403d90
add esp, 0xc
cmp dword [ebp + 8], 2
je 0x401979
cmp dword [ebp + 8], 0xe
je 0x401979
cmp dword [ebp + 8], 0x11
jne 0x4019dd
push 5
push 0x3f2
mov ecx, dword [0x429a84]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xff
lea edx, [ebp - 0x100]
push edx
push 3
mov eax, dword [0x429fac]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [ebp - 0x100]
push ecx
push 0x2711
mov edx, dword [0x429a84]
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea eax, [ebp - 0x100]
push eax
push 0x422858
call fcn.00403d90
add esp, 8
jmp 0x401a3e
push 0
push 0x3f2
mov ecx, dword [0x429a84]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xff
lea edx, [ebp - 0x100]
push edx
push 1
mov eax, dword [0x429fac]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [ebp - 0x100]
push ecx
push str._Secondary_error_string:__s_
call fcn.00403d90
add esp, 8
lea edx, [ebp - 0x100]
push edx
push 0x2711
mov eax, dword [0x429a84]
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 5
push 0x3eb
mov ecx, dword [0x429a84]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret
Function at 0x401a60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push str.Dialog:_There_is_not_enough_free_disk_in_the_temporary_folder.
call fcn.00403d90
add esp, 4
push 0xff
lea eax, [ebp - 0x100]
push eax
push 2
mov ecx, dword [0x429fac]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [ebp - 0x100]
push edx
push 0x3ed
mov eax, dword [0x429a84]
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push str.Dialog:_Please_select_a_temporary_location_to_extract_the_installer_to:
call fcn.00403d90
add esp, 4
push 0xff
lea ecx, [ebp - 0x100]
push ecx
push 3
mov edx, dword [0x429fac]
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x100]
push eax
push 0x2711
mov ecx, dword [0x429a84]
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 5
push 0x2711
mov edx, dword [0x429a84]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x3ef
mov eax, dword [0x429a84]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push 0x3f2
mov ecx, dword [0x429a84]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x3f1
mov edx, dword [0x429a84]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x3f3
mov eax, dword [0x429a84]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret
Function at 0x401b80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push str.Dialog:_Please_select_another_location_to_extract_the_installer_to:
call fcn.00403d90
add esp, 4
push 0xff
lea eax, [ebp - 0x100]
push eax
push 4
mov ecx, dword [0x429fac]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [ebp - 0x100]
push edx
push 0x2711
mov eax, dword [0x429a84]
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov ecx, dword [ebp + 8]
push ecx
push 0x3ed
mov edx, dword [0x429a84]
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 5
push 0x2711
mov eax, dword [0x429a84]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x3ef
mov ecx, dword [0x429a84]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push 0x3f2
mov edx, dword [0x429a84]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x3f1
mov eax, dword [0x429a84]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x3ea
mov ecx, dword [0x429a84]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push 0x3ee
mov edx, dword [0x429a84]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x3f3
mov eax, dword [0x429a84]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret
Function at 0x401ca0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
push esi
mov dword [ebp - 0xc8], 0x94
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov dword [ebp - 0x28], 1
push str.Checking_free_disk_space
call fcn.00403d90
add esp, 4
cmp dword [ebp - 0xc4], 3
jbe 0x401d17
cmp dword [ebp - 0xb8], 1
jne 0x401d07
mov ecx, dword [ebp - 0xbc]
and ecx, 0xffff
movzx edx, cx
cmp edx, 0x3e8
jle 0x401d05
mov dword [ebp - 0x28], 0
jmp 0x401d17
cmp dword [ebp - 0xb8], 2
jne 0x401d17
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], 0
je 0x401d65
push str.Old_version_of_Windows_detected__win95a_:_GetDiskFreeSpace__
call fcn.00403d90
add esp, 4
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x24]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceA]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mul ecx
mov ecx, dword [ebp - 0x20]
xor esi, esi
push esi
push ecx
push edx
push eax
call fcn.00412c00
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp 0x401e10
push 0x4229d0
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xd0], 0
jne 0x401d86
xor eax, eax
jmp 0x401e3f
push str.GetDiskFreeSpaceExA
mov edx, dword [ebp - 0xd0]
push edx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
jne 0x401dec
push str.New_version_of_Windows_detected__but_cant_load_latest_functions:_forced_to_use_old_GetDiskFreeSpace__
call fcn.00403d90
add esp, 4
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x24]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceA]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mul ecx
mov ecx, dword [ebp - 0x20]
xor esi, esi
push esi
push ecx
push edx
push eax
call fcn.00412c00
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp 0x401e10
push str.New_version_of_Windows_detected:_GetDiskFreeSpaceEx__
call fcn.00403d90
add esp, 4
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
call dword [ebp - 0xcc]
add esp, 0x10
mov edx, dword [ebp + 8]
push 0
push 0x400
mov eax, dword [edx + 4]
push eax
mov ecx, dword [edx]
push ecx
call fcn.00412b50
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
push edx
push str.Free_disk_space:__ld_Kilobytes
call fcn.00403d90
add esp, 8
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403aa0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x403abb
xor al, al
jmp 0x403aeb
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x403ace
mov edx, dword [ebp - 4]
or edx, 1
mov dword [ebp - 4], edx
jmp 0x403ad7
mov eax, dword [ebp - 4]
and eax, 0xfffffffe
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret

Function at 0x403af0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, dword [ebp + 0x10]
add eax, 0x2c
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.00413970
add esp, 4
mov esi, eax
mov edx, dword [ebp - 0xc]
push edx
call fcn.00413970
add esp, 4
lea eax, [esi + eax + 2]
push eax
call fcn.00413282
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x403be5
mov edx, dword [ebp - 0xc]
push edx
push 0x4231ec
mov eax, dword [ebp + 8]
push eax
push 0x4231f0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00412a94
add esp, 0x14
push 0x4231f8
mov edx, dword [ebp - 0xc]
push edx
call fcn.00414051
add esp, 8
test eax, eax
je 0x403be5
push 0x4231fc
mov eax, dword [ebp - 0xc]
push eax
call fcn.00414051
add esp, 8
test eax, eax
je 0x403be5
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x403ba9
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
and eax, 1
je 0x403ba9
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00403aa0
add esp, 8
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
and eax, 0x10
je 0x403bd0
mov cl, byte [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00403c10
add esp, 8
test eax, eax
jne 0x403bce
mov dword [ebp - 4], 0
jmp 0x403be5
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x403be5
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0
je 0x403bfd
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.00412c34
add esp, 4
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403c10
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov dword [ebp - 4], 1
push 0x140
push 0
lea eax, [ebp - 0x148]
push eax
call fcn.00412c70
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.00413970
add esp, 4
add eax, 3
push eax
call fcn.00413282
add esp, 4
mov dword [ebp - 0x154], eax
mov edx, dword [ebp - 0x154]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
push eax
call fcn.00413970
add esp, 4
add eax, 1
push eax
call fcn.00413282
add esp, 4
mov dword [ebp - 0x158], eax
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x14c], ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14c]
push eax
call fcn.00413870
add esp, 8
cmp dword [ebp - 8], 0
je 0x403d7e
push 0x423200
push 0x423204
mov ecx, dword [ebp + 8]
push ecx
push str._s_s_s
mov edx, dword [ebp - 8]
push edx
call fcn.00412a94
add esp, 0x14
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0xffffffff
jne 0x403cea
xor eax, eax
jmp 0x403d81
lea edx, [ebp - 0x148]
push edx
mov al, byte [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403af0
add esp, 0xc
test eax, eax
jne 0x403d0c
mov dword [ebp - 4], 0
lea edx, [ebp - 0x148]
push edx
mov eax, dword [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
je 0x403d48
lea ecx, [ebp - 0x148]
push ecx
mov dl, byte [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00403af0
add esp, 0xc
test eax, eax
jne 0x403d46
mov dword [ebp - 4], 0
jmp 0x403d0c
mov ecx, dword [ebp - 0x150]
push ecx
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp dword [ebp - 4], 0
je 0x403d7e
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00403aa0
add esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
test eax, eax
jne 0x403d7e
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x403ed0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
movzx eax, byte [0x42a0e8]
test eax, eax
je 0x403f0a
push 0x429da0
push str._siase.log
lea ecx, [ebp - 0x100]
push ecx
call fcn.00412a94
add esp, 0xc
lea edx, [ebp - 0x100]
push edx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov esp, ebp
pop ebp
ret

Function at 0x403f60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
push 0xa
push 0x74
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403f9f
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x403f9f
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4053e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x18], 0x10
jb 0x405406
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
jmp 0x40540f
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
mov esp, ebp
pop ebp
ret

Function at 0x40d372
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40d385
xor al, al
jmp 0x40d3a5
cmp byte [esp + 8], 0
je 0x40d391
or eax, 1
jmp 0x40d394
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x40e0c1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
mov ecx, dword [esi + 0x28]
test ecx, ecx
push edi
mov edi, dword [esi + 4]
je 0x40e0e7
cmp dword [esp + 0x14], 0
mov eax, dword [ecx]
push ebx
push edi
je 0x40e0e4
call dword [eax + 0x10]
jmp 0x40e0e7
call dword [eax + 0xc]
cmp word [esi + 0x20], 0
je 0x40e117
test ebx, ebx
je 0x40e117
mov eax, dword [esi + 0x1c]
xor ecx, ecx
mov cl, byte [edi]
xor ecx, eax
sar eax, 8
and ecx, 0xff
and eax, 0xffffff
xor eax, dword [ecx*4 + 0x428118]
inc edi
dec ebx
mov dword [esi + 0x1c], eax
jne 0x40e0f2
pop edi
pop esi
pop ebx
ret 8

Function at 0x40ed91
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, ecx
lea ecx, [esi + 0x48]
call fcn.0040cad0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40edaf
mov eax, 0xfffff835
pop esi
ret
push edi
mov edx, eax
shr edx, 5
xor ecx, ecx
inc ecx
and edx, ecx
mov edi, eax
shr edi, 1
and edi, ecx
shl edx, 1
or edx, edi
mov edi, eax
shr edi, 2
shl edx, 1
and edi, ecx
or edx, edi
mov edi, dword [esi + 0x44]
shl edx, 1
and edi, 0xffffffe0
or edx, edi
and eax, ecx
or edx, eax
pop edi
mov dword [esi + 0x44], edx
xor eax, eax
pop esi
ret

Function at 0x40ede5
Capabilities:
Set file attributes

Disassembly:
mov edx, dword [ecx + 0x44]
xor eax, eax
test dl, 0x10
jne 0x40ee0f
push esi
mov eax, edx
and eax, 8
shl eax, 1
mov esi, edx
and esi, 2
or eax, esi
mov esi, edx
and esi, 4
shr esi, 1
shl eax, 1
or eax, esi
and edx, 1
or eax, edx
pop esi
push eax
add ecx, 0x48
call fcn.0040cad0
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
ret