joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49ce93
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x49cf30
push ebx
push esi
call fcn.0049ce5c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0049cdf0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x49cedd
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x49cf2f
push edi
push eax
call fcn.0049dab0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x49cefd
call fcn.0049b951
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x49cf2e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0049cdf0
add esp, 0x20
test eax, eax
jne 0x49cf1c
push edi
call fcn.0049b951
jmp 0x49cf24
push ebx
call fcn.0049b951
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x49e22d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c1ab0
push 0x4c1aa8
push str.FlsAlloc
push 0x1f
call fcn.0049e0ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x49e261
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a4130]
call esi
jmp 0x49e267
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x49e2ab
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c1ac0
push 0x4c1ab8
push str.FlsGetValue
push 0x21
call fcn.0049e0ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x49e2e2
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a4130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x49e2ea
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c1ac8
push 0x4c1ac0
push str.FlsSetValue
push 0x22
call fcn.0049e0ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x49e324
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4a4130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4a3780
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4a37ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a37ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403030
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40304b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403082
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40307e
jmp 0x403070
cmp esi, eax
jae 0x403082
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403070
cmp esi, eax
jb 0x403089
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi

Function at 0x403290
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5c5b9c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
test esi, esi
je 0x403328
test edi, edi
je 0x403328
xor ecx, ecx
push 0x11c
xor eax, eax
push ecx
lea edx, [ebp - 0x120]
mov word [esi], ax
push edx
mov word [edi], cx
call fcn.00531b10
call 0xc4c332e3
or al, 0x8d
test eax, esp
invalid
invalid
call dword [eax - 0x39]
test eax, esp
invalid
invalid
call [ecx + eax]
add byte [eax], al
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x403330
mov eax, dword [ebp - 0x11c]
cmp eax, 5
ja 0x403330
jne 0x403330
mov ecx, dword [ebp - 0x118]
cmp ecx, dword [ebp + 8]
jne 0x403330
mov dx, word [ebp - 0xc]
mov ax, word [ebp - 0xa]
mov word [esi], dx
mov word [edi], ax
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00530f8d
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00530f8d
mov esp, ebp
pop ebp
ret

