joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404ef0
Capabilities:
Accept command line arguments
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x43ef10
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
push 0
mov ecx, 0x45a408
mov dword [esp + 0x1c], 0x45a408
call fcn.0040d7df
mov dword [esp + 0x24], 0
push 0x40f1c0
mov dword [0x45a408], 0x44a584
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call fcn.004108c0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0xc]
push ecx
mov ecx, eax
call fcn.00422f00
mov byte [esp + 0x24], 1
push 0x67
lea edx, [esp + 0x14]
push edx
call fcn.004046e0
mov byte [esp + 0x24], 2
mov eax, dword [eax]
test eax, eax
jne 0x404f7e
or eax, 0xffffffff
jmp 0x404fa6
mov ecx, dword [esp + 0xc]
cmp dword [ecx - 0xc], 0
jge 0x404f8d
or eax, 0xffffffff
jmp 0x404fa6
push eax
push ecx
call fcn.0042a4e3
add esp, 8
test eax, eax
jne 0x404fa0
or eax, 0xffffffff
jmp 0x404fa6
sub eax, dword [esp + 0xc]
sar eax, 1
cmp eax, 0xffffffff
setne bl
mov byte [esp + 0x24], 1
lea ecx, [esp + 0x10]
call fcn.0040c520
test bl, bl
je 0x404fc5
mov byte [0x45a376], 1
push 0x69
lea eax, [esp + 0x14]
push eax
call fcn.004046e0
mov byte [esp + 0x24], 3
mov eax, dword [eax]
test eax, eax
jne 0x404fe1
or eax, 0xffffffff
jmp 0x405009
mov ecx, dword [esp + 0xc]
cmp dword [ecx - 0xc], 0
jge 0x404ff0
or eax, 0xffffffff
jmp 0x405009
push eax
push ecx
call fcn.0042a4e3
add esp, 8
test eax, eax
jne 0x405003
or eax, 0xffffffff
jmp 0x405009
sub eax, dword [esp + 0xc]
sar eax, 1
cmp eax, 0xffffffff
setne bl
mov byte [esp + 0x24], 1
lea ecx, [esp + 0x10]
call fcn.0040c520
test bl, bl
je 0x405028
mov byte [0x45a377], 1
cmp byte [0x45a376], 0
je 0x4050f6
call fcn.004164f0
test al, al
je 0x405048
push 1
call fcn.00410a00
add esp, 4
lea ecx, [esp + 0x10]
push ecx
call fcn.00401500
add esp, 4
mov bl, 4
mov byte [esp + 0x24], bl
mov esi, dword [esp + 0x10]
cmp dword [esi - 0xc], 0
je 0x40506a
call fcn.00410ef0
push 0x6a
lea edx, [esp + 0x18]
push edx
call fcn.004046e0
mov byte [esp + 0x24], 5
mov eax, dword [eax]
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push eax
push SysReAllocString
call esi
mov byte [esp + 0x24], bl
lea ecx, [esp + 0x14]
call fcn.0040c520
push 0x6b
lea eax, [esp + 0x18]
push eax
call fcn.004046e0
mov byte [esp + 0x24], 6
mov eax, dword [eax]
push eax
push SysReAllocString
call esi
mov byte [esp + 0x24], bl
lea ecx, [esp + 0x14]
call fcn.0040c520
push 0x6c
lea ecx, [esp + 0x18]
push ecx
call fcn.004046e0
mov byte [esp + 0x24], 7
mov eax, dword [eax]
push eax
push SysReAllocString
call esi
mov byte [esp + 0x24], bl
lea ecx, [esp + 0x14]
call fcn.0040c520
mov byte [esp + 0x24], 1
lea ecx, [esp + 0x10]
call fcn.0040c520
mov eax, 0x409
mov dword [0x457354], eax
mov dword [0x457358], eax
mov byte [esp + 0x24], 0
lea ecx, [esp + 0xc]
call fcn.0040c520
mov dword [esp + 0x24], 0xffffffff
mov eax, 0x45a408
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x405920
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43e5a1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x10], eax
xor ecx, ecx
push eax
mov ebx, 0x104
lea esi, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], eax
mov word [esp + 0x20], cx
call fcn.00420730
mov dword [esp + 0x40], 1
mov eax, dword [esp + 0x1c]
mov ebp, 8
cmp dword [esp + 0x30], ebp
jae 0x405998
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x48]
push 1
push edx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4059bc
or eax, 0xffffffff
xor ebx, ebx
lea esi, [esp + 0x18]
call fcn.00405a70
jmp 0x405a04
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], ebp
jae 0x4059ca
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4059d0
mov ecx, dword [esp + 0x2c]
sub eax, edx
sar eax, 1
mov ebx, eax
cmp ebx, ecx
ja 0x4059f7
or eax, 0xffffffff
lea esi, [esp + 0x18]
call fcn.00405a70
jmp 0x405a04
mov eax, ebx
sub eax, ecx
lea ebx, [esp + 0x18]
call fcn.004199e0
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x30], ebp
jae 0x405a12
lea ecx, [esp + 0x1c]
push edi
call fcn.00422f00
xor ebx, ebx
mov dword [esp + 0x10], 1
mov byte [esp + 0x40], bl
cmp dword [esp + 0x30], ebp
jb 0x405a39
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041cf38
add esp, 4
xor ecx, ecx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], cx
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00421490
add esp, 0x34
ret
Function at 0x407230
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
xor esi, esi
mov dword [esp + 4], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 4
mov dword [esp + 8], esi
cmp eax, esi
je 0x40726c
lea ecx, [esp + 8]
push ecx
push 1
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x4072a2
mov eax, dword [esp + 8]
jmp 0x407271
mov eax, SysReAllocString
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
push 0x44a174
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40729e
cmp dword [esp + 0xc], 4
jne 0x40729e
cmp dword [esp + 0x10], esi
jne 0x4072a2
mov dword [esp + 4], esi
mov eax, dword [esp + 8]
cmp eax, esi
pop esi
je 0x4072b2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 0x10
ret

Function at 0x4072c0
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 0x4072d4
cmp dword [esi + 0x30], 0x40
jbe 0x4073d8
mov edi, dword [esi + 0x28]
mov ebp, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x40
push edi
call ebp
test eax, eax
jne 0x4073dd
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x4073dd
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 0x4073d8
ja 0x40731f
mov ecx, dword [esi + 0x30]
cmp ecx, edx
jbe 0x4073d8
mov edx, dword [esi + 0x28]
add eax, edx
push 0xf8
push eax
mov dword [esi + 0x24], eax
call ebp
test eax, eax
jne 0x4073dd
mov eax, dword [esi + 0x24]
cmp dword [eax], 0x4550
jne 0x4073dd
mov ecx, 0x2000
test word [eax + 0x16], cx
jne 0x407355
mov byte [esi + 0x44], 1
mov edx, eax
movzx eax, word [edx + 0x18]
mov ecx, 0x10b
cmp ax, cx
jne 0x407371
mov dword [esi + 0x40], 1
add edx, 0x78
jmp 0x407388
mov ecx, 0x20b
cmp ax, cx
jne 0x40738b
mov dword [esi + 0x40], 2
add edx, 0x88
mov dword [esi + 0x20], edx
cmp dword [esi + 0x20], ebx
je 0x4073dd
mov eax, dword [esi + 0x24]
movzx ecx, word [eax + 6]
mov dword [esi + 0x3c], ecx
test ecx, ecx
je 0x4073dd
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 0x4073d8
ja 0x4073c6
mov ecx, dword [esi + 0x30]
cmp ecx, edi
jbe 0x4073d8
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 0x407580
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push 0xffffffffffffffff
push 0x43e5fc
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
xor ebx, ebx
push 0x228
lea eax, [esp + 0x2c]
push ebx
push eax
mov dword [esp + 0x30], ebx
call fcn.0042ac10
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x25c], ebx
cmp edi, 0xffffffff
je 0x40775b
lea ecx, [esp + 0x24]
push ecx
push edi
mov dword [esp + 0x2c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40775b
mov ebp, dword [sym.imp.USER32.dll_SendMessageTimeoutW]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x4c]
call fcn.00422f00
mov byte [esp + 0x25c], 1
mov edx, dword [esp + 0x14]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x407650
mov ecx, esi
lea eax, [esp + 0x14]
call fcn.00409580
mov edx, dword [esp + 0x14]
lea eax, [esi + 1]
push eax
push edx
call fcn.0042a755
add esp, 8
cmp esi, ebx
jl 0x40779b
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x40779b
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov word [edx + esi*2], cx
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jl 0x407721
push str.advancedsystemrepairpro.exe
push eax
call fcn.0042a4e3
add esp, 8
cmp eax, ebx
je 0x407721
sub eax, dword [esp + 0x14]
sar eax, 1
cmp eax, 0xffffffff
je 0x407721
mov eax, dword [esp + 0x2c]
push eax
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [esp + 0x20], esi
mov byte [esp + 0x25c], 2
cmp esi, ebx
je 0x40770e
push 0x448bc4
push ebx
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, ebx
je 0x4076f7
lea ecx, [esp + 0x18]
push ecx
push 0x1388
push 1
push ebx
push ebx
push 0x864
push eax
mov dword [esp + 0x34], ebx
call ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x40770e
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x25c], 1
cmp esi, ebx
je 0x407721
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x25c], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407748
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x407613
mov dword [esp + 0x25c], 0xffffffff
cmp edi, ebx
je 0x407771
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.00421490
add esp, 0x24c
ret
push 0x80070057
call fcn.0041a7b0
int3
Function at 0x408c60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp method.CDialog.virtual_320

