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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3167
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x572734]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x30]
call fcn.004152e0
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 0x1000
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x30]
call fcn.00415890
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40aa59
cmp dword [ebp - 0x14], 1
je 0x40aa68
cmp dword [ebp - 0x14], 2
je 0x40aa68
push 0x500448
lea ecx, [ebp - 0x30]
call fcn.004155b0
jmp 0x40aadb
push 0xffffffffffffffff
lea ecx, [ebp - 0x30]
call fcn.00415930
lea ecx, [ebp - 0x30]
call fcn.00415b20
cmp dword [ebp - 0x14], 2
jne 0x40aadb
mov dword [ebp - 0x10], 0x1000
lea ecx, [ebp - 0x3c]
call fcn.004152e0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00415890
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x30]
call fcn.004157f0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x3c]
call fcn.00415930
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00415600
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00415310
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00415330
mov edx, dword [ebp - 0x18]
or edx, 1
mov dword [ebp - 0x18], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00415310
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x40ac10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40ac7b
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40ac71
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40adf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
jbe 0x40ae63
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40ae63
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 3
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40ae59
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x40ae70
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40aec9
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x40aebf
mov dword [ebp - 8], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x40b830
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e32b5
mov eax, dword fs:[0]
push eax
mov eax, 0x102c
call fcn.004e13f0
mov eax, dword [0x572734]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x1038]
call fcn.004152e0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1020], 0
lea eax, [ebp - 0x1020]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x102c], eax
cmp dword [ebp - 0x102c], 0
je 0x40b8ca
mov byte [ebp - 0x1016], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1038]
call fcn.00415310
mov al, byte [ebp - 0x1016]
jmp 0x40b999
mov dword [ebp - 0x1028], 0x800
mov dword [ebp - 0x1024], 0
mov dword [ebp - 0x101c], 0
jmp 0x40b8f9
mov eax, dword [ebp - 0x101c]
add eax, 1
mov dword [ebp - 0x101c], eax
cmp dword [ebp - 0x1024], 0
jne 0x40b97a
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x1028]
push ecx
lea edx, [ebp - 0x1014]
push edx
mov eax, dword [ebp - 0x101c]
push eax
mov ecx, dword [ebp - 0x1020]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x1024], eax
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.MSVCR120.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x40b96b
mov byte [ebp - 0x1017], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1038]
call fcn.00415310
mov al, byte [ebp - 0x1017]
jmp 0x40b999
mov dword [ebp - 0x1028], 0x800
jmp 0x40b8ea
mov byte [ebp - 0x1015], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1038]
call fcn.00415310
mov al, byte [ebp - 0x1015]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e134c
mov esp, ebp
pop ebp
ret
Function at 0x40c540
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3429
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x572734]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x219], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x22c], 0
lea ecx, [ebp - 0x244]
call fcn.004152e0
mov dword [ebp - 4], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x220], 0
push 0
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jbe 0x40c733
mov ecx, dword [ebp - 0x230]
add ecx, 1
push ecx
call sub.mfc120u.dll_Ordinal_265
add esp, 4
mov dword [ebp - 0x238], eax
mov edx, dword [ebp - 0x238]
mov dword [ebp - 0x224], edx
cmp dword [ebp - 0x224], 0
je 0x40c733
mov eax, dword [ebp - 0x224]
push eax
mov ecx, dword [ebp - 0x230]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40c70f
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x22c]
push ecx
push 0x4ffee0
mov edx, dword [ebp - 0x224]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40c70f
cmp dword [ebp - 0x220], 0
jbe 0x40c70f
mov eax, dword [ebp - 0x22c]
movzx ecx, word [eax + 2]
push ecx
mov edx, dword [ebp - 0x22c]
movzx eax, word [edx]
push eax
push str.StringFileInfo_04x_04xFileVersion
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.MSVCR120.dll_swprintf_s]
add esp, 0x14
mov dword [ebp - 0x220], 0
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x224]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40c70f
cmp dword [ebp - 0x220], 0
jbe 0x40c70f
cmp dword [ebp - 0x22c], 0
je 0x40c704
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
cmp ecx, dword [ebp - 0x220]
jbe 0x40c704
mov edx, dword [ebp - 0x220]
push edx
mov eax, dword [ebp - 0x22c]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp + 0xc]
mov word [eax + edx*2], cx
mov byte [ebp - 0x219], 1
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x220]
mov dword [ecx], edx
cmp dword [ebp - 0x224], 0
je 0x40c733
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 0x234]
push ecx
call sub.mfc120u.dll_Ordinal_266
add esp, 4
mov dl, byte [ebp - 0x219]
mov byte [ebp - 0x225], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.00415310
mov al, byte [ebp - 0x225]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e134c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d980
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x572734]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x20d], 0
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x214], 0x104
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x40da1e
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x214]
cmp edx, dword [ecx]
jae 0x40da13
mov eax, dword [ebp - 0x214]
add eax, 1
push eax
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
add esp, 0x10
mov byte [ebp - 0x20d], 1
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x214]
mov dword [edx], eax
mov al, byte [ebp - 0x20d]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e134c
mov esp, ebp
pop ebp
ret

Function at 0x40e280
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 8]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40e2d5
cmp dword [ebp - 8], 3
jne 0x40e2d5
cmp dword [ebp + 0x10], 0
je 0x40e2d3
mov dword [ebp - 0xc], 1
jmp 0x40e2e7
cmp dword [ebp - 4], 0xea
je 0x40e2e7
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x40e2f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e36f1
mov eax, dword fs:[0]
push eax
mov eax, 0x2060
call fcn.004e13f0
mov eax, dword [0x572734]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x202c], 0
lea ecx, [ebp - 0x203c]
call fcn.004152e0
mov dword [ebp - 4], 1
mov dword [ebp - 0x201c], 0
lea eax, [ebp - 0x201c]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e4fb
mov dword [ebp - 0x2024], 0x800
mov dword [ebp - 0x2030], 0x800
mov dword [ebp - 0x2020], 0
mov dword [ebp - 0x2028], 0
lea eax, [ebp - 0x2030]
push eax
lea ecx, [ebp - 0x1014]
push ecx
lea edx, [ebp - 0x2028]
push edx
push 0
lea eax, [ebp - 0x2024]
push eax
lea ecx, [ebp - 0x2018]
push ecx
mov edx, dword [ebp - 0x2020]
push edx
mov eax, dword [ebp - 0x201c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40e4ee
cmp dword [ebp - 0x2028], 1
jne 0x40e4c6
lea ecx, [ebp - 0x203c]
call fcn.00415810
test eax, eax
jle 0x40e423
push 0x5013c8
lea ecx, [ebp - 0x2054]
call fcn.004153a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2054]
push ecx
lea ecx, [ebp - 0x203c]
call fcn.00415710
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2054]
call fcn.00415310
lea edx, [ebp - 0x2018]
push edx
lea ecx, [ebp - 0x206c]
call fcn.004153a0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x206c]
push eax
lea ecx, [ebp - 0x203c]
call fcn.00415710
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x206c]
call fcn.00415310
push 0x5013cc
lea ecx, [ebp - 0x2060]
call fcn.004153a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2060]
push ecx
lea ecx, [ebp - 0x203c]
call fcn.00415710
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2060]
call fcn.00415310
lea edx, [ebp - 0x1014]
push edx
lea ecx, [ebp - 0x2048]
call fcn.004153a0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x2048]
push eax
lea ecx, [ebp - 0x203c]
call fcn.00415710
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2048]
call fcn.00415310
mov ecx, dword [ebp - 0x2020]
add ecx, 1
mov dword [ebp - 0x2020], ecx
mov dword [ebp - 0x2024], 0x800
mov dword [ebp - 0x2030], 0x800
jmp 0x40e391
mov edx, dword [ebp - 0x201c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x203c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00415330
mov ecx, dword [ebp - 0x202c]
or ecx, 1
mov dword [ebp - 0x202c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x203c]
call fcn.00415310
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e134c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x414160
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x572734]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [0x574684], 0
push 1
push str.ServicesActive
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x414199
mov al, byte [0x574684]
jmp 0x414258
push 0x14
push 0x502278
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4141c7
push 4
push 0x50228c
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x24], 0
jne 0x4141de
mov al, byte [0x574684]
jmp 0x414258
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x414201
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [0x574684]
jmp 0x414258
cmp dword [ebp - 0x1c], 4
jne 0x41421f
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [0x574684], 1
mov al, byte [0x574684]
jmp 0x414258
push 0
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x414242
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [0x574684]
jmp 0x414258
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [0x574684], 1
mov al, byte [0x574684]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e134c
mov esp, ebp
pop ebp
ret

Function at 0x415190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4151b4
xor eax, eax
jmp 0x415234
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4151cb
xor eax, eax
jmp 0x415234
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x415217
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x415217
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x4151ee
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x415223
xor eax, eax
jmp 0x415234
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x415231
xor eax, eax
jmp 0x415234
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x418660
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x572734]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x15], 0
mov eax, dword [ebp + 0xc]
add eax, 0x11
push eax
call sub.mfc120u.dll_Ordinal_265
add esp, 4
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
je 0x418736
push 0x10
push 0x36
mov edx, dword [ebp - 0x1c]
push edx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0xc]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x1c]
add ecx, 0x10
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x28], 0
jmp 0x4186d0
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0x10
jae 0x4186f4
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 0x28]
movzx ecx, byte [eax]
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x28]
movzx eax, byte [edx]
xor eax, ecx
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x28]
mov byte [ecx], al
jmp 0x4186c7
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
add edx, 0x10
push edx
call dword [sym.imp.MSVCR120.dll_memcpy_s]
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00418610
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
call sub.mfc120u.dll_Ordinal_266
add esp, 4
push 0x20
call sub.mfc120u.dll_Ordinal_265
add esp, 4
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
je 0x4187d6
push 0x10
push 0x5c
mov eax, dword [ebp - 0x20]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x24], 0
jmp 0x418775
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0x10
jae 0x418799
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 0x24]
movzx eax, byte [edx]
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x24]
movzx edx, byte [ecx]
xor edx, eax
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x24]
mov byte [eax], dl
jmp 0x41876c
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push 0x10
mov edx, dword [ebp - 0x20]
add edx, 0x10
push edx
call dword [sym.imp.MSVCR120.dll_memmove_s]
add esp, 0x10
mov eax, dword [ebp + 0x14]
push eax
push 0x20
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00418610
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
call sub.mfc120u.dll_Ordinal_266
add esp, 4
mov byte [ebp - 0x15], 1
mov al, byte [ebp - 0x15]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e134c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x427010
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e558c
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x572734]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 0x248], 0
call fcn.00406200
mov dword [ebp - 0x258], eax
lea ecx, [ebp - 0x254]
call fcn.004152e0
mov dword [ebp - 4], 1
xor eax, eax
mov word [ebp - 0x22c], ax
push 0x208
push 0
lea ecx, [ebp - 0x22a]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x25c]
shl eax, 1
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0x20a
jae 0x4270bb
jmp 0x4270c0
call fcn.004e15a8
xor ecx, ecx
mov edx, dword [ebp - 0x244]
mov word [ebp + edx - 0x22c], cx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov dword [ebp - 0x23c], 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x23c]
push ecx
push 0
push 0
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [ebp - 0x23c]
push eax
push str._016x
lea ecx, [ebp - 0x254]
push ecx
call fcn.00415bb0
add esp, 0xc
mov byte [ebp - 0x20], 0
xor edx, edx
mov dword [ebp - 0x1f], edx
mov dword [ebp - 0x1b], edx
mov dword [ebp - 0x17], edx
mov word [ebp - 0x13], dx
mov byte [ebp - 0x11], dl
lea ecx, [ebp - 0x254]
call fcn.004157f0
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jne 0x42715e
mov dword [ebp - 0x240], 0
jmp 0x4271d7
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.MSVCR120.dll_wcslen]
add esp, 4
add eax, 1
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0x3fffffff
jle 0x42718f
mov dword [ebp - 0x238], 0
jmp 0x4271cb
mov eax, dword [ebp - 0x234]
shl eax, 1
call fcn.004e13c0
mov dword [ebp - 0x264], esp
mov ecx, dword [ebp - 0x258]
push ecx
mov edx, dword [ebp - 0x234]
shl edx, 1
push edx
mov eax, dword [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x264]
push ecx
call fcn.004060d0
mov dword [ebp - 0x238], eax
mov edx, dword [ebp - 0x238]
mov dword [ebp - 0x240], edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x254]
call fcn.00415810
push eax
mov ecx, dword [ebp - 0x240]
push ecx
call fcn.00418610
push 0x10
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x278]
push eax
call fcn.0040b300
add esp, 0xc
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x268]
mov dword [ebp - 0x260], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x260]
push edx
lea ecx, [ebp - 0x254]
call fcn.00415600
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x278]
call fcn.00415310
lea eax, [ebp - 0x254]
push eax
mov ecx, dword [ebp + 8]
call fcn.00415330
mov ecx, dword [ebp - 0x248]
or ecx, 1
mov dword [ebp - 0x248], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x254]
call fcn.00415310
mov eax, dword [ebp + 8]
lea esp, [ebp - 0x27c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e134c
mov esp, ebp
pop ebp
ret 4