joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40186a
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 [0x4080e0]
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 0x401990
lea ecx, [ebp - 0x10]
call fcn.004017b0
test eax, eax
jne 0x40197f
lea eax, [ebp - 0x14]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401990
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x401971
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x401971
push esi
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x401970
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x401969
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 0x401969
cmp dword [esi], ebx
jbe 0x401960
lea edi, [esi + 4]
push dword [ebp - 0x1c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x401955
inc ebx
add edi, 8
cmp ebx, dword [esi]
jb 0x40193c
jmp 0x401960
xor eax, eax
inc eax
mov dword [0x4080e0], 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 - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
jmp 0x401990
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x401990
mov dword [0x4080e0], 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00406e50
mov esp, ebp
pop ebp
ret
Function at 0x401f7d
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebx
mov ebx, ecx
test bl, 2
jne 0x401f91
call fcn.00401e8a
cmp eax, 2
jne 0x401fc6
test bl, 4
jne 0x401fb2
push 4
push 0x40
push 0
push 0x401098
mov edx, 0x522
xor ecx, ecx
call fcn.004044e8
cmp eax, 6
jne 0x401fc6
cmp word [0x409a40], 0
jne 0x401fc8
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop ebx
ret
pop ebx
jmp fcn.00401eca

Function at 0x401fd3
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 0x402018
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 0x402018
push 0x408530
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x402265
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 0x40238a
push ebx
lea eax, [ebp - 0x344]
xor ebx, ebx
push eax
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402389
push edi
lea eax, [ebp - 0x348]
mov edi, 0x238
push eax
lea eax, [ebp - 0x340]
mov dword [ebp - 0x348], edi
push eax
push ebx
push ebx
push 0x408530
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40237c
push esi
push 0x103
lea eax, [ebp - 0x107]
mov byte [ebp - 0x108], bl
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x108]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x402329
push 0x401098
mov edx, esi
lea ecx, [ebp - 0x108]
call fcn.00406717
push 0x4091e4
lea eax, [ebp - 0x108]
push eax
push 0x40800c
lea eax, [ebp - 0x340]
push edi
push eax
call fcn.004016d6
add esp, 0x14
lea ecx, [ebp - 0x340]
lea edx, [ecx + 1]
pop esi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402354
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x340]
push eax
push 1
push ebx
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 edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406e50
mov esp, ebp
pop ebp
ret
Function at 0x40239d
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 0x4024d8
cmp byte [esi], 0
je 0x4024d8
mov ebx, 0x104
lea ecx, [esp + 0x150]
push esi
mov edx, ebx
call fcn.00401635
push 0x40114c
mov edx, ebx
lea ecx, [esp + 0x154]
call fcn.0040166d
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 0x4024d8
push esi
mov edx, ebx
lea ecx, [esp + 0x154]
call fcn.00401635
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x3c]
je 0x402486
push 0x401150
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4024b6
push 0x401154
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4024b6
lea eax, [esp + 0x3c]
mov edx, ebx
push eax
lea ecx, [esp + 0x154]
call fcn.0040166d
push 0x401098
mov edx, ebx
lea ecx, [esp + 0x154]
call fcn.00406717
lea ecx, [esp + 0x150]
call fcn.0040239d
jmp 0x4024b6
push eax
mov edx, ebx
lea ecx, [esp + 0x154]
call fcn.0040166d
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 0x402414
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.00406e50
mov esp, ebp
pop ebp
ret

