joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49e76c
Capabilities:
Create pipe

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffd8
mov ebx, ecx
mov edi, edx
mov esi, eax
lea eax, [esp + 8]
xor ecx, ecx
mov edx, 0xc
call fcn.00403168
mov dword [esp + 8], 0xc
mov eax, dword [0x4b0dd4]
cmp dword [eax], 2
jne 0x49e7c0
push 1
lea eax, [esp + 0x18]
push eax
call sub.advapi32.dll_InitializeSecurityDescriptor
push 0
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push eax
call sub.advapi32.dll_SetSecurityDescriptorDacl
lea eax, [esp + 0x14]
mov dword [esp + 0xc], eax
jmp 0x49e7c6
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0xffffffff
mov edx, 1
mov eax, edi
call fcn.0049fbec
test eax, eax
jne 0x49e824
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_CreatePipe
cmp eax, 1
sbb eax, eax
inc eax
call fcn.004891c0
mov ecx, dword [esp + 4]
mov edx, 1
mov eax, edi
call fcn.0049fbf4
mov dl, 1
mov eax, dword [esp]
call fcn.0049e720
mov ecx, eax
xor edx, edx
mov eax, esi
call fcn.0049fbf4
mov edx, 2
mov eax, edi
call fcn.0049fbec
test eax, eax
jne 0x49e8a4
test bl, bl
je 0x49e883
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_CreatePipe
cmp eax, 1
sbb eax, eax
inc eax
call fcn.004891c0
mov ecx, dword [esp + 4]
mov edx, 2
mov eax, edi
call fcn.0049fbf4
mov dl, 1
mov eax, dword [esp]
call fcn.0049e720
mov ecx, eax
mov edx, 2
mov eax, esi
call fcn.0049fbf4
jmp 0x49e8a4
mov edx, 1
mov eax, edi
call fcn.0049fbec
xor edx, edx
call fcn.0049e720
mov ecx, eax
mov edx, 2
mov eax, edi
call fcn.0049fbf4
xor edx, edx
mov eax, edi
call fcn.0049fbec
test eax, eax
jne 0x49e8f7
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_CreatePipe
cmp eax, 1
sbb eax, eax
inc eax
call fcn.004891c0
mov ecx, dword [esp]
xor edx, edx
mov eax, edi
call fcn.0049fbf4
mov dl, 1
mov eax, dword [esp + 4]
call fcn.0049e720
mov ecx, eax
mov edx, 1
mov eax, esi
call fcn.0049fbf4
add esp, 0x28
pop edi
pop esi
pop ebx
ret
Function at 0x49f004
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], eax
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov edx, dword [eax]
call dword [edx]
xor edx, edx
push ebp
push 0x49f149
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x49f129
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x50]
test esi, esi
jne 0x49f052
call fcn.00403fd4
call fcn.00403fd4
jmp 0x49f150
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x45c]
test eax, eax
ja 0x49f06e
call fcn.00403fd4
call fcn.00403fd4
jmp 0x49f150
mov ebx, eax
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 4]
add eax, 0x5c
push eax
push esi
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x49f0b8
call sub.kernel32.dll_GetLastError
cmp eax, 0xe8
je 0x49f09e
call sub.kernel32.dll_GetLastError
cmp eax, 0x6d
jne 0x49f0a9
mov eax, dword [ebp - 4]
add eax, 0x50
call fcn.0049e6a0
call fcn.00403fd4
call fcn.00403fd4
jmp 0x49f150
cmp dword [ebp - 0xc], 0
ja 0x49f0cd
call fcn.00403fd4
call fcn.00403fd4
jmp 0x49f150
cmp ebx, dword [ebp - 0xc]
jbe 0x49f0ec
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
lea eax, [eax + edx + 0x5c]
mov ecx, ebx
sub ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
add edx, 0x5c
call fcn.00402c98
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
sub dword [eax + 0x45c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f130
mov eax, dword [ebp - 4]
cmp dword [eax + 0x50], 0
setne byte [ebp - 5]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x45c], 0
jne 0x49f128
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
push eax
call sub.kernel32.dll_ResetEvent
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a0a04
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
push esp
push 0
lea eax, [esp + 0xc]
push eax
push 0
mov eax, esi
call fcn.00404a94
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4a0a30
mov dword [esp], 0xffffffff
mov eax, dword [esp]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x4a0d20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x54
push 0
push 0
dec ecx
jne 0x4a0d28
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4a0fa4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x128], 0x128
xor edx, edx
mov eax, 2
call fcn.004870b8
mov ebx, eax
xor esi, esi
xor edi, edi
lea edx, [ebp - 0x128]
mov eax, ebx
call fcn.004870d8
test eax, eax
je 0x4a0df4
lea eax, [ebp - 0x254]
lea edx, [ebp - 0x104]
mov ecx, 0x104
call fcn.00404844
mov eax, dword [ebp - 0x254]
mov edx, 0x4a0fbc
call fcn.004049e0
jne 0x4a0de3
mov edi, dword [ebp - 0x120]
push ebx
call sub.kernel32.dll_CloseHandle
or esi, 0xffffffff
jmp 0x4a0df4
lea eax, [ebp - 0x258]
lea edx, [ebp - 0x104]
mov ecx, 0x104
call fcn.00404844
mov eax, dword [ebp - 0x258]
mov edx, 0x4a0fbc
call fcn.004049e0
jne 0x4a0de3
mov edi, dword [ebp - 0x120]
push ebx
call sub.kernel32.dll_CloseHandle
or esi, 0xffffffff
jmp 0x4a0df4
lea edx, [ebp - 0x128]
mov eax, ebx
call fcn.004870f8
test eax, eax
jne 0x4a0daa
push ebx
call sub.kernel32.dll_CloseHandle
test esi, esi
je 0x4a0e44
push edi
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov ebx, eax
lea eax, [ebp - 0x268]
mov edx, ebx
mov cl, 4
call fcn.00413fc0
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x278]
call fcn.00415370
lea edx, [ebp - 0x278]
pop eax
call fcn.00415378
je 0x4a0e44
push 0
push ebx
call sub.kernel32.dll_TerminateProcess
mov dword [ebp - 0x250], 0x128
xor edx, edx
mov eax, 2
call fcn.004870b8
mov ebx, eax
xor esi, esi
xor edi, edi
lea edx, [ebp - 0x250]
mov eax, ebx
call fcn.004870d8
test eax, eax
je 0x4a0ef8
lea eax, [ebp - 0x27c]
lea edx, [ebp - 0x22c]
mov ecx, 0x104
call fcn.00404844
mov eax, dword [ebp - 0x27c]
mov edx, 0x4a0fbc
call fcn.004049e0
jne 0x4a0ee7
mov edi, dword [ebp - 0x248]
push ebx
call sub.kernel32.dll_CloseHandle
or esi, 0xffffffff
jmp 0x4a0ef8
lea eax, [ebp - 0x280]
lea edx, [ebp - 0x22c]
mov ecx, 0x104
call fcn.00404844
mov eax, dword [ebp - 0x280]
mov edx, 0x4a0fbc
call fcn.004049e0
jne 0x4a0ee7
mov edi, dword [ebp - 0x248]
push ebx
call sub.kernel32.dll_CloseHandle
or esi, 0xffffffff
jmp 0x4a0ef8
lea edx, [ebp - 0x250]
mov eax, ebx
call fcn.004870f8
test eax, eax
jne 0x4a0eae
push ebx
call sub.kernel32.dll_CloseHandle
test esi, esi
je 0x4a0f48
push edi
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov ebx, eax
lea eax, [ebp - 0x290]
mov edx, ebx
mov cl, 4
call fcn.00413fc0
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x2a0]
call fcn.00415370
lea edx, [ebp - 0x2a0]
pop eax
call fcn.00415378
je 0x4a0f48
push 0
push ebx
call sub.kernel32.dll_TerminateProcess
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0fab
lea eax, [ebp - 0x2a0]
mov edx, dword [0x4010b0]
mov ecx, 2
call fcn.004050ac
lea eax, [ebp - 0x280]
mov edx, 2
call fcn.004045f8
lea eax, [ebp - 0x278]
mov edx, dword [0x4010b0]
mov ecx, 2
call fcn.004050ac
lea eax, [ebp - 0x258]
mov edx, 2
call fcn.004045f8
ret
Function at 0x4a0fd0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
mov edx, 0x104
call fcn.00404c20
mov eax, dword [ebx]
call fcn.00404a94
push eax
push 0
push 0
push 0x26
push 0
call sub.SHFolder.dll_SHGetFolderPathA
mov edx, dword [ebx]
mov eax, 0x4a1018
call fcn.00404bd8
test eax, eax
jle 0x4a100e
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404c20
pop ebx
ret

Function at 0x4a101c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a10cc
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
mov esi, 0x4a10dc
lea edi, [ebp - 0x10d]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop esi
lea eax, [ebp - 4]
push eax
push ebx
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.00415e94
test al, al
je 0x4a10a4
lea eax, [ebp - 0x10d]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x4a10a4
lea eax, [ebp - 8]
push eax
call sub.shell32.dll_SHGetMalloc
call fcn.00415e94
test al, al
je 0x4a10a4
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
lea eax, [ebp - 8]
call fcn.00406108
mov eax, esi
lea edx, [ebp - 0x10d]
mov ecx, 0x105
call fcn.00404844
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a10d3
lea eax, [ebp - 8]
call fcn.00406108
ret
Function at 0x4a11e4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x134], edx
xor eax, eax
push ebp
push 0x4a1399
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0x32
jge 0x4a1363
mov dword [ebp - 0x130], 0x128
xor edx, edx
mov eax, 2
call fcn.004870b8
mov ebx, eax
xor esi, esi
xor edi, edi
lea edx, [ebp - 0x130]
mov eax, ebx
call fcn.004870d8
test eax, eax
je 0x4a1301
lea eax, [ebp - 0x134]
lea edx, [ebp - 0x10c]
mov ecx, 0x104
call fcn.00404844
mov eax, dword [ebp - 0x134]
mov edx, 0x4a13b4
call fcn.004049e0
jne 0x4a12f0
mov edi, dword [ebp - 0x128]
push ebx
call sub.kernel32.dll_CloseHandle
or esi, 0xffffffff
jmp 0x4a1301
lea eax, [ebp - 0x138]
lea edx, [ebp - 0x10c]
mov ecx, 0x104
call fcn.00404844
mov eax, dword [ebp - 0x138]
mov edx, 0x4a13b4
call fcn.004049e0
jne 0x4a12f0
mov edi, dword [ebp - 0x128]
push ebx
call sub.kernel32.dll_CloseHandle
or esi, 0xffffffff
jmp 0x4a1301
lea edx, [ebp - 0x130]
mov eax, ebx
call fcn.004870f8
test eax, eax
jne 0x4a12b7
push ebx
call sub.kernel32.dll_CloseHandle
test esi, esi
je 0x4a1363
push edi
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 4], eax
lea eax, [ebp - 0x148]
mov edx, dword [ebp - 4]
mov cl, 4
call fcn.00413fc0
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x158]
call fcn.00415370
lea edx, [ebp - 0x158]
pop eax
call fcn.00415378
je 0x4a1356
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_TerminateProcess
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x32
jl 0x4a124d
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a13a0
lea eax, [ebp - 0x158]
mov edx, dword [0x4010b0]
mov ecx, 2
call fcn.004050ac
lea eax, [ebp - 0x138]
mov edx, 2
call fcn.004045f8
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x409986
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409986
lcall 0x5de5, 0x8b10c483
jmp fcn.00781ad0
Function at 0x4017a0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x401790
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
pop esi
ret
push edi
push str.MAPI32.DLL
mov edi, ecx
call fcn.00401860
mov dword [edi + 0xc], eax
test eax, eax
je 0x40185c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPILogon
push eax
call esi
push str.MAPILogoff
push dword [edi + 0xc]
mov dword [edi + 0x10], eax
call esi
push str.MAPISendMail
push dword [edi + 0xc]
mov dword [edi + 0x14], eax
call esi
push str.MAPIResolveName
push dword [edi + 0xc]
mov dword [edi + 0x18], eax
call esi
push str.MAPIFreeBuffer
push dword [edi + 0xc]
mov dword [edi + 0x1c], eax
call esi
push str.MAPIReadMail
push dword [edi + 0xc]
mov dword [edi + 0x20], eax
call esi
push str.MAPIFindNext
push dword [edi + 0xc]
mov dword [edi + 0x24], eax
call esi
push str.MAPIDeleteMail
push dword [edi + 0xc]
mov dword [edi + 0x28], eax
call esi
cmp dword [edi + 0x10], 0
mov dword [edi + 0x2c], eax
pop esi
je 0x401854
cmp dword [edi + 0x14], 0
je 0x401854
cmp dword [edi + 0x18], 0
je 0x401854
cmp dword [edi + 0x1c], 0
je 0x401854
cmp dword [edi + 0x20], 0
je 0x401854
cmp dword [edi + 0x24], 0
je 0x401854
cmp dword [edi + 0x28], 0
je 0x401854
test eax, eax
jne 0x40185c
mov ecx, edi
pop edi
jmp 0x401740
pop edi
ret

