joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b5f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x218], eax
test edi, edi
je 0x45b71b
cmp word [edi], 0x5c
jne 0x45b71b
cmp word [edi + 2], 0x5c
jne 0x45b71b
mov ecx, dword [0x4ed02c]
mov dx, word [0x4ed030]
push ebx
mov dword [ebp - 0xc], ecx
mov word [ebp - 8], dx
mov ebx, 0x43
push esi
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x45b6ce
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x21c], 0x104
call sub.MPR.dll_WNetGetConnectionW
test eax, eax
jne 0x45b6ce
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45b690
sub eax, edx
sar eax, 1
mov esi, eax
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45b6a6
sub eax, edx
sar eax, 1
cmp eax, esi
jbe 0x45b6ce
push esi
lea ecx, [ebp - 0x214]
push ecx
push edi
call fcn.00418ef4
add esp, 0xc
test eax, eax
je 0x45b6ec
inc ebx
cmp bx, 0x5a
jbe 0x45b648
pop esi
pop ebx
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x218]
lea edx, [ebp - 0xc]
push edx
mov ecx, ebx
call fcn.004321e0
lea eax, [edi + esi*2]
push eax
mov ecx, ebx
call fcn.00421f10
pop esi
pop ebx
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop edi
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x45b730
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x254], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x45b775
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x24c]
push eax
push 0x20019
xor ebx, ebx
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x45b7aa
pop ebx
xor ecx, ecx
cmp eax, 2
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
xor edx, edx
mov eax, esi
mov word [ebp - 0x228], dx
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], ebx
lea edx, [eax + 2]
jmp 0x45b7d0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45b7d0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x228]
call fcn.00406040
mov ecx, dword [ebp - 0x218]
lea eax, [ecx - 1]
cmp ecx, eax
ja 0x45b803
push str.invalid_string_position
call fcn.004b5694
cmp dword [ebp - 0x214], 8
mov ecx, dword [ebp - 0x228]
jae 0x45b818
lea ecx, [ebp - 0x228]
cmp word [ecx + eax*2], 0x5c
je 0x45b831
push 1
push 0x4e9370
lea ecx, [ebp - 0x228]
call fcn.0040d610
mov edx, dword [ebp - 0x24c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push ebx
push edx
mov dword [ebp - 0x248], 0x104
call edi
test eax, eax
jne 0x45b943
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x228]
xor eax, eax
push ecx
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x230], 7
mov dword [ebp - 0x234], ebx
mov word [ebp - 0x244], ax
call fcn.004066a0
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45b8a0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
lea ecx, [ebp - 0x244]
call fcn.0040d610
cmp dword [ebp - 0x230], 8
mov eax, dword [ebp - 0x244]
jae 0x45b8d7
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x250]
push eax
call fcn.0045b730
add esp, 8
test al, al
je 0x45b938
mov eax, dword [ebp - 0x24c]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x248]
push ecx
lea edx, [ebp - 0x20c]
push edx
push ebx
push eax
mov dword [ebp - 0x248], 0x104
call edi
cmp dword [ebp - 0x230], 8
mov esi, eax
jb 0x45b92b
mov ecx, dword [ebp - 0x244]
push ecx
call fcn.00406d09
add esp, 4
cmp esi, ebx
mov esi, dword [ebp - 0x254]
jmp 0x45b85f
lea ecx, [ebp - 0x244]
call fcn.00409ff0
mov edx, dword [ebp - 0x24c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x250]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
sete bl
cmp dword [ebp - 0x214], 8
jb 0x45b97b
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.00406d09
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x4605c0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x210], 0
mov eax, dword [esi]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 1
je 0x460602
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [esi + 8]
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 2
mov dword [ebp - 0x20c], edx
mov dword [ebp - 0x208], eax
call edi
cmp eax, 0x102
je 0x460689
cmp eax, 0x80
je 0x460689
cmp eax, 0x81
je 0x460689
test eax, eax
je 0x460689
mov edx, dword [esi]
mov eax, dword [edx]
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [esi + 4]
push 0x200
lea edx, [ebp - 0x204]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x46069c
cmp dword [ebp - 0x210], 0x200
jne 0x46069c
mov edx, dword [esi]
mov eax, dword [edx + 4]
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_SuspendThread]
test eax, eax
je 0x4606ac
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x460689
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x460689
test bl, bl
jne 0x4606fe
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, dword [esi + 8]
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x20c]
push edx
push 2
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x208], ecx
call edi
cmp eax, 0x102
jne 0x460633
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
mov al, 1
pop esi
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x462080
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
mov esi, ecx
mov dword [ebp - 0xc], 0
call fcn.004074f0
cmp dword [eax + 0x24], 1
je 0x4620a2
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [esi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 0
push 0
mov edi, eax
mov eax, dword [esi]
mov eax, dword [eax]
push 0x100002
lea ecx, [ebp - 4]
push ecx
push eax
push edx
push edi
call ebx
test eax, eax
je 0x4621da
mov eax, dword [esi]
mov eax, dword [eax]
mov edx, dword [esi + 0xc]
push 0
push 0
push 0x100002
lea ecx, [ebp - 8]
push ecx
push eax
push edx
push edi
call ebx
test eax, eax
je 0x4621da
mov eax, dword [esi]
mov eax, dword [eax]
push 0x40
push 0x3000
mov edi, 0x1000
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
jne 0x462187
mov ecx, dword [esi]
xor eax, eax
push 0x1c
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x462183
add edi, dword [ebp - 0x1c]
mov eax, dword [esi]
mov eax, dword [eax]
push 0x40
push 0x3000
push 0x1000
push edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x462133
jmp 0x462187
test ebx, ebx
je 0x4621da
push 0x2c
lea ecx, [ebp - 0x54]
push 0
push ecx
call fcn.004b7180
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [esi]
add esp, 0xc
mov dword [ebp - 0x58], edx
lea edx, [ebp - 0xc]
push edx
mov dword [ebp - 0x50], eax
mov eax, dword [ecx]
push 0x10
lea ecx, [ebp - 0x58]
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4621da
cmp dword [ebp - 0xc], 0x10
jne 0x4621da
push ebx
mov ecx, esi
call fcn.00461b30
test al, al
je 0x4621da
mov ecx, esi
call fcn.004605c0
test al, al
jne 0x4621e3
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
mov eax, dword [edx]
push ebx
push eax
call fcn.0045e240
add esp, 8
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x468c00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dea9b
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x26c], eax
call fcn.00404050
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
mov ecx, eax
call fcn.004128d0
test al, al
je 0x468d7f
call fcn.00411e10
mov edi, eax
test edi, edi
je 0x468d7f
test esi, esi
je 0x468d7f
cmp word [esi], 0
je 0x468d7f
push esi
lea ecx, [ebp - 0x234]
call fcn.00408780
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x468cd3
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x102
ja 0x468cd3
push esi
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x468cd3
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.004321e0
mov ecx, dword [ebp + 0x10]
push 0
mov dword [ebp - 0x274], ecx
push edi
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x278], 0x208
call fcn.00471f10
push 0x30
lea edx, [ebp - 0x264]
push 0
push edx
mov dword [ebp - 0x268], 0
call fcn.004b7180
add esp, 0xc
cmp dword [ebp - 0x220], 8
jb 0x468d28
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x270], eax
jmp 0x468d34
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x270], ecx
mov edx, dword [ebp - 0x26c]
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x278]
push ecx
mov dword [ebp - 0x26c], edx
lea edx, [ebp - 0x270]
push edx
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x284]
push 0x101
push ecx
call fcn.00464120
add esp, 0x18
lea ecx, [ebp - 0x234]
test eax, eax
je 0x468d9e
call fcn.00409ff0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret 0xc
call fcn.00409ff0
mov eax, 1
jmp 0x468d81

