joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e670
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 0xa0
push esi
lea eax, [esp + 0x10]
push edi
mov edi, ecx
push eax
xor esi, esi
mov dword [esp + 0x18], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40e6bc
cmp dword [esp + 0x24], 2
jne 0x40e6bc
cmp dword [esp + 0x18], 6
jb 0x40e6ca
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
mov esi, 1
push str..IDMWFP
jmp 0x40e6de
mov eax, dword [edi + 0x1c]
pop edi
pop esi
add esp, 0xa0
ret 4
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str..IDMTDI
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40e70d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xac]
pop edi
mov eax, 1
pop esi
mov dword [ecx], 1
add esp, 0xa0
ret 4
call fcn.004363b0
mov edi, dword [esp + 0xac]
neg eax
sbb eax, eax
mov dword [edi], 0
and eax, 0x100
add eax, 0x20019
test esi, esi
je 0x40e740
lea edx, [esp + 8]
push edx
push eax
push 0
push str.SYSTEMCurrentControlSetServicesIDMWFP
jmp 0x40e74d
lea ecx, [esp + 8]
push ecx
push eax
push 0
push str.SYSTEMCurrentControlSetServicesIDMTDI
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e7a5
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push 0x658144
push ecx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e79a
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x40e79a
cmp eax, 2
je 0x40e79a
mov dword [edi], 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret 4
Function at 0x40f5c0
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
test edi, edi
mov dword [esi + 0x34], edi
je 0x40f5df
call fcn.0040f810
test eax, eax
jne 0x40f5df
mov ecx, esi
call fcn.00411160
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40f6a9
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x40f6a9
push edi
push str.IntegrateMIE
mov ecx, esi
call fcn.0040fb30
mov ecx, dword [0x6825d4]
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.IDMBIIEXPLORE
push ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f658
lea edx, [esp + 0x10]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x1c]
push 0x657584
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
ret 8
mov eax, dword [0x6825d4]
lea edx, [esp + 0xc]
push 0
push edx
push 0
push 0xf003f
push 0
push 0x681f78
push 0
push str.IDMBIIEXPLORE
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40f6a9
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push eax
push 0x657584
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
ret 8

Function at 0x40f6c0
Capabilities:
Delete registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b2a40
push eax
mov dword fs:[0], esp
sub esp, 0xc
lea eax, [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_ExplorerMenuExt_
push reloc.WSOCK32.dll_accept
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40f70e
mov ecx, dword [esp + 0xc]
push str.Download_with_IDMan
push ecx
call edi
lea edx, [esp + 0xc]
push edx
push 0xf003f
push 0
push str.SoftwareClassesPROTOCOLSName_Space_Handler_
push reloc.WSOCK32.dll_bind
call esi
test eax, eax
je 0x40f73d
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0xc]
lea eax, [esp + 8]
push 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.http_
push ecx
call esi
test eax, eax
jne 0x40f77f
mov edx, dword [esp + 8]
push 0x6583b0
push edx
call edi
mov eax, dword [esp + 8]
push 0x6583ac
push eax
call edi
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.https_
push edx
call esi
test eax, eax
jne 0x40f7af
mov eax, dword [esp + 8]
push 0x6583b0
push eax
call edi
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.ftp_
push edx
call esi
test eax, eax
jne 0x40f7eb
mov eax, dword [esp + 8]
push 0x6583b0
push eax
call edi
mov ecx, dword [esp + 8]
push 0x6583ac
push ecx
call edi
mov ecx, dword [esp + 0x14]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x40f810
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b2a5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_Objects
push reloc.WSOCK32.dll_bind
mov dword [ebp - 4], 0
call esi
test eax, eax
jne 0x40f98b
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push eax
push str.0055C089_8582_441B_A0BF_17B458C2A3A8
push edx
call esi
test eax, eax
jne 0x40f98b
mov edx, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x1c]
push eax
push ecx
push 0
push 0
push str.NoExplorer
push edx
mov dword [ebp - 0x24], 4
call edi
test eax, eax
jne 0x40f98b
cmp dword [ebp - 0x1c], 1
jne 0x40f98b
mov eax, dword [ebp - 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebx
mov ecx, dword [ebp - 0x18]
push ecx
call ebx
call fcn.004363b0
test eax, eax
je 0x40f93f
lea edx, [ebp - 0x18]
push edx
push 0x20119
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_Objects
push reloc.WSOCK32.dll_bind
call esi
test eax, eax
jne 0x40f98b
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push 0x20119
push 0
push str.0055C089_8582_441B_A0BF_17B458C2A3A8
push ecx
call esi
test eax, eax
jne 0x40f98b
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x1c]
push edx
push eax
push 0
push 0
push str.NoExplorer
push ecx
mov dword [ebp - 0x20], 4
call edi
test eax, eax
jne 0x40f98b
cmp dword [ebp - 0x1c], 1
jne 0x40f98b
mov edx, dword [ebp - 0x14]
push edx
call ebx
mov eax, dword [ebp - 0x18]
push eax
call ebx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f9a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b2aa1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x430
push ebx
mov edx, dword [0x6825d4]
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x1c]
push eax
push ecx
push 0
push 0
mov ebx, 4
push edi
push edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x40fa0c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp esi, 2
jne 0x40faa6
mov ecx, dword [0x6825d4]
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push 0
push edi
push ecx
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x40fa8e
lea ecx, [ebp - 0x22c]
call fcn.00483e70
mov edx, dword [0x67da2c]
mov dword [ebp + 8], edx
push esi
lea eax, [ebp + 8]
push str.RegSetValueEx_err__ld_in_CBrInt:ReadIntFrReg_n
push eax
mov byte [ebp - 4], 2
call fcn.00599a28
mov ecx, dword [ebp + 8]
add esp, 0xc
push 1
push ecx
lea ecx, [ebp - 0x22c]
call fcn.00483f90
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.005a0c5d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.00483f80
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x22c]
call fcn.00483e70
mov edx, dword [0x67da2c]
mov dword [ebp + 8], edx
push esi
lea eax, [ebp + 8]
push str.Error__ld_in_CBrInt:ReadIntFrReg_n
push eax
mov byte [ebp - 4], bl
call fcn.00599a28
mov ecx, dword [ebp + 8]
add esp, 0xc
push 1
push ecx
lea ecx, [ebp - 0x22c]
call fcn.00483f90
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.005a0c5d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
jmp 0x40fa89

Function at 0x40fb30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b2ace
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], esp
push 4
xor ebx, ebx
push ecx
mov dword [ebp - 0x14], eax
mov eax, dword [0x6825d4]
push 4
push ebx
push edx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
cmp esi, ebx
jne 0x40fb96
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x224]
call fcn.00483e70
mov ecx, dword [0x67da2c]
mov dword [ebp + 0xc], ecx
push esi
lea edx, [ebp + 0xc]
push str.RegSetValueEx_err__ld_in_CBrInt:SaveIntToReg_n
push edx
mov byte [ebp - 4], 2
call fcn.00599a28
mov eax, dword [ebp + 0xc]
add esp, 0xc
lea ecx, [ebp - 0x224]
push 1
push eax
call fcn.00483f90
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.005a0c5d
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], bl
call fcn.00483f80
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40ffd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebx
push esi
mov esi, dword [esp + 0x21c]
push edi
mov ecx, esi
call fcn.00401070
mov eax, 0x681f78
test eax, eax
je 0x410040
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x410040
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push 0x681f78
push eax
push eax
call edi
test eax, eax
mov dword [esi + 8], eax
je 0x410040
lea ecx, [eax + eax + 2]
push ecx
call fcn.0059cff9
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x410040
mov edx, dword [esi + 8]
push edx
push eax
push 0xffffffffffffffff
push 0x681f78
push 0
push 0
call edi
mov dword [esi + 8], eax
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.SoftwareOpera_Software
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41006e
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x210
ret 4
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0
mov ebx, 0x208
push str.Last_Directory
push eax
mov dword [esp + 0x24], ebx
call edi
test eax, eax
je 0x410120
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0
push str.Last_CommandLine
push eax
mov dword [esp + 0x24], ebx
call edi
test eax, eax
je 0x4100f1
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0
push str.Last_Directory2
push eax
mov dword [esp + 0x24], ebx
call edi
test eax, eax
je 0x410120
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x210
ret 4
lea ecx, [esp + 0x14]
push 0x658678
push ecx
call fcn.00585047
add esp, 8
test eax, eax
je 0x410179
lea edx, [esp + 0x14]
push 0x5c
push edx
call fcn.00584766
add esp, 8
test eax, eax
je 0x410120
mov word [eax + 2], 0
lea eax, [esp + 0x14]
push eax
call fcn.00584816
add esp, 4
cmp word [esp + eax*2 + 0x12], 0x5c
je 0x410147
lea ecx, [esp + 0x14]
push 0x656fe4
push ecx
call fcn.00584990
add esp, 8
lea edx, [esp + 0x14]
push str.ProgramPlugins_
push edx
push 0x656fdc
mov ecx, esi
call fcn.004101b0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x210
ret 4
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push str.Last_Directory2
push edx
mov dword [esp + 0x24], ebx
call edi
test eax, eax
je 0x410120
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x210
ret 4
Function at 0x411160
Capabilities:
Set registry value

