joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10127b10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x101870dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x228], ecx
cmp dword [ebp + 8], 0
je 0x10127b35
cmp dword [ebp + 0xc], 0
ja 0x10127b3a
jmp 0x10127be5
mov dword [ebp - 0x21c], str._ALLUSERSPROFILE_Application_DataAhnLabAIS
mov ecx, dword [ebp - 0x228]
call fcn.101279d0
cmp eax, 1
jne 0x10127b5e
mov dword [ebp - 0x21c], str._PROGRAMDATA_AhnLabAIS
xor eax, eax
mov word [ebp - 0x218], ax
push 0x208
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.10108c60
add esp, 0xc
push 0x105
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x220], eax
xor ecx, ecx
cmp ecx, dword [ebp - 0x220]
sbb edx, edx
neg edx
mov dword [ebp - 0x224], edx
jne 0x10127bc8
push 0x105
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x10127be5
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.100019a0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10108bbf
mov esp, ebp
pop ebp
ret 8

Function at 0x10127c00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 8], 0
jne 0x10127c14
jmp 0x10127d01
mov dword [ebp - 4], 0
mov dword [ebp - 4], 4
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
push 0
push 0
push str.DebugLogMaxSize
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10127c53
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0x800000
mov dword [ebp - 4], 0x208
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 0x218
push edx
push 0
push 0
push str.DebugLogPath
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10127c98
mov ecx, dword [ebp - 0x10]
add ecx, 0x218
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x10127cb1
push 0x10180428
push 0x104
mov edx, dword [ebp - 0x10]
add edx, 0x218
push edx
call fcn.100019a0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 4
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push str.DebugLogTime
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10127d01
cmp dword [ebp - 8], 1
jb 0x10127d01
cmp dword [ebp - 8], 0x3c
ja 0x10127d01
mov eax, dword [ebp - 8]
imul eax, eax, 0xea60
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xeb8], eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10127d10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 4
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x14]
push eax
call fcn.10127ae0
push eax
push 0
mov ecx, dword [ebp - 0x18]
add ecx, 0xcac
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10127dd5
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push str.DebugLog
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10127db7
cmp dword [ebp - 0xc], 1
jne 0x10127db7
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0xca4], 0
jne 0x10127dae
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.10127c00
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0xca4], 1
mov dword [ebp - 8], 1
jmp 0x10127dcb
mov edx, dword [ebp - 0x18]
mov dword [edx + 0xca4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0xeb4], 1
jne 0x10127df8
push 0x400
mov edx, dword [ebp - 0x18]
add edx, 0x218
push edx
mov ecx, dword [ebp - 0x18]
call fcn.10127b10
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0xebc], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x10127e10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x101870dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x81c], ecx
mov eax, dword [ebp - 0x81c]
cmp dword [eax + 0xca8], 1
jne 0x10127e42
mov eax, 0x4df
jmp 0x1012807d
mov ecx, dword [ebp - 0x81c]
movzx edx, word [ecx + 0xa98]
test edx, edx
jne 0x10127e5d
mov eax, 0xd
jmp 0x1012807d
mov dword [ebp - 0x80c], 0
lea eax, [ebp - 0x80c]
push eax
call fcn.10127ae0
push eax
push 0
mov ecx, dword [ebp - 0x81c]
add ecx, 0xcac
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
jne 0x10127fd0
mov dword [ebp - 0x818], 4
lea edx, [ebp - 0x818]
push edx
mov eax, dword [ebp - 0x81c]
add eax, 8
push eax
push 0
push 0
push str.DebugLogDelPolicy
mov ecx, dword [ebp - 0x80c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
je 0x10127eee
mov edx, dword [ebp - 0x81c]
mov dword [edx + 8], 3
mov eax, dword [ebp - 0x81c]
movzx ecx, word [eax + 0x218]
test ecx, ecx
jne 0x10127fc3
mov edx, dword [ebp - 0x81c]
cmp dword [edx + 0xeb4], 1
jne 0x10127f33
push 0x400
mov eax, dword [ebp - 0x81c]
add eax, 0x218
push eax
mov ecx, dword [ebp - 0x81c]
call fcn.10127b10
jmp 0x10127fc3
mov dword [ebp - 0x818], 0x208
push 0x800
push 0
mov ecx, dword [ebp - 0x81c]
add ecx, 0x218
push ecx
call fcn.10108c60
add esp, 0xc
lea edx, [ebp - 0x818]
push edx
mov eax, dword [ebp - 0x81c]
add eax, 0x218
push eax
push 0
push 0
push str.DebugLogPath
mov ecx, dword [ebp - 0x80c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
jne 0x10127fa8
mov edx, dword [ebp - 0x81c]
add edx, 0x218
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x10127fc3
push 0x10180428
push 0x400
mov eax, dword [ebp - 0x81c]
add eax, 0x218
push eax
call fcn.100019a0
mov ecx, dword [ebp - 0x80c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov word [ebp - 0x808], dx
push 0x7fe
push 0
lea eax, [ebp - 0x806]
push eax
call fcn.10108c60
add esp, 0xc
mov ecx, dword [ebp - 0x81c]
add ecx, 0x10
push ecx
mov edx, dword [ebp - 0x81c]
add edx, 0x218
push edx
push str._s_s.logs
push 0x800
lea eax, [ebp - 0x808]
push eax
call fcn.100036c0
add esp, 0x14
push 0
push 3
mov ecx, dword [ebp - 0x81c]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x81c]
mov ecx, dword [eax + 4]
push ecx
push 0x10180368
mov edx, dword [ebp - 0x81c]
add edx, 0xa98
push edx
lea eax, [ebp - 0x808]
push eax
call fcn.10020a30
add esp, 0x1c
mov dword [ebp - 0x814], eax
cmp dword [ebp - 0x814], 0
jne 0x10128077
mov ecx, dword [ebp - 0x81c]
mov dword [ecx + 0xca8], 1
mov eax, dword [ebp - 0x814]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10108bbf
mov esp, ebp
pop ebp
ret
Function at 0x10128470
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 4
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x14]
push eax
call fcn.10127ae0
push eax
push 0
mov ecx, dword [ebp - 0x18]
add ecx, 0xcac
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10128535
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push str.ErrLog
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10128517
cmp dword [ebp - 0xc], 1
jne 0x10128517
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0xca4], 0
jne 0x1012850e
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.10127c00
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0xca4], 1
mov dword [ebp - 8], 1
jmp 0x1012852b
mov edx, dword [ebp - 0x18]
mov dword [edx + 0xca4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0xeb4], 1
jne 0x10128558
push 0x400
mov edx, dword [ebp - 0x18]
add edx, 0x218
push edx
mov ecx, dword [ebp - 0x18]
call fcn.10127b10
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x10128ae0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x101870dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5c
jne 0x10128b36
mov edx, dword [ebp + 8]
movzx eax, word [edx + 2]
cmp eax, 0x3f
jne 0x10128b36
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 4]
cmp edx, 0x3f
jne 0x10128b36
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 6]
cmp ecx, 0x5c
jne 0x10128b36
mov edx, dword [ebp + 8]
add edx, 8
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100019a0
push str.SystemRoot
call fcn.101090dc
add esp, 4
push eax
push str.SystemRoot
mov edx, dword [ebp + 8]
push edx
call fcn.10109700
add esp, 0xc
test eax, eax
jne 0x10128bf5
push 0x5c
mov eax, dword [ebp + 8]
push eax
call fcn.10001760
add esp, 8
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x10128b8b
mov ecx, dword [ebp - 0x214]
add ecx, 2
mov dword [ebp - 0x218], ecx
jmp 0x10128b94
mov edx, dword [ebp + 8]
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x214], eax
push 0x5c
mov ecx, dword [ebp - 0x214]
push ecx
call fcn.10109321
add esp, 8
mov dword [ebp - 0x214], eax
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [ebp - 0x214]
push eax
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.10001a40
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100019a0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10108bbf
mov esp, ebp
pop ebp
ret
Function at 0x10129020
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x101870dc]
xor eax, ebp
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x10129130
mov dword [ebp - 0x24], 0x10179e18
mov dword [ebp - 0x20], 0x1017a99c
mov dword [ebp - 0x1c], 0x1017a9b0
mov dword [ebp - 0x18], 0x1017a9c8
mov dword [ebp - 0x14], 0x1017a9dc
mov dword [ebp - 0x10], 0x1017a9f0
mov dword [ebp - 0xc], 0x1017aa04
mov dword [ebp - 8], 0x1017aa1c
mov dword [ebp - 0x28], 0
jmp 0x10129092
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 8
jae 0x1012912e
xor eax, eax
mov word [ebp - 0x830], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x82e]
push ecx
call fcn.10108c60
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x400
lea eax, [ebp - 0x830]
push eax
call fcn.100019a0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + ecx*4 - 0x24]
push edx
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x830]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10129129
push 0
push str..esmgmt.cpp
mov ecx, 0x1019d688
call fcn.101281f0
lea edx, [ebp - 0x830]
push edx
push str.not_exist__s_
push 0x1019d688
call fcn.10128830
add esp, 0xc
mov dword [ebp - 4], 0
jmp 0x1012912e
jmp 0x10129089
jmp 0x10129134
xor eax, eax
jmp 0x10129137
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.10108bbf
mov esp, ebp
pop ebp
ret
Function at 0x1012b400
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012f47f
mov eax, dword fs:[0]
push eax
sub esp, 0xc28
mov eax, dword [0x101870dc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
jne 0x1012b43b
mov eax, 0x57
jmp 0x1012b5e8
cmp dword [ebp + 0xc], 0
jne 0x1012b44b
mov eax, 0x57
jmp 0x1012b5e8
mov dword [ebp - 0x220], 0x400
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0xc2c]
push ecx
call fcn.10126f70
add esp, 8
mov dword [ebp - 0x10], eax
xor edx, edx
mov word [ebp - 0x42c], dx
push 0x206
push 0
lea eax, [ebp - 0x42a]
push eax
call fcn.10108c60
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x21c], cx
push 0x206
push 0
lea edx, [ebp - 0x21a]
push edx
call fcn.10108c60
add esp, 0xc
cmp dword [ebp - 0x10], 0
jne 0x1012b5e5
mov eax, dword [str.BldInfo.ini]
push eax
push 0x400
lea ecx, [ebp - 0xc2c]
push ecx
call fcn.10001a40
lea edx, [ebp - 0xc2c]
push edx
push 0x104
lea eax, [ebp - 0x42c]
push eax
push 0
mov ecx, dword [str.BuildNumber]
push ecx
mov edx, dword [str.Build]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xc2c]
push eax
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push 0
mov edx, dword [str.State]
push edx
mov eax, dword [str.Build]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0xc30]
call fcn.10001be0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xc30]
push ecx
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x42c]
push eax
call fcn.1012b2c0
add esp, 0xc
lea ecx, [ebp - 0xc30]
call fcn.10002390
mov dword [ebp - 0xc34], eax
cmp dword [ebp - 0xc34], 0
jne 0x1012b597
mov dword [ebp - 0x10], 0xd
push 0
push str..esmgmt.cpp
mov ecx, 0x1019d688
call fcn.101281f0
mov ecx, dword [ebp - 0x10]
push ecx
push str._MakeBuildNumber__Query__Ret:_u_
push 0x1019d688
call fcn.10128830
add esp, 0xc
jmp 0x1012b5d3
mov edx, dword [ebp - 0xc34]
cmp edx, dword [ebp + 0xc]
jg 0x1012b5cc
lea ecx, [ebp - 0xc30]
call fcn.10003960
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100019a0
xor edx, edx
mov eax, dword [ebp - 0xc34]
mov ecx, dword [ebp + 8]
mov word [ecx + eax*2], dx
jmp 0x1012b5d3
mov dword [ebp - 0x10], 0x7a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc30]
call fcn.10001ca0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10108bbf
mov esp, ebp
pop ebp
ret
Function at 0x1012bd30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x101870dc]
xor eax, ebp
mov dword [ebp - 8], eax
xor eax, eax
mov word [ebp - 0x808], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x806]
push ecx
call fcn.10108c60
add esp, 0xc
mov dword [ebp - 4], 0x400
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x808]
push eax
call fcn.10126f70
add esp, 8
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
jne 0x1012be54
push 0x10179e18
lea ecx, [ebp - 0x808]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x808]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1012be0d
lea eax, [ebp - 0x80c]
push eax
lea ecx, [ebp - 0x808]
push ecx
call fcn.101262d0
add esp, 8
movzx edx, al
test edx, edx
jne 0x1012be0b
push 0
push str..esmgmt.cpp
mov ecx, 0x1019d688
call fcn.101281f0
lea eax, [ebp - 0x808]
push eax
mov ecx, dword [ebp - 0x80c]
push ecx
push str._cpr__svf___u___s
push 0x1019d688
call fcn.10128830
add esp, 0x10
mov eax, dword [ebp - 0x80c]
jmp 0x1012be8c
jmp 0x1012be52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x80c], eax
push 0
push str..esmgmt.cpp
mov ecx, 0x1019d688
call fcn.101281f0
lea edx, [ebp - 0x808]
push edx
mov eax, dword [ebp - 0x80c]
push eax
push str._cpr__svc_not_exist__u___s_
push 0x1019d688
call fcn.10128830
add esp, 0x10
mov eax, dword [ebp - 0x80c]
jmp 0x1012be8c
jmp 0x1012be86
push 0
push str..esmgmt.cpp
mov ecx, 0x1019d688
call fcn.101281f0
mov ecx, dword [ebp - 0x80c]
push ecx
push str._cpr__gip__u_
push 0x1019d688
call fcn.10128830
add esp, 0xc
mov eax, dword [ebp - 0x80c]
jmp 0x1012be8c
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10108bbf
mov esp, ebp
pop ebp
ret
Function at 0x1012db80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.1010be30
mov eax, dword [0x101870dc]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0
jne 0x1012dba4
xor eax, eax
jmp 0x1012dc94
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x1012dbb5
xor eax, eax
jmp 0x1012dc94
mov dword [ebp - 4], 0x1000
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x2010], eax
mov edx, dword [ebp - 0x2010]
lea eax, [edx + edx + 2]
push eax
call fcn.10109636
add esp, 4
mov dword [ebp - 0x200c], eax
cmp dword [ebp - 0x200c], 0
jne 0x1012dbf5
xor eax, eax
jmp 0x1012dc94
mov ecx, dword [ebp - 0x2010]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x200c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1012dc2d
mov eax, dword [ebp - 0x200c]
push eax
call fcn.10108bce
add esp, 4
mov dword [ebp - 0x200c], 0
xor eax, eax
jmp 0x1012dc94
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x200c]
push edx
push 0x1017a054
push 0x1000
lea eax, [ebp - 0x2008]
push eax
call fcn.10001b00
add esp, 0x14
push 8
push 0
lea ecx, [ebp - 0x2008]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x2014], eax
mov edx, dword [ebp - 0x200c]
push edx
call fcn.10108bce
add esp, 4
mov dword [ebp - 0x200c], 0
cmp dword [ebp - 0x2014], 0
je 0x1012dc92
mov eax, dword [ebp - 0x2014]
jmp 0x1012dc94
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10108bbf
mov esp, ebp
pop ebp
ret
Function at 0x1012dcb0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x101870dc]
xor eax, ebp
mov dword [ebp - 8], eax
xor eax, eax
mov word [ebp - 0x42c], ax
xor ecx, ecx
mov dword [ebp - 0x42a], ecx
mov dword [ebp - 0x41c], 0
xor edx, edx
mov word [ebp - 0x638], dx
push 0x206
push 0
lea eax, [ebp - 0x636]
push eax
call fcn.10108c60
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x418], cx
push 0x206
push 0
lea edx, [ebp - 0x416]
push edx
call fcn.10108c60
add esp, 0xc
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.10108c60
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 4], eax
push 0x101805cc
push 3
lea edx, [ebp - 0x42c]
push edx
call fcn.10001b00
add esp, 0xc
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x420], 0
jmp 0x1012dd89
mov eax, dword [ebp - 0x420]
add eax, 1
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0x104
jae 0x1012ddf1
mov ecx, dword [ebp - 0x420]
mov edx, dword [ebp + 8]
movzx eax, word [edx + ecx*2]
cmp eax, 0x5c
jne 0x1012ddb6
mov ecx, dword [ebp - 0x424]
add ecx, 1
mov dword [ebp - 0x424], ecx
mov edx, dword [ebp - 0x420]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2]
test ecx, ecx
jne 0x1012ddc9
jmp 0x1012ddf1
cmp dword [ebp - 0x424], 3
jne 0x1012ddd4
jmp 0x1012ddf1
mov edx, dword [ebp - 0x420]
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp + 8]
mov ax, word [ecx + eax*2]
mov word [ebp + edx*2 - 0x418], ax
jmp 0x1012dd7a
cmp dword [ebp - 0x424], 3
jae 0x1012de04
mov eax, 0x57
jmp 0x1012dee2
mov ecx, dword [ebp - 0x420]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*2]
push eax
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.10001a40
mov edx, dword [ebp - 4]
mov dword [ebp - 0x41c], edx
jmp 0x1012de4d
mov eax, dword [ebp - 0x41c]
shr eax, 1
mov dword [ebp - 0x41c], eax
mov cx, word [ebp - 0x42c]
add cx, 1
mov word [ebp - 0x42c], cx
movzx edx, word [ebp - 0x42c]
cmp edx, 0x5b
jge 0x1012dedd
mov eax, dword [ebp - 0x41c]
and eax, 1
jne 0x1012de6a
jmp 0x1012de2d
push 0x208
push 0
lea ecx, [ebp - 0x638]
push ecx
call fcn.10108c60
add esp, 0xc
push 0x104
lea edx, [ebp - 0x638]
push edx
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x638]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1012ded8
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x42c]
push ecx
push str._s_s
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10001b00
add esp, 0x14
xor eax, eax
jmp 0x1012dee2
jmp 0x1012de2d
mov eax, 0x57
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10108bbf
mov esp, ebp
pop ebp
ret
Function at 0x401ae0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x224]
sub esp, 0x224
push 0xffffffffffffffff
push 0x415c48
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x41f00c]
xor eax, ebp
mov dword [ebp + 0x220], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 0x22c]
mov edi, 0x80004005
mov dword [ebp - 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x401b37
mov eax, dword [esi]
jmp 0x401b39
mov eax, esi
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push 0
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401c3c
push 0x208
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.004065f0
add esp, 0xc
mov dword [ebp - 0x14], 0x208
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x41b958
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401c33
cmp dword [esi + 0x14], 8
jb 0x401ba4
mov esi, dword [esi]
xor eax, eax
mov dword [ebp + 0x14], 7
mov dword [ebp + 0x10], 0
mov word [ebp], ax
cmp word [esi], ax
jne 0x401bc1
xor ecx, ecx
jmp 0x401bd5
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401bc6
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp]
call fcn.004022c0
lea eax, [ebp]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.00402010
cmp word [ebp + 0x18], 0
mov esi, eax
jne 0x401bfe
xor ecx, ecx
jmp 0x401c13
lea ecx, [ebp + 0x18]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401c04
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp + 0x18]
mov ecx, esi
push eax
call fcn.004022c0
mov eax, dword [ebp + 0x14]
cmp eax, 8
jb 0x401c31
inc eax
push eax
push dword [ebp]
call fcn.004024b0
xor edi, edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x220]
xor ecx, ebp
call fcn.004043c7
lea esp, [ebp + 0x224]
pop ebp
ret 4
Function at 0x401c70
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
mov eax, dword [ebp]
mov esi, dword [eax]
cmp esi, eax
je 0x401d4c
push edi
nop word [eax + eax]
lea eax, [esi + 0x10]
mov dword [esp + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x401ca3
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push 0x20006
push 0
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401cf9
cmp dword [esi + 0x3c], 8
lea ecx, [esi + 0x28]
jb 0x401cca
mov ecx, dword [ecx]
mov eax, dword [esi + 0x38]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push 0x41b958
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x401cfe
mov ebx, 0x80004005
cmp byte [esi + 0xd], 0
jne 0x401d42
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x401d23
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x401d42
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x401d17
jmp 0x401d42
mov ecx, dword [esi + 4]
cmp byte [ecx + 0xd], 0
jne 0x401d40
nop dword [eax]
cmp esi, dword [ecx + 8]
jne 0x401d40
mov esi, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x401d30
mov esi, ecx
cmp esi, dword [ebp]
jne 0x401c90
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret