joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403440
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
push esi
mov esi, ecx
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0x9c
call edi
test eax, eax
jne 0x4034ae
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call edi
test eax, eax
jne 0x4034ae
mov eax, dword [0x437670]
test eax, eax
je 0x4034a3
push str.Error_In_Getting_OS_Version_Information_
lea ecx, [esp + 0xc]
call fcn.0041c0b1
lea ecx, [esp + 8]
call fcn.0041c043
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret
mov ecx, dword [esp + 0x1c]
mov eax, 1
cmp ecx, 2
jne 0x4034f6
mov ecx, dword [esp + 0x10]
cmp ecx, 5
jne 0x4034d1
mov dword [esi + 0x60], eax
pop edi
pop esi
add esp, 0xa0
ret
jbe 0x4034df
mov dword [esi + 0x64], eax
pop edi
pop esi
add esp, 0xa0
ret
cmp ecx, 6
jne 0x403513
cmp dword [esp + 0x14], eax
jne 0x403513
mov dword [esi + 0x64], eax
pop edi
pop esi
add esp, 0xa0
ret
cmp ecx, eax
jne 0x403513
cmp dword [esp + 0x10], 4
jne 0x403513
mov ecx, dword [esp + 0x14]
test ecx, ecx
jbe 0x403513
mov dword [esi + 0x60], 0
mov dword [esi + 0x68], eax
pop edi
pop esi
add esp, 0xa0
ret
Function at 0x403b00
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x108
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x114]
push ebp
mov ebp, dword [esp + 0x114]
push esi
push edi
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x403ba5
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push eax
push edx
call edi
mov esi, eax
test esi, esi
jne 0x403b80
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.00403b00
mov esi, eax
add esp, 8
test esi, esi
jne 0x403bb2
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call edi
mov esi, eax
test esi, esi
je 0x403b50
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
mov dword [esp + 0x10], 0
jne 0x403ba5
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x403e60
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4278dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x54]
call fcn.00401000
push 0
push 0x4040b0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x190], 0
call fcn.004019b0
mov eax, dword [0x43363c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x188], 3
call fcn.004016b0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x7d]
mov byte [esp + 0x7c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebp, 1
push 0
push ebp
mov ecx, esi
mov byte [esp + 0x190], 4
stosb byte es:[edi], al
call fcn.00420b9f
mov ecx, eax
call fcn.00420d73
push 0
push 2
mov ecx, esi
call fcn.00420b9f
mov ecx, eax
call fcn.00420d73
push str._Please_wait._PCI_Multi_IO_device_driver_uninstallation_is_in_progress_.....
push 0x3eb
mov ecx, esi
call fcn.00420b9f
mov ecx, eax
call fcn.00420c30
lea eax, [esp + 0x7c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.inf
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 2
mov edi, 0x927
lea eax, [esp + 0x7c]
lea ecx, [esp + 0xc]
push eax
call fcn.0041c1cc
push str..inf
lea ecx, [esp + 0x14]
push str._s
push ecx
call fcn.0041b39b
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x58]
add esp, 0xc
or al, 0x10
or ecx, edi
or al, 0x20
mov dword [esp + 0x4c], ecx
push str.MFPCI9710_
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], eax
call fcn.0041c1cc
lea ecx, [esp + 0x54]
call fcn.00401990
lea edx, [esp + 0xc]
lea ecx, [esp + 0x54]
push edx
call fcn.00401110
lea ecx, [esp + 0x54]
call fcn.004019d0
lea eax, [esp + 0x7c]
lea ecx, [esp + 0xc]
push eax
call fcn.0041c1cc
push str..pnf
lea ecx, [esp + 0x14]
push str._s
push ecx
call fcn.0041b39b
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x58]
add esp, 0xc
or al, 0x10
or edx, edi
or al, 0x20
push str.MFPCI9710_
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x50], edx
mov dword [esp + 0x20], eax
call fcn.0041c1cc
lea ecx, [esp + 0x54]
call fcn.00401990
lea edx, [esp + 0xc]
lea ecx, [esp + 0x54]
push edx
call fcn.00401110
lea ecx, [esp + 0x54]
call fcn.004019d0
dec esi
jne 0x403f6b
lea ecx, [esp + 0x14]
mov byte [esp + 0x188], 6
call fcn.0041c043
lea ecx, [esp + 0x10]
mov byte [esp + 0x188], 5
call fcn.0041c043
lea ecx, [esp + 0xc]
mov byte [esp + 0x188], 0
call fcn.0041c043
lea ecx, [esp + 0x54]
mov dword [esp + 0x188], 0xffffffff
call fcn.00401050
mov ecx, dword [esp + 0x180]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x180
ret 4
Function at 0x4041b0
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
sub esp, 0x30c
lea eax, [esp + 0x104]
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x210]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x10c]
lea eax, [esp + 8]
push edx
push str._s_system32Drivers_nmserial.sys
push eax
call fcn.0040d9b3
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0xc
lea ecx, [esp + 8]
push 0x80
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 8]
push edx
call edi
lea eax, [esp + 0x10c]
lea ecx, [esp + 8]
push eax
push str._s_system32Drivers_nmpar.sys
push ecx
call fcn.0040d9b3
add esp, 0xc
lea edx, [esp + 8]
push 0x80
push edx
call esi
lea eax, [esp + 8]
push eax
call edi
lea ecx, [esp + 0x10c]
lea edx, [esp + 8]
push ecx
push str._s_system32pnpports.dll
push edx
call fcn.0040d9b3
add esp, 0xc
lea eax, [esp + 8]
push 0x80
push eax
call esi
lea ecx, [esp + 8]
push ecx
call edi
lea edx, [esp + 0x10c]
lea eax, [esp + 8]
push edx
push str._s_system32NmCoInst.dll
push eax
call fcn.0040d9b3
add esp, 0xc
lea ecx, [esp + 8]
push 0x80
push ecx
call esi
lea edx, [esp + 8]
push edx
call edi
pop edi
pop esi
add esp, 0x30c
ret
Function at 0x404ad0
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42797b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x49]
mov byte [esp + 0x48], bl
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov edi, str.NMSERIES
mov dword [esp + 0x15], eax
or ecx, 0xffffffff
mov dword [esp + 0x19], eax
mov byte [esp + 0x14], bl
mov dword [esp + 0x1d], eax
push 0x104
mov dword [esp + 0x25], eax
mov word [esp + 0x29], ax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x2b], al
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x4d], bl
call fcn.0041c0b1
mov edi, str.:Program_Files
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x48]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x154], ebx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x48]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..__
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x48]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x48]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.0041c1cc
push ebx
lea ecx, [esp + 0x14]
call fcn.0041c35e
call fcn.0041cde7
cmp eax, ebx
je 0x404c20
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x404c22
xor eax, eax
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 3
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebx
mov word [esp + 0x38], 0x410
mov dword [esp + 0x3a], ebx
mov dword [esp + 0x3e], ebx
call fcn.004244c5
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x46], eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x154], 0xffffffff
call fcn.0041c043
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x148
ret
Function at 0x404c90
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str..__
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.NmUninst.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x404d30
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x224
xor eax, eax
push esi
mov dword [esp + 9], eax
push edi
mov dword [esp + 0x11], eax
mov edi, str.NMSERIES
mov dword [esp + 0x15], eax
or ecx, 0xffffffff
mov dword [esp + 0x19], eax
lea edx, [esp + 0xc]
mov word [esp + 0x1d], ax
mov byte [esp + 0xc], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x1f], al
mov eax, ecx
mov esi, edi
mov edi, edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionNmseries_PCI_Multi_Io_Controller
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00403bd0
add esp, 4
lea ecx, [esp + 8]
push ecx
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionNmseries_PCI_Multi_Io_Controller
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404ead
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea edx, [esp + 0x2c]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
mov ebx, 1
call ebp
test eax, eax
jne 0x404e82
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x30]
push ecx
push edx
call fcn.00411870
add esp, 0xc
test eax, eax
jne 0x404e65
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionNmseries_PCI_Multi_Io_Controller_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x130]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x130]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x130]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00403aa0
add esp, 8
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
mov eax, ebx
push 0x104
push ecx
push eax
push edx
inc ebx
call ebp
test eax, eax
je 0x404dd4
lea eax, [esp + 0x130]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00403aa0
mov ecx, dword [esp + 0x18]
add esp, 8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x224
ret
cmp eax, 2
je 0x404ed9
push 0
lea edx, [esp + 0x24]
push 0
push edx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
add esp, 0x224
ret
Function at 0x404ef0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push esi
push edi
xor esi, esi
mov ecx, 8
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 8], esi
push str.GetNativeSystemInfo
rep stosd dword es:[edi], eax
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x404f2c
lea ecx, [esp + 8]
push ecx
call eax
jmp 0x404f37
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 8]
cmp ax, 9
je 0x404f47
cmp ax, 6
jne 0x404f52
pop edi
mov eax, 1
pop esi
add esp, 0x24
ret
mov eax, esi
pop edi
pop esi
add esp, 0x24
ret
Function at 0x41a630
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040ef70
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41a6fb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41a6fb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41a6ae
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41a6b9
or bh, 8
and edi, 0x8000000
je 0x41a6d4
mov eax, dword [0x43ae5c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41a6fb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41aad0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41aafb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41ab1f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41ab3a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x4204e4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x420526
call fcn.004244c5
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x420526
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42051d
xor eax, eax
jmp 0x42052e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00420534
pop edi
pop esi
pop ebx
ret 4

Function at 0x424fee
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42501c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42503a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00424f54
jmp 0x42503a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42503a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00424f54
test edi, edi
mov eax, edi
jne 0x425024
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x101f864
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x1028058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x102837c]
test eax, eax
jne 0x101f921
push 0x11c
push eax
lea eax, [ebp - 0x328]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x328]
push eax
mov dword [ebp - 0x328], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x101f913
cmp dword [ebp - 0x318], 2
jne 0x101f909
cmp dword [ebp - 0x324], 6
jae 0x101f909
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x1028380]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x101f913
push 0
push 8
lea eax, [ebp - 0x20c]
push eax
call fcn.01025656
mov dword [0x102837c], eax
cmp eax, dword [0x1028380]
jne 0x101f913
push eax
call fcn.01025505
jmp 0x101f913
mov eax, dword [0x1028380]
mov dword [0x102837c], eax
mov eax, dword [0x102837c]
test eax, eax
jne 0x101f921
mov eax, dword [0x1028380]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01023ead
leave
ret

Function at 0x101f956
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1028058]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x101f9e2
push 0x1001424
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x101f9e2
push 1
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01024759
mov ecx, dword [ebp - 0x210]
mov eax, 0x60000
cmp ecx, 0x50000
jb 0x101f9d2
cmp ecx, 0x50032
jae 0x101f9da
push 2
jmp 0x101f9e4
cmp ecx, 0x50032
jb 0x101f9e2
cmp ecx, eax
jae 0x101f9e2
push 3
jmp 0x101f9e4
push 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop eax
call fcn.01023ead
leave
ret