joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403938
Capabilities:
Create service
Modify service

Disassembly:
push 0x18
mov eax, 0x41e2d2
call fcn.00411a1c
push dword [ebp + 8]
call fcn.00404818
test eax, eax
je 0x40395a
xor eax, eax
call fcn.00411abb
ret 4
mov eax, dword [0x427adc]
mov edi, 0x427adc
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040de04
cmp eax, ebx
pop ecx
jge 0x403993
mov esi, eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405ed3
mov eax, esi
jmp 0x403952
lea esi, [ebp - 0x14]
call fcn.0040df07
mov eax, dword [0x427adc]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 0x65
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 1
call fcn.0040466a
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, ebx
mov byte [ebp - 4], 2
jne 0x4039e8
call fcn.0040d8c8
mov esi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405ed3
jmp 0x403984
push ebx
mov eax, dword [ebp + 8]
push ebx
push str.RPCSS
push ebx
push ebx
push dword [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push 1
push 4
push 0x10
push 0xf01ff
push ebx
add eax, 0x40
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x18], eax
test eax, eax
mov byte [ebp - 4], 3
jne 0x403a39
call fcn.0040d8c8
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [ebx - 0x10]
call fcn.00405ed3
mov esi, edi
jmp 0x403984
mov eax, dword [0x427adc]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x4867
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 4
call fcn.0040466a
mov esi, dword [ebp - 0x10]
mov ecx, dword [esi - 8]
xor eax, eax
inc eax
sub eax, dword [esi - 4]
dec ecx
or eax, ecx
jge 0x403a7a
xor eax, eax
inc eax
lea ecx, [ebp - 0x10]
call fcn.0040815c
mov esi, dword [ebp - 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
lea eax, [ebp - 0x24]
push eax
push 1
push dword [ebp - 0x18]
mov dword [ebp - 0x24], esi
call edi
mov eax, esi
call fcn.00406699
lea edx, [ebp - 0x10]
call fcn.00406678
call fcn.0040dfb9
test al, al
je 0x403ab8
lea eax, [ebp - 0x1c]
push eax
push 3
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 1
call edi
push dword [ebp + 8]
call fcn.004041eb
mov edi, eax
lea eax, [esi - 0x10]
call fcn.00405ed3
push dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x20]
call esi
test edi, edi
jl 0x403a2a
lea eax, [ebx - 0x10]
call fcn.00405ed3
xor esi, esi
jmp 0x403984
Function at 0x403af1
Capabilities:
Delete service

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, eax
push esi
call fcn.00404818
test eax, eax
jne 0x403b07
inc eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00402b11
xor ebp, ebp
cmp eax, ebp
jl 0x403b02
push 0xf003f
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, ebp
jne 0x403b2f
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.0040d8c8
push 0x10000
add esi, 0x40
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, ebp
jne 0x403b59
call fcn.0040d8c8
mov esi, eax
push ebx
call edi
mov eax, esi
jmp 0x403b02
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x403b6b
call fcn.0040d8c8
mov ebp, eax
push esi
call edi
mov esi, ebp
jmp 0x403b52
Function at 0x4041eb
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
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 0x404212
call fcn.0040d8c8
pop edi
leave
ret 4
mov ecx, dword [ebp + 8]
push ebx
push esi
push 0xf01ff
add ecx, 0x40
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
cmp ebx, edi
jne 0x404245
call fcn.0040d8c8
mov edi, eax
push dword [ebp - 4]
call esi
pop esi
mov eax, edi
pop ebx
jmp 0x40420d
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 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
xor edi, edi
push ebx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], 0x15180
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 3
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x40429c
call fcn.0040d8c8
mov edi, eax
push ebx
call esi
jmp 0x40423a

Function at 0x405188
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 0x4051a1
xor eax, eax
jmp 0x4051c8
push ebx
lea eax, [esp + 8]
push eax
push esi
push edi
push 0x405402
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, esi
jne 0x4051c5
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop esi
pop ecx
ret

Function at 0x40536d
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x426200]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push 0xff
push 0x100
push eax
mov esi, ecx
call fcn.0040fe13
xor edi, edi
add esp, 0x14
cmp dword [esi + 0x260], edi
lea eax, [ebp - 0x204]
mov word [ebp - 6], di
mov dword [ebp - 0x208], eax
jne 0x4053c5
push eax
call fcn.0040fe31
pop ecx
add esi, 0x40
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, edi
je 0x4053f4
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
xor ecx, ebp
pop esi
call fcn.00410457
leave
ret
Function at 0x405d81
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405d98
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x405dcd
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x405dc9
cmp edi, eax
jae 0x405dcd
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x405dbb
cmp edi, eax
jb 0x405dd1
xor eax, eax
jmp 0x405ddb
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x405dde
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
push 0
push 0x421734
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405e43
cmp dword [ebp + 8], 1
je 0x405e1c
cmp dword [ebp + 8], 2
je 0x405e1c
push 0xd
pop eax
jmp 0x405e43
test edi, edi
mov eax, dword [ebp - 4]
je 0x405e3d
test eax, eax
je 0x405e39
test al, 1
jne 0x405e17
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x405e3d
jmp 0x405e17
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 4
Function at 0x406dad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x420
mov eax, 0x41ddb9
call fcn.00411a85
mov eax, dword [ebp + 0xc]
mov edi, ecx
mov ebx, edx
mov dword [ebp - 0x41c], eax
call dword [section..data]
xor esi, esi
mov dword [ebp - 0x42c], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, esi
mov dword [ebp - 0x420], eax
jne 0x406e13
call fcn.00408275
mov esi, eax
jmp 0x406f10
push dword [ebp - 0x41c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x406e31
call fcn.00408275
jmp 0x406f02
push edi
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 0x41c], eax
je 0x406e27
push edi
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x406e81
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x406e77
lea eax, [ebp - 0x418]
call fcn.00407e69
mov eax, 0x8007000e
jmp 0x406f2b
push 2
push eax
call fcn.00406f40
cmp eax, 0x400
pop ecx
pop ecx
jbe 0x406ea1
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00407e72
jmp 0x406ead
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
mov ebx, dword [ebp - 0x418]
cmp ebx, esi
jne 0x406ec5
mov esi, 0x8007000e
jmp 0x406f04
call dword [section..data]
push edi
push ebx
push edi
push dword [ebp - 0x41c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x406e27
mov ecx, dword [ebp - 0x418]
push dword [ebp + 0x10]
mov word [ecx + eax*2], si
push dword [ebp - 0x418]
lea ecx, [ebp - 0x428]
call fcn.00406f65
mov esi, eax
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x406f29
lea eax, [ebp - 0x418]
call fcn.00407e69
mov eax, esi
call fcn.00411acf
ret 0xc
Function at 0x407e1f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x407e32
push 0x80004005
call fcn.004082a5
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x407e39
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x426200]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea edx, [ebp - 0x214]
push edx
push 0x2001f
mov eax, ecx
mov ecx, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x220], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x408041
xor eax, eax
cmp dword [ebp - 0x210], esi
je 0x407f92
push dword [ebp - 0x210]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0x214]
mov edi, eax
mov dword [ebp - 0x210], ecx
jne 0x408041
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push ecx
jmp 0x408005
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
call fcn.00407f24
cmp eax, esi
mov dword [ebp - 0x214], eax
jne 0x408064
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 0x100
call edi
test eax, eax
je 0x407fca
cmp dword [ebp - 0x210], esi
je 0x40802b
push dword [ebp - 0x210]
call ebx
mov dword [ebp - 0x210], esi
push dword [ebp - 0x21c]
mov eax, dword [ebp - 0x220]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 0x210], esi
je 0x408051
push dword [ebp - 0x210]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410457
leave
ret 4
cmp dword [ebp - 0x210], esi
je 0x408074
push dword [ebp - 0x210]
call ebx
mov eax, dword [ebp - 0x214]
jmp 0x408053
Function at 0x40886c
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 0x408887
pop edi
jmp fcn.0040d8c8
push esi
push str.GOOGLEUPDATE
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4088af
call fcn.0040d8c8
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop esi
pop edi
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 4
je 0x4088c3
mov esi, 0x8000ffff
jmp 0x4088a3
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40889c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [eax], 1
jne 0x4088bc
xor esi, esi
jmp 0x4088a3
Function at 0x40b0ce
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.0041a800
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 0x40b146
jb 0x40b13e
cmp ecx, dword [ebp - 0x20]
jae 0x40b146
cmp edi, 0xc350
jl 0x40b11f
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.0041a2c0
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.0041a800
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b366
Capabilities:
Set registry value

Disassembly:
push 0x14
mov eax, 0x41e1ad
call fcn.00411a1c
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov edi, 0x80070003
call fcn.00404449
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.0040bad9
cmp eax, ebx
je 0x40b45d
mov dword [ebp - 0x20], vtable.RegKey.0
mov dword [ebp - 0x1c], ebx
push ebx
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
lea edi, [ebp - 0x20]
push eax
call fcn.0040b1d0
mov edi, eax
cmp edi, ebx
jne 0x40b44e
mov eax, dword [ebp + 0x10]
dec eax
je 0x40b431
dec eax
dec eax
je 0x40b422
dec eax
je 0x40b413
sub eax, 3
je 0x40b40b
sub eax, 4
je 0x40b3db
mov edi, 0x8007065d
jmp 0x40b440
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x14], eax
push 8
lea eax, [ebp - 0x18]
push eax
push 0xb
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
jle 0x40b43e
and eax, 0xffff
or eax, 0x80070000
jmp 0x40b43e
push dword [ebp + 0x14]
push esi
push 7
jmp 0x40b3ee
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
push 4
lea eax, [ebp - 0x14]
push eax
push 4
jmp 0x40b3ee
cmp esi, ebx
mov eax, dword [ebp + 0x14]
jne 0x40b42b
xor eax, eax
push eax
push esi
push 3
jmp 0x40b3ee
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
call fcn.0040b7cf
mov edi, eax
lea ecx, [ebp - 0x20]
call fcn.0040b1a9
cmp edi, ebx
jne 0x40b44e
mov edi, eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], vtable.RegKey.0
call fcn.0040b1a9
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405ed3
mov eax, edi
call fcn.00411abb
ret
Function at 0x40b470
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41e53e
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x426200]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
push dword [ebp + 8]
lea eax, [esp + 0x18]
push eax
mov esi, 0x80070003
call fcn.00404449
xor edi, edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], edi
call fcn.0040bad9
cmp eax, edi
je 0x40b5f2
mov dword [esp + 0x24], vtable.RegKey.0
mov dword [esp + 0x28], edi
push 0x20019
mov byte [esp + 0x3c], 1
push dword [esp + 0x18]
lea esi, [esp + 0x2c]
push eax
call fcn.0040b2d1
mov esi, eax
cmp esi, edi
jne 0x40b5e1
mov eax, dword [ebp + 0xc]
dec eax
je 0x40b5c3
dec eax
dec eax
je 0x40b5a8
dec eax
je 0x40b598
sub eax, 3
je 0x40b55b
sub eax, 4
je 0x40b522
mov esi, 0x8007065d
jmp 0x40b5d2
lea eax, [esp + 0x1c]
push eax
push dword [ebp + 0x10]
lea eax, [esp + 0x20]
push eax
push edi
push ebx
push dword [esp + 0x3c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], 8
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
cmp eax, edi
jle 0x40b5d0
and eax, 0xffff
or eax, 0x80070000
jmp 0x40b5d0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
push ebx
lea edi, [esp + 0x28]
lea ebx, [esp + 0x30]
call fcn.0040b613
test eax, eax
jl 0x40b594
push dword [esp + 0x18]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x20]
call fcn.0040b757
pop ecx
xor edi, edi
jmp 0x40b5d0
push dword [ebp + 0x10]
lea eax, [esp + 0x28]
push ebx
push eax
call fcn.0040b679
jmp 0x40b5d0
push dword [ebp + 0x14]
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], edi
mov edi, dword [ebp + 0x10]
push ebx
lea ebx, [esp + 0x30]
call fcn.0040b613
jmp 0x40b594
push dword [ebp + 0x10]
push ebx
lea ebx, [esp + 0x2c]
call fcn.0040b6b7
mov esi, eax
lea ecx, [esp + 0x24]
call fcn.0040b1a9
cmp esi, edi
jne 0x40b5e1
mov esi, eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], vtable.RegKey.0
call fcn.0040b1a9
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.00405ed3
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b6b7
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 0x40b6ed
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x40b74e
mov eax, dword [ebp - 8]
shr eax, 1
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040f5f0
cmp eax, edi
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x40b747
cmp dword [ebp - 8], edi
je 0x40b742
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 0x40b73d
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x40b74e
mov word [eax], di
jmp 0x40b74e
mov dword [ebp - 4], 0x8007000e
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8

Function at 0x40b7cf
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 0x40b805
and eax, 0xffff
or eax, 0x80070000
ret 0xc

Function at 0x40c3e2
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
call fcn.0040c381
test al, al
pop ecx
je 0x40c413
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x40c403
xor eax, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40c413
jmp fcn.0040d8c8
xor eax, eax
ret

Function at 0x40c416
Capabilities:
Copy file

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40c42f
jmp fcn.0040d8c8
xor eax, eax
ret
Function at 0x40c432
Capabilities:
Move file

Disassembly:
push 0x14
mov eax, 0x41e03c
call fcn.00411a1c
push dword [ebp + 8]
call fcn.0040c381
test al, al
pop ecx
je 0x40c55c
mov eax, dword [0x427adc]
mov ecx, 0x427adc
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
call fcn.0040eea4
mov eax, dword [eax]
push 1
push eax
mov eax, dword [ebp + 8]
call fcn.0040eb98
mov bl, al
mov eax, dword [ebp - 0x18]
add esp, 0xc
neg bl
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.00405ed3
test bl, bl
je 0x40c546
lea eax, [ebp - 0x1c]
push eax
call fcn.0040eea4
mov byte [ebp - 4], 1
push dword [eax]
lea esi, [ebp - 0x18]
call fcn.0040eb0b
pop ecx
pop ecx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405ed3
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00404449
lea eax, [ebp - 0x10]
push eax
lea edi, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.0040de9e
pop ecx
mov esi, eax
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push dword [esi]
lea eax, [ebp - 0x14]
push dword [ebp - 0x18]
push str._s_s_x
call fcn.004054ff
mov eax, dword [ebp - 0x20]
add esp, 0x10
add eax, 0xfffffff0
call fcn.00405ed3
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405ed3
mov esi, dword [ebp - 0x14]
push 0xb
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40c533
call fcn.0040d8c8
mov edi, eax
jmp 0x40c535
xor edi, edi
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405ed3
test edi, edi
mov edi, esi
jge 0x40c549
mov edi, dword [ebp + 8]
call fcn.0040c564
mov edi, eax
lea eax, [esi - 0x10]
call fcn.00405ed3
mov eax, edi
jmp 0x40c55e
xor eax, eax
call fcn.00411abb
ret

Function at 0x40c677
Capabilities:
Write file on windows

Disassembly:
push 8
mov eax, 0x41d95b
call fcn.00411a1c
mov esi, ecx
and dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40c6be
call fcn.0040d8c8
or dword [ebp - 4], 0xffffffff
push 0
mov esi, eax
call fcn.00410693
pop ecx
mov eax, esi
call fcn.00411abb
ret 8
test edi, edi
mov eax, dword [ebp - 0x10]
je 0x40c6c7
mov dword [edi], eax
add dword [esi + 0xc], eax
sub eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0x80004005
jmp 0x40c6a6