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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
dec eax
push esi
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 4
cmp eax, 4
ja case.default.0x405845
jmp dword [eax*4 + 0x4059b4]
mov eax, SysReAllocString
jmp 0x40586d
mov eax, SysReAllocString
jmp 0x40586d
mov eax, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x40586d
mov eax, SysStringLen
jmp 0x40586d
mov eax, SysStringLen
mov ecx, dword [ebp + 0xc]
mov edi, 0x10
cmp dword [ebp + 0x20], edi
jae 0x40587d
lea ecx, [ebp + 0xc]
lea edx, [ebp + 8]
push edx
push 0x20019
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40593a
mov eax, dword [ebp + 0x28]
cmp dword [ebp + 0x3c], edi
jae 0x4058a2
lea eax, [ebp + 0x28]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4058fc
mov eax, dword [ebp - 4]
lea ecx, [ebp + 0xc]
cmp eax, dword [ebp + 0x44]
jne 0x4058e4
call fcn.00401fc0
lea ecx, [ebp + 0x28]
call fcn.00401fc0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x40
call fcn.00401fc0
lea ecx, [ebp + 0x28]
call fcn.00401fc0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
cmp dword [ebp + 0x20], edi
jb 0x405910
mov ecx, dword [ebp + 0xc]
push ecx
call esi
add esp, 4
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
cmp dword [ebp + 0x3c], edi
jb 0x4059a8
mov edx, dword [ebp + 0x28]
push edx
call esi
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
cmp dword [ebp + 0x20], edi
jb 0x40594e
mov eax, dword [ebp + 0xc]
push eax
call esi
add esp, 4
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
cmp dword [ebp + 0x3c], edi
jb 0x4059a8
mov ecx, dword [ebp + 0x28]
push ecx
call esi
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov edi, 0x10
cmp dword [ebp + 0x20], edi
jb 0x40598d
mov edx, dword [ebp + 0xc]
push edx
call esi
add esp, 4
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
cmp dword [ebp + 0x3c], edi
jb 0x4059a8
mov eax, dword [ebp + 0x28]
push eax
call esi
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x40
Function at 0x405868
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
dec eax
push esi
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 4
cmp eax, 4
ja case.default.0x405845
jmp dword [eax*4 + 0x4059b4]
mov eax, SysReAllocString
jmp 0x40586d
mov eax, SysReAllocString
jmp 0x40586d
mov eax, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x40586d
mov eax, SysStringLen
jmp 0x40586d
mov eax, SysStringLen
mov ecx, dword [ebp + 0xc]
mov edi, 0x10
cmp dword [ebp + 0x20], edi
jae 0x40587d
lea ecx, [ebp + 0xc]
lea edx, [ebp + 8]
push edx
push 0x20019
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40593a
mov eax, dword [ebp + 0x28]
cmp dword [ebp + 0x3c], edi
jae 0x4058a2
lea eax, [ebp + 0x28]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4058fc
mov eax, dword [ebp - 4]
lea ecx, [ebp + 0xc]
cmp eax, dword [ebp + 0x44]
jne 0x4058e4
call fcn.00401fc0
lea ecx, [ebp + 0x28]
call fcn.00401fc0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x40
call fcn.00401fc0
lea ecx, [ebp + 0x28]
call fcn.00401fc0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
cmp dword [ebp + 0x20], edi
jb 0x405910
mov ecx, dword [ebp + 0xc]
push ecx
call esi
add esp, 4
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
cmp dword [ebp + 0x3c], edi
jb 0x4059a8
mov edx, dword [ebp + 0x28]
push edx
call esi
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
cmp dword [ebp + 0x20], edi
jb 0x40594e
mov eax, dword [ebp + 0xc]
push eax
call esi
add esp, 4
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
cmp dword [ebp + 0x3c], edi
jb 0x4059a8
mov ecx, dword [ebp + 0x28]
push ecx
call esi
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov edi, 0x10
cmp dword [ebp + 0x20], edi
jb 0x40598d
mov edx, dword [ebp + 0xc]
push edx
call esi
add esp, 4
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
cmp dword [ebp + 0x3c], edi
jb 0x4059a8
mov eax, dword [ebp + 0x28]
push eax
call esi
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x40
Function at 0x406390
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ae28
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x4c6018]
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
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
jae 0x4063cf
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x140]
call dword [sym.imp.mfc100.dll_Ordinal_310]
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x406479
lea eax, [ebp - 0x13c]
push eax
push esi
mov dword [ebp - 0x13c], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x406472
mov edi, dword [sym.imp.USER32.dll_CharLowerBuffA]
push 0x104
lea ecx, [ebp - 0x118]
push ecx
call edi
mov eax, dword [ebp - 0x140]
lea ecx, [ebp - 0x118]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406450
test dl, dl
je 0x40644c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406450
add eax, 2
add ecx, 2
test dl, dl
jne 0x406430
xor eax, eax
jmp 0x406455
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40646d
lea edx, [ebp - 0x13c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x406412
jmp 0x406472
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x140]
call dword [sym.imp.mfc100.dll_Ordinal_901]
cmp dword [ebp + 0x1c], 0x10
jb 0x406498
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, ebx
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.00449013
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x4065e0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b038
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x4c6018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x40664f
test dword [ebp - 0x10], 0x20
je 0x40664f
cmp dword [ebp + 0x1c], 0x10
jb 0x40663a
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
sub esp, 0x1c
mov ecx, esp
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], 0xf
lea edx, [ebp + 8]
mov dword [ebp - 0x14], esp
mov byte [ecx], bl
push edx
or eax, 0xffffffff
xor ebx, ebx
call fcn.00402020
call fcn.004064c0
add esp, 0x1c
cmp dword [ebp + 0x1c], 0x10
mov esi, eax
jb 0x40668e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
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 0x1c
Function at 0x407c30
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x4c6018]
xor eax, esp
mov dword [esp + 0x130], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
push 0x124
lea ecx, [esp + 0x18]
push esi
push ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x407c96
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00449013
mov esp, ebp
pop ebp
ret 4
lea edx, [esp + 0x10]
push edx
push edi
mov dword [esp + 0x18], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x407d03
mov ebx, dword [sym.imp.MSVCR100.dll__strupr]
push str.EXPLORER.EXE
call ebx
mov esi, eax
lea eax, [esp + 0x38]
push eax
call ebx
add esp, 8
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x407ce7
test cl, cl
je 0x407ce3
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x407ce7
add eax, 2
add esi, 2
test cl, cl
jne 0x407cc7
xor eax, eax
jmp 0x407cec
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407d23
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x407cb4
lea esi, [eax + 1]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x13c]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00449013
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esp + 0x18]
push edx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [esp + 0xc]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
jmp 0x407d03
Function at 0x407f80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b9ab
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x4c6018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], edi
mov byte [ebp - 0x130], 0
lea eax, [ebp - 0x134]
push eax
push 1
push edi
push str.SOFTWAREMicrosoftInternet_Explorer
mov dword [ebp - 4], edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x134], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40803b
mov edi, 6
mov eax, str.unknow
lea esi, [ebp - 0x130]
call fcn.00402610
mov edi, esi
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov esi, ebx
mov byte [ebx], 0
call fcn.004021f0
cmp dword [ebp - 0x11c], 0x10
jb 0x4081a9
mov ecx, dword [ebp - 0x130]
push ecx
jmp 0x4081a0
push 0x103
lea edx, [ebp - 0x113]
push edi
push edx
mov byte [ebp - 0x114], 0
call sub.MSVCR100.dll_memset
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0xc
lea eax, [ebp - 0x13c]
push eax
mov eax, dword [ebp - 0x134]
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x138]
push edx
push edi
push str.svcVersion
push eax
mov dword [ebp - 0x13c], 0x104
mov dword [ebp - 0x138], 1
call esi
test eax, eax
je 0x40812c
push 0x104
lea ecx, [ebp - 0x114]
push edi
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x13c]
push edx
mov edx, dword [ebp - 0x134]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x138]
push ecx
push edi
push str.Version
push edx
call esi
test eax, eax
je 0x40812c
mov edi, 6
mov eax, str.unknow
lea esi, [ebp - 0x130]
call fcn.00402610
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, esi
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov esi, ebx
mov byte [ebx], 0
call fcn.004021f0
cmp dword [ebp - 0x11c], 0x10
jb 0x4081a9
mov ecx, dword [ebp - 0x130]
push ecx
jmp 0x4081a0
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 3
mov eax, 0x4ba3a0
lea esi, [ebp - 0x130]
call fcn.00402610
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408157
sub eax, edx
push eax
lea eax, [ebp - 0x114]
lea ecx, [ebp - 0x130]
call fcn.00409fe0
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
lea edi, [ebp - 0x130]
mov esi, ebx
mov byte [ebx], 0
call fcn.004021f0
cmp dword [ebp - 0x11c], 0x10
jb 0x4081a9
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00449013
mov esp, ebp
pop ebp
ret
Function at 0x408750
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4c6018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push 0xff
lea eax, [ebp - 0x103]
push esi
push eax
mov dword [ebp - 0x108], esi
mov byte [ebp - 0x104], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x114]
call dword [sym.imp.mfc100.dll_Ordinal_316]
lea ecx, [ebp - 0x118]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x108]
push ecx
push 0x20019
push esi
push edx
push SysReAllocString
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x110], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40886a
mov edx, dword [ebp - 0x108]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x104]
push ecx
push esi
push edx
call edi
cmp eax, 0x103
je 0x408870
mov edi, edi
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc100.dll_Ordinal_2611]
test eax, eax
je 0x40885e
push pe_nt_image_headers32
lea ecx, [ebp - 0x104]
push 0
push ecx
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp - 0x108]
add esp, 0xc
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x104]
push eax
inc esi
push esi
push ecx
mov dword [ebp - 0x110], pe_nt_image_headers32
call edi
cmp eax, 0x103
jne 0x408800
jmp 0x408870
mov dword [ebp - 0x10c], 1
jmp 0x408870
mov dword [ebp - 0x10c], esi
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x118]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x114]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
pop edi
xor ecx, ebp
pop esi
call fcn.00449013
mov esp, ebp
pop ebp
ret 8
Function at 0x4088c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4c6018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push 0xff
lea eax, [ebp - 0x103]
push esi
push eax
mov dword [ebp - 0x108], esi
mov byte [ebp - 0x104], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x114]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x108]
push ecx
push 0x20019
push esi
push edx
push SysReAllocString
mov dword [ebp - 0x110], pe_nt_image_headers32
mov dword [ebp - 0x10c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4089cc
mov edx, dword [ebp - 0x108]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x104]
push ecx
push esi
push edx
call edi
cmp eax, 0x103
je 0x4089d2
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc100.dll_Ordinal_2611]
test eax, eax
je 0x4089c0
push pe_nt_image_headers32
lea ecx, [ebp - 0x104]
push 0
push ecx
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp - 0x108]
add esp, 0xc
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x104]
push eax
inc esi
push esi
push ecx
mov dword [ebp - 0x110], pe_nt_image_headers32
call edi
cmp eax, 0x103
jne 0x408962
jmp 0x4089d2
mov dword [ebp - 0x10c], 1
jmp 0x4089d2
mov dword [ebp - 0x10c], esi
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x114]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
pop edi
xor ecx, ebp
pop esi
call fcn.00449013
mov esp, ebp
pop ebp
ret 8
Function at 0x408a20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b970
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4c6018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
mov byte [ebp - 4], 1
cmp dword [edi + 0xc0], eax
jne 0x408a74
mov esi, edi
call fcn.00409020
push 1
push edi
lea edx, [ebp - 0x2c]
mov ecx, ebx
call fcn.00405e10
push 0
lea eax, [ebp + 8]
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.0040a380
mov ecx, esi
push ecx
call fcn.004059d0
cmp ebx, 7
je 0x408aa4
cmp ebx, 8
jne 0x408ab4
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x408ab4
lea edx, [ebp - 0x30]
push edx
call eax
xor eax, eax
push 0x44
push eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x90]
push eax
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
add esp, 0xc
cmp dword [ebp - 0x18], esi
jae 0x408ae4
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x90]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x408b5a
cmp ebx, 7
je 0x408b12
cmp ebx, 8
jne 0x408b22
mov edi, dword [edi + 0xbc]
test edi, edi
je 0x408b22
lea eax, [ebp - 0x30]
push eax
call edi
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
cmp dword [ebp - 0x18], esi
jb 0x408b36
mov ecx, dword [ebp - 0x2c]
push ecx
call edi
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp dword [ebp + 0x1c], esi
jb 0x408b56
mov edx, dword [ebp + 8]
push edx
call edi
add esp, 4
xor eax, eax
jmp 0x408bd1
cmp dword [ebp + 0x24], 0
je 0x408b7e
mov eax, dword [ebp - 0x40]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x44]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x408b08
cmp ebx, 7
je 0x408b88
cmp ebx, 8
jne 0x408b98
mov edi, dword [edi + 0xbc]
test edi, edi
je 0x408b98
lea eax, [ebp - 0x30]
push eax
call edi
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
cmp dword [ebp - 0x18], esi
jb 0x408bac
mov ecx, dword [ebp - 0x2c]
push ecx
call edi
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp dword [ebp + 0x1c], esi
jb 0x408bcc
mov edx, dword [ebp + 8]
push edx
call edi
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00449013
mov esp, ebp
pop ebp
ret 0x20
Function at 0x410270
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4c6018]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
mov ecx, dword [0x4d3d4c]
mov esi, edx
mov edx, dword [0x4d3d50]
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
test eax, eax
je 0x410304
lea edi, [eax - 1]
shr edi, 3
sub ebx, esi
inc edi
lea esp, [esp]
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.0044b100
push 1
lea edx, [ebp - 0x94]
push edx
lea eax, [ebx + esi]
push esi
push eax
call fcn.0044b410
mov ecx, dword [esi]
mov edx, dword [esi + 4]
add esp, 0x18
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
xor eax, eax
mov ecx, 8
jmp 0x4102f0
mov dl, byte [eax + 0x4d3d4c]
xor byte [ebp + eax - 0x10], dl
inc eax
dec ecx
jne 0x4102f0
add esi, 8
dec edi
jne 0x4102b0
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00449013
mov esp, ebp
pop ebp
ret

