joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460420
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 4], 0
call fcn.0045ff90
mov esi, eax
test esi, esi
jne 0x460448
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0045e9b0
mov edi, 1
test eax, eax
je 0x460483
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea esp, [esp]
push esi
call ebx
cmp eax, 0xffffffff
je 0x4604b1
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
test edi, edi
jne 0x4604b1
lea ecx, [ebp - 4]
call fcn.0045edc0
test eax, eax
jne 0x460460
jmp 0x4604b1
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea esp, [esp]
push esi
call ebx
cmp eax, 0xffffffff
je 0x4604b1
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, eax
test edi, edi
jne 0x4604b1
lea ecx, [ebp - 4]
call fcn.0045edc0
test eax, eax
jne 0x460490
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x4604ea
push 0x8556
push dword [ebp + 0xc]
mov edx, str.winDelete
mov ecx, 0xa0a
call fcn.0045ed00
add esp, 8
mov ebx, eax
push esi
call fcn.005ceead
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
call fcn.0045ee00
push esi
call fcn.005ceead
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x460750
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x685680]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x110]
push eax
push 0x104
push edx
push ecx
mov dword [ebp - 0x118], 0x200
call fcn.00460650
add esp, 0x10
test eax, eax
jne 0x460841
lea ecx, [ebp - 0x110]
call fcn.0045ff90
mov esi, eax
test esi, esi
je 0x46082c
call fcn.0045e9b0
test eax, eax
je 0x4607e8
cmp word [esi], 0
mov ecx, esi
je 0x4607c9
cmp word [ecx], 0x5c
je 0x4607c4
add ecx, 2
cmp word [ecx], 0
jne 0x4607b3
jmp 0x4607c9
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x114]
push eax
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x46081d
cmp byte [esi], 0
mov eax, esi
je 0x460800
nop
cmp byte [eax], 0x5c
je 0x4607fd
inc eax
cmp byte [eax], 0
jne 0x4607f0
jmp 0x460800
mov byte [eax], 0
lea eax, [ebp - 0x114]
push eax
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov edi, eax
call fcn.005ceead
add esp, 4
test edi, edi
jne 0x460841
mov eax, 0x200
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005cd355
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x118]
pop edi
xor ecx, ebp
pop esi
call fcn.005cd355
mov esp, ebp
pop ebp
ret

Function at 0x460ab0
Capabilities:
Get system information on windows

Disassembly:
push 0x24
push 0
push 0x693c00
call fcn.005d1b40
add esp, 0xc
push 0x693c00
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 1
push 0x687770
call fcn.0045a8c0
add esp, 8
xor eax, eax
ret
Function at 0x4645e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x685680]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov edx, dword [edi + 0x3c]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [edx], ebx
jne 0x46461b
push dword [edi + 0x78]
call fcn.00464120
mov ebx, eax
add esp, 4
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x4646f2
mov ecx, dword [edi + 0x18]
cmp ecx, dword [edi + 0x24]
jbe 0x464654
mov eax, dword [edi + 0x80]
push 0
cdq
push ecx
push edx
push eax
call fcn.005d4a90
mov ecx, dword [edi + 0x3c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], edx
push eax
mov edx, 5
call fcn.0045a530
mov eax, dword [edi + 0x18]
add esp, 4
mov dword [edi + 0x24], eax
test esi, esi
je 0x4646f0
mov ebx, dword [esi + 0xc]
cmp ebx, dword [edi + 0x18]
ja 0x4646e2
test byte [esi + 0x14], 0x20
jne 0x4646e2
mov eax, dword [edi + 0x80]
cdq
push edx
push eax
lea ecx, [ebx - 1]
push 0
push ecx
call fcn.005d4a90
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp ebx, 1
jne 0x464690
mov ecx, esi
call fcn.00463b10
push dword [ebp - 0x14]
mov eax, dword [esi]
push dword [ebp - 0x18]
mov ecx, dword [edi + 0x3c]
push dword [edi + 0x80]
mov edx, eax
mov dword [ebp - 0xc], eax
call fcn.0045a4a0
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp ebx, 1
jne 0x4646cb
mov eax, dword [ebp - 0xc]
add eax, 0x18
push 0x10
push eax
lea eax, [edi + 0x64]
push eax
call fcn.005cfcf0
add esp, 0xc
cmp ebx, dword [edi + 0x20]
jbe 0x4646d3
mov dword [edi + 0x20], ebx
push dword [esi]
mov ecx, dword [edi + 0x58]
mov edx, ebx
call fcn.00470410
add esp, 4
mov ebx, dword [ebp - 0x14]
mov esi, dword [esi + 8]
test ebx, ebx
je 0x464654
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005cd355
mov esp, ebp
pop ebp
ret
Function at 0x47ff10
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, edx
push esi
mov eax, ecx
push edi
mov dword [esp + 0xc], eax
test ebx, ebx
jne 0x47ff2f
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 0x50
call fcn.0045b600
mov edi, eax
test edi, edi
je 0x47ff26
mov esi, dword [ebp + 8]
mov edx, dword [ebx]
mov ecx, dword [esp + 0xc]
push esi
call fcn.0047fc30
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi], eax
mov edx, dword [ebx + 8]
push esi
call fcn.0047fd20
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi + 8], eax
mov edx, dword [ebx + 0xc]
push esi
call fcn.0047fc10
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi + 0xc], eax
mov edx, dword [ebx + 0x10]
push esi
call fcn.0047fc30
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi + 0x10], eax
mov edx, dword [ebx + 0x14]
push esi
call fcn.0047fc10
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi + 0x14], eax
mov edx, dword [ebx + 0x18]
push esi
call fcn.0047fc30
mov ecx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
mov al, byte [ebx + 4]
add esp, 4
mov byte [edi + 4], al
mov edx, dword [ebx + 0x1c]
push esi
call fcn.0047ff10
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi + 0x1c], eax
mov edx, dword [ebx + 0x28]
push esi
call fcn.0047fc10
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [edi + 0x28], eax
mov edx, dword [ebx + 0x2c]
push esi
call fcn.0047fc10
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov ax, word [ebx + 6]
add esp, 4
mov ecx, 0xfff7
and ax, cx
mov word [edi + 6], ax
mov dword [edi + 0x24], 0
mov dword [edi + 0x38], 0xffffffff
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi + 0x40], 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a6860
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x685680]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov eax, edx
push 0
mov ebx, ecx
push eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov edi, eax
test edi, edi
jne 0x4a68d0
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 0xf
mov byte [ebx], al
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005cd355
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.004b998e
add esp, 4
mov esi, eax
push esi
push edi
push 0
push dword [ebp - 0x114]
mov dword [ebp - 0x118], esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x4a6914
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x110]
push eax
push 0x650e58
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
jne 0x4a6941
push esi
call fcn.004b9997
add esp, 4
mov dword [ebx + 0x14], 0xf
pop esi
mov dword [ebx + 0x10], 0
pop edi
mov byte [ebx], 0
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005cd355
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x110]
push dword [ebp - 0x118]
movzx ecx, word [eax + 0xa]
movzx ebx, word [eax + 8]
movzx edi, word [eax + 0xe]
movzx esi, word [eax + 0xc]
mov dword [ebp - 0x114], ecx
call fcn.004b9997
push esi
push edi
push ebx
push dword [ebp - 0x114]
lea eax, [ebp - 0x108]
push str._d._d._d._d
push 0x104
push eax
call fcn.005ce01a
mov ecx, dword [ebp - 0x11c]
add esp, 0x20
lea eax, [ebp - 0x108]
push eax
call fcn.004034d0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x11c]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.005cd355
mov esp, ebp
pop ebp
ret
Function at 0x4a69c0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61157b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x685680]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0x103
lea eax, [ebp - 0x223]
push 0
push eax
mov dword [ebp - 0x240], 0
mov byte [ebp - 0x224], 0
call fcn.005d1b40
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push 0x103
lea eax, [ebp - 0x11b]
push 0
push eax
mov byte [ebp - 0x11c], 0
call fcn.005d1b40
add esp, 0xc
lea ecx, [ebp - 0x23c]
push 0x18
push str.GoogleChromeUser_Data_
mov dword [ebp - 0x228], 0xf
mov dword [ebp - 0x22c], 0
mov byte [ebp - 0x23c], 0
call fcn.00403850
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x23c]
mov dword [ebp - 4], 0
call fcn.004039d0
push 0x13
push str.Secure_Preferences
lea ecx, [ebp - 0x23c]
call fcn.00403d30
cmp dword [ebp - 0x228], 0x10
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
push 0x651db4
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.005ce01a
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
add esp, 0x14
mov byte [edi], 0
cmp byte [ebp - 0x11c], 0
jne 0x4a6af4
xor eax, eax
jmp 0x4a6b09
lea eax, [ebp - 0x11c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a6b00
sub eax, edx
push eax
lea eax, [ebp - 0x11c]
push eax
mov ecx, edi
call fcn.00403850
cmp dword [ebp - 0x228], 0x10
jb 0x4a6b2f
push dword [ebp - 0x23c]
call fcn.004b9997
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005cd355
mov esp, ebp
pop ebp
ret 4
Function at 0x4a6b50
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61157b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x685680]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0x103
lea eax, [ebp - 0x223]
push 0
push eax
mov dword [ebp - 0x240], 0
mov byte [ebp - 0x224], 0
call fcn.005d1b40
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push 0x103
lea eax, [ebp - 0x11b]
push 0
push eax
mov byte [ebp - 0x11c], 0
call fcn.005d1b40
add esp, 0xc
lea ecx, [ebp - 0x23c]
push 0x18
push str.GoogleChromeUser_Data_
mov dword [ebp - 0x228], 0xf
mov dword [ebp - 0x22c], 0
mov byte [ebp - 0x23c], 0
call fcn.00403850
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x23c]
mov dword [ebp - 4], 0
call fcn.004039d0
push 0xc
push str.Preferences
lea ecx, [ebp - 0x23c]
call fcn.00403d30
cmp dword [ebp - 0x228], 0x10
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
push 0x651db4
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.005ce01a
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
add esp, 0x14
mov byte [edi], 0
cmp byte [ebp - 0x11c], 0
jne 0x4a6c84
xor eax, eax
jmp 0x4a6c99
lea eax, [ebp - 0x11c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a6c90
sub eax, edx
push eax
lea eax, [ebp - 0x11c]
push eax
mov ecx, edi
call fcn.00403850
cmp dword [ebp - 0x228], 0x10
jb 0x4a6cbf
push dword [ebp - 0x23c]
call fcn.004b9997
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005cd355
mov esp, ebp
pop ebp
ret 4
Function at 0x4a6ce0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61157b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x685680]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0x103
lea eax, [ebp - 0x223]
push 0
push eax
mov dword [ebp - 0x240], 0
mov byte [ebp - 0x224], 0
call fcn.005d1b40
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push 0x103
lea eax, [ebp - 0x11b]
push 0
push eax
mov byte [ebp - 0x11c], 0
call fcn.005d1b40
add esp, 0xc
lea ecx, [ebp - 0x23c]
push 0x18
push str.GoogleChromeUser_Data_
mov dword [ebp - 0x228], 0xf
mov dword [ebp - 0x22c], 0
mov byte [ebp - 0x23c], 0
call fcn.00403850
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x23c]
mov dword [ebp - 4], 0
call fcn.004039d0
push 9
push str.Web_Data
lea ecx, [ebp - 0x23c]
call fcn.00403d30
cmp dword [ebp - 0x228], 0x10
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
push 0x651db4
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.005ce01a
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
add esp, 0x14
mov byte [edi], 0
cmp byte [ebp - 0x11c], 0
jne 0x4a6e14
xor eax, eax
jmp 0x4a6e29
lea eax, [ebp - 0x11c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a6e20
sub eax, edx
push eax
lea eax, [ebp - 0x11c]
push eax
mov ecx, edi
call fcn.00403850
cmp dword [ebp - 0x228], 0x10
jb 0x4a6e4f
push dword [ebp - 0x23c]
call fcn.004b9997
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005cd355
mov esp, ebp
pop ebp
ret 4
Function at 0x4a73c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x611460
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x685680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
push 0
push 0
push 3
push 0
mov dword [ebp - 4], 0
xor bl, bl
cmp dword [ebp + 0x1c], 0x10
push 0
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x4a74a5
push 0
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp - 0x28]
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.004acb90
push 0
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push eax
push esi
mov byte [edi + esi], bl
mov esi, dword [ebp - 0x18]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [edi], bl
jne 0x4a7482
xor ecx, ecx
jmp 0x4a7490
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a7487
sub ecx, edx
push ecx
mov ecx, dword [ebp - 0x1c]
push edi
call fcn.00403850
push edi
mov bl, 1
call fcn.004b9997
add esp, 4
cmp dword [ebp + 0x1c], 0x10
jb 0x4a74b6
push dword [ebp + 8]
call fcn.004b9997
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005cd355
mov esp, ebp
pop ebp
ret
Function at 0x4ad6e0
Capabilities:
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x685680]
xor eax, ebp
mov dword [ebp - 8], eax
mov edx, dword [ecx]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp edx, 1
jne 0x4ad73c
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 0xc]
je 0x4ad7fe
push dword [ebp + 0x10]
mov edx, dword [ecx + 0xc]
push edi
push dword [esi + 4]
sub edx, eax
push dword [esi]
mov ecx, eax
call fcn.004ad040
add esp, 0x10
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005cd355
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 4]
cmp dword [eax], 0
je 0x4ad7fe
cmp dword [eax + 4], 0
je 0x4ad7fe
test edx, edx
jne 0x4ad7fe
lea ecx, [ebp - 0xc]
push ecx
push edx
mov dword [ebp - 0xc], edx
push dword [eax + 4]
push 0x8009
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4ad7d9
push 0
lea eax, [ebp - 0x24]
push eax
xorps xmm0, xmm0
push 5
push dword [ebp - 0xc]
movq qword [ebp - 0x24], xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0x8004
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
je 0x4ad7d9
push 0
push dword [esi + 4]
push dword [esi]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4ad7d9
mov eax, dword [ebp + 0x10]
push 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push edi
push 2
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
setne bl
jmp 0x4ad7db
xor bl, bl
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x4ad7e9
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005cd355
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.005cd355
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4b0c80
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x685680]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x4b0cab
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005cd355
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x210]
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4b0c9a
lea eax, [ebp - 0x210]
push 0x6583f0
push eax
call fcn.005ef4b6
add esp, 8
test eax, eax
je 0x4b0ce5
xor ecx, ecx
mov word [eax + 2], cx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x214]
push eax
push 0
push 0
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x214], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4b0c9a
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov al, 1
pop esi
call fcn.005cd355
mov esp, ebp
pop ebp
ret
Function at 0x4b0d30
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x611fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x685680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x20], edi
mov ebx, ecx
push 0x100
call fcn.004b998e
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x1c], 0x80
mov dword [ebp - 0x14], 0x44
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test edi, edi
jne 0x4b0e0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4b0e0a
cmp dword [ebp - 0x14], 0x44
jbe 0x4b0dbb
xor bl, bl
jmp 0x4b0e0f
mov eax, dword [ebp - 0x1c]
cmp eax, 0x80
jbe 0x4b0def
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b998e
add esp, 4
mov edi, eax
test esi, esi
je 0x4b0ded
push esi
call fcn.004b9997
add esp, 4
mov esi, edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
push ebx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test edi, edi
setne bl
test esi, esi
je 0x4b0e1c
push esi
call fcn.004b9997
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005cd355
mov esp, ebp
pop ebp
ret

Function at 0x4b0e40
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x685680]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push esi
push edi
mov word [ebp - 0x24], ax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x74]
push eax
xorps xmm0, xmm0
lea eax, [ebp - 0x24]
push eax
mov edi, edx
mov esi, ecx
movq qword [ebp - 0x22], xmm0
movq qword [ebp - 0x1a], xmm0
movq qword [ebp - 0x12], xmm0
mov dword [ebp - 0x74], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x4b0ef8
push ecx
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x24]
call fcn.004b0d30
add esp, 4
test al, al
je 0x4b0ef8
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x8c]
call fcn.004b0bc0
mov ebx, eax
cmp esi, ebx
je 0x4b0ee4
cmp dword [esi + 0x14], 8
jb 0x4b0ec9
push dword [esi]
call fcn.004b9997
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push ebx
mov ecx, esi
mov word [esi], ax
call fcn.0044a1e0
cmp dword [ebp - 0x78], 8
jb 0x4b0ef8
push dword [ebp - 0x8c]
call fcn.004b9997
add esp, 4
mov ecx, edi
mov dword [edi], 0
call fcn.004b0c80
test al, al
mov al, 1
jne 0x4b0f11
mov dword [edi], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005cd355
mov esp, ebp
pop ebp
ret