Function at 0x4024f2
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 0x40256d
push 0x401158
mov edx, edi
lea ecx, [ebp - 0x108]
call fcn.00406717
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 0x40256d
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.00406e50
mov esp, ebp
pop ebp
ret
Function at 0x402584
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 eax, eax
je 0x402631
cmp eax, 1
je 0x4025f7
add eax, 0xfffffffe
cmp eax, 1
ja 0x402638
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push eax
push 0x20019
push esi
push str.SystemCurrentControlSetControlSession_Manager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4025f2
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 0x402638
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 0x4025f2
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 0x4025e0
call fcn.004024f2
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402791
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 0x4028d0
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 0x4028d5
cmp al, 0x57
je 0x4028c6
push ecx
push 0x401168
push ecx
mov edx, esi
mov dword [ebp - 0x11c], esi
lea ecx, [ebp - 0x108]
call fcn.0040173e
push dword [ebp - 0x110]
mov edx, esi
lea ecx, [ebp - 0x108]
call fcn.00406717
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 0x4028e1
lea eax, [ebp - 0x11c]
push eax
push edi
lea eax, [ebp - 0x114]
push eax
push ebx
push 0x401098
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4028b8
mov eax, dword [ebp - 0x114]
cmp eax, 2
jne 0x4028b0
push esi
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4028aa
lea eax, [ebp - 0x108]
mov edx, esi
push eax
mov ecx, edi
call fcn.00401635
jmp 0x4028b5
mov eax, dword [ebp - 0x114]
cmp eax, 1
jne 0x4028b8
xor ebx, ebx
inc ebx
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4028dd
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x4028e1
mov esi, 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test ebx, ebx
jne 0x4028f0
push dword [ebp - 0x110]
mov edx, esi
mov ecx, edi
call fcn.00406717
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00406e50
mov esp, ebp
pop ebp
ret 4
Function at 0x40290b
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 0x402a84
mov eax, esi
mov dword [ebp - 4], esi
mov ecx, dword [edx + 0x80]
add eax, edx
mov dword [ebp - 0x14], ecx
mov eax, dword [eax + ecx + 0xbc]
mov ecx, dword [ebp - 8]
add eax, 0x84
add eax, edx
push eax
call fcn.00402791
test eax, eax
je 0x402a87
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 0x402a4e
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x402a87
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x402a87
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 0x402a42
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x40119c
push dword [ebp - 0x20]
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x402a42
cmp dword [ebp - 0x24], 0
je 0x402a42
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.00402ab0
push dword [esi]
mov dword [ebp + ebx - 0x34], eax
push dword [esi - 4]
call fcn.00402ab0
mov dword [ebp + ebx - 0x3c], eax
lea esi, [esi + 0x18]
add ebx, 4
cmp ebx, 8
jl 0x402a01
mov ebx, dword [ebp - 0x10]
xor esi, esi
cmp dword [ebp - 0x34], esi
jl 0x402a38
cmp dword [ebp - 0x3c], esi
jle 0x402a42
cmp dword [ebp - 0x30], esi
jl 0x402aa2
cmp dword [ebp - 0x38], esi
jg 0x402aa2
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0xc]
jmp 0x402a6e
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 0x402a87
cmp dword [eax + ecx + 0x88], esi
jne 0x402a87
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 0x402935
xor esi, esi
inc esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], ebx
test edi, edi
je 0x402a97
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x402a87
Function at 0x402cee
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 [0x409124], esi
call sub.msvcrt.dll_memset
push 0x32c
push edi
push 0x408900
call sub.msvcrt.dll_memset
push 0x104
push edi
push 0x409020
call sub.msvcrt.dll_memset
add esp, 0x24
xor eax, eax
inc eax
mov edx, 0x409154
mov ecx, 0x4011d0
mov dword [0x4093ec], eax
push 0x7f
call fcn.004046f9
test eax, eax
je 0x402f37
cmp eax, 0x80
ja 0x402f37
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, 0x4011d8
call fcn.004046f9
test eax, eax
jne 0x402dc1
xor eax, eax
mov edx, 0x4b1
push eax
push 0x10
push eax
push eax
xor ecx, ecx
call fcn.004044e8
mov dword [0x409a48], 0x80070714
jmp 0x402f4a
test byte [0x409a34], 0xc0
je 0x402e63
push 0x104
lea edx, [ebp - 0x108]
mov ecx, 0x4011e4
call fcn.004046f9
test eax, eax
je 0x402d9f
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 0x402e63
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402e63
xor ecx, ecx
test byte [0x409a34], 0x80
je 0x402e2e
push ecx
push 0x10
push ecx
push 0x409154
mov edx, 0x54b
call fcn.004044e8
jmp 0x402e48
push 4
push 0x20
push 0
push 0x409154
mov edx, 0x524
call fcn.004044e8
cmp eax, 6
je 0x402e63
push dword [0x408588]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x409a48], 0x800700b7
jmp 0x402f4a
and dword [0x409a44], edi
mov ecx, ebx
call fcn.00405d6c
test eax, eax
jne 0x402e7e
mov edx, 0x520
jmp 0x402f3c
cmp byte [0x40891a], 0
je 0x402e96
mov ecx, 0x40891a
call fcn.0040239d
jmp 0x402f4a
push 0xa
push 0x4011f4
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x402eb2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp dword [0x4081d0], 0
je 0x402ec1
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
cmp dword [0x408904], 0
je 0x402ecf
xor eax, eax
inc eax
jmp 0x402f4c
mov ecx, edi
call fcn.00403739
test eax, eax
je 0x402f4a
mov ax, word [0x409a40]
xor ebx, ebx
inc ebx
cmp ax, bx
je 0x402ef4
cmp ax, 2
je 0x402ef4
cmp ax, 3
jne 0x402f33
test dword [0x409a34], 0x100
je 0x402f33
test byte [0x408918], 1
jne 0x402f33
call fcn.0040186a
test eax, eax
jne 0x402f33
push 0x83e
push 0x547
push 0x4019b0
push eax
mov edx, 0x7d6
call fcn.00406611
cmp eax, 0x83d
jne 0x402f4a
mov eax, ebx
jmp 0x402f4c
mov edx, 0x4b1
xor eax, eax
xor ecx, ecx
push eax
push 0x10
push eax
push eax
call fcn.004044e8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406e50
mov esp, ebp
pop ebp
ret 4
Function at 0x402f67
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x408918], 0
push ebx
push esi
push edi
jne 0x402fb5
cmp dword [0x408904], 0
jne 0x402fac
call fcn.0040526f
test eax, eax
jne 0x402fa2
xor eax, eax
jmp 0x4030f6
cmp word [0x408918], 0
jne 0x402fb5
call fcn.00403a3e
test eax, eax
je 0x402f9b
call fcn.004051e9
test eax, eax
je 0x402f9b
call fcn.0040564d
test eax, eax
je 0x402f9b
mov esi, 0x105
lea eax, [ebp - 0x10c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x40109c
mov edx, esi
lea ecx, [ebp - 0x10c]
call fcn.00406717
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40302f
push 0x401200
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x40302f
mov esi, esp
mov ecx, ebx
push 0
push 0x4091e4
call dword [0x40a28c]
call ebx
cmp esi, esp
je 0x40302f
mov ecx, 4
int 0x29
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x408904], 0
jne 0x403055
cmp dword [0x409a30], 0
jne 0x403055
call fcn.004062f2
test eax, eax
je 0x402f9b
push 0x4091e4
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x403084
push eax
push 0x10
push eax
push eax
mov edx, 0x4bc
xor ecx, ecx
call fcn.004044e8
call fcn.0040635e
mov dword [0x409a48], eax
jmp 0x402f9b
cmp dword [0x40890c], 0
jne 0x40309a
call fcn.00403b2a
test eax, eax
je 0x402f9b
test byte [0x408c28], 0xc0
jne 0x4030b6
mov cx, word [0x409a40]
call fcn.00402584
mov dword [0x409a3c], eax
jmp 0x4030bd
and dword [0x409a3c], 0
mov eax, dword [0x408904]
test eax, eax
jne 0x4030e0
cmp dword [0x409a30], eax
jne 0x4030e0
call fcn.00403bab
test eax, eax
je 0x402f9b
mov eax, dword [0x408904]
cmp word [0x408918], 0
jne 0x4030f3
test eax, eax
jne 0x4030f3
call fcn.00404184
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406e50
mov esp, ebp
pop ebp
ret
Function at 0x404000
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 0x40411b
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 0x4040d5
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 [0x408908], edi
jne 0x4040a2
mov eax, dword [0x409a2c]
test al, 1
je 0x4040a2
test al, 2
jne 0x4040a2
mov eax, ecx
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x4040a2
mov dword [0x409a2c], ecx
call fcn.00404131
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 0x404119
cmp dword [ebp - 0x20c], edi
jge 0x404119
jmp 0x404117
call fcn.0040635e
push edi
mov dword [0x409a48], 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.004044e8
mov esi, edi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406e50
mov esp, ebp
pop ebp
ret
Function at 0x404249
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push str.SHELL32.DLL
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4043d7
push str.SHBrowseForFolder
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
test eax, eax
je 0x4043c9
push 0xc3
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4043c9
push str.SHGetPathFromIDList
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4043c9
xor ebx, ebx
cmp byte [0x409020], bl
jne 0x40430b
push 0x409020
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, 0x409020
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4042d2
sub ecx, edx
lea eax, [ecx + 0x409020]
push eax
push 0x409020
call dword [sym.imp.USER32.dll_CharPrevA]
mov dword [ebp - 4], eax
cmp byte [eax], 0x5c
jne 0x40430b
push eax
push 0x409020
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x3a
je 0x40430b
mov eax, dword [ebp - 4]
mov byte [eax], bl
lea eax, [ebp - 0x30]
mov byte [0x4087a0], bl
mov dword [ebp - 0x30], esi
mov esi, esp
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 8]
mov ecx, ebx
push eax
mov dword [ebp - 0x24], 0x408598
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0x404220
mov dword [ebp - 0x18], 0x409020
call dword [0x40a28c]
call ebx
cmp esi, esp
je 0x404354
mov ecx, 4
int 0x29
mov dword [ebp - 8], eax
test eax, eax
je 0x4043b5
mov ebx, dword [ebp - 0xc]
mov esi, esp
push 0x409020
push eax
mov ecx, ebx
call dword [0x40a28c]
call ebx
cmp esi, esp
je 0x40437b
mov ecx, 4
int 0x29
cmp byte [0x409020], 0
je 0x404398
push 0x409020
mov edx, 0x104
mov ecx, 0x4087a0
call fcn.00401635
mov ebx, dword [ebp - 0x10]
mov esi, esp
push dword [ebp - 8]
mov ecx, ebx
call dword [0x40a28c]
call ebx
cmp esi, esp
je 0x4043b5
mov ecx, 4
int 0x29
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
cmp byte [0x4087a0], al
setne al
jmp 0x4043ec
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, 0x4c1
jmp 0x4043dc
mov edx, 0x4c2
xor ebx, ebx
mov ecx, esi
push ebx
push 0x10
push ebx
push ebx
call fcn.004044e8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8