Disassembly:
sub esp, 0x1c
lea eax, [esp + 4]
push ebx
push ebp
push esi
push edi
push 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
push 0
push 0xf003f
push 0
push 0x681f78
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_Objects
mov edi, ecx
push reloc.WSOCK32.dll_bind
call esi
test eax, eax
jne 0x4111b9
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push eax
push 0xf003f
push eax
push 0x681f78
push eax
push str.0055C089_8582_441B_A0BF_17B458C2A3A8
push edx
call esi
test eax, eax
je 0x4111d7
cmp eax, 5
je 0x4112f6
push eax
push str.Err__ld_CBIr::IntIE__s7_n
mov ecx, edi
call fcn.00411300
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [str.IDM_Helper]
mov ecx, dword [0x6588b4]
mov dx, word [0x6588b8]
mov dword [esp + 0x20], eax
mov al, byte [0x6588ba]
mov dword [esp + 0x24], ecx
mov byte [esp + 0x2a], al
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
mov word [esp + 0x28], dx
mov edx, dword [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
lea ecx, [esp + 0x24]
push ecx
push 1
push eax
push eax
push edx
call ebx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push 4
push eax
push 4
push 0
push str.NoExplorer
push ecx
mov dword [esp + 0x30], 1
call ebx
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebp
mov eax, dword [esp + 0x14]
push eax
call ebp
call fcn.004363b0
test eax, eax
je 0x4112f6
lea ecx, [esp + 0x14]
push 0
push ecx
push 0
push 0xf013f
push 0
push 0x681f78
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_Objects
push reloc.WSOCK32.dll_bind
call esi
test eax, eax
jne 0x4112f6
lea edx, [esp + 0x10]
push eax
push edx
push eax
push 0xf013f
push eax
push 0x681f78
push eax
mov eax, dword [esp + 0x30]
push str.0055C089_8582_441B_A0BF_17B458C2A3A8
push eax
call esi
test eax, eax
jne 0x4112f6
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x10]
not ecx
push ecx
lea ecx, [esp + 0x24]
push ecx
push 1
push eax
push eax
push edx
call ebx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push 4
push eax
push 4
push 0
push str.NoExplorer
push ecx
mov dword [esp + 0x34], 1
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebp
mov eax, dword [esp + 0x14]
push eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x412780
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [0x6825d4]
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push ecx
push 0
push 0
push str.intAOFRWE
push edx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4127c0
mov eax, dword [esp + 4]
test eax, eax
je 0x4127c0
mov eax, 1
add esp, 8
ret
xor eax, eax
add esp, 8
ret
Function at 0x415180
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x24]
push esi
push 0
push 0x2000000
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4151f2
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea edx, [esp + 4]
lea eax, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
lea eax, [esp + 4]
mov dword [esp + 0xc], ecx
push eax
lea ecx, [esp + 0x10]
push 0
push ecx
push esi
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x20
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
add esp, 0x20
ret
Function at 0x416b50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b32fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x109c
call fcn.00584c60
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push ebx
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x18], bx
call fcn.00402800
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
cmp eax, ebx
mov ecx, eax
jne 0x416ba5
lea ecx, [ebp - 0x18]
mov eax, dword [0x682588]
cmp eax, ebx
jne 0x416bb3
mov eax, 0x68258c
push ecx
push eax
lea eax, [ebp - 0xe9c]
push 0x657d90
push eax
call fcn.0058572e
add esp, 0x10
lea ecx, [ebp - 0xe9c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x416da0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x416da0
push ebx
lea ecx, [ebp - 0xc94]
call fcn.00434c50
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0xc18]
push edx
mov byte [ebp - 4], 2
call fcn.005a0de6
push esi
lea ecx, [ebp - 0xc1c]
call fcn.005a0de6
lea eax, [ebp - 0xe9c]
lea ecx, [ebp - 0xc30]
push eax
call fcn.00401ee0
lea ecx, [ebp - 0xc94]
mov byte [ebp - 0xc24], bl
mov dword [ebp - 0xc38], 0x682198
call fcn.0059cbf3
cmp eax, 1
jne 0x416cf6
lea ecx, [ebp - 0xbd4]
mov byte [ebp - 4], 0xa
call fcn.0054f610
lea ecx, [ebp - 0xc10]
mov byte [ebp - 4], 9
call fcn.005a8769
lea ecx, [ebp - 0xc14]
mov byte [ebp - 4], 8
call fcn.005a0c5d
lea ecx, [ebp - 0xc18]
mov byte [ebp - 4], 7
call fcn.005a0c5d
lea ecx, [ebp - 0xc1c]
mov byte [ebp - 4], 6
call fcn.005a0c5d
lea ecx, [ebp - 0xc20]
mov byte [ebp - 4], 5
call fcn.005a0c5d
lea ecx, [ebp - 0xc30]
mov byte [ebp - 4], 4
call fcn.00401070
lea ecx, [ebp - 0xc34]
mov byte [ebp - 4], 3
call fcn.005a0c5d
lea ecx, [ebp - 0xc94]
mov byte [ebp - 4], 1
call fcn.0059c834
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00401070
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 8
lea ecx, [ebp - 0xbd4]
mov byte [ebp - 4], 0x12
call fcn.0054f610
lea ecx, [ebp - 0xc10]
mov byte [ebp - 4], 0x11
call fcn.005a8769
lea ecx, [ebp - 0xc14]
mov byte [ebp - 4], 0x10
call fcn.005a0c5d
lea ecx, [ebp - 0xc18]
mov byte [ebp - 4], 0xf
call fcn.005a0c5d
lea ecx, [ebp - 0xc1c]
mov byte [ebp - 4], 0xe
call fcn.005a0c5d
lea ecx, [ebp - 0xc20]
mov byte [ebp - 4], 0xd
call fcn.005a0c5d
lea ecx, [ebp - 0xc30]
mov byte [ebp - 4], 0xc
call fcn.00401070
lea ecx, [ebp - 0xc34]
mov byte [ebp - 4], 0xb
call fcn.005a0c5d
lea ecx, [ebp - 0xc94]
mov byte [ebp - 4], 1
call fcn.0059c834
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00401070
mov eax, 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00401070
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x418180
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5b3581
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
push edi
mov ebp, ecx
push ebx
mov dword [esp + 0x14], ebp
call fcn.005a09d2
lea esi, [ebp + 4]
xor eax, eax
mov dword [esp + 0x28], eax
lea ecx, [esi + 4]
mov dword [esi], eax
mov dword [esi + 8], eax
mov word [ecx], ax
mov edi, dword [ebx + 4]
cmp edi, eax
je 0x418232
cmp dword [esi], eax
je 0x418232
push edi
call fcn.00584816
add esp, 4
test eax, eax
je 0x418232
mov eax, dword [esi]
cmp eax, edi
ja 0x418232
push eax
call fcn.00584816
mov edx, dword [esi]
add esp, 4
lea eax, [edx + eax*2]
cmp eax, edi
jb 0x418232
xor eax, eax
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x1c], ax
call fcn.00401ee0
mov eax, dword [esp + 0x14]
mov byte [esp + 0x28], 1
test eax, eax
jne 0x41821a
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00401ee0
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call fcn.00401070
jmp 0x418278
mov ecx, esi
call fcn.00401070
test edi, edi
je 0x418278
push edi
call fcn.00584816
add esp, 4
test eax, eax
je 0x418278
push edi
call fcn.00584816
lea ecx, [eax + eax + 2]
push ecx
call fcn.0059cff9
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x418278
push edi
call fcn.00584816
mov edx, dword [esi]
push edi
push edx
mov dword [esi + 8], eax
call fcn.005849ba
add esp, 0xc
lea eax, [ebx + 0x10]
lea ecx, [ebp + 0x10]
push eax
mov byte [esp + 0x2c], 2
call fcn.005a09d2
lea ecx, [ebx + 0x14]
mov byte [esp + 0x28], 3
push ecx
lea ecx, [ebp + 0x14]
call fcn.005a09d2
lea edx, [ebx + 0x18]
lea ecx, [ebp + 0x18]
push edx
mov byte [esp + 0x2c], 4
call fcn.005a09d2
mov eax, dword [ebx + 0x20]
pop edi
mov dword [ebp + 0x20], eax
mov ecx, dword [ebx + 0x24]
mov dword [ebp + 0x24], ecx
mov edx, dword [ebx + 0x28]
mov dword [ebp + 0x28], edx
mov eax, dword [ebx + 0x2c]
mov dword [ebp + 0x2c], eax
mov cl, byte [ebx + 0x30]
mov byte [ebp + 0x30], cl
mov dl, byte [ebx + 0x31]
mov ecx, dword [esp + 0x1c]
mov byte [ebp + 0x31], dl
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x4185e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5b3630
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x67da2c]
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 0x656f5c
push ecx
mov dword [esp + 0x34], 0
call fcn.00599a28
mov eax, dword [esp + 0x44]
add esp, 0xc
test eax, eax
je 0x418643
push eax
lea edx, [esp + 0x10]
push 0x656f5c
push edx
call fcn.00599a28
add esp, 0xc
mov ecx, dword [esp + 0x30]
mov edi, dword [esi + 0x90]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
add esi, 0x88
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.00418bb0
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.005a0d96
lea edx, [esp + 0xc]
lea ecx, [esi + 4]
push edx
call fcn.005a0d96
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.005a0c5d
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.005a0c5d
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 0x18

Function at 0x418740
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.00574320
test eax, eax
je 0x4187d2
mov al, byte [esp + 0x1c]
test al, al
je 0x41876a
mov al, byte [esi + 0x30]
test al, al
jne 0x4187d2
mov edx, dword [esp + 0x14]
test edx, edx
je 0x41879b
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 0x418797
test ecx, ecx
je 0x4187d2
push edx
push eax
call fcn.00585ec4
add esp, 8
jmp 0x4187a0
test ecx, ecx
jmp 0x4187a2
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
test eax, eax
sete al
test al, al
je 0x4187d2
mov eax, dword [esi + 4]
test eax, eax
jne 0x4187b3
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4187ca
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x10
push ebp
mov ecx, ebx
call fcn.004efae0
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10