joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46cae2
Capabilities:
Parse credit card information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x477008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
xor ecx, ecx
push edi
mov edi, edx
mov dword [ebp - 8], ecx
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 8], ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x14]
mov dword [edi + 4], eax
mov eax, dword [ebx + 0x1c]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ecx
mov eax, dword [ebx + 0x10]
cmp dword [ebx + 0x14], eax
jb 0x46cb35
mov dword [edi + 4], eax
xor eax, eax
mov dword [edi], 3
jmp 0x46cc00
push esi
mov esi, dword [ebx + 0x18]
mov ecx, esi
call dword [0x47a4c4]
mov ecx, dword [ebp - 0xc]
jmp 0x46cbea
cmp ecx, 0x61
jb 0x46cb53
cmp ecx, 0x7a
jbe 0x46cbd0
lea eax, [ecx - 0x41]
cmp eax, 0x19
jbe 0x46cbd0
lea eax, [ecx - 0x30]
cmp eax, 9
jbe 0x46cbd0
cmp ecx, 0x2f
ja 0x46cb99
cmp ecx, 0x28
jae 0x46cbd6
cmp ecx, 0xa
je 0x46cbd6
cmp ecx, 0xd
je 0x46cbd6
cmp ecx, 0x1f
jbe 0x46cbb7
cmp ecx, 0x21
jbe 0x46cbd6
cmp ecx, 0x22
jbe 0x46cbb7
cmp ecx, 0x25
jbe 0x46cbd6
cmp ecx, 0x27
jne 0x46cbb7
cmp dword [ebx + 0x24], 0xa
sete al
jmp 0x46cbd2
cmp ecx, 0x3a
jb 0x46cbb7
cmp ecx, 0x3b
jbe 0x46cbd6
cmp ecx, 0x3d
je 0x46cbd6
cmp ecx, 0x3e
jbe 0x46cbb7
cmp ecx, 0x40
jbe 0x46cbd6
cmp ecx, 0x5f
je 0x46cbd6
mov eax, dword [ebp - 0xc]
mov dword [edi], 0xc
sub eax, dword [ebx + 0x14]
mov dword [edi + 8], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x10], eax
xor eax, eax
jmp 0x46cbff
mov al, 1
test al, al
je 0x46cbb7
mov esi, dword [ebx + 0x18]
mov ecx, esi
inc dword [ebp - 8]
mov dword [ebp - 0xc], edx
call dword [0x47a4c4]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call esi
mov ecx, eax
mov dword [ebp - 0x14], edx
cmp ecx, 0xffffffff
jne 0x46cb49
mov eax, edx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00456cf0
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
lea eax, [ebp - 0x200]
push 0x100
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x200]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_wcsrchr]
pop ecx
test eax, eax
pop ecx
je 0x401037
and word [eax + 2], 0
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x401086
lea eax, [ebp - 0x400]
push 0x424040
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 0x10
lea eax, [ebp - 0x400]
push eax
push 3
call fcn.0040148c
pop ecx
or eax, 0xffffffff
pop ecx
leave
ret
xor eax, eax
leave
ret

Function at 0x4011f5
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push esi
call fcn.00401239
cmp eax, 0xffffffff
pop ecx
je 0x40121e
cmp eax, 0x100000
jl 0x401225
push esi
call dword [sym.imp.MSVCRT.dll__wremove]
cmp eax, 0xffffffff
pop ecx
jne 0x40121e
or eax, eax
pop esi
ret
push 0x42408c
jmp 0x40122a
push 0x424084
push esi
push dword [esp + 0x10]
call fcn.00412b77
add esp, 0xc
pop esi
ret
Function at 0x401263
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f5f8
push 0x41c160
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x224], bx
mov edx, 0x81
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x222]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x42c], bx
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x42a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push 0x23
lea eax, [ebp - 0x42c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4013db
push 0x4240e4
push 0x4240d0
lea eax, [ebp - 0x42c]
push eax
push 0x4240bc
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x14
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401322
lea eax, [ebp - 0x224]
push eax
call fcn.004031c5
pop ecx
test eax, eax
je 0x4013db
push 0x4240b8
mov esi, 0x104
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.00412a5e
push 0x428044
mov edi, 0x427e20
push edi
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 0x14
test eax, eax
jne 0x401358
push 0x4240a8
jmp 0x401359
push edi
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.00412a5e
add esp, 0xc
lea eax, [ebp - 0x224]
test eax, eax
je 0x4013db
push 0x427e08
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004011f5
pop ecx
pop ecx
test eax, eax
jne 0x40145e
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_wcslen]
mov esi, eax
mov dword [ebp - 0x438], esi
lea ebx, [esi + esi + 6]
mov dword [ebp - 0x430], ebx
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 0xc
mov edi, eax
mov dword [ebp - 0x434], edi
test edi, edi
jne 0x4013ed
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
pop ecx
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp + 8]
shr ebx, 1
push ebx
push edi
call fcn.004129a4
add esp, 0xc
cmp word [edi + esi*2 - 2], 0xa
jne 0x40140b
dec esi
mov dword [ebp - 0x438], esi
mov word [edi + esi*2], 0xd
inc esi
mov dword [ebp - 0x438], esi
mov word [edi + esi*2], 0xa
inc esi
mov dword [ebp - 0x438], esi
and word [edi + esi*2], 0
inc esi
mov dword [ebp - 0x438], esi
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.MSVCRT.dll_fputws]
pop ecx
pop ecx
test eax, eax
jge 0x40144d
push 0x424094
call dword [sym.imp.MSVCRT.dll_perror]
pop ecx
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
and dword [ebp - 0x434], 0
xor ebx, ebx
cmp dword [ebp - 0x1c], ebx
je 0x401470
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov dword [ebp - 0x1c], ebx
or dword [ebp - 4], 0xffffffff
call fcn.00401480
xor eax, eax
jmp 0x4013de
Function at 0x401916
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x654
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x401ace
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push eax
push 0x20019
mov esi, 0x4244e8
push edi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
cmp eax, edi
je 0x401964
push eax
push esi
push 0x4244ac
push 3
call fcn.0040148c
add esp, 0x10
jmp 0x401ace
mov dword [ebp - 0xc], edi
mov edi, 0x100
xor eax, eax
mov dword [ebp - 8], 0x20
push eax
push eax
push eax
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x401ac5
test eax, eax
je 0x4019b5
push eax
push dword [ebp - 0xc]
push esi
push 0x42445c
push 3
call fcn.0040148c
add esp, 0x14
jmp 0x401a99
lea eax, [ebp - 0x54]
push eax
push esi
push 0x424450
lea eax, [ebp - 0x254]
push edi
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x20019
lea eax, [ebp - 0x254]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
je 0x401a09
push eax
lea eax, [ebp - 0x254]
push eax
push 0x424410
push 3
call fcn.0040148c
add esp, 0x10
jmp 0x401a99
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4243f8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401a90
cmp dword [ebp - 0x10], 1
jne 0x401a90
lea eax, [ebp - 0x454]
push 0x4243ec
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
jne 0x401a90
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0x654]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4243c8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401a79
cmp dword [ebp - 0x10], 1
je 0x401aa1
push eax
lea eax, [ebp - 0x254]
push eax
push 0x424374
push 3
call fcn.0040148c
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0xc]
jmp 0x40196c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x654]
push eax
mov eax, dword [ebp + 0xc]
dec eax
push eax
push dword [ebp + 8]
call fcn.004129a4
add esp, 0xc
xor eax, eax
jmp 0x401ad1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402ee1
Capabilities:
Check os version
Identify system language via api
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c0
push ebx
lea eax, [ebp - 0x120]
push edi
push eax
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0xc], 0x50
mov dword [ebp - 0x120], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x402f28
push 0x425040
push 3
call fcn.0040148c
pop ecx
xor ax, ax
pop ecx
jmp 0x402ff1
mov eax, dword [ebp - 0x110]
dec eax
je 0x402f74
dec eax
jne 0x402fe6
cmp dword [ebp - 0x11c], 5
jb 0x402f4e
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ebx, eax
jmp 0x402fe1
call fcn.00402e57
mov ebx, eax
cmp bx, 0x409
jne 0x402fe1
call fcn.00402eaa
test eax, eax
je 0x402fee
mov ebx, 0xc04
jmp 0x402fe1
lea eax, [ebp - 4]
push eax
push 1
push edi
push 0x424fe4
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402fe6
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 8]
push edi
push eax
push edi
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402fd7
cmp dword [ebp - 8], 1
jne 0x402fd7
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c0]
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402fd7
lea eax, [ebp - 0x1c0]
push eax
call dword [sym.imp.MSVCRT.dll__wtoi]
pop ecx
mov ebx, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
cmp bx, di
jne 0x402fee
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ebx, eax
mov ax, bx
pop edi
pop ebx
leave
ret

Function at 0x402ff5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d8
push ebx
push esi
lea eax, [ebp - 0x4d8]
push edi
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4030fd
push 0x4240b8
lea eax, [ebp - 0x4d8]
push esi
push eax
call fcn.00412a5e
lea eax, [ebp - 0x4d8]
push eax
lea eax, [ebp - 0x2d0]
push esi
push eax
call fcn.004129a4
movzx edi, word [ebp + 8]
push 0xa
lea eax, [ebp - 0xc8]
push 0x64
push eax
push edi
call fcn.00412b18
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x2d0]
push esi
push eax
call fcn.00412a5e
push 0x4250fc
lea eax, [ebp - 0x2d0]
push esi
push eax
call fcn.00412a5e
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add esp, 0x40
lea eax, [ebp - 0x2d0]
push eax
call ebx
test eax, eax
jne 0x40310d
lea eax, [ebp - 0x4d8]
push eax
lea eax, [ebp - 0x2d0]
push esi
push eax
call fcn.004129a4
push 0xa
lea eax, [ebp - 0xc8]
push 0x64
and edi, 0x3ff
push eax
push edi
call fcn.00412b18
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x2d0]
push esi
push eax
call fcn.00412a5e
push 0x4250fc
lea eax, [ebp - 0x2d0]
push esi
push eax
call fcn.00412a5e
add esp, 0x34
lea eax, [ebp - 0x2d0]
push eax
call ebx
test eax, eax
jne 0x40310d
push 0x4250b4
push 3
jmp 0x403104
push 0x425078
push 6
call fcn.0040148c
pop ecx
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403112
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push 0x114
lea eax, [ebp - 0x114]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x403163
cmp dword [ebp - 0x104], 2
jne 0x403163
cmp dword [ebp - 0x110], 6
jb 0x403163
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x4031c5
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push 0x104
push eax
xor edi, edi
call fcn.004129a4
lea eax, [ebp - 0x208]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_wcsrchr]
and word [eax], di
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x14
lea eax, [ebp - 0x208]
push eax
call esi
test eax, eax
jne 0x40323b
lea eax, [ebp - 0x208]
push eax
call fcn.004031c5
mov edi, eax
pop ecx
cmp edi, 1
jne 0x403250
push dword [ebp + 8]
call esi
test eax, eax
jne 0x403250
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x403c09
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f6b8
push 0x41c160
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
push 1
pop edi
push edi
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jne 0x403c5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
or dword [ebp - 4], 0xffffffff
jmp 0x403d3b
mov dword [ebp - 4], edi
push 0x14
add esi, 0x28
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
mov dword [ebp - 0x38], ebx
test ebx, ebx
je 0x403cd8
push 2
pop esi
mov dword [ebp - 4], esi
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x403cb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x40], esi
cmp esi, 0x420
jne 0x403c9e
xor esi, esi
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
pop ecx
pop ecx
mov eax, esi
jmp 0x403d3b
push edi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_SleepEx]
lea eax, [ebp - 0x34]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x403cd8
cmp dword [ebp - 0x30], esi
je 0x403cb2
cmp dword [ebp - 0x30], 4
je 0x403cf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
pop ecx
pop ecx
mov eax, dword [ebp - 0x40]
jmp 0x403d3b
mov dword [ebp - 4], edi
call fcn.00403d06
and dword [ebp - 4], 0
call fcn.00403d16
jmp 0x403d26
or dword [ebp - 4], 0xffffffff
xor eax, eax
jmp 0x403d3b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403d4a
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f6e0
push 0x41c160
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
push 1
pop ebx
push ebx
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x3c], eax
cmp eax, edi
jne 0x403d9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
or dword [ebp - 4], 0xffffffff
jmp 0x403e80
mov dword [ebp - 4], ebx
push 0x24
add esi, 0x28
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0x38], edi
test edi, edi
je 0x403e19
mov dword [ebp - 4], 2
lea eax, [ebp - 0x34]
push eax
push edi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
call esi
test eax, eax
je 0x403de6
cmp dword [ebp - 0x30], ebx
jne 0x403dd6
xor esi, esi
jmp 0x403df1
lea eax, [ebp - 0x34]
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x403e02
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x40], esi
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
pop ecx
pop ecx
mov eax, esi
jmp 0x403e80
push ebx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_SleepEx]
lea eax, [ebp - 0x34]
push eax
push edi
call esi
test eax, eax
jne 0x403e34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
pop ecx
pop ecx
mov eax, dword [ebp - 0x40]
jmp 0x403e80
cmp dword [ebp - 0x30], ebx
jne 0x403e02
mov dword [ebp - 4], ebx
call fcn.00403e4f
and dword [ebp - 4], 0
call fcn.00403e5b
jmp 0x403e6b
or dword [ebp - 4], 0xffffffff
xor eax, eax
jmp 0x403e80
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403e8f
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f708
push 0x41c160
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x1c
push ebx
lea eax, [ebp - 0x34]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 1
pop edi
push edi
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jne 0x403ef0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
or dword [ebp - 4], 0xffffffff
jmp 0x403f82
mov dword [ebp - 4], edi
push 4
add esi, 0x28
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x38], eax
cmp eax, ebx
je 0x403f1d
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x403f38
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
pop ecx
pop ecx
mov eax, dword [ebp - 0x40]
jmp 0x403f82
mov dword [ebp - 4], edi
call fcn.00403f4c
mov dword [ebp - 4], ebx
call fcn.00403f5d
jmp 0x403f6c
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
jmp 0x403f82
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407af4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1f400
call fcn.0041c1e0
and word [ebp - 0x1f400], 0
push ebx
push esi
push edi
mov ecx, 0x7cff
xor eax, eax
lea edi, [ebp - 0x1f3fe]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.004016c2
mov esi, eax
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
mov dword [esp], 0x406
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x407b97
lea eax, [ebp - 0x1f400]
push 0xf9ff
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x1f400]
push ebx
push eax
push esi
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x407b97
lea eax, [ebp - 0x1f400]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
push esi
push edi
call fcn.00407ae5
add esp, 0x10
push 0xfa
push 0
push 0xb6
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
test esi, esi
je 0x407ba3
push esi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x409877
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
lea eax, [ebp - 0x410]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
and word [ebp - 0x208], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x410]
push 0x4258dc
push eax
lea eax, [ebp - 0x208]
push 0x424450
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
lea eax, [ebp - 0x208]
push eax
call fcn.004010d5
mov esi, eax
push 0x4258d8
push esi
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x1c
test eax, eax
je 0x409915
push esi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
lea eax, [ebp - 0x208]
push 5
push 0
push eax
push 0x425708
push 0x4256fc
push dword [0x4289ac]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
leave
ret
Function at 0x409a0e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f8a8
push 0x41c160
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
push 1
pop edi
mov dword [ebp - 0x24], edi
mov ebx, 0x104
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], esi
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
jne 0x409ba4
mov dword [ebp - 4], edi
lea eax, [ebp - 0x20]
push eax
push edi
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x409a90
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
pop ecx
pop ecx
push 0xfffffffffffffffe
jmp 0x409baa
mov dword [ebp - 4], 2
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
mov edi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x24]
push eax
push esi
push 0x425980
push dword [ebp - 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [edi + 0x208]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0x425970
push dword [ebp - 0x20]
call esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 3
lea eax, [edi + 0x71c]
mov dword [eax], ebx
push eax
lea eax, [edi + 0x618]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0x425950
push dword [ebp - 0x20]
call esi
mov dword [ebp - 0x1c], eax
push 4
pop eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [edi + 0x720]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0x42592c
push dword [ebp - 0x20]
call esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
add edi, 0x410
push edi
lea eax, [ebp - 0x24]
push eax
push 0
push 0x42590c
push dword [ebp - 0x20]
call esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 1
call fcn.00409b74
mov dword [ebp - 4], esi
call fcn.00409b88
jmp 0x409b9c
or dword [ebp - 4], 0xffffffff
xor eax, eax
jmp 0x409bba
or dword [ebp - 4], 0xffffffff
push 0xfffffffffffffff7
pop eax
jmp 0x409bba
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 8