joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4034d9
Capabilities:
Delete directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc44
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
push esi
xor esi, esi
cmp dword [0x4d3588], 0x594
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x40351e
push 0x402b50
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
push 0x402bac
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov eax, dword [0x422d28]
mov ebx, dword [0x422d2c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.004034d2
mov eax, dword [0x422d30]
mov edi, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x422d34]
add edi, 0x23f
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
mov ecx, eax
shl ecx, 4
cmp dword [0x4d3588], 0xc
mov dword [ebp - 4], ecx
jne 0x4035bf
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x444]
push eax
push esi
push 0x402bc4
push 0x402bd8
push 0x402be8
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push esi
lea eax, [ebp - 0x844]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
add dword [ebp - 4], ecx
mov ecx, dword [0x4d3588]
cmp ecx, 0xfa9
jne 0x4035dd
mov dword [0x4d2b24], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x4035eb
mov dword [0x4d24d8], esi
lea ecx, [edi + eax]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 8]
shr eax, cl
mov dword [0x4d2b20], 0xf4ea3dee
add eax, dword [ebp - 0x1c]
mov ecx, eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0x4d3588], 0x213
mov dword [ebp - 0x14], ecx
jne 0x403629
push esi
push 0x402bfc
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
cmp dword [0x4d3588], 0xc
jne 0x403672
lea eax, [ebp - 0x14]
push eax
push esi
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_BackupRead]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push esi
lea eax, [ebp - 0xc44]
push eax
push 0x402c28
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [edi + eax]
shr eax, cl
add eax, ebx
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
add edi, 0x61c88647
dec dword [ebp - 0x18]
jne 0x403557
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x4055ab
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422494]
jne 0x4055b5
repz ret
jmp fcn.00408dcc

Function at 0x40abeb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406b76
and dword [ebp - 4], 0
cmp dword [0x424108], 0
mov ebx, eax
jne 0x40ac9c
push 0x4021bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ad4d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4021b0
push edi
call esi
test eax, eax
je 0x40ad4d
push eax
call fcn.00406b04
mov dword [esp], 0x4021a0
push edi
mov dword [0x424108], eax
call esi
push eax
call fcn.00406b04
mov dword [esp], 0x40218c
push edi
mov dword [0x42410c], eax
call esi
push eax
call fcn.00406b04
mov dword [esp], 0x402170
push edi
mov dword [0x424110], eax
call esi
push eax
call fcn.00406b04
pop ecx
mov dword [0x424118], eax
test eax, eax
je 0x40ac9c
push 0x402158
push edi
call esi
push eax
call fcn.00406b04
pop ecx
mov dword [0x424114], eax
mov eax, dword [0x424114]
cmp eax, ebx
je 0x40acf4
cmp dword [0x424118], ebx
je 0x40acf4
push eax
call fcn.00406b7f
push dword [0x424118]
mov esi, eax
call fcn.00406b7f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40acf4
test edi, edi
je 0x40acf4
call esi
test eax, eax
je 0x40aceb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40aceb
test byte [ebp - 0xc], 1
jne 0x40acf4
or dword [ebp + 0x10], 0x200000
jmp 0x40ad2d
mov eax, dword [0x42410c]
cmp eax, ebx
je 0x40ad2d
push eax
call fcn.00406b7f
pop ecx
test eax, eax
je 0x40ad2d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ad2d
mov eax, dword [0x424110]
cmp eax, ebx
je 0x40ad2d
push eax
call fcn.00406b7f
pop ecx
test eax, eax
je 0x40ad2d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x424108]
call fcn.00406b7f
pop ecx
test eax, eax
je 0x40ad4d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ad4f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4061b0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x9c]
cmp eax, 0xffffffff
je 0x406235
cmp eax, 0x40
jbe 0x4061dc
lea eax, [esi + 0x40]
push eax
push esi
call fcn.00407d10
add esp, 8
mov dword [esi + 0x9c], 0x14
mov edx, dword [esi + 0x9c]
mov ecx, 0x40
push edi
sub ecx, edx
lea edi, [edx + esi]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, esi
mov ecx, 0x10
mov edx, dword [eax]
add eax, 4
xor edx, 0x36363636
dec ecx
mov dword [eax - 4], edx
jne 0x406204
lea edi, [esi + 0x40]
push edi
call fcn.00407c00
push edi
push 0x40
push esi
call fcn.00407c40
add esp, 0x10
mov dword [esi + 0x9c], 0xffffffff
pop edi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40624f
add esi, 0x40
push esi
push eax
mov eax, dword [esp + 0x10]
push eax
call fcn.00407c40
add esp, 0xc
pop esi
ret

