joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e474
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x128
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.0042bba0
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [edi + 4]
cmp eax, dword [0x4495dc]
je 0x43e57b
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x43e4e4
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x43e4eb
cmp ebx, ebx
jne 0x43e4eb
xor eax, eax
jmp 0x43e57e
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x43e4f8
mov byte [esi + 0x20], bl
jmp 0x43e50c
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.00429a65
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.00429a65
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.00429a65
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x43e567
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x43e57b
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x43f180
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x458190]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x43f1cf
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x43f1cf
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x43f1db
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0042a171
leave
ret 8
Function at 0x43fde8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x458190]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x43fe35
push dword [ebp + 8]
call fcn.00441b35
mov esi, eax
test esi, esi
je 0x43fe5d
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x43fe5d
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x446b00
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0042a171
leave
ret 0xc

Function at 0x440761
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x458190]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x4407bf
push 0x447dfc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0042aecc
add esp, 0x10
cmp eax, 0xffffffff
je 0x4407d3
cmp eax, esi
jae 0x4407d3
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x4407d5
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x44078a
jmp 0x4407d6
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.0042a171
leave
ret
Function at 0x4407f6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x458190]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x440898
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x44099a
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x440948
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocStringLen
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44099b
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44093d
cmp dword [ebp - 0x24], 1
jne 0x44093d
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x447e0c
push eax
call fcn.0042b747
add esp, 0xc
cmp eax, 1
jne 0x44093d
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x44099b
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x44099b
lea ecx, [ebp - 0x18]
push ecx
push 0x4407e0
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x44099b
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x4409c1
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.00440761
cmp eax, ebx
pop ecx
pop ecx
jne 0x4409c3
inc edi
cmp edi, esi
jl 0x4409aa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0042a171
leave
ret 4
Function at 0x4409d2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x4571e4
je 0x440a8e
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x440a76
mov esi, dword [ebx + 4]
jmp 0x440a70
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x440a60
cmp dword [ebp - 0xc], 4
jne 0x440a60
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x440a58
or dword [eax + 0x9c], ecx
jmp 0x440a60
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x440a24
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x440a07
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x440e7c
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x44513e
call fcn.0042b77c
sub esp, 0x11c
mov eax, dword [0x458190]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x440f75
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x440f49
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00402030
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.00440e7c
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401890
test bl, bl
jne 0x440f49
or dword [ebp - 4], 0xffffffff
jmp 0x440eba
cmp esi, 0x103
je 0x440f59
cmp esi, 0x3f2
jne 0x440f69
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.0042a171
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4064a0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c278
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x44
call fcn.00406780
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x54
call fcn.00406780
mov byte [ebp - 4], 1
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x64
call fcn.00406780
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0
push 0x28
push 0
mov edx, dword [ebp - 0x1c]
add edx, 8
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x14
push 0
mov eax, dword [ebp - 0x1c]
add eax, 0x30
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x2cb30196
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x79d76bdb
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x2e0360db
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x811c9dc5
jmp 0x2e0360f5
movzx edx, word [ecx]
imul eax, eax, 0x1000193
xor eax, edx
inc ecx
inc ecx
cmp ecx, dword [ebp + 0xc]
jne 0x2e0360e8
pop ebp
ret 8

Function at 0x2e03684e
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0x14]
xor edx, edx
push 0xa
mov eax, edi
pop ecx
div ecx
xor ebx, ebx
mov dword [ebp - 4], 0x811c9dc5
mov esi, eax
inc esi
cmp esi, edi
jae 0x2e036876
sub edi, esi
test edi, edi
jbe 0x2e03689a
mov ecx, dword [ebp + 8]
push ebx
call fcn.2e02e4a5
mov ecx, dword [ebp - 4]
movzx eax, word [eax]
imul ecx, ecx, 0x1000193
xor ecx, eax
add ebx, esi
mov dword [ebp - 4], ecx
cmp ebx, edi
jb 0x2e03687a
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x2e042bf2
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x2e07ae50
call fcn.2e057572
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
movzx edx, word [eax]
mov ecx, 0x5a4d
cmp dx, cx
jne 0x2e042c30
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov esi, 0xe0
cmp word [ecx + 0x14], si
jne 0x2e042c30
add esi, 0x2b
cmp word [ecx + 0x18], si
jne 0x2e042c30
mov eax, dword [ecx + 0x50]
jmp 0x2e042c51
mov ecx, 0x4550
cmp dx, cx
jne 0x2e042c5d
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x2e042c5d
add ecx, 0x2b
cmp word [eax + 0x18], cx
jne 0x2e042c5d
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x1c], eax
jmp 0x2e042c61
and dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.2e0575b7
ret
Function at 0x40121b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push str.NtSuspendProcess
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtResumeProcess
push dword [ebp + 8]
mov dword [0x42172c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationProcess
push dword [ebp + 8]
mov dword [0x421730], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationProcess
push dword [ebp + 8]
mov dword [0x421734], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationThread
push dword [ebp + 8]
mov dword [0x421738], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationThread
push dword [ebp + 8]
mov dword [0x42173c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtCompareTokens
push dword [ebp + 8]
mov dword [0x421740], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlNtStatusToDosError
push dword [ebp + 8]
mov dword [0x421744], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlCaptureStackBackTrace
push dword [ebp + 8]
mov dword [0x421748], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42174c], eax
mov eax, 0x42172c
pop ebp
ret 4
Function at 0x401a32
Capabilities:
Delete file
Move file

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x401a73
push ebx
xor ebx, ebx
cmp word [esi], bx
je 0x401a72
push edi
mov edi, ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401a71
cmp edi, 4
je 0x401a67
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 5
jb 0x401a44
jmp 0x401a71
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop ebx
pop esi
ret

Function at 0x401fa5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor edi, edi
mov dword [ebp - 0x14], 0x401c10
push edi
push dword [ebp + 8]
mov dword [ebp - 0x10], edi
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov esi, eax
test esi, esi
je 0x401ff0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401ff0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x401ff5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], edi
jne 0x401ffa
push 2
pop eax
jmp 0x402049
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
mov dword [ebp - 8], 0x401c50
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x402026
push 5
pop esi
jmp 0x402047
lea edx, [ebp - 0x14]
lea ecx, [ebp - 8]
call fcn.00401e91
neg eax
sbb esi, esi
and esi, 0xb
cmp dword [ebp - 4], 0xffffffff
je 0x402047
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
leave
ret 8
Function at 0x402bb6
Capabilities:
Parse pe header

Disassembly:
push 0x64
mov eax, 0x41605f
call fcn.00415d28
mov ebx, ecx
mov dword [ebp - 0x54], ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x50]
push eax
push edx
push 6
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
test eax, eax
jne 0x402bf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00401020
jmp 0x402dac
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x4c]
and dword [ebx + 0x44], 0
mov edi, 0x104
push ebx
push edi
mov edx, eax
mov dword [ebp - 0x14], eax
mov dword [ebx + 0x40], eax
call fcn.00402abc
pop ecx
pop ecx
jmp 0x402c26
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x4c]
add edi, edi
push ebx
push edi
call fcn.00402abc
pop ecx
pop ecx
mov esi, dword [ebp - 0x4c]
mov ecx, esi
call fcn.00401020
or dword [ebp - 4], 0xffffffff
cmp eax, 0x7a
je 0x402c15
test esi, esi
je 0x402c41
mov ecx, esi
jmp 0x402be9
mov edx, dword [ebp - 0x50]
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x402da7
mov ecx, dword [edx + 0x3c]
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x402da7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402da7
mov eax, dword [ecx + 0x50]
and dword [ebx + 0x4c], 0
mov dword [ebx + 0x48], eax
cmp dword [ecx + 0x74], 6
jbe 0x402d9c
cmp dword [ecx + 0xac], 0x1c
jb 0x402da0
mov eax, dword [ecx + 0xa8]
cmp dword [eax + edx + 0x10], 0x1c
jb 0x402da0
mov eax, dword [eax + edx + 0x14]
add eax, edx
mov dword [ebp - 0x14], eax
cmp dword [eax], 0x53445352
jne 0x402da7
movaps xmm0, xmmword [0x41ca50]
lea eax, [ebx + 0x20]
mov dword [ebp - 0x40], eax
lea esi, [ebp - 0x40]
push 7
pop ecx
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0x20
lea edi, [ebp - 0x70]
mov byte [ebp - 0x28], 0
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x14]
mov ecx, dword [edi + 4]
mov eax, ecx
movzx edx, word [edi + 8]
movzx ebx, word [edi + 0xa]
shr eax, 0x18
mov byte [ebp - 0x20], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0x1f], al
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x1e], al
mov eax, edx
shr eax, 8
mov byte [ebp - 0x1c], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0x1a], al
mov al, byte [edi + 0xc]
mov byte [ebp - 0x18], al
mov al, byte [edi + 0xd]
mov byte [ebp - 0x17], al
mov al, byte [edi + 0xe]
mov byte [ebp - 0x16], al
mov al, byte [edi + 0xf]
mov byte [ebp - 0x15], al
mov al, byte [edi + 0x10]
mov byte [ebp - 0x14], al
mov al, byte [edi + 0x11]
mov byte [ebp - 0x13], al
mov al, byte [edi + 0x12]
mov byte [ebp - 0x12], al
mov al, byte [edi + 0x13]
mov byte [ebp - 0x1d], cl
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x1b], dl
lea edx, [ebp - 0x20]
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x11], al
call fcn.004029ea
mov esi, dword [ebp - 0x54]
xor ebx, ebx
push 0x24
pop edx
movzx ecx, byte [eax + 0x24]
add esi, 0x20
push ebx
sub edx, ecx
mov ecx, esi
push ebx
push edx
push eax
lea edx, [ebp - 0x6c]
call fcn.00406846
push ebx
push ebx
push 1
push 0x41c6f4
lea edx, [ebp - 0x6c]
mov ecx, esi
call fcn.00406846
push dword [edi + 0x14]
lea edx, [ebp - 0x6c]
mov ecx, esi
call fcn.00406372
add esp, 0x24
xor eax, eax
jmp 0x402dac
mov eax, 0x8000005c
jmp 0x402dac
mov eax, 0x8000005a
call fcn.00415cd7
ret
Function at 0x4040f2
Capabilities:
Get common file path
Set current directory

