joyce8/EMBER2024-capa huggingface dataset:
Function at 0x627efd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6313c8
cmp edx, dword [eax]
je 0x627f1f
add eax, 8
inc ecx
cmp eax, 0x631458
jl 0x627f10
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6313c8]
jne 0x62804d
mov eax, dword [0x635d9c]
cmp eax, 1
je 0x628027
test eax, eax
jne 0x627f50
cmp dword [0x6312f4], 1
je 0x628027
cmp edx, 0xfc
je 0x62804d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x627f87
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.006288e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00628d70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x627fca
lea eax, [ebp - 0x1a4]
push eax
call fcn.00628d70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62dad4
push edi
call fcn.0062ac40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.006288e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.006288f0
lea eax, [ebp - 0xa0]
push 0x62dab4
push eax
call fcn.006288f0
push dword [esi + 0x6313cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.006288f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062abb4
add esp, 0x2c
pop edi
jmp 0x62804d
lea eax, [ebp + 8]
lea esi, [esi + 0x6313cc]
push 0
push eax
push dword [esi]
call fcn.00628d70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x40892f
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
mov edi, 0xb90e67cd
call fcn.00408956
xor dword [ebx], ecx
or eax, edi
inc ebx
sub edi, eax
dec edi
cmp ebx, edx
jne fcn.0040892f
sub eax, 0x523cab1f
and eax, eax
ret
Function at 0x4018c1
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x408128]
push ebx
push edi
push 2
xor ebx, ebx
mov word [ebp - 8], 0x500
pop edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
cmp eax, edi
jne 0x4019e7
lea ecx, [ebp - 0x10]
call fcn.0040180e
test eax, eax
jne 0x4019d6
lea eax, [ebp - 0x18]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4019e7
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4019c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4019c8
push esi
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4019c7
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push esi
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4019c0
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push edi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4019c0
cmp dword [esi], ebx
jbe 0x4019b7
lea edi, [esi + 4]
push dword [ebp - 0x1c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4019ac
inc ebx
add edi, 8
cmp ebx, dword [esi]
jb 0x401993
jmp 0x4019b7
xor eax, eax
inc eax
mov dword [0x408128], eax
mov dword [ebp - 0x10], eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
jmp 0x4019e7
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4019e7
mov dword [0x408128], 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00406c80
leave
ret
Function at 0x401f9b
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebx
mov ebx, ecx
test bl, 2
jne 0x401faf
call fcn.00401ec1
cmp eax, 2
jne 0x401fe4
test bl, 4
jne 0x401fd0
push 4
push 0x40
push 0
push 0x401140
mov edx, 0x522
xor ecx, ecx
call fcn.00404495
cmp eax, 6
jne 0x401fe4
cmp word [0x409a40], 0
jne 0x401fe6
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop ebx
ret
pop ebx
jmp fcn.00401eef

Function at 0x401fec
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp byte [0x408530], 0
je 0x402031
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402031
push 0x408530
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x40226e
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x408530], 0
je 0x402389
push esi
lea eax, [ebp - 0x344]
xor esi, esi
push eax
push 0x2001f
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402388
push ebx
lea eax, [ebp - 0x348]
mov ebx, 0x238
push eax
lea eax, [ebp - 0x340]
mov dword [ebp - 0x348], ebx
push eax
push esi
push esi
push 0x408530
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40237b
push edi
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x402328
push 0x401140
mov edx, edi
lea ecx, [ebp - 0x108]
call fcn.00406534
push 0x4091e4
lea eax, [ebp - 0x108]
push eax
push str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
lea eax, [ebp - 0x340]
push ebx
push eax
call fcn.0040173e
add esp, 0x14
lea ecx, [ebp - 0x340]
lea edx, [ecx + 1]
pop edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402353
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x340]
push eax
push 1
push esi
push 0x408530
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406c80
leave
ret
Function at 0x402395
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x408004]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4024d0
cmp byte [esi], 0
je 0x4024d0
mov ebx, 0x104
lea ecx, [esp + 0x150]
push esi
mov edx, ebx
call fcn.004016a0
push 0x4011f4
mov edx, ebx
lea ecx, [esp + 0x154]
call fcn.004016d3
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4024d0
push esi
mov edx, ebx
lea ecx, [esp + 0x154]
call fcn.004016a0
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x3c]
je 0x40247e
push 0x4011f8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4024ae
push 0x4011fc
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4024ae
lea eax, [esp + 0x3c]
mov edx, ebx
push eax
lea ecx, [esp + 0x154]
call fcn.004016d3
push 0x401140
mov edx, ebx
lea ecx, [esp + 0x154]
call fcn.00406534
lea ecx, [esp + 0x150]
call fcn.00402395
jmp 0x4024ae
push eax
mov edx, ebx
lea ecx, [esp + 0x154]
call fcn.004016d3
push 0x80
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40240c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406c80
mov esp, ebp
pop ebp
ret

Function at 0x4024e5
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x402560
push 0x401200
mov edx, edi
lea ecx, [ebp - 0x108]
call fcn.00406534
lea eax, [ebp - 0x108]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x40
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
je 0x402560
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00406c80
leave
ret
Function at 0x402570
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
movzx eax, cx
xor esi, esi
test ax, ax
je 0x402625
xor edx, edx
inc edx
cmp ax, dx
je 0x4025eb
jbe 0x40262c
cmp cx, 3
ja 0x40262c
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push eax
push 0x20019
push esi
push 0x40800c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4025e6
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push str.PendingFileRenameOperations
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
neg eax
sbb eax, eax
not eax
and dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 4]
jmp 0x40262c
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push eax
push 0x20019
push esi
push str.SystemCurrentControlSetControlSession_ManagerFileRenameOperations
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4025e6
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
jmp 0x4025d4
call fcn.004024e5
mov esi, eax
mov eax, esi
pop esi
leave
ret
Function at 0x402770
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x110], esi
mov byte [edi], bl
cmp byte [esi], 0x23
jne 0x4028af
inc esi
movsx eax, byte [esi]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
push esi
mov byte [ebp - 0x109], al
call dword [sym.imp.USER32.dll_CharNextA]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x110], eax
mov esi, 0x104
mov al, byte [ebp - 0x109]
cmp al, 0x53
je 0x4028b4
cmp al, 0x57
je 0x4028a5
push ecx
push 0x401210
push ecx
mov edx, esi
mov dword [ebp - 0x11c], esi
lea ecx, [ebp - 0x108]
call fcn.004017a1
push dword [ebp - 0x110]
mov edx, esi
lea ecx, [ebp - 0x108]
call fcn.00406534
lea eax, [ebp - 0x118]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x108]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4028c0
lea eax, [ebp - 0x11c]
push eax
push edi
lea eax, [ebp - 0x114]
push eax
push ebx
push 0x401140
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402897
mov eax, dword [ebp - 0x114]
cmp eax, 2
jne 0x40288f
push esi
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x402889
lea eax, [ebp - 0x108]
mov edx, esi
push eax
mov ecx, edi
call fcn.004016a0
jmp 0x402894
mov eax, dword [ebp - 0x114]
cmp eax, 1
jne 0x402897
xor ebx, ebx
inc ebx
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4028bc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x4028c0
mov esi, 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test ebx, ebx
jne 0x4028cf
push dword [ebp - 0x110]
mov edx, esi
mov ecx, edi
call fcn.00406534
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00406c80
leave
ret 4
Function at 0x4028e3
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov dword [ebp - 8], edx
mov edx, ecx
push esi
xor esi, esi
mov dword [ebp - 0xc], edx
mov ebx, esi
push edi
mov edi, esi
mov dword [ebp - 0x10], ebx
cmp dword [edx + 0x7c], esi
jle 0x402a5d
mov eax, esi
mov dword [ebp - 4], esi
mov ecx, dword [edx + 0x80]
add eax, edx
add edx, 0x84
mov dword [ebp - 0x14], ecx
mov eax, dword [eax + ecx + 0xbc]
mov ecx, dword [ebp - 8]
add eax, edx
push eax
call fcn.00402770
test eax, eax
je 0x402a60
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x402a27
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x402a60
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x402a60
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x402a1b
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x401244
push dword [ebp - 0x20]
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x402a1b
cmp dword [ebp - 0x24], 0
je 0x402a1b
mov eax, dword [ebp - 0x28]
mov ebx, esi
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
add ecx, 0x94
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
add eax, ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov esi, eax
push dword [esi - 0xc]
push dword [esi - 0x10]
call fcn.00402a82
push dword [esi]
mov dword [ebp + ebx - 0x34], eax
push dword [esi - 4]
call fcn.00402a82
mov dword [ebp + ebx - 0x3c], eax
lea esi, [esi + 0x18]
add ebx, 4
cmp ebx, 8
jl 0x4029da
mov ebx, dword [ebp - 0x10]
xor esi, esi
cmp dword [ebp - 0x34], esi
jl 0x402a11
cmp dword [ebp - 0x3c], esi
jle 0x402a1b
cmp dword [ebp - 0x30], esi
jl 0x402a79
cmp dword [ebp - 0x38], esi
jg 0x402a79
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0xc]
jmp 0x402a47
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
add eax, edx
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
cmp dword [eax + ecx + 0x84], esi
jne 0x402a60
cmp dword [eax + ecx + 0x88], esi
jne 0x402a60
mov eax, dword [ebp - 4]
inc ebx
add eax, 0x3c
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], eax
cmp ebx, dword [edx + 0x7c]
jl 0x40290d
xor esi, esi
inc esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], ebx
test edi, edi
je 0x402a70
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x402a60
Function at 0x402ca1
Capabilities:
Check mutex on windows
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x8fc
xor edi, edi
mov esi, ecx
push edi
push 0x409140
mov ebx, edx
mov dword [0x409a3c], esi
call sub.msvcrt.dll_memset
push 0x32c
push edi
push 0x408a20
call sub.msvcrt.dll_memset
push 0x104
push edi
push 0x4088c0
call sub.msvcrt.dll_memset
add esp, 0x24
xor eax, eax
inc eax
mov edx, 0x409154
mov ecx, 0x401278
mov dword [0x4093ec], eax
push 0x7f
call fcn.00404669
test eax, eax
je 0x402eea
cmp eax, 0x80
ja 0x402eea
push edi
xor eax, eax
inc eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
mov dword [0x40858c], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 4
mov edx, 0x409a34
mov ecx, 0x401280
call fcn.00404669
test eax, eax
jne 0x402d74
xor eax, eax
mov edx, 0x4b1
push eax
push 0x10
push eax
push eax
xor ecx, ecx
call fcn.00404495
mov dword [0x409124], 0x80070714
jmp 0x402efd
test byte [0x409a34], 0xc0
je 0x402e16
push 0x104
lea edx, [ebp - 0x108]
mov ecx, 0x40128c
call fcn.00404669
test eax, eax
je 0x402d52
lea eax, [ebp - 0x108]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x408588], eax
test eax, eax
je 0x402e16
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402e16
xor ecx, ecx
test byte [0x409a34], 0x80
je 0x402de1
push ecx
push 0x10
push ecx
push 0x409154
mov edx, 0x54b
call fcn.00404495
jmp 0x402dfb
push 4
push 0x20
push 0
push 0x409154
mov edx, 0x524
call fcn.00404495
cmp eax, 6
je 0x402e16
push dword [0x408588]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x409124], 0x800700b7
jmp 0x402efd
and dword [0x409120], edi
mov ecx, ebx
call fcn.00405c50
test eax, eax
jne 0x402e31
mov edx, 0x520
jmp 0x402eef
cmp byte [0x408a3a], 0
je 0x402e49
mov ecx, 0x408a3a
call fcn.00402395
jmp 0x402efd
push 0xa
push 0x40129c
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x402e65
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp dword [0x408184], 0
je 0x402e74
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
cmp dword [0x408a24], 0
je 0x402e82
xor eax, eax
inc eax
jmp 0x402eff
mov ecx, edi
call fcn.004036dc
test eax, eax
je 0x402efd
mov ax, word [0x409a40]
xor ebx, ebx
inc ebx
cmp ax, bx
je 0x402ea7
cmp ax, 2
je 0x402ea7
cmp ax, 3
jne 0x402ee6
test dword [0x409a34], 0x100
je 0x402ee6
test byte [0x408a38], 1
jne 0x402ee6
call fcn.004018c1
test eax, eax
jne 0x402ee6
push 0x83e
push 0x547
push 0x401a00
push eax
mov edx, 0x7d6
call fcn.004064c3
cmp eax, 0x83d
jne 0x402efd
mov eax, ebx
jmp 0x402eff
mov edx, 0x4b1
xor eax, eax
xor ecx, ecx
push eax
push 0x10
push eax
push eax
call fcn.00404495
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406c80
leave
ret 4
Function at 0x402f10
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x408a38], 0
push ebx
push esi
push edi
jne 0x402f5f
cmp dword [0x408a24], 0
jne 0x402f52
call fcn.004051a5
test eax, eax
je 0x403034
cmp word [0x408a38], 0
jne 0x402f5f
call fcn.00403a2b
test eax, eax
je 0x403034
call fcn.00405124
test eax, eax
je 0x403034
call fcn.0040555a
test eax, eax
je 0x403034
mov esi, 0x105
lea eax, [ebp - 0x10c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x401144
mov edx, esi
lea ecx, [ebp - 0x10c]
call fcn.00406534
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
xor edi, edi
test ebx, ebx
je 0x402fea
push 0x4012a8
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x110], eax
test eax, eax
je 0x402fea
mov esi, esp
mov ecx, eax
push edi
push 0x4091e4
call dword [0x40a288]
call dword [ebp - 0x110]
cmp esi, esp
je 0x402fea
mov ecx, 4
int 0x29
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x408a24], edi
jne 0x40300a
cmp dword [0x409a30], edi
jne 0x40300a
call fcn.004061ce
test eax, eax
je 0x403034
push 0x4091e4
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x403045
push edi
push 0x10
push edi
push edi
mov edx, 0x4bc
xor ecx, ecx
call fcn.00404495
call fcn.00406233
mov dword [0x409124], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406c80
leave
ret
cmp dword [0x408a2c], edi
jne 0x403056
call fcn.00403b12
test eax, eax
je 0x403034
test byte [0x408d48], 0xc0
jne 0x40306d
mov cx, word [0x409a40]
call fcn.00402570
mov edi, eax
mov eax, dword [0x408a24]
mov dword [0x409a44], edi
test eax, eax
jne 0x403092
cmp dword [0x409a30], eax
jne 0x403092
call fcn.00403b8e
test eax, eax
je 0x403034
mov eax, dword [0x408a24]
cmp word [0x408a38], 0
jne 0x4030a5
test eax, eax
jne 0x4030a5
call fcn.00404153
xor eax, eax
inc eax
jmp 0x403036
Function at 0x403fdb
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov ebx, ecx
inc esi
xor eax, eax
push edi
test ebx, ebx
je 0x4040f6
lea edi, [ebp - 0x21c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x21c]
push eax
push edx
xor edi, edi
push edi
push edi
push 0x20
push edi
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4040b0
push 0xffffffffffffffff
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x20c]
cmp dword [0x408a28], edi
jne 0x40407d
mov eax, dword [0x409a2c]
test al, 1
je 0x40407d
test al, 2
jne 0x40407d
mov eax, ecx
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x40407d
mov dword [0x409a2c], ecx
call fcn.00404105
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test dword [0x409a34], 0x400
je 0x4040f4
cmp dword [ebp - 0x20c], edi
jge 0x4040f4
jmp 0x4040f2
call fcn.00406233
push edi
mov dword [0x409124], eax
lea eax, [ebp - 0x208]
push 0x200
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push edi
push 0x10
lea eax, [ebp - 0x208]
mov edx, 0x4c4
push eax
push ebx
xor ecx, ecx
call fcn.00404495
mov esi, edi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406c80
leave
ret