joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40af00
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c322
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4be5b4]
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]
lea eax, [ebp - 0x218]
push 0x208
push 0
mov dword [ebp - 0x228], esi
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], 0
call fcn.00432c40
add esp, 0xc
call fcn.0040b4c0
mov ecx, eax
test ecx, ecx
je 0x40b03f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 1
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 1
push eax
push str.Setup_Path
push str.SOFTWARELDSGameMaster
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x220], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40b023
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b023
push str.LDSGameVer.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b023
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b005
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00416a50
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.0042c75e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004068b0
int3
Function at 0x410080
Capabilities:
Create process on windows

Disassembly:
call fcn.0040b420
mov ecx, eax
call fcn.0041b4f0
cmp eax, 3
je 0x41009d
cmp eax, 4
je 0x41009d
mov eax, dword [0x4c2554]
jmp 0x41009f
xor eax, eax
push 0x485a58
push 0x485a5c
push 0x485a60
push 1
push dword [0x4c24d8]
push eax
call fcn.0044f2f0
cmp eax, 6
je 0x4100c6
cmp eax, 8
jne 0x4100de
push 1
push 0
push 0
push 0x485a8c
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
Function at 0x414250
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x67c
mov eax, dword [0x4be5b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x678], eax
test esi, esi
je 0x4143e2
test eax, eax
je 0x4143e2
push ebx
mov ebx, 0x81
cmp dword [ebp + 0x10], ebx
push edi
cmovle ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
cmp edi, ebx
jge 0x4143cd
push 0x210
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.00432c40
add esp, 0xc
lea eax, [ebp - 0x424]
push 0x48451c
push dword [ebp - 0x678]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x250
lea eax, [ebp - 0x674]
push 0
push eax
call fcn.00432c40
add esp, 0xc
lea eax, [ebp - 0x674]
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x67c], eax
cmp eax, 0xffffffff
je 0x4143cd
push 0x210
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.00432c40
add esp, 0xc
lea eax, [ebp - 0x648]
push eax
push dword [ebp - 0x678]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test dword [ebp - 0x674], 0x10
jne 0x414356
lea eax, [ebp - 0x674]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [edi + 1]
push eax
push esi
call fcn.00408930
jmp 0x41438e
cmp word [ebp - 0x648], 0x2e
jne 0x41437c
mov ax, word [ebp - 0x646]
test ax, ax
je 0x41438e
cmp ax, 0x2e
jne 0x41437c
cmp word [ebp - 0x644], 0
je 0x41438e
lea eax, [edi + 1]
push eax
push ebx
lea eax, [ebp - 0x214]
push eax
push esi
call fcn.00414250
lea ecx, [ebp - 0x674]
push ecx
push dword [ebp - 0x67c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x414300
push dword [ebp - 0x67c]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop ebx
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c75e
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c75e
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0042c75e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x414880
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47cd66
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4be5b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x41492c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x41492c
call fcn.004067f0
mov edi, eax
jmp 0x414a4b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x41494f
call fcn.004067f0
jmp 0x414a3e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x41496d
call fcn.004067f0
jmp 0x414a3e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x41498e
mov edi, 0x8007000e
jmp 0x414a40
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x414a84
jb 0x4149ac
cmp eax, 0xffffffff
ja 0x414a84
cmp eax, 0x400
jbe 0x4149c1
push eax
lea ecx, [ebp - 0x418]
call fcn.00405f40
jmp 0x4149e7
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x4149e7
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x4149fe
mov edi, 0x8007000e
jmp 0x414a40
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x414a1e
call fcn.004067f0
jmp 0x414a3e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.004146e0
mov edi, eax
test esi, esi
je 0x414a4b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x414a64
lea ecx, [ebp - 0x418]
call fcn.00409ef0
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 - 0x14]
xor ecx, ebp
call fcn.0042c75e
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.004068b0
int3
Function at 0x4179c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x417a19
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x417a19
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x417a0a
cmp esi, edx
jae 0x417a19
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4179f8
cmp esi, edx
jae 0x417a19
cmp word [esi], 0
je 0x417a19
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x420810
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi - 0x24]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
lea ecx, [esi - 0x28]
call fcn.00420750
pop esi
ret
Function at 0x420f90
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0
push ebx
push esi
push edi
mov ebx, ecx
jne 0x421182
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebx + 0x3fc]
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ecx
push dword [ebp + 0xc]
lea ecx, [ebx + 0x2c]
push dword [ebp + 8]
call fcn.00420d30
mov dword [ebx + 0x3fc], esi
test eax, eax
jne 0x421098
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 0x14]
lea eax, [ebx + 0x404]
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
push eax
call fcn.00457220
cmp edi, 1
jne 0x421008
push dword [ebp + 0x14]
mov ecx, ebx
mov dword [ebx + 0x400], edi
call fcn.0041edb0
jmp 0x421173
cmp edi, 2
jne 0x42102e
push dword [ebx + 0x488]
mov dword [ebx + 0x400], 0
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi], 0
jmp 0x421175
cmp edi, 0x10
jne 0x42104f
mov ecx, ebx
mov dword [ebx + 0x400], 1
call fcn.0041e570
mov dword [esi], 0
jmp 0x421175
cmp edi, 0x4a
jne 0x421075
push dword [ebp + 0x14]
mov dword [ebx + 0x400], 1
push ecx
mov ecx, dword [ebp + 0x10]
mov eax, esp
mov dword [eax], ecx
mov ecx, ebx
call fcn.0041e630
jmp 0x421173
cmp edi, 0x8c88
jne 0x4210a4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [ebx + 0x5d4]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov dword [esi], 0
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
cmp edi, 0x8c8c
jne 0x4210c7
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x5d4], eax
mov eax, 1
mov dword [esi], 0
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
cmp edi, 0x111
jne 0x421153
mov eax, dword [ebp + 0x10]
movzx edi, ax
mov eax, 0x101
cmp ax, di
jne 0x421107
push 5
push dword [ebx + 4]
mov dword [ebx + 0x400], 1
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi], 0
cmp dword [ebx + 0x400], 0
jne 0x421098
mov eax, 0x102
cmp ax, di
jne 0x421182
push 0x485ecc
push 0x485ed8
push 0x486d58
push 1
push dword [ebx + 4]
mov dword [ebx + 0x400], 1
push 1
call fcn.0044f2f0
cmp eax, 7
je 0x421140
cmp eax, 5
jne 0x42114b
call fcn.0045f500
push eax
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov dword [esi], 0
jmp 0x421175
cmp edi, 0xe1e
jne 0x421182
push dword [ebp + 0x14]
mov ecx, ebx
mov dword [ebx + 0x400], 1
push dword [ebp + 0x10]
push edi
call fcn.0041f0b0
mov dword [esi], eax
cmp dword [ebx + 0x400], 0
jne 0x421098
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x18
Function at 0x422d40
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d93b
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x4be5b4]
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 eax, dword [ebp + 0x10]
xor esi, esi
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x430], esi
movzx eax, byte [ebp + 0x18]
lea edx, [ebp - 0x424]
xor eax, 1
mov dword [ebp - 4], esi
inc eax
mov dword [ebp - 0x424], esi
push edx
shl eax, 8
or eax, 0x20019
push eax
push esi
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x422e90
mov esi, dword [ebp - 0x424]
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00432c40
add esp, 0xc
mov dword [ebp - 0x424], 0x208
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0
push dword [ebp - 0x428]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x422e9f
mov eax, dword [ebp - 0x42c]
cmp eax, 1
je 0x422e27
cmp eax, 2
jne 0x422e9f
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x422e44
test al, 1
jne 0x422e9f
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x422e4d
jmp 0x422e9f
xor eax, eax
mov word [ebp - 0x218], ax
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00432c40
add esp, 0xc
lea eax, [ebp - 0x218]
test edi, edi
je 0x422e82
push edi
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
jmp 0x422ea1
push eax
push ebx
push str.open_reg:__s_Failed:_d
call fcn.0044e890
add esp, 0xc
xor bl, bl
test esi, esi
je 0x422eac
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042c75e
mov esp, ebp
pop ebp
ret
Function at 0x427910
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0
push ebx
push esi
push edi
mov ebx, ecx
jne 0x427aa1
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
cmp ecx, 0x111
jne 0x4279dd
movzx edx, ax
mov esi, 0x202
cmp si, dx
jne 0x427981
push str.exit_finish_inst
push str.installpkg
call fcn.0040b360
push eax
call fcn.00450840
add esp, 0xc
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebx + 0x44]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
mov esi, 0x301
cmp si, dx
jne 0x4279af
lea ecx, [ebp + 0x10]
shr eax, 0x10
push ecx
push dword [ebp + 0x14]
mov ecx, ebx
push esi
push eax
call fcn.004276e0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
mov esi, 0x302
cmp si, dx
jne 0x4279dd
lea ecx, [ebp + 0x10]
shr eax, 0x10
push ecx
push dword [ebp + 0x14]
mov ecx, ebx
push esi
push eax
call fcn.00427310
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
mov edx, dword [ebx + 0x40]
mov esi, dword [ebx + 0x2c]
push 0
push dword [ebp + 0x18]
mov dword [ebp + 0x1c], edx
push dword [ebp + 0x14]
push eax
push ecx
push dword [ebp + 8]
lea ecx, [ebx + 0x28]
call fcn.00424eb0
mov dword [ebx + 0x2c], esi
test eax, eax
je 0x427a0c
mov eax, 1
jmp 0x427a93
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x427a33
push dword [ebp + 0x14]
mov ecx, ebx
mov dword [ebx + 0x40], eax
call fcn.00457b00
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
cmp dword [ebx + 0x40], 0
je 0x427a91
mov eax, 1
jmp 0x427a93
cmp eax, 0xf
jne 0x427a64
push ecx
mov ecx, dword [ebp + 0x10]
mov eax, esp
mov dword [ebx + 0x40], 1
mov dword [eax], ecx
mov ecx, ebx
call fcn.00457b50
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp dword [ebx + 0x40], 0
je 0x427a91
mov eax, 1
jmp 0x427a93
cmp eax, 0x14
jne 0x427a91
push ecx
mov ecx, dword [ebp + 0x10]
mov eax, esp
mov dword [ebx + 0x40], 1
mov dword [eax], ecx
mov ecx, ebx
call fcn.00403760
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
cmp dword [ebx + 0x40], 0
je 0x427a91
mov eax, 1
jmp 0x427a93
xor eax, eax
mov ecx, dword [ebp + 0x1c]
mov dword [ebx + 0x40], ecx
test eax, eax
jne 0x427975
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x18
Function at 0x42f5e0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ec
mov eax, dword [0x4be5b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2ec], ebx
push edi
test ebx, ebx
je 0x42f7e4
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x42f7e4
push esi
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00432c40
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x2d8]
add esp, 0xc
push eax
push 8
push 0
push 0x4894ec
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x42f7b9
xor edi, edi
mov dword [ebp - 0x2dc], 0x104
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x2dc]
push eax
lea eax, [ebp - 0x1d0]
push eax
push edi
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x42f7a8
lea eax, [ebp - 0x2e0]
push eax
push 1
push 0
lea eax, [ebp - 0x1d0]
push eax
push dword [ebp - 0x2d8]
call esi
test eax, eax
jne 0x42f772
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x2e8], 1
push eax
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2e4], 0x104
push eax
lea eax, [ebp - 0x2e8]
push eax
push 0
push 0x489528
push dword [ebp - 0x2e0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42f76a
push 0x64
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.00432c40
push 0x64
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x2d4]
push eax
call fcn.0042f800
add esp, 0x18
test eax, eax
je 0x42f76a
cmp byte [ebp - 0x68], 0
je 0x42f72c
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x42f76a
lea ecx, [ebp - 0x68]
mov edx, 0x64
lea esi, [ebp - 0xcc]
mov eax, ecx
sub esi, eax
nop
lea eax, [edx + 0x7fffff9a]
test eax, eax
je 0x42f759
mov al, byte [esi + ecx]
test al, al
je 0x42f759
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x42f740
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov byte [eax], 0
push dword [ebp - 0x2e0]
call ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2dc]
mov dword [ebp - 0x2dc], 0x104
push eax
lea eax, [ebp - 0x1d0]
inc edi
push eax
push edi
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x42f680
push dword [ebp - 0x2d8]
call ebx
mov ebx, dword [ebp - 0x2ec]
mov edi, dword [ebp + 0xc]
cmp byte [ebp - 0x68], 0
pop esi
je 0x42f7e4
lea eax, [ebp - 0x68]
push eax
push edi
push ebx
call fcn.00430880
xor ecx, ecx
test eax, eax
pop edi
setns cl
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c75e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.0042c75e
mov esp, ebp
pop ebp
ret
Function at 0x42f920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov eax, dword [0x4be5b4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x42fa9f
cmp dword [ebp + 0xc], 0x20
jb 0x42fa9f
push 0x400
lea eax, [ebp - 0x504]
mov dword [ebp - 0x50c], 1
push 0
push eax
mov dword [ebp - 0x508], 0x400
call fcn.00432c40
add esp, 0xc
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x504]
push eax
lea eax, [ebp - 0x50c]
push eax
push 0x489594
push str.SoftwareComMaster
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x42fa9f
lea ecx, [ebp - 0x504]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42f9b0
sub ecx, edx
cmp ecx, 0x40
jne 0x42fa9f
lea edx, [ecx + 0x40]
push esi
lea ecx, [ebp - 0x84]
lea esi, [ebp - 0x504]
mov eax, ecx
sub esi, eax
lea eax, [edx - 0x60]
test eax, eax
je 0x42f9ec
mov al, byte [esi + ecx]
test al, al
je 0x42f9ec
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x42f9d6
test edx, edx
lea eax, [ecx - 1]
lea esi, [ebp - 0x4e4]
mov edx, 0x80
cmovne eax, ecx
lea ecx, [ebp - 0x104]
mov byte [eax], 0
mov eax, ecx
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7fffff7e]
test eax, eax
je 0x42fa29
mov al, byte [esi + ecx]
test al, al
je 0x42fa29
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x42fa10
test edx, edx
lea eax, [ecx - 1]
push 0x400
cmovne eax, ecx
push 0
mov byte [eax], 0
lea eax, [ebp - 0x504]
push eax
call fcn.00432c40
push 0x400
lea eax, [ebp - 0x504]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0042fab0
add esp, 0x18
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x504]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
test eax, eax
jne 0x42fa9f
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0xc]
push edi
call fcn.00430880
neg eax
pop edi
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c75e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.0042c75e
mov esp, ebp
pop ebp
ret
Function at 0x430370
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c10
call fcn.0042cec0
mov eax, dword [0x4be5b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c10], eax
test eax, eax
je 0x4304dd
cmp dword [ebp + 0xc], 0
je 0x4304dd
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
nop dword [eax]
push esi
push 0x48949c
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.004308f0
add esp, 0x10
lea eax, [ebp - 0x104]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4304c0
push 0x2710
xorps xmm0, xmm0
mov dword [ebp - 0x2c0c], 0
lea eax, [ebp - 0x2bfc]
movq qword [ebp - 0x2c08], xmm0
push 0
push eax
mov dword [ebp - 0x2c00], 0
mov dword [ebp - 0x2c08], 0
mov dword [ebp - 0x2c04], 0
call fcn.00432c40
add esp, 0xc
lea eax, [ebp - 0x2c0c]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2bfc]
push eax
push 0xc
lea eax, [ebp - 0x2c08]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4304b5
push 0x3e8
lea eax, [ebp - 0x4ec]
push 0
push eax
call fcn.00432c40
lea eax, [ebp - 0x4ec]
push eax
push 1
push dword [ebp - 0x2be4]
lea eax, [ebp - 0x2bfc]
push eax
call fcn.00431680
add esp, 0x1c
lea eax, [ebp - 0x4ec]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x2c10]
call fcn.00430880
test eax, eax
mov eax, 1
cmove ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x4304ca
inc esi
cmp esi, 0x10
jl 0x4303b0
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c75e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0042c75e
mov esp, ebp
pop ebp
ret
Function at 0x4304f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4be5b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
test ebx, ebx
je 0x4305d8
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00432c40
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
test edx, edx
je 0x4305d8
mov ecx, ebx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430547
sub ecx, esi
mov eax, 0x103
sar ecx, 1
sub eax, ecx
cmp edx, eax
jae 0x4305d8
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x430570
mov eax, dword [0x48948c]
mov esi, ebx
mov dword [edi], eax
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x430585
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4305a0
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c75e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c75e
mov esp, ebp
pop ebp
ret