joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4320b5
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4a6cfc
call fcn.004a5b68
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
lea esi, [edi + 8]
mov dword [edi], vtable.BkWin::BkLayoutParam.0
mov dword [edi + 4], eax
call fcn.0040747c
mov byte [ebp - 4], 1
or dword [edi + 0x1c], 0xffffffff
or dword [edi + 0x20], 0xffffffff
mov eax, SysReAllocString
push str.layout_
push esi
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x28], eax
mov dword [edi + 0x30], eax
call fcn.00407491
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x4327fe
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
mov eax, 0x4a7ca5
call fcn.004a5b68
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [edi + 4], vtable.BkWin::IBkWindow.0
mov dword [edi], vtable.CBkWindow.0
mov dword [edi + 4], vtable.CBkWindow.1.0
call fcn.004327d6
push 0x4d904c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.004327d6
add eax, 0x60
inc dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
call fcn.004327d6
mov ebx, eax
mov eax, dword [ebp - 0x10]
call fcn.004442f9
push 0x4d904c
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x10]
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], esi
mov dword [edi + 8], eax
mov dword [edi + 0x18], esi
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], esi
mov dword [edi + 0x24], esi
mov dword [edi + 0x28], esi
lea esi, [edi + 0x2c]
mov ecx, 0x4d8074
call fcn.00405bb8
mov byte [ebp - 4], 1
xor ebx, ebx
lea esi, [edi + 0x44]
mov ecx, 0x4d8074
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x40], ebx
call fcn.00405bb8
mov byte [ebp - 4], 2
lea esi, [edi + 0x4c]
mov ecx, 0x4d8074
mov dword [edi + 0x48], ebx
call fcn.00405bb8
lea esi, [edi + 0x50]
call fcn.0040747c
mov byte [ebp - 4], 4
or dword [edi + 0x54], 0xffffffff
or dword [edi + 0x58], 0xffffffff
or dword [edi + 0x68], 0xffffffff
lea eax, [edi + 4]
push eax
lea eax, [edi + 0xc4]
push eax
mov dword [edi + 0x5c], ebx
mov word [edi + 0x60], bx
mov dword [edi + 0x64], ebx
mov dword [edi + 0x6c], ebx
mov dword [edi + 0xa4], ebx
mov dword [edi + 0xa8], ebx
mov dword [edi + 0xac], ebx
mov dword [edi + 0xb0], 1
mov dword [edi + 0xb4], ebx
mov dword [edi + 0xb8], ebx
mov dword [edi + 0xbc], ebx
mov dword [edi + 0xc0], ebx
call fcn.004320b5
mov dword [edi + 0x100], ebx
lea eax, [edi + 0x18]
push eax
mov dword [edi + 0x104], ebx
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x43ec74
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get kernel32 base address

Disassembly:
mov eax, 0x4a6ca4
call fcn.004a5b68
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
mov dword [ebp - 4], edi
mov dword [esi + 0x24], vtable.BkWin::CBkWndMsgFunction_class_CShadowWnd_.0
call fcn.004420b2
mov dword [esi + 0x38], eax
lea eax, [esi + 0x44]
push eax
mov dword [esi + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x40], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], 0x989681
mov dword [esi], vtable.CShadowWnd.0
mov dword [esi + 0x24], vtable.CShadowWnd.1.0
mov dword [esi + 0x60], edi
mov dword [esi + 0x6c], edi
lea eax, [esi + 0x70]
mov dword [esi + 0x68], 4
mov dword [eax + 4], edi
mov dword [eax + 0x10], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax], vtable.CBkBitmap.0
mov dword [esi + 0x84], 1
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x440f31
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
xor esi, esi
cmp ebp, esi
push edi
mov ebx, eax
mov dword [esp + 0x18], esi
jne 0x440f68
mov eax, dword [0x4d908c]
cmp eax, esi
je 0x440f56
mov ebp, dword [eax + 4]
jmp 0x440f58
xor ebp, ebp
cmp ebp, esi
jne 0x440f68
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebp, eax
cmp ebp, esi
je 0x440f8d
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebp, eax
je 0x440f8d
push ebp
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x440f8d
push esi
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x18], 1
push ecx
mov eax, esp
mov dword [ebx + 0x4dc], esi
push ebp
mov dword [eax], esi
call fcn.0044181a
mov ecx, eax
cmp ecx, esi
mov dword [esp + 0x14], ecx
jne 0x440fb8
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x4410a7
mov eax, dword [0x4d908c]
cmp eax, esi
mov dword [esp + 0x1c], esi
je 0x440fcf
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov dword [eax + 4], ecx
mov eax, ebp
call fcn.00463264
cmp dword [ebx + 0x4d0], esi
je 0x441046
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push 0x2001
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp edi, dword [esp + 0x24]
je 0x44102a
push 1
push edi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp edi, dword [esp + 0x24]
je 0x441046
push esi
push edi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, ebx
call fcn.004419fc
push 0x97
push esi
push esi
push esi
push esi
push esi
push dword [ebx + 4]
mov dword [ebx + 0x4dc], esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x18], esi
je 0x44108b
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
cmp ebp, esi
je 0x44108b
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx + 4]
jne 0x44108b
push ebp
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [0x4d908c]
cmp eax, esi
je 0x44109b
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x442cb6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
xor ebx, ebx
lea edi, [esi + 0x3c0]
cmp dword [edi], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x442ce1
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi], ebx
mov eax, dword [esi + 0x3b4]
cmp eax, ebx
je 0x442dc0
push eax
call fcn.0043263c
mov edi, eax
cmp edi, ebx
pop ecx
je 0x442d75
mov eax, dword [edi]
push 2
push ebx
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x442d1a
push 1
push edi
push esi
call fcn.00442260
mov eax, dword [esi + 0x3b4]
cmp eax, dword [esi + 0x3b0]
jne 0x442d75
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x202
call fcn.00432b26
mov eax, dword [edi + 0x44]
cmp eax, ebx
je 0x442d64
cmp word [eax], bx
je 0x442d64
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x442d75
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x442d75
mov dword [ebp - 4], 1
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
mov dword [esi + 0x3b4], ebx
je 0x442dc0
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
push dword [esi + 4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x18]
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop ebx
leave
ret 0xc

Function at 0x443410
Capabilities:
Log keystrokes via polling

Disassembly:
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x443457
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x443450
cmp dword [esp + 4], 0x1b
jne 0x443437
push 0
push 2
jmp 0x443442
cmp dword [esp + 4], 0xd
jne 0x443450
push 0
push 1
push 0x111
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [esi + 0x4e0], 0
ret 4
Function at 0x445959
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4aa726
call fcn.004a5b68
sub esp, 0xc
push ebx
push edi
mov ebx, ecx
mov edi, edx
call fcn.0046963e
cmp dword [eax + 0x4c], 1
je 0x445986
call fcn.0046963e
cmp dword [eax + 0x18], 0
jle 0x445a25
mov eax, ebx
call fcn.00404ead
push edi
call fcn.0040a13a
mov dword [esp], str.instcfg.dat
push edi
call fcn.00406128
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4459b1
test al, 0x10
jne 0x4459b9
push dword [ebx]
call fcn.00406088
pop ecx
push str.http:__cdnfiles.imeitools.com_rcmdsoft_wincompress_instcfg.dat
lea eax, [ebp - 0x10]
push eax
call fcn.00405b75
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.00445ec6
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
inc bl
call fcn.00405905
test bl, bl
je 0x445a1e
push str.http:__cdnconfs.imeitools.com_rcmdsoft_wincompress_instcfg.dat
lea eax, [ebp - 0x14]
push eax
call fcn.00405b75
lea eax, [ebp - 0x14]
push eax
push edi
mov dword [ebp - 4], 1
call fcn.00445ec6
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405905
push edi
push edi
call fcn.00445eff
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x447b71
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4aaa8b
call fcn.004a5b68
sub esp, 0x64
push ebx
push esi
push edi
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x6c]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x14], ebx
call fcn.0048b400
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x4d8074]
xor edi, edi
inc edi
add esp, 0xc
mov ecx, 0x4d8074
mov dword [ebp - 0x70], 0x44
mov dword [ebp - 0x44], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push 0x4b8860
call fcn.004066a7
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push ebx
neg esi
push ebx
sbb esi, esi
push ebx
and esi, 0xa
mov word [ebp - 0x40], si
mov esi, dword [ebp - 0x10]
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x447c17
cmp dword [ebp + 0x10], ebx
je 0x447c14
push dword [ebp + 0x10]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x24], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x447c2a
push dword [ebp - 0x24]
call edi
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x20], ebx
je 0x447c37
push dword [ebp - 0x20]
call edi
mov dword [ebp - 0x20], ebx
lea eax, [esi - 0x10]
call fcn.00405905
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x447c7d
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4a7258
call fcn.004a5b68
sub esp, 0x70
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov ebx, ecx
jne 0x447c9d
xor eax, eax
jmp 0x447de5
mov eax, dword [0x4d8074]
mov ecx, 0x4d8074
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
lea eax, [ebp - 0x20]
push 0x4b8860
call fcn.004066a7
add esp, 0xc
lea esi, [ebp - 0x14]
mov dword [ebp - 0x14], edi
call fcn.0040a418
test eax, eax
jne 0x447dc9
push 0x40
push eax
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x7c], 0x44
call fcn.0048b400
and dword [ebp - 0x34], 0
xor eax, eax
add esp, 0xc
neg ebx
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
sbb ebx, ebx
and ebx, 5
stosd dword es:[edi], eax
mov word [ebp - 0x4c], bx
xor ebx, ebx
push str.userenv.dll
stosd dword es:[edi], eax
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x74], 0x4b8888
mov dword [ebp - 0x24], 0x30
mov dword [ebp + 8], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x447d73
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateEnvironmentBlock
push eax
call edi
push str.DestroyEnvironmentBlock
push dword [ebp - 0x1c]
mov esi, eax
call edi
cmp esi, ebx
mov dword [ebp - 0x18], eax
je 0x447d73
push ebx
push dword [ebp - 0x14]
lea eax, [ebp + 8]
push eax
call esi
test eax, eax
je 0x447d70
mov dword [ebp - 0x24], 0x430
jmp 0x447d73
mov dword [ebp + 8], ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 0x24]
push ebx
push ebx
push ebx
push dword [ebp - 0x20]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x34], ebx
mov edi, eax
je 0x447da2
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], ebx
je 0x447db0
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], ebx
je 0x447dbb
push dword [ebp + 8]
call dword [ebp - 0x18]
cmp dword [ebp - 0x1c], ebx
je 0x447dc9
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x14], 0
je 0x447dd8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00405905
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x447df4
Capabilities:
Check os version
Create process on windows