Function at 0x40acb0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43e65a
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x808], eax
push ebp
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x81c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x82c]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0
mov esi, 1
mov dword [esp + 0x824], esi
lea eax, [esp + 0x18]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [esp + 0x830]
cmp dword [eax - 4], esi
jle 0x40ad3d
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [esp + 0x834]
push edx
call fcn.00415df0
mov eax, dword [esp + 0x830]
mov edx, eax
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ad40
lea edi, [esp + 0x18]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40ad54
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
lea ecx, [esp + 0x1c]
call fcn.00422f00
mov dword [esp + 0x10], 1
mov byte [esp + 0x824], 0
lea ecx, [esp + 0x830]
call fcn.0040c520
mov eax, ebp
mov ecx, dword [esp + 0x81c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.00421490
add esp, 0x818
ret
Function at 0x40ae70
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43ed99
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x14], ebx
test esi, esi
jne 0x40aec3
lea eax, [esp + 0x18]
push eax
call fcn.00419fb0
add esp, 4
mov dword [esp + 0x30], ebx
mov ebx, 1
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
call fcn.00422f00
mov dword [esp + 0x30], 2
test bl, 1
je 0x40aeea
and ebx, 0xfffffffe
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], ebx
call fcn.0040c520
mov eax, dword [ebp + 8]
test al, al
je 0x40af96
mov ecx, dword [esp + 0x10]
push ecx
push eax
call fcn.0040dda0
add esp, 8
test al, al
jne 0x40afa1
lea edx, [esp + 0x20]
push edx
mov ecx, 0x44944c
call fcn.00422f00
mov byte [esp + 0x30], 3
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
mov ebx, eax
call fcn.004067c0
mov byte [esp + 0x38], 4
push eax
lea eax, [esp + 0x24]
push eax
mov ebx, str.___minimize
call fcn.0040cfe0
add esp, 0x10
mov byte [esp + 0x30], 6
lea ecx, [esp + 0x1c]
call fcn.0040c520
mov byte [esp + 0x30], 7
lea ecx, [esp + 0x20]
call fcn.0040c520
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push 0x448bc4
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x18]
call fcn.0040c520
jmp 0x40afc9
push esi
push 0
call fcn.0040dda0
add esp, 8
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push 0x448bc4
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call esi
push 0x448bc4
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0040c520
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b5f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43e4d0
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x230], eax
mov edi, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x230], 1
push 0x206
push eax
lea edx, [esp + 0x26]
xor ecx, ecx
push edx
mov word [esp + 0x28], cx
call fcn.0042ac10
add esp, 0xc
push 0x104
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edi
lea ecx, [esp + 0x20]
call fcn.00422f00
lea ecx, [esp + 0xc]
push edi
push ecx
mov ebx, 0x448b5c
mov dword [esp + 0x18], 1
call fcn.0040cfe0
mov byte [esp + 0x238], 2
lea edx, [esp + 0x240]
push edx
lea ecx, [esp + 0x20]
push ecx
mov ebx, eax
call fcn.004067c0
add esp, 0x10
mov byte [esp + 0x230], 3
call fcn.0040ae10
mov byte [esp + 0x230], 2
lea ecx, [esp + 0x14]
call fcn.0040c520
mov byte [esp + 0x230], 1
lea ecx, [esp + 0xc]
call fcn.0040c520
mov byte [esp + 0x230], 0
lea ecx, [esp + 0x238]
call fcn.0040c520
mov eax, edi
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00421490
add esp, 0x228
ret

Function at 0x40ba9d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40bae4
call fcn.0040a08b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40bae4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40bb00
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00420f85
mov esi, eax
test edi, edi
je 0x40bafe
test ebx, ebx
je 0x40bafe
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40c0a0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
xor esi, esi
xor ebp, ebp
push edi
test ebx, ebx
jb 0x40c116
ja 0x40c0b9
cmp esi, dword [esp + 0x20]
jae 0x40c11a
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, ebx
sbb eax, ebp
test eax, eax
ja 0x40c0d5
jb 0x40c0d1
cmp ecx, 0x10000
jae 0x40c0d5
mov edi, ecx
jmp 0x40c0da
mov edi, 0x10000
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
push edi
lea edx, [esi + ecx]
push edx
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c116
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x40c116
add esi, eax
adc ebp, 0
cmp ebp, ebx
jb 0x40c0b9
ja 0x40c116
cmp esi, dword [esp + 0x20]
jb 0x40c0b9
cmp esi, dword [esp + 0x20]
jne 0x40c137
cmp ebp, ebx
jne 0x40c137
or esi, ebp
je 0x40c12f
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret

Function at 0x40c140
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x43ea28
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, dword [esp + 0x20]
push edi
call fcn.0041ce00
mov dword [esp + 0x18], 0
lea eax, [esp + 0xc]
push eax
call fcn.00413f70
add esp, 4
mov byte [esp + 0x18], 1
call fcn.0040ae10
mov byte [esp + 0x18], 0
lea ecx, [esp + 0xc]
call fcn.0040c520
mov eax, dword [edi]
push eax
xor bl, bl
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c1ab
mov bl, 1
mov eax, dword [edi]
push 0
push 0
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x40c1cf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x40c207
mov ecx, dword [edi]
call fcn.0041bbb0
push 0
call fcn.00429ba3
add esp, 4
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push ecx
mov ecx, 0x44a148
call fcn.00422f00
mov byte [esp + 0x20], 2
push edi
mov byte [esp + 0x24], 0
call fcn.00409ff0
mov dword [esp + 0x18], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x10
ret 4
Function at 0x40f9b0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x43c4a0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 3
lea eax, [esp + 4]
push eax
push 0x448404
push 1
push 0
push 0x448414
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40fa97
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push 1
push eax
call edx
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], 0
je 0x40fa44
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
push 0
push eax
mov eax, dword [edx + 0x44]
push ecx
call eax
mov eax, dword [esp + 0x28]
cmp dword [eax - 0xc], 0
je 0x40fa5b
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x2c]
push ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push 0x448424
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x40fa97
mov eax, dword [esp + 8]
test eax, eax
je 0x40fa97
mov edx, dword [esp + 0x20]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x14], 2
lea ecx, [esp + 0x1c]
call fcn.0040c520
mov byte [esp + 0x14], 1
lea ecx, [esp + 0x20]
call fcn.0040c520
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x24]
call fcn.0040c520
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.0040c520
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
add esp, 0x14
ret

Function at 0x40fca0
Capabilities:
Create service
Modify service

Disassembly:
push ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
je 0x40fcfa
mov ecx, dword [esp + 8]
push 0
push 0
push 0x449bfc
push 0
push str.UIGroup
push ecx
push 1
push 3
push 0x10
push 0xf01ff
push str.asrrealtimesrv
push str.asrrealtimesrv
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
lea edx, [esp]
push edx
push 7
push eax
mov dword [esp + 0xc], 0x493e0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
pop ecx
ret
Function at 0x4108c0
Capabilities:
Access peb ldr_data
Get token privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43cf2a
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
push 0x28
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4109a2
lea ecx, [esp + 0x14]
push ecx
call fcn.0040d630
mov dword [esp + 0x38], 0
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
sub edx, esi
jne 0x410935
call fcn.0042a201
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
sub eax, esi
push eax
push esi
push 3
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x410985
xor eax, eax
cmp dword [esi], eax
jbe 0x41096e
lea ecx, [esi + 0xc]
mov dword [ecx], 2
inc eax
add ecx, 0xc
cmp eax, dword [esi]
jb 0x410960
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0
push 0
push eax
push esi
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x38], 0xffffffff
lea eax, [esp + 0x14]
push eax
call fcn.00414010
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x410a00
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push 0
lea eax, [esp + 8]
push eax
push 0
push 2
push 0
push 0
push 0
push 0x44a178
push SysReAllocString
xor bl, bl
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x410a5c
mov edx, dword [esp + 4]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0x44a174
push eax
push edx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x410a5c
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov bl, 1
mov eax, dword [esp + 4]
test eax, eax
je 0x410a6b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ecx
ret