joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4db034
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4db09d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4e5228]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x4db087
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.004db024
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4d82fc]
call fcn.004dbeec
mov dword [0x4e5290], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4db0a4
lea eax, [ebp - 8]
call fcn.00405c94
ret

Function at 0x4db13c
Capabilities:
Get file system object information

Disassembly:
push esi
add esp, 0xfffffea0
mov esi, 0x4008
test cl, cl
je 0x4db14f
or esi, 2
test dl, dl
je 0x4db158
or esi, 0
jmp 0x4db15b
or esi, 1
push esi
push 0x160
lea edx, [esp + 8]
push edx
push 0
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [esp + 4]
add esp, 0x160
pop esi
ret
Function at 0x4dbd78
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404714
xor eax, eax
push ebp
push 0x4dbed0
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 1
mov edx, dword [ebx]
mov eax, dword [0x4d80d8]
call fcn.004177c8
test eax, eax
jl 0x4dbddf
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
call fcn.004db120
and eax, 0x7f
mov eax, dword [eax*4 + 0x4e5228]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
mov esi, eax
jmp 0x4dbe42
mov eax, dword [ebx]
call fcn.00404524
test eax, eax
jle 0x4dbe42
mov eax, dword [ebx]
call fcn.00404524
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x3a
jne 0x4dbe06
mov eax, ebx
mov edx, 0x4dbee8
call fcn.0040452c
mov eax, dword [ebx]
call fcn.00404524
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
call fcn.0040508c
mov esi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0
push 0
lea eax, [ebp - 0x18]
call fcn.004db024
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov esi, eax
test esi, esi
je 0x4dbe8d
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x1c]
mov eax, 0x4dad88
call fcn.00406158
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x24]
xor ecx, ecx
pop eax
call fcn.004096f0
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004042b8
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x40775c]
call fcn.0040c11c
call fcn.00403c1c
mov eax, dword [ebp - 8]
call fcn.004dbcf0
mov ebx, eax
test edi, edi
je 0x4dbea2
mov eax, edi
call fcn.00403450
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dbed7
lea eax, [ebp - 0x1c]
call fcn.00404264
lea eax, [ebp - 0x18]
call fcn.00405c94
lea eax, [ebp - 0x14]
call fcn.00404264
lea eax, [ebp - 4]
call fcn.00404264
ret

Function at 0x4dcb0c
Capabilities:
Create process on windows