Disassembly:
mov eax, 0x4a736a
call fcn.004a5b68
sub esp, 0x184
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
jne 0x447e15
xor eax, eax
jmp 0x447fc8
mov eax, dword [0x4d8074]
mov ecx, 0x4d8074
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push 0x4b8860
call fcn.004066a7
push 0x110
lea eax, [ebp - 0x18c]
push ebx
push eax
call fcn.0048b400
add esp, 0x18
lea eax, [ebp - 0x190]
push eax
mov dword [ebp - 0x190], 0x114
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x447e7a
cmp dword [ebp - 0x18c], 6
jne 0x447e7a
inc esi
cmp esi, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea esi, [ebp - 0x10]
jne 0x447e8e
call fcn.0040a418
jmp 0x447e93
call fcn.0040a3c8
cmp eax, ebx
jne 0x447fac
push 0x40
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x78], 0x44
call fcn.0048b400
push dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 5
mov dword [ebp - 0x4c], 1
mov word [ebp - 0x48], ax
call fcn.0040a483
add esp, 0x10
test al, al
jne 0x447ef8
cmp dword [ebp - 0x10], ebx
je 0x447eee
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.0040a5fd
pop ecx
push str.userenv.dll
mov dword [ebp - 0x70], 0x4b8888
mov dword [ebp - 0x14], 0x30
mov dword [ebp + 8], ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x447f57
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateEnvironmentBlock
push eax
call edi
push str.DestroyEnvironmentBlock
push dword [ebp - 0x1c]
mov esi, eax
call edi
cmp esi, ebx
mov edi, eax
je 0x447f57
push ebx
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
call esi
test eax, eax
je 0x447f54
mov dword [ebp - 0x14], 0x430
jmp 0x447f57
mov dword [ebp + 8], ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 0x14]
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], eax
je 0x447f87
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], ebx
je 0x447f95
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x447f9e
push dword [ebp + 8]
call edi
cmp dword [ebp - 0x1c], ebx
je 0x447fac
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x10], ebx
je 0x447fba
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405905
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x448109
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x4c65f0
call fcn.004a5b88
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x4481b7
cmp dword [ebp + 0xc], eax
je 0x4481b7
push eax
push eax
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call edi
mov esi, eax
cmp esi, 1
jb 0x4481b7
mov ebx, 0x103
cmp esi, ebx
ja 0x4481b7
and dword [ebp - 4], 0
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004880ca
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4481b3
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.0048b400
add esp, 0xc
push esi
push dword [ebp - 0x24]
push dword [ebp + 8]
call edi
test eax, eax
je 0x4481b3
cmp eax, ebx
ja 0x4481b3
push eax
push dword [ebp - 0x24]
push ebx
push dword [ebp + 0xc]
call fcn.0048e8c2
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x4481b3
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x4481c6
push dword [ebp - 0x1c]
call fcn.004894b8
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.004a5bc3
ret

Function at 0x4481cf
Capabilities:
Create directory
Delete directory

Disassembly:
mov eax, 0x4a7bc6
call fcn.004a5b68
push esi
push edi
and dword [ebp - 4], 0
push str._access
lea eax, [ebp + 8]
push eax
call fcn.00406128
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call esi
test edi, edi
je 0x448211
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x448218
call esi
cmp eax, 5
je 0x44821b
xor edi, edi
inc edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405905
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4489a6
Capabilities:
Check if file exists

Disassembly:
push ecx
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], 0
jne 0x4489b7
mov eax, 0x13a
pop ecx
ret
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4489c9
mov eax, 0x13b
pop ecx
ret
push dword [esi + 0x1c]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
push ecx
call fcn.00447df4
add esp, 0xc
test eax, eax
je 0x4489e4
xor eax, eax
pop ecx
ret
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, dword [esi + 0x1c]
call fcn.00447c7d
test eax, eax
pop ecx
pop ecx
jne 0x4489e0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push 0
push eax
push ecx
mov ecx, dword [esi + 0x1c]
call fcn.00447b71
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffec7
add eax, 0x139
pop ecx
ret
Function at 0x44f0e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, eax
sub ecx, dword [esi + 0x1c]
mov eax, dword [ebp + 0xc]
sub eax, dword [esi + 0x18]
mov edx, dword [esi]
push edi
push 1
push ecx
xor ebx, ebx
mov dword [ebp + 0x10], ecx
push eax
mov ecx, esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [edx + 0x74]
mov edi, dword [esi + 0x144]
cmp edi, ebx
mov dword [ebp - 0x10], eax
je 0x44f224
push edi
call fcn.0043263c
mov ebx, eax
test ebx, ebx
pop ecx
je 0x44f1f4
mov eax, dword [ebx + 0x14]
push 2
mov dword [ebp - 0xc], eax
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x34]
test eax, eax
je 0x44f15a
lea eax, [ebx + 0x18]
push eax
call fcn.004330ca
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, ebx
push 0x202
call fcn.00432b26
mov eax, dword [ebp - 0x10]
cmp dword [esi + 0x144], eax
jne 0x44f1b1
mov eax, dword [ebx + 0x44]
xor ecx, ecx
cmp eax, ecx
je 0x44f1a3
cmp word [eax], cx
je 0x44f1a3
push 1
push ecx
push ecx
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x44f1f4
cmp dword [ebx + 0x14], ecx
je 0x44f1f4
mov dword [ebp - 4], 1
jmp 0x44f1f4
mov eax, dword [ebx]
push 1
push 0
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x34]
test eax, eax
je 0x44f1d0
lea eax, [ebx + 0x18]
push eax
call fcn.004330ca
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, ebx
push 0x2a3
call fcn.00432b26
mov dword [ebp - 8], 1
xor ecx, ecx
cmp dword [ebp - 4], ecx
mov dword [esi + 0x144], ecx
je 0x44f205
push 0x67
jmp 0x44f21d
cmp dword [ebp - 8], ecx
je 0x44f224
cmp dword [ebp - 0xc], ecx
je 0x44f224
lea eax, [esi + 0x140]
cmp edi, dword [eax]
jne 0x44f21b
mov dword [eax], ecx
push 0x6a
mov edi, ebx
call fcn.0044ed0a
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4513d0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4a7bc6
call fcn.004a5b68
sub esp, 0x10
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
call fcn.00405b75
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
push str.__02d__02d__02d__03d__n
lea ecx, [ebp + 8]
call fcn.0042b218
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405905
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4