joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404edc
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4200d0]
push esi
push edi
mov ecx, 0x4200d0
call dword [eax + 0xc]
push 0xf003f
xor edi, edi
mov esi, eax
push edi
add esi, 0x10
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x404f1b
call fcn.0040442e
mov edi, eax
jmp 0x404ff7
mov ecx, dword [ebp + 8]
push 0x24
add ecx, 0x40
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, edi
mov dword [ebp + 8], eax
jne 0x404f3e
call fcn.0040442e
mov edi, eax
jmp 0x404fee
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 6
mov dword [ebp - 0x24], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call ebx
test eax, eax
je 0x404f91
cmp dword [ebp - 0x20], 1
je 0x404fe2
cmp dword [ebp - 0x20], 3
je 0x404f91
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x404f91
call fcn.0040442e
mov edi, eax
jmp 0x404fe4
cmp dword [ebp - 0x20], 1
je 0x404fe2
push 1
lea esi, [ebp - 0x4c]
call fcn.0040c2de
jmp 0x404fd9
lea ecx, [ebp - 0x4c]
call fcn.0040c353
fmul qword [0x41b758]
fcomp qword [0x41b768]
fnstsw ax
test ah, 5
jp 0x404fdf
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call ebx
cmp dword [ebp - 0x20], 1
jne 0x404fa3
mov esi, dword [ebp - 4]
xor edi, edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [esi - 0x10]
call fcn.0040328d
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x40595d
Capabilities:
Create service

Disassembly:
mov eax, 0x4181d6
call fcn.0040fa68
push ecx
push ecx
push dword [ebp + 8]
call fcn.00406833
test eax, eax
je 0x40597c
xor eax, eax
jmp 0x405a62
mov eax, dword [0x4200d0]
push ebx
mov ebx, 0x4200d0
push edi
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
xor edi, edi
push eax
push edi
mov dword [ebp - 4], edi
call fcn.0040c44f
cmp eax, edi
pop ecx
pop ecx
jge 0x4059af
mov edi, eax
jmp 0x405a53
push esi
lea esi, [ebp - 0x10]
call fcn.0040aa78
mov eax, dword [0x4200d0]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x65
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.00406565
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, edi
jne 0x4059f3
call fcn.0040442e
mov edi, eax
jmp 0x405a47
push edi
mov esi, dword [ebp + 8]
push edi
push str.RPCSS
push edi
push edi
push dword [ebp - 0x10]
lea eax, [esi + 0x40]
push 1
push 4
push 0x10
push 0xf01ff
push dword [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp eax, edi
mov dword [ebp + 8], eax
jne 0x405a2b
call fcn.0040442e
mov edi, eax
jmp 0x405a40
push esi
call fcn.00406137
cmp eax, edi
jge 0x405a37
mov edi, eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040328d
pop esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040328d
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x405a70
Capabilities:
Delete service
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push edi
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x405a97
call fcn.0040442e
jmp 0x405b69
mov ecx, dword [ebp + 8]
push esi
push 0x10024
add ecx, 0x40
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, edi
mov dword [ebp + 8], esi
jne 0x405abc
xor esi, esi
inc esi
jmp 0x405b5d
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 6
mov dword [ebp - 0x20], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
xor edi, edi
inc edi
cmp dword [ebp - 0x1c], edi
je 0x405b3b
cmp dword [ebp - 0x1c], 3
je 0x405af1
lea eax, [ebp - 0x20]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
lea esi, [ebp - 0x48]
call fcn.0040c2de
cmp dword [ebp - 0x1c], edi
je 0x405b3b
lea ecx, [ebp - 0x48]
call fcn.0040c353
fmul qword [0x41b758]
fcomp qword [0x41b768]
fnstsw ax
test ah, 5
jp 0x405b3b
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call ebx
cmp dword [ebp - 0x1c], 1
jne 0x405aff
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
pop ebx
je 0x405b4d
xor esi, esi
jmp 0x405b54
call fcn.0040442e
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop edi
leave
ret 4
Function at 0x406137
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x40615e
call fcn.0040442e
jmp 0x4061eb
mov ecx, dword [ebp + 8]
push ebx
push 0xf01ff
add ecx, 0x40
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, esi
jne 0x406181
call fcn.0040442e
mov esi, eax
jmp 0x4061df
push edi
mov eax, 0xdbba0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
xor ecx, ecx
inc ecx
push 2
push ebx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0x15180
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], 3
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
pop edi
jne 0x4061d8
call fcn.0040442e
mov esi, eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop ebx
pop esi
leave
ret 4

