joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c390
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x486833
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push eax
push 0xcb
mov dword [esp + 0x18], ebp
call sub.MFC42u.DLL_CDialog::CDialog
mov dword [ebp], 0x488cdc
xor edi, edi
lea ecx, [ebp + 0x60]
mov dword [esp + 0x24], edi
call fcn.0040b5f0
mov ebx, 1
mov dword [ebp], 0x490978
mov byte [esp + 0x24], bl
mov dword [ebp + 0xcc], edi
mov dword [ebp + 0xd0], edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x46c402
mov dword [ebp + 0xd0], ebx
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
cmp esi, edi
je 0x46c4b5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlFormatCurrentUserKeyPath
push esi
call edi
push str.RtlFreeUnicodeString
push esi
mov ebx, eax
call edi
mov esi, eax
test ebx, ebx
mov dword [esp + 0x2c], esi
je 0x46c4b5
test esi, esi
je 0x46c4b5
lea ecx, [esp + 0x14]
push ecx
call ebx
test eax, eax
jne 0x46c4b5
mov edx, dword [esp + 0x14]
and edx, 0xffff
add edx, 2
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp + 0xcc], edi
je 0x46c4ae
mov ecx, dword [esp + 0x14]
xor eax, eax
and ecx, 0xffff
add ecx, 2
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edi, dword [ebp + 0xcc]
and ecx, 0xffff
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
push ecx
call esi
push ebp
push 0x600
mov ecx, ebp
call fcn.00403a90
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x46dd70
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x214]
push edi
mov edi, ecx
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x46de20
push 0x25
mov ecx, esi
call sub.MFC42u.DLL_CString::Find
test eax, eax
jl 0x46dde5
mov edx, dword [edi]
push esi
mov ecx, edi
call dword [edx + 0xf4]
test al, al
jne 0x46dde5
mov eax, dword [esi]
lea ecx, [esp + 8]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jbe 0x46dde5
cmp eax, 0x103
jae 0x46dde5
lea edx, [esp + 8]
mov word [esp + 0x210], 0
push edx
push 0x49e1d8
push esi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov eax, dword [esi]
lea ecx, [esp + 8]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jbe 0x46de20
cmp eax, 0x103
jae 0x46de20
lea edx, [esp + 8]
mov word [esp + 0x210], 0
push edx
push 0x49e1d8
push esi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
pop edi
pop esi
add esp, 0x20c
ret 4
Function at 0x46e310
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4869f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, ecx
push ebp
push esi
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_4
xor ebp, ebp
push 0x100000
mov dword [esp + 0x34], ebp
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x46e4c7
push edi
lea ecx, [esp + 0x18]
call fcn.0042e840
mov edi, dword [esp + 0x3c]
mov byte [esp + 0x34], 1
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ecx, [esp + 0x18]
push eax
push edi
call fcn.0042ea80
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push 0x20019
call fcn.0042e920
push eax
lea ecx, [esp + 0x24]
call fcn.0042e930
push eax
call fcn.0041eb90
add esp, 0x10
cmp al, 1
jne 0x46e4ae
mov dword [esp + 0x3c], ebp
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
push 0
push 0
push 1
push 0
push 0x100000
push esi
push 1
push ecx
push edx
push 0x21
call fcn.0041ec10
add esp, 0x28
cmp al, 1
jne 0x46e4a3
mov eax, dword [esi + 0x10]
cmp eax, 2
jb 0x46e49a
cmp dword [esi + 8], 0xffffffff
je 0x46e49a
shr eax, 1
lea ecx, [esp + 0x10]
mov di, word [esi + eax*2 + 0x14]
lea eax, [esi + eax*2 + 0x14]
mov word [eax], 0
lea eax, [esi + 0x14]
push eax
push 0x49e1d8
push ecx
call sub.MFC42u.DLL_CString::Format
mov edx, dword [esi + 0x10]
add esp, 0xc
shr edx, 1
push 0
push 0
mov word [esi + edx*2 + 0x14], di
mov eax, dword [ebx + 0xc0]
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
mov edi, eax
push 0
lea ebp, [ebx + 0xa0]
push ecx
push edi
push 1
mov ecx, ebp
call sub.MFC42u.DLL_CListCtrl::InsertItem
mov edx, dword [esp + 0x40]
mov ecx, ebp
push edx
push 1
push edi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov eax, dword [esi + 8]
cmp dword [eax + esi], 0
je 0x46e479
lea ecx, [esp + 0x10]
push str.Enabled
push ecx
jmp 0x46e483
lea edx, [esp + 0x10]
push str.Disable
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x18]
add esp, 8
mov ecx, ebp
push eax
push 2
push edi
call sub.MFC42u.DLL_CListCtrl::SetItemText
inc dword [esp + 0x3c]
jmp 0x46e3ae
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 0
call fcn.0042e8f0
pop edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x28]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x471da0
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem]
push esi
test eax, eax
mov esi, 0x4f8458
je 0x471e07
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esi]
lea eax, [esp + 0x10]
push eax
push 0x2001b
push 0
push ecx
push 0x80000001
call edi
test eax, eax
jne 0x471dfa
mov ecx, dword [esp + 0x10]
lea edx, [esi + 8]
push 4
push edx
push 4
push eax
mov eax, dword [esi + 4]
push eax
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebp
mov eax, dword [esi + 0xc]
add esi, 0xc
test eax, eax
jne 0x471dc5
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret

Function at 0x477680
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491480
push 0x47e2ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x2c], edi
cmp dword [0x5540ac], edi
jne 0x4777e6
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, edi
je 0x4777e6
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
and ecx, 0xff
xor edx, edx
mov dl, ah
and edx, 0xff
mov eax, edx
cmp ecx, 5
jne 0x47773d
cmp eax, edi
jne 0x477705
mov dword [ebp - 0x20], 0x512880
mov dword [ebp - 0x1c], 0x10
jmp 0x477769
cmp eax, 1
jne 0x47771a
mov dword [ebp - 0x20], 0x512874
mov dword [ebp - 0x1c], 0xb
jmp 0x477769
cmp eax, 2
jne 0x477769
mov dword [ebp - 0x20], 0x512874
mov dword [ebp - 0x1c], 0xb
mov dword [ebp - 0x2c], 0x512864
mov dword [ebp - 0x38], 0xe
jmp 0x477769
cmp ecx, 6
jne 0x477769
cmp eax, edi
jne 0x477756
mov dword [ebp - 0x20], 0x512858
mov dword [ebp - 0x1c], 0xa
jmp 0x477769
cmp eax, 1
jne 0x477769
mov dword [ebp - 0x20], 0x51284c
mov dword [ebp - 0x1c], 8
cmp dword [ebp - 0x20], edi
je 0x4777e6
mov dword [ebp - 4], edi
xor ebx, ebx
mov dword [ebp - 0x40], ebx
cmp ebx, 0x70000
jae 0x4777df
lea edx, [ebx + esi]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x477794
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4777b3
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x4777cd
mov ecx, dword [ebp - 0x38]
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4777af
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4777cd
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebx + ecx - 4]
mov dword [ebp - 0x34], eax
cmp eax, ecx
jbe 0x4777cd
cmp eax, 0x80000000
jae 0x4777cd
mov dword [0x5540ac], eax
inc ebx
mov dword [ebp - 0x40], ebx
mov esi, dword [ebp - 0x24]
jmp 0x477776
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x32940e75
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x5bb9619f
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x407c70
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [0x4934c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea edx, [ebp - 0x3f4]
push edx
push 0x20019
push 0
push str.TypeLib
push SysReAllocStringLen
mov dword [ebp - 0x3fc], eax
mov dword [ebp - 0x400], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push SysReAllocStringLen
mov esi, eax
call edi
test esi, esi
je 0x407cd7
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004551b3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x3f4]
lea eax, [ebp - 0x3f0]
push eax
push 0x20019
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [ebp - 0x3f4]
push edx
mov esi, eax
call edi
test esi, esi
jne 0x407cc5
mov edx, dword [ebp - 0x3f0]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x3ec]
push ecx
push esi
push edx
mov dword [ebp - 0x3f8], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
mov eax, dword [ebp - 0x3f0]
push eax
call edi
test esi, esi
jne 0x407cc5
mov ecx, dword [ebp - 0x400]
mov edx, dword [ebp - 0x3fc]
push ecx
push edx
lea eax, [ebp - 0x3ec]
push str._d._d
push eax
call fcn.004562f5
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.004551b3
mov esp, ebp
pop ebp
ret
Function at 0x407d70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x271c
call fcn.0046c9a0
mov eax, dword [0x4934c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x270f
push eax
lea eax, [ebp - 0x2714]
push eax
mov esi, ecx
mov ebx, edx
mov byte [ebp - 0x2715], 0
call fcn.004563c0
add esp, 0xc
test esi, esi
je 0x407df7
push edi
lea edi, [ebp - 0x2714]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407db8
mov cx, word [0x47ce48]
mov eax, esi
mov word [edi], cx
mov ecx, eax
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x407dd0
lea edi, [ebp - 0x2714]
sub eax, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x407de0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push 0
lea edx, [ebp - 0x271c]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x2714]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x407e99
test ebx, ebx
je 0x407e53
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407e30
mov ecx, dword [ebp - 0x271c]
sub eax, edx
inc eax
push eax
push ebx
push 1
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x407e74
mov edx, dword [ebp - 0x271c]
push edx
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004551b3
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x271c]
mov bl, byte [ebp - 0x2715]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004551b3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x2715]
pop esi
xor ecx, ebp
pop ebx
call fcn.004551b3
mov esp, ebp
pop ebp
ret

