joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403710
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x44ca86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x400
mov eax, dword [esp + 0x410]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
push esi
push edi
mov esi, ecx
lea edi, [eax + 0x2c]
lea ecx, [esp + 0xa8]
push edi
push ecx
call ebx
push 0x46a8c8
lea ecx, [esp + 0x14]
call fcn.0043fe6a
push 0x701
lea edx, [esp + 0x1b0]
xor ebp, ebp
push 4
push edx
lea eax, [esp + 0xb4]
push ebp
push eax
mov dword [esp + 0x42c], ebp
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea ecx, [esp + 0xa8]
push edi
push ecx
call ebx
lea edx, [esp + 0x2bc]
lea eax, [esp + 0x30c]
push edx
push eax
call ebx
mov ecx, dword [esi + 0x1c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push ebp
push 0x1004
push ecx
mov dword [esp + 0x28], 7
call edi
mov ecx, dword [esp + 0x424]
lea edx, [esp + 0xa8]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1b0]
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x1c]
push edx
push ebp
push 0x1007
push eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x48], ecx
call edi
mov ebp, eax
mov eax, dword [esp + 0x424]
test eax, eax
jne 0x40381e
mov eax, dword [esp + 0x420]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.00403610
push eax
lea eax, [esp + 0x48]
push eax
jmp 0x403828
lea ecx, [esp + 0x44]
push 0x46a8c8
push ecx
call ebx
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x18]
push eax
push 0
mov ebx, 1
lea edx, [esp + 0x4c]
push 0x1006
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], edx
call edi
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x18]
push eax
push 0
lea edx, [esp + 0x314]
push 0x1006
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], 2
mov dword [esp + 0x3c], edx
call edi
mov edx, dword [esp + 0x420]
push 0xffffffffffffffff
add edx, 0x14
lea ecx, [esp + 0x18]
push edx
call fcn.00439b8b
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push str._y__m__d__H:_S
push ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], eax
call fcn.00439c19
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x41c], bl
call fcn.0043ff35
lea ecx, [esp + 0x14]
mov byte [esp + 0x418], 0
call fcn.0043fdfc
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 3
mov eax, dword [edx - 8]
lea ecx, [esp + 0x10]
push eax
call fcn.0044022c
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x18]
push eax
push 0
push 0x1006
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x418], 0xffffffff
call fcn.0043fdfc
mov ecx, dword [esp + 0x410]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40c
ret 8
Function at 0x403940
Capabilities:
Access peb ldr_data
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x44ca98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x394
push esi
push edi
mov esi, ecx
mov eax, dword [esp + 0x3ac]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x3ac], 0
call edi
push 0x46a8c8
lea ecx, [esp + 0xc]
call fcn.0043fe6a
push 0x701
lea edx, [esp + 0x13c]
push 4
push edx
lea eax, [esp + 0x40]
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea ecx, [esp + 0x144]
lea edx, [esp + 0x34]
push ecx
push edx
call edi
lea eax, [esp + 0x248]
lea ecx, [esp + 0x298]
push eax
push ecx
call edi
mov ecx, dword [esi + 0x1c]
mov edx, dword [esp + 0x13c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0xc]
push eax
push 0
push 0x1007
push ecx
mov dword [esp + 0x1c], 7
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], 0x46359c
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], 1
call edi
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
lea edx, [esp + 0x298]
push eax
push 0
push 0x1006
push ecx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x24], 2
mov dword [esp + 0x30], edx
call edi
lea ecx, [esp + 8]
call fcn.0043fdfc
lea ecx, [esp + 0x3ac]
mov dword [esp + 0x3a4], 0xffffffff
call fcn.0043fdfc
mov ecx, dword [esp + 0x39c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x3a0
ret 4
Function at 0x406830
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x44cf20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
push 0x46a8c8
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], 1
call fcn.0043fe6a
mov byte [esp + 0x30], 2
call fcn.004063a0
mov edi, eax
cmp edi, 0xffffffff
je 0x406972
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov bl, 0x19
mov ebp, eax
mov byte [esp + 0x14], bl
mov eax, 1
mov cl, bl
shl eax, cl
test ebp, eax
jne 0x4068ed
mov ecx, dword [str..A:]
mov dx, word [0x4636cc]
mov dword [esp + 0x18], ecx
mov al, byte [0x4636ce]
xor ecx, ecx
mov word [esp + 0x1c], dx
mov dword [esp + 0x1f], ecx
mov byte [esp + 0x1e], al
mov dword [esp + 0x23], ecx
mov dl, bl
push ecx
push 0x20000000
push 3
push ecx
push 3
lea eax, [esp + 0x2c]
add dl, 0x41
push ecx
push eax
mov byte [esp + 0x43], cl
mov byte [esp + 0x38], dl
call esi
cmp eax, 0xffffffff
je 0x4068f6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
dec bl
cmp bl, 1
jbe 0x406922
jmp 0x40688b
mov byte [esp + 0x14], bl
lea edx, [esp + 0x10]
mov ecx, dword [esp + 0x14]
and ecx, 0xff
lea esi, [ecx + 0x41]
push esi
push 0x4636c4
push edx
call fcn.0043996a
mov eax, dword [esp + 0x44]
add esp, 0xc
mov dword [eax], esi
jmp 0x406926
mov byte [esp + 0x14], bl
cmp bl, 1
je 0x406972
push 1
push 1
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.0043fb71
lea ecx, [esp + 0x4c]
mov byte [esp + 0x3c], 3
call fcn.00408b70
push eax
push ecx
lea eax, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0043fb71
push edi
mov byte [esp + 0x48], 2
call fcn.004063e0
add esp, 0x18
test eax, eax
jne 0x4069b4
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 1
call fcn.0043fdfc
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], 0
call fcn.0043fdfc
lea ecx, [esp + 0x40]
mov dword [esp + 0x30], 0xffffffff
call fcn.0043fdfc
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ebx, 0x14
push 0xc8
call esi
lea ecx, [esp + 0x10]
push 0x4636c0
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.00440091
mov eax, dword [eax]
push 0
push eax
push 0x2001
push 4
call edi
lea ecx, [esp + 0x38]
call fcn.0043fdfc
dec ebx
jne 0x4069c5
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 1
call fcn.0043fdfc
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], 0
call fcn.0043fdfc
lea ecx, [esp + 0x40]
mov dword [esp + 0x30], 0xffffffff
call fcn.0043fdfc
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret

Function at 0x406c10
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
add ecx, 0x518
push eax
push 0
push ecx
push 0x406a40
push 0
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp]
xor eax, eax
test ecx, ecx
setne al
pop ecx
ret
Function at 0x406cd0
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x108
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [ebp + 0x724]
call fcn.004143f0
xor eax, eax
mov dword [ebp], 0x450bf0
mov dword [ebp + 0x71c], eax
mov dword [ebp + 0x720], eax
mov dword [ebp + 0xf90], 0x5a
mov eax, dword [0x4636fc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
push ecx
call fcn.00423a0f
lea edi, [ebp + 4]
mov ecx, 0x41
xor eax, eax
lea esi, [ebp + 0x20c]
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp + 0x310]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp + 0x414]
rep stosd dword es:[edi], eax
mov ecx, 0x20
lea edi, [ebp + 0x518]
rep stosd dword es:[edi], eax
mov ecx, 0x20
lea edi, [ebp + 0x598]
rep stosd dword es:[edi], eax
lea ebx, [ebp + 0x618]
mov ecx, 0x41
mov edi, ebx
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp + 0x108]
push 0x104
push esi
rep stosd dword es:[edi], eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406dac
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
lea edx, [esp + 0x18]
push 0x1a
push edx
push 0
stosb byte es:[edi], al
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, str.esafenet_out_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebp + 4]
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
dec ecx
cmp byte [ecx + ebp + 0x617], 0x5c
je 0x406e3b
push str.NC.
push ebx
call edi
push str.ESTRecycle.EXE
push ebx
call edi
push 0x104
lea eax, [esp + 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
pop edi
mov dword [ebp + 0xf94], 1
mov dword [ebp + 0xf98], 0
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x406ea0
Capabilities:
Delete file
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x44cf3e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x450bf0
mov dword [esp + 0x14], 0
call fcn.00406c50
mov eax, dword [esi + 0xf94]
test eax, eax
je 0x406f0d
lea ebx, [esi + 0x108]
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x406f0d
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
push ebx
je 0x406f07
call fcn.0040f8e0
add esp, 4
jmp 0x406f0d
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi + 0xf98]
test eax, eax
je 0x406f1e
mov ecx, esi
call fcn.00408f20
lea ecx, [esi + 0x724]
mov dword [esp + 0x14], 0xffffffff
call fcn.00414580
mov ecx, dword [esp + 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x406f50
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44cf60
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, ecx
push ebp
push esi
lea esi, [ebx + 0x20c]
push edi
push esi
lea ecx, [ebx + 0x724]
call fcn.00414620
test eax, eax
jne 0x406ffb
lea eax, [esp + 0x14]
push 1
push eax
mov ecx, 0x46a9c8
call fcn.004156e0
mov edi, dword [eax]
lea ecx, [esp + 0x10]
push 0x28
push ecx
mov ecx, 0x46a9c8
mov dword [esp + 0x30], 0
call fcn.004156e0
mov eax, dword [eax]
push 0x10
push edi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x10]
call fcn.0043fdfc
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.0043fdfc
push esi
push 0x463720
call fcn.0040faa0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
lea ebp, [ebx + 0xb14]
push ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x407098
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x407098
lea edx, [esp + 0x1c]
push 2
push edx
mov ecx, 0x46a9c8
call fcn.004156e0
mov edi, dword [eax]
lea eax, [esp + 0x18]
push 0x29
push eax
mov ecx, 0x46a9c8
mov dword [esp + 0x30], 1
call fcn.004156e0
mov eax, dword [eax]
push 0x10
push edi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x18]
call fcn.0043fdfc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], 0xffffffff
call fcn.0043fdfc
push esi
push 0x463700
call fcn.0040faa0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
lea edi, [ebx + 0xc70]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x310]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebx + 0x518]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00406c10
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4095c0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x554
push ebx
push ebp
push esi
mov dword [esp + 0xc], ecx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x155]
mov byte [esp + 0x154], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x35d]
mov byte [esp + 0x35c], bl
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x568]
or ecx, 0xffffffff
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebp - 1], 0x5c
je 0x40962a
push str.NC.
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x35c]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, 0x4635a4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x35c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x50
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x35c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0xffffffff
je 0x40977e
cmp edi, ebx
je 0x40977e
mov ebx, dword [esp + 0x56c]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea edx, [esp + 0x40]
push 0x4635a0
push edx
call fcn.0042344d
add esp, 8
test eax, eax
je 0x409751
lea eax, [esp + 0x40]
push 0x46359c
push eax
call fcn.0042344d
add esp, 8
test eax, eax
je 0x409751
lea ecx, [esp + 0x154]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x40]
lea eax, [esp + 0x154]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x154]
push ecx
call esi
test al, 0x10
je 0x409722
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x154]
push ebx
push edx
call fcn.004095c0
jmp 0x409751
test al, 1
je 0x409737
and al, 0xfe
push eax
lea eax, [esp + 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0x10]
push 2
add ecx, 0x760
lea edx, [esp + 0x158]
push ecx
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4096ae
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x554
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x554
ret 8
Function at 0x409790
Capabilities:
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x760
mov eax, dword [esp + 0x768]
push 0
mov dword [esp + 8], ecx
push eax
mov dword [esp + 8], 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4097ba
mov dword [esp], eax
push ebx
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x361]
mov byte [esp + 0x360], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x569]
mov byte [esp + 0x568], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x159]
mov byte [esp + 0x158], 0
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x774]
or ecx, 0xffffffff
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
dec ecx
mov bl, 0x5c
cmp byte [ecx + ebp - 1], bl
je 0x409838
push str.NC.
push ebp
call esi
mov edx, dword [esp + 0x778]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + edx - 1], bl
je 0x409859
push str.NC.
push edx
call esi
lea ecx, [esp + 0x360]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, 0x4635a4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x360]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x364]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4098c2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x760
ret 8
test edi, edi
je 0x409996
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov bl, 0x10
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x409996
lea eax, [esp + 0x44]
lea ecx, [esp + 0x568]
push eax
push ebp
push str._s_s
push ecx
call esi
mov eax, dword [esp + 0x788]
add esp, 0x10
lea edx, [esp + 0x44]
lea ecx, [esp + 0x158]
push edx
push eax
push str._s_s
push ecx
call esi
mov al, byte [esp + 0x28]
add esp, 0x10
test bl, al
jne 0x409947
lea edx, [esp + 0x158]
push 0
lea eax, [esp + 0x56c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4098d2
mov dword [esp + 0x10], eax
jmp 0x4098d2
lea ecx, [esp + 0x44]
push 0x4635a0
push ecx
call fcn.0042344d
add esp, 8
test eax, eax
je 0x4098d2
lea edx, [esp + 0x44]
push 0x46359c
push edx
call fcn.0042344d
add esp, 8
test eax, eax
je 0x4098d2
lea eax, [esp + 0x158]
lea ecx, [esp + 0x568]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00409790
jmp 0x40993d
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x760
ret 8
Function at 0x4099b0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x44d2a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], 0
call fcn.004094f0
test eax, eax
jne 0x409a01
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.0043fdfc
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
push ebp
lea ecx, [esi + 0x760]
lea edi, [esi + 0x310]
push 2
push ecx
push edi
call eax
add esp, 0xc
mov ecx, esi
mov ebp, eax
call fcn.004095a0
test ebp, ebp
pop ebp
jne 0x409a4b
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.0043fdfc
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
lea edx, [esp + 0x1c]
lea ecx, [esp + 8]
push edx
call fcn.0043fb71
push str.NC.
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call fcn.004401d8
lea eax, [esi + 0x9f4]
lea ecx, [esp + 8]
push eax
call fcn.004401d8
add esi, 0xaf4
lea ecx, [esp + 8]
push esi
call fcn.004401d8
mov ecx, dword [esp + 8]
push 0
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x14], 0
call fcn.0043fdfc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.0043fdfc
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x40a390
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebx
mov dword [esi], 0x450bf4
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x40a43a
cmp eax, 0xffffffff
je 0x40a43a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.et_FindToken
push eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
push str.et_OpenToken
push eax
call edi
mov ecx, dword [esi + 0xc]
push str.et_CloseToken
push ecx
mov dword [esi + 0x18], eax
call edi
mov edx, dword [esi + 0xc]
push str.et_Verify
push edx
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0xc]
push str.et_Read
push eax
call edi
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x24], eax
cmp ecx, ebx
pop edi
je 0x40a43a
cmp dword [esi + 0x18], ebx
je 0x40a43a
cmp dword [esi + 0x1c], ebx
je 0x40a43a
cmp dword [esi + 0x20], ebx
je 0x40a43a
cmp eax, ebx
je 0x40a43a
mov dword [esi + 0x10], 1
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x40a850
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40a87f
xor eax, eax
pop ecx
ret 0x18
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push esi
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret 0x18

Function at 0x40a8c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 8], 0
test edi, edi
je 0x40a92b
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40a92b
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a92b
push eax
push eax
push eax
push eax
push esi
push eax
push eax
push edi
push eax
push eax
push eax
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, dword [esp + 8]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
sete al
pop esi
pop ecx
ret 0x10
pop edi
xor eax, eax
pop esi
pop ecx
ret 0x10
Function at 0x40a940
Capabilities:
Query or enumerate registry key

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push ecx
push edx
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
je 0x40a96e
xor eax, eax
pop edi
pop ecx
ret 0x10
mov eax, 0xfc0fc0fd
push ebx
mul dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
shr edx, 8
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], 0x104
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push 0
mov eax, edi
push ecx
push ebx
push eax
push edx
inc edi
call ebp
mov esi, eax
cmp esi, 0x103
je 0x40a9ce
cmp edi, dword [esp + 0x18]
ja 0x40a9ce
add ebx, 0x104
mov dword [esp + 0x1c], 0x104
test esi, esi
je 0x40a993
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40a9ef
cmp esi, 0x103
je 0x40a9ef
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
pop ecx
ret 0x10
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
pop ecx
ret 0x10