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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418788
mov eax, dword fs:[0]
push eax
push ebx
mov eax, dword [0x4251dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.00402130
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404806
test al, 0x10
jne 0x404806
mov bl, 1
jmp 0x404808
xor bl, bl
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004010d0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x404830
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419380
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4251dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0x1c]
cmp byte [ebp + 8], 0
mov dword [ebp - 4], 1
jne 0x40487d
cmp dword [edi + 0x2a0], 2
jl 0x404993
lea ecx, [ebp + 0xc]
call fcn.00402130
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040fbe0
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0040fdc8
add esp, 0x14
test eax, eax
je 0x4048b1
xor ecx, ecx
mov word [eax], cx
mov eax, esi
neg eax
sbb eax, eax
and eax, 0x140
mov dword [ebp - 0x254], 0x3c
mov dword [ebp - 0x250], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp dword [edi + 0x2a0], 2
mov dword [ebp - 0x24c], eax
mov ecx, str.open
mov eax, str.runas
cmovl eax, ecx
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x248], eax
call fcn.00402130
lea ecx, [ebp + 0x14]
mov dword [ebp - 0x244], eax
call fcn.00402190
test eax, eax
jle 0x40491c
lea ecx, [ebp + 0x14]
call fcn.00402130
mov dword [ebp - 0x240], eax
jmp 0x404926
mov dword [ebp - 0x240], 0
lea eax, [ebp - 0x218]
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x254]
push eax
mov dword [ebp - 0x238], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40498d
test esi, esi
je 0x404989
cmp dword [ebp - 0x234], 0x20
jbe 0x40498d
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x404989
push 0x1b7740
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x404995
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0
call fcn.004010d0
lea ecx, [ebp + 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.004010d0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ee55
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4049d0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
je 0x404a4d
push ebx
push 0x20a
call fcn.00410126
add esp, 4
mov dword [esi + 4], eax
push eax
push 0x104
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
cmp ebx, 0x105
jbe 0x404a37
push dword [esi + 4]
call fcn.00410121
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00410126
add esp, 8
mov dword [esi + 4], eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
pop ebx
test eax, eax
jne 0x404a4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
pop esi
pop ebp
ret 4

Function at 0x404bb0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4193f8
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x4251dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.00402130
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.00410810
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00410810
push dword [esi]
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0040fb74
lea eax, [ebp - 0x420]
push 0x5f
push eax
call fcn.0040fdc8
add esp, 0x2c
test eax, eax
je 0x404c8e
push 0xffffffffffffffff
add eax, 2
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040fd0a
lea eax, [ebp - 0x218]
push 0x2e
push eax
call fcn.0040fdc8
add esp, 0x18
test eax, eax
je 0x404c8e
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404c97
sub eax, edx
sar eax, 1
je 0x404cb8
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.00401800
jmp 0x404cce
sub esp, 8
mov ecx, esp
push 0x41beb4
call fcn.00401070
mov ecx, edi
call fcn.00401840
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004010d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ee55
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405fc0
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x4251dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x414]
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040fbe0
lea ecx, [ebp - 0x20c]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406010
xor eax, eax
sub ecx, edx
movzx ebx, bl
sar ecx, 1
push str.MacromedTemp
cmove ebx, eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040fb74
add esp, 0xc
test bl, bl
je 0x4061a2
sub esp, 8
lea eax, [ebp - 0x20c]
mov ecx, esp
push eax
call fcn.00401070
call fcn.00403510
add esp, 8
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
js 0x4060da
push 0x104
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jle 0x4060da
push 0xffffffffffffffff
push 0x41b480
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040fc3c
push 0xffffffffffffffff
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040fc3c
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
call fcn.0040fd0a
add esp, 0x30
jmp 0x406110
push esi
push 0
push 0x41b484
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406101
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4061a2
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4061a2
push 0xffffffffffffffff
push 0x41b480
push 0x104
push esi
call fcn.0040fc3c
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.0040fd0a
push 0xffffffffffffffff
push 0x41b48c
push 0x104
push esi
call fcn.0040fc3c
add esp, 0x30
lea eax, [ebp - 0x61c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4061b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp + 0xc], 0
jne 0x4061a2
push 0
push str.Error
cmp eax, 5
jne 0x406195
push str.You_must_have_administrative_privileges_to_install_Adobe
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ee55
mov esp, ebp
pop ebp
ret
push str.Failed_to_create_temporary_file
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ee55
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0040ee55
mov esp, ebp
pop ebp
ret
Function at 0x406200
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4251dc]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
mov dword [ebp - 0x144], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x406400
push 0x41b3e4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406400
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40625d
lea ecx, [ebp - 0x28]
push ecx
call eax
jmp 0x406267
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x140]
cmp eax, 0xa
jb 0x40628c
xor eax, eax
cmp byte [ebp - 0x2a], 1
setne al
add eax, 0x12
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ee55
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x406320
mov eax, dword [ebp - 0x13c]
cmp eax, 3
jb 0x4062ba
xor eax, eax
cmp byte [ebp - 0x2a], 1
setne al
add eax, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ee55
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x4062d9
xor eax, eax
cmp byte [ebp - 0x2a], 1
setne al
add eax, 0xe
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ee55
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x4062fc
xor eax, eax
cmp byte [ebp - 0x2a], 1
sete al
lea eax, [eax*2 + 0xb]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ee55
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x406400
cmp byte [ebp - 0x2a], 1
sete al
lea eax, [eax*2 + 0xa]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ee55
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x4063be
mov eax, dword [ebp - 0x13c]
cmp eax, 2
jne 0x40638f
mov eax, 0x8000
cmp word [ebp - 0x2c], ax
jne 0x406352
mov eax, 9
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ee55
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x2a], 1
jne 0x406372
cmp word [ebp - 0x28], 9
jne 0x406372
mov eax, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ee55
mov esp, ebp
pop ebp
ret
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
neg eax
sbb eax, eax
add eax, 6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ee55
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x4063a7
mov eax, 7
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ee55
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x406400
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ee55
mov esp, ebp
pop ebp
ret
cmp eax, 4
jne 0x406400
mov eax, dword [ebp - 0x134]
cmp eax, 2
jne 0x4063e1
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ee55
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x406400
xor eax, eax
cmp dword [ebp - 0x13c], eax
setne al
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ee55
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0040ee55
mov esp, ebp
pop ebp
ret
Function at 0x406660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x4251dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
xor bl, bl
call fcn.0040fbe0
add esp, 0xc
lea eax, [ebp - 0x61c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040fbe0
push str.MacromedTemp
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040fb74
mov ax, word [ebp - 0x414]
add esp, 0x18
lea ecx, [ebp - 0x414]
movzx edx, ax
test ax, ax
je 0x4066ff
lea eax, [edx - 0x41]
cmp ax, 0x19
ja 0x4066f3
add word [ecx], 0x20
movzx edx, word [ecx + 2]
add ecx, 2
test dx, dx
jne 0x4066e6
mov cx, word [ebp - 0x20c]
lea eax, [ebp - 0x20c]
movzx edx, cx
test cx, cx
je 0x40672d
lea ecx, [edx - 0x41]
cmp cx, 0x19
ja 0x406721
add word [eax], 0x20
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x406714
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0040fe6e
add esp, 8
movzx ecx, bl
test eax, eax
mov edx, 1
cmovne ecx, edx
mov al, cl
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040ee55
mov esp, ebp
pop ebp
ret
Function at 0x4072f0
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4197f0
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x4251dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 8
mov ecx, esp
push 0x41b368
mov dword [ebp - 4], 1
xor bl, bl
call fcn.00401070
lea ecx, [ebp + 0x10]
call fcn.00401450
lea eax, [ebp - 0x2ac]
push eax
mov dword [ebp - 0x2ac], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x29c], 2
jne 0x40736e
cmp dword [ebp - 0x2a8], 6
movzx ebx, bl
mov eax, 1
cmovae ebx, eax
lea ecx, [ebp + 8]
call fcn.00402130
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040fbe0
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0040fdc8
add esp, 0x14
test eax, eax
je 0x4073a2
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 0x2e8], 0x3c
mov dword [ebp - 0x2e4], 0x40
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x2e0], eax
mov ecx, str.open
mov eax, str.runas
test bl, bl
cmove eax, ecx
lea ecx, [ebp + 8]
mov dword [ebp - 0x2dc], eax
call fcn.00402130
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x2d8], eax
call fcn.00402190
test eax, eax
jle 0x407401
lea ecx, [ebp + 0x10]
call fcn.00402130
mov dword [ebp - 0x2d4], eax
jmp 0x40740b
mov dword [ebp - 0x2d4], 0
lea eax, [ebp - 0x218]
mov dword [ebp - 0x2d0], eax
lea eax, [ebp - 0x2e8]
push eax
mov dword [ebp - 0x2cc], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x407436
xor bl, bl
jmp 0x407465
push 0x1b7740
push dword [ebp - 0x2b0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0x18]
push eax
push dword [ebp - 0x2b0]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x2b0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.004010d0
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004010d0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ee55
mov esp, ebp
pop ebp
ret

Function at 0x407920
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4251dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x98]
push eax
mov esi, ecx
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x4079a3
mov eax, dword [ebp - 0x94]
cmp eax, 6
jb 0x4079a3
jbe 0x40797c
mov dword [esi + 0x2a0], 3
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ee55
mov esp, ebp
pop ebp
ret
mov eax, 1
cmp eax, dword [ebp - 0x90]
sbb eax, eax
neg eax
add eax, 2
mov dword [esi + 0x2a0], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ee55
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov dword [esi + 0x2a0], 1
xor ecx, ebp
pop esi
call fcn.0040ee55
mov esp, ebp
pop ebp
ret
Function at 0x4079c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4251dc]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x407a7f
push esi
push edi
push 0x41b480
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040fb74
xor ecx, ecx
mov eax, 0x11
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00410126
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add esp, 0x10
mov dword [0x426000], eax
xor esi, esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0040fbe0
push dword [esi + 0x425038]
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0040fb74
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
call edi
mov ecx, dword [0x426000]
add esi, 4
mov dword [esi + ecx - 4], eax
cmp esi, 0x44
jb 0x407a30
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ee55
mov esp, ebp
pop ebp
ret

Function at 0x408590
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4251dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push esi
push 2
mov dword [ebp - 0x234], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov edi, eax
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.00410810
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x238], eax
test eax, eax
je 0x4086c8
cmp edi, 0xffffffff
je 0x4086bf
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x408634
mov ebx, dword [ebp - 0x238]
mov edi, edi
cmp dword [ebp - 0x228], ebx
lea eax, [ebp - 0x230]
cmove esi, dword [ebp - 0x218]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x408610
mov ebx, dword [ebp - 0x234]
cmp byte [ebp + 0xc], 0
je 0x40866e
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40866e
jmp 0x408650
cmp dword [ebp - 0x228], esi
lea eax, [ebp - 0x230]
cmove esi, dword [ebp - 0x218]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x408650
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4086ab
push ebx
push edi
call fcn.00405df0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ee55
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
test esi, esi
jne 0x4086b8
push str.err2
jmp 0x4086cf
push str.err1
jmp 0x4086cf
push 0xffffffffffffffff
push str.err7
jmp 0x4086cf
push 0xffffffffffffffff
push str.err8
push 0x104
push ebx
call fcn.0040fd0a
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040ee55
mov esp, ebp
pop ebp
ret
Function at 0x409af0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4251dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push 0x104
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x10c], esi
mov dword [esi], vtable.DynamicLoadLibraryHelper.0
mov dword [esi + 4], 0
mov byte [esi + 8], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x409be4
test ebx, ebx
je 0x409be4
push edi
lea edi, [ebp - 0x108]
dec edi
jmp 0x409b50
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x409b50
mov ax, word [0x41b47c]
mov word [edi], ax
movzx eax, byte [ebp - 0x108]
xor ecx, ecx
cmp byte [ebp + 0x10], cl
mov esi, ebx
cmovne eax, ecx
mov byte [ebp - 0x108], al
lea ebx, [ebx]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x409b80
lea edi, [ebp - 0x108]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x409b90
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0x108]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp byte [ebp + 0xc], 0
mov ecx, eax
mov eax, dword [ebp - 0x10c]
pop edi
mov dword [eax + 4], ecx
je 0x409be6
test ecx, ecx
je 0x409bce
cmp ecx, 0xffffffff
jne 0x409be6
pop esi
mov byte [eax + 8], 0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ee55
mov esp, ebp
pop ebp
ret 0xc
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ee55
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a0c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419c08
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4251dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
push 0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
mov dword [esi], 0
call fcn.00402130
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40a1bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
cmp eax, 3
jne 0x40a1bc
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
call fcn.00401000
push 0
push 0x41b47c
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00401f10
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00402190
test eax, eax
lea ecx, [ebp - 0x24]
sete bl
mov byte [ebp - 4], 1
call fcn.004010d0
test bl, bl
jne 0x40a1ad
push esi
sub esp, 8
lea eax, [ebp - 0x18]
mov ecx, esp
push eax
call fcn.00401000
call fcn.0040a0c0
add esp, 0xc
test al, al
je 0x40a1ad
push 0
lea ecx, [ebp + 8]
call fcn.00402130
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
lea ecx, [ebp - 0x18]
setne bl
mov byte [ebp - 4], 0
call fcn.004010d0
jmp 0x40a1be
xor bl, bl
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.004010d0
jmp 0x40a1be
mov bl, 1
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004010d0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ee55
mov esp, ebp
pop ebp
ret

Function at 0x40a1f0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419c40
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4251dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.00402190
test eax, eax
je 0x40a2e1
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401000
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00402130
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40a268
mov byte [ebp - 4], 0
jmp 0x40a2d9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004010d0
lea ecx, [ebp + 8]
call fcn.00402130
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40a2c0
cmp byte [ebp + 0x10], 0
je 0x40a2e1
push 0
push 0x41b47c
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.00401f10
lea ecx, [ebp - 0x14]
call fcn.004010d0
lea ecx, [ebp + 8]
call fcn.00402130
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40a2e1
cmp byte [ebp + 0x10], 0
je 0x40a2e1
push 0
push 0x41b47c
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.00401f10
lea ecx, [ebp - 0x14]
call fcn.004010d0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004010d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc