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

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x44dd60]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x437871
call fcn.00425651
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], ebx
push 0x206
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
mov dword [ebp - 0x1c], esi
call fcn.00423ac0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
xor eax, eax
cmp byte [ebp + 0x214], bl
push str.InstallDir
setne al
push str.SoftwareAdvancedSystemRepairPro
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0x104
add eax, 0x80000001
push eax
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shr eax, 1
mov word [ebp + eax*2], cx
push esi
lea ecx, [ebp]
call fcn.0041310d
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004098a2
add ebp, 0x20c
leave
ret

Function at 0x413067
Capabilities:
Set registry value

Disassembly:
push 4
mov eax, 0x436064
call fcn.00425651
mov dword [ebp - 4], 1
xor ebx, ebx
xor eax, eax
cmp byte [ebp + 0x14], bl
push ebx
sete al
lea ecx, [ebp - 0x10]
push ecx
push ebx
mov dword [ebp - 0x10], ebx
dec eax
and eax, 0x100
inc eax
inc eax
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x4130c9
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push dword [ebp + 0xc]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.0040f6db
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040f6db
call fcn.00425729
ret

Function at 0x414ee8
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov eax, SysReAllocString
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
je 0x414f18
push esi
lea ecx, [ebp - 4]
push ecx
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x414f3e
mov eax, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
je 0x414f41
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
jne 0x414f31
jmp 0x414f33
Function at 0x4152f0
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x435bc4
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebp
push esi
push edi
mov eax, dword [0x44dd60]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
xor esi, esi
mov dword [esp + 0x30], esi
push 0xc
mov dword [esp + 0x18], esi
call fcn.0040be0e
add esp, 4
mov dword [esp + 0x1c], eax
mov ecx, 1
mov dword [esp + 0x30], ecx
cmp eax, esi
je 0x415349
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
jmp 0x41534b
xor eax, eax
mov byte [esp + 0x30], 0
mov dword [ebp], eax
mov dword [esp + 0x30], esi
mov esi, dword [ebx]
mov edi, dword [ebp]
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
cmp esi, dword [edi + 4]
je 0x415396
mov eax, dword [edi]
push esi
push eax
call fcn.00423ea6
mov ecx, dword [edi + 4]
add esp, 8
mov dword [edi], eax
cmp esi, ecx
jbe 0x415393
mov edx, esi
sub edx, ecx
push edx
add ecx, eax
push 0
push ecx
call fcn.00423ac0
add esp, 0xc
mov dword [edi + 4], esi
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x10], ecx
push 5
add edx, 0xfffffff3
mov dword [esp + 0x1c], edx
mov eax, dword [eax]
lea ecx, [ebx + 8]
push ecx
lea edx, [esp + 0x20]
push edx
add ecx, 5
push ecx
lea ecx, [esp + 0x20]
push ecx
push eax
call fcn.0041e524
mov esi, dword [ebp]
test eax, eax
jne 0x415416
mov edi, dword [esp + 0x10]
cmp edi, dword [esi + 4]
je 0x415432
mov eax, dword [esi]
push edi
push eax
call fcn.00423ea6
mov ecx, dword [esi + 4]
add esp, 8
mov dword [esi], eax
cmp edi, ecx
jbe 0x4153fe
mov edx, edi
sub edx, ecx
push edx
add ecx, eax
push 0
push ecx
call fcn.00423ac0
add esp, 0xc
mov dword [esi + 4], edi
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret
cmp dword [esi + 4], 0
je 0x415432
mov eax, dword [esi]
push 0
push eax
call fcn.00423ea6
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], 0
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret

Function at 0x41580c
Capabilities:
Get common file path

Disassembly:
push 0x30
mov eax, 0x436e7c
call fcn.004256ba
mov eax, dword [ebp + 8]
and dword [ebp - 0x34], 0
push 0x400
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], eax
call fcn.0040d450
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x415844
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x41585c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00419e38
mov byte [ebp - 4], 2
push dword [ebp - 0x38]
mov esi, eax
push edi
call fcn.00407af8
pop ecx
pop ecx
mov dword [ebp - 0x34], ebx
mov byte [ebp - 4], bl
lea eax, [ebp - 0x30]
push eax
call fcn.00411893
mov byte [ebp - 4], 0
push 0
push ebx
lea esi, [ebp - 0x2c]
call fcn.004164fe
mov eax, edi
call fcn.0042573d
ret
Function at 0x416224
Capabilities:
Write file on windows

