joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100021a1
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x1000220f
push str.Should_not_be_here___n
push esi
push dword [0x1003b65c]
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], str.R:_toolsmsvc8VC_atlmfcinclude_statreg.h
mov dword [ebp - 8], 0x3ed
call fcn.100011c4
push 0x1002976c
push esi
push 0x3ee
push 0x10029c40
push 2
call fcn.1000d400
add esp, 0x24
cmp eax, 1
jne 0x1000220b
int3
xor eax, eax
jmp 0x10002218
xor eax, eax
cmp eax, dword [ebp - 4]
sbb eax, eax
neg eax
pop esi
leave
ret 4

Function at 0x10002410
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x1003a560]
xor eax, ebp
mov dword [ebp + 0x98], eax
push ebx
mov ebx, dword [ebp + 0xa4]
push esi
push edi
push 0x2001f
mov eax, ecx
push ebx
push dword [eax]
xor esi, esi
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], esi
call fcn.100013ca
mov edi, eax
cmp edi, esi
je 0x100024aa
cmp edi, 2
je 0x10002486
cmp edi, 3
je 0x10002486
push edi
push ebx
push str.CRegKey::RecurseDeleteKey_:_Failed_to_Open_Key__s_Error___d__n
push esi
push dword [0x1003b654]
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], str.R:_toolsmsvc8VC_atlmfcinclude_atlbase.h
mov dword [ebp - 0x74], 0x1631
call fcn.100011c4
add esp, 0x18
lea ecx, [ebp - 0x6c]
call fcn.100013b3
mov eax, edi
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000f1e0
add ebp, 0x9c
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x100024c2
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x6c]
call fcn.10002410
cmp eax, esi
jne 0x100024f3
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x6c]
mov dword [ebp - 0x70], 0x100
call edi
test eax, eax
je 0x100024b2
lea ecx, [ebp - 0x6c]
call fcn.100013b3
mov ecx, dword [ebp - 0x74]
push ebx
call fcn.1000137a
lea ecx, [ebp - 0x6c]
mov esi, eax
call fcn.100013b3
mov eax, esi
jmp 0x10002490
Function at 0x10009a80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x56fffffc
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.10009227
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100091dc
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
Function at 0x1000a120
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [edx + 0x40], ch
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.100091f5
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.10009227
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100091dc
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.10009217
sbb eax, 0x688104f4
add al, 1
add byte [eax], al
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.10009217
jge 0x1000a241
inc edi
and byte gs:[ebp - 0x20], 0
and byte [ebp - 0x1f], 0
mov byte [ebp - 0x1e], 0x1d
and byte [ebp - 0x1d], 0
invalid
mov byte [ebp - 0x1c], 0xa5
mov byte [ebp - 0x1b], 0x87
mov byte [ebp - 0x1a], 0x96
mov byte [ebp - 0x19], 0xb6
mov byte [ebp - 0x18], 0x87
mov byte [ebp - 0x17], 0x8f
mov byte [ebp - 0x16], 0x92
mov byte [ebp - 0x15], 0xb2
mov byte [ebp - 0x14], 0x83
mov byte [ebp - 0x13], 0x96
mov byte [ebp - 0x12], 0x8a
mov byte [ebp - 0x11], 0xa3
mov byte [ebp - 0x10], 0xe2
lea eax, [ebp - 0x20]
push eax
call fcn.10009227
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100091dc
add esp, 0xc
mov dword [ebp - 0x370], eax
lea eax, [ebp - 0x654]
push eax
push 0x104
call dword [ebp - 0x370]
mov dword [ebp - 0x550], eax
mov eax, dword [ebp - 0x28]
movsx eax, byte [ebp + eax - 0x12d]
cmp eax, 0x5c
jne 0x1000a2c3
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x550]
movsx eax, byte [ebp + eax - 0x655]
cmp eax, 0x5c
jne 0x1000a2e3
mov eax, dword [ebp - 0x550]
dec eax
mov dword [ebp - 0x550], eax
and dword [ebp - 0x338], 0
and dword [ebp - 0x3d0], 0
jmp fcn.1000a300

Function at 0x1000f1e0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1003a560]
jne 0x1000f1ea
repz ret
jmp fcn.100198c0

Function at 0x10016630
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1003ae7c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1001666b
mov ecx, dword [0x1003b9dc]
push ecx
call fcn.10016580
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [0x1003ae7c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x402730
Capabilities:
Set current directory

Disassembly:
sub esp, 0x108
push esi
push edi
mov edi, dword [esp + 0x114]
mov esi, ecx
push edi
push str.Current_Script
call fcn.004018f0
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea edx, [esp + 0xc]
mov ecx, esi
push edx
call fcn.00401e10
mov byte [eax - 1], 0
lea eax, [esp + 0xc]
push eax
push str.Currentdir
mov ecx, esi
call fcn.004018f0
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop esi
add esp, 0x108
ret 4

Function at 0x402ad0
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x88
push esi
push edi
mov edi, dword [esp + 0x94]
lea eax, [esp + 8]
push 0x4000
push eax
push edi
mov esi, ecx
mov byte [esp + 0x14], 0x88
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x402b2e
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
push edi
mov ecx, esi
call fcn.004029f0
push str.LeaveBinaries
mov ecx, esi
call fcn.004017e0
test eax, eax
jne 0x402b2e
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
xor eax, eax
pop esi
add esp, 0x88
ret 4

Function at 0x402c70
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x248
mov eax, dword [esp + 0x24c]
push esi
mov esi, ecx
lea edx, [esp + 8]
push edi
mov dword [esp + 8], esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402c8b
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.00401e10
lea ecx, [esp + 0x110]
lea edx, [esp + 0xc]
push ecx
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402d27
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x12
je 0x402d1f
lea eax, [esp + 0x140]
push ebp
mov ebp, dword [esp + 0x264]
sub esi, eax
lea eax, [esp + 0x144]
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x402ceb
mov ecx, dword [esp + 0x260]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
call ebp
lea eax, [esp + 0x118]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
call ebx
cmp eax, 0x12
jne 0x402ce4
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
pop esi
add esp, 0x248
ret 0xc
Function at 0x403550
Capabilities:
Copy file
Set file attributes

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push ebp
mov ebx, ecx
push esi
push edi
push 0x104
mov ecx, dword [ebx + 0x550]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.sysdir
mov ecx, ebx
call fcn.004017e0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
mov esi, ecx
mov ecx, ebx
call fcn.00401e10
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esi + ecx + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ecx, ebx
mov ebp, eax
push str.sysdir
call fcn.004017e0
mov edx, ebp
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x4035c2
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebx
call fcn.00401e10
mov edi, eax
or ecx, 0xffffffff
dec edi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
sete al
test al, al
mov byte [ebx + 0x5e5], al
jne 0x403683
push 0x10038
push 0x10000
push ebp
mov ecx, ebx
call fcn.00403f80
test al, al
je 0x40365a
push 0x80
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40365a
push ebp
mov ecx, ebx
call fcn.00402590
push str.sysdir_nvu.exe
mov ecx, ebx
call fcn.004022c0
lea edx, [esp + 0x10]
mov esi, eax
push 0x403850
push edx
push esi
mov ecx, ebx
call fcn.00402c70
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, ebx
call fcn.00403790
mov ecx, ebx
call fcn.004039d0
push str.Set_Current_Root_Key
mov ecx, ebx
mov dword [0x40eacc], ebx
call fcn.00401ef0
push str.Set_Current_Reg_Key
mov ecx, ebx
call fcn.00401ef0
push str.Set_Current_Reg_Name
mov ecx, ebx
call fcn.00401ef0
push str.Set_Current_Reg_Value
mov ecx, ebx
call fcn.00401ef0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x403f80
Capabilities:
Get file version info

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x403fa4
pop esi
mov al, 1
pop ebp
add esp, 8
ret 0xc
push ebx
push edi
push esi
xor bl, bl
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x20]
add esp, 4
mov edi, eax
push edi
push esi
push ecx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x403ff9
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0x40d6b4
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x403ff9
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx + 8]
cmp eax, ecx
jb 0x403ff9
jne 0x403ffb
mov ecx, dword [edx + 0xc]
mov eax, dword [esp + 0x24]
cmp ecx, eax
jae 0x403ffb
mov bl, 1
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
pop edi
pop ebx
pop esi
pop ebp
add esp, 8
ret 0xc

Function at 0x4044c0
Capabilities:
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0x10
push esi
jne 0x4044e0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
ret 4
mov ecx, edi
call fcn.004046c0
test al, al
jne 0x4044f2
pop edi
xor eax, eax
pop esi
ret 4
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40454e
push ebx
push esi
call dword [sym.imp.MSVCRT.dll__strdup]
mov esi, dword [0x40eac4]
push 0xc
mov ebx, eax
mov edi, dword [esi + 4]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 8
mov dword [eax], esi
test edi, edi
jne 0x40452e
mov edi, eax
mov dword [eax + 4], edi
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
add eax, 8
test eax, eax
je 0x404542
mov dword [eax], ebx
mov eax, dword [0x40eac8]
pop ebx
inc eax
mov dword [0x40eac8], eax
pop edi
mov eax, 1
pop esi
ret 4
Function at 0x4049b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x114
mov eax, dword [esp + 0x11c]
push ebx
push ebp
lea edx, [esp + 0x1c]
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x10], 0
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4049d1
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
mov ax, word [0x40d6b4]
or ecx, 0xffffffff
mov word [edi - 1], ax
mov edi, dword [esp + 0x130]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x12c]
push 0xf003f
lea ecx, [esp + 0x2c]
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404aee
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
push eax
push eax
push eax
mov edx, dword [esp + 0x24]
push eax
push eax
lea eax, [esp + 0x30]
push eax
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x404ae3
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x404ae3
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebp, 0x80
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
lea edx, [esp + 0xb4]
push ecx
mov ecx, dword [esp + 0x28]
dec eax
push edx
push eax
push ecx
mov dword [esp + 0x38], ebp
call esi
lea edx, [esp + 0xa4]
lea eax, [esp + 0x24]
push edx
push eax
push edi
mov ecx, ebx
call fcn.004049b0
test eax, eax
jne 0x404ad8
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xa4]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x404a83
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0xc
Function at 0x404b00
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
lea eax, [esp + 0x18]
push edi
push eax
push 0xf003f
push 0
mov esi, 1
push ebx
push ebp
mov edi, ecx
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404b87
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x404b78
mov edx, dword [esp + 0x1c]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x404b78
push esi
push ebx
push ebp
mov ecx, edi
call fcn.004049b0
mov eax, dword [esp + 0x1c]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x404b78
xor esi, esi
jmp 0x404b7c
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x404f20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x28
push ebx
push esi
push edi
xor edi, edi
push 0xf003f
mov esi, ecx
push edi
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x10], ebx
je 0x405056
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x38]
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, edi
je 0x40502d
lea ecx, [esp + 0x18]
push ebp
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x404fe6
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ebx, 0x64
mov eax, dword [esp + 0x20]
dec ebx
cmp eax, 1
je 0x404fb8
push 0x64
call edi
lea edx, [esp + 0x1c]
push edx
push esi
call ebp
test eax, eax
je 0x404fb1
test ebx, ebx
jne 0x404f93
cmp dword [esp + 0x20], 1
jne 0x404fc1
push 0x3e8
call edi
jmp 0x404fe2
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x18]
push eax
push 8
mov ecx, ebx
call fcn.00401690
push eax
push str.Error:
push ebx
call fcn.00402510
add esp, 0x10
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
pop ebp
jne 0x405012
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
mov dword [esp + 0xc], eax
jne 0x405012
push 0x3e8
call edi
mov dword [esp + 0xc], 0
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x28
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
mov dword [esp + 0xc], eax
jne 0x405042
mov dword [esp + 0xc], edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x28
ret 4
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, esi
call fcn.00402590
pop edi
pop esi
mov eax, 0x427
pop ebx
add esp, 0x28
ret 4
Function at 0x407880
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x34c
push ebx
push ebp
push esi
push edi
mov ebx, ecx
xor ebp, ebp
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], ebp
push ebp
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x407932
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40792b
mov ecx, 0x88
xor eax, eax
lea edi, [esp + 0x13c]
mov dword [esp + 0x138], ebp
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x360]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x138]
push 0x224
push ecx
push edx
mov ecx, ebx
call fcn.004077e0
test eax, eax
je 0x40791c
lea eax, [esp + 0x158]
push eax
push edi
call ebp
add esp, 8
test eax, eax
je 0x407941
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4078ed
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34c
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret 4

Function at 0x407960
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
push edi
call fcn.00407880
test eax, eax
je 0x407999
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov ecx, esi
call fcn.00407960
pop edi
xor eax, eax
pop esi
ret 4

