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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x553f9b
push eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x178
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ebp
xor ebp, ebp
push eax
push 0x20019
push ebp
push ecx
push reloc.WSOCK32.dll_bind
call ebx
test eax, eax
jne 0x40ef48
mov ecx, dword [esp + 8]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
push ebp
push ebp
push str.CurrentVersion
push ecx
mov dword [esp + 0x28], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ef3d
lea edx, [esp + 0x18]
push esi
mov esi, dword [esp + 0x19c]
push edx
push 0x5a3e24
push esi
call fcn.0053afda
mov eax, dword [esi]
push 0x20
push eax
call fcn.00526d60
add esp, 0x14
test eax, eax
je 0x40ee8d
mov byte [eax], 0
mov edx, dword [esi]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp byte [edx + ecx - 1], 0x2e
jne 0x40ee8d
dec ecx
push ebp
push ecx
mov ecx, esi
call fcn.00542704
mov eax, dword [0x5c2a74]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
push str._sMain
push edx
mov dword [esp + 0x198], 0
call fcn.0053afda
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push ecx
push edx
call ebx
test eax, eax
pop esi
jne 0x40ef29
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x7c]
push eax
push ecx
push 0
push 0
push str.PathToExe
push edx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ef1e
mov ecx, dword [esp + 0x194]
lea eax, [esp + 0x7c]
push eax
push 0x5a3e24
push ecx
call fcn.0053afda
add esp, 0xc
mov ebp, 1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov dword [esp + 0x188], 0xffffffff
call fcn.005421be
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x180]
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x184
ret 0xc
Function at 0x411260
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x554220
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor esi, esi
xor ebp, ebp
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [edi + 0x28]
cmp eax, esi
jle 0x411423
mov eax, dword [edi + 0x24]
mov eax, dword [eax + ebp*4]
cmp dword [eax + 0xc], esi
je 0x411417
cmp dword [eax + 0x10], esi
je 0x411417
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x20], esi
cmp ecx, esi
jle 0x411417
xor ebx, ebx
mov ecx, dword [eax + 0x18]
cmp dword [ecx + ebx + 8], esi
jne 0x4113fc
cmp dword [esp + 0x14], 0xffffffff
jne 0x411301
lea ecx, [esp + 0x24]
call fcn.0049ea20
lea ecx, [esp + 0x24]
mov dword [esp + 0x58], esi
call fcn.0049f690
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], edx
mov dword [esp + 0x58], 0xffffffff
call fcn.0049f480
mov eax, dword [0x5c2a74]
mov dword [esp + 0x10], eax
mov ecx, dword [edi + 0x24]
mov esi, 1
mov dword [esp + 0x58], esi
mov edx, dword [ecx + ebp*4]
mov eax, dword [edx + 0x18]
lea edx, [esp + 0x10]
mov ecx, dword [eax + ebx]
push ecx
push 0x5a3e24
push edx
call fcn.0053afda
mov eax, dword [esp + 0x1c]
push 0x5c
push eax
call fcn.00526d20
add esp, 0x14
test eax, eax
je 0x411346
mov byte [eax + 1], 0
mov ecx, dword [0x5c2a74]
mov dword [esp + 0x1c], ecx
mov edx, dword [edi + 0x24]
mov byte [esp + 0x58], 2
mov eax, dword [edx + ebp*4]
mov ecx, dword [eax + 8]
mov eax, str.ProgramPlugins_
cmp ecx, 3
je 0x41136d
mov eax, str.Plugins_
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x24]
push 0x5a4b44
push edx
call fcn.0053afda
mov eax, dword [0x5c2a74]
add esp, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov byte [esp + 0x58], 3
cmp eax, 1
jl 0x4113cd
mov ecx, dword [esp + 0x1c]
push esi
push ecx
lea edx, [esp + 0x20]
push str._sNP_IDM_d.dll
push edx
call fcn.0053afda
mov eax, dword [esp + 0x28]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41143b
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jle 0x41139c
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 2
call fcn.005421be
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], 1
call fcn.005421be
lea ecx, [esp + 0x10]
mov dword [esp + 0x58], 0xffffffff
call fcn.005421be
xor esi, esi
mov edx, dword [edi + 0x24]
mov ecx, dword [esp + 0x20]
inc ecx
add ebx, 0x24
mov eax, dword [edx + ebp*4]
mov dword [esp + 0x20], ecx
cmp ecx, dword [eax + 0x1c]
jl 0x4112be
mov eax, dword [edi + 0x28]
inc ebp
cmp ebp, eax
jl 0x411295
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 2
call fcn.005421be
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], 1
call fcn.005421be
lea ecx, [esp + 0x10]
mov dword [esp + 0x58], 0xffffffff
call fcn.005421be
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret
Function at 0x412820
Capabilities:
Access peb ldr_data
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5545d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x5c2a74]
push ebx
push ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov ebp, dword [esp + 0x48]
lea eax, [esp + 8]
lea ebx, [ecx + 8]
push eax
push ebp
mov ecx, ebx
mov dword [esp + 0x48], 0
call fcn.0051a520
test eax, eax
je 0x4129b8
mov al, byte [esp + 0x58]
test al, al
je 0x4128be
mov al, byte [esp + 0x30]
test al, al
je 0x4128be
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], 4
call fcn.005421be
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 3
call fcn.005421be
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 2
call fcn.005421be
mov byte [esp + 0x40], 1
jmp 0x4129ea
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x4128fa
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x4128f1
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4129b8
push edx
push eax
call fcn.00526f6c
add esp, 8
jmp 0x412901
mov ecx, dword [esp + 8]
mov eax, dword [ecx - 8]
jmp 0x412901
mov edx, dword [esp + 8]
mov eax, dword [edx - 8]
test eax, eax
sete al
test al, al
je 0x4129b8
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x54]
push eax
push 0x5a3e24
push esi
call fcn.0053afda
mov esi, dword [esi]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop esi
je 0x4129b0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x54]
push ecx
push 0x5a3e24
push edx
call fcn.0053afda
add esp, 0xc
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], 8
call fcn.005421be
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 7
call fcn.005421be
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 6
call fcn.005421be
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 5
call fcn.005421be
lea ecx, [esp + 8]
mov dword [esp + 0x40], 0xffffffff
call fcn.005421be
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x14
push ebp
mov ecx, ebx
call fcn.00417ac0
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], 0xc
call fcn.005421be
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 0xb
call fcn.005421be
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 0xa
call fcn.005421be
mov byte [esp + 0x40], 9
lea ecx, [esp + 0xc]
call fcn.005421be
lea ecx, [esp + 8]
mov dword [esp + 0x40], 0xffffffff
call fcn.005421be
mov ecx, dword [esp + 0x38]
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x14
Function at 0x412a30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x554600
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x5c2a74]
push esi
push edi
mov esi, ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 8]
push eax
push 0x5a3e24
push ecx
mov dword [esp + 0x34], 0
call fcn.0053afda
mov eax, dword [esp + 0x44]
add esp, 0xc
test eax, eax
je 0x412a93
push eax
lea edx, [esp + 0x10]
push 0x5a3e24
push edx
call fcn.0053afda
add esp, 0xc
mov ecx, dword [esp + 0x30]
mov edi, dword [esi + 0x88]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
add esi, 0x80
mov dword [esp + 0x14], ecx
lea ecx, [edi + 1]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
push 0xffffffffffffffff
push ecx
mov ecx, esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
call fcn.00413000
mov eax, dword [esi + 4]
lea edx, [edi + edi*2]
lea ecx, [esp + 8]
lea esi, [eax + edx*8]
push ecx
mov ecx, esi
call fcn.005422f7
lea edx, [esp + 0xc]
lea ecx, [esi + 4]
push edx
call fcn.005422f7
mov eax, dword [esp + 0x10]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xc], ecx
mov edx, dword [esp + 0x18]
mov dword [esi + 0x10], edx
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x14], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 1
call fcn.005421be
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.005421be
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 0x18