Disassembly:
push ebx
add esp, 0xffffffc4
mov ebx, eax
mov eax, esp
xor ecx, ecx
mov edx, 0x3c
call fcn.00402e48
mov dword [esp], 0x3c
mov eax, dword [0x4e5674]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], 0xc
mov eax, dword [ebx + 8]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], 5
push esp
call sub.shell32.dll_ShellExecuteExA
add esp, 0x3c
pop ebx
ret
Function at 0x4dcfb4
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
test dl, dl
je 0x4dcfcb
add esp, 0xfffffff0
call fcn.004037b4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0049e688
xor eax, eax
mov dword [ebx + 0x368], eax
xor edx, edx
mov eax, ebx
call fcn.0043d3a0
mov al, byte [0x4dd0a8]
mov byte [ebx + 0x36c], al
mov byte [ebx + 0x244], 1
mov byte [ebx + 0x36e], 1
mov byte [ebx + 0x36f], 0
xor eax, eax
mov dword [ebx + 0x370], eax
mov byte [ebx + 0x375], 0
mov byte [ebx + 0x376], 1
push 0x4001
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0
push 0x4dd0ac
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
mov dword [ebx + 0x390], esi
push 0xffffffffffffffff
push esi
call sub.comctl32.dll_ImageList_SetBkColor
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4d85d4]
call fcn.004dcbe8
mov esi, eax
mov dword [ebx + 0x378], esi
mov al, byte [esi + 0x24]
or al, byte [0x4dd0b0]
mov byte [esi + 0x24], al
lea eax, [ebx + 0x360]
mov edx, 0x4dd0bc
call fcn.004042b8
mov byte [ebx + 0x36d], 0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4dd09d
call fcn.0040380c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4dd624
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4dd78e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4e584c]
mov eax, dword [eax]
mov ax, word [eax + 0x44]
mov word [ebp - 0x16], ax
mov eax, dword [0x4e584c]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.00473860
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
call fcn.0043c560
xor edx, edx
push ebp
push 0x4dd771
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4dd6e1
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x10]
call fcn.00405c94
push eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x36c]
call fcn.004db738
push eax
mov eax, dword [0x4e5674]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
test eax, eax
je 0x4dd6d7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00403cc8
jmp 0x4dd778
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4dd71d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.0043c140
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0xc]
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.004dd4bc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x4dd6f9
push 0
mov edx, 0x4dd454
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.0043bcf8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dd778
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
call fcn.0043c5ac
mov eax, dword [0x4e584c]
mov eax, dword [eax]
mov dx, word [ebp - 0x16]
call fcn.00473860
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dd795
lea eax, [ebp - 0x10]
call fcn.00405c94
ret
Function at 0x4de784
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea0
push ebx
push esi
test dl, dl
je 0x4de79b
add esp, 0xfffffff0
call fcn.004037b4
mov ebx, edx
mov esi, eax
xor edx, edx
mov eax, esi
call fcn.0049ed58
lea eax, [esi + 0x4b0]
mov edx, 0x4de89c
call fcn.004042b8
xor eax, eax
mov dword [esi + 0x470], eax
mov dl, 1
mov eax, esi
call fcn.00442354
mov byte [esi + 0x477], 1
mov al, byte [0x4de8a4]
mov byte [esi + 0x479], al
mov byte [esi + 0x474], 1
mov byte [esi + 0x476], 1
mov byte [esi + 0x475], 0
mov dl, 1
mov eax, dword [0x418eec]
call fcn.00403420
mov dword [esi + 0x490], eax
xor eax, eax
mov dword [esi + 0x494], eax
mov byte [esi + 0x478], 0
mov byte [esi + 0x4a8], 0
push 0x4001
push 0x160
lea eax, [ebp - 0x160]
push eax
push 0
push 0x4de8a8
call sub.shell32.dll_SHGetFileInfoA
mov dword [esi + 0x480], eax
push 0x4000
push 0x160
lea eax, [ebp - 0x160]
push eax
push 0
push 0x4de8a8
call sub.shell32.dll_SHGetFileInfoA
mov dword [esi + 0x47c], eax
lea eax, [esi + 0x46c]
mov edx, 0x4de8b4
call fcn.004042b8
xor edx, edx
mov eax, esi
call fcn.00442774
mov eax, esi
test bl, bl
je 0x4de88c
call fcn.0040380c
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001b10
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_MakeSelfRelativeSD]
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call esi
test eax, eax
je 0x1001b40
mov eax, 0x80004005
jmp 0x1001bf3
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x7a
je 0x1001b65
test eax, eax
jle 0x1001bf2
and eax, 0xffff
or eax, 0x80070000
jmp 0x1001bf2
push dword [ebp - 4]
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x1001b7c
mov eax, 0x8007000e
jmp 0x1001bf2
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1001b90
call edi
test eax, eax
jmp 0x1001bca
lea eax, [ebp - 8]
push eax
push 0x20006
push 0
push 0x1001290
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001bca
push dword [ebp - 4]
push dword [ebp - 0xc]
push 3
push eax
push 0x100126c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1001bd8
jle 0x1001bd6
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x1001be7
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1001ce1
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x88], eax
cmp eax, esi
je 0x1001d26
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x1001cc9
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x1001d26
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1001d28
xor al, al
pop edi
pop esi
leave
ret
Function at 0x1002bfe
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10014d0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002c69
push 4
pop esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x10014b4
push dword [ebp - 4]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002c5d
cmp dword [ebp - 0xc], esi
jne 0x1002c5d
cmp dword [ebp - 0x10], 1
sete al
mov esi, eax
jmp 0x1002c60
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x1003301
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1005440
call fcn.01003310
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x10066d8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1003116
cmp eax, esi
jne 0x1003109
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1003119
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10030f0
xor esi, esi
inc esi
mov eax, dword [0x10066d4]
cmp eax, esi
jne 0x100312c
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1003167
mov eax, dword [0x10066d4]
test eax, eax
jne 0x1003161
mov dword [0x10066d4], esi
push 0x100121c
push 0x1001210
call fcn.0100306d
pop ecx
pop ecx
test eax, eax
je 0x1003167
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1003231
mov dword [0x1006398], esi
mov eax, dword [0x10066d4]
cmp eax, esi
jne 0x100318b
push 0x100120c
push 0x1001204
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10066d4], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1003198
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10066dc], ebx
je 0x10031b9
push 0x10066dc
call fcn.010034e9
pop ecx
test eax, eax
je 0x10031b9
push ebx
push 2
push ebx
call dword [0x10066dc]
push dword [0x1006380]
push dword [0x1006384]
push dword [0x100637c]
call fcn.01001dda
add esp, 0xc
mov dword [0x1006394], eax
cmp dword [0x1006388], ebx
jne 0x1003217
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1006398], ebx
jne 0x1003225
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1006394]
call fcn.01003355
ret
call fcn.01003636
jmp 0x10030ce
Function at 0x100398c
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x10039a4
mov eax, 0x80070057
jmp 0x1003a82
mov eax, dword [eax]
push ebx
push esi
push edi
push 0x10
mov dword [ebp - 4], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
test esi, esi
je 0x1003a75
mov eax, dword [ebp + 0xc]
and dword [esi], 0
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
lea edi, [esi + 4]
mov dword [edi], 2
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
push esi
push 0x100391a
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 8], eax
test eax, eax
je 0x1003a55
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1003a0f
mov eax, dword [esi]
mov dword [ebp + 0xc], eax
jmp 0x1003a16
mov dword [ebp + 0xc], 0x8007041d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1003a31
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jbe 0x1003a7c
mov ecx, eax
sub ecx, ebx
cmp ecx, dword [ebp - 4]
ja 0x1003a4d
sub ebx, eax
mov eax, dword [ebp + 0x10]
add dword [eax], ebx
jmp 0x1003a7c
mov eax, dword [ebp + 0x10]
and dword [eax], 0
jmp 0x1003a7c
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1003a70
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 0xc], eax
jmp 0x1003a7c
mov dword [ebp + 0xc], 0x80070008
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1003f38
Capabilities:
Query service status
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor esi, esi
push 1
push esi
mov ebx, ecx
push esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0x3e8
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp eax, esi
jne 0x1003f82
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jg 0x1003f76
mov edi, eax
jmp 0x1004085
and eax, 0xffff
or eax, 0x80070000
jmp 0x1003f6f
push eax
mov ecx, ebx
call fcn.01003c9f
mov edi, eax
cmp edi, esi
jl 0x100407c
lea eax, [ebx + 4]
mov esi, dword [eax]
dec esi
js 0x100407c
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push esi
add ecx, 4
call fcn.01004a9f
mov edi, eax
test edi, edi
jl 0x100407c
push 0xf01ff
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x1004049
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1004049
cmp dword [ebp - 0x28], 4
je 0x1003ff7
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1004049
cmp dword [ebp - 0x28], 1
je 0x1004061
cmp dword [ebp - 0x28], 4
je 0x1004037
mov eax, dword [ebx]
cmp dword [ebp - 4], eax
jbe 0x1004027
test eax, eax
je 0x1004022
mov dword [ebp - 4], eax
cmp dword [ebp - 4], eax
ja 0x1004068
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
sub dword [ebx], eax
jmp 0x1003ff7
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
dec esi
jns 0x1003fa3
jmp 0x100407c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100405d
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x100406d
mov edi, 0x80070426
jmp 0x100406d
mov edi, 0x8007041d
cmp dword [ebp + 8], 0
je 0x100407c
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x10]
call fcn.01003838
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1004afe
Capabilities:
Acquire debug privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push 0x28
mov dword [ebp - 4], edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1004b71
lea eax, [ebp - 0xc]
push eax
push 0x10016a8
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1004b71
mov eax, dword [ebp - 0xc]
push edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push edi
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1004b71
inc ebx
cmp dword [ebp - 4], edi
je 0x1004b7f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop ebx
leave
ret

Function at 0x1004c43
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
mov ebx, 0x80070000
test eax, eax
jne 0x1004c88
call esi
cmp eax, 0x57
jne 0x1004c75
xor eax, eax
jmp 0x1004cbc
call esi
test eax, eax
jle 0x1004c82
and eax, 0xffff
or eax, ebx
mov edi, eax
test edi, edi
jl 0x1004cba
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x1004caf
call esi
cmp eax, 5
je 0x1004caf
call esi
test eax, eax
jle 0x1004cab
and eax, 0xffff
or eax, ebx
mov edi, eax
jmp 0x1004cb1
xor edi, edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x10051f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.01004afe
pop ebp
jmp fcn.01004cc8
Function at 0x401674
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x44d948]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
push edi
call fcn.004015bf
mov edi, eax
xor eax, eax
push 0x206
mov word [ebp - 0x74], ax
xor esi, esi
lea eax, [ebp - 0x72]
push esi
push eax
call fcn.00420d30
add esp, 0xc
push 0x104
lea eax, [ebp - 0x74]
push eax
push edi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x7c], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
jne 0x4016e5
xor eax, eax
jmp 0x401796
push ebx
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004137de
mov ebx, eax
pop ecx
cmp ebx, esi
jne 0x401708
xor eax, eax
jmp 0x401795
push ebx
push edi
push esi
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
mov esi, 0x44f338
test eax, eax
je 0x401781
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x43c9f0
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401781
mov eax, dword [ebp - 0x78]
push dword [eax + 0x30]
movzx ecx, word [eax + 0xc]
push dword [eax + 0x2c]
push dword [eax + 0x28]
push dword [eax + 0x24]
push dword [eax + 0x20]
push dword [eax + 0x18]
push dword [eax + 0x1c]
push dword [eax]
push dword [eax + 0x14]
push dword [eax + 0x10]
push dword [eax + 0xc]
push dword [eax + 8]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str.FileVersion_:__d._d._d._d___FileVersionMS_:_0x_08x__FileVersionLS_:_0x_08x__ProductVersionMS_:_0x_08x__ProductVersionLS_:_0x_08x__Signature_:_0x_08x__FileFlags_:_0x_08x__FileFlagsMask_:_0x_08x__FileOS_:_0x_08x__FileType_:_0x_08x__FileSubType_:_0x_08x__FileDateMS_:_0x_08x__FileDateLS_:_0x_08x__
push 0x168
push esi
call fcn.00420a64
add esp, 0x4c
push ebx
call fcn.0041e83c
movzx eax, word [0x44f338]
neg eax
sbb eax, eax
pop ecx
and eax, esi
pop ebx
mov ecx, dword [ebp + 0x194]
pop edi
xor ecx, ebp
pop esi
call fcn.0041effe
add ebp, 0x198
leave
ret
Function at 0x401941
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x44d948]
xor eax, ebp
mov dword [ebp + 0x84], eax
push ebx
mov ebx, dword [ebp + 0x90]
push 0x103
lea eax, [ebp - 0x7f]
push 0
push eax
mov byte [ebp - 0x80], 0
call fcn.00420d30
add esp, 0xc
test ebx, ebx
jne 0x401982
xor eax, eax
jmp 0x4019d8
push esi
push edi
lea edi, [ebx + 1]
mov al, byte [edi]
test al, al
je 0x4019d3
mov esi, edi
sub esi, ebx
cmp al, 0x5c
jne 0x4019cb
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00421060
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov byte [ebp + esi - 0x80], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4019bb
test al, 0x10
jne 0x4019cb
push 0
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4019f0
inc edi
mov al, byte [edi]
inc esi
test al, al
jne 0x401991
xor eax, eax
inc eax
pop edi
pop esi
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
pop ebx
call fcn.0041effe
add ebp, 0x88
leave
ret 4
xor eax, eax
jmp 0x4019d6

Function at 0x4019f4
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x44d948]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
mov esi, dword [ebp + 0x198]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
mov dword [ebp - 0x80], esi
call fcn.00420d30
add esp, 0xc
test esi, esi
jne 0x401a39
xor eax, eax
jmp 0x401aa7
push ebx
push edi
lea edi, [esi + 2]
movzx eax, word [edi]
xor ecx, ecx
cmp cx, ax
je 0x401aa2
mov ebx, edi
sub ebx, esi
push 0x5c
pop ecx
cmp cx, ax
jne 0x401a94
mov esi, ebx
sar esi, 1
add esi, esi
push esi
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push eax
call fcn.00421060
xor eax, eax
mov word [ebp + esi - 0x7c], ax
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401a84
test al, 0x10
jne 0x401a94
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x401abf
inc edi
inc edi
movzx eax, word [edi]
inc ebx
xor ecx, ecx
inc ebx
cmp cx, ax
jne 0x401a4c
xor eax, eax
inc eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.0041effe
add ebp, 0x190
leave
ret 4
xor eax, eax
jmp 0x401aa5