Function at 0x406260
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x24]
push edi
mov eax, dword [esi + 0x9c]
cmp eax, 0xffffffff
je 0x4062e7
cmp eax, 0x40
jbe 0x406290
lea eax, [esi + 0x40]
push eax
push esi
call fcn.00407d10
add esp, 8
mov dword [esi + 0x9c], 0x14
mov edx, dword [esi + 0x9c]
mov ecx, 0x40
sub ecx, edx
xor eax, eax
lea edi, [edx + esi]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, esi
mov ecx, 0x10
mov edx, dword [eax]
add eax, 4
xor edx, 0x36363636
dec ecx
mov dword [eax - 4], edx
jne 0x4062b7
lea edi, [esi + 0x40]
push edi
call fcn.00407c00
push edi
push 0x40
push esi
call fcn.00407c40
add esp, 0x10
mov dword [esi + 0x9c], 0xffffffff
lea edi, [esi + 0x40]
lea eax, [esp + 8]
push edi
push eax
call fcn.00407d10
add esp, 8
mov eax, esi
mov ecx, 0x10
mov edx, dword [eax]
add eax, 4
xor edx, 0x6a6a6a6a
dec ecx
mov dword [eax - 4], edx
jne 0x4062ff
push edi
call fcn.00407c00
push edi
push 0x40
push esi
call fcn.00407c40
push edi
lea ecx, [esp + 0x1c]
push 0x14
push ecx
call fcn.00407c40
lea edx, [esp + 0x24]
push edi
push edx
call fcn.00407d10
mov ecx, dword [esp + 0x48]
add esp, 0x24
test ecx, ecx
jbe 0x406358
mov edi, dword [esp + 0x20]
mov eax, ecx
lea esi, [esp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x14
ret

Function at 0x407c00
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret
Function at 0x407e10
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x5c
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
xor eax, eax
mov dword [esp + 8], 0x67452301
mov dword [esp + 4], eax
mov dword [esp], eax
lea eax, [esp]
mov dword [esp + 0xc], 0xefcdab89
push eax
push ecx
push edx
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
mov dword [esp + 0x24], 0xc3d2e1f0
call fcn.00407c40
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.00407d10
add esp, 0x70
ret
Function at 0x40a6f0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x1c
push ebp
mov ebp, ecx
mov ecx, dword [ebp + 0x579c]
push esi
lea eax, [ebp + 0x579c]
push edi
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x40a718
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x1c
ret
lea eax, [esp + 0x14]
push 0
push eax
mov byte [esp + 0x1c], 0x50
mov byte [esp + 0x1d], 0x72
mov byte [esp + 0x1e], 0x6f
mov byte [esp + 0x1f], 0x67
mov byte [esp + 0x20], 0x6d
mov byte [esp + 0x21], 0x61
mov byte [esp + 0x22], 0x6e
mov byte [esp + 0x23], 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
mov dword [ebp + 0x57a0], eax
je 0x40a7a7
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 0xc]
push edx
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40a7a7
mov eax, dword [esp + 0x10]
xor edi, edi
push eax
push 0xe
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40a79c
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x40a81d
push ebp
push 0x40a670
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
je 0x40a7c3
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp + 0x57a0], eax
mov eax, dword [ebp + 0x57a0]
test eax, eax
je 0x40a829
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 0xc]
push edx
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40a829
mov eax, dword [esp + 0x10]
xor edi, edi
push eax
push 0xe
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40a812
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40a829
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x1c
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret

Function at 0x40ad00
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push esi
dec eax
push edi
mov esi, ecx
mov dword [esp + 8], 0
jne 0x40adb9
mov eax, dword [esi + 0x5f94]
test eax, eax
je 0x40ad2a
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
mov eax, dword [esp + 0x10]
lea ecx, [esp + 8]
push ecx
push 4
push esi
push 0x41bd90
push 0
push 0
mov dword [esi + 0x5f94], eax
call fcn.0045233c
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x40ad6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x467114
call fcn.00446e00
add esp, 8
xor eax, eax
pop edi
pop esi
pop ecx
ret 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
add esi, 0x5d1c
push 0
push esi
push eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x40adab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4670d8
call fcn.00446cb0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ecx
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
pop ecx
ret 8
Function at 0x4105b0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [0x48661c]
sub esp, 0x32c
test eax, eax
push ebx
push ebp
push esi
mov ebp, ecx
jne 0x4107da
mov eax, dword [0x486614]
test eax, eax
jne 0x4107da
lea ebx, [ebp + 0x5f70]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [0x481910]
mov ecx, 0x40
mov byte [esp + 0x114], al
xor eax, eax
lea edi, [esp + 0x115]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x482b88]
pop edi
test al, al
je 0x41064c
cmp al, 0x2a
je 0x41064c
push 0x104
lea ecx, [esp + 0x10]
push 0x482b88
push ecx
call fcn.0042f1a0
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
lea edx, [esp + 0xc]
push edx
call esi
cmp byte [esp + eax + 0xb], 0x5c
je 0x4106a0
push 0x104
lea eax, [esp + 0x10]
push 0x4695f4
push eax
jmp 0x410698
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.0042b3a0
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 8
lea edx, [esp + 0xc]
push edx
call esi
cmp byte [esp + eax + 0xb], 0x5c
je 0x410689
push 0x104
lea eax, [esp + 0x10]
push 0x4695f4
push eax
call fcn.0042f1f0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x10]
push 0x4695e4
push ecx
call fcn.0042f1f0
add esp, 0xc
push 0x482b88
call esi
cmp eax, 3
jge 0x4106fa
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.0042b3a0
add esp, 8
lea eax, [esp + 0xc]
push eax
call esi
cmp byte [esp + eax + 0xb], 0x5c
je 0x4106e3
push 0x104
lea ecx, [esp + 0x10]
push 0x4695f4
push ecx
call fcn.0042f1f0
add esp, 0xc
push 0x104
lea edx, [esp + 0x10]
push 0x4695e4
push edx
call fcn.0042f1f0
add esp, 0xc
cmp byte [0x482b88], 0x5c
je 0x41074c
cmp byte [0x482b89], 0x3a
je 0x41074c
push 0x482b88
lea eax, [esp + 0x218]
push 0x4695bc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x220]
push 0xa1
push ecx
call fcn.00446e00
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebp
pop ebx
add esp, 0x32c
ret 4
mov eax, dword [ebp + 0x579c]
xor esi, esi
test eax, eax
je 0x410768
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x410768
mov esi, 1
lea edx, [esp + 0xc]
push 0x104
lea eax, [esp + 0x114]
push edx
push eax
call fcn.0042f1a0
mov ecx, dword [esp + 0x348]
push 0x104
lea edx, [esp + 0x120]
push ecx
push edx
call fcn.0042f1f0
add esp, 0x18
lea eax, [esp + 0xc]
lea ecx, [esp + 0x110]
push 5
push eax
push 0x481910
push ecx
push 0x4695b4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x4107c7
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebp
pop ebx
add esp, 0x32c
ret 4
push 0
push 0x61
mov ecx, ebp
call fcn.0040a3d0
pop esi
pop ebp
pop ebx
add esp, 0x32c
ret 4
Function at 0x410800
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
push 1
mov esi, ecx
push 0x469884
call fcn.0042b430
add esp, 8
mov dword [esi + 0x578c], eax
test eax, eax
jne 0x410836
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x469834
call fcn.00446e00
add esp, 8
xor eax, eax
pop edi
pop esi
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x469820
push eax
call edi
test eax, eax
mov dword [esi + 0x5780], eax
jne 0x41085c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4697bc
jmp 0x4108a6
mov eax, dword [esi + 0x578c]
push 0x4697a4
push eax
call edi
test eax, eax
mov dword [esi + 0x577c], eax
jne 0x410882
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x46973c
jmp 0x4108a6
mov ecx, dword [esi + 0x578c]
push 0x469728
push ecx
call edi
test eax, eax
mov dword [esi + 0x5778], eax
jne 0x4108ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4696c4
call fcn.00446e00
mov eax, dword [esi + 0x578c]
add esp, 8
test eax, eax
je 0x4108c9
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x578c], 0
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esi + 0x578c]
push ebp
push 0x4696b8
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x5784], eax
test eax, eax
jne 0x4108fd
call ebp
push eax
push 0x469660
call fcn.00446e00
add esp, 8
mov eax, dword [esi + 0x578c]
push 0x469654
push eax
call edi
test eax, eax
mov dword [esi + 0x5788], eax
jne 0x410925
call ebp
push eax
push 0x4695f8
call fcn.00446e00
add esp, 8
pop ebp
pop edi
mov eax, 1
pop esi
ret
Function at 0x4118d0
Capabilities:
Create directory

Disassembly:
sub esp, 0x32c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x33c]
xor ebx, ebx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x411a09
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x411a09
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [esp + 0x114], bl
mov byte [esp + 0x10], bl
lea ecx, [esp + 0x10]
mov al, byte [esi]
cmp al, 0x5c
je 0x41192e
cmp al, bl
je 0x41192e
mov byte [ecx], al
mov al, byte [esi + 1]
inc ecx
inc esi
cmp al, 0x5c
jne 0x41191f
lea eax, [esp + 0x10]
mov byte [ecx], bl
push eax
call ebp
cmp eax, 1
jl 0x411a09
lea ecx, [esp + 0x10]
push 0x104
lea edx, [esp + 0x118]
push ecx
push edx
call fcn.0042f1f0
add esp, 0xc
lea eax, [esp + 0x114]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41198c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xb7
je 0x41198c
lea ecx, [esp + 0x114]
push ecx
call ebp
cmp eax, 2
jg 0x4119c9
cmp byte [esi], bl
je 0x411a09
lea edx, [esp + 0x10]
push edx
call ebp
cmp eax, 1
jl 0x411a09
cmp byte [esi], 0x5c
jne 0x4119bc
push 0x104
lea eax, [esp + 0x118]
push 0x4695f4
push eax
call fcn.0042f1f0
add esp, 0xc
inc esi
mov byte [esp + 0x10], bl
lea ecx, [esp + 0x10]
jmp 0x411919
lea ecx, [esp + 0x114]
lea edx, [esp + 0x218]
push ecx
push 0x46b884
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x224]
push edi
push eax
call fcn.00446e00
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x32c
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x32c
ret
Function at 0x411d10
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [0x486614]
sub esp, 0x228
test eax, eax
push esi
push edi
mov edi, ecx
jne 0x411ef1
mov eax, dword [0x48661c]
test eax, eax
jne 0x411ef1
mov al, byte [0x482b88]
test al, al
je 0x411d7d
cmp al, 0x2a
je 0x411d7d
push 0x104
lea eax, [esp + 0xc]
push 0x482b88
push eax
call fcn.0042f1a0
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call esi
cmp byte [esp + eax + 7], 0x5c
je 0x411dd1
push 0x104
lea edx, [esp + 0xc]
push 0x4695f4
push edx
jmp 0x411dc9
lea eax, [esp + 8]
push 0x104
push eax
call fcn.0042b3a0
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 8
lea ecx, [esp + 8]
push ecx
call esi
cmp byte [esp + eax + 7], 0x5c
je 0x411dba
push 0x104
lea edx, [esp + 0xc]
push 0x4695f4
push edx
call fcn.0042f1f0
add esp, 0xc
push 0x104
lea eax, [esp + 0xc]
push 0x4695e4
push eax
call fcn.0042f1f0
add esp, 0xc
push 0x482b88
call esi
cmp eax, 3
jge 0x411e2b
lea ecx, [esp + 8]
push 0x104
push ecx
call fcn.0042b3a0
add esp, 8
lea edx, [esp + 8]
push edx
call esi
cmp byte [esp + eax + 7], 0x5c
je 0x411e14
push 0x104
lea eax, [esp + 0xc]
push 0x4695f4
push eax
call fcn.0042f1f0
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push 0x4695e4
push ecx
call fcn.0042f1f0
add esp, 0xc
cmp byte [0x482b88], 0x5c
je 0x411e73
cmp byte [0x482b89], 0x3a
je 0x411e73
push 0x482b88
lea edx, [esp + 0x110]
push 0x4695bc
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x118]
push 0xa1
push eax
call fcn.00446e00
add esp, 0x14
pop edi
pop esi
add esp, 0x228
ret
mov eax, dword [0x482c98]
xor esi, esi
test eax, eax
je 0x411ea8
mov eax, dword [edi + 0x5750]
test eax, eax
jne 0x411ea8
mov eax, dword [edi + 0x579c]
test eax, eax
je 0x411ea8
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x411ea8
mov esi, 1
mov dword [edi + 0x5750], esi
lea ecx, [esp + 8]
push ecx
call fcn.004118d0
add esp, 4
lea edx, [esp + 8]
push 5
push 0x481910
push 0x481910
push edx
push 0x4695b4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x411ef1
mov eax, dword [edi + 0x5750]
test eax, eax
je 0x411ef1
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov dword [edi + 0x5750], 0
pop edi
pop esi
add esp, 0x228
ret
Function at 0x412000
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 0x20c
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x59cc]
test eax, eax
je 0x412038
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x46b9c0
call fcn.00446e00
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x20c
ret
push 0
push 0x40000000
push 3
push 0
push 0
lea eax, [esi + 0x59d0]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
mov dword [esi + 0x5d08], eax
je 0x41217b
cmp eax, 0xffffffff
je 0x41217b
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 1
push 0
mov dword [esi + 0x5d0c], eax
call edi
push eax
mov dword [esi + 0x5d10], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 0x5d08]
test eax, eax
je 0x412162
cmp eax, 0xffffffff
je 0x412162
mov eax, dword [esi + 0x5d14]
lea ebx, [esi + 0x5d14]
test eax, eax
mov dword [esi + 0x5d18], 0
jne 0x412162
lea ecx, [esp + 0xc]
push ecx
push 4
push esi
push 0x412370
push 0
push 0
call fcn.0045233c
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x41210f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x46b994
call fcn.00446cb0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x20c
ret
push 2
push 0
push 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call ebx
push eax
push edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x412154
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x46b964
call fcn.00446cb0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20c
ret
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x59cc], 1
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dl, byte [0x481910]
mov esi, eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x10]
push 0x46b910
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x46b8f8
push 0x46b8e4
lea eax, [esp + 0x11c]
push esi
push eax
call fcn.0042ace0
add esp, 0x10
lea ecx, [esp + 0x114]
lea edx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x10]
push esi
push eax
call fcn.00446e00
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x20c
ret