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

Disassembly:
push 0xffffffffffffffff
push 0x4b581d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
mov esi, ecx
push edi
push str.Read_file_data_to_buffer...
lea ecx, [esp + 0x10]
call fcn.0049d14a
mov eax, dword [esp + 0xc]
xor ebx, ebx
push ebx
push 2
push eax
mov dword [esp + 0x14c], ebx
call fcn.0040c410
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x41]
mov byte [esp + 0x40], bl
rep stosd dword es:[edi], eax
add esp, 0xc
lea ecx, [esp + 0x34]
stosw word es:[edi], ax
push 0x104
push ecx
push ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x24]
call fcn.004a1a5d
lea ecx, [esp + 0x10]
mov byte [esp + 0x140], 1
call fcn.004a151a
mov edx, dword [0x4dbb94]
mov dword [esp + 0x20], edx
mov edi, vtable.CFileException.0
push ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x144], 3
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0xffffffff
call fcn.0049d265
lea eax, [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
push 0x40
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x14c], 4
call fcn.004a1c0f
test eax, eax
jne 0x4060e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x18]
push str.Open_File___s__failed__ErrCause:_d__LastError:_d_n
push ecx
call fcn.00496a65
mov edx, dword [esp + 0x20]
push ebx
push 1
push edx
call fcn.0040c410
add esp, 0x20
mov dword [esp + 0x10], edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x140], 5
call fcn.0049d0dc
lea ecx, [esp + 0x24]
mov byte [esp + 0x140], bl
call fcn.004a1b52
lea ecx, [esp + 0xc]
mov dword [esp + 0x140], 0xffffffff
call fcn.0049d0dc
xor eax, eax
jmp 0x4061ce
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x406107
push eax
call fcn.0049c3fa
add esp, 4
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
lea ecx, [esp + 0x24]
call fcn.004a1f09
mov dword [esi + 0x94], eax
inc eax
push eax
call fcn.0049c3d1
mov ecx, dword [esi + 0x94]
add esp, 4
inc ecx
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 0x90], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x90]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.004a1d2c
lea ecx, [esp + 0x24]
call fcn.004a1e2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi + 0x94]
push eax
push edx
lea eax, [esp + 0x14]
push str._tRead_bytes:_lu__LastError:_d_n
push eax
call fcn.00496a65
mov ecx, dword [esp + 0x1c]
push ebx
push 2
push ecx
call fcn.0040c410
add esp, 0x1c
mov dword [esp + 0x10], vtable.CFileException.0
lea ecx, [esp + 0x20]
mov byte [esp + 0x140], 6
call fcn.0049d0dc
lea ecx, [esp + 0x24]
mov byte [esp + 0x140], bl
call fcn.004a1b52
lea ecx, [esp + 0xc]
mov dword [esp + 0x140], 0xffffffff
call fcn.0049d0dc
mov eax, 1
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret
Function at 0x4061f0
Capabilities:
Access peb ldr_data
Get common file path
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4b5848
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
push str.Create_Unzip_Folder...
lea ecx, [esp + 0x10]
call fcn.0049d14a
mov eax, dword [esp + 0xc]
push 0
push 2
push eax
mov dword [esp + 0x2c], 0
call fcn.0040c410
add esp, 0xc
lea ecx, [esp + 8]
push 0x4ea948
call fcn.0049d14a
push 0x104
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.0049d50c
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.0049d55b
push 0x4dabc0
lea ecx, [esp + 0xc]
call fcn.00496b90
lea ecx, [esp + 0x10]
push str._Y_m_d_H_M_S
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.0049700e
mov ecx, eax
call fcn.0049729b
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
push eax
add esi, 0x8c
push ecx
push str._sIPGASZIP_s_
push esi
mov byte [esp + 0x30], 2
call fcn.00496a65
mov edx, dword [esi]
add esp, 0x10
lea eax, [esp + 0xc]
push edx
push str._tCreate_unzip_folder__s..._n
push eax
call fcn.00496a65
mov ecx, dword [esp + 0x18]
push 0
push 2
push ecx
call fcn.0040c410
mov eax, dword [esi]
push eax
call fcn.0040efb0
add esp, 0x1c
test eax, eax
jne 0x4063fe
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
lea edx, [esp + 0x10]
push str._tCreate_folder_failed._LastError:_d_n
push edx
call fcn.00496a65
mov eax, dword [esp + 0x18]
push 0
push 1
push eax
call fcn.0040c410
add esp, 0x18
lea ecx, [esp + 8]
push 0x4ea948
call fcn.0049d265
push 0x104
push 0x104
lea ecx, [esp + 0x10]
call fcn.0049d50c
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.0049d55b
push 0x4dabc0
lea ecx, [esp + 0xc]
call fcn.00496b90
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
push ecx
push edx
push str._sTempIPGASZIP_s_
push esi
call fcn.00496a65
mov eax, dword [esi]
add esp, 0x10
lea ecx, [esp + 0xc]
push eax
push str._tCreate_unzip_folder__s..._n
push ecx
call fcn.00496a65
mov edx, dword [esp + 0x18]
push 0
push 2
push edx
call fcn.0040c410
mov esi, dword [esi]
push esi
call fcn.0040efb0
add esp, 0x1c
test eax, eax
jne 0x4063fe
call edi
push eax
lea eax, [esp + 0x10]
push str._tCreate_folder_failed._LastError:_d_n
push eax
call fcn.00496a65
mov ecx, dword [esp + 0x18]
push 0
push 1
push ecx
call fcn.0040c410
add esp, 0x18
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call fcn.0049d0dc
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call fcn.0049d0dc
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.0049d0dc
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call fcn.0049d0dc
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call fcn.0049d0dc
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.0049d0dc
mov ecx, dword [esp + 0x18]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x407c60
Capabilities:
Check for peb beingdebugged flag
Impersonate user

Disassembly:
push 0xffffffffffffffff
push 0x4b5aa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 1
call fcn.004a038d
mov eax, dword [edi + 0x60]
mov edx, dword [edi + 0x5c]
lea esi, [edi + 0x60]
add edi, 0x5c
mov ecx, dword [eax - 8]
mov eax, dword [edx - 8]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x4dbb94]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
xor ebx, ebx
push 0x4dabc0
mov ecx, esi
mov dword [esp + 0x30], ebx
call fcn.004966df
mov ebp, eax
cmp ebp, 0xffffffff
je 0x407d20
lea edx, [esp + 0x18]
push ebp
push edx
mov ecx, esi
call fcn.004965ef
inc ebp
lea eax, [esp + 0x14]
push ebp
push eax
mov ecx, esi
mov byte [esp + 0x34], 1
call fcn.004964ba
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x18]
push str._s__s
push eax
mov byte [esp + 0x3c], 2
call fcn.00496a65
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.0049d0dc
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], bl
call fcn.0049d0dc
jmp 0x407d2a
push esi
lea ecx, [esp + 0x14]
call fcn.0049d215
call fcn.00407fd0
test eax, eax
je 0x407d42
push str.SeTcbPrivilege
call fcn.004092d0
add esp, 4
jmp 0x407da9
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 2
push edx
mov ecx, edi
mov dword [esp + 0x28], ebx
call fcn.0049d50c
push eax
mov eax, dword [esp + 0x30]
push ebx
push eax
lea ecx, [esp + 0x28]
call fcn.0049d50c
push eax
call dword [sym.imp.ADVAPI32.dll_LogonUserA]
test eax, eax
jne 0x407d9e
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0049d0dc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
lea ecx, [esp + 0x1c]
push edi
call fcn.0043e7c0
mov esi, dword [esi]
mov edi, dword [eax]
push esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 3
call fcn.0043e7c0
mov eax, dword [eax]
push ebx
push edi
push eax
mov ecx, 0x4ea878
mov byte [esp + 0x38], 4
call fcn.004039d0
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 3
call fcn.0043f140
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], bl
call fcn.0043f140
mov ecx, 0x4ea878
mov dword [0x4ea870], 1
mov dword [0x4ea874], ebx
call fcn.00403990
mov esi, eax
lea ecx, [esp + 0x10]
neg esi
sbb esi, esi
mov dword [0x4ea870], ebx
and esi, 0xfffffffe
mov dword [esp + 0x2c], 0xffffffff
add esi, 2
call fcn.0049d0dc
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x407ec0
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword [0x4eace8]
test eax, eax
jne 0x407f3e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x4eab88
mov dword [0x4eace8], 1
mov dword [0x4eab88], 0x94
call esi
mov edx, dword [0x4eab98]
xor eax, eax
cmp edx, 2
push 0x4eac48
sete al
mov dword [0x4dac64], eax
mov dword [0x4eac48], 0x9c
call esi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop esi
mov dword [0x4eace4], eax
test eax, eax
push 0x4eac20
je 0x407f38
call eax
ret
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
ret
Function at 0x40ad70
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
sub esp, 0x204
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push ebp
call ebx
cmp eax, 0xffffffff
jne 0x40adb1
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x218]
push eax
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret
test al, 1
je 0x40adc7
and al, 0xfe
push eax
push ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x10]
test al, 0x10
je 0x40ae46
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push eax
push ebp
lea edx, [esp + 0x1c]
push str._s.bak_08X
push edx
call fcn.00420780
add esp, 0x10
lea eax, [esp + 0x14]
xor esi, esi
push eax
call ebx
cmp eax, 0xffffffff
je 0x40ae3a
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
push eax
push ebp
lea ecx, [esp + 0x1c]
push str._s.bak_08X
push ecx
call fcn.00420780
add esp, 0x10
lea edx, [esp + 0x14]
push edx
call ebx
inc esi
cmp esi, 0xa
jge 0x40ae68
cmp eax, 0xffffffff
jne 0x40ae0a
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ecx, dword [esp + 0x220]
mov edx, dword [esp + 0x218]
push ecx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x204
ret
Function at 0x40e460
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b5d98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
lea ecx, [esp + 4]
call fcn.00417e7c
mov eax, dword [esp + 0x30]
push 0
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.00417f3f
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
call fcn.00417eb9
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x40ed70
Capabilities:
Delete directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b5f48
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
mov esi, dword [esp + 0x48]
test esi, esi
je 0x40ef67
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x40ef67
lea ecx, [esp + 0x1c]
call fcn.00417e7c
push esi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], 0
call fcn.0049d14a
push 0x5c
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 1
call fcn.00496be3
lea eax, [esp + 0x48]
push 0x4daf68
lea ecx, [esp + 8]
push eax
push ecx
call fcn.0049d371
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 2
call fcn.00417f3f
lea ecx, [esp + 4]
mov esi, eax
mov byte [esp + 0x40], 1
call fcn.0049d0dc
test esi, esi
je 0x40ef30
push ebx
mov bl, 5
lea ecx, [esp + 0x20]
call fcn.0041815f
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.00418126
test eax, eax
jne 0x40ef27
lea edx, [esp + 0xc]
lea ecx, [esp + 0x20]
push edx
call fcn.00418357
push 0x104
mov ecx, eax
mov byte [esp + 0x48], 3
call fcn.0049d50c
push eax
lea ecx, [esp + 0xc]
call fcn.0049d14a
lea ecx, [esp + 0xc]
mov byte [esp + 0x44], bl
call fcn.0049d0dc
mov eax, dword [esp + 0x20]
push 0x10
lea ecx, [esp + 0x24]
call dword [eax + 0x38]
test eax, eax
push 0x4dabc0
je 0x40eeca
lea ecx, [esp + 0x50]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.0049d371
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
push eax
push edx
mov byte [esp + 0x50], 6
call fcn.0049d30b
mov eax, dword [eax]
mov byte [esp + 0x44], 7
push eax
call fcn.0040ed70
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 6
call fcn.0049d0dc
mov byte [esp + 0x44], bl
lea ecx, [esp + 0x14]
jmp 0x40ef14
lea eax, [esp + 0x50]
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.0049d371
lea edx, [esp + 8]
mov byte [esp + 0x44], 8
push edx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0049d30b
mov eax, dword [eax]
mov byte [esp + 0x44], 9
push eax
call fcn.0040e640
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 8
call fcn.0049d0dc
mov byte [esp + 0x44], bl
lea ecx, [esp + 0x1c]
call fcn.0049d0dc
lea ecx, [esp + 8]
mov byte [esp + 0x44], 1
call fcn.0049d0dc
test esi, esi
jne 0x40ee16
pop ebx
lea ecx, [esp + 0x1c]
call fcn.00417ef5
mov ecx, dword [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
mov byte [esp + 0x40], 0
lea ecx, [esp + 0x48]
jne 0x40ef79
call fcn.0049d0dc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], 0xffffffff
call fcn.00417eb9
xor eax, eax
pop esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
call fcn.0049d0dc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], 0xffffffff
call fcn.00417eb9
mov ecx, dword [esp + 0x38]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x40
ret
Function at 0x40efb0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4b5f70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, dword [esp + 0x1c]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x40f0cf
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40f0cf
push esi
lea ecx, [esp + 0x24]
call fcn.0049d14a
mov al, byte [esi]
mov dword [esp + 0x18], ebx
cmp al, 0x5c
jne 0x40f01f
cmp byte [esi + 1], 0x5c
jne 0x40f01f
push 3
push 0x5c
lea ecx, [esp + 0x28]
call fcn.0049d60b
inc eax
lea ecx, [esp + 0x20]
push eax
push 0x5c
call fcn.0049d60b
jmp 0x40f02a
push 0x5c
lea ecx, [esp + 0x24]
call fcn.0049d5fd
mov esi, eax
cmp esi, 0xffffffff
je 0x40f089
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esp + 0xc]
push esi
push eax
lea ecx, [esp + 0x28]
call fcn.004965ef
mov ecx, dword [esp + 0xc]
mov byte [esp + 0x18], 1
push ecx
call fcn.0040e580
add esp, 4
test eax, eax
jne 0x40f068
mov edx, dword [esp + 0xc]
push ebx
push edx
call edi
test eax, eax
je 0x40f0b1
inc esi
lea ecx, [esp + 0x20]
push esi
push 0x5c
call fcn.0049d60b
lea ecx, [esp + 0xc]
mov esi, eax
mov byte [esp + 0x18], bl
call fcn.0049d0dc
cmp esi, 0xffffffff
jne 0x40f037
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.0049d0dc
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], bl
call fcn.0049d0dc
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.0049d0dc
mov ecx, dword [esp + 0x10]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40f2a0
Capabilities:
Copy file

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
test ebx, ebx
je 0x40f32f
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40f32f
mov esi, dword [esp + 0x14]
test esi, esi
je 0x40f32f
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40f32f
push ebx
call fcn.0040e460
add esp, 4
test eax, eax
je 0x40f32f
push esi
push ebx
call fcn.0041fd0f
add esp, 8
test eax, eax
je 0x40f32f
push esi
call fcn.0040e640
add esp, 4
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40f326
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40f32f
push 0
push 0
push 0x240
push esi
push 0
push ebx
push 0
push 0
call dword [sym.imp.SETUPAPI.dll_SetupInstallFileA]
test eax, eax
je 0x40f32f
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x411220
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4b6240
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp esi, ebx
mov ebp, ecx
je 0x411344
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x411344
push esi
lea ecx, [esp + 0x28]
call fcn.0049d14a
mov al, byte [esi]
mov dword [esp + 0x1c], ebx
cmp al, 0x5c
jne 0x411292
cmp byte [esi + 1], 0x5c
jne 0x411292
push 3
push 0x5c
lea ecx, [esp + 0x2c]
call fcn.0049d60b
inc eax
lea ecx, [esp + 0x24]
push eax
push 0x5c
call fcn.0049d60b
jmp 0x41129d
push 0x5c
lea ecx, [esp + 0x28]
call fcn.0049d5fd
mov esi, eax
cmp esi, 0xffffffff
je 0x4112fb
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x2c]
call fcn.004965ef
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x1c], 1
push ecx
mov ecx, ebp
call fcn.00411160
test eax, eax
jne 0x4112da
mov edx, dword [esp + 0x10]
push ebx
push edx
call edi
test eax, eax
je 0x411326
inc esi
lea ecx, [esp + 0x24]
push esi
push 0x5c
call fcn.0049d60b
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x1c], bl
call fcn.0049d0dc
cmp esi, 0xffffffff
jne 0x4112aa
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0049d0dc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call fcn.0049d0dc
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0049d0dc
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x411a50
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b6360
push eax
mov dword fs:[0], esp
sub esp, 0x10
xor eax, eax
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, ecx
push edi
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x411ad0
push 0x3d
push ebp
call fcn.00420210
add esp, 8
test eax, eax
jne 0x411ad0
push 0x3b
push ebp
call fcn.00420210
add esp, 8
test eax, eax
jne 0x411ad0
mov eax, dword [0x4c2f70]
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0
push ecx
push ebp
mov ecx, esi
call fcn.00412820
test eax, eax
je 0x411ae6
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.004397e0
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
mov edx, dword [esp + 0x30]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea edx, [esp + 0x20]
push edx
call fcn.004514f0
add esp, 0xc
mov edi, eax
add esi, 4
push ebp
lea eax, [esp + 0x18]
push esi
push eax
mov byte [esp + 0x30], 1
call fcn.00439f10
push 0x3d
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x30], 2
call fcn.0043b100
push edi
lea edx, [esp + 0x10]
push eax
push edx
mov byte [esp + 0x30], 3
call fcn.00439d50
push 0x3b
push eax
lea eax, [esp + 0x38]
mov byte [esp + 0x2c], 4
push eax
call fcn.0043b100
push eax
mov ecx, esi
mov byte [esp + 0x28], 5
call fcn.00439980
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 4
call fcn.004397e0
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 3
call fcn.004397e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call fcn.004397e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.004397e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 0
call fcn.004397e0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.004397e0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x4122c0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b6498
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, dword [esp + 0x18]
mov ebx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41233d
push 0x3d
push esi
call fcn.00420210
add esp, 8
test eax, eax
jne 0x41233d
push 0x3b
push esi
call fcn.00420210
add esp, 8
test eax, eax
jne 0x41233d
mov eax, dword [0x4c2f70]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0
push ecx
push esi
mov ecx, ebx
call fcn.00412820
test eax, eax
jne 0x412353
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.004397e0
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
mov edx, dword [esp + 0x1c]
mov eax, dword [edx - 8]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
inc esi
push esi
call fcn.0049c3d1
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
push eax
call fcn.004516c0
mov ecx, dword [esp + 0x30]
add esp, 0x10
push ebx
call fcn.00439aa0
push ebx
call fcn.0049c3fa
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.004397e0
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8

Function at 0x4123d0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b64b8
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, dword [esp + 0x18]
mov ebx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41244d
push 0x3d
push esi
call fcn.00420210
add esp, 8
test eax, eax
jne 0x41244d
push 0x3b
push esi
call fcn.00420210
add esp, 8
test eax, eax
jne 0x41244d
mov eax, dword [0x4c2f70]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0
push ecx
push esi
mov ecx, ebx
call fcn.00412820
test eax, eax
jne 0x412463
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.004397e0
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
mov edx, dword [esp + 0x1c]
mov eax, dword [edx - 8]
cdq
sub eax, edx
sar eax, 1
inc eax
lea ebx, [eax + eax]
push ebx
call fcn.0049c3d1
mov ecx, ebx
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
push ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
push eax
call fcn.004516c0
mov ecx, dword [esp + 0x30]
add esp, 0x10
push esi
call fcn.0043f420
push esi
call fcn.0049c3fa
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.004397e0
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8