joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4267a2
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x4d2b63
call fcn.004a9c2e
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor ebx, ebx
mov dword [esi + 8], ebx
mov dword [esi], vtable.CZipContextMenu.1.0
mov dword [esi + 4], vtable.CZipContextMenu.0
mov byte [esi + 0xc], bl
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
lea ecx, [esi + 0x20]
mov dword [ebp - 4], ebx
call fcn.00402b1a
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov byte [ebp - 4], 2
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
push 0x514988
mov word [esi + 0x40], bx
mov dword [ebp - 0x14], 0x60
mov dword [ebp - 0x18], 4
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push str.Control_PanelDesktopWindowMetrics
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x426852
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push str.AppliedDPI
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
cmp eax, 0x60
je 0x42688a
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
push 0x30
addsd xmm0, qword [eax*8 + 0x4f6190]
pop eax
divsd xmm0, qword [0x4f6148]
mulsd xmm0, qword [0x4f6140]
cvttsd2si edi, xmm0
cmp edi, eax
cmovg edi, eax
push ebx
push edi
push edi
push 1
push 0xbf
push dword [0x514974]
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [esi + 0x3c], eax
call fcn.00427b46
mov eax, esi
call fcn.004a9bf7
ret
Function at 0x4286e6
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x50f35c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x234], eax
push edi
test esi, esi
je 0x4287b2
push 0x228
xor edi, edi
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.004ab9a0
add esp, 0xc
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4287b2
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x428772
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004b3320
pop ecx
pop ecx
test eax, eax
je 0x428778
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x428751
jmp 0x4287a7
push dword [ebp - 0x228]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp - 0x234]
mov esi, eax
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x4287b4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8d06
leave
ret 8

Function at 0x428b0f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x428b21
push 0xd
pop eax
jmp 0x428b53
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x428b2a
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x429d57
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0x6e
je 0x429d66
pop ebp
jmp fcn.004043e1
push 1
xor ecx, ecx
push ecx
push ecx
push str.http:__www.7_zip.org_
push ecx
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov al, 1
pop ebp
ret 8
Function at 0x42fb08
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x50f35c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp + 0xc]
push str.RtlGetVersion
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 0x10]
push str.ntdll.dll
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x128], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 9
mov dword [ebp - 0x124], eax
lea edi, [ebp - 0x158]
pop eax
mov ecx, eax
xor ebx, ebx
xor eax, eax
push 0x118
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.004ab9a0
mov eax, dword [ebp - 0x124]
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
test eax, eax
je 0x42fba6
lea ecx, [ebp - 0x120]
push ecx
call eax
test eax, eax
jns 0x42fbbb
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42fd48
test esi, esi
je 0x42fbd0
mov edi, dword [ebp - 0x128]
lea esi, [ebp - 0x120]
push 0x47
pop ecx
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx esi, word [ebp - 0xc]
xor ecx, ecx
cmp dword [ebp - 0x140], 0x21d8
push 2
sete cl
pop edx
mov dword [ebp - 0x124], ecx
cmp dword [ebp - 0x110], edx
jne 0x42fcee
mov eax, dword [ebp - 0x11c]
cmp eax, 0xa
jne 0x42fc2d
cmp dword [ebp - 0x118], ebx
jne 0x42fd21
xor ebx, ebx
cmp byte [ebp - 6], 1
setne bl
add ebx, 0x11
jmp 0x42fd21
cmp eax, 6
jne 0x42fc93
mov eax, dword [ebp - 0x118]
cmp eax, 3
jne 0x42fc4e
xor ebx, ebx
cmp byte [ebp - 6], 1
setne bl
add ebx, 0xf
jmp 0x42fd21
cmp eax, edx
jne 0x42fc63
xor ebx, ebx
cmp byte [ebp - 6], 1
setne bl
add ebx, 0xd
jmp 0x42fd21
cmp eax, 1
jne 0x42fc78
xor ebx, ebx
cmp byte [ebp - 6], al
setne bl
add ebx, 0xb
jmp 0x42fd21
test eax, eax
jne 0x42fd21
xor ebx, ebx
cmp byte [ebp - 6], 1
push 9
setne bl
pop eax
add ebx, eax
jmp 0x42fd21
cmp eax, 5
jne 0x42fce4
mov eax, dword [ebp - 0x118]
cmp eax, edx
jne 0x42fcd3
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x42fcb2
push 8
jmp 0x42fcca
cmp byte [ebp - 6], 1
jne 0x42fcc8
push 9
pop eax
cmp word [ebp - 0x158], ax
jne 0x42fcc8
push 6
jmp 0x42fcca
push 7
mov ecx, dword [ebp - 0x124]
pop ebx
jmp 0x42fd21
cmp eax, 1
jne 0x42fcdc
push 6
jmp 0x42fceb
test eax, eax
jne 0x42fd21
push 5
jmp 0x42fceb
cmp eax, 4
ja 0x42fd21
push 4
pop ebx
jmp 0x42fd21
cmp dword [ebp - 0x110], 1
jne 0x42fd21
cmp dword [ebp - 0x11c], 4
jne 0x42fd21
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x42fd0f
xor ebx, ebx
inc ebx
jmp 0x42fd21
cmp eax, 0xa
jne 0x42fd18
mov ebx, edx
jmp 0x42fd21
push 3
cmp eax, 0x5a
pop edx
cmove ebx, edx
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x42fd2d
mov dword [eax], ebx
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x42fd39
mov dword [eax], esi
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x42fd45
mov dword [eax], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8d06
leave
ret
Function at 0x42fd57
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x50f35c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x118], 0x114
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x11c], esi
push esi
push eax
mov ebx, esi
mov dword [ebp - 0x120], esi
mov edi, esi
call fcn.004ab9a0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42fdc2
cmp dword [ebp - 0x114], 6
jae 0x42fdc2
mov eax, 0x3000
jmp 0x42fe78
lea eax, [ebp - 0x11c]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42fe78
lea eax, [ebp - 0x120]
push eax
push esi
push esi
push 0x19
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x42fe06
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x42fe45
push dword [ebp - 0x120]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x42fe45
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x120]
push edi
push 0x19
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x42fe45
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov ebx, eax
cmp dword [ebp - 0x11c], esi
je 0x42fe5f
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x11c], esi
test edi, edi
je 0x42fe70
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x120], esi
test ebx, ebx
je 0x42fe76
mov esi, dword [ebx]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8d06
leave
ret

Function at 0x42fe87
Capabilities:
Check os version

Disassembly:
push 0x128
mov eax, 0x4d38b7
call fcn.004a9c62
push 0x110
xor esi, esi
lea eax, [ebp - 0x120]
push esi
push eax
call fcn.004ab9a0
add esp, 0xc
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x12c], esi
lea eax, [ebp - 0x124]
mov dword [ebp - 4], esi
push eax
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x124], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42ff2d
cmp dword [ebp - 0x120], 5
jbe 0x42ff2d
push 0x20119
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x134]
call fcn.004289da
test eax, eax
jne 0x42ff2d
lea eax, [ebp - 0x128]
push eax
push str.EnableLUA
lea ecx, [ebp - 0x134]
call fcn.00428ada
xor eax, eax
cmp eax, dword [ebp - 0x128]
sbb esi, esi
neg esi
lea ecx, [ebp - 0x134]
call fcn.00428abb
mov eax, esi
call fcn.004a9c0c
ret
Function at 0x4316ad
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x50f35c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
push 4
pop eax
test edi, edi
mov dword [ebp - 0x18], edi
lea ebx, [edi - 0x380]
cmove ebx, eax
push dword [ebx]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x431780
push esi
push dword [edi + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x43177f
push dword [ebx]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x431774
push dword [ebx]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
jne 0x431774
push dword [ebx]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x431774
lea eax, [ebp - 0x14]
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea esi, [edi + 0x350]
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
push ecx
mov ecx, dword [ebp - 0x18]
movsd dword es:[edi], dword [esi]
lea ecx, [ecx + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x28]
lea esi, [ebp - 0x14]
sub dword [ebp - 0x14], eax
lea edi, [ebp - 0x28]
mov eax, dword [ebp - 0x20]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24]
sub dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
add dword [ebp - 8], eax
lea eax, [ebp - 0x28]
cmp dword [ebp + 8], 0
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
je 0x43176b
call fcn.00431ee9
jmp 0x43177f
push dword [ebx]
call fcn.00431b7d
jmp 0x43177f
push 0
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004a8d06
leave
ret 4

Function at 0x431f0f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
setne al
pop ebp
ret 4

Function at 0x431fa2
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x50f35c]
xor eax, ebp
mov dword [ebp - 4], eax
test cl, cl
mov edx, 0x4011
mov eax, 0x4110
cmovne eax, edx
push eax
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0x90
push 0x4effd0
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8d06
leave
ret

Function at 0x432b0f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x11
mov esi, ecx
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, dword [ebp + 8]
shr eax, 0xf
and al, 1
movzx ecx, word [edx + 0xc]
mov edx, ecx
cmp edx, 8
je 0x432b54
cmp edx, 0x52
je 0x432b43
cmp ecx, 0x76
jne 0x432b50
mov ecx, esi
call fcn.0043355f
jmp 0x432b5b
test al, al
je 0x432b50
mov ecx, esi
call fcn.004333db
jmp 0x432b5b
xor al, al
jmp 0x432b5d
mov ecx, esi
call fcn.00433465
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x433ecd
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
push 4
pop eax
test esi, esi
lea ebx, [esi - 0x348]
cmove ebx, eax
push eax
mov dword [ebp - 0x14], ebx
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindow]
and dword [ebp - 8], 0
mov edi, eax
and dword [ebp - 0xc], 0
xor eax, eax
inc eax
mov dword [ebp - 0x10], edi
push eax
push dword [ebx]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [ebx]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x434008
lea eax, [esi + 0x1c]
cmp dword [ebp - 4], 0
je 0x433f6c
mov ebx, dword [ebp - 4]
lea edi, [esi + 0x1c]
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x433f60
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 8]
call dword [eax + 4]
inc dword [ebp - 8]
test eax, eax
jne 0x433f5c
xor ebx, ebx
test ebx, ebx
jne 0x433f36
mov edi, dword [ebp - 0x10]
lea eax, [esi + 0x1c]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0x14]
xor ecx, ecx
push ecx
push ecx
push ecx
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x433ff5
test eax, eax
je 0x434008
cmp dword [esi + 0x20], 0x10
jne 0x433fa8
mov eax, dword [esi + 0x1c]
cmp eax, dword [ebx]
jne 0x433fa8
mov eax, dword [esi + 0x24]
push 1
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi]
lea ecx, [esi + 0x1c]
push ecx
mov ecx, esi
call dword [eax]
test eax, eax
jne 0x433fca
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [esi + 0x20]
cmp eax, 0x12
je 0x434008
sub eax, 0xf
je 0x433ff5
sub eax, 0x91
je 0x433ff5
sub eax, 0x78
je 0x433ff5
sub eax, 0xe8
je 0x433ff5
and dword [ebp - 8], 0
mov dword [ebp - 4], 1
push dword [ebx]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
lea eax, [esi + 0x1c]
jne 0x433f2a
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [esi + 0x20], 0x12
jne 0x434027
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp dword [ebp - 0xc], 0
pop edi
pop esi
setne al
pop ebx
leave
ret
Function at 0x434ad3
Capabilities:
Create process on windows

Disassembly:
push 0x8c
mov eax, 0x4d39ac
call fcn.004a9c62
mov esi, ecx
mov edi, dword [ebp + 8]
lea edx, [ebp - 0x94]
push edx
mov ecx, dword [edi + 0x108]
mov eax, dword [ecx]
call dword [eax + 4]
xor ebx, ebx
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.00474bae
push eax
lea ecx, [ebp - 0x98]
call fcn.0042335e
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 2
call fcn.00439cda
cmp dword [ebp - 0x98], ebx
je 0x434b99
push str.btn_ok
lea ecx, [ebp - 0x98]
call fcn.00431689
test eax, eax
je 0x434b50
push str.btn_cancel
lea ecx, [ebp - 0x98]
call fcn.00431689
test eax, eax
jne 0x434b5f
push ebx
push ebx
push 0x10
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x434b99
push str.btn_qqgroup
lea ecx, [ebp - 0x98]
call fcn.00431689
test eax, eax
jne 0x434b99
mov ecx, dword [edi + 0x108]
push 1
push ebx
push ebx
mov eax, dword [ecx]
call dword [eax + 0xbc]
mov ecx, eax
call fcn.00474bae
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 0x98]
lea ecx, [ecx - 0x10]
call fcn.004238e7
call fcn.004a9c0c
ret 4
Function at 0x438125
Capabilities:
Accept command line arguments

Disassembly:
push 0x14
mov eax, 0x4d4350
call fcn.004a9c2e
push 0x66
pop edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x10]
call fcn.0042335e
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push str._startby_d
call fcn.0042335e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 0xc]
add eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00428034
mov byte [ebp - 4], 2
mov ecx, dword [eax]
mov eax, dword [ebp - 0x10]
test ecx, ecx
je 0x438196
cmp dword [eax - 0xc], 0
jl 0x438196
push ecx
push eax
call fcn.004ab4d3
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x10]
test ecx, ecx
jne 0x43819b
or ecx, 0xffffffff
jmp 0x43819f
sub ecx, eax
sar ecx, 1
mov eax, dword [eax - 0xc]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00439c49
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x10]
call fcn.00428291
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.004238e7
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.004238e7
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00439ee9
mov esi, dword [ebp - 0x18]
add esp, 0xc
mov ecx, dword [ebp - 0x14]
test eax, eax
cmove esi, edi
add ecx, 0xfffffff0
mov dword [ebp - 0x18], esi
call fcn.004238e7
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004238e7
mov eax, esi
call fcn.004a9bf7
ret

Function at 0x43845d
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0x4c
mov eax, 0x4d43f0
call fcn.004a9c2e
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov edi, ebx
call fcn.00423843
push eax
lea ecx, [ebp - 0x10]
call fcn.00423599
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.004264a6
pop ecx
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x438537
mov byte [ebp - 4], 2
call fcn.00423843
push eax
lea ecx, [ebp - 0x18]
call fcn.00423599
push 0x65
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 1
push str._startby_d
push eax
call fcn.004287c5
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push esi
push str._auto
push str._s__s
push eax
call fcn.004287c5
add esp, 0x1c
mov byte [ebp - 4], 1
lea ecx, [esi - 0x10]
call fcn.004238e7
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.004ab9a0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], esi
mov esi, dword [ebp - 0x10]
push eax
mov dword [ebp - 0x54], 0x40
mov dword [ebp - 0x4c], str.open
mov dword [ebp - 0x44], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x43853a
push dword [ebp - 0x20]
inc edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43853a
mov esi, dword [ebp - 0x10]
push ebx
push ebx
push edi
push 2
push 0x65
call fcn.00466021
mov ecx, eax
call fcn.004666ee
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004238e7
lea ecx, [esi - 0x10]
call fcn.004238e7
mov eax, edi
call fcn.004a9bf7
ret
Function at 0x438d61
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x2c
mov eax, 0x4d4423
call fcn.004a9c2e
mov ebx, dword [0x514974]
lea eax, [ebp - 0xd]
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.004611e9
cmp byte [0x515054], 0
je 0x438dab
mov eax, dword [ebp - 0x1c]
mov dword [0x514f2c], eax
mov eax, dword [ebp - 0x24]
cmp eax, 1
jb 0x438d9e
cmp eax, 2
jbe 0x438da1
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x20]
cmp ecx, 2
jb 0x438db0
jmp 0x438dae
xor eax, eax
inc eax
xor ecx, ecx
push ebx
mov dword [0x514a60], eax
mov dword [0x514a64], ecx
call fcn.0047121a
mov dword [esp], 0x4f3ae8
push 0xa0
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x438e18
push edi
call fcn.0046e746
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x438e11
push edi
call fcn.0046e746
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x438e11
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.0047143d
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, ebx
call fcn.004615bb
push 0x3f8
call fcn.004a8eb3
pop ecx
mov dword [ebp - 0x18], eax
xor ebx, ebx
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.0043f703
or dword [ebp - 4], 0xffffffff
mov edi, eax
test edi, edi
je 0x438eb4
push str.6789
lea ecx, [ebp - 0x14]
mov dword [edi + 0x3b0], 0x43957a
call fcn.0042335e
push ebx
push 0x23c
push 0x320
push ebx
push ebx
push ebx
push 0xcf0000
mov dword [ebp - 4], 1
mov ecx, edi
push dword [ebp - 0x14]
push ebx
call fcn.0046ca85
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004238e7
push ecx
mov ecx, edi
mov dword [0x514e60], edi
call fcn.0043fe16
push 5
mov ecx, edi
call fcn.0046c92b
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00470182
xor eax, eax
inc eax
call fcn.004a9bf7
ret

Function at 0x438eba
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x50f35c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x438f22
cmp dword [ebp - 0x108], 2
jne 0x438f22
cmp dword [ebp - 0x114], 5
jb 0x438f22
ja 0x438f05
cmp dword [ebp - 0x110], 1
jbe 0x438f22
call fcn.004092a9
call fcn.0045d29e
test al, al
je 0x438f22
mov ecx, str.SeLockMemoryPrivilege
call fcn.00407f71
mov byte [0x514821], al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8d06
leave
ret

Function at 0x438f2e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x50f35c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov byte [0x514822], 0
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x438f90
cmp dword [ebp - 0x108], 2
jne 0x438f90
cmp dword [ebp - 0x114], 6
jb 0x438f90
mov ecx, 0x4f2290
mov byte [0x514822], 1
call fcn.00407f71
mov ecx, str.SeCreateSymbolicLinkPrivilege
call fcn.00407f71
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8d06
leave
ret