joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401207
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84c
mov eax, dword [0x41b2f8]
xor edx, edx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x30], eax
mov eax, dword [0x41b2fc]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0xc], edx
mov esi, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x2c], 0x9e3779b9
mov dword [ebp - 0x18], eax
call fcn.00401200
add dword [ebp - 0xc], 0x23f
cmp dword [0xb06f0c], 0x14
jne 0x401263
push edx
lea eax, [ebp - 0x84c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov ecx, dword [0x41b300]
mov edx, dword [0x41b304]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov eax, esi
mov dword [ebp - 8], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0xb06f0c], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0xb06f08]
cmove eax, dword [ebp - 8]
and dword [ebp - 8], 0
cmp dword [0xb06f0c], 0x3eb
mov dword [0xb06f08], eax
mov eax, dword [0xb06e60]
cmove eax, dword [ebp - 8]
mov dword [0xb06e60], eax
mov eax, dword [ebp - 0xc]
add eax, esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 0x10], eax
add dword [ebp - 0x10], edx
xor edx, edx
mov eax, dword [ebp - 4]
mov dword [0xb06f04], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x20]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
xor ecx, eax
cmp dword [0xb06f0c], 0x213
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
jne 0x40135a
push edx
push edx
push edx
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_CompareStringA]
lea eax, [ebp - 0x44c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x38]
push eax
push 0
lea eax, [ebp - 0x4c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
mov ecx, dword [ebp - 0x10]
sub ebx, ecx
mov eax, ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 0xc]
shr edx, cl
add eax, ebx
mov ecx, dword [ebp - 4]
add edx, edi
xor ecx, eax
mov dword [ebp - 0x10], edx
cmp dword [0xb06f0c], 0xb03
mov dword [ebp - 4], ecx
jne 0x40139d
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
xor ecx, edx
sub esi, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
dec dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
jne 0x40127f
mov edi, dword [ebp - 0x28]
mov dword [edi], esi
mov dword [edi + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c634
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a5a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407f65
mov dword [ebp - 0x14], eax
cmp dword [0x4626f0], esi
jne 0x40c727
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c6b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c807
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c807
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c807
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4626f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4626f4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4626f8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x462700], eax
test eax, eax
je 0x40c724
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4626fc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c74c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c73f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c761
push 4
pop eax
jmp 0x40c809
cmp dword [ebp - 0x14], esi
je 0x40c761
push dword [0x4626f0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c746
mov eax, dword [0x4626fc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c7bf
cmp dword [0x462700], edi
je 0x40c7bf
push eax
call ebx
push dword [0x462700]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c7bf
test eax, eax
je 0x40c7bf
call ecx
test eax, eax
je 0x40c7b4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c7b4
test byte [ebp - 8], 1
jne 0x40c7bf
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c7ef
mov eax, dword [0x4626f4]
cmp eax, edi
je 0x40c7ec
push eax
call ebx
test eax, eax
je 0x40c7ec
call eax
mov esi, eax
test esi, esi
je 0x40c7ec
mov eax, dword [0x4626f8]
cmp eax, edi
je 0x40c7ec
push eax
call ebx
test eax, eax
je 0x40c7ec
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4626f0]
call ebx
test eax, eax
je 0x40c807
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c809
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040394e
mov esp, ebp
pop ebp
ret
Function at 0x40be20
Capabilities:
Access peb ldr_data
Get number of processors
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46e8b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 0xc], ecx
push 1
push 0x64
push 0x400000
lea ebx, [ecx - 0x1c]
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
mov ecx, ebx
call dword [sym.imp.2345MiniUI.dll_public:_struct_HICON______thiscall_RCMiniAtlWindow::SetIcon_struct_HICON_____int_]
push 0
push 0x65
push 0x400000
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
mov ecx, ebx
call dword [sym.imp.2345MiniUI.dll_public:_struct_HICON______thiscall_RCMiniAtlWindow::SetIcon_struct_HICON_____int_]
mov edx, 0x7d0
lea ecx, [esp + 0x10]
call fcn.0040cfd0
mov dword [esp + 0x38], 0
lea eax, [esp + 0x10]
cmp dword [esp + 0x24], 8
mov ecx, ebx
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.2345MiniUI.dll_public:_int___thiscall_RCMiniAtlWindow::SetWindowTextW_wchar_t_const__]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x40bed0
push dword [eax + 0x5c]
add eax, 0xffffffe0
push eax
call fcn.0040c1c0
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x24], 8
jb 0x40beec
push dword [esp + 0x10]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0046b2e2
mov esp, ebp
pop ebp
ret
Function at 0x40d1e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ead0
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x3c
lea eax, [ebp - 0x64]
push 0
push eax
call sub.MSVCR120.dll_memset
push esi
mov edx, 0x47ec4c
mov dword [ebp - 0x64], 0x3c
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x60], 0x100400
mov dword [ebp - 0x54], str.explorer.exe
call fcn.0040da90
mov dword [ebp - 4], 0
mov edx, eax
push 0x47ec48
lea ecx, [ebp - 0x28]
call fcn.0040db90
add esp, 0x14
mov byte [ebp - 4], 2
cmp dword [ebp - 0x68], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x40d26c
push dword [ebp - 0x7c]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x68], 7
cmp dword [ebp - 0x14], 8
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x48], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 8
jb 0x40d2b4
push dword [ebp - 0x28]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b2e2
mov esp, ebp
pop ebp
ret
Function at 0x40d2f0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46eb08
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x2c], 0
jne 0x40d332
xor eax, eax
jmp 0x40d3fb
call fcn.00415fc0
test al, al
je 0x40d370
cmp dword [esi + 0x14], 8
jb 0x40d345
mov eax, dword [esi]
jmp 0x40d347
mov eax, esi
push eax
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
je 0x40d370
cmp dword [esi + 0x14], 8
jb 0x40d35a
mov esi, dword [esi]
push 1
push 0
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
jmp 0x40d3f8
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.00416e00
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x40d3cb
push 0x2b4
lea eax, [ebp - 0x2e8]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x2e8]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0x110
push 0x2b4
push ecx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2e8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 8
jb 0x40d3e4
push dword [ebp - 0x28]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b2e2
mov esp, ebp
pop ebp
ret

