joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411372
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0041134e
pop esi
leave
ret 8

Function at 0x41214d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41218c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41218c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41218c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41218c
cmp dword [ecx + 0x74], 0xe
jbe 0x41218c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4124c0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x18
push ebx
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x4124f2
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret 0x10
mov eax, dword [esp + 4]
xor ecx, ecx
inc eax
mov edx, 4
mul edx
push ebp
push esi
seto cl
neg ecx
or ecx, eax
push edi
push ecx
call fcn.004125df
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x14], 0
mov ebp, eax
mov dword [esp + 0x20], ebp
test ecx, ecx
je 0x41258c
mov eax, ebx
sub eax, ebp
mov dword [esp + 0x1c], eax
mov ebx, dword [eax + ebp]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
push esi
call fcn.004125df
add esp, 4
mov edi, eax
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0x14]
lea ebp, [ebp + 4]
inc eax
mov dword [ebp - 4], edi
mov ecx, dword [esp + 0x10]
cmp eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
jne 0x412531
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
push ebx
mov dword [ebp + ecx*4], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
push dword [esp + 0x14]
call fcn.004101d0
xor esi, esi
add esp, 8
mov edi, eax
cmp dword [esp + 0x10], esi
je 0x4125ca
mov ecx, dword [ebp + esi*4]
test ecx, ecx
je 0x4125ca
push ecx
call fcn.004125e8
inc esi
add esp, 4
cmp esi, dword [esp + 0x10]
jne 0x4125b2
push ebp
call fcn.004125e8
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
Function at 0x4031e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cd4b
mov eax, dword fs:[0]
push eax
sub esp, 0x624
mov eax, dword [0x457078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x3ff
lea eax, [ebp - 0x62b]
mov byte [ebp - 0x62c], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x62c]
call fcn.00402d00
mov eax, dword [0x45b8a8]
mov al, byte [eax + 0x24]
test al, al
je 0x403261
lea eax, [ebp - 0x62c]
push 0x448f8e
push eax
call dword [sym.imp.MSVCR120.dll__stricmp]
add esp, 8
test eax, eax
jne 0x403261
xor al, al
jmp 0x4033ff
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x630]
call fcn.00409a40
lea eax, [ebp - 0x62c]
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.MSVCR120.dll_strcpy_s]
push eax
lea eax, [ebp - 0x22c]
push 0x104
push eax
call esi
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x128]
push 0x104
push eax
call esi
mov esi, dword [ebp - 0x630]
add esp, 0x18
test esi, esi
je 0x4032cc
push 0
push 0x5c
push esi
call fcn.00413e10
add esp, 0xc
test eax, eax
je 0x4032cc
sub eax, esi
jmp 0x4032cf
or eax, 0xffffffff
xor ecx, ecx
test esi, esi
je 0x4032d8
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x4032dd
dec ecx
cmp eax, ecx
lea eax, [ebp - 0x22c]
jne 0x40330f
push 0x4481ec
push eax
call dword [sym.imp.MSVCR120.dll_strcat]
push str.componentsQuickStartQuickStart.dat
lea eax, [ebp - 0x128]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_strcat_s]
add esp, 0x14
jmp 0x403347
push str.qbw.ini
push eax
call dword [sym.imp.MSVCR120.dll_strcat]
lea eax, [ebp - 0x128]
push 0x448200
push eax
call dword [sym.imp.MSVCR120.dll_strcpy]
push str.componentsQuickStartQuickStart.dat
lea eax, [ebp - 0x128]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_strcat_s]
add esp, 0x1c
lea eax, [ebp - 0x128]
push eax
push 0x14
lea eax, [ebp - 0x24]
push eax
push 0x448204
push str.QBSILENT
push str.QuickStart
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [0x45b8a8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov al, byte [eax + 0x24]
test al, al
je 0x403399
push 0x448220
lea eax, [ebp - 0x24]
push eax
call esi
test eax, eax
je 0x4033e5
push 0x448224
lea eax, [ebp - 0x24]
push eax
call esi
test eax, eax
je 0x4033e5
lea eax, [ebp - 0x22c]
push eax
push 0x14
lea eax, [ebp - 0x24]
push eax
push 0x448220
push str.QBSILENT
push str.QuickStart
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [0x45b8a8]
mov al, byte [eax + 0x24]
test al, al
je 0x4033e9
push 0x448220
lea eax, [ebp - 0x24]
push eax
call esi
test eax, eax
je 0x4033e5
push 0x448224
lea eax, [ebp - 0x24]
push eax
call esi
test eax, eax
jne 0x4033e9
xor bl, bl
jmp 0x4033eb
mov bl, 1
lea ecx, [ebp - 0x630]
mov dword [ebp - 4], 0xffffffff
call fcn.0040aa60
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043bfe6
mov esp, ebp
pop ebp
ret
Function at 0x40acc0
Capabilities:
Enumerate gui resources

Disassembly:
push esi
mov esi, ecx
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [edx], eax
mov edx, dword [esi]
mov eax, dword [esi + 8]
mov dword [edx + 4], eax
mov edx, dword [esi]
mov al, byte [esi + 0xd]
mov byte [edx + 0x14], al
mov ecx, dword [esi]
mov eax, dword [ecx + 8]
mov dword [ecx + 0xc], eax
push dword [esi]
push 0x40abe0
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esi]
mov byte [esi + 0xc], 0
pop esi
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
sar eax, 3
ret