Function at 0x4033a0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5c5b9c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
push 4
lea eax, [ebp - 0xc]
push eax
push ecx
xor edi, edi
xor ebx, ebx
call fcn.00530997
push 0x55a33c
lea ecx, [ebp - 0xc]
push 4
push ecx
call fcn.00531b8a
add esp, 0x30
push str.Kernel32.Dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40346e
push str.GetDiskFreeSpaceExW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
Function at 0x403490
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5c5b9c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40353b
push esi
push edi
lea ecx, [ebp - 0x10]
push ecx
push str.SeShutdownPrivilege
push 0
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 8], 2
call esi
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov edx, dword [ebp - 0x18]
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push edx
mov edi, eax
mov dword [ebp - 8], 0
call esi
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
pop edi
pop esi
jne 0x40354b
push 0x55a340
push 2
call fcn.00411380
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00530f8d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00530f8d
mov esp, ebp
pop ebp
ret
Function at 0x403a20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x5c5b9c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x7c], eax
test eax, eax
jne 0x403a6c
push str.HELPER_AbbreviationInControl_pszMsg_is_invalid_string._n
push 5
call fcn.00411380
add esp, 8
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00530f8d
mov esp, ebp
pop ebp
ret
push ebx
push 0xb07
push str.CommonFunctions.cpp
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
call fcn.0042d8c0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x403ab4
push str.HELPER_AbbreviationInControl_pszMsg_is_invalid_string._n
push 5
call fcn.00411380
add esp, 8
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00530f8d
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x31
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x70]
push ecx
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push edi
push esi
mov dword [ebp - 0x74], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
mov eax, dword [ebp - 0x74]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x78], eax
xor eax, eax
push ecx
push esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebp - 0x7c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
mov eax, 0x99999999
imul ecx
push 0x14120
sar edx, 2
lea ecx, [ebp - 0x14]
push ecx
mov eax, edx
push 0xffffffffffffffff
shr eax, 0x1f
push ebx
add eax, edx
add dword [ebp - 0xc], eax
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [ebp - 0x78]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x403b80
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call fcn.0042d8e0
mov ecx, dword [ebp - 4]
add esp, 4
pop ebx
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00530f8d
mov esp, ebp
pop ebp
ret
Function at 0x406fe4
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
add dword [eax], eax
add byte [ebp - 0x21b6b], cl
call dword [edx - 1]
adc eax, sym.imp.KERNEL32.dll_GetWindowsDirectoryW
lea eax, [ebp - 0x21c]
push 0x5c
push eax
call fcn.0053193f
add esp, 8
cmp eax, edi
je 0x40700f
cmp word [eax + 2], di
je 0x407028
push 0x55a33c
lea ecx, [ebp - 0x21c]
push 0x105
push ecx
call fcn.00531b8a
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x22ac]
call fcn.004066b0
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x2274]
push eax
lea ecx, [ebp - 0x22ac]
call fcn.00405ca0
mov eax, dword [ebp - 0x22ac]
cmp dword [ebp - 0x2298], esi
jae 0x407063
lea eax, [ebp - 0x22ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407193
mov edx, dword [ebp - 0x2274]
cmp dword [ebp - 0x2260], esi
jae 0x407087
push es
lea edx, [ebp - 0x2274]
mov ecx, dword [ebp - 0x2258]
cmp dword [ebp - 0x2244], esi
jae 0x40709b
lea ecx, [ebp - 0x2258]
mov eax, dword [ebp - 0x2290]
cmp dword [ebp - 0x227c], esi
jae 0x4070af
lea eax, [ebp - 0x2290]
push edx
push 0x1001
lea edx, [ebp - 0x2220]
push edx
push 0x55a24c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebp - 0x223c]
cmp dword [ebp - 0x2228], esi
jae 0x4070dd
invalid
test esp, eax
invalid
invalid

Function at 0x407080
Capabilities:
Read .ini file

Disassembly:
add dword [eax], eax
add byte [ebp - 0x21b6b], cl
call dword [edx - 1]
adc eax, sym.imp.KERNEL32.dll_GetWindowsDirectoryW
lea eax, [ebp - 0x21c]
push 0x5c
push eax
call fcn.0053193f
add esp, 8
cmp eax, edi
je 0x40700f
cmp word [eax + 2], di
je 0x407028
push 0x55a33c
lea ecx, [ebp - 0x21c]
push 0x105
push ecx
call fcn.00531b8a
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x22ac]
call fcn.004066b0
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x2274]
push eax
lea ecx, [ebp - 0x22ac]
call fcn.00405ca0
mov eax, dword [ebp - 0x22ac]
cmp dword [ebp - 0x2298], esi
jae 0x407063
lea eax, [ebp - 0x22ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407193
mov edx, dword [ebp - 0x2274]
cmp dword [ebp - 0x2260], esi
jae 0x407087
push es
lea edx, [ebp - 0x2274]
mov ecx, dword [ebp - 0x2258]
cmp dword [ebp - 0x2244], esi
jae 0x40709b
lea ecx, [ebp - 0x2258]
mov eax, dword [ebp - 0x2290]
cmp dword [ebp - 0x227c], esi
jae 0x4070af
lea eax, [ebp - 0x2290]
push edx
push 0x1001
lea edx, [ebp - 0x2220]
push edx
push 0x55a24c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebp - 0x223c]
cmp dword [ebp - 0x2228], esi
jae 0x4070dd
invalid
test esp, eax
invalid
invalid
Function at 0x4074f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5478d1
mov eax, dword fs:[0]
push eax
sub esp, 0x2f8
mov eax, dword [0x5c5b9c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x2ec], ecx
lea ecx, [ebp - 0x2e8]
mov dword [ebp - 0x2f4], eax
mov dword [ebp - 0x300], edx
xor ebx, ebx
call fcn.0043af70
mov dword [ebp - 4], ebx
call fcn.00445a97
movzx ecx, word [ebp + 0xc]
mov eax, dword [eax + 0xc]
push 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x407734
call fcn.00445a97
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x407734
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp dword [esi + 0x20], ebx
je 0x407598
movzx ebx, word [esi + 0x20]
jmp case.0x4075a9.2
movzx eax, word [esi + 0xe]
Function at 0x411c80
Capabilities:
Create process on windows
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
push 0xf003f
xor edi, edi
push edi
push str.HKLMSoftwareMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
cmp eax, edi
jne 0x411d34
mov edx, dword [ebp - 4]
push ebx
lea ecx, [ebp - 8]
push ecx
push 0x20019
push edi
push str.Setup
push edx
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x411cfa
mov eax, dword [ebp - 8]
push eax
call ebx
mov ecx, dword [ebp - 4]
push 0x10
push str.runonce
push 1
push 0
push str.Wrapper
push ecx
call edi
mov esi, eax
jmp 0x411cfc
xor esi, esi
mov edx, dword [ebp - 4]
push 0x16
push str.grpconv__o
push 1
push 0
push str.GrpConv
push edx
call edi
test eax, eax
je 0x411d18
xor esi, esi
mov eax, dword [ebp - 4]
push eax
call ebx
cmp dword [ebp + 8], 0
pop ebx
je 0x411d32
push 1
push str.runonce__r
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412150
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x5c5b9c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00531b10
push 0x208
lea ecx, [ebp - 0x20c]
push 0
push ecx
call fcn.00531b10
push 0x208
lea edx, [ebp - 0x61c]
push 0
push edx
call fcn.00531b10
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0x24
push 0x55a24c
lea eax, [ebp - 0x414]
push eax
call esi
push 0x55a24c
lea ecx, [ebp - 0x20c]
push ecx
call esi
lea edx, [ebp - 0x620]
push edx
push 0x208
lea eax, [ebp - 0x61c]
push eax
push 1
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x414]
push edx
mov dword [ebp - 0x620], 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryW
cmp eax, 1
jne 0x412219
lea eax, [ebp - 0x61c]
push eax
push edi
call esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00530f8d
mov esp, ebp
pop ebp
ret 4
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00530f8d
mov esp, ebp
pop ebp
ret 4

Function at 0x412660
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x5c5b9c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push edi
mov dword [ebp - 0x218], eax
xor eax, eax
lea edx, [ebp - 0x20c]
push 0x104
push edx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x21c], eax
call fcn.00532bf0
add esp, 0x10
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x412788
push esi
push ebx
push 0
lea edx, [ebp - 0x20c]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41275f
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x210]
push ecx
push 0x55a33c
push esi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x210]
movzx edx, word [eax + 0xc]
movzx ecx, word [eax + 0xe]
push edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push edx
push eax
push edi
push str.GetFileVersion_File___1_s__nfile_version:__2_u_._3_u_._4_u_._5_u__n
push 5
call fcn.00411380
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x218]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x220]
add esp, 0x1c
mov dword [ecx], eax
mov edi, 1
jmp 0x412765
mov edi, dword [ebp - 0x214]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00530f8d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00530f8d
mov esp, ebp
pop ebp
ret
Function at 0x4143a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
push str.CDeviceInfSection::Init__________________________IN._n
push 5
mov edi, ecx
call fcn.00411380
add esp, 8
cmp dword [edi + 0x60], 0
je 0x4143cd
push 0x3e8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop ebp
ret 0xc
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4143e7
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CDeviceInfSection::Init_pInfFile_is_NULL._n
jmp 0x414482
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4143f0
sub eax, edx
sar eax, 1
jne 0x414410
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CDeviceInfSection::Init_pInfFile_is_Zero_length._n
jmp 0x414482
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41442b
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CDeviceInfSection::Init_pInfFile_is_not_found._n
jmp 0x414482
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414430
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [edi + 0x24]
call fcn.004026d0
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x41445f
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CDeviceInfSection::Init_pSectionName_is_NULL._n
jmp 0x414482
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414464
sub eax, esi
sar eax, 1
jne 0x4144a3
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CDeviceInfSection::Init_pSectionName_is_Zero_length._n
push 5
call fcn.00411380
add esp, 8
push str.CDeviceInfSection::Init__________________________OUT._n
push 5
call fcn.00411380
add esp, 8
pop esi
xor eax, eax
pop edi
pop ebp
ret 0xc
push edx
lea ecx, [edi + 0x40]
call fcn.004066b0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4144b6
mov dword [edi + 0x5c], eax
push str.CDeviceInfSection::Init__________________________OUT._n
push 5
mov dword [edi + 0x60], 1
call fcn.00411380
add esp, 8
pop esi
mov eax, 1
pop edi
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.Setup.exe_public:_int___thiscall_CDeviceInfSection::Init_wchar_t_const___class_CInfStringTable___wchar_t_const__
Function at 0x4154c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push str.CIniSections::Init__________________________IN._n
push 5
mov edi, ecx
call fcn.00411380
add esp, 8
cmp dword [edi + 0x30], 0
je 0x4154ed
push 0x3e8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop ebp
ret 4
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x415504
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CIniSections::Init_pInfFile_is_NULL._n
jmp 0x415549
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415510
sub eax, edx
sar eax, 1
jne 0x415530
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CIniSections::Init_pInfFile_is_Zero_length._n
jmp 0x415549
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41556a
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CIniSections::Init_pInfFile_is_not_found._n
push 5
call fcn.00411380
add esp, 8
push str.CIniSections::Init__________________________OUT._n
push 5
call fcn.00411380
add esp, 8
pop esi
xor eax, eax
pop edi
pop ebp
ret 4
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415570
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [edi + 0x14]
call fcn.004026d0
push str.CIniSections::Init__________________________OUT._n
push 5
mov dword [edi + 0x30], 1
call fcn.00411380
add esp, 8
pop esi
mov eax, 1
pop edi
pop ebp
ret 4
Function at 0x4311b0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
mov esi, ecx
push 0x57688c
mov dword [esi], vtable.CRegistryW.0
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x431232
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x576878
push edi
call ebx
push 0x57686c
push edi
mov dword [esi + 8], eax
call ebx
push 0x576858
push edi
mov dword [esi + 0xc], eax
call ebx
push 0x576848
push edi
mov dword [esi + 0x10], eax
call ebx
push 0x576838
push edi
mov dword [esi + 0x14], eax
call ebx
push 0x576828
push edi
mov dword [esi + 0x18], eax
call ebx
push 0x576818
push edi
mov dword [esi + 0x1c], eax
call ebx
push 0x576808
push edi
mov dword [esi + 0x20], eax
call ebx
mov dword [esi + 0x24], eax
pop ebx
pop edi
mov eax, esi
pop esi
ret

Function at 0x4312a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, ecx
mov dword [ebp - 4], 0
call fcn.00431110
test eax, eax
jne 0x4312c4
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 4]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push edi
push ecx
call ebx
cmp dword [ebp - 4], 0
je 0x43132f
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4312f9
push eax
call fcn.0042d8e0
add esp, 4
mov dword [esi + 0x24], 0
mov edx, dword [ebp - 4]
push 0x1f2
push 0x5767d8
push edx
call fcn.0042d8c0
add esp, 0xc
mov dword [esi + 0x24], eax
test eax, eax
jne 0x43131f
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
lea ecx, [ebp - 4]
push ecx
push eax
push 0
push 0
push edi
push edx
call ebx
mov eax, dword [esi + 0x24]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4