Function at 0x401860
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x42cf78]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 0x108], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4018a5
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409946
mov esp, ebp
pop ebp
ret 4
push 0x40c620
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_strcat_s]
push edi
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_strcat_s]
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00409946
mov esp, ebp
pop ebp
ret 4
Function at 0x4064f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x42cf78]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x108], ecx
mov esi, ecx
test eax, eax
jns 0x406529
mov eax, ecx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406520
sub eax, edx
xor edx, edx
mov edi, eax
push ebx
mov edi, edi
lea ebx, [edx + 0xd]
mov byte [edx + 0x42d090], dl
mov byte [ebp + edx - 0x104], bl
test eax, eax
jle 0x40655f
mov cl, byte [esi]
add cl, al
xor cl, bl
mov byte [ebp + edx - 0x104], cl
dec edi
jne 0x40655e
mov esi, dword [ebp - 0x108]
mov edi, eax
jmp 0x40655f
inc esi
inc edx
cmp edx, 0x100
jl 0x406530
xor esi, esi
xor edi, edi
mov dword [0x42d194], esi
mov dword [0x42d190], esi
pop ebx
lea esp, [esp]
mov dl, byte [esi + 0x42d090]
movzx eax, byte [ebp + esi - 0x104]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0xff
inc esi
mov al, byte [edi + 0x42d090]
mov byte [esi + 0x42d08f], al
mov byte [edi + 0x42d090], dl
cmp esi, 0x100
jl 0x406580
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00409946
mov esp, ebp
pop ebp
ret

Function at 0x406b00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push 0xffffffffffffffff
call fcn.00406d00
push eax
call fcn.00406c00
mov esi, dword [ebp + 8]
add esp, 8
cmp byte [esi], 0
je 0x406b5c
push ebx
mov ebx, 0x41f118
push edi
mov edi, dword [ebp + 0xc]
sub ebx, esi
call fcn.00406ba0
movzx ecx, byte [ebx + esi]
movzx eax, al
xor eax, ecx
movsx ecx, byte [esi]
xor eax, ecx
cdq
mov ecx, 0x19
idiv ecx
lea esi, [esi + 1]
lea edi, [edi + 1]
add dl, 0x61
mov byte [edi - 1], dl
cmp byte [esi], 0
jne 0x406b28
mov byte [edi], 0
pop edi
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
pop esi
mov byte [eax], 0
pop ebp
ret
Function at 0x406c00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x42cf78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0xff
lea eax, [ebp - 0x103]
push 0
push eax
mov dword [ebp - 0x108], ebx
mov byte [ebp - 0x104], 0
call sub.MSVCR110.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov esi, ebx
test eax, eax
jns 0x406c59
mov eax, ebx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406c50
sub eax, edx
xor edx, edx
mov edi, eax
lea ecx, [ecx]
lea ebx, [edx + 0xd]
mov byte [edx + 0x42d090], dl
mov byte [ebp + edx - 0x104], bl
test eax, eax
jle 0x406c8f
mov cl, byte [esi]
add cl, al
xor cl, bl
mov byte [ebp + edx - 0x104], cl
dec edi
jne 0x406c8e
mov esi, dword [ebp - 0x108]
mov edi, eax
jmp 0x406c8f
inc esi
inc edx
cmp edx, 0x100
jl 0x406c60
xor esi, esi
xor edi, edi
mov dword [0x42d194], esi
mov dword [0x42d190], esi
jmp 0x406cb0
mov dl, byte [esi + 0x42d090]
movzx eax, byte [ebp + esi - 0x104]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0xff
inc esi
mov al, byte [edi + 0x42d090]
mov byte [esi + 0x42d08f], al
mov byte [edi + 0x42d090], dl
cmp esi, 0x100
jl 0x406cb0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409946
mov esp, ebp
pop ebp
ret

Function at 0x406d80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [0x42d628], 0
jne 0x406ed9
push ebx
push esi
mov esi, dword [sym.imp.MSVCR110.dll_strcat_s]
push edi
push 0x40dcec
push 0x80
push 0x42d628
call esi
push str.ID
push 0x80
push 0x42d628
call esi
add esp, 0x18
push 0xffffffffffffffff
call fcn.00406d00
push eax
call fcn.00406c00
mov ecx, 0x42d628
add esp, 8
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406de0
sub ecx, edx
mov eax, 0x41f118
lea esi, [ecx + 0x42d628]
sub eax, esi
mov ebx, 8
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.00406ba0
movzx ecx, byte [edi + esi]
inc esi
xor eax, ecx
and eax, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [esi - 1], al
dec ebx
jne 0x406e03
mov edi, dword [ebp - 8]
mov byte [esi], 0x2d
inc esi
mov dword [ebp - 4], 3
lea esp, [esp]
mov ebx, 4
call fcn.00406ba0
movzx ecx, byte [edi + 0x41f118]
inc esi
inc edi
xor eax, ecx
and eax, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [esi - 1], al
dec ebx
jne 0x406e35
mov byte [esi], 0x2d
inc esi
dec dword [ebp - 4]
jne 0x406e30
lea edi, [edi + 0x41f118]
mov ebx, 0xc
call fcn.00406ba0
movzx ecx, byte [edi]
lea esi, [esi + 1]
lea edi, [edi + 1]
xor eax, ecx
and eax, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [esi - 1], al
dec ebx
jne 0x406e68
push str.In
mov byte [esi], bl
mov ebx, dword [sym.imp.MSVCR110.dll_strcat_s]
push 0x80
push 0x42d628
call ebx
push str.Proc
push 0x80
push 0x42d628
call ebx
push str.Serv
push 0x80
push 0x42d628
call ebx
push str.er32
push 0x80
push 0x42d628
call ebx
add esp, 0x30
pop edi
pop esi
pop ebx
mov eax, 0x42d628
mov esp, ebp
pop ebp
ret
Function at 0x406ef0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x42cf78]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
call fcn.00406d80
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x406faa
lea eax, [ebp - 0x104]
push eax
push edi
call fcn.00406b00
mov ecx, esi
add esp, 8
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406f50
sub ecx, edx
lea eax, [ecx + 1]
push eax
call sub.mfc110.dll_Ordinal_265
mov edi, eax
push edi
push 0xffffffffffffffff
push esi
call fcn.004069a0
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x406f73
sub esi, ecx
push esi
push edi
push 3
push 0
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call sub.mfc110.dll_Ordinal_266
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00409946
mov esp, ebp
pop ebp
ret

Function at 0x4085f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x42cf78]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x74]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftDataAccess
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4086da
push 0x64
push eax
lea eax, [ebp - 0x68]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x70]
push eax
push 0
push str.FullInstallVer
push dword [ebp - 0x74]
mov dword [ebp - 0x70], 1
mov dword [ebp - 0x6c], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40869d
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x70]
push eax
push 0
push str.Version
push dword [ebp - 0x74]
mov dword [ebp - 0x70], 1
mov dword [ebp - 0x6c], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x6c], 0
jbe 0x4086d1
lea eax, [esi + 0x458]
push eax
lea eax, [esi + 0x45c]
push eax
lea eax, [esi + 0x460]
push eax
lea eax, [esi + 0x464]
push eax
lea eax, [ebp - 0x68]
push str._d._d._d._d
push eax
call dword [sym.imp.MSVCR110.dll_sscanf_s]
add esp, 0x18
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00409946
mov esp, ebp
pop ebp
ret