Disassembly:
push 4
mov eax, 0x43631c
call fcn.00425651
xor edi, edi
mov dword [ebp - 4], edi
push edi
push edi
push 2
push edi
push edi
push 0x40000000
lea esi, [ebp + 0xc]
call fcn.00415d83
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x416277
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040f6db
call fcn.00425729
ret

Function at 0x4163e8
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ebx, 0xf0000000
push ebx
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
push edi
call esi
test eax, eax
je 0x416410
cmp dword [edi], 0
jne 0x416422
push ebx
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
push 0
push edi
call esi
cmp dword [edi], 0
je 0x416446
push dword [ebp + 0xc]
lea esi, [ebp - 8]
push dword [ebp + 8]
call fcn.00407a15
lea eax, [edi + 4]
push eax
push 0
push 0
push dword [ebp - 4]
push dword [ebp - 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x416474
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
xor eax, eax
inc eax
push 0
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], eax
lea eax, [ebp + 0xc]
push eax
push 3
push ecx
call esi
push 0
lea eax, [ebp + 8]
push eax
push 4
push dword [edi + 4]
call esi
pop esi
pop ebx
leave
ret 8

Function at 0x4175a0
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebx
xor ebx, ebx
push esi
mov byte [0x452374], 1
push 1
cmp byte [0x452376], bl
je 0x4175bd
push ebx
push 0x4415c8
jmp 0x4175c4
push dword [0x4524b0]
push ebx
push dword [0x4523b0]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call esi
cmp byte [0x452376], bl
je 0x4175f2
push 0xbb8
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
pop ebx
ret

Function at 0x418822
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x418846
cmp dword [edi + 0x54], 0
jne 0x418846
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040693d
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004094ae
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x418d5e
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
sub esp, 0x22c
lea ebp, [esp - 4]
mov eax, dword [0x44dd60]
xor eax, ebp
mov dword [ebp + 0x22c], eax
push 0x14
mov eax, 0x43791a
call fcn.00425651
xor ebx, ebx
push 0x228
lea eax, [ebp + 4]
push ebx
push eax
mov dword [ebp], ebx
call fcn.00423ac0
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
je 0x418e18
lea eax, [ebp]
push eax
push esi
mov dword [ebp], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x418e14
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0x24]
call fcn.0041310d
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
call fcn.0040dbbf
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
jl 0x418dff
push str.advancedsystemrepairpro.exe
push eax
call fcn.00424783
pop ecx
pop ecx
cmp eax, ebx
je 0x418dff
sub eax, dword [ebp - 0x10]
sar eax, 1
cmp eax, 0xffffffff
jne 0x418e4c
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.0040f6db
lea eax, [ebp]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x418dc4
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x418e27
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
call fcn.004098a2
add ebp, 0x230
leave
ret
push dword [ebp + 8]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
cmp esi, ebx
je 0x418ea8
push 0x441bb4
push ebx
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, ebx
je 0x418e91
lea ecx, [ebp - 0x18]
push ecx
push 0x1388
push 1
push ebx
push ebx
push 0x864
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x418ea8
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x418eb9
push esi
call edi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.0040f6db
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], ebx
je 0x418ed2
push dword [ebp - 0x14]
call edi
mov al, 1
jmp 0x418e29
Function at 0x418fb0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebx
xor ebx, ebx
push ebp
push edi
cmp dword [esi + 0x34], ebx
ja 0x418fc4
cmp dword [esi + 0x30], 0x40
jbe 0x4190c8
mov edi, dword [esi + 0x28]
mov ebp, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x40
push edi
call ebp
test eax, eax
jne 0x4190cd
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x4190cd
mov byte [esi + 0x38], 1
mov eax, dword [edi + 0x3c]
mov edi, dword [esi + 0x34]
xor ecx, ecx
lea edx, [eax + 0xf8]
cmp edi, ecx
jb 0x4190c8
ja 0x41900f
mov ecx, dword [esi + 0x30]
cmp ecx, edx
jbe 0x4190c8
mov edx, dword [esi + 0x28]
add eax, edx
push 0xf8
push eax
mov dword [esi + 0x24], eax
call ebp
test eax, eax
jne 0x4190cd
mov eax, dword [esi + 0x24]
cmp dword [eax], 0x4550
jne 0x4190cd
mov ecx, 0x2000
test word [eax + 0x16], cx
jne 0x419045
mov byte [esi + 0x44], 1
mov edx, eax
movzx eax, word [edx + 0x18]
mov ecx, 0x10b
cmp ax, cx
jne 0x419061
mov dword [esi + 0x40], 1
add edx, 0x78
jmp 0x419078
mov ecx, 0x20b
cmp ax, cx
jne 0x41907b
mov dword [esi + 0x40], 2
add edx, 0x88
mov dword [esi + 0x20], edx
cmp dword [esi + 0x20], ebx
je 0x4190cd
mov eax, dword [esi + 0x24]
movzx ecx, word [eax + 6]
mov dword [esi + 0x3c], ecx
test ecx, ecx
je 0x4190cd
movzx edx, word [eax + 0x14]
mov ebx, dword [esi + 0x34]
lea ecx, [ecx + ecx*4]
add ecx, ecx
add ecx, ecx
add ecx, ecx
sub ecx, dword [esi + 0x28]
add ecx, edx
lea edi, [ecx + eax + 0x18]
xor ecx, ecx
cmp ebx, ecx
jb 0x4190c8
ja 0x4190b6
mov ecx, dword [esi + 0x30]
cmp ecx, edi
jbe 0x4190c8
pop edi
mov ebx, 1
lea edx, [edx + eax + 0x18]
pop ebp
mov eax, ebx
mov dword [esi + 0x1c], edx
pop ebx
ret
mov ebx, 2
pop edi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x4195fb
Capabilities:
Set registry value