Function at 0x4103c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4c6018]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov edx, dword [0x4d3d4c]
mov dword [ebp - 0x10], edx
mov edx, dword [0x4d3d50]
push edi
mov dword [ebp - 0xc], edx
test eax, eax
je 0x410454
lea edi, [eax - 1]
mov ebx, ecx
shr edi, 3
sub ebx, esi
inc edi
lea esp, [esp]
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.0044b100
push 0
lea edx, [ebp - 0x94]
push edx
lea eax, [ebx + esi]
push eax
push esi
call fcn.0044b410
mov ecx, dword [esi]
mov edx, dword [esi + 4]
add esp, 0x18
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
xor eax, eax
mov ecx, 8
jmp 0x410440
mov dl, byte [eax + 0x4d3d4c]
xor byte [ebp + eax - 0x10], dl
inc eax
dec ecx
jne 0x410440
add esi, 8
dec edi
jne 0x410400
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00449013
mov esp, ebp
pop ebp
ret
Function at 0x414f70
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, eax
test edi, edi
je 0x4150cb
lea ecx, [edi*8]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
lea edx, [ecx + ecx]
lea ecx, [edi*8]
sub ecx, edx
sub ecx, 2
je 0x414fbc
sub ecx, 2
jne 0x414fbf
add eax, 2
jmp 0x414fbf
add eax, 3
inc eax
cmp dword [ebx], eax
jge 0x414fd2
pop edi
mov dword [ebx], eax
pop esi
mov eax, 0x10
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
xor edx, edx
test eax, eax
jle 0x415066
lea edx, [eax - 1]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
lea eax, [edx + edx*2]
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
movzx eax, byte [esi]
movzx edx, byte [esi + 1]
movzx edi, byte [esi + 2]
mov ebx, eax
sar ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + 0x4a4218]
mov byte [ecx], bl
mov ebx, edx
shl eax, 4
sar ebx, 4
add ebx, eax
and ebx, 0x3f
movzx eax, byte [ebx + 0x4a4218]
mov byte [ecx + 1], al
mov eax, edi
sar eax, 6
lea edx, [eax + edx*4]
and edx, 0x3f
movzx eax, byte [edx + 0x4a4218]
mov byte [ecx + 2], al
and edi, 0x3f
mov dl, byte [edi + 0x4a4218]
mov byte [ecx + 3], dl
add esi, 3
add ecx, 4
dec dword [ebp - 4]
jne 0x415002
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
cmp edx, edi
jge 0x4150be
movzx eax, byte [esi]
inc edx
cmp edx, edi
jge 0x415078
movzx esi, byte [esi + 1]
jmp 0x41507a
xor esi, esi
mov ebx, eax
sar ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + 0x4a4218]
mov byte [ecx], bl
mov ebx, esi
sar ebx, 4
shl eax, 4
add ebx, eax
and ebx, 0x3f
mov al, byte [ebx + 0x4a4218]
mov byte [ecx + 1], al
cmp edx, edi
jge 0x4150b3
and esi, 0xf
mov dl, byte [esi*4 + 0x4a4218]
mov byte [ecx + 2], dl
jmp 0x4150b7
mov byte [ecx + 2], 0x3d
add ecx, 3
mov byte [ecx], 0x3d
inc ecx
mov edx, dword [ebp + 0xc]
mov eax, ecx
sub eax, dword [ebp + 8]
mov dword [edx], eax
mov byte [ecx], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret