joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40481a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x43c5a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [edx]
mov eax, esi
ror eax, 8
mov ebx, 0xff00ff00
and eax, ebx
rol esi, 8
and esi, 0xff00ff
or eax, esi
mov dword [ebp - 0x94], eax
push edi
mov edi, ecx
mov ecx, dword [edx + 4]
mov eax, ecx
mov esi, 0xff00ff
ror eax, 8
and eax, ebx
rol ecx, 8
and ecx, esi
or eax, ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x90], eax
mov eax, ecx
ror eax, 8
and eax, ebx
rol ecx, 8
and ecx, esi
or eax, ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x8c], eax
mov eax, ecx
ror eax, 8
and eax, ebx
mov ebx, dword [ebp + 8]
rol ecx, 8
and ecx, esi
or eax, ecx
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x88]
xor esi, esi
sub ebx, eax
lea eax, [ebx + esi*4]
mov ecx, dword [ebp + eax - 0x88]
xor ecx, dword [ebp + esi*4 - 0x88]
xor ecx, dword [ebp + esi*4 - 0x8c]
xor ecx, dword [ebp + esi*4 - 0x90]
call fcn.004046ef
mov edx, eax
rol edx, 0x18
mov ecx, eax
rol ecx, 0x12
xor edx, ecx
mov ecx, eax
rol ecx, 0xa
xor edx, ecx
mov ecx, eax
rol ecx, 2
xor edx, ecx
xor edx, dword [ebp + esi*4 - 0x94]
xor edx, eax
mov dword [ebp + esi*4 - 0x84], edx
inc esi
cmp esi, 0x20
jl 0x4048a8
mov eax, dword [ebp - 8]
mov ecx, eax
ror ecx, 8
mov ebx, 0xff00ff
mov edx, 0xff00ff00
rol eax, 8
and ecx, edx
and eax, ebx
or ecx, eax
mov eax, dword [ebp - 0xc]
mov dword [edi], ecx
mov ecx, eax
ror ecx, 8
and ecx, edx
rol eax, 8
and eax, ebx
or ecx, eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 4], ecx
mov ecx, eax
ror ecx, 8
and ecx, edx
rol eax, 8
and eax, ebx
or ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 8], ecx
mov ecx, eax
ror ecx, 8
and ecx, edx
rol eax, 8
and eax, ebx
or ecx, eax
mov dword [edi + 0xc], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004124f9
leave
ret
Function at 0x404964
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x43c5a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], ebx
test edx, edx
je 0x404aa3
test eax, eax
je 0x404aa3
test ebx, ebx
je 0x404aa3
mov eax, dword [ebp + 0xc]
add eax, 0x10
and eax, 0xfffffff0
test ecx, ecx
jne 0x4049ba
mov dword [edx], eax
xor eax, eax
inc eax
jmp 0x404aa5
cmp dword [edx], eax
jb 0x404aa3
mov edx, dword [ebp + 0xc]
push edi
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
movsd dword es:[edi], dword [esi]
mov esi, ebx
mov dword [ebp - 0x28], esi
cmp edx, 0x10
jb 0x404a3e
mov eax, dword [ebp - 0x2c]
sub eax, ecx
mov dword [ebp - 0x38], eax
push 0x10
pop eax
sub eax, ecx
mov edi, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x3c], eax
mov ecx, ebx
mov ebx, dword [ebp - 0x38]
lea eax, [ebx + edi]
mov al, byte [eax + ecx]
xor al, byte [ebp + ecx - 0x14]
inc ecx
mov byte [ebp + ecx - 0x25], al
cmp ecx, 0x10
jb 0x4049f3
push dword [ebp - 0x34]
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.0040481a
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x28]
add edi, 0x10
pop ecx
add esi, 0x10
add eax, edi
push 0
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x30], edi
pop ebx
cmp eax, edx
jbe 0x4049ee
push 0x10
pop eax
sub edx, esi
sub eax, edx
movzx eax, al
imul eax, eax, 0x1010101
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x2c]
push edx
add eax, esi
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00415210
add esp, 0xc
mov al, byte [ebp + ebx - 0x14]
xor byte [ebp + ebx - 0x24], al
inc ebx
cmp ebx, 0x10
jb 0x404a68
push dword [ebp - 0x34]
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.0040481a
mov edi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x28]
lea edi, [edi + esi]
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
mov ecx, dword [ebp - 0x40]
add eax, 0x10
movsd dword es:[edi], dword [esi]
mov dword [ecx], eax
xor eax, eax
inc eax
pop edi
jmp 0x404aa5
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004124f9
leave
ret
Function at 0x40518c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x43c5a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push edi
mov dword [ebp - 0x90], ecx
xor ecx, ecx
push ecx
push ecx
push 0xffffffffffffffff
push eax
push ecx
push ecx
mov dword [ebp - 0x8c], eax
call ebx
mov edi, eax
lea esi, [edi + edi]
push esi
call fcn.00413265
push esi
push 0
push eax
mov dword [ebp - 0x88], eax
call fcn.004179f0
mov esi, dword [ebp - 0x88]
add esp, 0x10
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x8c]
xor edi, edi
push edi
push edi
call ebx
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
push 0xfde9
call esi
mov edi, eax
lea eax, [edi + 2]
push eax
call fcn.00413265
mov ebx, eax
lea eax, [edi + 2]
push eax
push 0
push ebx
call fcn.004179f0
add esp, 0x10
xor eax, eax
push eax
push eax
push edi
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x88]
push eax
push 0xfde9
call esi
push dword [ebp - 0x88]
call fcn.004131ef
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.004179f0
push edi
lea eax, [ebp - 0x84]
push str.UnicodeToUTF8_Len:_d__n
push eax
call fcn.00412508
add esp, 0x1c
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x90]
lea eax, [edi + 2]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004124f9
leave
ret 8
Function at 0x40570c
Capabilities:
Create service
Modify service
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x43c5a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor ebx, ebx
push ebx
mov edi, ecx
push ebx
mov dword [ebp - 0x21c], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
mov dword [ebp - 0x228], esi
test esi, esi
jne 0x40575f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Open_servic_control_manager_database_Error_Code:_d
call fcn.00403e2e
pop ecx
pop ecx
xor eax, eax
jmp 0x4058eb
push 0x104
lea eax, [ebp - 0x110]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x110]
push ecx
push 1
push 2
push 0x10
push 0xf01ff
lea eax, [edi + 4]
push eax
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x218], eax
test eax, eax
jne 0x4057bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateService_Error_Code:_d
call fcn.00403e2e
pop ecx
pop ecx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x405758
mov edx, dword [ebp - 0x21c]
push 0xe
pop ecx
mov esi, str.SYSTEMCurrentControlSetServicesEventLogApplication_
lea edi, [ebp - 0x210]
add edx, 4
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x214], ebx
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4057dc
lea edi, [ebp - 0x210]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4057ec
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
mov ecx, edx
push eax
and ecx, 3
push 0x80000002
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x40583d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegCreateKey_Error_Code:_d
call fcn.00403e2e
mov esi, dword [ebp - 0x218]
pop ecx
pop ecx
jmp 0x4058d8
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405846
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x110]
push eax
push 2
push ebx
push str.EventMessageFile
push dword [ebp - 0x214]
call esi
push 4
lea eax, [ebp - 0x220]
push eax
push 4
push ebx
push str.TypesSupported
push dword [ebp - 0x214]
mov dword [ebp - 0x220], 7
call esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x21c]
push ecx
push ecx
lea eax, [ebx + 4]
push eax
push 0x64
push 4
mov ecx, ebx
call fcn.00405970
mov esi, dword [ebp - 0x218]
lea eax, [ebx + 0x44]
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x224]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
xor ebx, ebx
inc ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x228]
call esi
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004124f9
leave
ret
Function at 0x405d74
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0x26c
mov eax, 0x42bea5
call fcn.0041599c
mov dword [ebp - 0x278], edx
push ecx
lea ecx, [ebp - 0x134]
call fcn.004012b5
xor ebx, ebx
push 0x434b33
lea ecx, [ebp - 0x14c]
mov dword [ebp - 4], ebx
call fcn.004012b5
push ebx
push 2
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x405eee
push 0x124
lea eax, [ebp - 0x270]
push ebx
push eax
call fcn.004179f0
add esp, 0xc
lea eax, [ebp - 0x274]
push eax
push esi
mov dword [ebp - 0x274], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x405ecc
lea eax, [ebp - 0x250]
push eax
call fcn.00401001
pop ecx
push eax
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x14c]
call fcn.0040149d
push dword [ebp - 0x124]
cmp dword [ebp - 0x120], 0x10
lea eax, [ebp - 0x134]
cmovae eax, dword [ebp - 0x134]
push ecx
push eax
lea ecx, [ebp - 0x14c]
call fcn.00402bdc
test eax, eax
jne 0x405ebe
push dword [ebp - 0x26c]
push ebx
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp dword [ebp - 0x278], 0
mov edi, eax
je 0x405ed6
push 0x104
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.004179f0
add esp, 0xc
lea eax, [ebp - 0x11c]
push 0x104
push eax
push ebx
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test eax, eax
je 0x405ebe
mov ecx, dword [ebp - 0x278]
lea eax, [ebp - 0x11c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405eb5
test dl, dl
je 0x405eb1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405eb5
add eax, 2
add ecx, 2
test dl, dl
jne 0x405e95
mov eax, ebx
jmp 0x405eba
sbb eax, eax
or eax, 1
test eax, eax
je 0x405ed6
lea eax, [ebp - 0x274]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x405df4
jmp 0x405ee5
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea ecx, [ebp - 0x14c]
call fcn.004012e4
lea ecx, [ebp - 0x134]
call fcn.004012e4
mov al, bl
call fcn.0041595a
ret
Function at 0x405f0c
Capabilities:
Enumerate processes

Disassembly:
push 0x26c
mov eax, 0x42be67
call fcn.0041599c
mov dword [ebp - 0x278], edx
push ecx
lea ecx, [ebp - 0x130]
call fcn.004012b5
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
or esi, 0xffffffff
cmp edi, esi
je 0x40608a
push 0x124
lea eax, [ebp - 0x26c]
push ebx
push eax
call fcn.004179f0
add esp, 0xc
lea eax, [ebp - 0x270]
push eax
push edi
mov dword [ebp - 0x270], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
push 0x434b33
lea ecx, [ebp - 0x148]
mov esi, eax
call fcn.004012b5
mov byte [ebp - 4], 1
test esi, esi
je 0x406065
mov esi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [ebp - 0x24c]
push eax
call fcn.00401001
pop ecx
push eax
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x148]
call fcn.0040149d
push dword [ebp - 0x120]
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x130]
cmovae eax, dword [ebp - 0x130]
push ecx
push eax
lea ecx, [ebp - 0x148]
call fcn.00402bdc
test eax, eax
jne 0x40604f
push dword [ebp - 0x268]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp dword [ebp - 0x278], 0
mov dword [ebp - 0x274], eax
je 0x40604f
push 0x104
lea eax, [ebp - 0x118]
push ebx
push eax
call fcn.004179f0
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x104
push eax
push ebx
push dword [ebp - 0x274]
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test eax, eax
je 0x40604f
push dword [ebp - 0x278]
lea eax, [ebp - 0x118]
push eax
call fcn.004149e4
pop ecx
pop ecx
test eax, eax
je 0x406063
lea eax, [ebp - 0x270]
push eax
push edi
call esi
test eax, eax
jne 0x405f99
jmp 0x406065
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test bl, bl
setne al
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x274], eax
call fcn.004012e4
mov esi, dword [ebp - 0x274]
lea ecx, [ebp - 0x130]
call fcn.004012e4
mov eax, esi
call fcn.0041595a
ret