Function at 0x407234
Capabilities:
Create thread

Disassembly:
push ecx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
mov dword [edi + 0x30], eax
jne 0x40724d
xor eax, eax
jmp 0x407261
lea eax, [esp + 4]
push eax
push esi
push edi
push 0x4074e3
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
pop ecx
ret

Function at 0x407446
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x41f278]
push esi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
mov esi, ecx
call fcn.0040ec5d
xor edi, edi
add esp, 0xc
cmp dword [esi + 0x260], edi
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], eax
jne 0x40748e
push eax
call fcn.0040e9ef
pop ecx
add esi, 0x40
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, edi
je 0x4074bd
push edi
lea eax, [ebp - 0x208]
push eax
push edi
push 1
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0040efeb
leave
ret
Function at 0x407f43
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov eax, 0x417b5a
call fcn.0040fa68
push ecx
push ecx
push esi
push str.ADVAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
neg eax
sbb eax, eax
and eax, dword [0x41ac04]
je 0x407fd7
push str.SystemFunction036
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
and dword [ebp - 0x10], 0
test eax, eax
je 0x407fd7
push 4
lea ecx, [ebp - 0x10]
push ecx
call eax
test al, al
je 0x407fd7
mov eax, dword [ebp + 8]
fild dword [ebp + 8]
test eax, eax
jge 0x407fa0
fadd qword [0x41b730]
fadd qword [0x41b728]
mov eax, dword [ebp - 0x10]
test eax, eax
fild dword [ebp - 0x10]
jge 0x407fb6
fadd qword [0x41b730]
fmulp st(1)
fmul qword [0x41b720]
call fcn.00416380
test esi, esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x407fd3
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
jmp 0x407fe4
test esi, esi
je 0x407fe2
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x408062
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push edi
push 2
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40807d
pop edi
jmp fcn.0040442e
push esi
push str.GOOGLEUPDATE
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40809b
call fcn.0040442e
mov esi, eax
jmp 0x4080c9
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 4
je 0x4080af
mov esi, 0x8000ffff
jmp 0x4080c9
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x408092
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [eax], 1
jne 0x4080a8
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop esi
pop edi
ret
Function at 0x40a5f3
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov eax, 0x417f1f
call fcn.0040fa68
sub esp, 0x260
mov eax, dword [0x41f278]
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
xor eax, eax
mov ecx, 0x94
lea edi, [ebp - 0x260]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x268]
push eax
xor ebx, ebx
call fcn.004063d0
push 0x5c
lea eax, [ebp - 0x268]
mov dword [ebp - 4], ebx
call fcn.0040ac45
push dword [ebp + 0xc]
lea eax, [ebp - 0x268]
push eax
call fcn.0040ad05
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x26c], esi
cmp esi, 0xffffffff
mov byte [ebp - 4], 1
jne 0x40a68f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x40a683
xor esi, esi
jmp 0x40a728
call fcn.0040442e
mov esi, eax
jmp 0x40a728
test byte [ebp - 0x260], 0x10
jne 0x40a6fb
push dword [ebp + 8]
lea eax, [ebp - 0x264]
push eax
call fcn.004063d0
push 0x5c
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 2
call fcn.0040ac45
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.0040ad05
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40a6e9
push dword [ebp - 0x264]
call fcn.0040c627
pop ecx
mov ebx, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
call fcn.0040328d
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40a68f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x40a71f
call fcn.0040442e
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, ebx
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
call fcn.0040328d
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0040efeb
leave
ret
Function at 0x40a74f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x417f1f
call fcn.0040fa68
sub esp, 0x260
mov eax, dword [0x41f278]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.0040a935
test al, al
je 0x40a7a0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40a79c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40a792
xor eax, eax
jmp 0x40a920
call fcn.0040442e
jmp 0x40a920
test al, 0x10
jne 0x40a7aa
mov eax, 0x80004005
jmp 0x40a920
push ebx
push edi
push esi
call fcn.0040a5e2
pop ecx
mov ebx, eax
xor eax, eax
mov ecx, 0x94
lea edi, [ebp - 0x260]
rep stosd dword es:[edi], eax
push esi
lea eax, [ebp - 0x268]
push eax
call fcn.004063d0
push 0x41b460
lea eax, [ebp - 0x268]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.0040ad05
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x26c], eax
cmp eax, 0xffffffff
mov byte [ebp - 4], 1
jne 0x40a82a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x40a90e
call fcn.0040442e
cmp ebx, edi
jl 0x40a90e
jmp 0x40a90c
test byte [ebp - 0x260], 0x10
je 0x40a8c8
push edi
push 2
push 0x41a8b4
lea eax, [ebp - 0x234]
call fcn.0040cdad
add esp, 0xc
test eax, eax
je 0x40a8c8
push edi
push 3
push 0x41b458
lea eax, [ebp - 0x234]
call fcn.0040cdad
add esp, 0xc
test eax, eax
je 0x40a8c8
push esi
lea eax, [ebp - 0x264]
push eax
call fcn.004063d0
push 0x41b3ec
lea eax, [ebp - 0x264]
push eax
mov byte [ebp - 4], 2
call fcn.0040ad05
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.0040ad05
push dword [ebp - 0x264]
call fcn.0040a74f
cmp ebx, edi
pop ecx
jl 0x40a8b6
cmp eax, edi
jge 0x40a8b6
mov ebx, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
call fcn.0040328d
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40a82a
mov byte [ebp - 4], al
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40a90e
push esi
call fcn.0040c627
cmp ebx, edi
pop ecx
jl 0x40a90e
cmp eax, edi
jge 0x40a90e
mov ebx, eax
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
call fcn.0040328d
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.0040efeb
leave
ret
Function at 0x40b224
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
push edi
xor edi, edi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 8]
mov dword [ebp - 8], edi
push dword [ebx + 4]
mov dword [ebp - 0xc], edi
call esi
cmp eax, edi
jle 0x40b25a
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x40b2b0
mov eax, dword [ebp - 8]
shr eax, 1
lea eax, [eax + eax + 2]
push eax
call fcn.0040dd7a
cmp eax, edi
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x40b2a9
cmp dword [ebp - 8], edi
je 0x40b2a4
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 8]
push dword [ebx + 4]
call esi
cmp eax, edi
jle 0x40b29f
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x40b2b0
mov word [eax], di
jmp 0x40b2b0
mov dword [ebp - 4], 0x8007000e
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8

Function at 0x40b2d4
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jle 0x40b2fe
and eax, 0xffff
or eax, 0x80070000
ret 0xc

Function at 0x40b301
Capabilities:
Set registry value

Disassembly:
push 8
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 0xb
push 0
push dword [esp + 0x18]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jle 0x40b32b
and eax, 0xffff
or eax, 0x80070000
ret 0x10

Function at 0x40b32e
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push 1
push 0
push dword [esp + 0x18]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jle 0x40b364
and eax, 0xffff
or eax, 0x80070000
ret 0xc

Function at 0x40b39c
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0x18]
push 0
push dword [esp + 0x14]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jle 0x40b3c5
and eax, 0xffff
or eax, 0x80070000
ret 0x10
Function at 0x40b5b0
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x417b6f
call fcn.0040fa68
sub esp, 0x21c
mov eax, dword [0x41f278]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x218], 0x41a74c
mov dword [ebp - 0x214], edi
push 0xf003f
push dword [ebp + 8]
mov dword [ebp - 4], edi
push dword [ecx + 4]
lea esi, [ebp - 0x218]
call fcn.0040aeb5
cmp eax, edi
jne 0x40b65f
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40b617
lea eax, [ebp - 0x210]
push eax
call fcn.0040b5b0
cmp eax, edi
jne 0x40b65f
lea eax, [ebp - 0x228]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], 0x100
call esi
test eax, eax
lea ecx, [ebp - 0x218]
je 0x40b607
call fcn.0040ad57
push dword [ebp + 8]
mov eax, dword [ebp - 0x220]
call fcn.0040ad28
lea ecx, [ebp - 0x218]
mov esi, eax
mov dword [ebp - 0x218], 0x41a74c
call fcn.0040ad57
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
call fcn.0040efeb
leave
ret 4

Function at 0x40bb23
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push edi
push 0x11
pop ecx
push dword [ebp + 0x10]
xor eax, eax
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x44], 0x44
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
jne 0x40bb69
call fcn.0040442e
leave
ret
xor eax, eax
leave
ret
Function at 0x40bfb1
Capabilities:
Get common file path

Disassembly:
mov eax, 0x417e74
call fcn.0040fa68
sub esp, 0x118
mov eax, dword [0x41f278]
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], eax
push esi
mov dword [ebp - 0x11c], ebx
lea eax, [ebp - 0x11c]
push eax
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov esi, eax
cmp esi, ebx
jl 0x40c01f
mov dword [ebp - 0x124], ebx
lea eax, [ebp - 0x124]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
mov esi, eax
cmp esi, ebx
jge 0x40c03a
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x124]
cmp eax, ebx
je 0x40c01f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x11c], ebx
je 0x40c033
push dword [ebp - 0x11c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
jmp 0x40c151
push edi
push 0x42
pop ecx
lea edx, [ebp - 0x118]
push edx
xor eax, eax
push 0x8000
push dword [ebp - 0x11c]
lea edi, [ebp - 0x118]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x118], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov esi, eax
cmp esi, ebx
jge 0x40c0a0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x124]
cmp eax, ebx
je 0x40c085
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x11c], ebx
je 0x40c099
push dword [ebp - 0x11c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
jmp 0x40c150
mov dword [ebp - 0x120], ebx
lea eax, [ebp - 0x120]
push eax
mov byte [ebp - 4], 2
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRetToStrW]
mov edi, eax
cmp edi, ebx
jge 0x40c107
cmp dword [ebp - 0x120], ebx
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
je 0x40c0e0
push dword [ebp - 0x120]
call esi
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x124]
cmp eax, ebx
je 0x40c0f3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x11c], ebx
je 0x40c103
push dword [ebp - 0x11c]
call esi
mov eax, edi
jmp 0x40c150
push dword [ebp - 0x120]
push dword [ebp + 0xc]
call fcn.00406710
cmp dword [ebp - 0x120], ebx
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
je 0x40c12b
push dword [ebp - 0x120]
call esi
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x124]
cmp eax, ebx
je 0x40c13e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x11c], ebx
je 0x40c14e
push dword [ebp - 0x11c]
call esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0040efeb
leave
ret
Function at 0x40c1ab
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x41f278]
push esi
mov esi, dword [ebp + 0x1b8]
mov dword [ebp + 0x1ac], eax
call fcn.0040a935
test al, al
je 0x40c1e6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov edx, 0x104
cmp esi, edx
jb 0x40c1ed
mov eax, 0x80070057
jmp 0x40c255
and word [ebp - 0x60], 0
push edi
xor eax, eax
push edx
push dword [ebp + 0x1b8]
mov ecx, 0x82
lea edi, [ebp - 0x5e]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
and word [ebp + esi*2 - 0x5e], 0
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
and dword [ebp - 0x80], 0
and dword [ebp - 0x74], 0
lea eax, [ebp - 0x60]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x7c], 3
mov word [ebp - 0x70], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
pop edi
je 0x40c253
call fcn.0040442e
jmp 0x40c255
xor eax, eax
mov ecx, dword [ebp + 0x1ac]
pop esi
call fcn.0040efeb
add ebp, 0x1b0
leave
ret

Function at 0x40c377
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
xor edi, edi
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push edi
push 0x3e8
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.004162c0
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call esi
rdtsc
mov dword [ebp - 0x24], edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
call esi
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
inc edi
sub ecx, dword [ebp - 0x18]
sbb eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
ja 0x40c3ef
jb 0x40c3e7
cmp ecx, dword [ebp - 0x20]
jae 0x40c3ef
cmp edi, 0xc350
jl 0x40c3c8
lea eax, [ebp - 8]
push eax
call esi
rdtsc
push dword [ebp - 0xc]
sub eax, ebx
push dword [ebp - 0x10]
sbb edx, dword [ebp - 0x24]
push edx
push eax
call fcn.00415fd0
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 4]
sbb esi, dword [ebp - 0x14]
push esi
push ecx
push edx
push eax
call fcn.004162c0
pop edi
pop esi
pop ebx
leave
ret