Function at 0x407eb0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2714
call fcn.0046c9a0
mov eax, dword [0x4934c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x270f
push eax
lea eax, [ebp - 0x2714]
push eax
call fcn.004563c0
add esp, 0xc
lea ecx, [ebp - 0x2714]
push ecx
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [ebp - 4]
test eax, eax
sete al
xor ecx, ebp
call fcn.004551b3
mov esp, ebp
pop ebp
ret
Function at 0x40cf80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4775bb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
mov eax, dword [0x4934c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov ecx, dword [0x47c288]
mov dword [esi + 0xc], ecx
mov edx, dword [0x47c28c]
mov dword [esi + 0x10], edx
mov ecx, dword [0x47c290]
mov dword [esi + 0x14], ecx
mov edx, dword [0x47c294]
mov dword [esi + 0x18], edx
mov dword [esi + 8], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], eax
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov dword [esi + 0x30], edi
cmp edi, ebx
je 0x40d054
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
push esi
push edi
call ecx
cmp eax, ebx
mov eax, dword [esi + 0x30]
jl 0x40d045
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x30]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp + 8]
mov dword [ebp + 8], ebx
mov dword [ebp - 0x10], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
cmp eax, ebx
jl 0x40d054
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
lea eax, [esi + 4]
push eax
mov eax, dword [edx + 0x20]
push ecx
call eax
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x40d054
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp + 8], ebx
jmp 0x40d054
cmp eax, ebx
je 0x40d054
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x30], ebx
push 8
call fcn.0045540d
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x40d085
mov dword [ebx], vtable.tcomxTypeHandler.0
mov dword [ebx + 4], edi
test edi, edi
je 0x40d087
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
jmp 0x40d087
xor ebx, ebx
mov dword [esi + 0x28], ebx
lea eax, [esi + 0x34]
mov ecx, 0x96
mov dword [eax], 0
add eax, 0x10
dec ecx
jne 0x40d092
mov eax, dword [0x4961f8]
mov dword [esi + 0x994], eax
inc eax
mov dword [0x4961f8], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x416360
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov edx, dword [ebp + 0xc]
lea eax, [edx + 5]
push esi
cmp eax, 4
ja case.0x416373.2
jmp dword [eax*4 + 0x41641c]
mov ecx, dword [ebp + 8]
xor eax, eax
add ecx, 0xffffffc0
cmp edx, 0xfffffffc
sete al
push eax
call fcn.00416a90
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x18]
lea eax, [esi + 8]
push eax
call edx
test byte [esi + 0x68], 4
je 0x4163d1
mov eax, dword [esi + 0x5c]
and dword [esi + 0x68], 0xfffffffb
test eax, eax
je 0x4163d1
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000000
je 0x4163d1
mov eax, dword [esi + 0x5c]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, str.FAIL
test edx, edx
jle 0x4163fe
push 0x30b
push 0x495260
call fcn.00415870
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
push 0x317
push str.Unrecognized_Negative_verb_in_DoVerb__.__bad.
call fcn.00415870
add esp, 8
mov eax, 0x80004001
pop esi
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x41b880
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4934c4]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0041b770
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41b901
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x41b8c7
mov edx, dword [ebp - 0x18]
push edx
jmp 0x41b8fb
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0043dc70
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004551b3
mov esp, ebp
pop ebp
ret
Function at 0x41bf80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
push edi
test esi, esi
jne 0x41bf98
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test esi, esi
jne 0x41bfb6
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x41bfad
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41bfad
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x41bfad
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov edi, eax
push edi
push edx
call fcn.0041a6b0
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d7a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov eax, 0x47d940
push esi
sub eax, 0xbc
push edi
mov dword [esp + 0x14], 0xbc
mov dword [esp + 0x1c], eax
jmp 0x42d7c8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov esi, dword [eax + ecx]
mov eax, esi
mov dword [esp + 0x10], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42d7d8
sub eax, edx
mov edi, eax
mov ecx, edi
shr ecx, 5
inc ecx
mov ebx, edi
mov dword [esp + 0x18], edi
mov edx, edi
cmp edi, ecx
jb 0x42d818
movzx eax, byte [esi + edx - 1]
mov esi, ebx
shl esi, 5
add eax, esi
mov esi, ebx
shr esi, 2
add eax, esi
mov esi, dword [esp + 0x10]
sub edx, ecx
xor ebx, eax
cmp edx, ecx
jae 0x42d7f5
mov dword [esp + 0x18], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [eax]
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x42d886
lea ecx, [ecx]
cmp dword [eax + 0xc], edi
jne 0x42d880
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x42d854
nop
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x42d878
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x42d840
test ecx, ecx
je 0x42d8c6
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x42d878
cmp ecx, 1
jbe 0x42d8c6
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x42d878
cmp ecx, 2
jbe 0x42d8c6
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x42d8c6
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
jne 0x42d830
mov eax, dword [ebp + 8]
push esi
push eax
mov eax, ebx
call fcn.0042ee20
add esp, 8
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
mov esi, dword [edx + 0x10]
mov dword [ecx + esi], eax
mov edx, dword [edx + 0x10]
mov eax, dword [ecx + edx]
or byte [eax + 5], 0x20
add ecx, 4
mov dword [esp + 0x14], ecx
cmp ecx, 0x100
jl 0x42d7c4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov cl, byte [eax + 5]
mov esi, dword [esi + 0x10]
movzx ebx, byte [esi + 0x14]
movzx edx, cl
and edx, 3
not ebx
test bl, dl
je 0x42d895
xor cl, 3
mov byte [eax + 5], cl
jmp 0x42d895
Function at 0x42eef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ecx, edi
shr ecx, 5
inc ecx
mov ebx, edi
mov dword [esp + 0xc], edi
mov edx, edi
cmp edi, ecx
jb 0x42ef31
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + edx - 1]
mov esi, ebx
shl esi, 5
add eax, esi
mov esi, ebx
shr esi, 2
add eax, esi
sub edx, ecx
xor ebx, eax
cmp edx, ecx
jae 0x42ef0f
mov dword [esp + 0xc], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [eax]
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x42ef9a
cmp dword [eax + 0xc], edi
jne 0x42ef94
mov esi, dword [ebp + 0xc]
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x42ef6c
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x42ef90
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x42ef58
test ecx, ecx
je 0x42efb3
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x42ef90
cmp ecx, 1
jbe 0x42efb3
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x42ef90
cmp ecx, 2
jbe 0x42efb3
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x42efb3
mov ebx, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x42ef46
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
mov eax, ebx
call fcn.0042ee20
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x10]
mov cl, byte [eax + 5]
movzx edx, byte [edx + 0x14]
movzx ebx, cl
not edx
and ebx, 3
test bl, dl
je 0x42efac
pop edi
xor cl, 3
pop esi
mov byte [eax + 5], cl
pop ebx
mov esp, ebp
pop ebp
ret