joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404ab2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x34
cmp word [eax + 2], 0x3a
push ebx
jne 0x404c6c
movzx ecx, word [eax + 4]
cmp cx, 0x5c
je 0x404adb
cmp cx, 0x2f
jne 0x404c6c
mov ax, word [eax]
push 0x3a
mov word [ebp - 0x10], ax
pop eax
mov word [ebp - 0xe], ax
push 0x5c
pop eax
mov word [ebp - 0xc], ax
xor eax, eax
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x404b0d
push dword [ebp + 8]
jmp 0x404c6d
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.00403f2b
pop ecx
pop ecx
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x404c34
push esi
push edi
lea ecx, [ebp - 0x1c]
call fcn.004013fd
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00401311
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.004024c5
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013ce
mov esi, 0x4148c8
push esi
lea ecx, [ebp - 0x1c]
call fcn.004024c5
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.004024c5
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013ce
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.004024c5
push edi
lea ecx, [ebp - 0x1c]
call fcn.004024c5
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013ce
push esi
lea ecx, [ebp - 0x1c]
call fcn.004024c5
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004026ef
mov eax, dword [eax]
add esp, 0xc
push ebx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x34]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
cmp esi, ebx
pop esi
je 0x404c47
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x404c47
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x404c72
push dword [ebp - 0x28]
call fcn.00402c04
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x404c73
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
leave
ret
Function at 0x4010b0
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 0x4010cb
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 0x401102
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4010fe
jmp 0x4010f0
cmp esi, eax
jae 0x401102
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4010f0
cmp esi, eax
jb 0x401109
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
pop ebx
pop ebp
ret

