joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410320
Capabilities:
Download url
Read .ini file
Receive data

Disassembly:
mov al, byte [0x47c718]
sub esp, 0x104
test al, al
jne 0x4103ca
push esi
push 0x104
push 0x47c718
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.MSVCRT.dll__mbsrchr]
push 0x5c
push 0x47c718
call esi
add esp, 8
test eax, eax
jne 0x410368
push 0x2f
push 0x47c718
call esi
add esp, 8
mov edx, str._antihostlib.dat
mov esi, 0x104
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x410383
mov byte [eax], cl
inc eax
dec esi
jne 0x410374
jmp 0x410387
test esi, esi
jne 0x410388
dec eax
mov byte [eax], 0
call fcn.0041d6f0
test eax, eax
pop esi
je 0x4103ca
push eax
lea eax, [esp + 4]
push 0x104
push eax
push 0x47c558
push 0x44aaf8
push str.antihostlib
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0
push 0
lea ecx, [esp + 8]
push 0x47c718
push ecx
push 0
call sub.urlmon.dll_URLDownloadToFileA
mov eax, 0x47c718
add esp, 0x104
ret

Function at 0x410456
Capabilities:
Set registry value

Disassembly:
push ecx
push edi
push 0
push 0
push 0
push 0x44ab44
call fcn.00417970
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4104b4
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
lea eax, [esp + 8]
push 4
push eax
push 4
push str.antihostlib
push str.SOFTWARE360Safekiller
push connect
mov dword [esp + 0x20], 0
call esi
push 4
push 0x44ab24
push 1
push str.antihostlib_ver
push str.SOFTWARE360Safekiller
push connect
call esi
mov eax, edi
pop esi
pop edi
pop ecx
ret
mov eax, edi
pop edi
pop ecx
ret
Function at 0x410510
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x440436
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov byte [esi + 4], al
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov cl, byte [esp + 7]
mov dword [esp + 0x14], eax
mov byte [esi + 0x14], cl
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dl, byte [esp + 7]
mov dword [esi + 0x28], eax
mov byte [esi + 0x24], dl
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov cl, byte [esp + 7]
mov dword [esi + 0x38], eax
mov byte [esi + 0x34], cl
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dl, byte [esp + 7]
mov dword [esi + 0x48], eax
mov byte [esi + 0x44], dl
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov cl, byte [esp + 7]
mov dword [esi + 0x58], eax
mov byte [esi + 0x54], cl
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov dl, byte [esp + 7]
mov dword [esi + 0x68], eax
mov byte [esi + 0x64], dl
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
mov cl, byte [esp + 7]
mov dword [esi + 0x78], eax
mov byte [esi + 0x74], cl
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov dl, byte [esp + 7]
mov dword [esi + 0x88], eax
mov byte [esi + 0x84], dl
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], eax
mov ecx, esi
mov byte [esp + 0x14], 8
mov dword [esi], 0x4417d8
call fcn.00410630
test eax, eax
je 0x4105f1
mov ecx, esi
call fcn.00410890
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x410630
Capabilities:
Copy file
Delete file
Get common file path
Move file

Disassembly:
mov eax, dword [0x47c8c0]
sub esp, 0x208
test eax, eax
push esi
push edi
mov edi, ecx
jne 0x41071d
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x10c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 0x10c]
push str.Advapi32.dll
push edx
call esi
lea eax, [esp + 8]
push str.NewAdvapi32.dll
push eax
call esi
lea ecx, [esp + 8]
push 0
lea edx, [esp + 0x110]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x41071b
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 4
lea ecx, [esp + 0xc]
push 0
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test esi, esi
je 0x41071b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegEnumValueA
push esi
call ebx
push str.RegOpenKeyExA
push esi
mov dword [edi + 0x94], eax
call ebx
test eax, eax
mov dword [edi + 0x98], eax
pop ebx
je 0x410714
mov eax, dword [edi + 0x94]
test eax, eax
je 0x410714
mov eax, 1
pop edi
mov dword [0x47c8c0], eax
pop esi
add esp, 0x208
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop edi
pop esi
add esp, 0x208
ret
Function at 0x410a70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x410a91
add eax, 0x108
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x410a91
mov eax, 1
ret 4
xor eax, eax
ret 4

Function at 0x410aa0
Capabilities:
Delete file
Delete registry key
Delete registry value
Move file
Persist via run registry key
Set file attributes

Disassembly:
sub esp, 0x108
push ebx
push esi
mov esi, dword [esp + 0x114]
push edi
mov dword [esp + 0xc], ecx
mov eax, dword [esi]
cmp eax, 1
jne 0x410ae3
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
lea edi, [esi + 4]
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push connect
call ebx
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push connect
call ebx
jmp 0x410bd5
cmp eax, 2
jne 0x410b0e
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
lea edi, [esi + 4]
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellExecuteHooks
push connect
call ebx
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellExecuteHooks
push connect
call ebx
push edi
jmp 0x410b17
cmp eax, 4
jne 0x410b3e
lea edx, [esi + 4]
push edx
push str.CLSID_s
lea eax, [esp + 0x18]
push 0x104
push eax
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push connect
jmp 0x410bcf
cmp eax, 8
jne 0x410ba4
lea edi, [esi + 4]
push ebp
mov ebp, dword [sym.imp.ntdll.dll__snprintf]
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_Objects_s
lea edx, [esp + 0x1c]
push 0x104
push edx
call ebp
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
add esp, 0x10
lea eax, [esp + 0x14]
push eax
push connect
call ebx
lea ecx, [esp + 0x14]
push ecx
push connect
call ebx
push edi
push str.CLSID_s
lea edx, [esp + 0x1c]
push 0x104
push edx
call ebp
add esp, 0x10
lea eax, [esp + 0x14]
push eax
push connect
call ebx
pop ebp
jmp 0x410bd5
cmp eax, 0x20
jne 0x410bd5
lea ecx, [esi + 4]
lea edx, [esp + 0x10]
push ecx
push str.SYSTEMCurrentControlSetServices_s
push 0x104
push edx
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push connect
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [esp + 0xc]
push esi
call fcn.00410a70
test eax, eax
je 0x410c22
add esi, 0x108
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x410c22
mov eax, dword [esp + 0x11c]
test eax, eax
je 0x410c22
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop edi
pop esi
pop ebx
add esp, 0x108
ret 8
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x108
ret 8
Function at 0x410c40
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x45c
push ebx
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0x10000
mov byte [esp + 0x120], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 0x14], eax
sub eax, 0
je 0x410c7f
dec eax
jne 0x410c97
push 0
lea eax, [esp + 0x124]
push 0x18
push eax
jmp 0x410c8b
push 0
lea ecx, [esp + 0x124]
push 7
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x410ca4
mov byte [esp + 0x120], 0
jmp 0x410da1
mov al, byte [esp + 0x120]
test al, al
je 0x410da1
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esp + ecx + 0x11f]
lea ebp, [esp + ecx + 0x120]
cmp al, 0x5c
je 0x410cdb
mov byte [ebp], 0x5c
inc ebp
mov edi, 0x44a284
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x32c]
mov edx, ecx
mov esi, edi
mov edi, ebp
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x410da1
test byte [esp + 0x32c], 0x10
jne 0x410d87
lea edi, [esp + 0x358]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x358]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [ecx + 0x84]
push edx
call fcn.00411960
lea eax, [esp + 0x32c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x410d1e
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 2
mov dword [esp + 0x14], eax
jl 0x410c69
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, dword [ecx + 0x88]
pop ebx
test eax, eax
jne 0x410dcc
add esp, 0x45c
ret
mov ecx, dword [ecx + 0x8c]
sub ecx, eax
mov eax, 0x532ae21d
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov eax, edx
add esp, 0x45c
ret
Function at 0x410ee0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x430
push ebx
push ebp
mov ebp, dword [sym.imp.ntdll.dll_sprintf]
push esi
push edi
mov edi, 0x4417d0
mov esi, ecx
mov dword [esp + 0x12c], 2
mov byte [esp + 0x234], 0
mov byte [esp + 0x130], 0
mov dword [esp + 0x14], edi
mov ebx, 0x104
mov eax, dword [edi]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellExecuteHooks
push eax
mov dword [esp + 0x450], eax
call dword [esi + 0x98]
test eax, eax
jne 0x411025
xor edi, edi
lea edx, [esp + 0x20]
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x1c]
push 0
lea eax, [esp + 0x140]
push edx
push eax
push edi
push ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x30], ebx
call dword [esi + 0x94]
test eax, eax
jne 0x411016
cmp byte [esp + 0x130], 0x7b
jne 0x411010
cmp dword [esp + 0x10], 0x26
jb 0x411010
lea edx, [esp + 0x130]
lea eax, [esp + 0x28]
push edx
push str.CLSID_sInprocServer32
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x28]
push ecx
push 0x20019
push 0
push edx
push connect
call dword [esi + 0x98]
test eax, eax
jne 0x411010
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x234]
push eax
push ecx
push 0
push 0
push 0
push edx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x411005
lea eax, [esp + 0x12c]
lea ecx, [esi + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.00411960
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
jmp 0x410f46
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x14]
add edi, 4
cmp edi, 0x4417d8
mov dword [esp + 0x14], edi
jb 0x410f1b
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x41104a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x430
ret
mov esi, dword [esi + 0x1c]
pop edi
sub esi, eax
mov eax, 0x532ae21d
imul esi
sar edx, 8
mov ecx, edx
pop esi
shr ecx, 0x1f
add edx, ecx
pop ebp
mov eax, edx
pop ebx
add esp, 0x430
ret
Function at 0x411070
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x430
push ebx
mov ebx, dword [sym.imp.ntdll.dll__snprintf]
push ebp
push esi
mov ebp, 0x4417d0
push edi
mov esi, ecx
mov dword [esp + 0x28], 4
mov byte [esp + 0x130], 0
mov byte [esp + 0x2c], 0
mov dword [esp + 0x14], ebp
mov edi, 0x104
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionShellServiceObjectDelayLoad
push eax
mov dword [esp + 0x34c], eax
call dword [esi + 0x98]
test eax, eax
jne 0x4111ae
xor ebp, ebp
lea edx, [esp + 0x10]
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x2c]
push 0
lea eax, [esp + 0x244]
push edx
push eax
push ebp
push ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x30], edi
call dword [esi + 0x94]
test eax, eax
jne 0x41119f
cmp byte [esp + 0x2c], 0x7b
jne 0x411199
cmp dword [esp + 0x10], 0x26
jb 0x411199
lea edx, [esp + 0x2c]
lea eax, [esp + 0x33c]
push edx
push str.CLSID_sInprocServer32
push edi
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x33c]
push ecx
push 0x20019
push 0
push edx
push connect
call dword [esi + 0x98]
test eax, eax
jne 0x411199
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x130]
push eax
push ecx
push 0
push 0
push 0
push edx
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41118e
lea eax, [esp + 0x28]
lea ecx, [esi + 0x24]
push eax
push ecx
mov ecx, esi
call fcn.00411960
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebp
jmp 0x4110d1
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x14]
add ebp, 4
cmp ebp, 0x4417d8
mov dword [esp + 0x14], ebp
jb 0x4110a5
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x4111d3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x430
ret
mov esi, dword [esi + 0x2c]
pop edi
sub esi, eax
mov eax, 0x532ae21d
imul esi
sar edx, 8
mov ecx, edx
pop esi
shr ecx, 0x1f
add edx, ecx
pop ebp
mov eax, edx
pop ebx
add esp, 0x430
ret
Function at 0x411200
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x428
push ebx
push ebp
push esi
mov ebp, 0x4417d0
push edi
mov edi, dword [sym.imp.ntdll.dll__snprintf]
mov esi, ecx
mov dword [esp + 0x20], 8
mov byte [esp + 0x128], 0
mov byte [esp + 0x24], 0
mov dword [esp + 0x10], ebp
mov ebx, 0x104
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_Objects
push eax
mov dword [esp + 0x344], eax
call dword [esi + 0x98]
test eax, eax
jne 0x411313
xor ebp, ebp
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push ebx
push edx
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x411304
cmp byte [esp + 0x24], 0x7b
jne 0x4112fe
lea ecx, [esp + 0x24]
lea edx, [esp + 0x334]
push ecx
push str.CLSID_sInprocServer32
push ebx
push edx
call edi
add esp, 0x10
lea eax, [esp + 0x18]
lea ecx, [esp + 0x334]
push eax
push 0x20019
push 0
push ecx
push connect
call dword [esi + 0x98]
test eax, eax
jne 0x4112fe
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x128]
push edx
push eax
push 0
push 0
push 0
push ecx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4112f3
lea edx, [esp + 0x20]
lea eax, [esi + 0x34]
push edx
push eax
mov ecx, esi
call fcn.00411960
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebp
jmp 0x411261
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x10]
add ebp, 4
cmp ebp, 0x4417d8
mov dword [esp + 0x10], ebp
jb 0x411235
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x411338
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x428
ret
mov esi, dword [esi + 0x3c]
pop edi
sub esi, eax
mov eax, 0x532ae21d
imul esi
sar edx, 8
mov eax, edx
pop esi
shr eax, 0x1f
add edx, eax
pop ebp
mov eax, edx
pop ebx
add esp, 0x428
ret
Function at 0x411360
Capabilities:
Get common file path
Get file attributes
Persist via appinit_dlls registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x630
push ebx
lea eax, [esp + 4]
push ebp
push eax
push 0x20019
push 0
mov ebp, ecx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
push connect
mov dword [esp + 0x2c], 0x40
mov byte [esp + 0x30], 0
mov byte [esp + 0x134], 0
mov dword [esp + 0x33c], connect
call dword [ebp + 0x98]
test eax, eax
jne 0x4114ee
push esi
lea ecx, [esp + 0x10]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x438]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
xor ebx, ebx
push edx
push eax
push ebx
push str.AppInit_DLLs
push ecx
mov dword [esp + 0x2c], 0x208
mov dword [esp + 0x30], ebx
mov byte [esp + 0x450], bl
call edi
mov esi, eax
cmp esi, 0xea
jne 0x411423
mov edx, dword [esp + 0x14]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
mov dword [esp + 0x18], eax
push ecx
push eax
mov eax, dword [esp + 0x18]
push edx
push ebx
push str.AppInit_DLLs
push eax
call edi
mov ebx, dword [esp + 0x18]
mov esi, eax
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4114df
lea edx, [esp + 0x334]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test ebx, ebx
lea esi, [esp + 0x438]
je 0x411456
mov esi, ebx
test esi, esi
je 0x4114df
mov ebx, dword [sym.imp.ntdll.dll__snprintf]
cmp byte [esi], 0
je 0x4114db
push 0x2c
push esi
call dword [sym.imp.MSVCRT.dll__mbschr]
mov edi, eax
add esp, 8
test edi, edi
je 0x41147f
mov byte [edi], 0
inc edi
lea eax, [esp + 0x334]
push esi
push eax
push 0x44aae4
lea ecx, [esp + 0x134]
push 0x104
push ecx
call ebx
add esp, 0x14
lea edx, [esp + 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x4114d5
push 0x104
lea eax, [esp + 0x28]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
lea ecx, [esp + 0x20]
lea edx, [ebp + 0x64]
push ecx
push edx
mov ecx, ebp
call fcn.00411960
test edi, edi
mov esi, edi
jne 0x411464
mov ebx, dword [esp + 0x18]
pop edi
pop esi
test ebx, ebx
je 0x4114ee
push ebx
call fcn.0043fa08
add esp, 4
mov eax, dword [ebp + 0x68]
test eax, eax
jne 0x4114fe
pop ebp
pop ebx
add esp, 0x630
ret
mov ecx, dword [ebp + 0x6c]
pop ebp
sub ecx, eax
mov eax, 0x532ae21d
imul ecx
sar edx, 8
mov eax, edx
pop ebx
shr eax, 0x1f
add edx, eax
mov eax, edx
add esp, 0x630
ret
Function at 0x411520
Capabilities:
Get common file path
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x52c
push esi
lea eax, [esp + 0x328]
push 0x104
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], 0x20
push ecx
push 0x20019
push 0
push 0x44ae08
push connect
mov byte [esp + 0x2c], 0
mov byte [esp + 0x130], 0
mov dword [esp + 0x338], connect
call dword [esi + 0x98]
test eax, eax
jne 0x411684
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov edi, dword [sym.imp.ntdll.dll__snprintf]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push 0x104
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x411677
lea edx, [esp + 0x20]
lea eax, [esp + 0x434]
push edx
push str.SYSTEMCurrentControlSetServices_s
push 0x104
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x10]
lea edx, [esp + 0x434]
push ecx
push 0x20019
push 0
push edx
push connect
call dword [esi + 0x98]
test eax, eax
jne 0x41166e
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x124]
push eax
push ecx
push 0
push 0
push str.ImagePath
push edx
mov dword [esp + 0x30], 0x104
call ebx
test eax, eax
je 0x411653
lea edx, [esp + 0x20]
lea eax, [esp + 0x330]
push edx
push eax
push 0x44ade8
lea ecx, [esp + 0x130]
push 0x104
push ecx
call edi
add esp, 0x14
lea edx, [esp + 0x124]
mov ecx, esi
push edx
call fcn.0041cc50
test eax, eax
je 0x411663
lea eax, [esp + 0x1c]
lea ecx, [esi + 0x54]
push eax
push ecx
mov ecx, esi
call fcn.00411960
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [esp + 0xc]
jmp 0x411592
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov eax, dword [esi + 0x58]
test eax, eax
jne 0x411693
pop esi
add esp, 0x52c
ret
mov esi, dword [esi + 0x5c]
sub esi, eax
mov eax, 0x532ae21d
imul esi
sar edx, 8
mov ecx, edx
pop esi
shr ecx, 0x1f
add edx, ecx
mov eax, edx
add esp, 0x52c
ret
Function at 0x412000
Capabilities:
Encode data using base64
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x50
mov ecx, 0x10
mov eax, dword [esp + 0x60]
push esi
push edi
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x64]
lea eax, [eax + eax*2 + 3]
movsb byte es:[edi], byte [esi]
lea edx, [ecx*4]
cmp edx, eax
jle 0x41203a
pop edi
mov eax, 1
pop esi
add esp, 0x50
ret 0x10
mov eax, 0x55555556
push ebx
imul ecx
mov eax, edx
push ebp
shr eax, 0x1f
mov ebp, dword [esp + 0x68]
add edx, eax
mov edi, edx
test edi, edi
lea esi, [edi*4]
mov dword [esp + 0x18], esi
jle 0x412104
mov ecx, dword [esp + 0x64]
lea edx, [ebp + 2]
mov dword [esp + 0x10], edi
lea esi, [ecx + 2]
mov al, byte [esi - 2]
add esi, 3
mov byte [esp + 0x70], al
and al, 3
mov ecx, dword [esp + 0x70]
add edx, 4
and ecx, 0xff
shr ecx, 2
shl al, 4
mov cl, byte [esp + ecx + 0x1c]
and eax, 0xff
mov byte [edx - 6], cl
mov cl, byte [esi - 4]
mov byte [esp + 0x68], cl
and cl, 0xf
mov ebx, dword [esp + 0x68]
and ebx, 0xff
shr ebx, 4
or eax, ebx
shl cl, 2
mov al, byte [esp + eax + 0x1c]
and ecx, 0xff
mov byte [edx - 5], al
mov al, byte [esi - 3]
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x14]
and eax, 0xff
mov ebx, eax
and eax, 0x3f
shr ebx, 6
mov al, byte [esp + eax + 0x1c]
or ecx, ebx
mov cl, byte [esp + ecx + 0x1c]
mov byte [edx - 4], cl
mov byte [edx - 3], al
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x412071
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x18]
mov eax, ecx
mov ecx, 3
cdq
idiv ecx
test edx, edx
jle 0x4121a7
mov eax, dword [esp + 0x64]
add esi, 4
lea ecx, [eax + edi*2]
mov al, byte [ecx + edi]
add ecx, edi
mov byte [esp + 0x70], al
mov ebx, dword [esp + 0x70]
and ebx, 0xff
shr ebx, 2
cmp edi, 1
mov bl, byte [esp + ebx + 0x1c]
mov byte [ebp + edi*4], bl
jne 0x41215a
and al, 3
shl al, 4
and eax, 0xff
mov dl, byte [esp + eax + 0x1c]
mov byte [ebp + 5], dl
mov byte [ebp + 6], 0x3d
jmp 0x4121a2
mov cl, byte [ecx + 1]
and al, 3
mov byte [esp + 0x68], cl
mov ebx, dword [esp + 0x68]
shl al, 4
and ebx, 0xff
and eax, 0xff
shr ebx, 4
or eax, ebx
cmp edx, 1
mov al, byte [esp + eax + 0x1c]
mov byte [ebp + edi*4 + 1], al
jne 0x41218e
mov byte [ebp + edi*4 + 2], 0x3d
jmp 0x4121a2
and cl, 0xf
shl cl, 2
and ecx, 0xff
mov cl, byte [esp + ecx + 0x1c]
mov byte [ebp + edi*4 + 2], cl
mov byte [ebp + edi*4 + 3], 0x3d
mov byte [esi + ebp], 0
pop ebp
pop ebx
mov eax, esi
pop edi
pop esi
add esp, 0x50
ret 0x10

Function at 0x4124c0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4124eb
xor eax, eax
pop esi
ret 4
lea ecx, [esp + 8]
push 0
push ecx
push 0x12000
push 0x44af98
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x412514
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret 4