joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468240
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 8], 0
call fcn.004076a0
cmp eax, 3
jl 0x468361
push ebx
push 0x50d9b8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x468360
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitializeProcThreadAttributeList
push ebx
call edi
mov esi, eax
test esi, esi
je 0x46835e
push str.UpdateProcThreadAttribute
push ebx
call edi
mov edi, eax
test edi, edi
je 0x46835e
lea eax, [ebp - 4]
push eax
push 0
push 1
push 0
mov dword [ebp - 4], 0
call esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x46835e
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x46835e
lea ecx, [ebp - 4]
push ecx
push 0
push 1
push ebx
call esi
test eax, eax
je 0x46835e
push 0
push 0
push 4
lea edx, [ebp + 0xc]
push edx
push 0x20000
push 0
push ebx
call edi
test eax, eax
je 0x46835e
push 0x44
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.004e15a0
mov esi, dword [ebp + 0x30]
mov eax, dword [ebp + 0x2c]
add esp, 0xc
mov ecx, 0x11
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x34]
push ecx
mov ecx, dword [ebp + 0x28]
lea edx, [ebp - 0x50]
push edx
mov edx, dword [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x20]
push ecx
mov ecx, dword [ebp + 0x1c]
or edx, 0x1080000
push edx
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
mov dword [ebp - 0x50], 0x48
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 8], eax
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x468370
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
xor esi, esi
call fcn.004076a0
cmp eax, 3
jge 0x468407
push 0x40
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.004e15a0
add esp, 0xc
push 0x551a04
mov dword [ebp - 0x48], 0x44
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edx, dword [ebp + 0xc]
cmp eax, 1
sete cl
mov byte [ebp - 3], cl
push edx
lea ecx, [ebp - 4]
call fcn.00468140
test al, al
je 0x4683ff
mov eax, dword [ebp + 0x34]
mov edx, dword [ebp + 0x2c]
push eax
mov eax, dword [ebp + 0x28]
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp + 0x24]
push edx
mov edx, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x1c]
or ecx, 0x1080000
push ecx
mov ecx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
lea ecx, [ebp - 4]
call fcn.004681d0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x468a20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x24]
push esi
mov esi, dword [ebp + 0x38]
push esi
test eax, eax
je 0x468a63
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x30]
push ecx
mov ecx, dword [ebp + 0x2c]
push edx
mov edx, dword [ebp + 0x28]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call fcn.004687a0
add esp, 0x2c
test eax, eax
jne 0x468a92
pop esi
pop ebp
ret
mov edx, dword [ebp + 0x34]
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x2c]
push edx
mov edx, dword [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x20]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x18]
push 0
push eax
mov eax, dword [ebp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x468a92
pop esi
pop ebp
ret
push edi
push 0
call fcn.0049a910
push 0
mov edi, eax
call fcn.0049a940
add esp, 8
cmp dword [ebp + 0x10], 0
mov dword [ebp + 0x24], eax
je 0x468ab7
mov edi, 0x1fffff
mov dword [ebp + 0x24], edi
mov ecx, dword [esi]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 1
push 0
push edi
mov edi, dword [ebp + 0xc]
push esi
push edi
push ecx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x468ae9
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0x24]
mov edx, dword [esi + 4]
push 1
push 0
push ecx
lea eax, [esi + 4]
push eax
push edi
push edx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
neg eax
pop ebx
sbb eax, eax
pop edi
neg eax
pop esi
pop ebp
ret

Function at 0x469d20
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x41a]
push ecx
mov word [ebp - 0x41c], ax
call fcn.004e15a0
add esp, 0xc
test edi, edi
je 0x469dc2
xor edx, edx
push 0x208
push edx
lea eax, [ebp - 0x20e]
push eax
mov word [ebp - 0x210], dx
call fcn.004e15a0
add esp, 0xc
push 0x105
lea ecx, [ebp - 0x210]
push ecx
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x469dc2
push 0
push 0
push 0x105
lea edx, [ebp - 0x41c]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00418909
add esp, 0x24
lea edx, [ebp - 0x41c]
test eax, eax
je 0x469dc7
mov edx, 0x50d97c
xor ecx, ecx
mov eax, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x469de0
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.00406300
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00401316
mov esp, ebp
pop ebp
ret
Function at 0x469f60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [0x5513c0]
mov dword [ebp - 0x44], ecx
mov byte [ebp - 0x3d], 0
test eax, eax
je 0x46a0cb
push ebx
push esi
push edi
lea esi, [eax + 4]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, byte [edi + 0x51]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, str.AcrobatLogTransport2.exe
test bl, bl
jne 0x469fb4
mov eax, str.ReaderLogTransport2.exe
push eax
lea edx, [ebp - 0x3c]
push edx
call fcn.00415460
xor ebx, ebx
add esp, 8
mov edi, 8
cmp dword [ebp - 0x2c], ebx
je 0x46a0b7
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x28], edi
jae 0x469fdc
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46a0b7
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x3c]
push eax
push ecx
call fcn.0043dfb0
add esp, 8
test al, al
jne 0x46a011
cmp dword [ebp - 0x28], edi
jb 0x46a0c8
mov edx, dword [ebp - 0x3c]
push edx
jmp 0x46a0c0
push 1
xor eax, eax
mov esi, 7
push 0x5130d8
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x20], ax
call fcn.0040e560
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x20]
call fcn.0040e6b0
push 1
push 0x5130d8
lea ecx, [ebp - 0x20]
call fcn.0040e560
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x20]
push edx
push eax
call fcn.0043dfb0
add esp, 8
test al, al
jne 0x46a08b
cmp dword [ebp - 0xc], edi
jb 0x46a074
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406ec9
add esp, 4
xor edx, edx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x20], dx
cmp dword [ebp - 0x28], edi
jb 0x46a0c8
mov eax, dword [ebp - 0x3c]
push eax
jmp 0x46a0c0
mov byte [ebp - 0x3d], 1
cmp dword [ebp - 0xc], edi
jb 0x46a0a0
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406ec9
add esp, 4
xor edx, edx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x20], dx
cmp dword [ebp - 0x28], edi
jb 0x46a0c8
mov eax, dword [ebp - 0x3c]
push eax
jmp 0x46a0c0
cmp dword [ebp - 0x28], edi
jb 0x46a0c8
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406ec9
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x3d]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
Function at 0x46a370
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
push edi
mov edi, dword [ebp + 0xc]
je 0x46a406
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004e15a0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x46a3af
mov esi, dword [esi]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x46a406
cmp eax, 0x104
ja 0x46a406
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46a3d6
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
mov ecx, edi
call fcn.00406300
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.00401316
mov esp, ebp
pop ebp
ret
Function at 0x46a5e0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10c4
call fcn.004e1be0
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x10]
cmp edi, 0x824
jae 0x46a7f9
xor eax, eax
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x1068]
mov dword [ebp - 0x1054], 7
mov dword [ebp - 0x1058], 0
mov word [ebp - 0x1068], ax
call fcn.00406960
cmp edi, 2
jb 0x46a6af
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x46a648
mov eax, dword [esi]
jmp 0x46a64a
mov eax, esi
cmp word [eax], 0x22
jne 0x46a6af
cmp ecx, 8
jb 0x46a659
mov eax, dword [esi]
jmp 0x46a65b
mov eax, esi
cmp word [eax + edi*2 - 2], 0x22
jne 0x46a6af
add edi, 0xfffffffe
push edi
xor ecx, ecx
push 1
mov word [ebp - 0x1084], cx
push esi
lea ecx, [ebp - 0x1084]
mov dword [ebp - 0x1070], 7
mov dword [ebp - 0x1074], 0
call fcn.00406960
lea edx, [ebp - 0x1084]
push edx
lea ecx, [ebp - 0x1068]
call fcn.00406280
lea ecx, [ebp - 0x1084]
call fcn.0040a2c0
cmp dword [ebp - 0x1058], 0
mov dword [ebp - 0x1088], 0x824
je 0x46a7e1
cmp dword [ebp - 0x1054], 8
mov eax, dword [ebp - 0x1068]
jae 0x46a6db
lea eax, [ebp - 0x1068]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x46a7e1
push 0x3c
lea eax, [ebp - 0x10c4]
push 0
push eax
call fcn.004e15a0
mov eax, dword [ebp - 0x1068]
add esp, 0xc
cmp dword [ebp - 0x1054], 8
mov dword [ebp - 0x10c4], 0x3c
mov dword [ebp - 0x10bc], 1
jae 0x46a726
lea eax, [ebp - 0x1068]
mov edx, dword [ebp - 0x1058]
lea ecx, [ebp - 0x10c4]
push ecx
push 0
push edx
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x46a7e1
mov eax, dword [ebp - 0x10b8]
cmp eax, 3
je 0x46a759
cmp eax, 4
jne 0x46a7e1
cmp dword [ebp - 0x1054], 8
mov eax, dword [ebp - 0x1068]
jae 0x46a76e
lea eax, [ebp - 0x1068]
push 0
push 2
lea ecx, [ebp - 0x1088]
push ecx
lea edx, [ebp - 0x104c]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_UrlGetPartW]
test eax, eax
jne 0x46a7e1
lea eax, [ebp - 0x104c]
push str.help.adobe.com
push eax
call fcn.004086e6
add esp, 8
test eax, eax
jne 0x46a7c0
lea ecx, [ebp - 0x1068]
call fcn.0040a2c0
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x104c]
push str.adobehelp.corp.adobe.com
push ecx
call fcn.004086e6
add esp, 8
test eax, eax
jne 0x46a7e1
call fcn.0049ac90
test al, al
jne 0x46a7a3
cmp dword [ebp - 0x1054], 8
jb 0x46a7f9
mov edx, dword [ebp - 0x1068]
push edx
call fcn.00406ec9
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.00401316
mov esp, ebp
pop ebp
ret
Function at 0x46c9c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
xor al, al
cmp dword [esi + 0x10], 0
push edi
mov edi, dword [ebp + 0xc]
je 0x46cab0
mov ecx, esi
call fcn.0041a2d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46cac1
mov ecx, esi
call fcn.0041a2d0
push eax
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
je 0x46cac1
push 0
push str.ime_shared
lea eax, [ebp - 0x3c]
push 0x25
push eax
call fcn.00429c80
push 0
push str.ime_shared
lea ecx, [ebp - 0x20]
push 0x24
push ecx
call fcn.00429c80
push ebx
push edi
lea edx, [ebp - 0x3c]
push esi
push edx
call fcn.0046c5f0
add esp, 0x30
test al, al
jne 0x46ca71
push ebx
push edi
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.0046c5f0
add esp, 0x10
test al, al
jne 0x46ca71
push ebx
push edi
push esi
call fcn.0046c6e0
add esp, 0xc
test al, al
jne 0x46ca71
xor bl, bl
jmp 0x46ca73
mov bl, 1
mov esi, 8
cmp dword [ebp - 0xc], esi
jb 0x46ca89
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406ec9
add esp, 4
xor edx, edx
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], dx
cmp dword [ebp - 0x28], esi
jb 0x46caae
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00406ec9
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00401316
mov esp, ebp
pop ebp
ret
Function at 0x470cb0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x208], 0
mov eax, dword [esi]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 1
je 0x470cf2
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [esi + 8]
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x210]
push ecx
push 2
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x20c], eax
call edi
cmp eax, 0x102
je 0x470d83
cmp eax, 0x80
je 0x470d83
cmp eax, 0x81
je 0x470d83
test eax, eax
je 0x470d83
mov edx, dword [esi]
lea ecx, [ebp - 0x208]
push ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x208], 0
mov eax, dword [edx]
push 0x200
lea edx, [ebp - 0x204]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x470d96
cmp dword [ebp - 0x208], 0x200
jne 0x470d96
mov edx, dword [esi]
mov eax, dword [edx + 4]
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_SuspendThread]
test eax, eax
je 0x470da6
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x470d83
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x470d83
test bl, bl
jne 0x470df8
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, dword [esi + 8]
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x210]
push edx
push 2
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x20c], ecx
call edi
cmp eax, 0x102
jne 0x470d23
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
mov al, 1
pop esi
call fcn.00401316
mov esp, ebp
pop ebp
ret
Function at 0x472630
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
mov esi, ecx
mov dword [ebp - 0xc], 0
call fcn.004076b0
cmp dword [eax + 0x24], 1
je 0x472652
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
call edi
mov dword [esi + 8], eax
test eax, eax
je 0x47267b
push 0
push 0
push 0
push 0
call edi
mov dword [esi + 0xc], eax
test eax, eax
jne 0x472683
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [esi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 0
push 0
mov edi, eax
mov eax, dword [esi]
mov eax, dword [eax]
push 0x100002
lea ecx, [ebp - 8]
push ecx
push eax
push edx
push edi
call ebx
test eax, eax
je 0x4727a1
mov eax, dword [esi]
mov eax, dword [eax]
mov edx, dword [esi + 0xc]
push 0
push 0
push 0x100002
lea ecx, [ebp - 0xc]
push ecx
push eax
push edx
push edi
call ebx
test eax, eax
je 0x4727a1
mov eax, dword [esi]
mov eax, dword [eax]
push 0x40
push 0x3000
mov edi, 0x1000
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
jne 0x472747
mov ecx, dword [esi]
xor eax, eax
push 0x1c
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x472743
add edi, dword [ebp - 0x1c]
mov eax, dword [esi]
mov eax, dword [eax]
push 0x40
push 0x3000
push 0x1000
push edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x4726f3
jmp 0x472747
test ebx, ebx
je 0x4727a1
push 0x2c
lea ecx, [ebp - 0x54]
push 0
push ecx
call fcn.004e15a0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi]
add esp, 0xc
mov dword [ebp - 0x58], edx
lea edx, [ebp - 4]
push edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 0
mov eax, dword [ecx]
push 0x10
lea ecx, [ebp - 0x58]
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4727a1
cmp dword [ebp - 4], 0x10
jne 0x4727a1
push ebx
mov ecx, esi
call fcn.00472220
test al, al
je 0x4727a1
mov ecx, esi
call fcn.00470cb0
test al, al
jne 0x4727aa
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
mov eax, dword [edx]
push ebx
push eax
call fcn.0046e910
add esp, 8
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4791f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503e5b
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x26c], eax
call fcn.004044f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
mov ecx, eax
call fcn.00413740
test al, al
je 0x47936f
call fcn.004127a0
mov edi, eax
test edi, edi
je 0x47936f
test esi, esi
je 0x47936f
cmp word [esi], 0
je 0x47936f
push esi
lea ecx, [ebp - 0x234]
call fcn.00408940
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x4792c3
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x102
ja 0x4792c3
push esi
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4792c3
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.00418650
mov ecx, dword [ebp + 0x10]
push 0
mov dword [ebp - 0x274], ecx
push edi
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x278], 0x208
call fcn.00481d00
push 0x30
lea edx, [ebp - 0x264]
push 0
push edx
mov dword [ebp - 0x268], 0
call fcn.004e15a0
add esp, 0xc
cmp dword [ebp - 0x220], 8
jb 0x479318
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x270], eax
jmp 0x479324
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x270], ecx
mov edx, dword [ebp - 0x26c]
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x278]
push ecx
mov dword [ebp - 0x26c], edx
lea edx, [ebp - 0x270]
push edx
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x284]
push 0xf4
push ecx
call fcn.004748f0
add esp, 0x18
lea ecx, [ebp - 0x234]
test eax, eax
je 0x47938e
call fcn.0040a2c0
xor eax, eax
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.00401316
mov esp, ebp
pop ebp
ret 0xc
call fcn.0040a2c0
mov eax, 1
jmp 0x479371

Function at 0x47dff0
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x47e00a
push eax
call dword [sym.imp.GDI32.dll_CloseEnhMetaFile]
mov dword [esi + 8], eax
mov dword [esi + 4], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x47e01b
push eax
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov dword [esi + 8], ebx
cmp dword [esi + 0x1c], ebx
je 0x47e048
cmp dword [esi + 0x20], 8
push edi
lea edi, [esi + 0xc]
jb 0x47e02e
mov eax, dword [edi]
jmp 0x47e030
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], ebx
jb 0x47e042
mov edi, dword [edi]
xor eax, eax
mov word [edi], ax
pop edi
mov dword [esi], ebx
mov dword [esi + 0x28], ebx
pop esi
pop ebx
ret
Function at 0x47ee50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503f0b
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x54e938]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
xor eax, eax
mov dword [esi + 0x20], 7
mov dword [esi + 0x1c], ebx
mov word [esi + 0xc], ax
mov eax, 1
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], eax
lea edi, [esi + 0x4c]
push 8
mov dword [ebp - 4], ebx
mov dword [edi], ebx
call fcn.004051ca
add esp, 4
cmp eax, ebx
je 0x47eefe
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
xor eax, eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.004e102a
push 0x53b460
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.004e1169
int3