joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4412cf
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 8]
push edi
xor ebx, ebx
push eax
push ebx
push 8
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x441332
call esi
cmp eax, 0x3f0
jne 0x441329
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
je 0x4413a1
cmp eax, ebx
je 0x4413a1
lea eax, [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 8]
call edi
test eax, eax
jne 0x4413a1
call esi
cmp eax, 0x7a
jne 0x4413a1
push dword [ebp - 4]
call fcn.00444d77
mov esi, eax
pop ecx
lea eax, [ebp - 4]
cmp esi, ebx
push eax
push dword [ebp - 4]
setne byte [ebp - 0x24]
push esi
push 2
push dword [ebp - 8]
call edi
test eax, eax
je 0x441395
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x1c]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4413a5
cmp byte [ebp - 0x24], bl
je 0x4413a1
push esi
call fcn.00444394
pop ecx
xor eax, eax
jmp 0x4413f0
xor edi, edi
cmp dword [esi], ebx
mov dword [ebp - 0x14], ebx
jbe 0x4413d8
lea eax, [esi + 4]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4413d1
add dword [ebp - 0xc], 8
inc edi
cmp edi, dword [esi]
jb 0x4413b4
jmp 0x4413d8
mov dword [ebp - 0x14], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [ebp - 0x24], bl
je 0x4413ed
push esi
call fcn.00444394
pop ecx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4413f5
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov ecx, dword [ebp + 8]
cmp dword [0x49b728], ecx
jne 0x441410
mov eax, dword [0x4939ec]
cmp eax, 0xffffffff
jne 0x441450
lea eax, [ebp - 0x14]
push 0x14
push eax
push 0x1004
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jle 0x44144a
lea eax, [ebp - 0x14]
push eax
call fcn.00446d37
pop ecx
lea ecx, [ebp - 0x34]
push 2
push ecx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x44144a
movsx eax, word [ebp - 0x34]
mov dword [0x4939ec], eax
mov ax, word [0x4939ec]
leave
ret
Function at 0x441ce7
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x478933
call fcn.00444d58
sub esp, 0x460
and byte [ebp - 0x33c], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x33b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, 0x104
lea eax, [ebp - 0x33c]
push ebx
push eax
push dword [0x49b6f8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x33c]
lea ecx, [ebp - 0x46c]
push eax
call fcn.0043e52b
and byte [ebp - 0x134], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x133]
and dword [ebp - 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x49aeb8
mov ecx, esi
stosb byte es:[edi], al
call fcn.0040198d
push eax
lea eax, [ebp - 0x46c]
push eax
call fcn.00441eb4
pop ecx
test eax, eax
pop ecx
je 0x441dd8
and byte [ebp - 0x238], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x237]
mov byte [ebp - 0xd], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x238]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x134]
push eax
push 0
lea eax, [ebp - 0x238]
push 0x493c30
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x134]
push 0
push eax
mov ecx, esi
call fcn.0040198d
push eax
lea ecx, [ebp - 0x46c]
call fcn.0043f31a
jmp 0x441e35
mov eax, 0x49a2c8
mov ecx, eax
test ecx, ecx
je 0x441dfc
cmp byte [0x49a2c8], 0
je 0x441dfc
push eax
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x441e31
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x33c]
push eax
call fcn.0044089c
mov ecx, esi
call fcn.0040198d
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.00440ae2
and byte [ebp - 0xd], 0
lea ecx, [ebp - 0x30]
call fcn.00402671
lea eax, [ebp - 0x134]
lea ecx, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.004026b9
push dword [ebp + 0x14]
lea ecx, [ebp - 0x30]
push dword [ebp + 0x10]
push 0x498d98
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004028b8
cmp byte [ebp - 0xd], 0
pop edi
pop esi
pop ebx
je 0x441e7f
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00402af0
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00403ae0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x46c]
call fcn.0043eb6b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x4421f7
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4789f4
call fcn.00444d58
sub esp, 0x60
push ebx
push esi
lea eax, [ebp - 0xd]
push 1
push eax
lea ecx, [ebp - 0x6c]
push dword [0x47c094]
call fcn.0040175f
lea eax, [ebp - 0xe]
push 1
push eax
xor ebx, ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.0040175f
mov esi, dword [ebp + 0xc]
push 0xa
lea eax, [ebp - 0x6c]
push ebx
push eax
lea eax, [ebp - 0x44]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004323eb
lea ecx, [ebp - 0x44]
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], bl
call fcn.00401bc2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00401bc2
cmp dword [ebp + 0xc], 4
jne 0x44230f
lea eax, [ebp - 0x6c]
push 4
push eax
mov ecx, esi
call fcn.004083bc
push str.1.20.1827.0
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.0040305e
push eax
call fcn.00440d95
pop ecx
pop ecx
test eax, eax
setge byte [ebp + 0xf]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00401f95
cmp byte [ebp + 0xf], bl
je 0x4422b6
mov esi, 0x300
jmp 0x44236f
lea eax, [ebp + 0xf]
push 1
push eax
lea ecx, [ebp - 0x44]
push dword [0x47c0a8]
call fcn.0040175f
lea eax, [ebp - 0xe]
push 1
push eax
lea ecx, [ebp - 0x6c]
push dword [ebp + 8]
mov dword [ebp - 4], 3
call fcn.0040175f
push 0xa
lea eax, [ebp - 0x44]
push ebx
push eax
lea eax, [ebp - 0x6c]
mov ecx, esi
push eax
mov byte [ebp - 4], 4
call fcn.004323eb
lea ecx, [ebp - 0x6c]
mov esi, eax
mov byte [ebp - 4], 3
call fcn.00401bc2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
jmp 0x442366
lea eax, [ebp + 0xf]
push 1
push eax
lea ecx, [ebp - 0x44]
push dword [0x47c0a8]
call fcn.0040175f
lea eax, [ebp - 0xe]
push 1
push eax
lea ecx, [ebp - 0x6c]
push dword [ebp + 8]
mov dword [ebp - 4], 5
call fcn.0040175f
push 0xa
lea eax, [ebp - 0x44]
push ebx
push eax
lea eax, [ebp - 0x6c]
mov ecx, esi
push eax
mov byte [ebp - 4], 6
call fcn.004323eb
lea ecx, [ebp - 0x6c]
mov esi, eax
mov byte [ebp - 4], 5
call fcn.00401bc2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00401bc2
cmp esi, ebx
je 0x4423e1
mov dword [ebp + 8], ebx
push 0x20019
push str.SystemCurrentControlSetControlWindows
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 8]
mov dword [ebp - 4], 7
call fcn.00417ceb
test eax, eax
jne 0x4423d3
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push str.CSDVersion
mov dword [ebp - 0x1c], ebx
push dword [ebp + 8]
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x14], esi
jae 0x4423d3
cmp dword [ebp + 8], ebx
je 0x4423cf
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4423e4
cmp dword [ebp + 8], ebx
je 0x4423e1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x44e036
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x496530
cmp edx, dword [eax]
je 0x44e058
add eax, 8
inc ecx
cmp eax, 0x4965c0
jl 0x44e049
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x496530]
jne 0x44e186
mov eax, dword [0x49b7a8]
cmp eax, 1
je 0x44e160
test eax, eax
jne 0x44e089
cmp dword [0x493d74], 1
je 0x44e160
cmp edx, 0xfc
je 0x44e186
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44e0c0
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00444870
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004450c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x44e103
lea eax, [ebp - 0x1a4]
push eax
call fcn.004450c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x47d260
push edi
call fcn.00444fc0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00444870
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00444880
lea eax, [ebp - 0xa0]
push 0x47d240
push eax
call fcn.00444880
push dword [esi + 0x496534]
lea eax, [ebp - 0xa0]
push eax
call fcn.00444880
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004510a3
add esp, 0x2c
pop edi
jmp 0x44e186
lea eax, [ebp + 8]
lea esi, [esi + 0x496534]
push 0
push eax
push dword [esi]
call fcn.004450c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x456a01
Capabilities:
Create directory

Disassembly:
mov eax, 0x478fe0
call fcn.00444d58
sub esp, 0x60
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x6c]
push ebx
push ebx
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00402d65
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0040200f
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], bl
call fcn.00401f95
lea eax, [ebp - 0x6c]
lea ecx, [ebp + 8]
push eax
call fcn.00405020
lea ecx, [ebp - 0x6c]
call fcn.00401f95
lea ecx, [ebp + 8]
mov dword [0x49bb24], ebx
call fcn.0040434f
mov byte [ebp - 0xd], al
lea eax, [ebp - 0xe]
mov edi, 0x47b598
push ebx
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0x47b5a0
mov dword [ebp - 0x24], edi
call fcn.00402b2c
mov byte [ebp - 4], 2
xor esi, esi
mov dword [ebp - 0x14], 1
push 1
lea eax, [ebp - 0x1c]
push esi
push eax
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x1c], 0x5c
call fcn.00404016
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x456b4a
sub eax, esi
lea ecx, [ebp + 8]
inc eax
push eax
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.00402d31
lea esi, [ebp - 0x6c]
lea eax, [ebp - 0x68]
neg esi
sbb esi, esi
push 0x490dd0
and esi, eax
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.00427b5e
test eax, eax
je 0x456aeb
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x44]
push eax
call fcn.00419bd1
jmp 0x456afb
push dword [0x47b5a8]
lea ecx, [ebp - 0x40]
push ebx
push esi
call fcn.00410795
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 1
lea esi, [eax + 1]
jle 0x456b3e
cmp dword [ebp - 0x14], 4
jg 0x456b12
cmp byte [ebp - 0xd], bl
jne 0x456b3e
push ebx
lea ecx, [ebp - 0x44]
call fcn.0040305e
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x456b3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [0x49bb24], eax
jne 0x456b7f
mov dword [0x49bb24], ebx
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00401f95
inc dword [ebp - 0x14]
cmp dword [ebp - 0x18], 0xffffffff
jne 0x456a8a
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.00401f95
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401f95
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
sub esp, 0x28
lea eax, [ebp - 0x44]
mov dword [ebp - 0x18], esp
mov ecx, esp
push ebx
push eax
mov dword [ecx], 0x47b5a0
mov dword [ecx + 0x20], edi
call fcn.00403e42
call fcn.00454f63
add esp, 0x28
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00401f95
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.00401f95
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401f95
xor al, al
jmp 0x456b70
Function at 0x456e37
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x94], 0x94
and dword [eax], 0
lea eax, [ebp - 0x94]
and dword [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 1
jne 0x456eb2
cmp dword [ebp - 0x8c], 0
je 0x456eaa
cmp dword [ebp - 0x8c], 0xa
je 0x456e95
cmp dword [ebp - 0x8c], 0x5a
je 0x456e9e
xor al, al
mov dword [esi], 0x80
jmp 0x456f16
call fcn.004571ef
test al, al
je 0x456ea2
mov al, 1
jmp 0x456e8a
mov dword [esi], 0x40
jmp 0x456f00
mov dword [esi], 0x10
jmp 0x456f00
cmp dword [ebp - 0x84], 2
jne 0x456f14
mov eax, dword [ebp - 0x90]
sub eax, 4
je 0x456f0c
mov ecx, dword [ebp - 0x8c]
dec eax
je 0x456edc
dec eax
je 0x456f04
xor al, al
mov dword [esi], 0x1000000
jmp 0x456f16
test ecx, ecx
jne 0x456ee8
mov dword [esi], 0x100000
jmp 0x456f00
cmp ecx, 1
jne 0x456ef5
mov dword [esi], 0x400000
jmp 0x456f00
cmp ecx, 2
jne 0x456f04
mov dword [esi], 0x800000
mov al, 1
jmp 0x456f16
test ecx, ecx
jne 0x456ed2
mov al, 1
jmp 0x456ed4
mov dword [esi], 0x10000
jmp 0x456f00
xor al, al
pop esi
leave
ret

Function at 0x457303
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4790bf
call fcn.00444d58
sub esp, 0x15c
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
push 1
mov esi, 0x104
pop ebx
cmp dword [ebp + 0xc], ebx
jne 0x4573ae
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x4573ae
push str.GetSystemWindowsDirectoryA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x497828], eax
je 0x4573ae
lea ecx, [ebp - 0x168]
push esi
push ecx
call eax
test eax, eax
je 0x4573ae
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x168]
mov edi, 0x47db68
mov esi, 0x47db60
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x44], esi
call fcn.004023fe
push 0x490dd0
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], ebx
call fcn.00457440
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403e42
mov dword [ebp - 0x14], ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
jmp 0x457429
lea eax, [ebp - 0x168]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x4573d6
lea ecx, [ebp - 0x30]
call fcn.00455516
lea eax, [ebp - 0x30]
push 0x48a248
push eax
call fcn.00446365
lea eax, [ebp - 0xd]
push 0
push eax
lea eax, [ebp - 0x168]
mov edi, 0x47db68
mov esi, 0x47db60
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x1c], esi
call fcn.004023fe
push 0x490dd0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 2
call fcn.00457440
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403e42
and byte [ebp - 4], 0
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x3c]
call fcn.00401f95
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4587a3
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x479347
call fcn.00444d58
sub esp, 0x4c
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0xd]
push ebx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 3
mov dword [ebp - 0x58], 0x47b5a0
mov dword [ebp - 0x38], 0x47b598
call fcn.00402b2c
mov dword [ebp - 0x14], ebx
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 5
call fcn.0040305e
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push ecx
push 0x20019
push ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x458811
lea ecx, [ebp - 0x14]
call fcn.0040d722
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
cmp eax, ebx
push edi
mov esi, eax
jne 0x45888a
mov esi, dword [ebp - 0x14]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x24]
push ebx
push eax
push ebx
lea ecx, [ebp + 0x38]
call fcn.0040305e
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push esi
call edi
mov esi, eax
cmp esi, ebx
jne 0x45888a
push dword [ebp + 0xc]
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x58]
push eax
call fcn.004024e5
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 6
call fcn.0040305e
lea ecx, [ebp + 0x38]
mov dword [ebp - 0x18], eax
mov dword [esi + 8], eax
call fcn.0040305e
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x1c], ebx
push ecx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x18]
push ecx
push ebx
push eax
push dword [ebp - 0x14]
call edi
lea ecx, [ebp - 0x30]
mov esi, eax
mov byte [ebp - 4], 5
call fcn.004025f7
cmp esi, ebx
mov dword [0x49bb24], esi
pop edi
lea eax, [ebp - 0x58]
je 0x45889b
lea eax, [ebp + 0x60]
mov esi, dword [ebp + 8]
push ebx
push eax
mov ecx, esi
mov dword [esi], 0x47b5a0
mov dword [esi + 0x20], 0x47b598
call fcn.00403e42
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x14], ebx
je 0x4588cc
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.00401f95
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.00401f95
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 1
call fcn.00401f95
lea ecx, [ebp + 0x60]
mov byte [ebp - 4], bl
call fcn.00401f95
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x45904a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x459072
xor al, al
leave
ret
cmp dword [ebp - 0x84], 2
jne 0x459089
cmp dword [ebp - 0x90], 5
jb 0x459089
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x45ae49
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x45ae8e
mov eax, dword [ebp + 8]
test eax, eax
je 0x45ae63
and dword [eax], 0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45aeea
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0045ad43
lea eax, [ebp - 0x4c]
push 0x48ae98
push eax
call fcn.00446365
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45aeea
cmp dword [ebp + 8], 0
jne 0x45aec3
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.004554aa
lea eax, [ebp - 0x48]
push 0x489c50
push eax
call fcn.00446365
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x45aeea
push 1
add esi, 0xc
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.0045ac7c
lea eax, [ebp - 0x48]
push 0x489c50
push eax
call fcn.00446365
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x45d12a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x45d13e
push 1
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x45d172
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.004601bf
test al, al
jne 0x45d1a5
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0045ad43
lea eax, [ebp - 0x4c]
push 0x48ae98
push eax
call fcn.00446365
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45d1a5
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.004554aa
lea eax, [ebp - 0x48]
push 0x489c50
push eax
call fcn.00446365
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x45d1ad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x45d1c3
mov dword [ebp + 0xc], 1
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x45d1f8
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.004554aa
lea eax, [ebp - 0x48]
push 0x489c50
push eax
call fcn.00446365
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8
Function at 0x45d200
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x45d214
push 1
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x45d248
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.004601bf
test al, al
jne 0x45d27b
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0045ad43
lea eax, [ebp - 0x4c]
push 0x48ae98
push eax
call fcn.00446365
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45d27b
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.004554aa
lea eax, [ebp - 0x48]
push 0x489c50
push eax
call fcn.00446365
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x45d283
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x45d299
mov dword [ebp + 0xc], 1
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x45d2ce
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.004554aa
lea eax, [ebp - 0x48]
push 0x489c50
push eax
call fcn.00446365
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8

Function at 0x45d2d6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x45d2ec
mov eax, 0x1ed
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x45d320
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.004601bf
test al, al
jne 0x45d353
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0045ad43
lea eax, [ebp - 0x4c]
push 0x48ae98
push eax
call fcn.00446365
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45d353
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.004554aa
lea eax, [ebp - 0x48]
push 0x489c50
push eax
call fcn.00446365
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x45d35b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x45d371
mov eax, 0x28e
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x45d3a5
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.004601bf
test al, al
jne 0x45d3d8
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0045ad43
lea eax, [ebp - 0x4c]
push 0x48ae98
push eax
call fcn.00446365
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45d3d8
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.004554aa
lea eax, [ebp - 0x48]
push 0x489c50
push eax
call fcn.00446365
mov eax, dword [ebp + 8]
pop esi
leave
ret 8