joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402381
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
test eax, eax
je 0x4023f9
mov edi, eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [eax + 1]
push 0x40
push 0x3000
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
test eax, eax
je 0x4023f2
mov ebx, eax
push 0
push esi
push dword [ebp + 0xc]
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
call 0x402381
imul esp, dword [ebp + 0x72], 0x6e
insb byte es:[edi], dx
xor esi, dword [edx]
add bh, bh
adc eax, sym.imp.KERNEL32.DLL_GetModuleHandleA
call 0x402399
dec esp
outsd dx, dword [esi]
popal
dec esp
imul esp, dword [edx + 0x72], 0x41797261
add byte [eax - 1], dl
adc eax, sym.imp.KERNEL32.DLL_GetProcAddress
xor ecx, ecx
push ecx
push ecx
push ebx
push eax
push ecx
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
xor esi, esi
test eax, eax
je 0x4023d8
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
sub esp, 4
push esp
push esi
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [esp]
add esp, 4
push 0x8000
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
jmp 0x4023fb
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x402399
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
test eax, eax
je 0x4023f9
mov edi, eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [eax + 1]
push 0x40
push 0x3000
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
test eax, eax
je 0x4023f2
mov ebx, eax
push 0
push esi
push dword [ebp + 0xc]
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
call 0x402381
imul esp, dword [ebp + 0x72], 0x6e
insb byte es:[edi], dx
xor esi, dword [edx]
add bh, bh
adc eax, sym.imp.KERNEL32.DLL_GetModuleHandleA
call 0x402399
dec esp
outsd dx, dword [esi]
popal
dec esp
imul esp, dword [edx + 0x72], 0x41797261
add byte [eax - 1], dl
adc eax, sym.imp.KERNEL32.DLL_GetProcAddress
xor ecx, ecx
push ecx
push ecx
push ebx
push eax
push ecx
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
xor esi, esi
test eax, eax
je 0x4023d8
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
sub esp, 4
push esp
push esi
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [esp]
add esp, 4
push 0x8000
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
jmp 0x4023fb
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40249c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
xchg ecx, eax
imul eax, dword [0x405e6a], 0x8088405
inc eax
mov dword [0x405e6a], eax
xor edx, edx
div ecx
xchg edx, eax
ret

Function at 0x403259
Capabilities:
Delete file

Disassembly:
push ebx
push edi
push str._FileInstall___________n___:space:__Global_E_Execute
push dword [0x405e72]
push 0x405f94
call fcn.00403e95
test ecx, ecx
je 0x4032d8
mov dword [0x405ea0], eax
push 0
push 0x405f94
call dword [sym.imp.KERNEL32.DLL__lopen]
test eax, eax
js 0x4032d8
mov edi, eax
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.DLL__llseek]
mov ebx, eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.DLL__llseek]
lea eax, [ebx + 1]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov byte [eax + ebx], 0
mov dword [0x405e98], eax
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.DLL__lread]
push edi
call dword [sym.imp.KERNEL32.DLL__lclose]
push 0x405f94
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov eax, ebx
jmp 0x4032da
xor eax, eax
pop edi
pop ebx
ret
Function at 0x1b009000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x1b009175
cmp dword [esp + 0x54], 0x40
jne 0x1b009175
cmp word [esp + 0x10], 0x5a4d
jne 0x1b009175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x1b009175
lea eax, [esp + 0x54]
push 0
push eax
push 0xf8
push 0x1b00f960
push esi
call ebx
test eax, eax
je 0x1b009175
cmp dword [esp + 0x54], 0xf8
jne 0x1b009175
cmp dword [0x1b00f960], 0x4550
jne 0x1b009175
mov eax, dword [0x1b00f976]
test ah, 0x20
jne 0x1b009175
mov edx, dword [0x1b00fa80]
xor eax, eax
mov ax, word [0x1b00f966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x1b00fa58], eax
je 0x1b009175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x1b00fa6c], eax
xor eax, eax
mov ax, word [0x1b00f966]
mov edx, dword [0x1b00fa58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x1b009175
cmp dword [esp + 0x54], edi
jne 0x1b009175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x1b00fa80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x1b00f9b4]
cmp edx, eax
ja 0x1b009175
mov edi, dword [0x1b00fa58]
mov ecx, dword [0x1b00f988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x1b009175
xor eax, eax
push 2
mov ax, word [0x1b00f966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x1b009175
cmp dword [edi - 0x20], ebx
ja 0x1b009175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x1b00b769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1b00f190
cmp edx, dword [eax]
je 0x1b00b78b
add eax, 8
inc ecx
cmp eax, 0x1b00f220
jl 0x1b00b77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1b00f190]
jne 0x1b00b8b9
mov eax, dword [0x1b00fbb0]
cmp eax, 1
je 0x1b00b893
test eax, eax
jne 0x1b00b7bc
cmp dword [0x1b00f0e4], 1
je 0x1b00b893
cmp edx, 0xfc
je 0x1b00b8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1b00b7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.1b00c670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.1b00c490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1b00b836
lea eax, [ebp - 0x1a4]
push eax
call fcn.1b00c490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1b00e45c
push edi
call fcn.1b00cf00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.1b00c670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.1b00c680
lea eax, [ebp - 0xa0]
push 0x1b00e43c
push eax
call fcn.1b00c680
push dword [esi + 0x1b00f194]
lea eax, [ebp - 0xa0]
push eax
call fcn.1b00c680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1b00ce75
add esp, 0x2c
pop edi
jmp 0x1b00b8b9
lea eax, [ebp + 8]
lea esi, [esi + 0x1b00f194]
push 0
push eax
push dword [esi]
call fcn.1b00c490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x404a6a
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x418718]
push esi
push edi
push 0xd
pop ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x38]
push eax
push 0
mov esi, 0x40138c
lea edi, [ebp - 0x38]
push 0
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
xor ecx, ecx
cmp eax, 0xb7
sete cl
pop edi
pop esi
mov dword [edx], ecx
mov ecx, dword [ebp - 4]
call fcn.0040b9d1
leave
ret

Function at 0x404ab6
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor edi, edi
or ebx, 0xffffffff
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x404b33
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x404af7
mov dword [ebp - 4], 8
jmp 0x404b3c
push edi
push esi
push dword [ebp - 0x10]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x404b33
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push 0x4013c0
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x404b3c
cmp dword [ebp - 0x14], 0
je 0x404b3c
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x404b3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
test edi, edi
je 0x404b47
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x404b50
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
test eax, eax
pop edi
pop esi
pop ebx
je 0x404b5f
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
leave
ret

Function at 0x404d30
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x9c
mov eax, dword [0x418718]
push esi
push edi
push 0x25
mov dword [ebp + 0x74], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
xor esi, esi
push eax
inc esi
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x404d92
cmp dword [ebp - 0x1c], 4
jb 0x404d90
jne 0x404d92
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push 0x4013d0
push eax
call fcn.0040c1e1
add esp, 0xc
cmp dword [ebp - 0x24], 6
jae 0x404d92
xor esi, esi
mov ecx, dword [ebp + 0x74]
pop edi
mov eax, esi
pop esi
call fcn.0040b9d1
add ebp, 0x78
leave
ret
Function at 0x404da3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x404e0d
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x404e0d
cmp dword [esi], 0x104
jb 0x404e0d
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push 0x4013f4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x404e0d
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0
push 0x4013e0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x404e0d
xor eax, eax
inc eax
cmp dword [ebp - 4], eax
jne 0x404e0d
cmp byte [edi], 0
jne 0x404e0f
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x404e13
Capabilities:
Query service status

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [esp + 0x24]
mov ebx, eax
add ebx, dword [esp + 0x28]
jmp 0x404eae
mov eax, dword [esi + 4]
cmp eax, dword [esp + 0x20]
je 0x404ed2
cmp dword [esp + 0x28], 0xffffffff
je 0x404e57
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp ebx, eax
jb 0x404ec5
mov eax, dword [esi + 4]
xor edi, edi
cmp dword [esp + 0x14], edi
je 0x404e6f
mov ebp, dword [esi + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
jmp 0x404e87
cmp dword [esp + 0x10], eax
je 0x404e7e
mov ebp, dword [esi + 0x14]
mov dword [esp + 0x10], eax
jmp 0x404e87
mov eax, dword [esi + 0x14]
cmp eax, ebp
jb 0x404ed2
mov ebp, eax
mov eax, dword [esi + 0x18]
push 0xa
xor edx, edx
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jae 0x404e9c
mov eax, ecx
mov ecx, 0x2710
cmp eax, ecx
jbe 0x404ea7
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov edi, eax
test edi, edi
jne 0x404e39
jmp 0x404ed2
push 0x5b4
xor edi, edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x404f33
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf28
mov eax, dword [0x418718]
push ebx
push esi
push edi
push 0x41
pop ecx
mov dword [ebp - 4], eax
xor ebx, ebx
xor eax, eax
push 0x40
mov byte [ebp - 0x314], bl
lea edi, [ebp - 0x313]
rep stosd dword es:[edi], eax
pop ecx
mov word [ebp - 0x108], bx
lea edi, [ebp - 0x106]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, 0x104
push esi
lea eax, [ebp - 0x314]
push eax
push ebx
call edi
mov dword [ebp - 0xf28], eax
push esi
lea eax, [ebp - 0x314]
push eax
push ebx
call edi
test eax, eax
jne 0x404fa6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x405193
cmp dword [ebp - 0xf28], esi
jne 0x404fb8
mov eax, 0xa1
jmp 0x405193
push ebx
lea eax, [ebp - 0x724]
push eax
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x314]
push eax
call fcn.0040c2eb
lea eax, [ebp - 0x724]
push eax
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x620]
push eax
push 0x401434
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00404edb
lea eax, [ebp - 0x20c]
push eax
call fcn.00404c42
add esp, 0x30
test eax, eax
je 0x405144
push 0x40
pop ecx
xor eax, eax
mov word [ebp - 0x418], bx
lea edi, [ebp - 0x416]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push eax
push esi
lea eax, [ebp - 0x418]
push eax
push 0x401430
push str.MSIFileName
push str.MSILoader
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x4050f4
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x620]
push eax
push 0x401428
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00404edb
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x108]
mov ecx, eax
add esp, 0x18
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x405091
lea eax, [ebp - 0x108]
push eax
call fcn.00404c42
test eax, eax
pop ecx
jne 0x4050ed
mov esi, 0x400
push esi
lea eax, [ebp - 0xf24]
push eax
push 0x3e9
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0xf24]
push eax
lea eax, [ebp - 0xb24]
push esi
push eax
call fcn.00404edb
lea eax, [ebp - 0xb24]
jmp 0x405180
xor eax, eax
jmp 0x405193
mov esi, 0x400
push esi
lea eax, [ebp - 0xb24]
push eax
push 0x3ef
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xb24]
push eax
lea eax, [ebp - 0xf24]
push esi
push eax
call fcn.00404edb
add esp, 0x10
push 0x30
push dword [ebp + 0x10]
lea eax, [ebp - 0xf24]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xd
jmp 0x405192
mov esi, 0x400
push esi
lea eax, [ebp - 0xb24]
push eax
push 0x3ee
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xb24]
push eax
lea eax, [ebp - 0xf24]
push esi
push eax
call fcn.00404edb
lea eax, [ebp - 0xf24]
add esp, 0x10
push 0x30
push dword [ebp + 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 2
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0040b9d1
leave
ret
Function at 0x405276
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x10], edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ebx], edi
mov dword [ecx], edi
xor ecx, ecx
cmp eax, edi
sete cl
mov dword [ebp - 4], eax
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov esi, ecx
cmp esi, edi
jne 0x40531f
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, edi
mov dword [ebp + 0x10], eax
jne 0x4052c4
xor eax, eax
jmp 0x405326
push eax
push dword [ebp - 4]
push edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x405316
cmp dword [ebp + 0xc], edi
lea eax, [ebp - 4]
push eax
jne 0x405330
lea eax, [ebp - 0xc]
push eax
push 0x4013c0
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40532b
cmp dword [ebp - 4], edi
je 0x40532b
mov eax, dword [ebp - 0xc]
cmp eax, edi
je 0x40532b
mov ecx, dword [eax + 0x10]
mov dword [ebx], ecx
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov dword [ecx], eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
cmp esi, edi
sete al
pop edi
pop esi
pop ebx
leave
ret
xor esi, esi
inc esi
jmp 0x405316
lea eax, [ebp - 8]
push eax
push 0x401468
push dword [ebp + 0x10]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40532b
cmp dword [ebp - 4], edi
je 0x40532b
cmp dword [ebp - 8], edi
je 0x40532b
push dword [ebp + 0x14]
push ebx
push dword [ebp - 8]
call fcn.00404b64
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x405316