Function at 0x408170
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x100
lea eax, [esp]
push esi
mov esi, dword [esp + 0x108]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push 0x80
push eax
push str._error_
push str.Class
push str.Version
call edi
push esi
lea ecx, [esp + 0x8c]
push 0x80
push ecx
push str._error_
push str.Provider
push str.Version
call edi
mov esi, dword [sym.imp.MSVCRT.dll__mbsicmp]
lea edx, [esp + 8]
push str.Display
push edx
call esi
add esp, 8
test eax, eax
jne 0x4081ff
lea eax, [esp + 0x88]
push str._NVidia_
push eax
call esi
add esp, 8
test eax, eax
jne 0x4081ff
pop edi
mov eax, 1
pop esi
add esp, 0x100
ret 4
pop edi
xor eax, eax
pop esi
add esp, 0x100
ret 4
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x4042e8
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x2000
mov ebx, 0x1010
xor esi, ebx
mov eax, 0x452335c0
xor eax, 0x45233dc0
xor esi, eax
mov edi, 0x40fa8849
mov eax, 0xd052192
xor edi, eax
mov ebx, edi
xor ebx, 0xffffffff
and ebx, 0x4dffabd3
and edi, 0xb200542c
or edi, ebx
xor esi, edi
mov ebx, 0x40ed655c
mov eax, 0xbf129aa0
xor eax, ebx
add esp, eax
mov eax, esp
push eax
pop edi
mov dword [edi], esi
mov eax, 0x5aeba851
xor eax, 0x12faddef
push eax
mov eax, 0x5527457
mov esi, 0x4d4301e9
xor esi, eax
pop edi
xor esi, edi
xor esi, esi
jmp 0x403f02

Function at 0x40520c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40524e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405258
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405279
mov al, byte [esp]
jmp 0x40527b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4061c4
Capabilities:
Encode data using xor

Disassembly:
cmp byte [ebp - 0xc], 0
je 0x4061c6
mov eax, dword [ebp - 0x18]
xor edx, edx
push 0x4d4d4a5b
dec edx
dec ebp
dec ebp
mov ecx, 0x402bf743
pop edx
xor ecx, edx
mov edi, 0x4aaf797e
xor ecx, edi
xor ecx, 0x54bf9881
push 0x2bb12435
mov ebx, 0x78900c32
pop edx
xor ebx, edx
xor ecx, ebx
mov esi, 0x4017a588
xor ecx, esi
mov esi, ecx
mov edx, esi
xor ebx, ebx
add ebx, edx
mov edx, 0x3e7873a7
xor edx, 0xc1878c2c
sub ebx, edx
mov esi, 0x42b6074d
mov edx, 0xbd49f8b2
xor edx, esi
add ebx, edx
mov eax, dword [ebx - 0x74]
mov ecx, 0x4ae3ca24
xor ecx, 0x2d697f55
mov edx, ecx
xor edx, 0xffffffff
and edx, 0xd1eff82
and ecx, 0xf2e1007d
or ecx, edx
mov edi, ecx
add esp, 0xfffffffc
mov dword [esp], edi
mov esi, 0x28d21745
xor esi, 0x2ac25fe7
mov ecx, 0x7006f4fa
mov edi, 0x1882f6ab
xor edi, ecx
xor esi, edi
pop ebx
xor esi, ebx
mov edx, 4
sub esp, edx
push esp
pop edi
mov dword [edi], esi
mov esi, esp
add esp, 0xfffffffc
mov dword [esp], esi
pop ebx
mov edi, 0
xor edi, ebx
mov edx, 4
sub esp, edx
mov dword [esp], edi
push 0x6c52bb0d
mov ebx, 0x553e30dd
pop esi
xor ebx, esi
mov ecx, 0x3d144439
xor ebx, ecx
mov edx, 0x3a31dfd9
mov ecx, 0x11d5630c
xor ecx, edx
xor ebx, ecx
mov esi, 0x2f9c737c
xor ebx, esi
xor esi, esi
add esi, ebx
mov edi, esi
push edi
mov ecx, 0x63e4ec99
xor ecx, 0x61a4bc99
mov edx, 0x554c0118
xor edx, 0x145e8614
xor ecx, edx
mov esi, ecx
push esi
mov edi, 0x589ccd20
xor edi, 0x59cc8e2c