Function at 0x412700
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f7f8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00412260
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x41273f
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 8
jb 0x412765
push dword [ebp - 0x24]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x14], 0
xor bl, bl
mov word [ebp - 0x24], ax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
test esi, esi
je 0x41279c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419010
Capabilities:
Check os version

Disassembly:
sub esp, 0x128
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x124], eax
push esi
push 0x110
lea eax, [esp + 0x14]
mov esi, ecx
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0xc], 0x114
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4190a0
cmp dword [esp + 0x10], 6
jb 0x4190a0
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push str.Progid
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, 0x80000001
call fcn.00418d60
add esp, 0xc
test al, al
je 0x4190a0
cmp word [esi], 0
je 0x4190a0
mov al, 1
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0046b2e2
add esp, 0x128
ret
lea eax, [esp + 4]
mov dword [esp + 4], 0x207
push eax
push esi
push 0
mov edx, str.http_shellopencommand
mov ecx, 0x80000000
call fcn.00418d60
add esp, 0xc
test al, al
je 0x4190cc
cmp word [esi], 0
jne 0x419088
lea eax, [esp + 4]
mov dword [esp + 4], 0x207
push eax
push esi
push 0
mov edx, str.SoftwareClasses.html
mov ecx, 0x80000001
call fcn.00418d60
add esp, 0xc
test al, al
je 0x4190f8
cmp word [esi], 0
jne 0x419088
mov ecx, dword [esp + 0x128]
xor al, al
pop esi
xor ecx, esp
call fcn.0046b2e2
add esp, 0x128
ret
Function at 0x419530
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x47084b
mov eax, dword fs:[0]
push eax
mov eax, 0x264c
call fcn.0046ce10
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2648], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x2660]
mov dword fs:[0], eax
mov esi, ecx
push 0x1ffe
xor ebx, ebx
lea eax, [esp + 0x662]
push ebx
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov eax, 0x22
mov word [esp + 0x65c], ax
test esi, esi
je 0x41977b
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x41977b
push esi
call edi
cmp eax, 0xffa
jge 0x41977b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x660]
push eax
call esi
push 0x47ec48
lea eax, [esp + 0x660]
push eax
call esi
push 0x47f5a4
lea ecx, [esp + 0x20]
call fcn.00405340
mov dword [esp + 0x2668], ebx
lea eax, [esp + 0x1c]
push eax
call fcn.00436410
mov ecx, eax
call fcn.004364a0
mov esi, eax
mov dword [esp + 0x2668], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x419625
push dword [esp + 0x1c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
test esi, esi
je 0x41977b
push 0x47f5bc
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
je 0x41977b
lea ecx, [esp + 0x34]
call fcn.00419110
xor edi, edi
lea esi, [esp + 0x34]
lea esp, [esp]
cmp word [esi], 0
je 0x419691
push 1
push 0
lea eax, [esp + 0x664]
push eax
push esi
push 0x47ebc8
push 0
call ebp
cmp eax, 0x20
ja 0x41969f
inc edi
add esi, 0x210
cmp edi, 2
jl 0x419670
jmp 0x4196c1
imul ebx, edi, 0x210
cmp dword [esp + ebx + 0x23c], 0
mov ebx, dword [esp + ebx + 0x240]
jne 0x4196b9
add ebx, 0x10
test ebx, ebx
jne 0x419777
push 1
push 0
push 0
lea eax, [esp + 0x668]
push eax
push 0x47ebc8
push 0
call ebp
cmp eax, 0x20
ja 0x419772
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor esi, esi
mov dword [esp + 0x14], str._programfiles_x86__Internet_Exploreriexplore.exe
mov dword [esp + 0x18], str._programfiles_Internet_Exploreriexplore.exe
lea esp, [esp]
xor eax, eax
push 0x206
push eax
mov word [esp + 0x45c], ax
lea eax, [esp + 0x45e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0x454]
push 0x103
push eax
push dword [esp + esi*4 + 0x1c]
call edi
lea eax, [esp + 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x419768
push 1
push 0
lea eax, [esp + 0x664]
push eax
lea eax, [esp + 0x460]
push eax
push 0x47ebc8
push 0
call ebp
cmp eax, 0x20
ja 0x419772
inc esi
cmp esi, 2
jb 0x419700
mov eax, ebx
jmp 0x41977d
mov ebx, 0x10
mov eax, ebx
jmp 0x41977d
xor eax, eax
mov ecx, dword [esp + 0x2660]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2648]
xor ecx, esp
call fcn.0046b2e2
add esp, 0x2658
ret
Function at 0x41a030
Capabilities:
Check os version

Disassembly:
sub esp, 0x10
push esi
push 0x11c
mov esi, ecx
push 0
push esi
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41a0c1
mov eax, dword [esi + 4]
cmp eax, 6
ja 0x41a067
jne 0x41a0ba
cmp dword [esi + 8], 2
jb 0x41a0ba
lea eax, [esp + 0x10]
mov dword [esp + 4], 0
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
lea edx, [esp + 0x10]
mov dword [esp + 0x14], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.0041a760
add esp, 8
test al, al
je 0x41a0ba
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
mov eax, dword [esp + 8]
mov dword [esi + 8], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0xc], eax
mov al, 1
pop esi
add esp, 0x10
ret
xor al, al
pop esi
add esp, 0x10
ret

Function at 0x41a760
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x28
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
push ebx
push ebp
mov ebp, dword [esp + 0x34]
mov ebx, edx
push esi
push edi
push str.kernel32.dll
mov edi, ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x41a82a
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41a82a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41a82a
movdqu xmm0, xmmword [0x47fb28]
push eax
movdqu xmmword [esp + 0x18], xmm0
movdqu xmm0, xmmword [0x47fb38]
movdqu xmmword [esp + 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41a82a
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41a82a
cmp word [esi + 2], ax
jbe 0x41a82a
movzx eax, word [esi + 0x32]
mov ecx, dword [esp + 0x10]
mov dword [edi], eax
movzx eax, word [esi + 0x30]
mov dword [ebx], eax
movzx eax, word [esi + 0x36]
mov dword [ebp], eax
movzx eax, word [esi + 0x34]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov al, 1
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0046b2e2
add esp, 0x28
ret
mov ecx, dword [esp + 0x34]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046b2e2
add esp, 0x28
ret
Function at 0x41a9b0
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x487740
push 0x46bd09
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [section..data]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00415a70
mov edx, esi
mov ecx, edi
call fcn.0041ab00
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x41aa3e
test bl, bl
jne 0x41aace
cmp edi, 0x1a
jne 0x41aace
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x41aa60
mov eax, dword [esi]
jmp 0x41aa62
mov eax, esi
xor ecx, ecx
mov word [eax], cx
xor eax, eax
mov word [ebp], ax
push 0x40e
push eax
lea eax, [ebp + 2]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp word [ebp], 0
jne 0x41aa9e
xor ecx, ecx
jmp 0x41aab3
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41aaa4
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.004065f0
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.0046b2e2
lea esp, [ebp + 0x414]
pop ebp
ret
Function at 0x41e590
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x471099
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
push 0x18
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [edi + 0x20], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x38], 0
lea esi, [edi + 0x24]
mov dword [esi], 0
xor eax, eax
mov byte [esi + 4], 0
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], 0
mov dword [esp + 0x14], esi
mov word [esi + 8], ax
mov byte [esp + 0x38], 2
lea ecx, [esp + 0x18]
push eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 0x10], 0xffffffff
mov dword [edi + 0x14], 0xffffffff
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push 0x47ece4
mov byte [edi + 8], al
mov dword [edi + 0x18], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x1c], eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], eax
mov word [esp + 0x20], ax
call fcn.004065f0
mov byte [esp + 0x38], 3
mov eax, dword [esi]
test eax, eax
je 0x41e65b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x28], 0
mov dword [esi], 0
jne 0x41e66c
xor eax, eax
jmp 0x41e67a
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
lea ecx, [esi + 8]
sete al
mov byte [esi + 4], al
lea eax, [esp + 0x18]
cmp ecx, eax
je 0x41e6af
push 0xffffffffffffffff
push 0
push eax
call fcn.00405d40
mov byte [esp + 0x38], 2
cmp dword [esp + 0x2c], 8
jb 0x41e6c8
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
mov dword [esp + 0x38], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret