joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406a10
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esp + 0x18]
mov esi, eax
inc esi
cmp byte [edi], 0
je 0x406a56
lea eax, [esp + 0xc]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push 2
push 0
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x406a5e
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push esi
push ebx
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov al, byte [edi]
test al, al
je 0x406a87
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
pop ecx
ret

Function at 0x406c20
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x30
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea edx, [esp + 8]
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], eax
lea edx, [esp + 4]
lea eax, [esp + 0x20]
mov dword [esp + 0x18], ecx
push edx
mov edx, dword [esp + 4]
push eax
lea ecx, [esp + 0x18]
push 0x10
push ecx
push 0
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x30
ret

Function at 0x406ca0
Capabilities:
Identify system language via api

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov edi, eax
test di, di
jne 0x406cc4
push 0
call fcn.00405510
add esp, 4
and edi, 0xffff
mov eax, edi
and eax, 0x3ff
sub eax, 4
je 0x406cf0
sub eax, 0xd
je 0x406ce9
dec eax
je 0x406ce2
xor edi, edi
jmp 0x406d18
mov edi, 0x3b5
jmp 0x406d18
mov edi, 0x3a4
jmp 0x406d18
and edi, 0xfffffc00
cmp edi, 0x400
je 0x406d13
cmp edi, 0xc00
je 0x406d13
cmp edi, 0x1400
mov edi, 0x3a8
jne 0x406d18
mov edi, 0x3b6
cmp byte [esi], 0
je 0x406d55
mov ebx, dword [sym.imp.KERNEL32.dll_IsDBCSLeadByteEx]
push ebp
mov ebp, dword [esp + 0x18]
mov al, byte [esi]
push eax
push edi
call ebx
test eax, eax
je 0x406d3b
test edi, edi
je 0x406d3b
add esi, 2
jmp 0x406d47
movsx ecx, byte [esi]
cmp ecx, ebp
jne 0x406d46
mov dword [esp + 0x14], esi
inc esi
cmp byte [esi], 0
jne 0x406d28
mov eax, dword [esp + 0x14]
pop ebp
pop edi
pop esi
pop ebx
ret
pop edi
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x406d60
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push ecx
push edi
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x406d8d
pop edi
pop esi
ret
test esi, esi
je 0x406da1
push edi
call fcn.00406e90
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
pop edi
pop esi
ret

