joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10187bc
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1097470]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], eax
jne 0x10187db
xor eax, eax
jmp 0x1018833
push 0x25
push esi
call fcn.01068efd
test eax, eax
pop ecx
pop ecx
je 0x1018822
and word [ebp - 0x210], 0
push edi
xor eax, eax
mov ecx, 0x82
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
pop edi
je 0x1018822
lea eax, [ebp - 0x210]
push eax
jmp 0x1018823
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [ebp - 4]
pop esi
call fcn.01067393
leave
ret 4
Function at 0x101b382
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x107d855
call fcn.01068a88
sub esp, 0x2c
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
push 0x10030f0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xf
call fcn.01012a13
lea eax, [ebp - 0x24]
push eax
push 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x10
call fcn.010732b1
push 1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xf
call fcn.0101260e
lea ecx, [ebp - 0x38]
call fcn.010733db
jmp 0x101b3e2
push esi
mov dword [ebp - 4], 0xe
call fcn.0104f1f1
lea edi, [esi + 0xc]
push edi
call fcn.0104f1f1
mov ecx, esi
call fcn.0101aab6
lea ecx, [esi + 0xd0]
mov byte [ebp - 4], 0xd
call fcn.01014f75
lea ecx, [esi + 0xa4]
mov byte [ebp - 4], 0xc
call fcn.0101a7f4
lea ecx, [esi + 0x98]
call fcn.0105aacd
lea ecx, [esi + 0x8c]
call fcn.0105aacd
lea ecx, [esi + 0x80]
call fcn.0105aacd
lea ecx, [esi + 0x74]
call fcn.0105aacd
lea ecx, [esi + 0x68]
call fcn.0105aacd
lea ecx, [esi + 0x5c]
call fcn.0105aacd
lea ecx, [esi + 0x50]
call fcn.0105aacd
push 1
lea ecx, [esi + 0x40]
call fcn.0101260e
push 1
lea ecx, [esi + 0x30]
call fcn.0101260e
lea ecx, [esi + 0x24]
call fcn.0105aacd
lea ecx, [esi + 0x18]
call fcn.0105aacd
mov ecx, edi
call fcn.0105aacd
mov ecx, esi
call fcn.0105aacd
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x101f97f
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x107e1fc
call fcn.01068a88
sub esp, 0x28
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
lea eax, [esi + 0x78]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [esi + 0x88]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [esi + 0x98]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [esi + 0xa8]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [esi + 0xb8]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [esi + 0xc8]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [esi + 0xd8]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [esi + 0xe8]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [esi + 0xf8]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
push 0x100395c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xe
call fcn.01012a13
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x20]
push eax
push 1
lea ecx, [ebp - 0x34]
call fcn.010732b1
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xe
call fcn.0101260e
or eax, 0xffffffff
lea ecx, [ebp - 0x34]
mov dword [esi + 0x108], ebx
mov dword [esi + 0x10c], ebx
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov byte [esi + 0x110], bl
call fcn.010733db
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x102619d
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x10984f8], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x10261e3
call ebx
test eax, eax
jns 0x10261d9
push 0x100489c
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x1004890
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x10984f4], eax
mov dword [0x10984f8], 1
mov eax, dword [0x10984f4]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x10261ff
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x102622f
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x1026225
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x1026219
push dword [eax + 8]
call dword [eax]
jmp 0x102621f
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x102622e
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x10268c6
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
test byte [0x1098504], 1
push ebx
push esi
push edi
jne 0x10268eb
or dword [0x1098504], 1
call fcn.01026870
mov dword [0x1098500], eax
push 4
pop eax
call fcn.01069670
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1026980
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
lea edi, [eax - 1]
not edi
and edi, esi
sub edi, eax
mov dword [ebp - 8], eax
mov eax, dword [0x10984d4]
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xffff1000
add esi, 0x11000
add esi, ebx
cmp edi, esi
jb 0x1026980
cmp eax, 1
je 0x10269a1
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1026980
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x102694d
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x102697c
xor eax, eax
inc eax
jmp 0x10269c0
cmp edi, eax
jae 0x1026984
xor eax, eax
jmp 0x10269c0
cmp eax, esi
jae 0x102698b
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10984d4]
jmp 0x10269a4
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x102b6b0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x107f788
call fcn.01068a88
sub esp, 0x250
mov eax, dword [0x1097470]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push edi
push 0x1004f34
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x224], eax
call fcn.01012a13
and dword [ebp - 4], 0
lea eax, [ebp - 0x248]
push eax
push 4
lea ecx, [ebp - 0x25c]
call fcn.010732b1
push 1
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
call fcn.0101260e
and word [ebp - 0x21c], 0
xor eax, eax
mov ecx, 0x82
lea edi, [ebp - 0x21a]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 4]
test eax, eax
mov byte [ebp - 0x21d], 0
jne 0x102b73a
mov eax, 0x1001d48
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, 0x104
push edi
lea ecx, [ebp - 0x21c]
push ecx
push eax
call ebx
cmp eax, edi
mov dword [ebp - 0x228], eax
jbe 0x102b7d0
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x102b814
mov esi, dword [esi + 4]
test esi, esi
jne 0x102b77d
mov esi, 0x1001d48
push dword [ebp - 0x228]
push edi
push esi
call ebx
mov esi, eax
test esi, esi
je 0x102b7c7
push edi
lea ecx, [ebp - 0x238]
call fcn.01012a13
mov ecx, dword [ebp - 0x224]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x238]
push eax
mov byte [ebp - 4], 3
call fcn.0101292a
push 1
lea ecx, [ebp - 0x238]
call fcn.0101260e
mov byte [ebp - 0x21d], 1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x102b814
test eax, eax
je 0x102b814
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x238]
call fcn.01012a13
mov ecx, dword [ebp - 0x224]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x238]
push eax
mov byte [ebp - 4], 4
call fcn.0101292a
push 1
lea ecx, [ebp - 0x238]
call fcn.0101260e
mov byte [ebp - 0x21d], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25c]
call fcn.010733db
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x21d]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01067393
leave
ret 8
Function at 0x1031f8d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
cmp edi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], esi
je 0x1032024
cmp dword [ebp + 0xc], esi
je 0x1032024
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push 0x1005638
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp ebx, esi
jne 0x1032011
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
push 0x1005620
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp ebx, esi
jne 0x1032011
cmp dword [ebp + 0xc], 4
jne 0x1032011
mov eax, dword [ebp - 8]
movzx cx, ah
and ax, 0xff
mov word [edi + 0x114], cx
mov word [edi + 0x116], ax
cmp dword [ebp - 4], esi
je 0x103201f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
jmp 0x1032027
push 0xd
pop eax
pop edi
pop esi
leave
ret 8

Function at 0x10377a0
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x10377e2
mov eax, dword [eax + 4]
test eax, eax
jne 0x10377ba
mov eax, 0x1001d48
push 1
push 0
push eax
push 0x1006a10
push 0x1006a04
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x10377e2
push dword [ebp + 0xc]
push 0
push eax
call fcn.01035a95
pop ebp
ret 8

Function at 0x103d4e2
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 0
mov esi, ecx
push esi
push 0x103d498
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x48], eax
pop esi
jne 0x103d515
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
xor eax, eax
leave
ret

Function at 0x103d568
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 0
mov esi, ecx
push esi
push 0x103d51e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x58], eax
pop esi
jne 0x103d59b
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
xor eax, eax
leave
ret

Function at 0x103d5ee
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 0
mov esi, ecx
push esi
push 0x103d5a4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x48], eax
pop esi
jne 0x103d621
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
xor eax, eax
leave
ret
Function at 0x1045ff7
Capabilities:
Delete file

Disassembly:
mov eax, 0x1082b99
call fcn.01068a88
sub esp, 0x2c
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
push 0x1007d68
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x12
call fcn.01012a13
lea eax, [ebp - 0x24]
xor edi, edi
push eax
inc edi
push edi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x13
call fcn.010732b1
push edi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x12
call fcn.0101260e
lea ecx, [ebp - 0x38]
call fcn.010733db
jmp 0x104605b
xor ebx, ebx
cmp dword [esi + 8], ebx
je 0x1046075
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x104606e
mov eax, 0x1001d48
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x18], ebx
je 0x104608d
mov eax, dword [esi + 0x14]
cmp eax, ebx
jne 0x1046086
mov eax, 0x1001d48
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x28], ebx
je 0x10460a5
mov eax, dword [esi + 0x24]
cmp eax, ebx
jne 0x104609e
mov eax, 0x1001d48
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
lea ecx, [esi + 0x114]
call fcn.0101260e
push edi
lea ecx, [esi + 0x104]
call fcn.0101260e
push edi
lea ecx, [esi + 0xf4]
call fcn.0101260e
push edi
lea ecx, [esi + 0xe4]
call fcn.0101260e
push edi
lea ecx, [esi + 0xd4]
call fcn.0101260e
push edi
lea ecx, [esi + 0xc4]
call fcn.0101260e
push edi
lea ecx, [esi + 0xb4]
call fcn.0101260e
push edi
lea ecx, [esi + 0xa4]
call fcn.0101260e
push edi
lea ecx, [esi + 0x90]
call fcn.0101260e
push edi
lea ecx, [esi + 0x80]
call fcn.0101260e
push edi
lea ecx, [esi + 0x70]
call fcn.0101260e
push edi
lea ecx, [esi + 0x60]
call fcn.0101260e
push edi
lea ecx, [esi + 0x50]
call fcn.0101260e
push edi
lea ecx, [esi + 0x40]
call fcn.0101260e
push edi
lea ecx, [esi + 0x30]
call fcn.0101260e
push edi
lea ecx, [esi + 0x20]
call fcn.0101260e
push edi
lea ecx, [esi + 0x10]
call fcn.0101260e
push edi
mov ecx, esi
call fcn.0101260e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x1046598
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1082c98
call fcn.01068a88
sub esp, 0x58
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push 0x1007e50
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x20], ebx
call fcn.01012a13
lea eax, [ebp - 0x40]
xor edi, edi
push eax
inc edi
push 4
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], edi
call fcn.010732b1
push edi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.0101260e
cmp dword [esi + 0x38], ebx
jne 0x10466c5
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push dword [0x1096cf0]
mov byte [ebp - 4], 4
push 0x80000002
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10466b8
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x1007e44
push dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10466af
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x10466af
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x1007e44
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10466a6
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x50]
call fcn.01012a13
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.0101292a
push edi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 4
call fcn.0101260e
lea eax, [esi + 0x30]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0102b6b0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.0101260e
mov ecx, dword [ebp + 8]
add esi, 0x30
push esi
call fcn.01013179
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], bl
call fcn.010733db
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1046b2d
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1082d7f
call fcn.01068a88
sub esp, 0x48
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push 0x1007fb8
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], ebx
call fcn.01012a13
lea eax, [ebp - 0x30]
xor edi, edi
push eax
inc edi
push 4
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], edi
call fcn.010732b1
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.0101260e
cmp dword [esi + 0xdc], ebx
jne 0x1046ca4
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push dword [0x1096fb0]
mov dword [ebp - 0x10], ebx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
jne 0x1046c69
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [0x1096fb4]
mov dword [ebp - 0x18], ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, ebx
jne 0x1046c69
cmp dword [ebp - 0x18], 1
jne 0x1046c66
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax + 2]
push eax
call fcn.01068c84
mov edi, eax
cmp edi, ebx
pop ecx
mov dword [ebp - 0x1c], edi
je 0x1046c62
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx + ecx + 2]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [0x1096fb4]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, ebx
jne 0x1046c57
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x40]
call fcn.01012a13
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x40]
lea ecx, [esi + 0xd4]
push eax
mov byte [ebp - 4], 4
call fcn.0101292a
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.0101260e
push dword [ebp - 0x1c]
call fcn.01068bbd
pop ecx
jmp 0x1046c69
push 0xe
jmp 0x1046c68
push 0xd
pop edi
cmp dword [ebp - 0x10], ebx
je 0x1046c77
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
je 0x1046ca4
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.010466f8
push eax
lea ecx, [esi + 0xd4]
mov byte [ebp - 4], 5
call fcn.01012e7a
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.0101260e
mov ecx, dword [ebp + 8]
add esi, 0xd4
push esi
call fcn.01013179
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x20], 1
mov byte [ebp - 4], bl
call fcn.010733db
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1046cde
Capabilities:
Set registry value

