joyce8/EMBER2024-capa huggingface dataset:
Function at 0x529c90
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov dword [edi], 0
cmp dword [0x7475d8], 0
je 0x529ce3
mov eax, dword [0x74c528]
test eax, eax
je 0x529cb8
push eax
call dword [0x747628]
add esp, 4
lea eax, [esp + 0xc]
push eax
push 0x14
call fcn.004e8c00
mov eax, dword [0x74c528]
add esp, 8
test eax, eax
je 0x529cdd
push eax
call dword [0x747630]
mov esi, dword [esp + 0x10]
jmp 0x529ced
mov esi, dword [esp + 0xc]
jmp 0x529cf0
push 0x14
call dword [0x7475f8]
mov esi, eax
add esp, 4
test esi, esi
jne 0x529cfa
pop edi
lea eax, [esi + 7]
pop esi
ret
cmp byte [0x7475dc], 0
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
je 0x529d49
mov eax, dword [0x7476d8]
test eax, eax
je 0x529d24
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x529d49
lea eax, [esi + 4]
mov dword [esi + 8], ebp
push eax
push 0
push esi
push 0x529de0
push 0
push 0
mov dword [esi + 0xc], ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x529d59
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp dword [esi + 8], 0
jne 0x529d71
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call ebp
add esp, 4
mov dword [esi + 0x10], eax
pop ebp
pop ebx
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
ret
Function at 0x5369d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x68]
push edi
call fcn.004e1a90
mov ebx, dword [edi + 0x28]
xor eax, eax
movzx ecx, word [edi + 0x30]
xor ebp, ebp
mov esi, dword [edi + 0x2c]
add esp, 4
mov word [esp + 0x18], ax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x74]
mov dword [esp + 0x28], ebp
mov eax, dword [eax + 0x3c]
sub eax, ebx
cmp ecx, eax
jle 0x536a19
xor ecx, ecx
test eax, eax
sets cl
dec ecx
and ecx, eax
mov dword [esp + 0x20], ebx
cmp esi, ecx
ja 0x536a31
mov eax, 0x1010
mov dword [esp + 0x1c], esi
mov word [esp + 0x18], ax
jmp 0x536a56
lea eax, [esp + 0x10]
push eax
push esi
push 0
push edi
call fcn.005376b0
add esp, 0x10
test eax, eax
jne 0x536b37
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
movzx edi, byte [ebx]
mov dword [esp + 0x68], edi
cmp edi, 0x80
jb 0x536a77
lea eax, [esp + 0x68]
push eax
push ebx
call fcn.00517540
mov edi, dword [esp + 0x70]
add esp, 8
cmp edi, 3
jb 0x536af9
cmp edi, esi
ja 0x536af9
lea eax, [edi - 1]
add eax, ebx
movzx ecx, byte [eax]
mov dword [esp + 0x68], ecx
cmp ecx, 0x80
jb 0x536aa6
lea ecx, [esp + 0x68]
push ecx
push eax
call fcn.00517540
mov ecx, dword [esp + 0x70]
add esp, 8
lea eax, [ecx - 1]
cmp eax, 8
ja 0x536af9
cmp ecx, 7
je 0x536af9
movzx edx, byte [ecx + 0x582b70]
lea eax, [edx + edi]
cmp esi, eax
jb 0x536af9
lea eax, [esp + 0x38]
sub esi, edx
push eax
push ecx
add esi, ebx
push esi
call fcn.005393c0
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x44]
mov dword [ecx], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 4], eax
lea eax, [esp + 0x1c]
push eax
call fcn.00537c30
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
test dword [esp + 0x18], 0x2400
jne 0x536b07
test ebp, ebp
je 0x536b14
lea eax, [esp + 0x10]
push eax
call fcn.00548c70
add esp, 4
push 0x58e774
push 0x14b3d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b7220
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
Function at 0x54d080
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
mov ecx, 0xc
push ebx
mov ebx, dword [esp + 0x68]
push ebp
push esi
push edi
cmp byte [ebx + 0x2b], 2
lea edi, [esp + 0x10]
mov eax, dword [ebx + 0x20]
mov ebp, dword [eax]
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
je 0x54d0b1
mov eax, dword [ebx + 4]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x3c]
call eax
add esp, 4
lea esi, [ebp + 0x30]
mov ecx, 0xc
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
mov esi, 0x2c
lea edx, [esp + 0x40]
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x54d181
add ecx, 4
add edx, 4
sub esi, 4
jae 0x54d0d0
cmp byte [esp + 0x1c], 0
je 0x54d181
xor edx, edx
lea ecx, [esp + 0x10]
xor esi, esi
mov eax, dword [ecx]
add eax, edx
add esi, eax
mov eax, dword [ecx + 4]
add eax, esi
add ecx, 8
add edx, eax
lea eax, [esp + 0x38]
cmp ecx, eax
jb 0x54d0f8
cmp esi, dword [esp + 0x38]
jne 0x54d181
cmp edx, dword [esp + 0x3c]
jne 0x54d181
lea edi, [ebx + 0x34]
mov esi, 0x2c
mov ecx, edi
lea edx, [esp + 0x10]
lea ebx, [ebx]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x54d14b
add ecx, 4
add edx, 4
sub esi, 4
jae 0x54d130
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret
mov eax, dword [esp + 0x78]
lea esi, [esp + 0x10]
mov ecx, 0xc
mov dword [eax], 1
rep movsd dword es:[edi], dword [esi]
movzx ecx, word [ebx + 0x42]
mov eax, ecx
and ecx, 0xfe00
and eax, 1
pop edi
shl eax, 0x10
pop esi
add eax, ecx
mov dword [ebx + 0x24], eax
xor eax, eax
pop ebp
pop ebx
add esp, 0x60
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x60
ret
Function at 0x55b5e4
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x74c890], 0
push ebx
push esi
mov esi, 0x74c898
jne 0x55b610
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x74c8b0], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x74c890], 1
push dword [0x74c8b0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x55b6ad
push 0x14
push 8
push dword [0x74ad6c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x55b6d7
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x74c894]
test eax, eax
je 0x55b652
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x74c894], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x55b6dc
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x74c8b0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x74ad6c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x55b6d7
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x55bbf4
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x184
push 8
push dword [0x74ad6c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x74ce94]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x74ce98], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.0055e827
mov dword [esi + 0x58], 0x55c807
mov eax, esi
mov dword [esi + 0x5c], 0x55c853
mov dword [esi + 0x10], fcn.0055c3a8
mov dword [esi + 0x30], 0x55c29a
mov dword [esi + 0x64], 0x55c8dd
mov dword [esi + 0x60], 0x55c895
mov dword [esi + 0x34], 0x55bf4a
mov dword [esi + 0x24], 0x55bf21
mov dword [esi + 0x28], 0x55bef6
mov dword [esi + 0x2c], 0x55be48
mov dword [esi + 0x44], 0x55c60d
pop esi
ret 4
Function at 0x561acb
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov edx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0xd4]
mov dword [esp + 4], eax
test edx, edx
je 0x561b81
imul eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
neg eax
add ecx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
push ebp
push edi
lea edi, [ecx + eax*4]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0xcc]
mov ebp, edi
imul ecx, ebx
add ecx, dword [esi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x561b61
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 4]
xor byte [ecx], al
add ecx, esi
dec edx
jne 0x561b3c
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec edx
inc ebx
cmp dword [esi + 0xe8], 0
mov dword [esp + 0x3c], edx
jne 0x561b76
add edi, dword [esp + 0x14]
jmp 0x561b7a
add edi, dword [esp + 0x24]
test edx, edx
jne 0x561b1a
pop edi
pop ebp
pop ebx
pop esi
pop ecx
pop ecx
ret 0x24

Function at 0x561e8c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 8], edx
test ebx, ebx
je 0x561f66
imul eax, dword [esp + 0x1c], 3
mov ecx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
neg ecx
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x30]
push edi
imul edi, dword [esp + 0x30], 3
mov dword [esp + 0x10], ecx
add eax, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], edi
mov esi, dword [eax + 0xcc]
imul esi, ebp
mov dword [esp + 0x34], edi
add esi, dword [eax + 0xc8]
add esi, dword [esp + 0x28]
test edx, edx
jle 0x561f3c
mov ebp, dword [esp + 0x34]
mov ebx, 0xff
sub ebx, dword [esp + 0x40]
mov edi, edx
movzx eax, byte [esi]
movzx ecx, byte [ebp]
imul ecx, dword [esp + 0x40]
imul eax, ebx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
inc ebp
mov byte [esi], al
inc esi
dec edi
jne 0x561f04
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
dec ebx
inc ebp
cmp dword [eax + 0xe8], 0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebp
jne 0x561f53
add edi, ecx
jmp 0x561f57
add edi, dword [esp + 0x24]
mov dword [esp + 0x38], edi
test ebx, ebx
jne 0x561eda
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x562586
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0xd4]
mov dword [esp + 8], eax
test esi, esi
je 0x56263b
imul eax, dword [esp + 0x20]
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
neg eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
imul eax, dword [esp + 0x34]
add eax, dword [esp + 0x20]
add edx, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 0xcc]
mov ebp, edx
imul ecx, ebx
add ecx, dword [edi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x56261c
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 3]
xor byte [ecx], al
add ecx, edi
dec esi
jne 0x5625f7
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec esi
inc ebx
cmp dword [edi + 0xe8], 0
mov dword [esp + 0x3c], esi
jne 0x562631
add edx, dword [esp + 0x14]
jmp 0x562635
add edx, dword [esp + 0x24]
test esi, esi
jne 0x5625d5
pop ebp
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret 0x24
Function at 0x4041d0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x6a0
push esi
mov esi, dword [esp + 0x6ac]
and esi, 0xffff
push esi
call dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
lea eax, [esp + 4]
push 4
push eax
push 3
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x404209
pop esi
add esp, 0x6a0
ret 8
lea ecx, [esp + 4]
push 0x41e6ec
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
mov esi, 1
jne 0x404228
mov dword [0x4208f8], esi
call fcn.004044a0
cmp al, 0xa
jne 0x404237
mov dword [0x4208fc], esi
mov esi, dword [esp + 0x6a8]
push str..exe
push esi
call fcn.00407ae7
add esp, 8
test eax, eax
jne 0x40425a
pop esi
add esp, 0x6a0
ret 8
sub eax, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push edi
sar eax, 1
lea edx, [esp + 0x14]
lea edi, [eax + 1]
push edi
push esi
push edx
call ebx
push edi
lea eax, [esp + 0x23c]
push esi
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
call esi
lea eax, [esp + 0x14]
push str..DLL
push eax
call esi
lea ecx, [esp + 0x45c]
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
pop edi
cmp eax, 0xffffffff
pop ebx
jne 0x4042dd
lea eax, [esp + 0x230]
push str.ENU.DLL
push eax
call esi
lea ecx, [esp + 0x230]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
add esp, 0x6a0
ret 8
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
add esp, 0x6a0
ret 8

Function at 0x404460
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
lea eax, [esp]
mov dword [esp], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x10], 2
jne 0x404493
cmp dword [esp + 4], 6
jne 0x404493
mov eax, 1
add esp, 0x114
ret
xor eax, eax
add esp, 0x114
ret

Function at 0x4044b0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x208
mov ax, word [0x420904]
push edi
mov word [esp + 0xc], ax
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0xe]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push ecx
stosw word es:[edi], ax
call fcn.00407994
add esp, 8
lea edx, [esp + 4]
lea eax, [esp + 0xc]
push 0
push edx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
pop edi
jne 0x40453c
mov edx, dword [esp + 0x20c]
lea ecx, [esp + 4]
push 4
push ecx
push 4
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x208
ret
Function at 0x404ad0
Capabilities:
Create process on windows
Get common file path
Self delete

Disassembly:
mov eax, 0x1430
call fcn.00407c70
push ebx
push esi
push edi
mov edi, dword [esp + 0x1440]
lea eax, [esp + 0xc]
push edi
push eax
call fcn.00407994
mov eax, dword [0x4208f0]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
test eax, eax
je 0x404b6b
lea ecx, [esp + 0xc]
push str.XSrvSetup.exe
push ecx
lea edx, [esp + 0xc44]
push str._s_s__k
push edx
call fcn.00407a78
lea eax, [esp + 0xc4c]
push 1
push eax
call fcn.00404d10
add esp, 0x18
push 0x3e8
call ebx
lea ecx, [esp + 0xc]
push str.XSrvSetup.exe
push ecx
lea edx, [esp + 0xc44]
push str._s_s__u
push edx
call fcn.00407a78
lea eax, [esp + 0xc4c]
push 1
push eax
call fcn.00404d10
add esp, 0x18
push 0x3e8
call ebx
lea esi, [edi + 0x410]
push esi
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x404b92
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x3e8
call ebx
push edi
call fcn.004056d0
push esi
call fcn.00404e80
push 0
push esi
push esi
call fcn.00405040
push 1
push str.Uninstall
push esi
call fcn.00405040
mov eax, dword [edi + 0xc34]
add esp, 0x20
test eax, eax
je 0x404cff
push 0
lea ecx, [esp + 0xa38]
push 0x17
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [esp + 0xc]
lea eax, [esp + 0x41c]
push edx
push 0x41ec44
push eax
call fcn.00407a78
lea ecx, [esp + 0x428]
push 0x41ec40
push ecx
call fcn.00407e85
mov esi, eax
add esp, 0x14
test esi, esi
je 0x404cff
lea edx, [esp + 0xc]
lea eax, [esp + 0x624]
push edx
push 0x41ec38
push eax
call fcn.00407a78
lea ecx, [esp + 0x18]
lea edx, [esp + 0x838]
push ecx
push str._sUninstall_setup.exe
push edx
call fcn.00407a78
push str.:DEL_DIR_n
push esi
call fcn.00407e18
lea eax, [esp + 0x644]
push eax
push str.rd__s__q___sUninstall__n
push esi
call fcn.00407e18
lea ecx, [esp + 0x858]
push ecx
push str.IF_EXIST___s__GOTO_DEL_DIR_n
push esi
call fcn.00407e18
lea edx, [esp + 0x44]
lea eax, [esp + 0x24c]
push edx
push str._sUninstall_setup.ini
push eax
call fcn.00407a78
add esp, 0x44
lea ecx, [esp + 0x214]
push ecx
push str.IF_EXIST___s__GOTO_DEL_DIR_n
push esi
call fcn.00407e18
lea edx, [esp + 0x18]
lea eax, [esp + 0x220]
push edx
push 0x41ec38
push eax
call fcn.00407a78
lea ecx, [esp + 0x22c]
push ecx
push str.rd__s__q___s__n
push esi
call fcn.00407e18
lea edx, [esp + 0x440]
push edx
push str.del___s__n
push esi
call fcn.00407e18
push esi
call fcn.00407d9b
add esp, 0x34
lea eax, [esp + 0x41c]
push 0
push 0x41eb1c
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
pop ebx
add esp, 0x1430
ret
Function at 0x404d10
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea edx, [esp + 4]
mov dword [esp + 0xc], eax
push edx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
neg ecx
sbb ecx, ecx
push eax
push 0
and ecx, 5
push 0
push 0x100
mov word [esp + 0x58], cx
mov ecx, dword [esp + 0x70]
push 0
push 0
push 0
push ecx
push 0
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 4]
pop edi
neg eax
sbb eax, eax
and eax, ecx
add esp, 0x54
ret

Function at 0x404d90
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
sub esp, 0x668
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp]
push eax
push 0x418ae8
push 1
push 0
push 0x418ad8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x404e6a
mov eax, dword [esp]
lea edx, [esp + 4]
push edx
push 0x41a6c0
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x404e60
mov eax, dword [esp]
mov edx, dword [esp + 0x66c]
push esi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
push 0
lea eax, [esp + 0x218]
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [esp + 0x674]
lea ecx, [esp + 0x214]
push esi
push ecx
lea edx, [esp + 0x14]
push str._s_s.lnk
push edx
call fcn.00407a78
add esp, 0x10
lea eax, [esp + 0x41c]
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x404e44
push esi
call fcn.00404e80
add esp, 4
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
pop esi
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
add esp, 0x668
ret

Function at 0x404e80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x410
lea eax, [esp]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, dword [esp + 0x414]
lea edx, [esp]
push ecx
push edx
lea eax, [esp + 0x210]
push str._s_s.lnk
push eax
call fcn.00407a78
lea ecx, [esp + 0x218]
push ecx
call fcn.00407e98
add esp, 0x424
ret
Function at 0x404ed0
Capabilities:
Create directory
Create shortcut via ishelllink
Get common file path

Disassembly:
sub esp, 0xac0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp]
push eax
push 0x418ae8
push 1
push 0
push 0x418ad8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x405019
mov eax, dword [esp]
lea edx, [esp + 4]
push edx
push 0x41a6c0
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x40500f
mov eax, dword [esp]
mov edx, dword [esp + 0xac8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
jl 0x405026
mov ecx, dword [esp + 0xad0]
test ecx, ecx
je 0x404f4a
mov eax, dword [esp]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x2c]
push ebx
push esi
push edi
push 0
lea eax, [esp + 0x428]
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [esp + 0xad0]
lea ecx, [esp + 0x424]
push esi
push ecx
lea edx, [esp + 0x1c]
push 0x41eaf4
push edx
call fcn.00407a78
mov edi, dword [esp + 0xae8]
lea eax, [esp + 0x24]
push edi
push eax
lea ecx, [esp + 0x234]
push str._s_s.lnk
push ecx
call fcn.00407a78
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esp, 0x20
lea edx, [esp + 0x62c]
lea eax, [esp + 0x14]
push edx
push eax
call ebx
cmp eax, 0xffffffff
jne 0x404fcb
lea ecx, [esp + 0x14]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x404fee
lea edx, [esp + 0x87c]
lea eax, [esp + 0x21c]
push edx
push eax
call ebx
cmp eax, 0xffffffff
je 0x404fee
push 0
push edi
push esi
call fcn.00405040
add esp, 0xc
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x21c]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
pop ebx
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
add esp, 0xac0
ret
mov eax, dword [esp]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
add esp, 0xac0
ret

Function at 0x405040
Capabilities:
Delete directory
Get common file path

Disassembly:
sub esp, 0x618
lea eax, [esp + 0x208]
push 0
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, dword [esp + 0x61c]
lea edx, [esp + 0x208]
push ecx
push edx
lea eax, [esp + 8]
push 0x41eaf4
push eax
call fcn.00407a78
mov ecx, dword [esp + 0x630]
lea edx, [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x428]
push str._s_s.lnk
push eax
call fcn.00407a78
lea ecx, [esp + 0x430]
push ecx
call fcn.00407e98
mov eax, dword [esp + 0x648]
add esp, 0x24
test eax, eax
je 0x4050be
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esp, 0x618
ret