Function at 0x401520
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6484d1
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x703eb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x224], esi
call fcn.0041a80c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40156b
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
push 0x6cb728
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
call fcn.004023d0
push 0x104
lea ecx, [ebp - 0x218]
push ecx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4015e2
xor edx, edx
lea eax, [ebp - 0x218]
mov word [ebp - 0x216], dx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4015c0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402ad0
push 0x6cb72c
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x220]
push edx
call fcn.00402600
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00402930
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40162f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401655
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00521602
mov esp, ebp
pop ebp
ret
Function at 0x401670
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x648488
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x703eb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
push 0x19
lea eax, [ebp - 0x74]
push eax
push str.False
push ecx
push str.Main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x78]
call fcn.004023d0
mov eax, dword [eax]
push str.true
push eax
call fcn.005217ee
add esp, 8
test eax, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x78]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4016fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00521602
mov esp, ebp
pop ebp
ret 4
Function at 0x403f40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6495e1
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x703eb0]
xor eax, esp
mov dword [esp + 0x464], eax
push esi
push edi
mov eax, dword [0x703eb0]
xor eax, esp
push eax
lea eax, [esp + 0x478]
mov dword fs:[0], eax
cmp byte [0x722721], 0
mov edi, ecx
jne 0x40409d
cmp byte [0x722722], 0
jne 0x40409d
cmp byte [0x722727], 0
jne 0x40409d
lea esi, [esp + 0x10]
call fcn.00401520
mov eax, esi
push eax
mov ecx, str.IgnoreResults
mov dword [esp + 0x484], 0
call fcn.00401670
test al, al
jne 0x404072
mov ecx, esi
push ecx
mov ecx, str.IsFinalizing
call fcn.00401670
test al, al
je 0x40403a
lea edx, [esp + 0x14]
push edx
call fcn.00402de0
lea ecx, [esp + 0x14]
mov byte [esp + 0x480], 1
call fcn.0041b9b1
lea ecx, [esp + 0x14]
mov byte [esp + 0x480], 0
call fcn.00402ef0
lea eax, [esp + 0x10]
call fcn.00411e20
mov ecx, dword [esp + 0x478]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x464]
xor ecx, esp
call fcn.00521602
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
push eax
call fcn.00401730
lea ecx, [esp + 0x14]
mov byte [esp + 0x480], 2
call fcn.0041b9b1
mov byte [esp + 0x480], 0
lea ecx, [esp + 0x14]
cmp eax, 7
jne 0x40406d
call fcn.00401840
jmp 0x40400e
call fcn.00401840
mov dword [esp + 0x480], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40409d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [0x722725], 1
call fcn.00408ab0
cmp byte [0x722720], 0
je 0x4040d0
push str.Reimage_Booster
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4040d0
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov ecx, edi
call fcn.0042505e
mov edx, dword [edi + 0x348]
mov eax, dword [edi + 0x350]
lea ecx, [edi + 0x358]
push ecx
push 0x3e8
push 3
push 0
push str.AppClose
push edx
push eax
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov ecx, dword [edi + 0x20]
lea edx, [esp + 0xb4]
push edx
push 2
mov dword [esp + 0xbc], 0x3b8
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], 0x80
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
cmp dword [edi + 0x350], 0
mov byte [edi + 0x259], 1
jne 0x404149
mov ecx, edi
call fcn.00427145
cmp byte [0x722721], 0
je 0x404017
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4088f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6483c2
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x703eb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], edi
mov dword [edi], vtable.CREI_PostRebootContainerApp.0
push 0xa
push 0x10
lea eax, [ebp - 0x30]
push eax
push 0x1f4
mov dword [ebp - 4], 3
call fcn.005228a9
add esp, 0x10
lea ecx, [ebp - 0x34]
push ecx
push 2
push 0
push str.Control_PanelDesktop
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40898f
push 4
lea edx, [ebp - 0x30]
push edx
push 1
push eax
mov eax, dword [ebp - 0x34]
push str.MenuShowDelay
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x408985
push eax
push eax
push 0x1f4
push 0x6b
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [edi + 0x230]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4089b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 0x22c]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4089d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 0x228]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4089f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 0x224]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408a17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [edi + 0x208]
call fcn.004079a0
lea ecx, [edi + 0x1f0]
push ecx
mov dword [edi + method.CCriticalSection.virtual_0], vtable.CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [edi + 0x1e8]
call fcn.0042e874
lea edx, [edi + 0x140]
push edx
mov byte [ebp - 4], 2
call fcn.00412d00
lea ecx, [edi + 0xf0]
mov byte [ebp - 4], 1
call fcn.00414270
lea esi, [edi + 0xd4]
call fcn.0040c5d0
mov eax, dword [esi]
push eax
call fcn.00419f98
add esp, 4
mov ecx, edi
mov dword [esi], 0
mov dword [ebp - 4], 0xffffffff
call fcn.0042bdd8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00521602
mov esp, ebp
pop ebp
ret
Function at 0x409270
Capabilities:
Create thread
Get common file path
Get program files directory
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x648ac6
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x703eb0]
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 edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push 0x10
call fcn.00419f69
mov esi, eax
add esp, 4
test esi, esi
je 0x40930b
call fcn.0041a80c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4092d1
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 4], eax
call fcn.0041a80c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4092fa
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 8], eax
jmp 0x40930d
xor esi, esi
push 0
push 0x26
lea ecx, [ebp - 0x21c]
push ecx
push 0
mov dword [ebp - 0x224], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push edi
lea ecx, [ebp - 0x220]
call fcn.004023d0
lea edx, [ebp - 0x21c]
push edx
push 0x6cca6c
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 0
call fcn.004063e0
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x220]
mov byte [ebp - 4], 1
lea ecx, [esi + 4]
push edx
mov dword [esi], eax
call fcn.00402930
lea ecx, [esi + 8]
test ebx, ebx
jne 0x409373
xor eax, eax
jmp 0x40938f
mov eax, ebx
lea edi, [eax + 2]
jmp 0x409380
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x409380
sub eax, edi
sar eax, 1
push eax
push ebx
call fcn.00402ad0
mov eax, dword [ebp + 0x14]
push str.measureLoadUpTime
lea ecx, [ebp - 0x228]
mov dword [esi + 0xc], eax
call fcn.004023d0
lea ecx, [ebp - 0x224]
push ecx
push 4
push esi
push 0x409590
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x4093e4
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40940a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409433
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x409458
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00521602
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40a5f0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6480e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x703eb0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x14]
push eax
push 0x40a4d0
mov dword [esp + 0x38], ebx
mov esi, 0x80004005
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [esp + 0x14]
cmp edi, dword [esp + 0x18]
je 0x40a675
lea ecx, [ecx]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
mov ecx, dword [edi]
push edx
call fcn.0040a400
mov esi, eax
add esp, 8
cmp esi, ebx
jge 0x40a671
add edi, 4
cmp edi, dword [esp + 0x18]
jne 0x40a650
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x40a682
push edi
call fcn.00419f98
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b9a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x703eb0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0xa
push 0x10
lea eax, [ebp - 0x24]
push eax
push esi
xor bl, bl
call fcn.005228a9
add esp, 0x10
lea ecx, [ebp - 0x28]
push ecx
push 2
push 0
push str.Control_PanelDesktop
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ba13
push 4
lea edx, [ebp - 0x24]
push edx
push 1
push eax
mov eax, dword [ebp - 0x28]
push str.MenuShowDelay
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40ba09
push eax
push eax
push esi
push 0x6b
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov bl, 1
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00521602
mov esp, ebp
pop ebp
ret

