joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405790
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454905
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x474298]
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, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
cmp dword [edi + 0x10], 0
je 0x4058c5
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4057db
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4058c5
push edi
lea ecx, [ebp - 0x40]
call fcn.004017f0
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004017f0
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x4599cc
push eax
call fcn.0042882a
add esp, 8
test eax, eax
je 0x40582e
push 0xb
push str.__enableetw
lea ecx, [ebp - 0x28]
call fcn.00402f00
xor eax, eax
mov dword [ebp - 0x94], 0x44
push 0x40
push eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x90]
push eax
call fcn.004286d0
add esp, 0xc
cmp dword [esi + 0x10], 0
jne 0x405862
xor esi, esi
jmp 0x40586a
cmp dword [esi + 0x14], 8
jb 0x40586a
mov esi, dword [esi]
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x50]
push edx
lea edx, [ebp - 0x94]
push edx
push 0
push 0
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push 0
cmovae eax, dword [ebp - 0x40]
push esi
push ecx
push eax
call fcn.0041bf90
add esp, 0x20
test eax, eax
je 0x4058ae
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4058ae
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x50]
lea ecx, [ebp - 0x28]
call fcn.00401fd0
lea ecx, [ebp - 0x40]
call fcn.00401fd0
mov eax, esi
jmp 0x4058c7
xor eax, eax
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.00426a09
mov esp, ebp
pop ebp
ret

Function at 0x4060a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
je 0x4060dc
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4060b7
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4060dc
cmp dword [esi + 0x14], 8
jb 0x4060ca
mov esi, dword [esi]
push esi
call fcn.004215b0
add esp, 4
test eax, eax
je 0x4060dc
mov al, 1
pop esi
pop ebp
ret
xor al, al
pop esi
pop ebp
ret
Function at 0x407f20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454bc5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x474298]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x407f9d
push dword [0x474048]
call fcn.00407240
add esp, 4
mov ecx, dword [ebx + 0x2c]
mov dword [ebp - 4], 0
mov dword [ebx + 0x2c], eax
test ecx, ecx
je 0x407f7c
push ecx
lea ecx, [ebx + 0x2c]
call fcn.00407220
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x407f9d
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x14
call fcn.0042676c
mov esi, eax
mov dword [ebp - 0x10], eax
add esp, 4
mov dword [ebp - 0x18], esi
xor ecx, ecx
mov dword [ebp - 4], 1
push ecx
mov dword [eax], ecx
push ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
push ecx
mov dword [eax + 0xc], ecx
push ecx
mov dword [eax + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
mov edx, esi
mov byte [ebp - 4], 2
mov dword [edx + 0x10], eax
mov dword [edx + 8], ecx
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x408018
push dword [0x474048]
call fcn.00407240
add esp, 4
mov ecx, dword [ebx + 0x2c]
mov byte [ebp - 4], 3
mov dword [ebx + 0x2c], eax
test ecx, ecx
je 0x408014
push ecx
lea ecx, [ebx + 0x2c]
call fcn.00407220
mov eax, dword [ebx + 0x2c]
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x10]
push edi
push 0
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408044
mov eax, dword [ebp + 8]
push eax
push str._ld_not_overlapped
call fcn.00408590
add esp, 8
mov bl, 1
jmp 0x40806b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x408080
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
push str._ld_readfile_failed:__ld
call fcn.00408590
add esp, 0xc
xor bl, bl
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4080cd
cmp eax, 0xffffffff
je 0x4080cd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4080cd
mov eax, dword [ebx + 0x10]
lea ecx, [ebx + 0xc]
xor esi, esi
mov dword [ebp + 8], edi
mov dword [ebp - 0x18], esi
cmp eax, dword [ebx + 0x14]
je 0x40809b
mov dword [eax], edi
add dword [ecx + 4], 4
jmp 0x4080a5
lea edx, [ebp + 8]
push edx
push eax
call fcn.00407260
mov edx, dword [ebx + 0x1c]
lea ecx, [ebx + 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], esi
mov dword [ebp + 8], eax
cmp edx, dword [ebx + 0x20]
je 0x4080c1
mov dword [edx], eax
add dword [ecx + 4], 4
jmp 0x4080cb
lea eax, [ebp + 8]
push eax
push edx
call fcn.00407260
mov bl, 1
test esi, esi
je 0x4080dc
push 0x14
push esi
call fcn.0042679c
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4085a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40860c
mov esi, dword [ebp + 0x18]
mov dword [ebp - 8], 3
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 3
jne 0x40860c
mov eax, dword [ebp - 0xc]
push dword [ebp - 4]
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40864f
mov eax, dword [ebp + 0x14]
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
test esi, esi
pop esi
cmove eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4086a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
call fcn.0042e490
add esp, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x408707
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x409dd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x474298]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp word [ecx + 0x4bc], 0
lea esi, [ecx + 0x4bc]
mov edi, dword [ebp + 8]
je 0x409ec7
mov ecx, esi
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409e31
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00403170
push 0x5c
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004088f0
push edi
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.00408880
add esp, 0x18
mov ecx, edi
push eax
call fcn.004022e0
lea ecx, [ebp - 0x40]
call fcn.00401fd0
lea ecx, [ebp - 0x58]
call fcn.00401fd0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x409f79
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409f6f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409f98
jmp 0x409f6f
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x409eed
push 0x208
push eax
push esi
call fcn.004286d0
add esp, 0xc
xor al, al
jmp 0x409f7b
mov ecx, esi
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409f10
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00403170
push 0x5c
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004088f0
push edi
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
push eax
call fcn.00408880
add esp, 0x18
mov ecx, edi
push eax
call fcn.004022e0
lea ecx, [ebp - 0x70]
call fcn.00401fd0
lea ecx, [ebp - 0x88]
jmp 0x409e85
push edx
push ecx
call fcn.0042679c
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426a09
mov esp, ebp
pop ebp
ret 4
call fcn.0042b0ff
int3
Function at 0x409fa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x474298]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp word [ecx + 0x2b4], 0
lea esi, [ecx + 0x2b4]
mov edi, dword [ebp + 8]
je 0x40a097
mov ecx, esi
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a001
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00403170
push 0x5c
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004088f0
push edi
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.00408880
add esp, 0x18
mov ecx, edi
push eax
call fcn.004022e0
lea ecx, [ebp - 0x40]
call fcn.00401fd0
lea ecx, [ebp - 0x58]
call fcn.00401fd0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40a179
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a16f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a198
jmp 0x40a16f
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
jne 0x40a0e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40a0d2
push 0x208
push 0
push esi
call fcn.004286d0
add esp, 0xc
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40a0e9
push 0x208
push 0
push esi
call fcn.004286d0
add esp, 0xc
xor al, al
jmp 0x40a17b
mov ecx, esi
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a110
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00403170
push 0x5c
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004088f0
push edi
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
push eax
call fcn.00408880
add esp, 0x18
mov ecx, edi
push eax
call fcn.004022e0
lea ecx, [ebp - 0x70]
call fcn.00401fd0
lea ecx, [ebp - 0x88]
jmp 0x40a055
push edx
push ecx
call fcn.0042679c
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426a09
mov esp, ebp
pop ebp
ret 4
call fcn.0042b0ff
int3

Function at 0x40a590
Capabilities:
Get common file path

Disassembly:
cmp word [ecx + 0xc], 0
push esi
lea esi, [ecx + 0xc]
jne 0x40a5a8
push 0
push 0x1a
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, esi
pop esi
ret
Function at 0x40c220
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4551a8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x474298]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
xor eax, eax
mov dword [edi + 0xc], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 7
mov word [edi + 0xc], ax
lea esi, [edi + 0x28]
mov dword [edi + 0x24], eax
push 0x40
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.0042676c
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xor eax, eax
mov dword [edi + 0x30], 0
mov word [edi + 0x30], ax
mov eax, edi
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40faa0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455765
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x474298]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x58]
push 1
push eax
mov dword [ebp - 0x5c], esi
call fcn.00417400
push str.cfgs_setup.cfg
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
call fcn.00401480
add esp, 0x14
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x40fb32
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fb28
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc80
push edx
push ecx
call fcn.0042679c
add esp, 8
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
mov byte [ebp - 4], 3
call fcn.00403170
push 0x208
mov byte [ebp - 4], 4
call fcn.004267aa
add esp, 4
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov edi, eax
cmovae ecx, dword [ebp - 0x28]
push ecx
push 0x104
push edi
push 0x459620
push str.BuildId
push str.Info
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, edi
mov dword [esi], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fbc0
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.00403170
push edi
call fcn.004267b3
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 8
jb 0x40fc17
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fc0d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc85
push edx
push ecx
call fcn.0042679c
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x40fc61
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fc57
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc85
push edx
push ecx
call fcn.0042679c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426a09
mov esp, ebp
pop ebp
ret 4
call fcn.0042b0ff
call fcn.0042b0ff
int3
Function at 0x410dc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4559a7
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x474298]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x21c], 1
call fcn.004286d0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
je 0x410e6d
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410e60
jmp 0x410ebb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x410ece
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004286d0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x410ece
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410eb0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00403170
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426a09
mov esp, ebp
pop ebp
ret
Function at 0x4124a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x474298]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, edx
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x2c], eax
lea edi, [ecx + 2]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 7
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4124e0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.00403170
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x20]
push ecx
push 0x20219
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
cmovae eax, dword [ebp - 0x1c]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x412587
push dword [ebp - 0x20]
call edi
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x20]
push ecx
push 0x20119
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x412587
push dword [ebp - 0x20]
call edi
mov esi, 0x80004005
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x4125d5
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4125cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4125e7
jmp 0x4125cb
mov eax, dword [ebp + 0x18]
add eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x20]
mov esi, eax
call edi
test esi, esi
jne 0x412554
mov eax, dword [ebp - 0x24]
cmp eax, 1
je 0x4125c7
cmp eax, 2
jne 0x412554
xor esi, esi
jmp 0x412559
push edx
push ecx
call fcn.0042679c
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00426a09
mov esp, ebp
pop ebp
ret
call fcn.0042b0ff
int3

Function at 0x4125f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x412624
xor al, al
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0x14]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x412632
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [esi + 0x14], 8
lea eax, [eax*2 + 2]
jb 0x412648
mov esi, dword [esi]
push eax
push esi
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret
Function at 0x412e50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455c50
mov eax, dword fs:[0]
push eax
sub esp, 0x328
mov eax, dword [0x474298]
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 esi, ecx
mov dword [ebp - 0x334], esi
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x412e91
mov eax, dword [eax]
push 0x45cc08
push eax
call fcn.0042f4fc
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x413049
push 2
push 0
push ebx
call fcn.0042fc11
push ebx
call fcn.004302b8
add esp, 0x10
cmp eax, 0x201
jl 0x41303c
push 0x202
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.004286d0
push 2
push 0xfffffdff
push ebx
call fcn.0042fc11
push ebx
push 0x201
lea eax, [ebp - 0x214]
push 1
push eax
call fcn.0042f7ff
add esp, 0x28
cmp byte [ebp - 0x214], 0x3b
jne 0x41303c
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0xf
mov byte [ebp - 0x22c], 0
push 0x210
mov dword [ebp - 4], 0
call fcn.0042676c
mov edi, eax
mov dword [ebp - 0x330], eax
mov ecx, 0x80
mov dword [ebp - 0x21c], 0x200
lea esi, [ebp - 0x213]
mov dword [ebp - 0x218], 0x20f
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x200]
mov esi, eax
mov byte [edi], 0
push 0x20
mov dword [ebp - 0x22c], esi
call fcn.0042676c
mov ecx, dword [0x45cc10]
push 0x100
mov dword [ebp - 0x330], eax
mov dword [eax], ecx
mov ecx, dword [0x45cc14]
mov dword [eax + 4], ecx
mov ecx, dword [0x45cc18]
mov dword [eax + 8], ecx
mov ecx, dword [0x45cc1c]
mov dword [eax + 0xc], ecx
mov byte [eax + 0x10], 0
lea eax, [ebp - 0x32c]
push 0
push eax
call fcn.004286d0
mov eax, dword [ebp - 0x330]
add esp, 0x14
mov ecx, eax
lea edx, [eax + 0x10]
cmp eax, edx
je 0x412fe4
movzx eax, byte [ecx]
inc ecx
mov byte [ebp + eax - 0x32c], 1
cmp ecx, edx
jne 0x412fd4
mov ecx, esi
cmp esi, edi
jae 0x413002
lea ebx, [ebx]
movzx eax, byte [ecx]
cmp byte [ebp + eax - 0x32c], 0
je 0x41300e
inc ecx
cmp ecx, edi
jb 0x412ff0
mov eax, dword [ebp - 0x334]
mov byte [eax + 0x3e], 0
jmp 0x41301f
sub ecx, esi
cmp ecx, 0xffffffff
je 0x413002
mov eax, dword [ebp - 0x334]
mov byte [eax + 0x3e], 1
push 0x20
push dword [ebp - 0x330]
call fcn.0042679c
push 0x210
push esi
call fcn.0042679c
add esp, 0x10
jmp 0x413040
mov byte [esi + 0x3e], 1
push ebx
call fcn.0042f595
add esp, 4
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.00426a09
mov esp, ebp
pop ebp
ret