joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423720
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, ecx
mov eax, 0x57
test esi, esi
je 0x4237c0
cmp byte [esi], 0
je 0x4237c0
mov cl, byte [ebp + 0x10]
cmp cl, 1
je 0x423752
test cl, cl
jne 0x4237c0
mov eax, dword [ebp + 0xc]
push eax
call fcn.004235f0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4237c0
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x423784
push 1
mov esi, ebx
call fcn.00421bf0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4237c0
mov esi, dword [ebp + 8]
mov al, byte [ebp + 0x10]
test al, al
jne 0x4237d4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0046dbb0
mov ecx, dword [ebp + 8]
mov eax, esp
push esi
push ecx
push eax
call fcn.00406299
mov edx, dword [ebp + 0xc]
push eax
push ebx
push str._s_s.txt
push edx
push ebx
call fcn.0046988e
add esp, 0x14
mov eax, edi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
cmp al, 1
jne 0x4237be
mov eax, 0x28
call fcn.00469d10
mov edi, esp
test edi, edi
je 0x423894
add edi, 8
mov dword [edi - 8], 0xcccc
je 0x423894
push 0
push 0x20
push edi
push 0x1f
push str.RCCVN097JJ26YB99ZXYF75ZN533RGPZ
call fcn.004214f0
add esp, 0x14
mov dword [ebp - 8], eax
test eax, eax
jne 0x42389b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0046dbb0
mov eax, esp
push esi
push edi
push eax
call fcn.00406299
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0046dbb0
mov ecx, dword [ebp + 8]
mov eax, esp
push esi
push ecx
push eax
call fcn.00406299
mov edx, dword [ebp - 0xc]
push edx
push eax
mov eax, dword [ebp + 0xc]
push ebx
push str._s_s._s
push eax
push ebx
call fcn.0046988e
add esp, 0x18
push edi
call fcn.00434320
mov eax, dword [ebp - 8]
add esp, 4
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], 8
push edi
call fcn.00434320
mov eax, dword [ebp - 8]
add esp, 4
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
Function at 0x4238c0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x224
mov eax, dword [0x4a86f0]
xor eax, esp
mov dword [esp + 0x220], eax
mov eax, dword [esp + 0x238]
mov ecx, dword [esp + 0x240]
mov edx, dword [esp + 0x244]
push ebx
push ebp
mov ebp, dword [esp + 0x234]
push esi
push edi
mov edi, dword [esp + 0x238]
mov dword [esp + 0x20], eax
xor eax, eax
push 0x206
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x32]
push ecx
mov dword [esp + 0x28], edx
mov dword [edi], 0xffffffff
mov byte [esp + 0x1f], 0
mov word [esp + 0x34], ax
call fcn.0046a390
mov edx, dword [esp + 0x258]
push edx
push 0x104
xor bl, bl
push ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0x2c], bl
call fcn.00423720
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4239bb
lea eax, [esp + 0x28]
mov bl, 1
push eax
mov byte [esp + 0x18], bl
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [esp + 0x240], 0x40000000
mov dword [esp + 0x24], eax
jne 0x4239a4
test eax, eax
je 0x4239a4
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42399c
test al, 0x21
je 0x4239a4
and eax, 0xffffffde
push eax
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4239a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp byte [esp + 0x24c], 1
jne 0x4239bb
cmp dword [esp + 0x24], 0
jne 0x4239bb
mov bl, 2
mov byte [esp + 0x14], bl
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4239d7
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x30]
push ecx
push ebp
call eax
mov esi, eax
test bl, bl
je 0x423a27
mov edx, dword [esp + 0x244]
mov eax, dword [esp + 0x240]
push 0
push 0x80
push edx
push 0
push 0
or eax, 0x80000000
push eax
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi], 0xffffffff
mov esi, eax
jne 0x423a2c
test dword [esp + 0x240], 0x40000000
setne al
add al, 5
jmp 0x423a30
mov byte [esp + 0x13], 0x29
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x423a3a
mov byte [ecx], al
mov ecx, dword [esp + 0x230]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004698aa
add esp, 0x224
ret
Function at 0x423a60
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4a86f0]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.0046a390
mov edx, dword [esp + 0x228]
push edx
push 0x104
push esi
lea ecx, [esp + 0x20]
call fcn.00423720
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x423b00
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x423af8
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, 0x21
je 0x423ae5
and eax, 0xffffffde
push eax
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x423ae5
call edi
mov esi, eax
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x423b00
call edi
jmp 0x423afe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00416a10
mov ecx, dword [esp + 0x210]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.004698aa
add esp, 0x20c
ret

Function at 0x423bc0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc8
mov eax, dword [0x4a86f0]
xor eax, esp
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xcc]
push esi
push edi
push 0
push 0
push 0
push 0
push 2
push 0x40000000
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004238c0
mov esi, dword [esp + 0x28]
add esp, 0x20
mov edi, eax
cmp esi, 0xffffffff
je 0x423c72
push 0x10
push 1
push str._u._02.2u
lea ecx, [esp + 0x18]
push 0x20
push ecx
call fcn.0046988e
lea edx, [esp + 0x20]
push edx
push str.version_s
lea eax, [esp + 0x68]
push 0x40
push eax
call fcn.0046988e
lea eax, [esp + 0x70]
add esp, 0x24
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x423c40
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 0xc]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x58]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x423c72
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xcc]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.004698aa
add esp, 0xc8
ret
Function at 0x425cb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x4cafd0]
and eax, 7
dec eax
push ebx
push esi
cmp eax, 6
ja case.default.0x425cc4
jmp dword [eax*4 + 0x425f50]
mov eax, dword [0x4aa604]
mov ecx, dword [0x4aa600]
push 0
push 0x41a7
push eax
push ecx
call fcn.0046d990
push 0
push closesocket
push edx
push eax
call fcn.00484a30
lea ecx, [eax - 1]
mov dword [0x4aa600], eax
mov eax, ecx
shr eax, 0xc
mov dword [0x4aa604], edx
movzx edx, al
mov eax, dword [edx*4 + 0x4cba70]
mov dword [edx*4 + 0x4cba70], ecx
jmp 0x425f34
mov edx, dword [0x4aa60c]
mov eax, dword [0x4aa608]
push 0
push 0x10dcd
push edx
push eax
call fcn.0046d990
add eax, 1
adc edx, 0
xor edx, edx
mov dword [0x4aa608], eax
mov dword [0x4aa60c], edx
shr eax, 1
jmp 0x425f34
mov ecx, dword [0x4aa614]
mov edx, dword [0x4aa610]
push 0
push 0x10dcd
push ecx
push edx
call fcn.0046d990
add eax, 1
adc edx, 0
mov dword [0x4aa610], eax
shr eax, 1
xor edx, edx
mov ecx, eax
shr ecx, 0xc
movzx ecx, cl
mov dword [0x4aa614], edx
mov edx, dword [ecx*4 + 0x4cb670]
mov dword [ecx*4 + 0x4cb670], eax
mov eax, edx
jmp 0x425f34
mov eax, dword [0x4aa61c]
mov ecx, dword [0x4aa618]
push 0
push 0x19660d
push eax
push ecx
call fcn.0046d990
add eax, 0x3c6ef35f
adc edx, 0
xor edx, edx
mov dword [0x4aa618], eax
mov dword [0x4aa61c], edx
shr eax, 1
jmp 0x425f34
mov edx, dword [0x4aa624]
mov eax, dword [0x4aa620]
push 0
push 0x19660d
push edx
push eax
call fcn.0046d990
add eax, 0x3c6ef35f
adc edx, 0
mov dword [0x4aa620], eax
shr eax, 1
xor edx, edx
mov ecx, eax
shr ecx, 0xc
movzx ecx, cl
mov dword [0x4aa624], edx
mov edx, dword [ecx*4 + 0x4cb270]
mov dword [ecx*4 + 0x4cb270], eax
mov eax, edx
jmp 0x425f34
movzx eax, byte [0x4aa628]
mov bl, byte [0x4cbe70]
mov ecx, dword [eax*8 + 0x4cb0b8]
mov edx, dword [eax*8 + 0x4cb0bc]
movzx esi, bl
add ecx, dword [esi*8 + 0x4cb0b8]
push 0
adc edx, dword [esi*8 + 0x4cb0bc]
push closesocket
push edx
push ecx
call fcn.00484a30
inc bl
mov dword [esi*8 + 0x4cb0b8], eax
mov dword [esi*8 + 0x4cb0bc], edx
mov eax, dword [esi*8 + 0x4cb0b8]
mov byte [0x4cbe70], bl
cmp bl, 0x37
jne 0x425e7f
mov byte [0x4cbe70], 0
mov cl, byte [0x4aa628]
inc cl
mov byte [0x4aa628], cl
cmp cl, 0x37
jne 0x425f34
mov byte [0x4aa628], 0
jmp 0x425f34
mov cl, byte [0x4cbe71]
mov bl, byte [0x4aa629]
movzx esi, cl
movzx eax, bl
mov eax, dword [eax*4 + 0x4cafd8]
xor eax, dword [esi*4 + 0x4cafd8]
push edi
xor edx, edx
mov edi, closesocket
div edi
inc cl
mov byte [0x4cbe71], cl
pop edi
mov eax, edx
mov dword [esi*4 + 0x4cafd8], eax
cmp cl, 0x37
jne 0x425eea
mov byte [0x4cbe71], 0
inc bl
mov byte [0x4aa629], bl
cmp bl, 0x37
jne 0x425f34
mov byte [0x4aa629], 0
jmp 0x425f34
mov ecx, dword [0x4aa5fc]
mov edx, dword [0x4aa5f8]
push 0
push 0x41a7
push ecx
push edx
call fcn.0046d990
push 0
push closesocket
push edx
push eax
call fcn.00484a30
mov dword [0x4aa5f8], eax
mov dword [0x4aa5fc], edx
dec eax
pop esi
mov dword [0x4cafd0], eax
pop ebx
cmp eax, 0x7ffffffd
jbe 0x425f4c
call fcn.00425cb0
mov eax, dword [0x4cafd0]
ret
Function at 0x4260b0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x104
mov eax, dword [0x4a86f0]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x108]
push ebx
mov ebx, dword [esp + 0x114]
push ebp
push esi
mov esi, dword [esp + 0x118]
xor ebp, ebp
push edi
mov edi, dword [esp + 0x124]
mov dword [esi], 0xffffffff
test eax, eax
je 0x426102
cmp byte [eax], 0
je 0x426102
push eax
push 0x100
lea eax, [esp + 0x18]
push eax
jmp 0x426111
push str.www.avanquest.com
push 0x100
lea ecx, [esp + 0x18]
push ecx
call fcn.0046a4e2
add esp, 0xc
test edi, edi
je 0x426137
mov eax, dword [esp + 0x128]
test eax, eax
je 0x426137
lea edx, [esp + 0x10]
push edx
push eax
push edi
call fcn.0046a4e2
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x42616b
movsx ecx, word [edi + 0xa]
mov edx, dword [edi + 0xc]
mov eax, dword [edx]
push ecx
push eax
push esi
call fcn.00469d40
add esp, 0xc
mov eax, ebp
test ebx, ebx
je 0x426193
mov cx, word [edi + 8]
mov word [ebx], cx
jmp 0x426193
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x426185
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x426193
test ebx, ebx
je 0x426191
mov eax, 2
mov word [ebx], ax
mov eax, ebp
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004698aa
add esp, 0x104
ret
Function at 0x426750
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4a86f0]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, dword [esp + 0x120]
push edi
mov edi, dword [esp + 0x134]
push 0x110
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x14], 0x114
call fcn.0046a390
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xc], 5
push edi
jb 0x4267c3
push esi
call fcn.00426540
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004698aa
add esp, 0x118
ret
mov edx, dword [esp + 0x134]
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0x12c]
push edx
push eax
push ecx
push esi
call fcn.004261b0
mov ecx, dword [esp + 0x130]
add esp, 0x14
pop edi
pop esi
xor ecx, esp
call fcn.004698aa
add esp, 0x118
ret
Function at 0x427d90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x427ddb
push edi
push str.InstallToolbarRemote__s___File_doesnt_exist_
call fcn.0045f520
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call fcn.0046a390
push esi
push str._ctid_s__s__openuninstallpageFALSE__openwelcomedialogFALSE
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.0046988e
add esp, 0x1c
lea eax, [ebp - 0x804]
cmp byte [ebp + 0x14], 3
jne 0x427e23
push str.__ff
jmp 0x427e28
push str.__ie
push 0x400
push eax
call fcn.004694b4
add esp, 0xc
lea eax, [ebp - 0x804]
cmp dword [ebp + 0x18], 0
je 0x427e49
push str.__DefaultSearchTRUE
jmp 0x427e4e
push str.__DefaultSearchFALSE
push 0x400
push eax
call fcn.004694b4
add esp, 0xc
lea eax, [ebp - 0x804]
cmp dword [ebp + 0x1c], 0
je 0x427e6f
push str.__StartPageTRUE
jmp 0x427e74
push str.__StartPageFALSE
push 0x400
push eax
call fcn.004694b4
add esp, 0xc
mov dword [ebp - 0x808], 0
lea eax, [ebp - 0x808]
push 0
push eax
push 1
push 1
push 0x487854
push 0x487854
lea eax, [ebp - 0x804]
push eax
push edi
push ebx
call fcn.0045cf50
mov esi, eax
lea eax, [ebp - 0x804]
push esi
push eax
push edi
push ebx
push str.InstallToolbarRemote__d___s___s___End__d_
call fcn.0045f520
mov ecx, dword [ebp - 4]
add esp, 0x38
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004698aa
mov esp, ebp
pop ebp
ret

Function at 0x429c00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x488c68
push 0x83
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x429c46
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x429c46
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
test ecx, ecx
jne 0x429c5a
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.CheckDataRes____No_DATA_Resource_found_
call fcn.0045f520
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp dword [ebp + 0x10], 0
je 0x429c67
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.CheckDataRes____DATA_Resource_found_
call fcn.0045f520
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x429c80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push dword [ebp + 0x10]
mov dword [ebp - 8], ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00449540
mov edi, eax
add esp, 0x10
test edi, edi
je 0x429da0
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x429da0
push esi
mov esi, dword [ebp - 8]
push esi
push dword [ebp + 0x14]
mov dword [ebp - 4], ebx
push str.ExtractRes__s___LgData_d_oct
call fcn.0045f520
add esp, 0xc
cmp esi, 0x100000
jbe 0x429d81
mov dword [ebp - 0x10], ebx
mov eax, 0x100000
test esi, esi
je 0x429d96
cmp dword [0x4c2e50], 0
jne 0x429d96
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
push ebx
push dword [ebp - 4]
push str.ExtractRes_____WriteFile__d____d
call fcn.0045f520
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, dword [ebp - 4]
mov ecx, 0x4a8038
mov dword [ebp - 0x10], eax
push 0
push eax
call fcn.00430700
cmp esi, 0x100000
jbe 0x429d96
sub esi, 0x100000
mov ecx, 0x100000
cmp esi, 0x100000
mov eax, esi
cmova eax, ecx
add edi, dword [ebp - 4]
test esi, esi
jne 0x429d03
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42be10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x120]
push esi
push edi
push 0x11c
xor edi, edi
push edi
push eax
call fcn.0046a390
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x120]
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
push eax
call esi
test eax, eax
jne 0x42be85
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call esi
test eax, eax
jne 0x42be85
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
test esi, 0x80000
je 0x42bea9
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jb 0x42bea4
cmp dword [ebp - 0x118], 1
jae 0x42bea9
cmp eax, 6
jbe 0x42bed1
push str.User32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42bed1
push str.AnimateWindow
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42bed1
push esi
push dword [ebp + 0xc]
push ebx
call eax
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004698aa
mov esp, ebp
pop ebp
ret

