joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f90c
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
sub esp, 0x11c
lea ebp, [esp - 4]
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push 0x2c
mov eax, 0x4c42f4
call fcn.0043e6b2
mov edi, dword [ebp + 0x128]
lea eax, [ebp - 0x38]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x11c
lea eax, [ebp]
push ebx
push eax
call fcn.0043db40
add esp, 0xc
lea eax, [ebp]
push eax
mov dword [ebp], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x4e3194
mov ecx, edi
call fcn.004015d0
mov eax, dword [ebp + 4]
xor ecx, ecx
inc ecx
sub eax, 4
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ecx
je 0x41fa96
dec eax
je 0x41fa5e
dec eax
je 0x41f9c6
sub eax, 4
je 0x41f9a8
push str.Unknown_Operating_System
jmp 0x41facc
cmp byte [ebp + 0x11a], cl
mov ecx, edi
jne 0x41f9bc
push str.Microsoft_Windows_10_Insider_Preview
jmp 0x41face
push str.Microsoft_Windows_Server_Technical_Preview
jmp 0x41face
mov eax, dword [ebp + 8]
sub eax, ebx
je 0x41fa46
dec eax
je 0x41fa28
dec eax
je 0x41f9f1
cmp byte [ebp + 0x11a], cl
mov ecx, edi
jne 0x41f9e7
push str.Microsoft_Windows_8.1
jmp 0x41face
push str.Microsoft_Windows_Server_2012_R2
jmp 0x41face
cmp byte [ebp + 0x11a], cl
jne 0x41fa1e
push 4
push 6
call fcn.0041f401
test eax, eax
pop ecx
pop ecx
mov ecx, edi
je 0x41fa14
push str.Microsoft_Windows_10
jmp 0x41face
push str.Microsoft_Windows_8
jmp 0x41face
push str.Microsoft_Windows_Server_2012
jmp 0x41facc
cmp byte [ebp + 0x11a], cl
mov ecx, edi
jne 0x41fa3c
push str.Microsoft_Windows_7
jmp 0x41face
push str.Microsoft_Windows_Server_2008_R2
jmp 0x41face
cmp byte [ebp + 0x11a], cl
mov ecx, edi
jne 0x41fa57
push str.Microsoft_Windows_Vista
jmp 0x41face
push str.Microsoft_Windows_Server_2008
jmp 0x41face
mov eax, dword [ebp + 8]
sub eax, ebx
je 0x41fa8f
dec eax
je 0x41fa88
dec eax
jne 0x41fad3
cmp byte [ebp + 0x11a], cl
jne 0x41fa81
cmp word [ebp - 0x38], 9
jne 0x41fa81
push str.Microsoft_Windows_XP_Professional_x64_Edition
jmp 0x41facc
push str.Microsoft_Windows_Server_2003
jmp 0x41facc
push str.Microsoft_Windows_XP
jmp 0x41facc
push str.Microsoft_Windows_2000
jmp 0x41facc
cmp dword [ebp + 8], ebx
je 0x41fab5
cmp dword [ebp + 8], 0xa
je 0x41faae
cmp dword [ebp + 8], 0x5a
jne 0x41fad3
push str.Microsoft_Windows_Me
jmp 0x41facc
push str.Microsoft_Windows_98
jmp 0x41facc
cmp dword [ebp + 0x10], 2
jne 0x41fac2
push str.Microsoft_Windows_NT_4.0
jmp 0x41facc
cmp dword [ebp + 0x10], ecx
jne 0x41fad3
push str.Microsoft_Windows_95
mov ecx, edi
call fcn.00403360
cmp dword [ebp + 0x12c], ebx
je 0x41faf2
push 0x4cc014
mov ecx, edi
call fcn.00403470
lea eax, [ebp + 0x14]
push eax
mov ecx, edi
call fcn.00403470
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.0043db25
add ebp, 0x120
leave
ret
Function at 0x41fb17
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x420658
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xb94]
sub esp, 0xc14
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0xb90], eax
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp + 0x782]
push edi
push eax
mov word [ebp + 0x780], di
call fcn.0043db40
lea eax, [ebp + 0x780]
push str.C:log_
push eax
call fcn.0043dd0e
push 0x3e6
lea eax, [ebp - 0x76]
push edi
push eax
mov word [ebp - 0x78], di
call fcn.0043db40
lea eax, [ebp + 0x780]
push eax
lea eax, [ebp + 0x578]
push str._sgswb.log
push eax
call fcn.0043ec44
push esi
lea eax, [ebp + 0x372]
push edi
push eax
mov word [ebp + 0x370], di
call fcn.0043db40
push esi
lea eax, [ebp + 0x98a]
push edi
push eax
mov word [ebp + 0x988], di
call fcn.0043db40
add esp, 0x44
push 0x104
lea eax, [ebp + 0x988]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x988]
push 0x5c
push eax
call fcn.0043eac6
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
mov word [eax], di
pop ecx
lea eax, [ebp + 0x578]
push eax
call esi
test eax, eax
je 0x420830
lea eax, [ebp + 0x988]
push ebx
push eax
call fcn.0043dd2a
lea eax, [ebp + eax*2 + 0x98a]
push eax
lea eax, [ebp + 0x370]
push eax
call fcn.0043dd0e
lea eax, [ebp + 0x370]
push eax
lea eax, [ebp + 0x780]
push eax
lea eax, [ebp + 0x578]
push str._s_s.txt
push eax
call fcn.0043ec44
lea eax, [ebp + 0xba0]
push eax
push dword [ebp + 0xb9c]
lea eax, [ebp - 0x78]
push 0x1f3
push eax
call fcn.00441e9a
add esp, 0x2c
lea eax, [ebp + 0x578]
push eax
mov word [ebp + 0x36e], di
mov dword [ebp - 0x7c], edi
call esi
xor ebx, ebx
inc ebx
test eax, eax
je 0x4207b2
mov dword [ebp - 0x7c], ebx
lea eax, [ebp + 0x578]
push 0x4cd668
push eax
call fcn.0043edd2
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x42082f
cmp dword [ebp - 0x7c], edi
jne 0x4207e7
push esi
push 2
lea eax, [ebp - 0x80]
push ebx
push eax
mov dword [ebp - 0x80], 0xfeff
call fcn.0043d426
add esp, 0x10
lea eax, [ebp - 0x78]
push eax
call fcn.0043dd2a
push esi
add eax, eax
push eax
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.0043d426
push esi
push 2
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x7c], 0xd
call fcn.0043d426
push esi
push 2
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x7c], 0xa
call fcn.0043d426
push esi
call fcn.0043cf65
add esp, 0x38
pop ebx
mov ecx, dword [ebp + 0xb90]
pop edi
xor ecx, ebp
pop esi
call fcn.0043db25
add ebp, 0xb94
leave
ret
Function at 0x420aaf
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x5c0]
sub esp, 0x640
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x5bc], eax
mov eax, dword [ebp + 0x5c8]
push ebx
mov dword [ebp - 0x78], eax
push esi
push edi
xor eax, eax
xor ebx, ebx
mov word [ebp + 0x5a8], bx
lea edi, [ebp + 0x5aa]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x206
push edi
lea eax, [ebp + 0x3a2]
push ebx
push eax
mov word [ebp + 0x3a0], bx
call fcn.0043db40
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp + 0x3a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4e3178
call fcn.0043dd2a
push eax
lea eax, [ebp + 0x3a0]
push eax
lea eax, [ebp + 0x5a8]
push eax
call fcn.0043de9b
push edi
lea eax, [ebp + 0x19a]
push ebx
push eax
mov word [ebp + 0x198], bx
call fcn.0043db40
push edi
lea eax, [ebp - 0x6e]
push ebx
push eax
mov word [ebp - 0x70], bx
call fcn.0043db40
add esp, 0x28
push esi
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
lea eax, [ebp + 0x198]
push eax
lea eax, [ebp + 0x5a8]
push eax
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
pop edi
pop esi
pop ebx
je 0x420bad
push dword [ebp - 0x74]
push str._08X
push dword [ebp - 0x78]
call fcn.0043ec44
add esp, 0xc
jmp 0x420bbc
push 0x4e3194
push dword [ebp - 0x78]
call fcn.0043dd0e
pop ecx
pop ecx
mov ecx, dword [ebp + 0x5bc]
xor ecx, ebp
call fcn.0043db25
add ebp, 0x5c0
leave
ret 4
Function at 0x420bf9
Capabilities:
Check if file exists
Create directory
Get common file path
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0xbb8]
sub esp, 0xc38
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0xbb4], eax
push ebx
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp + 0x59e]
push edi
push eax
mov dword [ebp - 0x80], ecx
mov word [ebp + 0x59c], di
call fcn.0043db40
push esi
lea eax, [ebp + 0x396]
push edi
push eax
mov word [ebp + 0x394], di
call fcn.0043db40
push esi
lea eax, [ebp + 0x18e]
push edi
push eax
mov word [ebp + 0x18c], di
call fcn.0043db40
push esi
lea eax, [ebp - 0x7a]
push edi
push eax
mov word [ebp - 0x7c], di
call fcn.0043db40
push esi
lea eax, [ebp + 0x7a6]
push edi
push eax
mov word [ebp + 0x7a4], di
call fcn.0043db40
push esi
lea eax, [ebp + 0x9ae]
push edi
push eax
mov word [ebp + 0x9ac], di
call fcn.0043db40
add esp, 0x48
push edi
push 0x2b
lea eax, [ebp + 0x7a4]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp + 0x7a4]
push str._shiqiang_
push eax
call fcn.0043dce4
pop ecx
pop ecx
lea eax, [ebp + 0x7a4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x420cdf
push edi
lea eax, [ebp + 0x7a4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp + 0x7a4]
push eax
lea eax, [ebp + 0x9ac]
push eax
call fcn.0043dd0e
lea eax, [ebp + 0x9ac]
push str.wnsoft.ini
push eax
call fcn.0043dce4
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0x10
lea eax, [ebp + 0x9ac]
push eax
push 0x104
lea eax, [ebp + 0x59c]
push eax
mov ebx, 0x4e3194
push ebx
push str.OnlyIdentifier1
mov edi, str.Globals
push edi
call esi
lea eax, [ebp + 0x9ac]
push eax
push 0x104
lea eax, [ebp + 0x394]
push eax
push ebx
push str.OnlyIdentifier2
push edi
call esi
lea eax, [ebp + 0x9ac]
push eax
push 0x104
lea eax, [ebp + 0x18c]
push eax
push ebx
push str.OnlyIdentifier3
push edi
call esi
lea eax, [ebp + 0x9ac]
push eax
push 0x104
lea eax, [ebp - 0x7c]
push eax
push ebx
push str.OnlyIdentifier4
push edi
call esi
lea eax, [ebp + 0x59c]
push eax
call fcn.0043dd2a
mov esi, eax
lea eax, [ebp + 0x394]
push eax
call fcn.0043dd2a
mov edi, eax
lea eax, [ebp + 0x18c]
push eax
call fcn.0043dd2a
mov ebx, eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0043dd2a
add esp, 0x10
test esi, esi
je 0x420e1b
test edi, edi
je 0x420e1b
test ebx, ebx
je 0x420e1b
test eax, eax
je 0x420e1b
mov esi, dword [ebp - 0x80]
lea eax, [ebp + 0x59c]
push eax
push dword [esi]
call fcn.0043dd0e
lea eax, [ebp + 0x394]
push eax
mov eax, dword [esi]
add eax, 0x208
push eax
call fcn.0043dd0e
lea eax, [ebp + 0x18c]
push eax
mov eax, dword [esi]
add eax, 0x410
push eax
call fcn.0043dd0e
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [esi]
add eax, 0x618
push eax
call fcn.0043dd0e
xor eax, eax
add esp, 0x20
inc eax
jmp 0x420e1d
xor eax, eax
mov ecx, dword [ebp + 0xbb4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043db25
add ebp, 0xbb8
leave
ret
Function at 0x420e35
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9b8]
sub esp, 0xa38
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x9b4], eax
push ebx
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp + 0x5a6]
push edi
push eax
mov dword [ebp - 0x80], ecx
mov word [ebp + 0x5a4], di
call fcn.0043db40
push esi
lea eax, [ebp + 0x39e]
push edi
push eax
mov word [ebp + 0x39c], di
call fcn.0043db40
push esi
lea eax, [ebp - 0x72]
push edi
push eax
mov word [ebp - 0x74], di
call fcn.0043db40
push esi
lea eax, [ebp + 0x196]
push edi
push eax
mov word [ebp + 0x194], di
call fcn.0043db40
push esi
lea eax, [ebp + 0x7ae]
push edi
push eax
mov word [ebp + 0x7ac], di
call fcn.0043db40
lea eax, [ebp + 0x7ac]
push 0x4ca120
push eax
call fcn.0043dd0e
add esp, 0x44
lea eax, [ebp + 0x7ac]
push str.Clover
push eax
call fcn.0043dce4
lea eax, [ebp + 0x7ac]
push 0x4e3174
push eax
call fcn.0043dce4
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push edi
lea eax, [ebp + 0x7ac]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x420f7f
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x5a4]
push eax
push edi
push edi
push str.OnlyIdentifier1
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], 0x104
call esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x39c]
push eax
push edi
push edi
push str.OnlyIdentifier2
push dword [ebp - 0x7c]
call esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push edi
push edi
push str.OnlyIdentifier3
push dword [ebp - 0x7c]
call esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x194]
push eax
push edi
push edi
push str.OnlyIdentifier4
push dword [ebp - 0x7c]
call esi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0x5a4]
push eax
call fcn.0043dd2a
mov esi, eax
lea eax, [ebp + 0x39c]
push eax
call fcn.0043dd2a
mov ebx, eax
lea eax, [ebp - 0x74]
push eax
call fcn.0043dd2a
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x194]
push eax
call fcn.0043dd2a
add esp, 0x10
cmp esi, edi
je 0x421022
cmp ebx, edi
je 0x421022
cmp dword [ebp - 0x78], edi
je 0x421022
cmp eax, edi
je 0x421022
mov esi, dword [ebp - 0x80]
lea eax, [ebp + 0x5a4]
push eax
push dword [esi]
call fcn.0043dd0e
lea eax, [ebp + 0x39c]
push eax
mov eax, dword [esi]
add eax, 0x208
push eax
call fcn.0043dd0e
lea eax, [ebp - 0x74]
push eax
mov eax, dword [esi]
add eax, 0x410
push eax
call fcn.0043dd0e
lea eax, [ebp + 0x194]
push eax
mov eax, dword [esi]
add eax, 0x618
push eax
call fcn.0043dd0e
xor eax, eax
add esp, 0x20
inc eax
jmp 0x421024
xor eax, eax
mov ecx, dword [ebp + 0x9b4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043db25
add ebp, 0x9b8
leave
ret
Function at 0x42103c
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x394]
sub esp, 0x414
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x390], eax
push ebx
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp + 0x18a]
push edi
push eax
mov ebx, ecx
mov word [ebp + 0x188], di
call fcn.0043db40
push esi
lea eax, [ebp - 0x7e]
push edi
push eax
mov word [ebp - 0x80], di
call fcn.0043db40
add esp, 0x18
push edi
push 0x2b
lea eax, [ebp + 0x188]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp + 0x188]
push str._shiqiang_
push eax
call fcn.0043dce4
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
pop ecx
lea eax, [ebp + 0x188]
push eax
call esi
test eax, eax
jne 0x4210cf
push edi
lea eax, [ebp + 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp + 0x188]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0043dd0e
lea eax, [ebp - 0x80]
push str.wnsoft.ini
push eax
call fcn.0043dce4
add esp, 0x10
lea eax, [ebp + 0x188]
push eax
call esi
test eax, eax
je 0x421152
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x80]
push eax
push dword [ebx]
mov edi, str.Globals
push str.OnlyIdentifier1
push edi
call esi
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebx]
add eax, 0x208
push eax
push str.OnlyIdentifier2
push edi
call esi
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebx]
add eax, 0x410
push eax
push str.OnlyIdentifier3
push edi
call esi
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebx]
add eax, 0x618
push eax
push str.OnlyIdentifier4
push edi
call esi
mov ecx, dword [ebp + 0x390]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043db25
add ebp, 0x394
leave
ret