Function at 0x40bb70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10c0
call fcn.0043c6a0
mov eax, dword [0x457078]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 8]
cmp eax, 0xfffffffc
je 0x40bb94
cmp eax, 0xfffffffe
jne 0x40bbc6
lea eax, [ecx + 0xc]
push 0x10b8
push eax
lea eax, [ebp - 0x10c0]
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x1050]
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0043bfe6
mov esp, ebp
pop ebp
ret
Function at 0x40c640
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43dec8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x457078]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, edx
mov dword [esp + 0x18], ecx
mov eax, dword [ebx]
xor edi, edi
test eax, eax
je 0x40c68f
push 1
push 0x5c
push eax
call fcn.00413e10
add esp, 0xc
test eax, eax
je 0x40c68f
sub eax, dword [ebx]
jmp 0x40c692
or eax, 0xffffffff
inc eax
mov ecx, ebx
push eax
push 0
lea eax, [esp + 0x1c]
push eax
call fcn.0040d8b0
push 0x44
lea eax, [esp + 0x30]
mov dword [esp + 0x84], 0
mov esi, dword [sym.imp.MSVCR120.dll_memset]
push 0
push eax
call esi
push 0x10
lea eax, [esp + 0x2c]
mov dword [esp + 0x3c], 0x44
push 0
push eax
call esi
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x34]
add esp, 0x18
push ecx
lea ecx, [esp + 0x30]
push ecx
push dword [esp + 0x1c]
push 0
push 0
push 0
push 0
push 0
push dword [eax]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40c726
push dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov edx, dword [esp + 0x1c]
push ecx
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
call fcn.0040ca40
add esp, 8
push dword [esp + 0x1c]
call esi
jmp 0x40c738
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, 0x8004aa02
test edi, edi
cmove edi, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x80], 0xffffffff
call fcn.0040aa60
mov eax, edi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d0b0
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [0x45b8e0]
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
add ebx, 2
push edi
mov edi, dword [0x45b8dc]
add edi, 2
mov dword [ebp - 4], ecx
push 0
mov dword [ebp - 8], edi
call esi
sub eax, edi
cdq
sub eax, edx
mov edi, eax
push 1
sar edi, 1
call esi
push 0
push dword [ebp - 4]
sub eax, ebx
push 0
push 0
push ebx
push dword [ebp - 8]
cdq
sub eax, edx
sar eax, 1
sub eax, 0xa
push eax
push edi
push SysReAllocString
push 0x448f8e
push str.OpeningQB
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x40d125
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffec
push esi
mov dword [0x45b8d0], esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x80028
push eax
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 5
push esi
mov dword [0x45b914], eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x40d2e0
push 0
push 0
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
mov dword [0x45b918], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
xor ebx, ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], ebx
mov eax, ecx
mov dword [ebp - 0xc], eax
test edi, edi
je 0x40d1d0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x40d1d0
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40d26b
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40d264
push ebx
push dword [ebp - 8]
push eax
call dword [sym.imp.MSVCR120.dll_memcpy]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40d264
mov ebx, dword [ebp - 4]
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x40d23a
lea eax, [esi + 4]
mov dword [esi], vtable.Gdiplus::Image.0
push eax
push ebx
mov dword [eax], 0
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [esi + 8], eax
jmp 0x40d23c
xor esi, esi
mov ecx, dword [ebp - 4]
call fcn.0040dd60
mov dword [0x45b8d8], eax
test esi, esi
je 0x40d264
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
jne 0x40d264
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40def0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, ecx
push esi
mov dword [ebp - 4], 1
call edi
add eax, 2
push eax
call fcn.0043bb8c
mov ebx, eax
push esi
push ebx
call dword [sym.imp.MSVCR120.dll_strcpy]
push 0x448200
push ebx
call dword [sym.imp.MSVCR120.dll_strcat]
add esp, 0x14
mov esi, ebx
push ebx
call edi
xor edi, edi
mov dword [ebp - 8], eax
test eax, eax
je 0x40df89
jmp 0x40df40
cmp byte [esi], 0x5c
jne 0x40df68
push 0
push ebx
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40df62
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40df82
mov eax, dword [ebp - 8]
mov byte [esi], 0x5c
inc edi
inc esi
cmp edi, eax
jb 0x40df40
push ebx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
push ebx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e4f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e17b
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x457078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.SOFTWAREIntuitQuickBooks_
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x11c], 0
call fcn.00409a40
lea eax, [ebp - 0x11c]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push dword [ebp - 0x118]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e60b
push str.QBStartupCheck
lea ecx, [ebp - 0x118]
call fcn.0040a1e0
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x124]
push eax
push 0
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e5ff
mov esi, dword [sym.imp.MSVCR120.dll_strncmp]
lea eax, [ebp - 0x114]
push 1
push 0x4494b8
push eax
call esi
add esp, 0xc
test eax, eax
je 0x40e5ec
push 1
lea eax, [ebp - 0x114]
push 0x448204
push eax
call esi
add esp, 0xc
test eax, eax
je 0x40e5ec
push 1
lea eax, [ebp - 0x114]
push 0x4494bc
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x40e5ff
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
jmp 0x40e60d
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
lea ecx, [ebp - 0x118]
mov dword [ebp - 4], 0xffffffff
call fcn.0040aa60
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043bfe6
mov esp, ebp
pop ebp
ret
Function at 0x40f590
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43e308
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x457078]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x457078]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x40f6ea
cmp byte [edi + 0x45], 0
je 0x40f6ea
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40f5f0
xor al, al
jmp 0x40f6ec
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
lea esi, [edi + 0x48]
lea ebx, [ebx]
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
cmp ebx, 0x10
lea ecx, [esp + 0x1c]
cmovae ecx, dword [esp + 0x1c]
cmovae edx, dword [esp + 0x1c]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x40]
push esi
call dword [sym.imp.MSVCP120.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x40f671
dec eax
je 0x40f675
sub eax, 2
je 0x40f6d0
xor bl, bl
jmp 0x40f6d2
mov byte [edi + 0x45], 0
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x18]
cmp ebx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, ecx
sub esi, eax
je 0x40f6ad
push dword [edi + 0x50]
cmp ebx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x40f66d
cmp byte [edi + 0x45], 0
je 0x40f6d0
test esi, esi
lea esi, [edi + 0x48]
jne 0x40f630
push 0
push 8
lea ecx, [esp + 0x20]
call fcn.0040fb20
jmp 0x40f627
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x40f6e6
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
jmp 0x40f6ec
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0043bfe6
mov esp, ebp
pop ebp
ret
Function at 0x410b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], 0
push 0x449288
push 0x32dc
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x410bc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x10
push ebx
push edi
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x410be3
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x410c31
cmp dword [ebp + 0x10], 0
push edi
push dword [esi + 0x1c]
jne 0x410c08
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jmp 0x410c2d
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x14]
cmp ecx, eax
jl 0x410c31
push ecx
push dword [ebp - 8]
push dword [ebp + 0x10]
call dword [sym.imp.MSVCR120.dll_memcpy]
add esp, 0xc
mov byte [ebp - 1], 1
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, byte [ebp - 1]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4195b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x220
mov eax, dword [0x457078]
xor eax, esp
mov dword [esp + 0x21c], eax
push 0x104
lea eax, [esp + 0x118]
mov byte [esp + 7], 0
push eax
push 0
mov dword [esp + 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4195f0
sub ecx, edx
add ecx, 0xfffffffc
cmp ecx, 0x105
jae 0x419792
push ebx
mov ebx, dword [sym.imp.MSVCR120.dll__strupr_s]
push ebp
push esi
push edi
mov byte [esp + ecx + 0x124], al
lea eax, [esp + 0x124]
push 0x104
push eax
call ebx
add esp, 8
lea eax, [esp + 0x18]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ebp, dword [sym.imp.MSVCR120.dll_strstr]
test eax, eax
jne 0x4196e0
xor esi, esi
mov dword [esp + 0x14], 0x104
push esi
push esi
push esi
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
push esi
push dword [esp + 0x34]
call edi
test eax, eax
jne 0x4196cb
jmp 0x419680
lea eax, [esp + 0x1c]
push 0x104
push eax
call ebx
lea eax, [esp + 0x12c]
push eax
lea eax, [esp + 0x28]
push eax
call ebp
add esp, 0x10
test eax, eax
jne 0x4196c6
push eax
push eax
push eax
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x104
push eax
lea eax, [esp + 0x30]
inc esi
push eax
push esi
push dword [esp + 0x34]
call edi
test eax, eax
je 0x419680
jmp 0x4196cb
mov byte [esp + 0x13], 1
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x13], 0
jne 0x419775
lea eax, [esp + 0x18]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x419775
xor esi, esi
mov dword [esp + 0x14], 0x104
push esi
push esi
push esi
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
push esi
push dword [esp + 0x34]
call edi
test eax, eax
jne 0x41976b
lea eax, [esp + 0x1c]
push 0x104
push eax
call ebx
lea eax, [esp + 0x12c]
push eax
lea eax, [esp + 0x28]
push eax
call ebp
add esp, 0x10
test eax, eax
jne 0x419766
push eax
push eax
push eax
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x104
push eax
lea eax, [esp + 0x30]
inc esi
push eax
push esi
push dword [esp + 0x34]
call edi
test eax, eax
je 0x419720
jmp 0x41976b
mov byte [esp + 0x13], 1
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043bfe6
add esp, 0x220
ret
call fcn.0043c240
int3
Function at 0x419870
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x98
mov eax, dword [0x457078]
xor eax, esp
mov dword [esp + 0x94], eax
cmp byte [0x45b158], 0
jne 0x419908
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x419901
cmp dword [esp + 0x10], 2
je 0x419901
push esi
push edi
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.CreateToolhelp32Snapshot
push edi
call esi
push str.Heap32ListFirst
push edi
mov dword [0x45b144], eax
call esi
push str.Heap32ListNext
push edi
mov dword [0x45b148], eax
call esi
push str.Heap32First
push edi
mov dword [0x45b14c], eax
call esi
push str.Heap32Next
push edi
mov dword [0x45b150], eax
call esi
pop edi
mov dword [0x45b154], eax
pop esi
mov byte [0x45b158], 1
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0043bfe6
add esp, 0x98
ret

Function at 0x41e1c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43fe1d
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x457078]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
cmp dword [esp + 0x30], 0
je 0x41e219
lea ecx, [edi + 0x60]
mov dword [edi], 0x446a84
call dword [sym.imp.MSVCP120.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], 1
push 0
push 0
lea esi, [edi + 4]
mov ecx, edi
push esi
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov eax, dword [edi]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x30], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call dword [sym.imp.MSVCP120.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov ecx, esi
mov byte [esp + 0x1c], 2
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x4c], 0
mov byte [esi + 0x45], 0
call dword [sym.imp.MSVCP120.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov dword [esi + 0x50], 0
mov eax, dword [0x45b954]
mov dword [esi + 0x48], eax
mov dword [esi + 0x40], 0
push dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
mov ecx, esi
or eax, 2
mov byte [esp + 0x20], 3
push eax
push dword [esp + 0x2c]
call fcn.0040f420
test eax, eax
jne 0x41e2b6
push eax
mov eax, dword [edi]
push 2
mov ecx, dword [eax + 4]
add ecx, edi
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 0x10