Function at 0x412b90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x18]
lea ebx, [ecx + 8]
push esi
push ebp
mov ecx, ebx
call fcn.0051a520
test eax, eax
je 0x412c1b
mov al, byte [esp + 0x1c]
test al, al
je 0x412bba
mov al, byte [esi + 0x28]
test al, al
jne 0x412c1b
mov edx, dword [esp + 0x14]
test edx, edx
je 0x412beb
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esi]
pop edi
not ecx
dec ecx
mov ecx, dword [eax - 8]
je 0x412be7
test ecx, ecx
je 0x412c1b
push edx
push eax
call fcn.00526f6c
add esp, 8
jmp 0x412bf0
test ecx, ecx
jmp 0x412bf2
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
test eax, eax
sete al
test al, al
je 0x412c1b
mov esi, dword [esi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x412c13
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x10
push ebp
mov ecx, ebx
call fcn.00417ac0
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
Function at 0x416fa0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x554cf1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0x30]
mov dword [esp + 0x10], 0xb
call fcn.005421be
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 0xa
call fcn.005421be
mov eax, dword [esi + 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 8
call fcn.005421be
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 7
call fcn.005421be
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 6
call fcn.005421be
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 5
call fcn.005421be
lea ecx, [esi + 0x14]
mov byte [esp + 0x10], 4
call fcn.005421be
lea ecx, [esi + 0x10]
mov byte [esp + 0x10], 3
call fcn.005421be
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 2
call fcn.005421be
lea ecx, [esi + 8]
mov byte [esp + 0x10], 1
call fcn.005421be
lea ecx, [esi + 4]
mov byte [esp + 0x10], 0
call fcn.005421be
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
call fcn.005421be
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x418db0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x555100
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x41c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x320]
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
call fcn.004a1420
mov eax, dword [esi + 0xf8]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 2
push 0xffffffffffffffff
push 0x100c
push eax
mov byte [ebp - 4], 1
call ebx
inc eax
test eax, eax
jne 0x418ecf
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xc
call fcn.00549f48
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0xb
call fcn.0054a098
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0xa
call fcn.0054a098
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 9
call fcn.0054a098
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 8
call fcn.0054a098
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 7
call fcn.0054a098
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], 6
call fcn.00549f48
lea ecx, [ebp - 0x1fc]
mov byte [ebp - 4], 5
call fcn.00549f10
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 4
call fcn.00549f10
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 3
call fcn.00549f48
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2b0]
call fcn.0054a098
lea ecx, [ebp - 0x320]
mov byte [ebp - 4], 0
call fcn.0053dde6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0xf8]
lea edi, [eax - 1]
push 2
push edi
push 0x100c
push ecx
call ebx
lea ebx, [esi + 0xdc]
push edi
mov ecx, ebx
call fcn.0053c511
mov edx, dword [esi + 0x60]
shl eax, 4
mov ecx, dword [edx + 4]
mov esi, dword [ecx + eax]
lea ecx, [ebp - 0x320]
mov dword [ebp - 0x2c4], esi
call fcn.0053e1a5
mov edx, dword [0x5c2a74]
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x14]
push 0
push eax
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 0xd
call fcn.004ea0e0
mov ecx, dword [ebp - 0x14]
push ecx
push 0
push edi
mov ecx, ebx
call fcn.0053c441
mov edx, dword [esi + 0x54]
mov ecx, ebx
push edx
push 1
push edi
call fcn.0053c441
mov ecx, ebx
call fcn.00541e3f
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.005421be
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x18
call fcn.00549f48
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x17
call fcn.0054a098
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0x16
call fcn.0054a098
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 0x15
call fcn.0054a098
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 0x14
call fcn.0054a098
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 0x13
call fcn.0054a098
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], 0x12
call fcn.00549f48
lea ecx, [ebp - 0x1fc]
mov byte [ebp - 4], 0x11
call fcn.00549f10
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x238]
call fcn.00549f10
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 0xf
call fcn.00549f48
mov byte [ebp - 4], 0xe
jmp 0x418ea4
Function at 0x41afc0
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x555311
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
mov dword [esi], 0x569c40
lea ecx, [esi + 4]
push 0xffffffffffffffff
push 0
mov dword [esp + 0x30], 2
mov dword [esp + 0x1c], ecx
call fcn.0041b700
lea ebp, [esi + 0x18]
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.0041b700
lea edi, [esi + 0x2c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.0041b700
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea eax, [esi + 0x40]
push eax
call ebx
add esi, 0x58
push esi
call ebx
mov dword [esp + 0x1c], edi
mov dword [edi], method.CCommandLineInfo.virtual_0
mov esi, dword [edi + 4]
mov byte [esp + 0x28], 3
test esi, esi
je 0x41b084
mov eax, dword [edi + 8]
mov dword [esp + 0x10], esi
mov ecx, eax
dec eax
test ecx, ecx
je 0x41b078
lea ebx, [eax + 1]
lea ecx, [esi + 4]
mov byte [esp + 0x28], 4
call fcn.005421be
mov ecx, esi
mov byte [esp + 0x28], 3
call fcn.005421be
add esi, 0xc
dec ebx
mov dword [esp + 0x10], esi
jne 0x41b055
mov edi, dword [edi + 4]
push edi
call fcn.00542796
add esp, 4
mov dword [esp + 0x1c], ebp
mov dword [ebp], method.CCommandLineInfo.virtual_0
mov esi, dword [ebp + 4]
mov byte [esp + 0x28], 5
test esi, esi
je 0x41b0dc
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], esi
mov edx, eax
dec eax
test edx, edx
je 0x41b0d0
lea edi, [eax + 1]
mov bl, 6
lea ecx, [esi + 4]
mov byte [esp + 0x28], bl
call fcn.005421be
mov ecx, esi
mov byte [esp + 0x28], 5
call fcn.005421be
add esi, 0xc
dec edi
mov dword [esp + 0x10], esi
jne 0x41b0ae
mov ebp, dword [ebp + 4]
push ebp
call fcn.00542796
add esp, 4
mov edi, dword [esp + 0x14]
mov dword [esp + 0x1c], edi
mov dword [edi], method.CCommandLineInfo.virtual_0
mov esi, dword [edi + 4]
mov dword [esp + 0x28], 7
test esi, esi
je 0x41b13a
mov eax, dword [edi + 8]
mov dword [esp + 0x14], esi
mov ecx, eax
dec eax
test ecx, ecx
je 0x41b12e
lea ebp, [eax + 1]
mov bl, 8
lea ecx, [esi + 4]
mov byte [esp + 0x28], bl
call fcn.005421be
mov ecx, esi
mov byte [esp + 0x28], 7
call fcn.005421be
add esi, 0xc
dec ebp
mov dword [esp + 0x14], esi
jne 0x41b10c
mov edx, dword [edi + 4]
push edx
call fcn.00542796
add esp, 4
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x41c1f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5554c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x5c2a74]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov ecx, dword [0x5c7498]
lea edx, [ebp - 0x14]
push ecx
push str._sGrabber_
push edx
mov byte [ebp - 4], 1
call fcn.0053afda
mov eax, dword [ebp - 0x14]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41c357
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, 2
inc esi
lea ecx, [ebp - 0x14]
push esi
push 0x5c
call fcn.00542693
mov esi, eax
cmp esi, 0xffffffff
je 0x41c357
lea ecx, [ebp - 0x18]
push esi
push ecx
lea ecx, [ebp - 0x14]
call fcn.0053abba
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea ecx, [ebp - 0x18]
sete bl
call fcn.005421be
test bl, bl
je 0x41c25d
lea edx, [ebp - 0x1c]
push esi
push edx
lea ecx, [ebp - 0x14]
call fcn.0053abba
mov eax, dword [eax]
push 0
push eax
call edi
test eax, eax
lea ecx, [ebp - 0x1c]
sete bl
call fcn.005421be
test bl, bl
je 0x41c25d
mov al, byte [ebp + 8]
test al, al
je 0x41c333
mov eax, dword [0x5c2a74]
mov dword [ebp + 8], eax
push 0
lea ecx, [ebp - 0x18]
push 0
push ecx
push 0x400
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [ebp - 0x18]
mov eax, dword [0x5c8004]
push edx
lea ecx, [ebp + 8]
push eax
push ecx
call fcn.0053afda
mov edx, dword [ebp - 0x18]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
push 0x30
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.005421be
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005421be
mov eax, 0x7546
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
push edx
add eax, 8
push 0x5a3e24
push eax
call fcn.0053afda
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005421be
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41c3b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5554e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x5c2a74]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x10], eax
mov edx, dword [ebp + 0x14]
xor edi, edi
test edx, edx
mov dword [esp + 0x24], 0
jle 0x41c439
mov eax, dword [ebp + 0x10]
add eax, 4
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov esi, dword [ecx]
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x41c420
test cl, cl
je 0x41c41c
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x41c420
add eax, 2
add esi, 2
test cl, cl
jne 0x41c3fc
xor eax, eax
jmp 0x41c425
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41c488
mov ecx, dword [esp + 0x14]
inc edi
add ecx, 8
cmp edi, edx
mov dword [esp + 0x14], ecx
jl 0x41c3f2
mov al, byte [ebp + 4]
test al, al
jne 0x41c557
push 1
mov ecx, ebp
call fcn.0041c1f0
test eax, eax
sete cl
mov al, cl
mov byte [ebp + 4], cl
test al, al
jne 0x41c557
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.005421be
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + edi*8]
lea eax, [esp + 0x10]
push edx
push 0x5a3e24
push eax
call fcn.0053afda
add esp, 0xc
mov eax, dword [0x5c2a74]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push edx
push 0x5a3e24
push eax
mov byte [esp + 0x30], 1
call fcn.0053afda
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x14]
push ecx
push 0x5a3e24
push edx
call fcn.0053afda
mov edi, dword [ebp + 0x14]
lea esi, [ebp + 0xc]
add esp, 0xc
mov ecx, esi
lea eax, [edi + 1]
push 0xffffffffffffffff
push eax
call fcn.0041cb30
mov ecx, dword [esi + 4]
lea edx, [esp + 0x14]
push edx
lea esi, [ecx + edi*8]
mov ecx, esi
call fcn.005422f7
lea eax, [esp + 0x18]
lea ecx, [esi + 4]
push eax
call fcn.005422f7
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 2
call fcn.005421be
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.005421be
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.005421be
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
mov eax, dword [ebp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea esi, [eax + 1]
mov edx, dword [ebp + 8]
push esi
push edx
lea eax, [esp + 0x18]
push str._stemplate_ld.dat
push eax
call fcn.0053afda
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ecx
call edi
cmp eax, 0xffffffff
je 0x41c4a1
inc esi
jmp 0x41c563
Function at 0x41cd00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x555596
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [esi + 4], 0x569e5c
mov dword [esi + 8], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [0x5c2a74]
lea edi, [esi + 0x1c]
mov dword [ebp - 4], ebx
mov dword [edi], eax
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x120]
push ecx
push edx
mov dword [esi], 0x569e58
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], 1
mov eax, dword [0x5c74b0]
push ebx
push ebx
push str.ToolbarStyle
push eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41cdb2
lea edi, [ebp - 0x120]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41cdc0
lea ecx, [ebp - 0x120]
lea eax, [esi + 0x1c]
push ecx
push 0x5a3e24
push eax
call fcn.0053afda
add esp, 0xc
jmp 0x41cdc0
push str.3D_Style
push edi
call fcn.0053afda
add esp, 8
mov ecx, dword [0x5c74b0]
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x18]
push edx
push eax
push ebx
push ebx
push str.LargeButtons
push ecx
mov dword [ebp - 0x14], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41cded
mov edx, dword [ebp - 0x18]
mov dword [esi + 0x24], edx
mov ecx, esi
mov dword [esi + 0x18], ebx
call fcn.0041cfd0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret