joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403915
Capabilities:
Change the wallpaper

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 0x4c1724
call edi
call fcn.0043cde7
lea ecx, [ebp - 8]
call fcn.0040e158
xor ebx, ebx
test byte [ebp + 0xc], 1
je 0x403946
mov byte [0x4c0c6c], bl
xor esi, esi
inc esi
cmp byte [0x4c0c6c], bl
mov dword [ebp - 4], ebx
je 0x403982
push 3
push dword [ebp + 8]
push ebx
push 0x14
call dword [sym.imp.USER32.DLL_SystemParametersInfoW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x403982
mov eax, dword [fcn.004c1350]
cmp eax, ebx
je 0x40397b
cmp dword [ebp - 8], ebx
jne 0x40397b
call eax
xor esi, esi
jmp 0x403b13
push 0x4c1724
call edi
call fcn.0043cde7
lea ecx, [ebp + 0xc]
call fcn.0040e158
lea eax, [ebp - 4]
push eax
push 0x4b30b8
push 1
push ebx
push 0x4b30c8
call dword [0x4c1354]
mov edi, eax
cmp edi, ebx
jge 0x4039c5
push ebx
push ebx
push edi
push 0x4a6e18
mov ecx, 0x4c0fb8
call fcn.0041b06a
cmp edi, ebx
mov byte [0x4c0c6c], 0xff
jl 0x403a95
xor eax, eax
mov dword [ebp - 0x1c], 0xc
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
inc eax
push ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [ecx + 0x2c]
cmp eax, ebx
mov esi, 0x4c0fb8
jge 0x403a0e
push ebx
push ebx
push eax
push 0x4a6dd0
mov ecx, esi
call fcn.0041b06a
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push dword [ebp + 8]
push eax
call dword [ecx + 0x14]
cmp eax, ebx
jge 0x403a2e
push ebx
push ebx
push eax
push 0x4a6d94
mov ecx, esi
call fcn.0041b06a
xor eax, eax
push ebx
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
or dword [ebp - 0xc], 2
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x10], 8
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp eax, ebx
jge 0x403a60
push ebx
push ebx
push eax
push 0x4a6d50
mov ecx, esi
call fcn.0041b06a
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 7
push eax
mov byte [0x4c0c6c], 1
call dword [ecx + 0xc]
mov esi, eax
cmp esi, ebx
jge 0x403a8c
push ebx
push ebx
push esi
push 0x4a6d18
mov ecx, 0x4c0fb8
call fcn.0041b06a
jmp 0x403a95
xor esi, esi
mov byte [0x4c0c6c], 2
mov eax, dword [fcn.004c1350]
cmp eax, ebx
je 0x403aa5
cmp dword [ebp + 0xc], ebx
jne 0x403aa5
call eax
push 0x4c1724
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x403abd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, ebx
je 0x403b03
push 3
push dword [ebp + 8]
push ebx
push 0x14
call dword [sym.imp.USER32.DLL_SystemParametersInfoW]
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp edi, ebx
je 0x403adf
xor esi, esi
jmp 0x403aed
cmp dword [ebp - 4], ebx
jne 0x403af1
cmp eax, ebx
mov esi, eax
jne 0x403aed
xor esi, esi
inc esi
cmp edi, ebx
jne 0x403b03
push ebx
push ebx
push eax
push 0x4a6cd0
mov ecx, 0x4c0fb8
call fcn.0041b06a
mov eax, dword [fcn.004c1350]
cmp eax, ebx
je 0x403b13
cmp dword [ebp - 8], ebx
jne 0x403b13
call eax
push 0x4c1724
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x403c74
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
and word [ebp - 0x44], 0
push 0x20
lea eax, [ebp - 0x44]
push eax
push 0x4a6ec4
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
cmp word [ebp - 0x44], 0
jne 0x403caa
push 0x20
lea eax, [ebp - 0x44]
push eax
push 0xb
push 0x800
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
cmp word [ebp - 0x44], 0
lea eax, [ebp - 0x44]
jne 0x403cb9
mov eax, 0x4a6ebc
push eax
mov ecx, 0x4c0c34
call fcn.0044655b
push dword [0x4c0c34]
call fcn.0043e91d
cmp eax, 1
pop ecx
jle 0x403cdb
mov word [0x4c4010], ax
leave
ret

Function at 0x403dfc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [sym.imp.USER32.DLL_GetLastInputInfo]
lea eax, [ebp - 8]
xor ebx, ebx
push eax
mov dword [ebp - 8], 8
mov dword [ebp - 4], ebx
call edi
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [0x4c0bf0]
test ecx, ecx
jle 0x403e2f
mov dword [0x4c0bf0], eax
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
mov dword [0x4c0bf0], eax
jmp 0x403e67
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], ebx
call edi
call esi
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jb 0x403e5f
sub eax, dword [0x4c0bf0]
cmp eax, dword [ebp + 8]
jae 0x403e6f
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp byte [0x4bf2c0], bl
jg 0x403e3f
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [0x4c0bf0]
pop esi
test ecx, ecx
jle 0x403e84
mov dword [0x4c0bf0], eax
xor eax, eax
cmp byte [0x4bf2c0], bl
pop edi
setg al
pop ebx
leave
ret

Function at 0x404059
Capabilities:
Terminate process

Disassembly:
cmp byte [0x4bf2c0], 2
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x14
pop esi
je 0x404070
push esi
call edi
cmp dword [0x4c0c00], 0
je 0x40408b
push 0x1e
pop esi
jmp 0x40408b
cmp dword [0x4c0bf4], 0
je 0x40408e
push 0xa
call edi
dec esi
jns 0x40407e
mov eax, dword [0x4c0bf4]
test eax, eax
pop edi
pop esi
je 0x4040ac
push 0
push eax
mov dword [0x4c0bf4], 0
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov byte [0x4bf2c0], 0xff
ret
Function at 0x4040b4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push dword [ebp + 0xc]
mov esi, 0x8000004
push 0x64
push ebx
push esi
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov edi, eax
cmp edi, ebx
mov byte [ebp - 1], 1
je 0x4040f5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x404106
mov byte [ebp - 1], bl
jmp 0x404106
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingA]
mov edi, eax
cmp edi, ebx
je 0x404142
push ebx
push ebx
push ebx
push 6
push edi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
push edi
mov dword [0x4c0c08], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [0x4c0c08]
cmp eax, ebx
je 0x404142
cmp byte [ebp - 1], bl
je 0x40413d
push 0x64
push ebx
push eax
call fcn.00492e00
mov eax, dword [0x4c0c08]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40556e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
jne 0x40558a
lea ebx, [ebp - 0x14]
cmp dword [ebp + 0xc], edi
mov esi, dword [ebp + 0xc]
jne 0x4055a8
cmp dword [ebp + 8], edi
lea esi, [ebp - 0x10]
je 0x405733
push dword [ebx]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push 0x26c
mov ecx, ebx
call fcn.0043ddc3
push esi
call fcn.004037b6
mov edi, eax
lea eax, [edi + 1]
push eax
push dword [esi]
mov dword [ebp - 0x18], edi
push dword [ebx]
call fcn.0040515a
add esp, 0x10
push 0
call dword [sym.imp.KERNEL32.DLL_SetLastError]
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xc7
jmp 0x4055eb
mov edi, dword [ebp - 0x18]
cmp dword [ebp + 8], 0
je 0x405696
mov eax, dword [ebx]
lea eax, [eax + edi*2]
push 0x4a71c4
mov dword [ebp - 0x1c], eax
call fcn.0043a2d5
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
add edi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
push dword [ebp + 0x14]
push 0x4a7198
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.DLL_wsprintfW]
mov eax, dword [ebx]
add esp, 0x18
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x405655
push edi
push edi
push 5
mov ecx, 0x4c0fb8
call fcn.00413b53
dec dword [ebp - 8]
jns 0x4055e8
jmp 0x40570f
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0xc], 1
je 0x405733
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
lea eax, [edi + 1]
push eax
push dword [ebx]
mov dword [ebp + 8], eax
push dword [esi]
call fcn.0040515a
mov eax, dword [esi]
mov word [eax + edi*2], 0x5c
mov eax, dword [ebp + 8]
mov ecx, dword [esi]
add esp, 0xc
and word [ecx + eax*2], 0
jmp 0x405698
mov eax, edi
and dword [ebp + 8], 0
add eax, eax
mov dword [ebp + 0xc], eax
push dword [ebp + 0x18]
mov edi, dword [esi]
push dword [ebp + 8]
add edi, dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
push dword [ebp + 0x14]
push 0x4a716c
push edi
call dword [sym.imp.USER32.DLL_wsprintfW]
mov eax, dword [esi]
add esp, 0x18
xor edi, edi
push edi
push 0x80
push 1
push edi
push edi
push 0x40000000
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
call fcn.004051d2
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x40570a
push edi
push edi
push 5
mov ecx, 0x4c0fb8
call fcn.00413b53
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xc8
jl 0x4056a1
mov eax, dword [esi]
and word [eax], di
cmp dword [ebp - 0xc], edi
jne 0x405714
mov eax, dword [ebx]
mov word [eax], di
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x405722
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
jmp 0x405730
cmp dword [ebp - 4], edi
je 0x405730
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.00437e1a
lea ecx, [ebp - 0x14]
call fcn.00437e1a
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40574a
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
push 0x4a725c
xor ebx, ebx
push ebx
call fcn.004040b4
pop ecx
pop ecx
call fcn.00403c74
mov byte [0x4c0be6], 1
call fcn.00433127
call fcn.00439bf8
push ebx
push 0x24
pop edi
push edi
lea eax, [ebp - 0x12c]
push eax
push ebx
mov byte [ebp - 0x12c], bl
call dword [sym.imp.SHELL32.DLL_SHGetSpecialFolderPathA]
push 0x4a7244
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x4a7230
push eax
mov dword [ebp - 4], eax
call esi
push 7
pop ecx
mov dword [ebp - 0x28], edi
push 0x4a721c
push dword [ebp - 4]
mov dword [0x4c0b9c], eax
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
call esi
cmp eax, ebx
je 0x4057ed
lea ecx, [ebp - 0x28]
push ecx
call eax
cmp word [ebp - 0x28], bx
je 0x40582a
push 0x4a71fc
push dword [ebp - 4]
call esi
push 0x4a71dc
push dword [ebp - 4]
mov dword [0x4c0be0], eax
call esi
cmp dword [0x4c0be0], ebx
mov dword [0x4c0bdc], eax
jne 0x40581f
mov dword [0x4c0bdc], ebx
mov bl, 1
mov word [0x4c0bc8], 0x100
movsx eax, bl
push 0x4a71d0
push eax
push 0x4c0fb8
mov byte [0x4c0be5], bl
call fcn.00440266
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40584b
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov dword [ebp - 8], eax
lea ecx, [eax + 8]
push ebx
mov bx, word [eax]
mov dword [ebp - 8], ecx
mov ax, word [ecx]
call fcn.00437e2d
test al, al
jne 0x40586f
inc ecx
inc ecx
mov dword [ebp - 8], ecx
push 0x63
lea eax, [ebp - 0x78]
push eax
push 0x4a6efc
mov byte [ebp - 0x78], 0
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
cmp byte [ebp - 0x78], 0x31
jne 0x405891
mov byte [0x4c0bec], 1
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push dword [ebp - 8]
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x14]
mov dword [0x4c0bf0], eax
call fcn.00446497
lea ecx, [ebp - 0xc]
call fcn.0043dd7e
push 1
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
mov ecx, 0x4c0fb8
call fcn.0044bafc
push dword [ebp - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0044655b
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], eax
call fcn.00437e1a
lea ecx, [ebp - 0x14]
call fcn.00437e1a
mov ecx, dword [ebp - 8]
call fcn.00403e93
push 0x4a72ac
mov edi, eax
push 0xf
pop esi
mov dword [ebp - 8], edi
call fcn.00402bef
test al, al
pop ecx
pop edi
pop esi
je 0x405932
push 0x1e
push 0x4a728c
push dword [ebp - 8]
mov byte [ebp - 1], 0x49
call fcn.004128b6
mov ecx, dword [ebp - 8]
add esp, 0xc
add ecx, 0x1e
call fcn.00403e93
mov dword [ebp - 8], eax
jmp 0x40594d
push 8
lea eax, [ebp - 8]
push eax
push 0x4a7280
call fcn.0043fbfd
add esp, 0xc
test al, al
je 0x4059ac
mov byte [ebp - 1], 0x53
cmp bx, 0x22
jne 0x405987
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edx, dword [ebp - 8]
lea ecx, [edx + eax*2 - 2]
cmp ecx, edx
jbe 0x405987
mov ax, word [ecx]
call fcn.00437e2d
test al, al
je 0x405979
dec ecx
dec ecx
cmp ecx, edx
ja 0x405967
cmp ecx, edx
jbe 0x405987
cmp word [ecx], 0x22
jne 0x405987
and word [ecx], 0
sub dword [ebp - 8], 2
movsx ax, byte [ebp - 1]
mov ecx, dword [ebp - 8]
mov word [ecx], ax
sub dword [ebp - 8], 2
mov eax, dword [ebp - 8]
mov word [eax], 0x7e
push dword [ebp - 8]
call fcn.0040e127
jmp 0x4059cc
push 0xe
lea eax, [ebp - 8]
push eax
push 0x4a7270
call fcn.0043fbfd
add esp, 0xc
test al, al
pop ebx
je 0x4059d5
push dword [ebp - 8]
call fcn.00405c68
pop ecx
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
lea ecx, [ebp - 0x10]
call fcn.00437e1a
xor eax, eax
leave
ret
Function at 0x405a6d
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov dword [0x4c0bf8], eax
cmp word [eax], 0x7e
push edi
mov dword [ebp - 0x14], 0x100
mov byte [ebp - 1], bl
jne 0x405aa7
inc eax
inc eax
mov dword [0x4c0bf8], eax
cmp word [eax], 0x49
sete byte [ebp - 1]
inc eax
inc eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp + 8]
push eax
call fcn.00405172
pop ecx
mov ecx, dword [ebp + 8]
mov esi, ecx
sub esi, dword [ebp - 0x10]
mov eax, 0x400
sar esi, 1
cmp esi, eax
jle 0x405ac9
mov esi, eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], ecx
call fcn.00437e65
push 6
push dword [ebp - 0xc]
push 0x4a72f0
call fcn.00439124
mov edi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
add esp, 0x10
test al, al
je 0x405b1e
mov eax, dword [ebp - 0xc]
add eax, 0xc
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x14], ebx
call fcn.00437e65
pop ecx
push dword [ebp + 8]
call edi
inc eax
add eax, eax
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.0041286c
add esp, 0xc
add esi, esi
push esi
push dword [ebp - 0x10]
lea eax, [ebp - 0x828]
push eax
call fcn.004128b6
add esp, 0xc
push dword [ebp - 0x10]
mov word [ebp + esi - 0x828], bx
mov byte [0x4c4003], bl
call edi
mov esi, eax
inc esi
lea eax, [esi + 0x226]
push eax
lea ecx, [ebp - 8]
call fcn.0043dd9c
mov eax, dword [ebp - 8]
push 0x1cc
add eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
mov ecx, eax
cmp ecx, ebx
jle 0x405c5b
mov eax, dword [ebp - 8]
mov word [eax + ecx*2 + 2], bx
mov eax, dword [ebp - 8]
lea edi, [eax + ecx*2 + 2]
mov dword [ebp + 8], edi
lea edx, [eax + 2]
xor edi, edi
mov word [eax], 0x22
jmp 0x405ba4
mov ax, word [edx]
call fcn.00437e2d
test al, al
je 0x405ba2
xor edi, edi
inc edi
inc edx
inc edx
cmp edx, dword [ebp + 8]
jb 0x405b93
cmp di, bx
mov edx, dword [ebp - 8]
lea eax, [edx + 2]
mov dword [ebp + 8], eax
je 0x405bc5
dec eax
dec eax
mov word [edx + ecx*2 + 2], 0x22
inc ecx
mov dword [ebp + 8], eax
inc ecx
push 0x1e
lea edi, [eax + ecx*2]
push 0x4a72d0
push edi
call fcn.004128b6
push esi
push dword [ebp - 0x10]
add edi, 0x1e
push edi
call fcn.0040515a
add esp, 0x18
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.DLL_OpenSCManagerW]
mov esi, dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov edi, eax
cmp edi, ebx
je 0x405c58
mov eax, dword [ebp - 0x14]
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
or eax, 0x10
push ebx
push 2
push eax
push 0xf01ff
lea eax, [ebp - 0x828]
push eax
push eax
push edi
call dword [sym.imp.ADVAPI32.DLL_CreateServiceW]
cmp eax, ebx
je 0x405c58
cmp byte [ebp - 1], bl
je 0x405c58
push eax
call esi
push 0x20000000
lea eax, [ebp - 0x828]
push eax
push edi
call dword [sym.imp.ADVAPI32.DLL_OpenServiceW]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x405c58
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.DLL_StartServiceW]
push dword [ebp + 8]
call esi
push edi
call esi
lea ecx, [ebp - 8]
call fcn.00437e1a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405c68
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edx, esi
xor ebx, ebx
jmp 0x405c8a
call fcn.00437e2d
test al, al
jne 0x405c92
inc esi
inc esi
mov ax, word [esi]
cmp ax, bx
jne 0x405c7f
mov eax, esi
sub eax, edx
sar eax, 1
mov ecx, 0x400
cmp eax, ecx
jle 0x405ca3
mov eax, ecx
lea edi, [eax + eax]
push edi
push edx
lea eax, [ebp - 0x824]
push eax
call fcn.004128b6
add esp, 0xc
mov word [ebp + edi - 0x824], bx
jmp 0x405cc3
inc esi
inc esi
mov ax, word [esi]
call fcn.00437e2d
test al, al
jne 0x405cc1
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.DLL_OpenSCManagerW]
cmp eax, ebx
mov ebx, dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov dword [ebp - 4], eax
je 0x405d31
push 0x10020
lea ecx, [ebp - 0x824]
push ecx
push eax
call dword [sym.imp.ADVAPI32.DLL_OpenServiceW]
test eax, eax
mov dword [ebp + 8], eax
je 0x405d31
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.DLL_ControlService]
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
mov edi, 0xc8
push edi
call esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.DLL_DeleteService]
push dword [ebp + 8]
call ebx
push edi
call esi
jmp 0x405d37
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 4]
call ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405e27
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7f8
push ebx
push esi
push edi
mov esi, 0x4a72f8
lea edi, [ebp - 0x7f8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
mov ecx, 0x1f9
lea edi, [ebp - 0x7e6]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
call fcn.00403e93
mov edx, eax
mov ecx, edx
call fcn.00403f5a
mov esi, eax
sub esi, edx
sar esi, 1
mov eax, 0x3e8
cmp esi, eax
jl 0x405e75
mov esi, eax
push esi
push edx
lea eax, [ebp - 0x7e8]
push eax
call fcn.0040515a
add esp, 0xc
lea eax, [ebp - 0x7f8]
push eax
push 0x64
xor edi, edi
push edi
push 0x8000004
push edi
push 0xffffffffffffffff
mov word [ebp + esi*2 - 0x7e8], di
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
mov ebx, eax
cmp ebx, edi
je 0x405eea
push edi
push edi
push edi
push 6
push ebx
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp esi, edi
je 0x405eea
push 0x64
push edi
push esi
call fcn.00403ea6
mov dword [esi], 0xffffffff
mov dword [esi + 8], edi
lea eax, [esi + 4]
add esp, 0xc
mov dword [0x4bf0f4], eax
mov dword [0x4c0c00], esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40764f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
push 0x169
lea ecx, [ebp - 0x18]
call fcn.0043dd9c
mov eax, dword [ebp - 0x18]
push 0x104
push dword [ebp + 8]
add eax, 0xc8
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.DLL_lstrcpynW]
xor esi, esi
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x20], esi
je 0x407695
cmp dword [ebp + 0xc], 0xffffffff
mov dword [ebp - 4], 1
jne 0x407698
mov dword [ebp - 4], esi
push ebx
mov ebx, dword [ebp + 0x10]
cmp ebx, esi
je 0x4076ae
push 0x64
mov ecx, ebx
call fcn.0043ddc3
mov eax, dword [ebx]
mov word [eax], si
cmp dword [ebp - 4], esi
je 0x4076c5
mov ecx, dword [ebp + 0xc]
push 0x64
call fcn.0043ddc3
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov word [eax], si
push 0x4c1b94
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], esi
call fcn.00403cdd
pop ecx
mov byte [ebp - 0x24], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 8], esi
call sub.VERSION.DLL_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
je 0x4077d3
push edi
push 2
mov dword [ebp - 0x1c], esi
mov dword [ebp + 0x10], esi
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov esi, eax
push esi
push edi
push dword [ebp - 8]
push dword [ebp - 0xc]
call sub.VERSION.DLL_GetFileVersionInfoW
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x10]
push eax
push 0x4a754c
push esi
call sub.VERSION.DLL_VerQueryValueW
test ebx, ebx
mov esi, dword [sym.imp.USER32.DLL_wsprintfW]
mov edi, 0x4a7534
je 0x407770
mov eax, dword [ebp + 0x10]
mov dx, word [eax + 0x10]
mov cx, word [eax + 0x12]
mov word [ebp - 0xe], dx
mov dx, word [eax + 0x16]
movzx eax, word [eax + 0x14]
push eax
movzx eax, dx
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, cx
push eax
push edi
push dword [ebx]
call esi
add esp, 0x18
cmp dword [ebp - 4], 0
je 0x4077a1
mov eax, dword [ebp + 0x10]
mov cx, word [eax + 0xa]
mov dx, word [eax + 8]
mov bx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
push eax
movzx eax, bx
push eax
movzx eax, dx
push eax
movzx eax, cx
push eax
mov eax, dword [ebp + 0xc]
push edi
push dword [eax]
call esi
add esp, 0x18
mov eax, dword [ebp + 0x10]
xor edi, edi
xor ecx, ecx
cmp dword [ebp + 0xc], edi
jne 0x4077b5
mov esi, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
jmp 0x4077bb
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
push dword [ebp - 0x14]
or edi, eax
or esi, ecx
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
jmp 0x4077d6
mov edi, dword [ebp - 0x20]
cmp byte [ebp - 0x24], 0
pop ebx
je 0x4077e6
push dword [ebp - 0x28]
call fcn.00403cee
pop ecx
push 0x4c1b94
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
lea ecx, [ebp - 0x18]
call fcn.00437e1a
mov eax, edi
pop edi
mov edx, esi
pop esi
leave
ret
Function at 0x40847c
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, eax
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push dword [esi]
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [0x4c0bf4], 0
call ebx
and dword [esi], 0
test edi, edi
je 0x4084bb
mov eax, dword [edi]
test eax, eax
je 0x4084bb
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateJobObject]
push dword [edi]
call ebx
and dword [edi], 0
cmp byte [esp + 0x10], 0
je 0x4084d3
push 1
push 0
push 0x4a75c0
call fcn.004059e1
add esp, 0xc
push dword [0x4c0c68]
call fcn.00403fd8
cmp byte [esp + 0x10], 0
pop ecx
je 0x4084ff
push 3
pop esi
push 0
call dword [sym.imp.ADVAPI32.DLL_AbortSystemShutdownW]
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
dec esi
jne 0x4084e9
pop esi
pop ebx
ret