Function at 0x42c370
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0046a390
add esp, 0xc
test ebx, ebx
jle 0x42c487
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0046bf5a
add esp, 0xc
cmp word [ebp + ebx*2 - 0x20e], 0x5c
jne 0x42c3f9
lea eax, [ebx*2 - 2]
cmp eax, 0x208
jae 0x42c49a
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
cmp word [ebp - 0x20c], 0
jne 0x42c416
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42c487
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0046cd13
mov edi, eax
add esp, 8
test edi, edi
je 0x42c461
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042c370
mov esi, eax
add esp, 4
mov eax, 0x5c
mov word [edi], ax
test esi, esi
je 0x42c487
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
lea eax, [ebp - 0x20c]
push esi
push eax
push str.CreateAllDirectory__s____d
call fcn.0045f520
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004698aa
mov esp, ebp
pop ebp
ret
call fcn.0046be7e
int3
Function at 0x42c4a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ebx
push edi
mov edi, 1
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x42c4c3
push 0x103
mov byte [ebp - 0x108], al
sub esi, ecx
lea eax, [ebp - 0x107]
push 0
push eax
call fcn.0046a390
add esp, 0xc
test esi, esi
je 0x42c595
push ebx
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0046a4e2
add esp, 0xc
cmp byte [ebp + esi - 0x109], 0x5c
jne 0x42c524
dec esi
cmp esi, 0x104
jae 0x42c5a8
mov byte [ebp + esi - 0x108], 0
cmp byte [ebp - 0x108], 0
jne 0x42c540
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42c595
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.0046ca70
mov esi, eax
add esp, 8
test esi, esi
je 0x42c584
lea eax, [ebp - 0x108]
mov byte [esi], 0
push eax
call fcn.0042c4a0
mov edi, eax
mov byte [esi], 0x5c
add esp, 4
test edi, edi
je 0x42c595
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004698aa
mov esp, ebp
pop ebp
ret
call fcn.0046be7e
int3

Function at 0x42c5b0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 8]
push 0
push 0
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x42c60c
lea eax, [ebp - 0x20c]
push eax
push str.CreateFreeDirectory____SHGetFolderPath__s__failed_
call fcn.0045f520
add esp, 8
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
cmp word [esi], 0x5c
je 0x42c624
push 0x488db8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x5c
push esi
call fcn.0046cba7
add esp, 8
test eax, eax
je 0x42c66d
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0046cd13
mov esi, eax
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042c870
mov eax, 0x5c
add esp, 0xc
mov word [esi], ax
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42c68d
push str.CreateFreeDirectory____CreateDirectory_failed_
call fcn.0045f880
add esp, 4
push 3
lea eax, [ebp - 0x20c]
push 0x10000000
push eax
call fcn.0042bc10
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop esi
call fcn.004698aa
mov esp, ebp
pop ebp
ret