joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f880
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, 0x4c42db
call fcn.0043e6f2
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.0043db80
add esp, 0xc
lea eax, [ebp]
push eax
mov dword [ebp], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x4e31d4
mov ecx, edi
call fcn.004015a0
mov eax, dword [ebp + 4]
xor ecx, ecx
inc ecx
sub eax, 4
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ecx
je 0x41fa0a
dec eax
je 0x41f9d2
dec eax
je 0x41f93a
sub eax, 4
je 0x41f91c
push str.Unknown_Operating_System
jmp 0x41fa40
cmp byte [ebp + 0x11a], cl
mov ecx, edi
jne 0x41f930
push str.Microsoft_Windows_10_Insider_Preview
jmp 0x41fa42
push str.Microsoft_Windows_Server_Technical_Preview
jmp 0x41fa42
mov eax, dword [ebp + 8]
sub eax, ebx
je 0x41f9ba
dec eax
je 0x41f99c
dec eax
je 0x41f965
cmp byte [ebp + 0x11a], cl
mov ecx, edi
jne 0x41f95b
push str.Microsoft_Windows_8.1
jmp 0x41fa42
push str.Microsoft_Windows_Server_2012_R2
jmp 0x41fa42
cmp byte [ebp + 0x11a], cl
jne 0x41f992
push 4
push 6
call fcn.0041f375
test eax, eax
pop ecx
pop ecx
mov ecx, edi
je 0x41f988
push str.Microsoft_Windows_10
jmp 0x41fa42
push str.Microsoft_Windows_8
jmp 0x41fa42
push str.Microsoft_Windows_Server_2012
jmp 0x41fa40
cmp byte [ebp + 0x11a], cl
mov ecx, edi
jne 0x41f9b0
push str.Microsoft_Windows_7
jmp 0x41fa42
push str.Microsoft_Windows_Server_2008_R2
jmp 0x41fa42
cmp byte [ebp + 0x11a], cl
mov ecx, edi
jne 0x41f9cb
push str.Microsoft_Windows_Vista
jmp 0x41fa42
push str.Microsoft_Windows_Server_2008
jmp 0x41fa42
mov eax, dword [ebp + 8]
sub eax, ebx
je 0x41fa03
dec eax
je 0x41f9fc
dec eax
jne 0x41fa47
cmp byte [ebp + 0x11a], cl
jne 0x41f9f5
cmp word [ebp - 0x38], 9
jne 0x41f9f5
push str.Microsoft_Windows_XP_Professional_x64_Edition
jmp 0x41fa40
push str.Microsoft_Windows_Server_2003
jmp 0x41fa40
push str.Microsoft_Windows_XP
jmp 0x41fa40
push str.Microsoft_Windows_2000
jmp 0x41fa40
cmp dword [ebp + 8], ebx
je 0x41fa29
cmp dword [ebp + 8], 0xa
je 0x41fa22
cmp dword [ebp + 8], 0x5a
jne 0x41fa47
push str.Microsoft_Windows_Me
jmp 0x41fa40
push str.Microsoft_Windows_98
jmp 0x41fa40
cmp dword [ebp + 0x10], 2
jne 0x41fa36
push str.Microsoft_Windows_NT_4.0
jmp 0x41fa40
cmp dword [ebp + 0x10], ecx
jne 0x41fa47
push str.Microsoft_Windows_95
mov ecx, edi
call fcn.00403360
cmp dword [ebp + 0x12c], ebx
je 0x41fa66
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.0043db65
add ebp, 0x120
leave
ret
Function at 0x41fa8b
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 0x4205cc
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.0043db80
lea eax, [ebp + 0x780]
push str.C:log_
push eax
call fcn.0043dd4e
push 0x3e6
lea eax, [ebp - 0x76]
push edi
push eax
mov word [ebp - 0x78], di
call fcn.0043db80
lea eax, [ebp + 0x780]
push eax
lea eax, [ebp + 0x578]
push str._sgswb.log
push eax
call fcn.0043ec84
push esi
lea eax, [ebp + 0x372]
push edi
push eax
mov word [ebp + 0x370], di
call fcn.0043db80
push esi
lea eax, [ebp + 0x98a]
push edi
push eax
mov word [ebp + 0x988], di
call fcn.0043db80
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.0043eb06
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 0x4207a4
lea eax, [ebp + 0x988]
push ebx
push eax
call fcn.0043dd6a
lea eax, [ebp + eax*2 + 0x98a]
push eax
lea eax, [ebp + 0x370]
push eax
call fcn.0043dd4e
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.0043ec84
lea eax, [ebp + 0xba0]
push eax
push dword [ebp + 0xb9c]
lea eax, [ebp - 0x78]
push 0x1f3
push eax
call fcn.00441eda
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 0x420726
mov dword [ebp - 0x7c], ebx
lea eax, [ebp + 0x578]
push 0x4cd6a0
push eax
call fcn.0043ee12
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x4207a3
cmp dword [ebp - 0x7c], edi
jne 0x42075b
push esi
push 2
lea eax, [ebp - 0x80]
push ebx
push eax
mov dword [ebp - 0x80], 0xfeff
call fcn.0043d462
add esp, 0x10
lea eax, [ebp - 0x78]
push eax
call fcn.0043dd6a
push esi
add eax, eax
push eax
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.0043d462
push esi
push 2
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x7c], 0xd
call fcn.0043d462
push esi
push 2
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x7c], 0xa
call fcn.0043d462
push esi
call fcn.0043cfa1
add esp, 0x38
pop ebx
mov ecx, dword [ebp + 0xb90]
pop edi
xor ecx, ebp
pop esi
call fcn.0043db65
add ebp, 0xb94
leave
ret
Function at 0x420a23
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.0043db80
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp + 0x3a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4e31b8
call fcn.0043dd6a
push eax
lea eax, [ebp + 0x3a0]
push eax
lea eax, [ebp + 0x5a8]
push eax
call fcn.0043dedb
push edi
lea eax, [ebp + 0x19a]
push ebx
push eax
mov word [ebp + 0x198], bx
call fcn.0043db80
push edi
lea eax, [ebp - 0x6e]
push ebx
push eax
mov word [ebp - 0x70], bx
call fcn.0043db80
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 0x420b21
push dword [ebp - 0x74]
push str._08X
push dword [ebp - 0x78]
call fcn.0043ec84
add esp, 0xc
jmp 0x420b30
push 0x4e31d4
push dword [ebp - 0x78]
call fcn.0043dd4e
pop ecx
pop ecx
mov ecx, dword [ebp + 0x5bc]
xor ecx, ebp
call fcn.0043db65
add ebp, 0x5c0
leave
ret 4
Function at 0x420b6d
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.0043db80
push esi
lea eax, [ebp + 0x396]
push edi
push eax
mov word [ebp + 0x394], di
call fcn.0043db80
push esi
lea eax, [ebp + 0x18e]
push edi
push eax
mov word [ebp + 0x18c], di
call fcn.0043db80
push esi
lea eax, [ebp - 0x7a]
push edi
push eax
mov word [ebp - 0x7c], di
call fcn.0043db80
push esi
lea eax, [ebp + 0x7a6]
push edi
push eax
mov word [ebp + 0x7a4], di
call fcn.0043db80
push esi
lea eax, [ebp + 0x9ae]
push edi
push eax
mov word [ebp + 0x9ac], di
call fcn.0043db80
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.0043dd24
pop ecx
pop ecx
lea eax, [ebp + 0x7a4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x420c53
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.0043dd4e
lea eax, [ebp + 0x9ac]
push str.wnsoft.ini
push eax
call fcn.0043dd24
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, 0x4e31d4
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.0043dd6a
mov esi, eax
lea eax, [ebp + 0x394]
push eax
call fcn.0043dd6a
mov edi, eax
lea eax, [ebp + 0x18c]
push eax
call fcn.0043dd6a
mov ebx, eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0043dd6a
add esp, 0x10
test esi, esi
je 0x420d8f
test edi, edi
je 0x420d8f
test ebx, ebx
je 0x420d8f
test eax, eax
je 0x420d8f
mov esi, dword [ebp - 0x80]
lea eax, [ebp + 0x59c]
push eax
push dword [esi]
call fcn.0043dd4e
lea eax, [ebp + 0x394]
push eax
mov eax, dword [esi]
add eax, 0x208
push eax
call fcn.0043dd4e
lea eax, [ebp + 0x18c]
push eax
mov eax, dword [esi]
add eax, 0x410
push eax
call fcn.0043dd4e
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [esi]
add eax, 0x618
push eax
call fcn.0043dd4e
xor eax, eax
add esp, 0x20
inc eax
jmp 0x420d91
xor eax, eax
mov ecx, dword [ebp + 0xbb4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043db65
add ebp, 0xbb8
leave
ret
Function at 0x420da9
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.0043db80
push esi
lea eax, [ebp + 0x39e]
push edi
push eax
mov word [ebp + 0x39c], di
call fcn.0043db80
push esi
lea eax, [ebp - 0x72]
push edi
push eax
mov word [ebp - 0x74], di
call fcn.0043db80
push esi
lea eax, [ebp + 0x196]
push edi
push eax
mov word [ebp + 0x194], di
call fcn.0043db80
push esi
lea eax, [ebp + 0x7ae]
push edi
push eax
mov word [ebp + 0x7ac], di
call fcn.0043db80
lea eax, [ebp + 0x7ac]
push 0x4ca120
push eax
call fcn.0043dd4e
add esp, 0x44
lea eax, [ebp + 0x7ac]
push 0x4ca020
push eax
call fcn.0043dd24
lea eax, [ebp + 0x7ac]
push 0x4e31b4
push eax
call fcn.0043dd24
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 0x420ef3
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.0043dd6a
mov esi, eax
lea eax, [ebp + 0x39c]
push eax
call fcn.0043dd6a
mov ebx, eax
lea eax, [ebp - 0x74]
push eax
call fcn.0043dd6a
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x194]
push eax
call fcn.0043dd6a
add esp, 0x10
cmp esi, edi
je 0x420f96
cmp ebx, edi
je 0x420f96
cmp dword [ebp - 0x78], edi
je 0x420f96
cmp eax, edi
je 0x420f96
mov esi, dword [ebp - 0x80]
lea eax, [ebp + 0x5a4]
push eax
push dword [esi]
call fcn.0043dd4e
lea eax, [ebp + 0x39c]
push eax
mov eax, dword [esi]
add eax, 0x208
push eax
call fcn.0043dd4e
lea eax, [ebp - 0x74]
push eax
mov eax, dword [esi]
add eax, 0x410
push eax
call fcn.0043dd4e
lea eax, [ebp + 0x194]
push eax
mov eax, dword [esi]
add eax, 0x618
push eax
call fcn.0043dd4e
xor eax, eax
add esp, 0x20
inc eax
jmp 0x420f98
xor eax, eax
mov ecx, dword [ebp + 0x9b4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043db65
add ebp, 0x9b8
leave
ret
Function at 0x420fb0
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.0043db80
push esi
lea eax, [ebp - 0x7e]
push edi
push eax
mov word [ebp - 0x80], di
call fcn.0043db80
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.0043dd24
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
pop ecx
lea eax, [ebp + 0x188]
push eax
call esi
test eax, eax
jne 0x421043
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.0043dd4e
lea eax, [ebp - 0x80]
push str.wnsoft.ini
push eax
call fcn.0043dd24
add esp, 0x10
lea eax, [ebp + 0x188]
push eax
call esi
test eax, eax
je 0x4210c6
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.0043db65
add ebp, 0x394
leave
ret

Function at 0x4210de
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 0x42119e
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 0x42119e
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 0x42294b
Capabilities:
Create thread

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

Function at 0x4279d9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
cmp dword [0x50ea00], edi
mov esi, ecx
je 0x427b1f
cmp dword [esi + 0x20], 8
jb 0x4279fc
mov eax, dword [esi + 0xc]
jmp 0x4279ff
lea eax, [esi + 0xc]
push ebx
push 0x4ce594
push eax
push dword [0x508998]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
je 0x427b1e
push ebx
push dword [0x508998]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push dword [0x508998]
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.0043d800
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.00426505
cmp eax, edi
pop ecx
pop ecx
je 0x427b1e
mov dword [esi + 4], eax
lea eax, [ebp + 8]
push eax
mov ecx, 0x50ea04
call fcn.00427799
mov ebx, dword [ebp + 8]
push edi
mov dword [eax], esi
push dword [0x508998]
push edi
push ebx
push edi
push edi
push edi
push SysReAllocString
push 0x80880000
push edi
push dword [0x508994]
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 0x427ae4
mov byte [esi + 0x2c], 1
jmp 0x427b08
test eax, 0x21000000
je 0x427af1
mov byte [esi + 0x2c], 5
jmp 0x427b08
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.00426e39
push 0xfffffffffffffffc
push ebx
call edi
push 0x42780e
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 0x4281ae
Capabilities:
Create thread

Disassembly:
mov eax, dword [ecx + 0x300]
cmp eax, 0xffffffff
je 0x4281c2
cmp eax, 1
je 0x4281c2
or eax, 0xffffffff
ret
xor eax, eax
push eax
push eax
push ecx
push 0x427e76
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 0x428316
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, 0x4c48cb
call fcn.0043e6f2
mov edi, dword [ebp + 0x45c]
xor ebx, ebx
cmp edi, ebx
jne 0x42836d
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.0043db65
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.0043db80
lea eax, [ebp + 0x350]
push edi
push eax
call fcn.0043ee40
push edi
mov dword [ebp - 0x14], ebx
call fcn.0043e060
add esp, 0x18
mov edi, eax
call fcn.00433fb8
push eax
lea ecx, [ebp - 0x10]
call fcn.004281de
push esi
lea eax, [ebp + 0x251]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp + 0x250], bl
call fcn.0043db80
lea eax, [ebp + edi + 0x350]
add esp, 0xc
cmp byte [eax - 1], 0x5c
je 0x4283d9
mov byte [eax], 0x5c
cmp byte [ebp + 0x350], bl
je 0x428451
mov esi, dword [ebp - 0x14]
mov al, byte [ebp + esi + 0x350]
cmp al, 0x3a
jne 0x4283f3
inc esi
inc esi
jmp 0x428445
cmp al, 0x5c
jne 0x428444
push esi
lea eax, [ebp + 0x350]
push eax
lea eax, [ebp + 0x250]
push eax
call fcn.0043d800
add esp, 0xc
lea eax, [ebp + 0x250]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp + esi + 0x250], bl
call fcn.004282cc
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x428444
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x428454
inc esi
cmp byte [ebp + esi + 0x350], bl
mov dword [ebp - 0x14], esi
jne 0x4283e1
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040debb
mov eax, ebx
jmp 0x428348
Function at 0x4286b8
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.0043db80
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 0x42876f
push 0x4ca5b8
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x42876f
push ebx
push esi
lea eax, [ebp - 0x78]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
cmp ebx, esi
jbe 0x42876e
push edi
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, esi
je 0x42876d
push edi
push ebx
push esi
lea eax, [ebp - 0x78]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x428766
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0x4e31b4
push edi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x428766
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.0043db65
add ebp, 0x194
leave
ret

Function at 0x428787
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 0x428812
push esi
push 0x2b0
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x78], ebx
call fcn.0043db80
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 0x428808
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.0043db65
add ebp, 0x240
leave
ret 4