Function at 0x406db0
Capabilities:
Read .ini file

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x18]
push edi
call fcn.0041470e
mov ecx, dword [esp + 0x10]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x1c]
push eax
push edi
push esi
push ecx
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
test eax, eax
jne 0x406dde
pop edi
pop esi
ret
mov ecx, edi
push ebx
mov ebx, dword [esp + 0x18]
mov edx, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov al, byte [esi]
mov edi, esi
test al, al
je 0x406e60
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x3d
push edi
call fcn.00414d30
mov esi, eax
add esp, 8
test esi, esi
je 0x406e4f
mov eax, dword [esp + 0x18]
mov byte [esi], 0
inc esi
test eax, eax
je 0x406e31
push eax
push edi
call fcn.00414f50
add esp, 8
test eax, eax
jne 0x406e3d
push esi
push ebx
call ebp
push 0x434b84
push ebx
call ebp
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ecx + esi + 1]
jmp 0x406e5a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [edi + eax + 1]
cmp byte [edi], 0
jne 0x406e06
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
jle 0x406e72
dec esi
mov byte [esi + ebx], 0
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041479a
add esp, 4
mov eax, esi
pop ebx
pop edi
pop esi
ret
Function at 0x406fa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x200
mov byte [0x438318], 0
push ebp
mov ebp, dword [esp + 0x210]
mov eax, ebp
push esi
cdq
and edx, 0xf
push edi
add eax, edx
mov edi, dword [esp + 0x210]
mov esi, eax
mov eax, dword [esp + 0x214]
sar esi, 4
inc esi
push eax
and esi, 0xffff
push esi
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x406ff2
push 6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, ebp
xor edx, edx
and ecx, 0x8000000f
jns 0x407014
dec ecx
or ecx, 0xfffffff0
inc ecx
js 0x407030
inc ecx
lea eax, [eax + edx*2]
xor edx, edx
mov dx, word [eax]
add eax, 2
dec ecx
jne 0x407015
cmp edx, 0xff
jl 0x407030
mov edx, 0xfe
add edx, edx
mov esi, eax
mov ecx, edx
lea edi, [esp + 0xc]
mov eax, ecx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 0x1fe
rep movsb byte es:[edi], byte [esi]
push 0x438318
lea ecx, [esp + 0x1c]
push 0xffffffffffffffff
push ecx
push 0
push 0
mov word [esp + edx + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
pop edi
pop esi
mov eax, 0x438318
pop ebp
add esp, 0x200
ret

Function at 0x4076a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x800
add ecx, 0x104
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push ecx
push 0x400
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov edi, eax
test edi, edi
je 0x407708
xor ecx, ecx
xor esi, esi
test edi, edi
jbe 0x407708
mov ebx, dword [esp + 0x814]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov al, byte [esp + esi + 0x10]
test al, al
mov byte [esp + ecx + 0x410], al
jne 0x407702
test ecx, ecx
je 0x407708
lea ecx, [esp + 0x410]
push ebx
push ecx
call ebp
test eax, eax
je 0x407717
xor ecx, ecx
jmp 0x407703
inc ecx
inc esi
cmp esi, edi
jb 0x4076dc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x800
ret 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x800
ret 4

Function at 0x407730
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x800
add ecx, 0x104
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push ecx
mov ecx, dword [esp + 0x818]
push 0x400
push eax
push str.____
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, eax
test edi, edi
je 0x4077a7
xor ecx, ecx
xor esi, esi
test edi, edi
jbe 0x4077a7
mov ebx, dword [esp + 0x818]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov al, byte [esp + esi + 0x10]
test al, al
mov byte [esp + ecx + 0x410], al
jne 0x4077a1
test ecx, ecx
je 0x4077a7
lea edx, [esp + 0x410]
push ebx
push edx
call ebp
test eax, eax
je 0x4077b6
xor ecx, ecx
jmp 0x4077a2
inc ecx
inc esi
cmp esi, edi
jb 0x40777b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x800
ret 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x800
ret 8
Function at 0x40c4a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42aaaf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x435654]
push ebx
push esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov ebx, 1
test eax, eax
mov dword [esp + 0x18], ebx
jne 0x40c4e2
mov eax, edx
mov esi, dword [ecx + 0x41c]
cmp esi, 2
je 0x40c526
cmp esi, 3
je 0x40c526
cmp esi, 4
je 0x40c526
push eax
mov eax, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x30]
push edx
lea edx, [esp + 0x34]
push eax
push edx
call fcn.0040c930
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 3
call fcn.00424d04
mov byte [esp + 0x18], bl
lea ecx, [esp + 0x28]
jmp 0x40c553
push eax
mov eax, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
lea eax, [esp + 0x34]
push edx
push eax
call fcn.0040c590
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 2
call fcn.00424d04
mov byte [esp + 0x18], bl
lea ecx, [esp + 0x28]
call fcn.00424c17
mov esi, dword [esp + 0x20]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0042498c
mov dword [esp + 0xc], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call fcn.00424c17
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x14
Function at 0x40ccf0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x244
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x254]
mov edx, dword [esp + 0x250]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push ecx
push edx
call fcn.00406200
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x104
ja 0x40cd99
lea eax, [esp + 0x10c]
lea ecx, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40cd99
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push ebp
mov ebp, dword [esp + 0x25c]
test byte [esp + 0x110], 0x10
jne 0x40cd81
lea edx, [esp + 0x13c]
mov ecx, ebp
push edx
call fcn.004205e6
lea eax, [esp + 0x110]
push eax
push esi
call edi
cmp eax, 1
je 0x40cd68
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
pop edi
pop esi
add esp, 0x244
ret 0xc

Function at 0x40d150
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x42ab8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x314
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebp, dword [esp + 0x330]
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
push ebp
call fcn.00414bd7
lea ecx, [esp + 0x28]
push str..dll
push ecx
call fcn.00414f50
add esp, 0x1c
test eax, eax
jne 0x40d28a
mov ecx, 0x40
lea edi, [esp + 0x21d]
mov byte [esp + 0x21c], al
mov byte [esp + 0x118], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x119]
lea edx, [esp + 0x118]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x21c]
push edx
push eax
push ebp
call fcn.00406970
add esp, 0xc
lea ecx, [esp + 0x118]
lea edx, [esp + 0x21c]
lea eax, [esp + 0xc]
push 0
push ecx
push 0x438904
push edx
push eax
mov ecx, esi
call fcn.0040c4a0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40d24c
lea ecx, [esp + 0xc]
mov dword [esp + 0x328], 0xffffffff
call fcn.00424c17
xor eax, eax
jmp 0x40d2d7
lea ecx, [esp + 0x10]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edx, dword [esp + 0xc]
mov esi, eax
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x334]
xor eax, eax
test esi, esi
setne al
mov dword [ecx], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x328], 0xffffffff
call fcn.00424c17
jmp 0x40d2d2
lea edx, [esp + 0x14]
push str..drv
push edx
call fcn.00414f50
add esp, 8
test eax, eax
je 0x40d2c5
lea eax, [esp + 0x14]
push str..exe
push eax
call fcn.00414f50
add esp, 8
test eax, eax
je 0x40d2c5
mov ecx, dword [esp + 0x334]
mov dword [ecx], 0
jmp 0x40d2d2
mov edx, dword [esp + 0x334]
mov dword [edx], 1
mov eax, 1
mov ecx, dword [esp + 0x320]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x320
ret 8
Function at 0x40d300
Capabilities:
Delete file
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x42abab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x121]
mov byte [esp + 0x120], 0
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x434]
lea ecx, [esp + 0x1c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x120]
push eax
push ecx
push edx
call fcn.00406970
add esp, 0xc
lea eax, [esp + 0x120]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0xc]
push 0
push eax
push 0x438904
push ecx
push edx
mov ecx, ebp
call fcn.0040c4a0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x42c], 0
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40d504
lea ecx, [esp + 0x18]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x40d3c7
push eax
push 0xffffffffffffffff
mov ecx, ebp
call fcn.0040cdb0
jmp 0x40d4f9
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x40d3ea
push eax
push 0xffffffffffffffff
mov ecx, ebp
call fcn.0040cdb0
mov eax, dword [esp + 0xc]
push eax
jmp 0x40d4fe
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
push esi
push edi
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40d41a
push eax
push 0xffffffffffffffff
mov ecx, ebp
call fcn.0040cdb0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0xc]
push eax
jmp 0x40d4fe
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40d4cf
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40d4cf
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x224]
mov eax, dword [eax]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
push ecx
push eax
push str.StringFileInfo_04X_04XFileVersion
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x224]
push eax
push ecx
push edx
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40d4cf
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40d4cf
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x438]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x42c], 0xffffffff
call fcn.00424c17
mov eax, 1
jmp 0x40d51a
mov ax, word [ebp + 0x4d6]
mov ecx, dword [ebp + 0x4d0]
push 0xd
push eax
push ecx
call fcn.00406fa0
add esp, 0xc
mov ecx, ebp
push eax
push 0xffffffffffffffff
call fcn.0040cdb0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x42c], 0xffffffff
call fcn.00424c17
xor eax, eax
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x424
ret 8
Function at 0x40d540
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x42abd6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x350
mov eax, dword [0x435654]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x10], eax
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
mov byte [esp + 0x11c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11d]
mov esi, dword [esp + 0x370]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
mov dword [esp + 0x36c], ebx
stosb byte es:[edi], al
call fcn.004056e0
add esp, 4
cmp eax, 1
je 0x40d63d
lea ecx, [esp + 0x18]
lea edx, [esp + 0x11c]
push ecx
push edx
push esi
call fcn.00406970
add esp, 0xc
lea eax, [esp + 0x18]
lea ecx, [esp + 0x11c]
lea edx, [esp + 0x14]
push ebx
push eax
push 0x438904
push ecx
push edx
mov ecx, ebp
call fcn.0040c4a0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x36c], 1
call fcn.00424d04
lea ecx, [esp + 0x14]
mov byte [esp + 0x368], bl
call fcn.00424c17
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebx
jne 0x40d635
lea ecx, [esp + 0x10]
mov dword [esp + 0x368], 0xffffffff
call fcn.00424c17
xor eax, eax
jmp 0x40d6c6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
or esi, 0xffffffff
cmp eax, esi
jne 0x40d680
push ebx
push esi
mov ecx, ebp
call fcn.0040cdb0
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebx
je 0x40d66c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x368], esi
call fcn.00424c17
xor eax, eax
jmp 0x40d6c6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x374]
mov ecx, dword [esp + 0x234]
mov edx, dword [esp + 0x238]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebx
je 0x40d6b1
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x368], esi
call fcn.00424c17
mov eax, 1
mov ecx, dword [esp + 0x360]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x35c
ret 8
Function at 0x40dc00
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push esi
push edi
push 0xf01ff
xor edi, edi
push eax
push ecx
mov dword [esp + 0x14], edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x40dcf8
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push ebx
lea edx, [esp + 0x10]
push ebp
push edx
push esi
call edi
cmp dword [esp + 0x18], 4
je 0x40dcdb
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x40dce3
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x38], eax
lea eax, [esp + 0x14]
push eax
push esi
call edi
test eax, eax
je 0x40dce3
mov eax, dword [esp + 0x18]
cmp eax, 4
je 0x40dcdb
cmp eax, 2
jne 0x40dce3
call ebp
sub eax, dword [esp + 0x38]
cmp eax, 0x7530
jae 0x40dce3
mov eax, dword [esp + 0x2c]
cmp eax, 0x1388
jbe 0x40dcaa
mov eax, 0x1388
jmp 0x40dcb3
test eax, eax
jne 0x40dcb7
mov eax, 0x3e8
mov dword [esp + 0x2c], eax
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
test eax, eax
jne 0x40dc7d
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x20
ret 8
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x20
ret 8
mov eax, edi
pop edi
pop esi
add esp, 0x20
ret 8
Function at 0x40ed80
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42ad76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x508
mov eax, dword [0x435654]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
xor ebx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x51c], ebx
mov eax, dword [esp + 0x528]
lea ecx, [esp + 0x10]
push eax
push str.__s_
push ecx
mov byte [esp + 0x528], 1
call fcn.00420183
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x530]
add esp, 0xc
lea edx, [esp + 0x114]
mov ecx, esi
push 0x400
push edx
push eax
push edi
call fcn.00412320
cmp eax, ebx
je 0x40ee9a
lea ecx, [esp + 0x114]
push 0x2c
push ecx
call fcn.00414d30
add esp, 8
cmp eax, ebx
je 0x40ee19
mov byte [eax], bl
lea edx, [esp + 0x114]
lea ecx, [esp + 0xc]
push edx
call fcn.00424d54
mov ecx, dword [esp + 0xc]
push edi
lea eax, [esp + 0x118]
push 0x400
push eax
push 0x438904
push str.AddReg
push ecx
call fcn.00406d60
add esp, 0x18
cmp eax, ebx
je 0x40ee9a
lea edx, [esp + 0x114]
lea ecx, [esp + 0xc]
push edx
call fcn.00424d54
mov ecx, dword [esp + 0xc]
push edi
lea eax, [esp + 0x118]
push 0x400
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
lea edx, [esp + 0x114]
mov edi, eax
push edx
call fcn.00406e90
mov al, byte [esp + 0x118]
add esp, 4
cmp al, bl
jne 0x40eec2
lea ecx, [esp + 0x10]
mov byte [esp + 0x51c], bl
call fcn.00424c17
lea ecx, [esp + 0xc]
mov dword [esp + 0x51c], 0xffffffff
call fcn.00424c17
xor eax, eax
jmp 0x40ef36
push ebp
mov ebp, dword [esp + 0x530]
xor ecx, ecx
xor esi, esi
mov al, byte [esp + esi + 0x118]
cmp al, bl
mov byte [esp + ecx + 0x18], al
jne 0x40ef06
cmp ecx, ebx
je 0x40ef0c
lea eax, [esp + 0x18]
push eax
call fcn.00406e90
mov al, byte [esp + 0x1c]
add esp, 4
cmp al, bl
je 0x40ef02
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.004205e6
xor ecx, ecx
jmp 0x40ef07
inc ecx
inc esi
cmp esi, edi
jbe 0x40eece
lea ecx, [esp + 0x14]
mov byte [esp + 0x520], bl
call fcn.00424c17
lea ecx, [esp + 0x10]
mov dword [esp + 0x520], 0xffffffff
call fcn.00424c17
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x514]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x514
ret 0xc
Function at 0x40ffd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov dword [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x410044
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x110]
lea edx, [esp + 0xc]
stosw word es:[edi], ax
push ecx
push 0
push 0x434b88
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x410056
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040cdb0
push 0x438904
jmp 0x41005e
lea eax, [esp + 0x110]
push eax
mov esi, dword [esp + 0x21c]
mov ecx, esi
call fcn.00424c85
mov eax, esi
pop edi
pop esi
add esp, 0x20c
ret 4

Function at 0x410ce0
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x42afcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov edx, dword [esp + 0x120]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x124]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push ecx
push edx
call fcn.00406200
lea eax, [esp + 0x18]
push eax
call fcn.004056e0
add esp, 0x10
test eax, eax
jne 0x410d49
mov eax, 1
jmp 0x410dcc
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0040ffd0
mov edx, dword [esp + 8]
mov dword [esp + 0x118], 0
push edx
call fcn.00406790
add esp, 4
test eax, eax
je 0x410db6
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 2
lea ecx, [esp + 0x10]
push eax
push ecx
call esi
test eax, eax
je 0x410db6
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push 2
push edx
push eax
call esi
test eax, eax
je 0x410db6
lea ecx, [esp + 8]
mov dword [esp + 0x118], 0xffffffff
call fcn.00424c17
mov eax, 1
jmp 0x410dcc
lea ecx, [esp + 8]
mov dword [esp + 0x118], 0xffffffff
call fcn.00424c17
xor eax, eax
mov ecx, dword [esp + 0x110]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret 8