Function at 0x405367
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405387
push dword [ebp + 8]
call fcn.00404c42
test eax, eax
pop ecx
jne 0x405387
push 2
pop eax
jmp 0x4053f7
push edi
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push 0x4000000
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x58], 0x44
push dword [ebp + 8]
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], 5
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x4053d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4053f7
push dword [ebp - 0x14]
call fcn.00404c8c
cmp eax, esi
pop ecx
jne 0x4053f7
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x4053fa
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push 1
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
je 0x405451
push esi
push 0x24
push 0x401490
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebx
je 0x405450
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x405450
push 0x3a98
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
call fcn.00404e13
add esp, 0x10
test eax, eax
je 0x405450
inc ebx
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x405794
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x230]
sub esp, 0x2b0
mov eax, dword [0x418718]
push esi
mov dword [ebp + 0x22c], eax
push edi
lea eax, [ebp + 0x198]
push eax
mov dword [ebp + 0x198], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp + 0x19c], 5
ja 0x40589d
xor edi, edi
inc edi
cmp dword [ebp + 0x19c], 5
jne 0x4057eb
cmp dword [ebp + 0x1a0], edi
je 0x40589d
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push edi
push dword [ebp + 0x238]
call fcn.00405276
add esp, 0x10
test eax, eax
jne 0x40580d
mov eax, edi
jmp 0x40589f
mov esi, 0x104
push esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x405806
cmp eax, esi
ja 0x405806
lea eax, [ebp - 0x70]
push eax
push esi
lea eax, [ebp + 0x94]
push eax
call fcn.004049b1
test eax, eax
jl 0x405806
push 0x4014ec
push esi
lea eax, [ebp + 0x94]
push eax
call fcn.00404f02
test eax, eax
jl 0x405806
lea eax, [ebp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x405806
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x94]
push eax
call fcn.00404ab6
add esp, 0xc
test eax, eax
jne 0x405806
mov eax, dword [ebp - 0x7c]
cmp eax, dword [ebp - 0x74]
jb 0x405806
jne 0x40589d
mov eax, dword [ebp - 0x80]
cmp eax, dword [ebp - 0x78]
jb 0x405806
xor eax, eax
mov ecx, dword [ebp + 0x22c]
pop edi
pop esi
call fcn.0040b9d1
add ebp, 0x230
leave
ret
Function at 0x4075c0
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x4075da
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 0xc

Function at 0x407603
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40760e
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x4079c2
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov eax, 0x100c
lea ebp, [esp - 0xf8c]
call fcn.0040c440
mov eax, dword [0x418718]
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp + 0xf88], eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0xf94]
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x407a35
cmp dword [ebp - 0x7c], 1
jne 0x407a39
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push dword [ebp + 0xf94]
mov dword [ebp - 0x80], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x407a35
cmp byte [ebp - 0x78], bl
je 0x407a35
inc eax
jmp 0x407a42
xor eax, eax
jmp 0x407a42
xor eax, eax
cmp eax, dword [ebp - 0x7c]
sbb eax, eax
neg eax
mov ecx, dword [ebp + 0xf88]
pop ebx
call fcn.0040b9d1
add ebp, 0xf8c
leave
ret 4

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

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x418718]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x9c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x90], eax
mov dword [ebp - 0x74], esi
call fcn.0040758b
cmp eax, esi
jne 0x407ccd
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x407c96
lea eax, [ebp - 0x70]
push eax
call fcn.00407c45
cmp eax, esi
jne 0x407ccc
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], pe_nt_image_headers32
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x407c89
call fcn.00407526
push dword [ebp + 0x9c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.00407526
mov ecx, dword [ebp + 0x90]
mov eax, esi
pop esi
pop ebx
call fcn.0040b9d1
add ebp, 0x94
leave
ret 4