joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438030
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x495cdb
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x4bea30]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0xc], eax
jle 0x438078
test eax, eax
jl 0x438073
cmp eax, dword [ebp + 0xc]
jge 0x438073
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + eax*4]
jmp 0x43807a
call fcn.00455154
xor edi, edi
mov edx, dword [edi]
mov eax, dword [esp + 0x3c]
mov edx, dword [edx + 0x1c]
push 0
push eax
mov ecx, edi
call edx
test eax, eax
je 0x4381ea
call fcn.0045525d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4380ac
push 0x80004005
call fcn.004022b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], 0
call fcn.0045525d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4380de
push 0x80004005
call fcn.004022b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
mov eax, str.Exec
mov byte [esp + 0x28], 1
call fcn.004354e0
mov dword [esp + 0x14], eax
mov edx, dword [edi]
mov edx, dword [edx + 0x78]
lea eax, [esp + 0x38]
push eax
push 0
mov ecx, edi
call edx
test eax, eax
je 0x43818d
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
push eax
push str.Exec
push ecx
call fcn.0047a061
add esp, 0xc
test eax, eax
jne 0x43818d
mov edx, dword [edi]
mov edx, dword [edx + 0x60]
lea eax, [esp + 0x38]
push eax
mov ecx, edi
call edx
test eax, eax
je 0x43818d
push 0x10
call fcn.0045502b
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x28], 2
je 0x43816d
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x40]
push ebp
push eax
call fcn.00445540
mov esi, eax
jmp 0x43816f
xor esi, esi
mov edx, dword [esp + 0x34]
push edx
push esi
mov byte [esp + 0x30], 1
call fcn.00445730
test esi, esi
je 0x43818d
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x20]
mov ecx, edi
call edx
test eax, eax
jne 0x438101
mov byte [esp + 0x28], al
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4381c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4381ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword [ecx + 0x14], 0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 0x10
Function at 0x438900
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
push str.DoSystemShutdown
push str.CActionDoc
call fcn.0042af10
add esp, 8
mov edi, 0x57
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0xc]
push ecx
push 0x28
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x4389c1
xor eax, eax
lea edx, [esp + 0x14]
push edx
push str.SeShutdownPrivilege
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov esi, eax
test esi, esi
je 0x4389b2
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, eax
test esi, esi
je 0x4389b2
push 0
push 1
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
mov esi, eax
call ebx
mov edi, eax
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x4389d1
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov esi, eax
call ebx
mov edi, eax
mov eax, dword [esp + 0x24]
push esi
push str.DoSystemShutdown
push str.CActionDoc
mov dword [eax + 0x14], edi
call fcn.0042b190
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x14
ret 4
Function at 0x4398f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x493d6b
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x4bea30]
xor eax, esp
mov dword [esp + 0x248], eax
push ebp
push edi
mov eax, dword [0x4bea30]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x268]
push esi
push str.ShellExecuteItem
push str.CActionItem
call fcn.0042afe0
add esp, 0xc
call fcn.0045ed7b
mov ecx, dword [eax + 4]
call fcn.0045c548
lea eax, [esp + 0x4c]
push eax
xor edi, edi
push edi
push esi
mov dword [esp + 0x26c], edi
call dword [sym.imp.SHELL32.dll_FindExecutableW]
cmp eax, 0x20
jae 0x439976
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x4399c8
push 0x3c
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.0047c3b0
add esp, 0xc
test ebx, ebx
mov dword [esp + 0x10], 0x3c
jne 0x439999
mov dword [esp + 0x18], edi
jmp 0x4399a0
mov edx, dword [ebx + 0x20]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x26c]
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x20], str.open
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, eax
push edi
push str.ShellExecuteItem
push str.CActionItem
call fcn.0042b190
add esp, 0xc
lea ecx, [esp + 0xf]
mov dword [esp + 0x260], 0xffffffff
call fcn.00404630
mov eax, edi
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.0047a105
add esp, 0x258
ret

Function at 0x439a20
Capabilities:
Create process on windows

Disassembly:
push esi
push edi
push str.OpenFolderWithExplorer
push str.CActionItem
call fcn.0042afe0
push edi
xor esi, esi
call fcn.004334c0
add esp, 0x10
test eax, eax
je 0x439a58
push 5
push esi
push esi
push edi
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x20
cmp ecx, eax
sbb esi, esi
neg esi
push esi
push str.OpenFolderWithExplorer
push str.CActionItem
call fcn.0042b190
add esp, 0xc
mov eax, esi
pop esi
ret
Function at 0x43c140
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x494f60
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bea30]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
mov esi, ecx
test esi, esi
mov eax, 0x57
je 0x43c254
cmp dword [esi + 4], 0
jle 0x43c254
cmp dword [esi + 0xc], 0
jne 0x43c254
cmp dword [esi + 8], 0
je 0x43c254
cmp dword [esi + 0x10], 0
je 0x43c254
lea ecx, [esp + 0x14]
lea edi, [eax - 0x55]
call fcn.00402380
mov dword [esp + 0x20], 0
mov eax, dword [esi + 8]
push eax
lea ecx, [esp + 0x30]
call fcn.00404740
push 0x4a14e0
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 1
call fcn.00409c40
mov ebx, dword [esi + 0x10]
lea ecx, [esp + 0x2c]
push ecx
call fcn.004339c0
mov edx, dword [esp + 0x30]
push edx
call fcn.00433520
add esp, 8
test eax, eax
je 0x43c240
mov eax, dword [esp + 0x2c]
push eax
push 0x104
push 0x104
mov ecx, ebp
mov edi, 3
call fcn.00404490
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
push eax
push 0x49f850
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, ebp
mov esi, eax
call fcn.0040b620
test esi, esi
jle 0x43c240
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
push ebp
push ecx
xor edi, edi
call fcn.00435540
lea ecx, [esp + 0x2c]
call fcn.00402360
lea ecx, [esp + 0x14]
call fcn.00402360
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x43c5d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x492990
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebp
push esi
mov eax, dword [0x4bea30]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
xor esi, esi
call fcn.0042da50
mov dword [esp + 0x38], esi
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 4]
push esi
push esi
push ecx
lea ecx, [esp + 0x18]
call eax
test eax, eax
je 0x43c76a
call fcn.0045525d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43c63b
push 0x80004005
call fcn.004022b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x40], eax
mov byte [esp + 0x38], 1
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x14]
push str.Class
push str.Version
lea ecx, [esp + 0x14]
call eax
test eax, eax
je 0x43c6bc
lea ecx, [esp + 0x40]
push ecx
push 1
lea ecx, [esp + 0x14]
call fcn.0042ec40
test eax, eax
je 0x43c6bc
mov ebp, dword [esp + 0x40]
push str.Printer
push ebp
mov esi, 1
call fcn.0047a268
add esp, 8
test eax, eax
jne 0x43c69e
mov dword [edi], esi
jmp 0x43c6ff
push str.Image
push ebp
call fcn.0047a268
add esp, 8
test eax, eax
jne 0x43c6b8
mov dword [edi], 2
jmp 0x43c6ff
xor esi, esi
jmp 0x43c72c
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x14]
push str.PackageType
push str.Version
lea ecx, [esp + 0x14]
call eax
test eax, eax
je 0x43c72c
lea ecx, [esp + 0x40]
push ecx
push 1
lea ecx, [esp + 0x14]
call fcn.0042ec40
test eax, eax
je 0x43c72c
mov edx, dword [esp + 0x40]
push edx
call fcn.00430640
add esp, 4
mov dword [edi], eax
mov esi, 1
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0x14]
push str.DriverVer
push str.Version
lea ecx, [esp + 0x14]
call edx
test eax, eax
je 0x43c72c
mov eax, dword [esp + 0x44]
push eax
push 2
lea ecx, [esp + 0x14]
call fcn.0042ec40
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x43c745
push eax
call fcn.0045505b
add esp, 4
mov dword [esp + 0x10], 0
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43c76a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.0042f430
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x30
ret 8
Function at 0x43e110
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov eax, esi
xor ebx, ebx
call fcn.004354e0
mov ebp, eax
add ebp, 1
xor ecx, ecx
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00455056
mov dword [esp + 0x18], eax
xor ecx, ecx
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00455056
add esp, 8
cmp ebp, 0x7fffffff
mov edi, eax
mov dword [esp + 0x10], edi
ja 0x43e186
mov ecx, dword [esp + 0x14]
mov eax, esi
mov edx, ebp
call fcn.00402840
mov eax, esi
mov edx, ebp
mov ecx, edi
call fcn.00402840
call fcn.00430330
mov eax, dword [esp + 0x14]
push eax
push edi
call fcn.0047a268
add esp, 8
test eax, eax
je 0x43e275
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
push 0
call edi
mov esi, eax
add esi, 1
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00455056
add esp, 4
mov ebx, eax
push ebx
push esi
call edi
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push eax
call edi
push ebx
mov esi, eax
call edi
push ebx
call fcn.0045505b
add esp, 4
test esi, esi
mov ebx, esi
jne 0x43e22e
cmp ebp, 0x7fffffff
ja 0x43e20b
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, ebp
call fcn.00402840
mov edi, dword [esp + 0x10]
call fcn.00430330
mov ecx, dword [esp + 0x14]
push ecx
mov edx, edi
push edx
call fcn.0047a268
add esp, 8
test eax, eax
jne 0x43e1a1
jmp 0x43e275
cmp ebp, 0x7fffffff
mov edi, dword [esp + 0x1c]
ja 0x43e247
mov eax, dword [esp + 0x10]
mov edx, ebp
mov ecx, edi
call fcn.00402840
cmp word [edi], 0
je 0x43e271
mov esi, dword [sym.imp.USER32.dll_CharNextW]
jmp 0x43e259
mov edi, dword [esp + 0x1c]
cmp word [edi], 0x2f
jne 0x43e264
mov word [edi], 0x5c
push edi
call esi
cmp word [eax], 0
mov dword [esp + 0x1c], eax
jne 0x43e255
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push eax
call fcn.0045505b
push edi
call fcn.0045505b
add esp, 8
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret 4
Function at 0x43ff90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x4bea30]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x2c]
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 4
mul edx
seto cl
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
neg ecx
or ecx, eax
push ecx
call fcn.00455056
add esp, 4
xor ebx, ebx
test edi, edi
mov dword [esp + 0xc], eax
jle 0x44006a
test ebx, ebx
jl 0x4400c7
cmp ebx, dword [esi + 0x2c]
jge 0x4400c7
mov eax, dword [esi + 0x28]
mov edi, dword [eax + ebx*4]
test edi, edi
je 0x44005d
mov ecx, edi
call fcn.004408b0
mov ecx, dword [esp + 0xc]
add eax, 0x3ff
adc edx, 0
shrd eax, edx, 0xa
add eax, 0x3ff
shr eax, 0xa
shr edx, 0xa
lea edx, [esp + 0x18]
mov dword [ecx + ebx*4], eax
mov eax, dword [edi + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x44005d
mov esi, dword [esp + 0x18]
shr esi, 4
not esi
push eax
and esi, 1
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
je 0x440059
mov eax, dword [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x10]
add ebx, 1
cmp dword [esp + 0x14], ebx
jg 0x43ffe4
mov ecx, esi
call fcn.00448a20
mov edi, eax
test edi, edi
je 0x4400a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
push eax
push ecx
push edi
mov ecx, esi
call edx
mov edi, dword [edi + 0x20]
test edi, edi
je 0x44009c
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4400a0
or dword [esi + 0x38], 4
mov eax, dword [esp + 0xc]
push eax
call fcn.0045505b
mov ecx, dword [esp + 0x270]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0047a105
mov esp, ebp
pop ebp
ret
jmp fcn.00455154
Function at 0x4412a0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x495a70
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bea30]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x40]
mov edi, ecx
xor esi, esi
call fcn.0045525d
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4412e9
push 0x80004005
call fcn.004022b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x40], eax
push 4
lea eax, [esp + 0x44]
mov ebx, edi
mov dword [esp + 0x34], esi
call fcn.004425a0
test eax, eax
je 0x441445
mov esi, dword [esp + 0x40]
push esi
call fcn.004334c0
add esp, 4
test eax, eax
jne 0x441399
lea ecx, [esp + 0x14]
call fcn.0046191c
xor ebx, ebx
cmp esi, ebx
mov byte [esp + 0x30], 1
je 0x441343
lea ecx, [esp + 0x14]
push ecx
mov eax, esi
call fcn.00441fb0
push ebx
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x4413c9
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp eax, ebx
jle 0x44138c
lea ebx, [ebx]
cmp esi, ebx
jl 0x4413c4
cmp esi, eax
jge 0x4413c4
mov edx, dword [esp + 0x18]
mov eax, dword [edx + esi*4]
mov ecx, dword [edi + 0x10]
push eax
push str.Directories
push ecx
call fcn.00436da0
mov eax, dword [esp + 0x28]
add esi, 1
add esp, 0xc
cmp eax, esi
jg 0x441360
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], bl
call fcn.00461bee
mov edi, dword [esp + 0x3c]
mov ebx, dword [edi]
lea ecx, [esp + 0x40]
push ecx
call fcn.004339c0
add esp, 4
push 1
push 0x4a2e38
lea ecx, [esp + 0x48]
call fcn.00409b30
test ebp, ebp
jne 0x4413fe
xor eax, eax
jmp 0x441412
call fcn.00455154
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], bl
call fcn.00461bee
lea eax, [esi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4413fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x44146f
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x441403
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x48]
call fcn.00409b30
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push 1
push ecx
push eax
call edx
mov esi, eax
neg esi
lea eax, [esp + 0x40]
sbb esi, esi
push eax
mov ecx, edi
add esi, 1
call fcn.00405560
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44146d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
Function at 0x441fb0
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, eax
mov ecx, SysReAllocString
xor edx, edx
cmp word [eax], dx
je 0x441fcf
add eax, 2
sub ecx, 1
jne 0x441fc0
jmp 0x441fd7
test ecx, ecx
jne 0x4420ba
mov edx, 0x80070057
xor eax, eax
xor ecx, ecx
test edx, edx
setl cl
mov edx, 2
sub ecx, 1
and ecx, eax
add ecx, 0x104
mov ebp, ecx
xor ecx, ecx
mov eax, ebp
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00455056
add esp, 4
cmp ebp, 0x7fffffff
mov edi, eax
ja 0x442022
mov eax, esi
mov edx, ebp
mov ecx, edi
call fcn.00402840
mov ecx, ebp
mov eax, edi
call fcn.0042d9f0
mov dword [esp + 0x14], eax
nop
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
add esi, 1
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00455056
add esp, 4
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ebx
call fcn.0045505b
add esp, 4
test esi, esi
jne 0x4420e5
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 8]
push edi
push eax
mov ecx, ebx
call fcn.00461d8c
call fcn.00430330
test edi, edi
mov dword [esp + 0x10], esi
je 0x4420c6
cmp ebp, 0x7fffffff
ja 0x4420c6
lea ecx, [esp + 0x10]
push ecx
push ebp
push edi
call fcn.00402890
test eax, eax
jge 0x4420cf
xor ecx, ecx
jmp 0x4420d3
mov eax, SysReAllocString
sub eax, ecx
jmp 0x441fde
mov eax, 0x80070057
xor ecx, ecx
jmp 0x4420d3
mov ecx, dword [esp + 0x10]
xor edx, edx
test eax, eax
setl dl
sub edx, 1
and edx, ecx
cmp edx, dword [esp + 0x14]
jae 0x442136
test edi, edi
mov dword [esp + 0x10], 0
je 0x44210d
cmp ebp, 0x7fffffff
ja 0x44210d
lea eax, [esp + 0x10]
push eax
push ebp
push edi
call fcn.00402890
test eax, eax
jge 0x442116
xor ecx, ecx
jmp 0x44211a
mov eax, 0x80070057
xor ecx, ecx
jmp 0x44211a
mov ecx, dword [esp + 0x10]
xor edx, edx
test eax, eax
setl dl
sub edx, 1
and edx, ecx
test esi, esi
mov dword [esp + 0x14], edx
je 0x442030
mov ebx, dword [esp + 0x1c]
push edi
call fcn.0045505b
mov eax, dword [ebx + 8]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x442c30
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x496440
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x4bea30]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x2c]
push str.CreateShellLinkShortcut
push str.CCopyItemInfo
call fcn.0042af10
push ebx
call fcn.0042b470
xor edi, edi
add esp, 0xc
cmp ebx, edi
je 0x442dda
cmp esi, edi
je 0x442dda
lea eax, [esp + 0x2c]
push eax
push 0x49ee74
push 1
push edi
push 0x49ee84
mov dword [esp + 0x40], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x442db0
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], edi
mov ecx, dword [eax]
push 0x49eec4
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jne 0x442da4
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
test eax, eax
jne 0x442d98
push esi
lea ecx, [esp + 0x18]
call fcn.00404740
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x28], edi
call fcn.00441490
test eax, eax
mov eax, dword [esp + 0x2c]
push edi
je 0x442d26
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x44]
call eax
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 0x10]
push ecx
push str.Files
push eax
call fcn.00436da0
add esp, 0xc
jmp 0x442d30
mov edx, dword [eax]
push 0
push eax
mov eax, dword [edx + 0x44]
call eax
push ebx
lea ecx, [esp + 0x14]
call fcn.00404740
push 0x4a9d20
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 1
mov edx, dword [esp + 0x1c]
push ecx
push edx
mov ecx, ebp
call fcn.004412a0
mov edi, eax
test edi, edi
je 0x442d71
mov eax, dword [esp + 0x10]
mov ebp, dword [ebp + 0x10]
push eax
push str.Shortcuts
push ebp
call fcn.00436da0
add esp, 0xc
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0042b470
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00402360
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call fcn.00402360
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push edi
push str.CreateShellLinkShortcut
push str.CCopyItemInfo
call fcn.0042b190
add esp, 0xc
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 4
push str.CreateShellLinkShortcut
push str.CCopyItemInfo
mov esi, str.InvalidParameters
call fcn.0042b0b0
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 4