joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426920
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0xa28
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ebx, dword [esp + 0xa3c]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21a]
mov word [esp + 0x218], bp
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
push ebx
stosw word es:[edi], ax
push 0x4f5254
lea eax, [esp + 0x220]
push 0x103
push eax
call esi
mov edi, dword [sym.imp.MSVCRT.dll_wcsrchr]
lea ecx, [esp + 0x228]
push 0x5c
push ecx
call edi
add esp, 0x18
test eax, eax
je 0x426996
add eax, 2
lea edx, [esp + 0x218]
push eax
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
lea eax, [esp + 0x218]
push 0x2e
push eax
call edi
xor edx, edx
add esp, 8
cmp eax, edx
je 0x4269ae
mov word [eax], dx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x62a]
mov word [esp + 0x628], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], dx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x628]
push ecx
push 0x103
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 0x218]
lea eax, [esp + 0x628]
push edx
push eax
push str._sTheWorld_skin_s_
lea ecx, [esp + 0x1c]
push 0x103
push ecx
call esi
lea edx, [esp + 0x24]
push edx
call fcn.00435320
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004d6f60
mov cx, word [0x5117f0]
xor eax, eax
mov word [esp + 0x440], cx
mov ecx, 0x81
lea edi, [esp + 0x442]
add esp, 0x20
rep stosd dword es:[edi], eax
push str.Skin
push 0x511a6c
push 0x4f59b8
lea edx, [esp + 0x42c]
push 0x103
push edx
stosw word es:[edi], ax
call esi
lea eax, [esp + 0x434]
push eax
call fcn.00435320
mov cx, word [0x5117f0]
xor eax, eax
mov word [esp + 0x848], cx
mov ecx, 0x81
lea edi, [esp + 0x84a]
add esp, 0x18
rep stosd dword es:[edi], eax
lea edx, [esp + 0x10]
stosw word es:[edi], ax
push edx
push str._sskin.ini
lea eax, [esp + 0x838]
push 0x103
push eax
call esi
lea ecx, [esp + 0x840]
push 0
push ecx
call fcn.00434a60
add esp, 0x18
test eax, eax
je 0x426ae3
lea edx, [esp + 0x420]
push 1
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00435bb0
add esp, 0xc
mov ebp, 1
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [esp + 0x10]
push edx
call esi
push 0
push ebx
call fcn.00435a00
add esp, 8
push ebx
call esi
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0xa28
ret 4
Function at 0x426b20
Capabilities:
Get token membership

Disassembly:
sub esp, 0x10
push ebx
lea eax, [esp + 8]
xor ebx, ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea ecx, [esp + 0x30]
push 2
push ecx
mov dword [esp + 0x30], 1
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [esp + 4], eax
je 0x426b96
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x426b87
mov dword [esp + 4], ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 4]
xor edx, edx
cmp eax, ebx
sete dl
mov eax, edx
pop ebx
add esp, 0x10
ret