Function at 0x46e0d0
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x46e0ea
push eax
call dword [sym.imp.GDI32.dll_CloseEnhMetaFile]
mov dword [esi + 8], eax
mov dword [esi + 4], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x46e0fb
push eax
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov dword [esi + 8], ebx
cmp dword [esi + 0x1c], ebx
je 0x46e128
cmp dword [esi + 0x20], 8
push edi
lea edi, [esi + 0xc]
jb 0x46e10e
mov eax, dword [edi]
jmp 0x46e110
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], ebx
jb 0x46e122
mov edi, dword [edi]
xor eax, eax
mov word [edi], ax
pop edi
mov dword [esi], ebx
mov dword [esi + 0x28], ebx
pop esi
pop ebx
ret
Function at 0x46f100
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
xor ebx, ebx
mov dword [esi + 0x28], ebx
cmp eax, ebx
je 0x46f130
push eax
call dword [sym.imp.GDI32.dll_CloseEnhMetaFile]
mov dword [esi + 8], eax
mov dword [esi + 4], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x46f141
push eax
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov dword [esi + 8], ebx
cmp dword [esi + 0x1c], ebx
je 0x46f16e
cmp dword [esi + 0x20], 8
push edi
lea edi, [esi + 0xc]
jb 0x46f154
mov eax, dword [edi]
jmp 0x46f156
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], ebx
jb 0x46f168
mov edi, dword [edi]
xor eax, eax
mov word [edi], ax
pop edi
lea ecx, [ebp - 0x414]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x46f21f
lea edx, [ebp - 0x20c]
push edx
push ebx
push 0x4feb7c
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x46f21f
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
lea edx, [ebp - 0x424]
push edx
push ebx
push ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x41c], 0x5456
mov dword [ebp - 0x418], 0x6d24
call dword [sym.imp.GDI32.dll_CreateEnhMetaFileW]
mov dword [esi + 4], eax
lea eax, [ebp - 0x20c]
mov dword [esi + 8], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46f1f2
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
lea ecx, [esi + 0xc]
push eax
call fcn.00406040
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 4]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetPolyFillMode]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x2c], ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x472e80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor bl, bl
test edi, edi
je 0x472ea8
mov dword [edi], 0
test esi, esi
je 0x472fbd
cmp dword [esi + 0x10], 0
je 0x472fbd
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x234], eax
cmp eax, 0xffffffff
je 0x472faa
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.004b7180
mov edx, dword [ebp - 0x234]
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push edx
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x472f9d
lea ecx, [ecx]
xor eax, eax
mov ecx, esi
mov word [ebp - 6], ax
call fcn.00417930
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00408526
add esp, 8
test eax, eax
sete bl
test bl, bl
je 0x472f3a
test edi, edi
jne 0x472f95
push 0x22c
lea edx, [ebp - 0x230]
push 0
push edx
call fcn.004b7180
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
test bl, bl
jne 0x472f9d
mov ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push eax
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x472f10
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x228]
mov dword [edi], edx
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x4755e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df258
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5246a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 0x10]
mov edi, 8
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], edi
jb 0x47562e
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4756ce
mov esi, dword [ebp + 0x14]
mov dword [ebp + 0x10], ebx
cmp dword [esi + 0x14], edi
jb 0x47565a
mov eax, dword [esi]
jmp 0x47565c
mov eax, esi
mov edx, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp + 0x10]
push ecx
push ebx
push ebx
push ebx
push eax
push edx
call edi
cmp eax, ebx
je 0x475679
cmp eax, 0x7a
jne 0x4756bc
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jbe 0x4756bc
shr eax, 1
push ebx
add eax, 2
push eax
lea ecx, [ebp - 0x24]
call fcn.00474fb0
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
sub ecx, eax
sar ecx, 1
add ecx, ecx
cmp dword [esi + 0x14], 8
mov dword [ebp + 0x10], ecx
jb 0x4756a6
mov esi, dword [esi]
lea edx, [ebp + 0x10]
push edx
push eax
mov eax, dword [ebp - 0x14]
push ebx
push ebx
push esi
push eax
call edi
test eax, eax
jne 0x4756bc
mov byte [ebp - 0xd], 1
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x24]
cmp byte [ebp - 0xd], bl
jne 0x4756d3
mov edx, 0x4e696c
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
mov eax, edx
lea edi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4756f0
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.00406040
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x475718
push eax
call fcn.00406d09
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x476770
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov dword [ebp - 0x420], 0
mov word [ebp - 0x210], ax
call fcn.004b7180
xor edx, edx
push 0x208
push edx
lea eax, [ebp - 0x41a]
push eax
mov word [ebp - 0x41c], dx
call fcn.004b7180
add esp, 0x18
push edi
push 0
push 0x410
xor bl, bl
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x476839
push 0x105
lea ecx, [ebp - 0x210]
push ecx
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x476828
push 0
push 0
push 0x105
lea edx, [ebp - 0x41c]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004b93f3
add esp, 0x24
test eax, eax
jne 0x476828
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x41c]
test bl, bl
jne 0x47683e
mov edx, 0x4e696c
xor ecx, ecx
mov eax, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x476856
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.00406040
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret
Function at 0x47e270
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
test esi, esi
je 0x47e30c
cmp word [esi], 0
je 0x47e30c
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x47e30c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47e30c
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push esi
call edi
test eax, eax
je 0x47e30b
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00402c29
add esp, 0xc
test eax, eax
jne 0x47e30b
push 0x500990
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x47e30b
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47e309
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x47e309
mov bl, 1
jmp 0x47e30b
xor bl, bl
pop edi
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret 4

Function at 0x47e320
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
mov ebx, ecx
je 0x47e368
cmp dword [esi + 0x14], 8
jb 0x47e33a
mov eax, dword [esi]
jmp 0x47e33c
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47e368
cmp dword [esi + 0x14], 8
jb 0x47e34f
mov esi, dword [esi]
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 0x2c]
push esi
push 7
push 2
call edx
neg eax
sbb eax, eax
pop esi
inc eax
pop ebx
pop ebp
ret 4
pop esi
mov al, 1
pop ebx
pop ebp
ret 4
Function at 0x47e370
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e06eb
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
mov edi, ecx
mov dword [ebp - 0x240], edi
jne 0x47e3b5
mov al, 1
jmp 0x47e53f
cmp dword [esi + 0x14], 8
mov byte [ebp - 0x239], 0
jb 0x47e3c6
mov eax, dword [esi]
jmp 0x47e3c8
mov eax, esi
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x47e3e7
cmp eax, 0x50
je 0x47e3e7
cmp eax, 0xb7
jne 0x47e539
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x21a]
push ecx
mov word [ebp - 0x21c], ax
call fcn.004b7180
add esp, 0xc
xor edx, edx
push 0xffffffffffffffff
push edx
push esi
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], dx
call fcn.004066a0
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 4], 0
call fcn.00417940
mov eax, dword [ebp - 0x238]
mov esi, 8
add esp, 4
cmp dword [ebp - 0x224], esi
jae 0x47e460
lea eax, [ebp - 0x238]
mov ecx, dword [edi]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x2c]
push 0
push 0
call eax
test eax, eax
jne 0x47e521
cmp dword [ebp - 0x224], esi
mov esi, dword [ebp - 0x238]
jae 0x47e48a
lea esi, [ebp - 0x238]
lea eax, [ebp - 0x21c]
mov ecx, eax
xor edi, edi
mov edx, 0x105
sub esi, ecx
jmp 0x47e4a0
lea ecx, [edx + 0x7ffffef9]
test ecx, ecx
je 0x47e4be
movzx ecx, word [esi + eax]
test cx, cx
je 0x47e4be
mov word [eax], cx
add eax, 2
dec edx
jne 0x47e4a0
jmp 0x47e4c2
test edx, edx
jne 0x47e4ca
sub eax, 2
mov edi, 0x8007007a
xor edx, edx
mov word [eax], dx
test edi, edi
js 0x47e521
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x47e521
push 0x4feebc
push 0x105
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00420830
test eax, eax
js 0x47e521
mov edx, dword [ebp - 0x240]
mov ecx, dword [edx]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
lea edx, [ebp - 0x21c]
push edx
push 0
push 0
call eax
test eax, eax
sete byte [ebp - 0x239]
cmp dword [ebp - 0x224], 8
jb 0x47e539
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.00406d09
add esp, 4
mov al, byte [ebp - 0x239]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret 4