Function at 0x42116a
Capabilities:
Set registry value

Disassembly:
push ecx
push ecx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push eax
mov edi, 0xf003f
push edi
xor ebp, ebp
push ebp
push str.software
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42122a
push ebp
lea eax, [esp + 0x10]
push eax
push ebp
push edi
push ebp
push ebp
push ebp
push str.ShiQiang
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x42122a
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
mov ebx, 0x104
push ebx
push dword [esi]
push 1
push ebp
push str.OnlyIdentifier1
push dword [esp + 0x24]
call edi
mov eax, dword [esi]
push ebx
add eax, 0x208
push eax
push 1
push ebp
push str.OnlyIdentifier2
push dword [esp + 0x24]
call edi
mov eax, dword [esi]
push ebx
add eax, 0x410
push eax
push 1
push ebp
push str.OnlyIdentifier3
push dword [esp + 0x24]
call edi
mov eax, dword [esi]
push ebx
add eax, 0x618
push eax
push 1
push ebp
push str.OnlyIdentifier4
push dword [esp + 0x24]
call edi
push dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [esp + 0x14]
call esi
pop ebx
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret
Function at 0x422998
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x14]
push eax
push 0
push esi
push 0x4228f2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x18], eax
pop esi
je 0x4229c7
cmp eax, 0xffffffff
je 0x4229c7
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
ret

Function at 0x4279cd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
cmp dword [0x50e9c8], edi
mov esi, ecx
je 0x427b13
cmp dword [esi + 0x20], 8
jb 0x4279f0
mov eax, dword [esi + 0xc]
jmp 0x4279f3
lea eax, [esi + 0xc]
push ebx
push 0x4ce55c
push eax
push dword [0x508994]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
je 0x427b12
push ebx
push dword [0x508994]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push dword [0x508994]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 0x42
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 4]
push dword [ebp - 8]
push eax
call fcn.0043d7c0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0xc]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push edi
push dword [ebp - 0xc]
call fcn.004264f9
cmp eax, edi
pop ecx
pop ecx
je 0x427b12
mov dword [esi + 4], eax
lea eax, [ebp + 8]
push eax
mov ecx, 0x50e9cc
call fcn.0042778d
mov ebx, dword [ebp + 8]
push edi
mov dword [eax], esi
push dword [0x508994]
push edi
push ebx
push edi
push edi
push edi
push SysReAllocString
push 0x80880000
push edi
push dword [0x508990]
push 0x80020
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push ebx
mov dword [esi + 0x24], eax
call edi
test eax, 0x10000000
jne 0x427ad8
mov byte [esi + 0x2c], 1
jmp 0x427afc
test eax, 0x21000000
je 0x427ae5
mov byte [esi + 0x2c], 5
jmp 0x427afc
push 8
push dword [esi + 0x24]
mov byte [esi + 0x2c], 7
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
mov ecx, esi
call fcn.00426e2d
push 0xfffffffffffffffc
push ebx
call edi
push 0x427802
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x28], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x4281a2
Capabilities:
Create thread

Disassembly:
mov eax, dword [ecx + 0x300]
cmp eax, 0xffffffff
je 0x4281b6
cmp eax, 1
je 0x4281b6
or eax, 0xffffffff
ret
xor eax, eax
push eax
push eax
push ecx
push 0x427e6a
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret
Function at 0x42830a
Capabilities:
Create directory

Disassembly:
push ebp
sub esp, 0x450
lea ebp, [esp - 4]
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x450], eax
push 8
mov eax, 0x4c4867
call fcn.0043e6b2
mov edi, dword [ebp + 0x45c]
xor ebx, ebx
cmp edi, ebx
jne 0x428361
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x450]
xor ecx, ebp
call fcn.0043db25
add ebp, 0x454
leave
ret 4
mov esi, 0xff
push esi
lea eax, [ebp + 0x351]
push ebx
push eax
mov byte [ebp + 0x350], bl
call fcn.0043db40
lea eax, [ebp + 0x350]
push edi
push eax
call fcn.0043ee00
push edi
mov dword [ebp - 0x14], ebx
call fcn.0043e020
add esp, 0x18
mov edi, eax
call fcn.00433fa2
push eax
lea ecx, [ebp - 0x10]
call fcn.004281d2
push esi
lea eax, [ebp + 0x251]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp + 0x250], bl
call fcn.0043db40
lea eax, [ebp + edi + 0x350]
add esp, 0xc
cmp byte [eax - 1], 0x5c
je 0x4283cd
mov byte [eax], 0x5c
cmp byte [ebp + 0x350], bl
je 0x428445
mov esi, dword [ebp - 0x14]
mov al, byte [ebp + esi + 0x350]
cmp al, 0x3a
jne 0x4283e7
inc esi
inc esi
jmp 0x428439
cmp al, 0x5c
jne 0x428438
push esi
lea eax, [ebp + 0x350]
push eax
lea eax, [ebp + 0x250]
push eax
call fcn.0043d7c0
add esp, 0xc
lea eax, [ebp + 0x250]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp + esi + 0x250], bl
call fcn.004282c0
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x428438
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x428448
inc esi
cmp byte [ebp + esi + 0x350], bl
mov dword [ebp - 0x14], esi
jne 0x4283d5
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040df24
mov eax, ebx
jmp 0x42833c
Function at 0x4286ac
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
xor esi, esi
push 0x206
lea eax, [ebp - 0x76]
push esi
push eax
mov word [ebp - 0x78], si
call fcn.0043db40
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push esi
push esi
push 0x25
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x428763
push 0x4ca5b8
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x428763
push ebx
push esi
lea eax, [ebp - 0x78]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
cmp ebx, esi
jbe 0x428762
push edi
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, esi
je 0x428761
push edi
push ebx
push esi
lea eax, [ebp - 0x78]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42875a
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0x4e3174
push edi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42875a
mov eax, dword [ebp - 0x7c]
mov esi, dword [eax + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop ebx
mov ecx, dword [ebp + 0x190]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043db25
add ebp, 0x194
leave
ret

Function at 0x42877b
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x240]
sub esp, 0x2c0
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x23c], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push dword [ebp + 0x248]
mov byte [ebp - 0x79], bl
push ebx
mov dword [ebp - 0x80], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x428806
push esi
push 0x2b0
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x78], ebx
call fcn.0043db40
add esp, 0xc
mov esi, 0x208
push esi
push 0x2b4
lea eax, [ebp - 0x78]
push eax
push ebx
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
setne byte [ebp - 0x79]
cmp byte [ebp - 0x79], bl
je 0x4287fc
push esi
lea eax, [ebp - 0x6c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_ILFree]
pop esi
mov ecx, dword [ebp + 0x23c]
mov al, byte [ebp - 0x79]
xor ecx, ebp
pop ebx
call fcn.0043db25
add ebp, 0x240
leave
ret 4