Disassembly:
mov eax, 0x1082d9e
call fcn.01068a88
sub esp, 0x2c
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
push 0x1008000
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call fcn.01012a13
lea eax, [ebp - 0x24]
push eax
push 4
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], edi
call fcn.010732b1
push 1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0101260e
mov esi, dword [ebp + 8]
cmp dword [esi + 8], edi
je 0x1046d99
push esi
lea ecx, [ebx + 0xd4]
call fcn.01012e7a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push dword [0x1096fb0]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
cmp ebx, edi
jne 0x1046d89
mov eax, dword [esi + 8]
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x1046d6f
mov esi, 0x1001d48
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push edi
push dword [0x1096fb4]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
cmp dword [ebp - 0x10], edi
je 0x1046d9c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1046d9c
push 0xd
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.010733db
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x1046e58
Capabilities:
Delete service
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
call fcn.01046e10
test eax, eax
jne 0x1046e72
inc eax
jmp 0x1046f02
push ebx
push edi
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, edi
jne 0x1046e99
push edi
add esi, 0x84
push esi
push 0x1008100
push edi
jmp 0x1046ef8
push 0x10020
lea edi, [esi + 0x84]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x1046ec3
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
push edi
push 0x10080d4
push esi
jmp 0x1046ef8
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], eax
call esi
push ebx
call esi
xor eax, eax
cmp dword [ebp - 4], eax
je 0x1046ef0
inc eax
jmp 0x1046f00
push eax
push edi
push 0x1008098
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret
Function at 0x104753e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
cmp word [ecx], 0
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
je 0x10475c9
cmp word [eax], 0
push ebx
push esi
push edi
je 0x10475c4
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
jmp 0x10475aa
mov ax, word [edi]
test ax, ax
je 0x10475cd
movzx ecx, word [esi]
movzx eax, ax
sub ecx, eax
jne 0x10475b0
push esi
call ebx
push edi
mov dword [ebp - 4], eax
call ebx
mov ecx, dword [ebp - 4]
sub eax, edi
sub ecx, esi
xor eax, ecx
test eax, 0xfffffffe
jne 0x10475b0
jmp 0x10475a5
inc esi
inc esi
movzx ecx, word [esi]
inc edi
inc edi
movzx eax, word [edi]
sub ecx, eax
je 0x10475aa
cmp esi, dword [ebp - 4]
jb 0x1047597
cmp word [esi], 0
jne 0x104756a
cmp word [edi], 0
je 0x10475cd
push dword [ebp + 8]
call ebx
cmp word [eax], 0
mov dword [ebp + 8], eax
jne 0x1047562
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [ebp + 8]
jmp 0x10475c6

Function at 0x10481e1
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x1082db8
call fcn.01068a88
sub esp, 0x218
mov eax, dword [0x1097470]
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x214], esi
push 0x2001f
push eax
push dword [ebx]
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], esi
call fcn.010470f0
cmp eax, esi
jne 0x104828a
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1048241
lea eax, [ebp - 0x210]
push eax
call fcn.010481e1
cmp eax, esi
jne 0x1048289
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x214]
je 0x1048231
call fcn.0104707d
push dword [ebp - 0x21c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.0104707d
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01067393
leave
ret 4