Function at 0x40609d
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, ecx
call fcn.004060f4
test eax, eax
jne 0x4060ef
xor esi, esi
xor edi, edi
inc esi
mov ecx, dword [ebp - 4]
mov edx, ebx
call fcn.00405f0c
test eax, eax
je 0x4060eb
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.CheckProcess_Running
add edi, 0x3e8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp edi, 0x7530
jl 0x4060b7
jmp 0x4060ed
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4060f4
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
jne 0x40610b
or eax, 0xffffffff
jmp 0x406212
xor esi, esi
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call fcn.00406217
test eax, eax
je 0x406132
push 0xfffffffffffffff9
pop esi
push 0xfffffffffffffffe
pop ecx
cmp eax, ecx
cmovne esi, ecx
jmp 0x4061e9
lea eax, [ebp - 0xc]
push eax
mov ebx, 0xf01ff
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x406154
push 0xfffffffffffffffd
jmp 0x4061e8
lea eax, [ebp - 4]
push eax
push 1
push 2
push esi
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x40616f
push 0xfffffffffffffffc
jmp 0x4061e8
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.0040631a
test eax, eax
jne 0x406182
push 0xfffffffffffffffb
jmp 0x4061e8
push 0x44
pop ebx
push ebx
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.004179f0
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push esi
push 0x1000028
push esi
push esi
push esi
push esi
push edi
push dword [ebp - 4]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x60], str.winsta0default
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x4061d3
mov edi, str.CreateProcessAsUser_ok__r_n
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call fcn.00414015
pop ecx
jmp 0x4061e9
mov esi, str.CreateProcessAsUse_lse__r_n
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call fcn.00414015
pop ecx
push 0xfffffffffffffffa
pop esi
cmp dword [ebp - 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4061fa
push dword [ebp - 8]
call edi
cmp dword [ebp - 0xc], 0
je 0x406205
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 4], 0
je 0x406210
push dword [ebp - 4]
call edi
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406217
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x43c5a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push 0x124
lea eax, [ebp - 0x12c]
push esi
push eax
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x130], esi
call fcn.004179f0
add esp, 0xc
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x4062dd
lea eax, [ebp - 0x130]
push eax
push edi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x4062cd
push str.EXPLORER.EXE
call fcn.00414c4e
mov ebx, eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00414c4e
pop ecx
pop ecx
mov cl, byte [eax]
cmp cl, byte [ebx]
jne 0x4062b6
test cl, cl
je 0x4062b2
mov cl, byte [eax + 1]
cmp cl, byte [ebx + 1]
jne 0x4062b6
add eax, 2
add ebx, 2
test cl, cl
jne 0x406296
mov eax, esi
jmp 0x4062bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4062ec
lea eax, [ebp - 0x130]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x40627c
push 0xfffffffffffffffe
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004124f9
leave
ret
push dword [ebp - 0x128]
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp - 0x134]
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
push 0xffffffffffffffff
pop eax
cmove esi, eax
jmp 0x4062d4
Function at 0x40643b
Capabilities:
Print debug messages
Set registry value