Disassembly:
push 0x50
mov eax, 0x437f1e
call fcn.00425684
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
push 4
call fcn.0040be0e
pop ecx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x41962b
push eax
call fcn.0040e58b
jmp 0x41962d
xor eax, eax
mov byte [ebp - 4], 1
mov dword [0x452378], eax
push dword [eax]
call fcn.00406ff3
pop ecx
mov dword [ebp - 4], ebx
jmp 0x41964f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
add eax, eax
push eax
lea esi, [ebp + 8]
call fcn.00415d83
push eax
push 1
push str.DisplayIcon
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallAdvanced_System_Repair_Pro
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push ebx
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push eax
mov ecx, str.NotifUpdate
call fcn.0041310d
mov byte [ebp - 4], 4
push dword [0x452378]
mov byte [ebp - 4], bl
call fcn.0040e9bb
push ebx
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push eax
mov ecx, str.FirstScanDone
call fcn.0041310d
mov byte [ebp - 4], 5
push dword [0x452378]
mov byte [ebp - 4], bl
call fcn.0040e9bb
push ebx
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push eax
mov ecx, str.LastDriverFix
call fcn.0041310d
mov byte [ebp - 4], 6
push dword [0x452378]
mov byte [ebp - 4], bl
call fcn.0040e9bb
mov byte [ebp - 4], 7
cmp byte [ebp + 0xc], bl
je 0x419778
lea eax, [ebp - 0x5c]
push eax
call fcn.0041be04
mov byte [ebp - 4], 8
push 0x27
lea eax, [ebp - 0x14]
push eax
call fcn.00406d3c
mov esi, eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
call fcn.0041be04
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x2c]
push eax
call fcn.0041be04
mov byte [ebp - 4], 0xb
mov esi, dword [esi]
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
je 0x419745
push eax
push esi
call fcn.0040f98b
pop ecx
pop ecx
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x2c]
push eax
call fcn.0040f936
mov byte [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
call fcn.0040f936
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x14]
call fcn.0040f6db
mov byte [ebp - 4], 7
lea eax, [ebp - 0x5c]
push eax
call fcn.0040f936
mov dword [ebp - 4], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040f6db
call fcn.00425729
ret
Function at 0x41b416
Capabilities:
Get token privileges

Disassembly:
push 0x20
mov eax, 0x436872
call fcn.00425651
lea eax, [ebp - 0x10]
push eax
xor edi, edi
push 0x28
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41b4d6
lea eax, [ebp - 0x2c]
push eax
call fcn.0040eb98
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
jne 0x41b45b
call fcn.00424438
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push ecx
sub eax, esi
push eax
push esi
push 3
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x41b4a2
xor ecx, ecx
cmp dword [esi], edi
jbe 0x41b492
lea eax, [esi + 0xc]
mov dword [eax], 2
inc ecx
add eax, 0xc
cmp ecx, dword [esi]
jb 0x41b484
push edi
push edi
push dword [ebp - 0x14]
push esi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 1
cmp dword [ebp - 0x20], edi
je 0x41b4c0
push dword [ebp - 0x20]
call fcn.0041042c
pop ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
call fcn.0040c798
call fcn.00425729
ret
Function at 0x41c13b
Capabilities:
Check for time delay via gettickcount
Delete service
Query service status
Stop service