Disassembly:
push 0x258
mov eax, 0x416414
call fcn.00415d28
push 0xffffffffffffff9c
pop esi
lea ecx, [ebp - 0x254]
xor bh, bh
call fcn.00403e67
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x254]
cmp dword [ebp - 0x240], 8
cmovae ecx, dword [ebp - 0x254]
call fcn.00401788
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], bh
mov bl, al
call fcn.004047ef
test bl, bl
je 0x404310
lea eax, [ebp - 0x254]
mov byte [ebp - 0x264], bh
mov dword [ebp - 0x260], eax
mov eax, 0x7ffffffe
mov byte [ebp - 4], 2
sub eax, dword [ebp - 0x244]
cmp eax, 0xa
jb 0x404350
cmp dword [ebp - 0x240], 8
lea eax, [ebp - 0x254]
push 0xa
cmovae eax, dword [ebp - 0x254]
push str.SETUP.DLL
push dword [ebp - 0x244]
push eax
push ecx
push dword [ebp - 0x258]
lea ecx, [ebp - 0x23c]
call fcn.00405ca2
mov byte [ebp - 4], 3
lea eax, [ebp - 0x23c]
cmp dword [ebp - 0x228], 8
mov edx, 0x41c874
cmovae eax, dword [ebp - 0x23c]
push eax
push 0x41c9b4
call fcn.00401fa5
mov esi, eax
test esi, esi
jne 0x4042ea
mov byte [ebp - 0x18], al
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x14], eax
push 0x208
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 4
push esi
push eax
call fcn.0040b590
add esp, 0xc
lea eax, [ebp - 0x224]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x404233
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x404243
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x4042d1
and dword [ebp - 0x258], 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x23c]
cmp dword [ebp - 0x228], 8
push 8
cmovae eax, dword [ebp - 0x23c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x404285
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x404285
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4042c4
push str.RunInstance
push esi
mov dword [ebp - 0x258], esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4042b1
movzx ecx, byte [0x421758]
push ecx
mov ecx, edi
call dword [0x417190]
call edi
jmp 0x4042bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
test edi, edi
setne bh
lea ecx, [ebp - 0x258]
mov esi, eax
call fcn.004047a4
cmp dword [ebp - 0x228], 8
lea ecx, [ebp - 0x23c]
cmovae ecx, dword [ebp - 0x23c]
call fcn.00401a32
lea ecx, [ebp - 0x23c]
call fcn.004014a8
lea ecx, [ebp - 0x264]
call fcn.0040474f
test bh, bh
jne 0x40433d
test esi, esi
jne 0x404310
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp byte [0x421758], 0
jne 0x40433d
push 0xa
push 0xc
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0040d388
add esp, 0x10
lea eax, [ebp - 0x1c]
push 0x10
push str.ERROR
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x254]
call fcn.004014a8
mov eax, esi
call fcn.00415cd7
ret
call fcn.0040142b
int3