Disassembly:
push 0x24
mov eax, 0x42bf28
call fcn.0041599c
xor ebx, ebx
push 0xffffffffffffffff
mov dword [ebp - 4], 2
push ebx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.0040157a
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x2c]
push ecx
mov esi, 0xf003f
push esi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4064ab
push 0x4376c4
jmp 0x4064d8
push 0x4376e0
call esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406527
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push ebx
push esi
push ebx
push ebx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40651c
push 0x4376f0
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call esi
push dword [ebp + 0x48]
cmp dword [ebp + 0x4c], 0x10
lea ecx, [ebp + 0x38]
cmovae ecx, dword [ebp + 0x38]
cmp dword [ebp + 0x34], 0x10
push ecx
push ebx
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push ebx
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x406499
push 0x4376d0
call esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40652a
push 0x4376fc
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or ebx, 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004012e4
lea ecx, [ebp + 8]
call fcn.004012e4
lea ecx, [ebp + 0x20]
call fcn.004012e4
lea ecx, [ebp + 0x38]
call fcn.004012e4
mov eax, ebx
call fcn.0041595a
ret 0x48
Function at 0x406554
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push 0x90
mov eax, 0x42bee8
call fcn.0041599c
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0xffffffffffffffff
mov dword [ebp - 4], 1
push ebx
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x80], ebx
mov byte [ebp - 0x90], bl
call fcn.0040157a
lea ecx, [ebp - 0x94]
push ecx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x7c], 0x10
push 0xf003f
lea eax, [ebp - 0x90]
cmovae eax, dword [ebp - 0x90]
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406657
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x4376c4
call esi
push 0x64
pop eax
push eax
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x78]
push ebx
push eax
mov dword [ebp - 0x98], ebx
call fcn.004179f0
add esp, 0xc
cmp dword [ebp + 0x38], 0x10
lea ecx, [ebp - 0x9c]
push ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x98]
push ecx
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push ebx
push eax
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40663f
push 0x437708
call esi
lea eax, [ebp - 0x78]
push eax
call fcn.00401001
pop ecx
push eax
lea eax, [ebp - 0x78]
push eax
mov ecx, edi
call fcn.0040149d
jmp 0x406649
push 0x437714
call esi
or ebx, 0xffffffff
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40665a
or ebx, 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.004012e4
lea ecx, [ebp + 0xc]
call fcn.004012e4
lea ecx, [ebp + 0x24]
call fcn.004012e4
mov eax, ebx
call fcn.0041595a
ret 0x34

Function at 0x406820
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x43c5a0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ecx + 0x18]
mov edx, ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401e5b
cmp dword [ebp - 8], 0x10
pop ecx
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
lea ecx, [ebp - 0x1c]
call fcn.004012e4
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004124f9
leave
ret
Function at 0x4073ee
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x43c5a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
push 8
pop ecx
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [ebp - 0x404]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edx, [ebx + 4]
movsb byte es:[edi], byte [esi]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x40741e
lea edi, [ebp - 0x404]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40742e
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x404]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40744b
mov esi, str.Parameters
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x408]
push eax
push 1
push 0
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x404]
push eax
push 0x80000002
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4074eb
and dword [ebp - 0x410], eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
pop edi
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebx + 0xf4]
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push str.Start
push dword [ebp - 0x408]
mov dword [ebp - 0x40c], edi
call esi
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebx + 0xf8]
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0x4378a0
push dword [ebp - 0x408]
mov dword [ebp - 0x40c], edi
call esi
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
and dword [ebx + 0xfc], 0
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.004124f9
leave
ret