Disassembly:
push 0x30
mov eax, 0x436039
call fcn.00425651
xor esi, esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0xf003f
push esi
push esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x41c243
push 0x2c
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, esi
je 0x41c243
lea eax, [ebp - 0x10]
push eax
push 0x24
lea eax, [ebp - 0x3c]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
push ebx
call esi
test eax, eax
je 0x41c22e
cmp dword [ebp - 0x38], 1
je 0x41c243
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41c1df
push dword [ebp - 0x24]
call edi
lea eax, [ebp - 0x10]
push eax
push 0x24
lea eax, [ebp - 0x3c]
push eax
push 0
push ebx
call esi
test eax, eax
je 0x41c22e
cmp dword [ebp - 0x38], 1
je 0x41c22e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x14]
cmp eax, 0x2bf20
ja 0x41c22e
cmp dword [ebp - 0x38], 3
je 0x41c1b1
lea eax, [ebp - 0x3c]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x41c22e
jmp 0x41c228
push 0x3e8
call edi
lea eax, [ebp - 0x10]
push eax
push 0x24
lea eax, [ebp - 0x3c]
push eax
push 0
push ebx
call esi
test eax, eax
je 0x41c22e
cmp dword [ebp - 0x38], 1
je 0x41c22e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x14]
cmp eax, 0x2bf20
ja 0x41c22e
cmp dword [ebp - 0x38], 1
jne 0x41c1f8
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push dword [ebp - 0x18]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040f6db
call fcn.00425729
ret

Function at 0x41d16b
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 4
mov eax, 0x435b26
call fcn.00425651
mov edi, ecx
mov ebx, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
mov esi, ebx
call fcn.00419797
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
mov dword [ebp - 0x10], 1
je 0x41d228
mov esi, dword [ebx]
call fcn.00408a90
test al, al
je 0x41d228
mov eax, dword [ebx]
push edi
push dword [ebp + 0x10]
push dword [eax]
call fcn.00423b40
mov eax, dword [ebx]
add esp, 0xc
lea ecx, [ebp + 0x10]
push ecx
mov dword [ebp + 0x10], edi
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push 0
push 1
push 0
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x41d1e5
mov edi, dword [ebp + 0x10]
jmp 0x41d221
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x41d21f
mov edi, dword [ebp + 0x10]
mov esi, dword [ebx]
call fcn.00408a90
test al, al
je 0x41d21f
mov eax, dword [ebx]
mov eax, dword [eax]
lea ecx, [ebp + 0x10]
push ecx
push eax
mov eax, dword [ebp + 8]
push 0
push 1
push 0
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x41d228
xor edi, edi
mov esi, dword [ebx]
call fcn.00408a90
mov eax, ebx
call fcn.00425729
ret 0xc
Function at 0x420a21
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
mov dword [ebp - 8], edi
cmp eax, ecx
jb 0x420ab0
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00423b40
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x420a70
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x420a92
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x420b6e
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
cmp ecx, edx
jbe 0x420ad8
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x420ae3
xor eax, eax
jmp 0x420b2f
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x420b00
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.00421371
jmp 0x420b10
cmp ecx, 2
jne 0x420b19
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.00422ca3
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.00423b40
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x420b5a
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x420b6e
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x420a2e
pop edi
pop ebx
leave
ret
Function at 0x42307e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x44dd60]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x423116
push 0x43ed64
push 4
push eax
call fcn.00424714
push eax
call fcn.0040f0ea
add esp, 0x10
push ebx
push edi
call fcn.004257dc
mov edi, dword [eax]
call fcn.004257dc
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00425779
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.004257dc
cmp dword [eax], ebx
je 0x42312d
call fcn.004257dc
push dword [eax]
call fcn.0041ba10
pop ecx
jmp 0x423134
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4230c1
jmp 0x4231bb
call fcn.004257dc
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x4231b7
cmp dword [ebp - 0x234], esi
jae 0x4231b7
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.00423ac0
add esp, 0xc
push 0x43e974
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x4231a6
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4231a6
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x4231a6
push ebx
push ebx
push esi
jmp 0x4231af
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4231b9
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004098a2
leave
ret