Function at 0x426c70
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db3b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x668
push ebx
push esi
mov dword [ebp - 0x14], ecx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x672]
mov word [ebp - 0x674], bx
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
mov ecx, dword [0x5ed02c]
push ebx
stosw word es:[edi], ax
lea eax, [ebp - 0x674]
push 0x103
push eax
push ecx
call fcn.00434a70
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x46a]
mov word [ebp - 0x46c], bx
mov edx, dword [ebp + 8]
add esp, 0x10
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4f7940
lea eax, [ebp - 0x674]
push edx
push eax
push 0x4f5938
lea ecx, [ebp - 0x46c]
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x18
mov word [ebp - 0x266], bx
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea edx, [ebp - 0x264]
lea eax, [ebp - 0x46c]
push edx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp + 8], edi
je 0x426dda
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea ecx, [ebp - 0x238]
push 0x4f53e4
push ecx
call esi
add esp, 8
test eax, eax
je 0x426da8
lea edx, [ebp - 0x238]
push 0x4f7938
push edx
call esi
add esp, 8
test eax, eax
je 0x426da8
test byte [ebp - 0x264], 0x10
je 0x426da8
lea eax, [ebp - 0x238]
push str.UICenter
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x426da8
lea ecx, [ebp - 0x238]
push ecx
mov ecx, dword [ebp - 0x14]
push ebx
call fcn.00425870
lea edx, [ebp - 0x264]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x426d4c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x426dda
push ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42b7b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x208
push esi
mov esi, ecx
mov eax, dword [esi + 0x168]
test eax, eax
jne 0x42b8a5
mov eax, dword [esi + 0x13c]
mov dword [esi + 0x168], 1
test eax, eax
jne 0x42b8a5
mov eax, dword [esi + 0x148]
dec eax
je 0x42b873
dec eax
jne 0x42b8a5
mov ecx, dword [esi + 0xda0]
lea eax, [esi + 0xb94]
push 0x4f7768
push eax
call fcn.00426e70
mov edx, eax
test edx, edx
je 0x42b8a5
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
push edx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push 0x103
push ecx
push 0x5117f0
push str.Type
push str.Global
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esp + 8], 0
pop edi
je 0x42b8a5
mov ecx, dword [esi + 0xda0]
lea edx, [esi + 0x138]
lea eax, [esp + 4]
push edx
push eax
call fcn.0042b400
pop esi
add esp, 0x208
ret
mov eax, dword [esi + 0xd9c]
test eax, eax
jne 0x42b888
mov ecx, esi
call fcn.0042b6e0
test eax, eax
je 0x42b8a5
push str.Ext_GetExtensionType
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x5e2648], eax
je 0x42b8a5
call eax
mov dword [esi + 0x138], eax
pop esi
add esp, 0x208
ret
Function at 0x42be80
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [ecx + 0x138]
sub esp, 0xa2c
cmp eax, 0x2000
push ebp
push esi
jne 0x42c033
lea eax, [ecx + 0xb94]
mov ecx, dword [ecx + 0xda0]
push 0x4f7768
push eax
mov dword [esp + 0x10], eax
call fcn.00426e70
mov esi, eax
xor ebp, ebp
cmp esi, ebp
je 0x42c033
push ebx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x836]
mov word [esp + 0x834], bp
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
stosw word es:[edi], ax
lea eax, [esp + 0x838]
push 0x103
push eax
push 0x5117f0
push str.Text
push str.SideWeb
call ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x62e]
mov word [esp + 0x62c], bp
rep stosd dword es:[edi], eax
push esi
lea ecx, [esp + 0x630]
push 0x103
push ecx
push 0x5117f0
push 0x4f7acc
push str.SideWeb
stosw word es:[edi], ax
call ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bp
rep stosd dword es:[edi], eax
push esi
lea edx, [esp + 0x220]
push 0x103
push edx
push 0x5117f0
push str.Icon
push str.SideWeb
stosw word es:[edi], ax
call ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x426]
mov word [esp + 0x424], bp
rep stosd dword es:[edi], eax
push 0x5c
push esi
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
cmp eax, ebp
pop edi
pop ebx
je 0x42bff3
sub eax, esi
sar eax, 1
cmp eax, 0x103
jbe 0x42bfc3
mov eax, 0x103
push eax
lea eax, [esp + 0x420]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
lea ecx, [esp + 0x214]
lea edx, [esp + 0x41c]
lea eax, [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
jmp 0x42c009
lea ecx, [esp + 0x214]
lea edx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
lea eax, [esp + 0xc]
lea ecx, [esp + 0x624]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x830]
push ecx
mov ecx, dword [esp + 0xa40]
push edx
push eax
push ecx
call fcn.0048d260
add esp, 0x14
pop esi
pop ebp
add esp, 0xa2c
ret 4
Function at 0x42ccf0
Capabilities:
Delete directory

Disassembly:
sub esp, 0x620
push ebx
push ebp
lea eax, [esp + 8]
push edi
push eax
xor ebx, ebx
push str.Count
mov dword [esp + 0x18], ecx
push str.UnInstallExt
mov dword [esp + 0x18], ebx
call fcn.0040cbb0
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22a]
mov word [esp + 0x228], bx
rep stosd dword es:[edi], eax
mov cx, word [0x5117f0]
mov word [esp + 0x430], bx
stosw word es:[edi], ax
mov word [esp + 0x20], cx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x432]
add esp, 0xc
rep stosd dword es:[edi], eax
mov ecx, 0x511800
stosw word es:[edi], ax
call fcn.0040ad60
mov ebp, dword [sym.imp.MSVCRT.dll__snwprintf]
push eax
lea edx, [esp + 0x428]
push 0x103
push edx
call ebp
lea eax, [esp + 0x430]
push ebx
push eax
call fcn.00434a60
add esp, 0x14
test eax, eax
je 0x42ce56
cmp dword [esp + 0xc], ebx
jbe 0x42ce49
push esi
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x18]
push ebx
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [esp + 0x224]
rep stosd dword es:[edi], eax
push str.ext_d
lea ecx, [esp + 0x20]
push 0x103
push ecx
call ebp
lea edx, [esp + 0x230]
push 0x104
lea eax, [esp + 0x2c]
push edx
push eax
push str.UnInstallExt
call fcn.0040ca30
add esp, 0x20
lea ecx, [esp + 0x220]
push 0x4f7770
push ecx
call fcn.00424ba0
mov ecx, eax
call fcn.00426e70
mov esi, eax
push 0
push esi
call fcn.00434a60
add esp, 8
test eax, eax
je 0x42ce3b
mov ecx, dword [esp + 0x14]
push esi
call fcn.0042d760
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esp + 0x10]
inc ebx
cmp ebx, eax
jb 0x42cdad
pop esi
push str.UnInstallExt
call fcn.0040c4b0
add esp, 4
pop edi
pop ebp
pop ebx
add esp, 0x620
ret
Function at 0x42ce60
Capabilities:
Delete directory

Disassembly:
sub esp, 0xa30
push ebx
push esi
mov esi, dword [esp + 0xa3c]
xor ebx, ebx
push 1
mov dword [esp + 0x10], ecx
push esi
mov dword [esp + 0x10], ebx
call fcn.00434a60
add esp, 8
test eax, eax
je 0x42d06c
push ebx
lea eax, [esp + 0xc]
push esi
push eax
call fcn.0047ffe0
add esp, 0xc
cmp eax, 1
je 0x42d06c
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x42d06c
push ebp
push edi
push ebx
push str.Count
push str.UnInstallExt
push eax
call fcn.004805e0
mov ebp, eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x84a]
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
mov word [esp + 0x848], bx
add esp, 0x10
rep stosd dword es:[edi], eax
push ebp
push 0x4f5a00
lea ecx, [esp + 0x840]
push 0x104
push ecx
stosw word es:[edi], ax
call esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x232]
mov word [esp + 0x230], bx
rep stosd dword es:[edi], eax
mov dx, word [0x5117f0]
mov ecx, 0x81
stosw word es:[edi], ax
xor eax, eax
lea edi, [esp + 0x43a]
mov word [esp + 0x438], dx
add esp, 0x10
rep stosd dword es:[edi], eax
test ebp, ebp
stosw word es:[edi], ax
jbe 0x42d05b
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x428]
push ebx
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [esp + 0x224]
rep stosd dword es:[edi], eax
push str.ext_d
lea eax, [esp + 0x430]
push 0x103
push eax
call esi
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x230]
push 0x103
lea edx, [esp + 0x43c]
push ecx
push edx
push str.UnInstallExt
push eax
call fcn.00480490
mov dx, word [0x5117f0]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x3e]
mov word [esp + 0x3c], dx
mov word [esp + 0x654], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [0x5ed02c]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x656]
rep stosd dword es:[edi], eax
push 0
lea ecx, [esp + 0x658]
push 0x104
push ecx
push edx
stosw word es:[edi], ax
call fcn.00434a70
add esp, 0x34
lea eax, [esp + 0x220]
lea ecx, [esp + 0x220]
lea edx, [esp + 0x630]
push eax
push ecx
push str.Extensions
push edx
push str._s_s_s_s.dll
lea eax, [esp + 0x2c]
push 0x103
push eax
call esi
lea ecx, [esp + 0x34]
push 0
push ecx
call fcn.00434a60
add esp, 0x24
test eax, eax
je 0x42d052
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
call fcn.0042d760
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
inc ebx
cmp ebx, ebp
jb 0x42cf43
lea edx, [esp + 0x10]
push 0
push edx
call fcn.004801e0
add esp, 8
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xa30
ret 4
Function at 0x42d240
Capabilities:
Get common file path

Disassembly:
sub esp, 0x410
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x212]
mov word [esp + 0x210], si
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x214]
push 0x1a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42d2bf
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], si
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
push 0x104
push ecx
push esi
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x210]
lea eax, [esp + 8]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
lea ecx, [esp + 8]
cmp eax, ecx
mov eax, 1
je 0x42d2c1
mov eax, esi
pop edi
pop esi
add esp, 0x410
ret

Function at 0x42d310
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov eax, 0x18a4
call fcn.004d7fa0
push esi
push edi
mov esi, ecx
call fcn.00426b20
test eax, eax
je 0x42d32e
mov ecx, esi
call fcn.00426bb0
xor edx, edx
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x866]
mov word [esp + 0x864], dx
mov word [esp + 0x44], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46]
mov word [esp + 0x65c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x65e]
mov word [esp + 0x454], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x456]
mov word [esp + 0x24c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x24e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x454]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
lea ecx, [esp + 0x454]
push ecx
push str._sTheWorld_
lea edx, [esp + 0x254]
push 0x103
push edx
call esi
lea eax, [esp + 0x25c]
push eax
call fcn.00435320
add esp, 0x14
lea ecx, [esp + 0x24c]
lea edx, [esp + 0x44]
push ecx
push str._sInitExtAction.ini
push 0x103
push edx
call esi
add esp, 0x10
mov ecx, 0x511800
call fcn.0040ad60
push eax
lea eax, [esp + 0x660]
push 0x103
push eax
call esi
lea ecx, [esp + 0x50]
push 1
lea edx, [esp + 0x66c]
push ecx
push edx
call fcn.00435bd0
add esp, 0x18
lea eax, [esp + 0x44]
lea ecx, [esp + 0x864]
push eax
push 0x4f56cc
push 7
push str._tp:
push str._s_d__s_s
push 0x823
push ecx
call esi
add esp, 0x1c
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
lea edx, [esp + 0x864]
push eax
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0x40
mov dword [esp + 0x1c], 0x511864
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], str.runas
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
pop esi
test eax, eax
je 0x42d4c7
mov ecx, dword [esp + 0x38]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.UnInstallExt
call fcn.0040c4b0
push str.UpdateExt
call fcn.0040c4b0
add esp, 0x18ac
ret
Function at 0x42d720
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, ecx
push esi
call fcn.0042ce60
push esi
mov ecx, edi
call fcn.00426500
push 0
push esi
call fcn.00434a60
add esp, 8
test eax, eax
je 0x42d74c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
ret 4

Function at 0x42d760
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x208
push ebx
push esi
mov esi, dword [esp + 0x214]
push 0
mov ebx, ecx
push esi
call fcn.00434a60
add esp, 8
test eax, eax
je 0x42d7d6
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42d7d6
push edi
mov ecx, 0x81
lea edi, [esp + 0xe]
mov word [esp + 0xc], ax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push 0x103
push eax
push esi
mov ecx, ebx
call fcn.0042d7f0
test eax, eax
pop edi
je 0x42d7d6
lea ecx, [esp + 8]
push 1
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x42d7d6
lea edx, [esp + 8]
push 0
push edx
call fcn.00491a00
add esp, 8
pop esi
pop ebx
add esp, 0x208
ret 4

Function at 0x42d880
Capabilities:
Move file

Disassembly:
sub esp, 0x208
push ebx
push esi
mov esi, dword [esp + 0x214]
push edi
test esi, esi
mov ebx, ecx
je 0x42d973
cmp word [esi], 0
je 0x42d973
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
push 0
push esi
stosw word es:[edi], ax
call fcn.00434a60
add esp, 8
test eax, eax
je 0x42d959
lea eax, [esp + 0xc]
push 0x103
push eax
push esi
mov ecx, ebx
call fcn.0042d7f0
test eax, eax
je 0x42d973
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 0xc]
push 1
push ecx
push esi
call edi
test eax, eax
je 0x42d973
mov edx, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push 1
push edx
push eax
call fcn.00435bd0
add esp, 0xc
test eax, eax
je 0x42d943
push 0
push esi
call fcn.00434a60
add esp, 8
test eax, eax
je 0x42d943
lea ecx, [esp + 0xc]
push 0
push ecx
call fcn.00491a00
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x208
ret 0xc
push 1
lea edx, [esp + 0x10]
push esi
push edx
call edi
pop edi
pop esi
pop ebx
add esp, 0x208
ret 0xc
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x21c]
push 1
push eax
push ecx
call fcn.00435bd0
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x208
ret 0xc
Function at 0x42dd70
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1084
call fcn.004d7fa0
push ebx
push ebp
mov ebp, dword [esp + 0x1090]
xor ebx, ebx
push esi
cmp ebp, ebx
push edi
je 0x42de79
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
push ebp
call edi
add esp, 4
test eax, eax
jbe 0x42de79
mov esi, dword [esp + 0x109c]
cmp esi, ebx
je 0x42de79
push esi
call edi
add esp, 4
test eax, eax
jbe 0x42de79
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x4e]
mov word [esp + 0x4c], bx
rep stosd dword es:[edi], eax
push esi
push 0x4f56cc
push ebp
push str._tmp:
push 1
push 0x4f56f4
push 7
push str._tp:
stosw word es:[edi], ax
push str._s_d__s_d__s_s__s_s
lea eax, [esp + 0x70]
push 0x823
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x40]
add esp, 0x2c
rep stosd dword es:[edi], eax
lea edx, [esp + 0x10]
lea ecx, [esp + 0x4c]
push edx
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0x40
mov dword [esp + 0x24], 0x511864
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], str.runas
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x42de6a
mov eax, dword [esp + 0x48]
push 0x186a0
push eax
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x1084
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1084
ret 8
Function at 0x42df80
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db4a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x870
push ebx
push esi
push edi
xor esi, esi
mov ebx, dword [ebp + 8]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x46a]
mov word [ebp - 0x46c], si
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push 0x4f7c48
lea eax, [ebp - 0x46c]
push 0x103
push eax
mov dword [ebp - 0x14], 1
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea ecx, [ebp - 0x264]
lea edx, [ebp - 0x46c]
mov word [ebp - 0x266], si
push ecx
push edx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x42e18a
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea eax, [ebp - 0x238]
push 0x4f53e4
push eax
call edi
add esp, 8
test eax, eax
je 0x42e167
lea ecx, [ebp - 0x238]
push 0x4f7938
push ecx
call edi
add esp, 8
test eax, eax
je 0x42e167
test byte [ebp - 0x264], 0x10
je 0x42e0c0
mov dx, word [0x5117f0]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x672]
mov word [ebp - 0x674], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x674]
push eax
push ebx
push 0x4f5368
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea edx, [ebp - 0x674]
push edx
call fcn.0042df80
add esp, 0x18
cmp eax, esi
jne 0x42e167
mov dword [ebp - 0x14], esi
jmp 0x42e180
lea eax, [ebp - 0x238]
push 0x2e
push eax
call dword [sym.imp.MSVCRT.dll_wcsrchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x42e165
mov edi, dword [sym.imp.MSVCRT.dll__wcsicmp]
push str..exe
push esi
call edi
add esp, 8
test eax, eax
je 0x42e10f
push str..dll
push esi
call edi
add esp, 8
test eax, eax
je 0x42e10f
push str..ocx
push esi
call edi
add esp, 8
test eax, eax
jne 0x42e165
mov cx, word [0x5117f0]
xor eax, eax
mov word [ebp - 0x87c], cx
mov ecx, 0x81
lea edi, [ebp - 0x87a]
lea edx, [ebp - 0x238]
rep stosd dword es:[edi], eax
push edx
push ebx
stosw word es:[edi], ax
push 0x4f5368
lea eax, [ebp - 0x87c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea ecx, [ebp - 0x87c]
push ecx
call fcn.0048d720
add esp, 0x18
test eax, eax
jne 0x42e165
mov dword [ebp - 0x14], eax
jmp 0x42e180
xor esi, esi
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x264]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42e00d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42e440
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x208
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
push 1
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x214]
push 0x103
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.004a3a30
add esp, 0x10
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
add esp, 0x208
ret