Function at 0x40ba30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [ebp + 0x10]
mov edi, eax
mov eax, dword [ebp + 0xc]
shr eax, 4
inc eax
movzx ebx, ax
push ecx
push ebx
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x40ba74
push 0x409
push ebx
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x40ba9f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40ba9f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40ba9f
mov eax, dword [ebp + 0xc]
and eax, 0xf
jbe 0x40ba9f
dec eax
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40ba95
movzx edi, word [esi]
xor ecx, ecx
lea ebx, [edi + 1]
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00419fa3
lea ecx, [edi + edi + 2]
push ecx
push 0
push eax
mov dword [ebp + 0xc], eax
call fcn.005236f0
add esp, 0x10
test ebx, ebx
je 0x40bafe
cmp ebx, 0x7fffffff
ja 0x40bafe
cmp edi, 0x7ffffffe
jbe 0x40baee
mov eax, dword [ebp + 0xc]
xor edx, edx
mov word [eax], dx
jmp 0x40bafe
mov ecx, dword [ebp + 0xc]
add esi, 2
push esi
mov edx, edi
mov eax, ebx
call fcn.004073d0
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.004023d0
push edi
call fcn.00419f98
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411820
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [edi + 0x20]
mov ecx, 0x6cbc40
mov eax, esi
jmp 0x411830
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411856
test dx, dx
je 0x411852
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411856
add eax, 4
add ecx, 4
test dx, dx
jne 0x411830
xor eax, eax
jmp 0x41185b
sbb eax, eax
sbb eax, 0xffffffff
push 1
test eax, eax
mov eax, dword [edi + 0x1c]
push 0
jne 0x411880
mov ecx, dword [0x722680]
mov edx, dword [ecx + 0x20]
push 0
push eax
push str.open
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
ret
push eax
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
ret

Function at 0x414140
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x648593
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x703eb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
xor ebx, ebx
push ebx
xor eax, eax
push ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov ecx, esi
mov word [esi], ax
call fcn.0040c4d0
lea eax, [esi + 0x20]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0xc]
mov word [esi + 0x30], 1
mov dword [esi + 0x34], edx
push 0x18
mov dword [esi + 0x40], ebx
call fcn.00419f69
add esp, 4
cmp eax, ebx
je 0x4141eb
mov dword [esi + 0x3c], eax
mov dword [eax], eax
mov eax, dword [esi + 0x3c]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x3c]
mov dword [eax + 8], eax
mov eax, dword [esi + 0x3c]
mov byte [eax + 0x14], 1
mov ecx, dword [esi + 0x3c]
mov byte [ecx + 0x15], 1
mov dword [esi + 0x48], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea edx, [ebp + 0xc]
push edx
lea ecx, [ebp - 0x18]
mov dword [ebp + 0xc], ebx
call fcn.00521f31
push 0x6f8794
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], vtable.std::bad_alloc.0
call fcn.00522d3b
int3
Function at 0x416080
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push ebx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4160af
xor bl, bl
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax - 0xc]
push esi
lea edx, [ecx + ecx + 2]
mov ecx, dword [ebp - 4]
push edx
push eax
mov eax, dword [ebp + 0xc]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4160e0
mov edx, dword [ebp - 4]
push edx
call esi
xor bl, bl
mov eax, dword [ebp - 4]
push eax
call esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop esi
test edx, edx
jg 0x416106
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416125
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416144
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416c00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62c0c2
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x703eb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x42c], 0
mov dword [ebp - 4], 2
call fcn.0041a80c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x416c60
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x424]
push ecx
push 0xf003f
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x42c], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x416d18
lea eax, [ebp - 0x428]
push eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x420]
push ecx
mov ecx, dword [ebp - 0x424]
lea edx, [ebp - 0x430]
push edx
push 0
push eax
push ecx
mov dword [ebp - 0x430], 1
mov dword [ebp - 0x428], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416cfb
lea eax, [ebp - 0x420]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416ce2
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x420]
push edx
jmp 0x416d02
push 0
push 0x6cbc40
mov ecx, esi
call fcn.00402ad0
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x416d26
push 0
push 0x6cbc40
mov ecx, esi
call fcn.00402ad0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416d49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416d6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.00521602
mov esp, ebp
pop ebp
ret