joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000fd90
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10010180
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x10020af0], 0
jne 0x1000fdcd
cmp dword [0x10020aec], 0
je 0x1000fdcd
mov eax, dword [0x10020aec]
mov dword [0x10020af0], eax
cmp dword [0x10020af0], 0
je 0x1000fe4a
mov ecx, dword [0x10020af0]
cmp dword [ecx + 8], 0
je 0x1000fe4a
mov edx, dword [0x10020af0]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1000fe4a
mov ecx, dword [0x10020af0]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1000fe4a
mov eax, dword [0x10020af0]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1000fe19
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1000fe20
xor eax, eax
jmp 0x1000ff69
mov ecx, dword [0x10020af0]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1000ff69
mov edx, dword [0x10020aec]
mov dword [0x10020af0], edx
jmp 0x1000fe66
mov eax, dword [0x10020af0]
mov ecx, dword [eax + 4]
mov dword [0x10020af0], ecx
cmp dword [0x10020af0], 0
je 0x1000fea6
cmp dword [0x10020af0], 0
je 0x1000fea4
mov edx, dword [0x10020af0]
cmp dword [edx + 8], 0
je 0x1000fea4
mov eax, dword [0x10020af0]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1000fea4
mov edx, dword [0x10020af0]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1000fea4
jmp 0x1000fdfe
jmp 0x1000fe58
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1000ff70
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1000ff67
mov eax, dword [ebp - 0x18]
mov dword [0x10020af0], eax
mov ecx, dword [0x10020af0]
mov dword [ecx], 0x52727464
mov edx, dword [0x10020af0]
mov dword [edx + 8], 0
mov eax, dword [0x10020af0]
mov ecx, dword [0x10020aec]
mov dword [eax + 4], ecx
mov edx, dword [0x10020af0]
mov dword [0x10020aec], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x10020af0]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1000ff37
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1000ff57
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1000ff2e
mov eax, dword [0x10020af0]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1000fdfe
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10010cb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10020aec]
mov dword [ebp - 4], eax
jmp 0x10010cc9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10010cf0
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x10010cee
call sub.KERNEL32.dll_GetLastError
jmp 0x10010cf2
jmp 0x10010cc0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10011190
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10020afc], eax
je 0x100111b4
mov eax, 0x10dd
jmp 0x1001135c
cmp dword [0x10020b00], 0
je 0x100111c7
mov eax, dword [0x10020b00]
jmp 0x1001135c
cmp dword [ebp + 0xc], 0
jne 0x100111d7
mov eax, 0x57
jmp 0x1001135c
cmp dword [ebp + 8], 0
jne 0x100111e7
mov eax, 6
jmp 0x1001135c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10011210
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x10020b00], ecx
mov edx, dword [ebp + 8]
mov dword [0x10020b04], edx
mov eax, dword [ebp - 8]
jmp 0x1001135c
push 0x18
call fcn.10012a96
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1001126b
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x10020b00], ecx
cmp dword [ebp - 4], 0
je 0x1001125a
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.10012dfe
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x10020b04], ecx
mov eax, dword [ebp - 8]
jmp 0x1001135c
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10011170
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10011170
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x100112ab
cmp dword [ebp - 0xc], 0x1e
jbe 0x100112c7
mov dword [ebp - 8], 9
cmp dword [0x10020af4], 0
je 0x100112c2
jmp 0x10011239
jmp 0x10011230
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x100112ee
mov dword [ebp - 8], 9
cmp dword [0x10020af4], 0
je 0x100112e9
jmp 0x10011239
jmp 0x10011230
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x10011319
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x10011230
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x10020b0c]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x10020b0c], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10011370
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10020afc], eax
je 0x1001138d
mov eax, 0x10dd
jmp 0x10011470
mov eax, dword [0x10020b0c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1001140c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x100113e8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x100113e8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10010210
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.10012dfe
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10011395
mov dword [0x10020b0c], 0
call fcn.10010af0
mov ecx, dword [0x10020b08]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1001145a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10012dfe
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10011424
mov dword [0x10020b08], 0
mov dword [0x10020afc], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10011950
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10020b00], 0
je 0x10011969
mov eax, dword [0x10020b00]
jmp 0x10011a08
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1001197a
xor eax, eax
jmp 0x10011a08
push 8
call fcn.10012a96
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100119d2
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x100119bb
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.10012dfe
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10020b00], eax
mov dword [0x10020b04], 0
mov eax, dword [ebp - 8]
jmp 0x10011a08
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x100119ea
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1001199a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10020b08]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10020b08], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4011c0
Capabilities:
Create directory
Get thread local storage value
Set file attributes

Disassembly:
sub esp, 0x21c
mov eax, dword [0x46e3d8]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x220]
push ebx
xor ebx, ebx
sub eax, 2
push edi
mov edi, ecx
je 0x4012b9
sub eax, 1
jne 0x40134a
add edi, 0x118
push edi
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.0043e252
mov ecx, dword [esi + 4]
add esp, 0xc
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov eax, dword [0x470c24]
mov edi, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000100
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40129c
movzx eax, word [esi + 0x1a]
movzx ecx, word [esi + 0x18]
lea edx, [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
cmp eax, 1
jne 0x401295
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp eax, 1
jne 0x401295
lea ecx, [esp + 8]
push ecx
push ebx
mov edx, ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [esi + 0x1c]
and eax, 0x27
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, 1
jmp 0x40134c
mov edx, dword [edi]
mov eax, dword [esi + 4]
mov edx, dword [edx + 0x14]
push eax
call edx
test al, al
je 0x401343
lea eax, [edi + 0x118]
push eax
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call fcn.0043e252
mov edx, dword [esi + 4]
add esp, 0xc
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x120]
push 0x104
push edx
call fcn.0043e252
add esp, 0xc
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0
lea ecx, [esp + 0x120]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
push 0x180
lea edx, [esp + 0x1c]
push 0x8121
push edx
call fcn.0043d1d9
add esp, 0xc
mov ebx, eax
add dword [edi + 0x21c], 1
mov eax, ebx
mov ecx, dword [esp + 0x220]
pop edi
pop ebx
xor ecx, esp
call fcn.0043d02a
add esp, 0x21c
ret 4
Function at 0x403800
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4554db
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x46e3d8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0043c848
push 4
mov dword [esp + 0x20], 0
call fcn.0043ea3e
mov edi, eax
add esp, 4
test edi, edi
je 0x403880
call fcn.0043caae
mov dword [edi], eax
call fcn.0043c8e2
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0043cdfe
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x403875
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0043ce1f
jmp 0x403882
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x410ff0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x455e78
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x46e3d8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
call fcn.004040c0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x411044
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x14]
call fcn.00403ff0
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push edi
mov ecx, esi
mov word [esi + 4], di
call fcn.004040c0
cmp dword [esp + 0x24], 8
jb 0x41108a
mov eax, dword [esp + 0x10]
push eax
call fcn.0043e965
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x4136d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x458e3e
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x46e3d8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
call fcn.00423680
xor ebx, ebx
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov dword [esp + 0x14], ebx
call fcn.004047f0
mov dword [esi + 0x10], eax
mov byte [eax + 0x45], 1
mov eax, dword [esi + 0x10]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x10]
mov dword [eax], eax
mov eax, dword [esi + 0x10]
mov dword [eax + 8], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x30], 7
mov dword [esi + 0x2c], ebx
mov word [esi + 0x1c], bx
mov byte [esp + 0x14], 2
call fcn.00434a60
mov dword [esi + 0x44], eax
mov byte [eax + 0x2d], 1
mov eax, dword [esi + 0x44]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x44]
mov dword [eax], eax
mov eax, dword [esi + 0x44]
mov dword [eax + 8], eax
mov dword [esi + 0x48], ebx
mov dword [esi + 0x34], ebx
mov byte [esi + 0x3e], 1
mov byte [esi + 0x3c], bl
mov dword [esi + 0x38], ebx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x41d840
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x880
mov eax, dword [0x46e3d8]
xor eax, esp
mov dword [esp + 0x87c], eax
mov eax, dword [esp + 0x888]
push ebx
mov ebx, dword [esp + 0x8a0]
push ebp
mov ebp, dword [esp + 0x8a0]
push esi
mov esi, dword [esp + 0x890]
push edi
push esi
mov edi, ecx
lea ecx, [esp + 0x684]
push 0x104
push ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], eax
call fcn.0043f42c
add esp, 0xc
push 0x45cbd4
lea edx, [esp + 0x684]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x684]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x41d8f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.__Error_0x_X_retrieving_folder_contents
push 0x46fa40
xor eax, eax
call fcn.00431730
add esp, 0xc
jmp 0x41da67
mov ecx, 0x45cbe0
lea eax, [esp + 0x4c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41d926
test dx, dx
je 0x41d922
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41d926
add eax, 4
add ecx, 4
test dx, dx
jne 0x41d900
xor eax, eax
jmp 0x41d92b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41da35
mov ecx, 0x45cbe4
lea eax, [esp + 0x4c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41d966
test dx, dx
je 0x41d962
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41d966
add eax, 4
add ecx, 4
test dx, dx
jne 0x41d940
xor eax, eax
jmp 0x41d96b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41da35
push esi
lea edx, [esp + 0x47c]
push 0x104
push edx
call fcn.0043f42c
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x47c]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x274]
push 0x104
push eax
call fcn.0043f42c
add esp, 0xc
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x274]
push edx
call esi
test byte [esp + 0x20], 0x10
je 0x41da01
mov eax, dword [esp + 0x8a4]
mov ecx, dword [esp + 0x8a0]
mov edx, dword [esp + 0x89c]
push ebx
push ebp
push eax
push ecx
push edx
lea eax, [esp + 0x284]
push eax
lea ecx, [esp + 0x490]
push ecx
mov ecx, edi
call fcn.0041d840
jmp 0x41da2b
mov edx, dword [esp + 0x8a4]
mov eax, dword [esp + 0x89c]
push ebp
push edx
push eax
lea ecx, [esp + 0x27c]
push ecx
lea edx, [esp + 0x488]
push edx
mov edx, ebx
mov ecx, edi
call fcn.0041dbf0
mov esi, eax
test esi, esi
jne 0x41da5c
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41d8f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x12
jne 0x41da5c
xor esi, esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x88c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043d02a
add esp, 0x880
ret 0x1c
Function at 0x41da90
Capabilities:
Copy file
Get common file path
Move file

Disassembly:
sub esp, 0x41c
mov eax, dword [0x46e3d8]
xor eax, esp
mov dword [esp + 0x418], eax
push ebp
mov ebp, dword [esp + 0x424]
push edi
lea eax, [esp + 0x218]
push eax
push 0x104
mov edi, ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x4603c8
lea edx, [esp + 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push 0
push 3
push 0
push 1
push 0x20000
lea ecx, [esp + 0x28]
push ecx
mov dword [esi], 0
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41db3b
push esi
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 8]
push edx
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 4
push 1
push ebp
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x41db98
push str.____Transfering_source_file_security
push 0x46fa40
call fcn.00431730
mov ecx, dword [esp + 0x14]
add esp, 8
push 0
push ecx
push 0
push 0
push SysStringLen
push 1
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov eax, dword [esp + 8]
test eax, eax
je 0x41db98
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 5
push ebp
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 0x10]
push ecx
push str.____Source:__s
push 0x46fa40
xor eax, eax
call fcn.00431730
push ebp
push str.____Destination:__s
push 0x46fa40
xor eax, eax
call fcn.00431730
mov ecx, dword [esp + 0x438]
add esp, 0x18
pop edi
pop ebp
xor ecx, esp
call fcn.0043d02a
add esp, 0x41c
ret 4
Function at 0x41e2a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x459216
mov eax, dword fs:[0]
push eax
sub esp, 0xa54
mov eax, dword [0x46e3d8]
xor eax, esp
mov dword [esp + 0xa50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e3d8]
xor eax, esp
push eax
lea eax, [esp + 0xa68]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa78]
mov ebp, dword [esp + 0xa7c]
mov dword [esp + 0x20], ecx
xor ecx, ecx
or edi, 0xffffffff
mov dword [esp + 0x1c], 0x400
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ecx
mov word [esp + 0x44], cx
mov dword [esp + 0xa70], ecx
cmp byte [eax + 0x3e], cl
je 0x41e445
add eax, 0x18
push eax
mov ebx, str.Uninstall
lea esi, [esp + 0x28]
call fcn.00410ff0
add esp, 4
push edi
push 0
lea ecx, [esp + 0x48]
mov byte [esp + 0xa78], 1
call fcn.004040c0
mov esi, 8
mov byte [esp + 0xa70], 0
cmp dword [esp + 0x3c], esi
jb 0x41e364
mov edx, dword [esp + 0x28]
push edx
call fcn.0043e965
add esp, 4
cmp dword [esp + 0x58], esi
mov eax, dword [esp + 0x44]
jae 0x41e372
lea eax, [esp + 0x44]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, edi
add edi, 1
push edi
push ebp
lea edx, [esp + 0x64]
push str._s_d
push edx
call esi
mov ecx, dword [esp + 0x28]
add esp, 0x10
push 0
push 0
push 0
push 0
lea eax, [esp + 0x6c]
push eax
push ecx
call ebx
cmp eax, 2
jne 0x41e3a0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x268]
push eax
mov eax, dword [esp + 0x28]
call fcn.0043b910
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [ecx + ecx]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x268]
push eax
push 7
push 0
lea ecx, [esp + 0x6c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x41e426
push eax
push str.Error_creating_uninstall_key_0x_X
push 0x46fa40
mov eax, 2
call fcn.00431730
add esp, 0xc
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x58], 8
jb 0x41e445
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0043e965
add esp, 4
mov ecx, dword [esp + 0xa68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa50]
xor ecx, esp
call fcn.0043d02a
add esp, 0xa60
ret 8
Function at 0x428010
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x458e3e
mov eax, dword fs:[0]
push eax
push ebx
push edi
mov eax, dword [0x46e3d8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea eax, [edi + 0x40]
mov dword [esp + 0x14], 2
call fcn.00423640
cmp dword [edi + 0x30], 8
jb 0x428058
mov eax, dword [edi + 0x1c]
push eax
call fcn.0043e965
add esp, 4
xor ebx, ebx
mov dword [edi + 0x30], 7
mov dword [edi + 0x2c], ebx
lea eax, [edi + 0xc]
mov word [edi + 0x1c], bx
mov byte [esp + 0x14], bl
call fcn.004030f0
mov dword [esp + 0x14], 0xffffffff
call fcn.004224c0
mov eax, dword [edi + 4]
push eax
call fcn.0043e965
add esp, 4
mov dword [edi + 4], ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0xc
ret 4