joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436890
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8c64
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4f0008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x14
call fcn.00491300
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
lea edx, [edi + 0x10]
mov dword [edi], vtable.CScriptGraphicsComposition.0
mov dword [edi + 0xc], 1
mov dword [edx], 0
mov dword [edi + 4], 0
mov eax, dword [0x4f7f00]
push edx
push 0x4d8914
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
push 0x80
mov dword [ebp - 4], 0xffffffff
call fcn.00491300
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov ecx, esi
mov dword [esi], vtable.CDirect2DComposition.0
mov dword [esi + 0x70], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x78], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
call fcn.0044be30
test eax, eax
jne 0x4369fe
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
xor esi, esi
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], esi
mov dword [eax], edi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4385a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x438606
mov eax, dword [ecx]
push ebx
push edi
call dword [eax + 0xc]
mov edi, dword [esi + 8]
mov esi, dword [0x4f7f60]
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push str.video
push edi
call dword [sym.imp.USER32.dll_GetPropW]
mov ebx, eax
test ebx, ebx
je 0x4385e6
call fcn.0048d5e0
push ebx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [esi], 0
pop edi
mov dword [esi + 4], 0
pop ebx
je 0x438600
call fcn.004535c0
mov dword [esi], 0
xor eax, eax
pop esi
pop ebp
ret 4

Function at 0x442a20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f0008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call fcn.00419720
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
neg ecx
sbb ecx, ecx
xor eax, eax
mov word [esi], cx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004912f2
mov esp, ebp
pop ebp
ret 8
Function at 0x44a5d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x4f0008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push ebx
mov dword [ebp - 0x1a4], eax
push esi
mov eax, dword [eax + 4]
push edi
test eax, eax
je 0x44a61e
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x38], 0
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax], 2
mov edi, dword [0x4f7f60]
test edi, edi
je 0x44a6af
call fcn.0048d5e0
lea ecx, [ebp - 0x19c]
push ecx
lea ecx, [ebp - 0x198]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0x18]
xor esi, esi
cmp dword [ebp - 0x19c], esi
jle 0x44a6af
mov ebx, dword [ebp + esi*4 - 0x198]
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push str.video
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
mov dword [ebp - 0x1a0], eax
test eax, eax
je 0x44a688
call fcn.0048d5e0
push dword [ebp - 0x1a0]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
push ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [edi], 0
mov dword [edi + 4], 0
je 0x44a6a0
call fcn.004535c0
inc esi
mov dword [edi], 0
cmp esi, dword [ebp - 0x19c]
jl 0x44a650
xor ecx, ecx
call fcn.00453660
xor ecx, ecx
call fcn.00453700
mov esi, dword [ebp - 0x1a4]
mov esi, dword [esi + 0x30]
mov ecx, esi
call fcn.00402a20
mov ecx, esi
call fcn.00402ca0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004912f2
mov esp, ebp
pop ebp
ret

Function at 0x44a6f0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [0x4f7e40]
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x44a74d
cmp dword [eax + 0x30], 0
jne 0x44a713
mov ecx, dword [esi + 0x30]
call fcn.00402ed0
mov ecx, dword [esi + 4]
cmp dword [ecx + 0x44], 0
je 0x44a72e
inc dword [ecx + 0x38]
mov eax, dword [ecx + 0x38]
cmp eax, dword [ecx + 0x34]
jne 0x44a72e
mov dword [ecx + 0x44], 0
cmp dword [ecx + 0x30], 0
je 0x44a756
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x44a756
mov ecx, dword [0x4f7d20]
pop esi
jmp fcn.00402ed0
mov ecx, dword [esi + 0x30]
pop esi
jmp fcn.00402ed0
pop esi
ret
Function at 0x44b170
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4f0008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x5051ac]
push ebx
push esi
push edi
mov eax, dword [eax + 0x44]
mov edi, ecx
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
push eax
call ebx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
cdq
sub eax, edx
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x3c]
sar esi, 1
call ebx
cmp dword [ebp - 0x18], esi
jge 0x44b1c3
mov eax, dword [ebp - 0x10]
jmp 0x44b1d4
lea eax, [ebp - 0x28]
push eax
push dword [edi]
call ebx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x18]
push 1
push 0
push 0
push dword [ebp - 0x14]
push eax
push 0
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, dword [ebp + 8]
mov eax, esi
neg eax
sbb eax, eax
and eax, 5
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
test esi, esi
je 0x44b209
push dword [edi]
call dword [sym.imp.USER32.dll_UpdateWindow]
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_SetActiveWindow]
lea eax, [ebp - 0x38]
push eax
push dword [edi]
call ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004912f2
mov esp, ebp
pop ebp
ret 4
Function at 0x44b640
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4f0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x21c], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov dword [ebp - 0x218], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
mov dword [ebp - 0x210], 0
push 0x204
mov dword [ebp - 0x224], edi
xor esi, esi
mov dword [ebp - 0x214], 1
call fcn.00491300
mov dword [ebx + 4], eax
add esp, 4
xor ebx, ebx
mov dword [eax + 0x200], esi
test edi, edi
jle 0x44b796
mov edx, dword [ebp - 0x218]
lea edi, [esi + 2]
mov ecx, dword [ebp - 0x224]
add edx, 0xfffffffe
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x228], edx
nop dword [eax]
movzx eax, word [edx + edi]
cmp eax, 0x20
jne 0x44b769
cmp dword [ebp - 0x214], 0
je 0x44b77f
push 0x204
call fcn.00491300
add esp, 4
mov dword [ebp - 0x210], eax
lea ecx, [esi + 1]
mov dword [eax + 0x200], 0
push ecx
mov ecx, dword [ebp - 0x220]
add ecx, dword [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [ebp - 0x21c]
mov edx, dword [eax + 4]
mov ecx, dword [edx + 0x200]
test ecx, ecx
je 0x44b73e
mov edx, ecx
mov ecx, dword [edx + 0x200]
test ecx, ecx
jne 0x44b732
mov eax, dword [ebp - 0x210]
xor esi, esi
mov ecx, dword [ebp - 0x224]
mov dword [edx + 0x200], eax
lea eax, [ebx + 1]
mov edx, dword [ebp - 0x228]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x220], edi
jmp 0x44b785
cmp eax, 0x22
jne 0x44b77f
xor eax, eax
cmp dword [ebp - 0x214], eax
sete al
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x210]
inc ebx
add edi, 2
inc esi
cmp ebx, ecx
jl 0x44b6d0
test eax, eax
jne 0x44b797
inc esi
push 0x204
call fcn.00491300
mov ecx, dword [ebp - 0x218]
mov edi, eax
mov eax, dword [ebp - 0x210]
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [edi + 0x200], 0
push esi
lea ecx, [ecx + eax*2]
push ecx
push edi
call ebx
mov esi, dword [ebp - 0x21c]
mov edx, dword [esi + 4]
mov ecx, dword [edx + 0x200]
test ecx, ecx
je 0x44b7ec
nop dword [eax]
mov edx, ecx
mov ecx, dword [edx + 0x200]
test ecx, ecx
jne 0x44b7e0
mov dword [edx + 0x200], edi
xor eax, eax
mov dword [0x504f90], 0xffffffff
mov dword [0x504f98], 0
mov word [0x504fa0], ax
mov esi, dword [esi + 4]
mov esi, dword [esi + 0x200]
test esi, esi
je 0x44b86e
nop dword [eax + eax]
cmp word [esi], 0x22
mov edi, esi
jne 0x44b858
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esi + eax*2 - 2], 0x22
jne 0x44b83a
dec eax
jmp 0x44b844
add eax, 0xfffffffe
cmp word [esi + eax*2], 0x22
jne 0x44b858
push eax
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea edi, [ebp - 0x20c]
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.0044b8d0
mov esi, dword [esi + 0x200]
test esi, esi
jne 0x44b820
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004912f2
mov esp, ebp
pop ebp
ret
Function at 0x44b8d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
mov dword [ebp - 4], ecx
call edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44b932
push esi
call edi
cmp eax, 4
jl 0x44b926
cmp word [esi + eax*2 - 2], 0x65
jne 0x44b926
cmp word [esi + eax*2 - 4], 0x78
jne 0x44b926
cmp word [esi + eax*2 - 6], 0x65
jne 0x44b926
cmp word [esi + eax*2 - 8], 0x2e
jne 0x44b926
xor eax, eax
mov word [0x504fa0], ax
jmp 0x44b932
push esi
push 0x504fa0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp ebx, 4
jl 0x44ba57
movzx eax, word [esi]
mov ecx, eax
cmp eax, 0x6d
jne 0x44b981
cmp word [esi + 2], 0x61
jne 0x44ba57
cmp word [esi + 4], 0x70
jne 0x44ba57
mov ecx, esi
call fcn.0044b880
lea ecx, [esi + 0xc]
mov dword [0x504f98], 1
push ecx
mov edi, eax
call fcn.0044ba70
mov dword [0x504f90], eax
jmp 0x44ba4d
cmp ecx, 0x65
jne 0x44b9c2
cmp word [esi + 2], 0x76
jne 0x44ba57
cmp word [esi + 4], 0x74
jne 0x44ba57
mov ecx, esi
call fcn.0044b880
mov edi, eax
mov dword [0x504f98], 2
lea eax, [esi + 0xc]
push eax
call fcn.0044ba70
mov dword [0x504f90], eax
jmp 0x44ba4d
cmp ecx, 0x72
jne 0x44ba1d
cmp word [esi + 2], 0x73
jne 0x44ba57
cmp word [esi + 4], 0x74
jne 0x44b9fc
mov ecx, esi
call fcn.0044b880
mov edi, eax
mov dword [0x504f98], 3
lea eax, [esi + 0xc]
push eax
call fcn.0044ba70
mov dword [0x504f90], eax
jmp 0x44ba4d
cmp word [esi + 2], 0x73
jne 0x44ba57
cmp word [esi + 4], 0x63
jne 0x44ba57
mov ecx, esi
call fcn.0044b880
mov dword [0x504f98], 3
jmp 0x44ba41
cmp ecx, 0x74
jne 0x44ba57
cmp word [esi + 2], 0x65
jne 0x44ba57
cmp word [esi + 4], 0x73
jne 0x44ba57
mov ecx, esi
call fcn.0044b880
mov dword [0x504f98], 0
mov dword [0x504f90], 0xffffffff
mov edi, eax
cmp edi, 0xffffffff
je 0x44ba57
mov eax, dword [ebp - 4]
mov dword [eax], edi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44bae0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x4f0008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x504f94], 0
mov eax, dword [0x4f7f30]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, ecx
push edi
mov dword [ebp - 0x824], edx
mov dword [ebp - 0x820], ebx
je 0x44bb29
cmp dword [eax + 0x5e4], 0
jne 0x44bb29
push dword [eax + 0x5e8]
jmp 0x44bb2f
add eax, 0x978
push eax
lea eax, [ebp - 0x40c]
push eax
call esi
push ebx
lea eax, [ebp - 0x204]
push eax
call esi
push str..png
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov esi, dword [ebp - 0x820]
xor edi, edi
mov word [ebp - 0x204], ax
nop dword [eax + eax]
lea eax, [edi + 1]
push eax
push esi
mov edi, eax
lea eax, [ebp - 0x204]
push 0x4d6848
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x204]
push str..png
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x614]
push 0x4d0ed4
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x614]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44bbd3
cmp edi, 0x270f
jl 0x44bb70
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x81c]
push eax
call esi
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0x40c]
push eax
push 0x4d0ed4
push dword [ebp - 0x824]
call ebx
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004912f2
mov esp, ebp
pop ebp
ret
Function at 0x451b60
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x451b8d
xor eax, eax
pop ebx
pop ebp
ret 8
push esi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
mov esi, eax
lea eax, [ebp + 8]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4f7e50]
mov ecx, dword [ebp + 0xc]
mov dword [eax + ecx*8 + 4], edi
pop edi
mov dword [eax + ecx*8], esi
mov eax, 1
pop esi
pop ebx
pop ebp
ret 8
Function at 0x456f30
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x456f78
mov esi, dword [ebp + 8]
xor edx, edx
mov eax, esi
div dword [ebp + 0x10]
mov ebx, edx
sub esi, ebx
lea eax, [ebx + edi]
push eax
push esi
push 0
push 4
push dword [ecx + 0x20]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x456f78
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x456f78
pop edi
lea eax, [esi + ebx]
pop esi
pop ebx
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
Function at 0x467840
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x150
mov eax, dword [0x4f0008]
xor eax, esp
mov dword [esp + 0x14c], eax
push esi
push edi
push str.RtlGetVersion
push str.ntdll.dll
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4678a0
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], 0x11c
push ecx
call eax
xor eax, eax
cmp dword [esp + 0x34], 0xa
setge al
test eax, eax
je 0x4678a0
mov esi, 0x4d541c
jmp 0x4679b9
push 0x11c
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00495b20
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
xor eax, eax
mov dword [esp + 0x34], 6
mov dword [esp + 0x38], 3
mov dword [esp + 0x144], eax
push 3
push 2
push eax
push eax
mov dword [esp + 0x40], 0x11c
call esi
push 3
push 1
push edx
push eax
call esi
push edx
push eax
push 3
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x467908
mov esi, 0x4d5424
jmp 0x4679b9
push 0x11c
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00495b20
add esp, 0xc
mov dword [esp + 0x34], 6
xor eax, eax
mov dword [esp + 0x38], 2
mov dword [esp + 0x144], eax
mov dword [esp + 0x30], 0x11c
push 3
push 2
push eax
push eax
call esi
push 3
push 1
push edx
push eax
call esi
push edx
push eax
push 3
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x467967
mov esi, 0x4d1a14
jmp 0x4679b9
push ecx
push 1
mov edx, 1
call fcn.00467790
add esp, 8
test eax, eax
je 0x467982
mov esi, 0x4d542c
jmp 0x4679b9
push ecx
push 0
mov edx, 1
call fcn.00467790
add esp, 8
test eax, eax
je 0x46799d
mov esi, 0x4d1a10
jmp 0x4679b9
push ecx
push 2
xor edx, edx
call fcn.00467790
add esp, 8
mov esi, 0x4d5434
test eax, eax
mov ecx, 0x4c0444
cmove esi, ecx
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [esp + 0xc], 0
mov ecx, 0x20
mov eax, 0x40
cmove eax, ecx
push eax
push esi
push str._s__d
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x164]
add esp, 0x10
pop edi
pop esi
xor ecx, esp
call fcn.004912f2
mov esp, ebp
pop ebp
ret
Function at 0x46caa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x24], 0
je 0x46cb04
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
jne 0x46cade
lea eax, [ebp - 4]
mov dword [esi + 0x18], 1
push eax
push 0
push esi
push 0x46cf10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x2c], eax
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x46cb09
mov dword [esi + 0x18], eax
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x46cd70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x2c], eax
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0046cbb0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46e920
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x46e959
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi + 0x1b0]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi + 0x1b4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi + 0x1e8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esi + 0x1b8]
test ecx, ecx
je 0x46e969
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
xor ebx, ebx
lea edi, [esi + 0x1fc]
mov ecx, dword [edi]
test ecx, ecx
je 0x46e992
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x46e987
cmp eax, 1
jne 0x46eb29
mov eax, dword [ecx]
call dword [eax + 0x10]
mov dword [edi], 0
inc ebx
add edi, 4
cmp ebx, 0x14
jl 0x46e971
mov ecx, dword [esi + 0x1f8]
test ecx, ecx
je 0x46e9aa
call fcn.0048cf30
mov dword [esi + 0x1f8], 0
mov ecx, dword [esi + 0x24c]
test ecx, ecx
je 0x46e9c3
call fcn.0048cf30
mov dword [esi + 0x24c], 0
mov ecx, dword [esi + 0x250]
test ecx, ecx
je 0x46e9dc
call fcn.0048cf30
mov dword [esi + 0x250], 0
mov ecx, dword [esi + 0x254]
test ecx, ecx
je 0x46e9f5
call fcn.0048cf30
mov dword [esi + 0x254], 0
mov ecx, dword [esi + 0x288]
test ecx, ecx
je 0x46ea0e
call fcn.0048cf30
mov dword [esi + 0x288], 0
mov ecx, dword [esi + 0x258]
test ecx, ecx
je 0x46ea27
call fcn.0048cf30
mov dword [esi + 0x258], 0
mov ecx, dword [esi + 0x25c]
test ecx, ecx
je 0x46ea40
call fcn.0048cf30
mov dword [esi + 0x25c], 0
mov ecx, dword [esi + 0x260]
test ecx, ecx
je 0x46ea59
call fcn.0048cf30
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esi + 0x260], 0
mov eax, dword [esi + 0x2b0]
test eax, eax
je 0x46ea8b
push eax
push 0
call ebx
push eax
call edi
mov dword [esi + 0x2b0], 0
mov ecx, dword [esi + 0x2bc]
test ecx, ecx
je 0x46ea9a
call fcn.0048cf30
mov dword [esi + 0x2bc], 0
mov ecx, dword [esi + 0x144]
test ecx, ecx
je 0x46eab3
call fcn.0048cf30
mov dword [esi + 0x144], 0
mov eax, dword [esi + 0x134]
test eax, eax
je 0x46eacf
push eax
push 0
call ebx
push eax
call edi
mov dword [esi + 0x134], 0
mov eax, dword [esi + 0x40]
test eax, eax
je 0x46eae8
push eax
push 0
call ebx
push eax
call edi
mov dword [esi + 0x40], 0
mov eax, dword [esi + 0x44]
test eax, eax
je 0x46eafe
push eax
push 0
call ebx
push eax
call edi
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x19c]
test eax, eax
je 0x46eb17
push eax
push 0
call ebx
push eax
call edi
push 0x2c8
push esi
call fcn.00491330
add esp, 8
pop edi
pop esi
pop ebx
ret
call fcn.00445ff0
mov ecx, str.Unexpected_error._You_may_have_used_the_item_in_root.duplicateItem_without_duplicating_it.
call fcn.00449bb0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4706d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9d94
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4f0008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x3c
call fcn.00491300
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
lea ecx, [edi + 0x38]
mov dword [edi], vtable.CScriptParameter.0
mov dword [edi + 0x34], 1
mov dword [ecx], 0
mov edx, dword [0x4f7f00]
push ecx
push 0x4d8a04
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0x30]
mov dword [ebx + 0xb8], edi
push 0x3c
mov dword [edi + 4], eax
call fcn.00491300
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 1
lea ecx, [edi + 0x38]
mov dword [edi], vtable.CScriptParameter.0
mov dword [edi + 0x34], 1
mov dword [ecx], 0
mov edx, dword [0x4f7f00]
push ecx
push 0x4d8a04
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0x5c]
mov dword [ebx + 0xbc], edi
push 0x248
mov dword [edi + 4], eax
call fcn.00491300
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 2
lea ecx, [edi + 0x244]
mov dword [edi], vtable.CScriptReferenceList.0
mov dword [edi + 0x240], 1
mov dword [ecx], 0
mov edx, dword [0x4f7f00]
push ecx
push 0x4d87f4
push edx
mov esi, dword [edx]
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x4f7f30]
mov ecx, dword [ebx + 0x98]
mov dword [ebx + 0xc0], edi
push 0x18
mov eax, dword [eax + 0x1e0]
mov dword [edi + 0x234], eax
mov dword [edi + 0x238], ecx
mov dword [edi + 0x23c], 4
call fcn.00491300
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 3
lea ecx, [edi + 0x14]
mov dword [edi], vtable.CScriptAggregation.0
mov dword [edi + 0x10], 1
mov dword [ecx], 0
mov edx, dword [0x4f7f00]
push ecx
mov esi, dword [edx]
push 0x4d9014
push edx
call dword [esi + 0x18]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0x9c]
mov ecx, dword [0x4f7ef8]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [ebx + 0xc4], edi
mov dword [edi + 4], eax
lea eax, [ebp - 0x10]
mov ecx, dword [ecx + 8]
push eax
push dword [ebx + 0xa4]
call fcn.00468d20
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0xc8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4762b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x4f0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x40c]
push esi
push edi
mov edi, ecx
push dword [edi + 8]
push str._04d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [0x4f7f30]
add esp, 0xc
mov esi, dword [edi + 0x24]
add eax, 0x978
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp + 0xc]
lea eax, [ebp - 0x40c]
mov edx, ebx
push 0x4d64d8
push eax
push 0
push esi
lea ecx, [ebp - 0x20c]
call fcn.004865b0
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47637d
mov eax, dword [0x4f7f30]
mov esi, dword [edi + 0x24]
add eax, 0x978
push eax
lea eax, [ebp - 0x20c]
mov dword [0x4f7f20], 1
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp + 0xc]
lea eax, [ebp - 0x40c]
mov edx, ebx
push 0x4d64d8
push eax
push 0
push esi
lea ecx, [ebp - 0x20c]
call fcn.004865b0
add esp, 0x14
mov dword [0x4f7f20], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004912f2
mov esp, ebp
pop ebp
ret 8