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

Disassembly:
push 0
push 0
push 0
push 0x4110b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x16c], eax
test eax, eax
jne 0x411099
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x120], eax
test eax, eax
je 0x411081
push edi
push eax
lea edi, [esi + 0x118]
push str.Failed_to_start_the_pipe_thread._Error:__d.
call fcn.00428b20
xor eax, eax
add esp, 8
cmp dword [esi + 0x16c], eax
pop edi
setne al
ret
push ebx
lea eax, [esi + 0x118]
push str.Failed_to_start_the_pipe_thread.
push eax
mov ebx, 0x20
call fcn.00401330
pop ebx
xor eax, eax
cmp dword [esi + 0x16c], eax
setne al
ret

Function at 0x4116c0
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46736b
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x487e64
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [0x4878a4]
push 0x487e64
call ebx
test edi, edi
je 0x4117c7
mov eax, dword [0x484034]
mov edx, dword [eax + 0xc]
mov ecx, 0x484034
call edx
add eax, 0x10
mov dword [ebp - 0x414], eax
mov dword [ebp - 4], 0
mov eax, dword [0x487908]
mov ecx, dword [0x487e5c]
push eax
push ecx
push 0x473994
lea edi, [ebp - 0x414]
call fcn.00428b20
add esp, 0xc
push 0x487e64
call esi
push 0x487e64
mov byte [0x487872], 1
call ebx
push 0x2710
lea edx, [ebp - 0x418]
push edx
push 0x400
lea eax, [ebp - 0x410]
push eax
push str.Exit
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp - 0x414]
lea ecx, [eax + eax + 2]
push ecx
push str.Exit
push esi
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4117c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret
Function at 0x413b10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4680d0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x4846a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [edi]
push eax
mov dword [ebp - 0x18], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413c6c
cmp byte [ebx + 0x12f], 0
je 0x413c6c
mov eax, dword [ebx + 0xac]
cmp dword [eax - 0xc], 0
je 0x413c6c
mov ecx, dword [ebx + 0xa8]
cmp dword [ecx - 0xc], 0
je 0x413c6c
push ecx
mov edx, esp
mov dword [ebp - 0x10], esp
push edx
mov ecx, 0x472154
call fcn.00401110
mov dword [ebp - 4], 0
mov eax, dword [edi]
push ecx
sub eax, 0x10
mov dword [ebp - 0x1c], esp
mov esi, esp
call fcn.00426710
add eax, 0x10
mov dword [esi], eax
lea esi, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0041c720
mov esi, 1
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 0x14]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x413bda
push 0x80004005
call fcn.00401680
mov eax, dword [ebx + 0xac]
push ecx
push eax
call fcn.0044fbff
add esp, 8
test eax, eax
jne 0x413c46
mov ecx, dword [ebx + 0xa8]
call fcn.00448940
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
test eax, eax
jne 0x413c46
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x10], 0x1e
push 0x3e8
call ebx
mov eax, dword [edi]
push 0
push 0
push 0
push ecx
sub eax, 0x10
mov dword [ebp - 0x1c], esp
mov esi, esp
call fcn.00426710
add eax, 0x10
mov dword [esi], eax
call fcn.004197d0
test al, al
je 0x413c46
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
test eax, eax
jg 0x413c10
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413c6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
cmp dword [ebp - 0x18], eax
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418860
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x806]
push ecx
mov word [ebp - 0x808], ax
call fcn.00453220
mov edx, dword [ebp + 8]
xor eax, eax
push edx
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x810], eax
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.0044f980
push 0x44
lea ecx, [ebp - 0x860]
push 0
push ecx
call fcn.00453220
add esp, 0x24
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0x860]
push ecx
push 0
push 0
push 0x4000020
push 0
push 0
mov edx, 1
mov word [ebp - 0x830], dx
push 0
lea edx, [ebp - 0x808]
push edx
push 0
mov dword [ebp - 0x860], 0x44
mov dword [ebp - 0x834], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x418939
cmp byte [ebp + 0xc], 0
je 0x418939
mov eax, dword [ebp - 0x818]
push 0x2710
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [ebp - 0x818]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41894c
push eax
call esi
mov eax, dword [ebp - 0x814]
test eax, eax
je 0x418959
push eax
call esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418978
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret 8
Function at 0x4196b0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, eax
xor eax, eax
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
xor ecx, ecx
mov edi, 0x400
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044d7a2
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x419745
lea esp, [esp]
lea eax, [ebp - 4]
push eax
lea ecx, [edi*4]
push ecx
push ebx
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x4197b0
mov ecx, dword [ebp - 4]
shr ecx, 2
mov dword [ebp - 0x14], ecx
cmp ecx, edi
jb 0x419751
push ebx
call fcn.0044f328
add edi, 0x400
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044d7a2
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4196f0
pop edi
pop esi
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 8], eax
test ecx, ecx
je 0x4197b9
lea ebx, [ebx]
mov edx, dword [ebx + eax*4]
mov dword [ebp - 0x10], edx
test edx, edx
je 0x4197a6
mov edi, dword [esi + 4]
call fcn.0042cc40
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
test eax, eax
je 0x419781
mov edx, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov dword [esi + 0x10], ecx
mov dword [eax + 4], edi
mov dword [eax], 0
mov ecx, dword [esi + 4]
inc dword [esi + 8]
test ecx, ecx
je 0x41979b
mov dword [ecx], eax
jmp 0x41979d
mov dword [esi], eax
mov ecx, dword [ebp - 0x14]
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, ecx
jb 0x419760
jmp 0x4197b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x4197c6
push ebx
call fcn.0044f328
add esp, 4
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41c2e0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
mov eax, dword [0x4846a0]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
lea eax, [esp + 0x46c]
push 0x104
push eax
mov dword [esp + 0x18], ecx
call fcn.00450603
push 0x475d2c
lea ecx, [esp + 0x478]
push 0x104
push ecx
call fcn.0044f980
push edi
lea edx, [esp + 0x27c]
push 0x104
push edx
call fcn.00450603
push 0x472154
lea eax, [esp + 0x288]
push 0x104
push eax
call fcn.0044f980
add esp, 0x30
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x46c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41c4e7
lea eax, [esp + 0x260]
push eax
lea ecx, [esp + 0x46c]
push 0x104
push ecx
call fcn.00450603
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esp, 0xc
lea esp, [esp]
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x41c4d5
mov ecx, 0x4719d4
lea eax, [esp + 0x3c]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c3e6
test dx, dx
je 0x41c3e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c3e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41c3c0
xor eax, eax
jmp 0x41c3eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41c3a0
mov ecx, 0x475d24
lea eax, [esp + 0x3c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c41e
test dx, dx
je 0x41c41a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c41e
add eax, 4
add ecx, 4
test dx, dx
jne 0x41c3f8
xor eax, eax
jmp 0x41c423
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41c3a0
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x264]
push 0x104
push ecx
call fcn.0044f980
mov al, byte [esp + 0x1c]
add esp, 0xc
test al, 0x10
je 0x41c48b
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x260]
push edx
call fcn.0041c2e0
test eax, eax
je 0x41c4e0
lea eax, [esp + 0x260]
push eax
call ebx
lea ecx, [esp + 0x468]
push ecx
lea edx, [esp + 0x264]
push 0x104
push edx
call fcn.00450603
jmp 0x41c399
test al, 1
je 0x41c4a4
lea eax, [esp + 0x260]
push 0x80
push eax
call fcn.0044f845
add esp, 8
lea ecx, [esp + 0x260]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x41c4e0
lea edx, [esp + 0x468]
push edx
lea eax, [esp + 0x264]
push 0x104
push eax
call fcn.00450603
jmp 0x41c399
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x41c500
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call ebx
mov ecx, dword [esp + 0x674]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret 4
Function at 0x41c530
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push esi
lea eax, [ebp - 0x418]
push 0x104
push eax
mov edi, edx
xor ebx, ebx
call fcn.00450603
push 0x472154
lea ecx, [ebp - 0x418]
push 0x104
push ecx
call fcn.0044f980
push edi
lea edx, [ebp - 0x418]
push 0x104
push edx
call fcn.0044f980
push esi
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00450603
push 0x472154
lea ecx, [ebp - 0x210]
push 0x104
push ecx
call fcn.0044f980
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
add esp, 0x3c
lea ecx, [ecx]
test ebx, ebx
jne 0x41c5ff
lea edx, [ebp - 0x668]
push edx
lea eax, [ebp - 0x418]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41c70a
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x418]
push 0x104
push edx
call fcn.00450603
add esp, 0xc
jmp 0x41c693
lea eax, [ebp - 0x668]
push eax
push ebx
call edi
test eax, eax
je 0x41c6fd
mov ecx, 0x4719d4
lea eax, [ebp - 0x63c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c646
test dx, dx
je 0x41c642
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c646
add eax, 4
add ecx, 4
test dx, dx
jne 0x41c620
xor eax, eax
jmp 0x41c64b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41c5c0
mov ecx, 0x475d24
lea eax, [ebp - 0x63c]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c686
test dx, dx
je 0x41c682
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c686
add eax, 4
add ecx, 4
test dx, dx
jne 0x41c660
xor eax, eax
jmp 0x41c68b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41c5c0
lea ecx, [ebp - 0x63c]
push ecx
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.0044f980
add esp, 0xc
test byte [ebp - 0x668], 0x10
je 0x41c5c0
lea eax, [ebp - 0x210]
push eax
mov ecx, 0x487980
call fcn.0041c2e0
test eax, eax
je 0x41c703
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea edx, [ebp - 0x418]
push edx
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00450603
add esp, 0xc
jmp 0x41c5c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret
Function at 0x41d630
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
push edi
xor edi, edi
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], edi
jb 0x41d646
mov eax, dword [esi]
push edi
push 0x80
push 3
push edi
push 1
mov byte [eax], 0
mov eax, dword [ebp + 8]
push SysReAllocStringLen
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41d6e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x41d6cf
mov eax, dword [esi + 0x10]
cmp edi, eax
ja 0x41d68e
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.0042f950
jmp 0x41d69c
mov ecx, edi
sub ecx, eax
push 0
push ecx
mov ecx, esi
call fcn.00426780
cmp dword [esi + 0x14], 0x10
jb 0x41d6a4
mov esi, dword [esi]
push 0
lea edx, [ebp + 8]
push edx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
cmp dword [ebp + 8], edi
push ebx
sete al
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41d6f0
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
push 0x80
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41d751
mov ecx, dword [ebp + 8]
push ebx
lea eax, [ebp + 8]
push eax
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
cmp dword [ebp + 8], edi
push esi
sete dl
mov edi, edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
Function at 0x41da50
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46966b
mov eax, dword fs:[0]
push eax
sub esp, 0xe80
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [eax + 0x160]
xor edi, edi
mov dword [ebp - 0xe88], eax
cmp dword [ecx - 0xc], edi
jle 0x41dc61
mov eax, ecx
lea esi, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x41daa0
sub eax, esi
sar eax, 1
mov esi, eax
cmp esi, 0x200
jae 0x41dc61
push esi
push ecx
lea eax, [ebp - 0x414]
push 0x200
push eax
call fcn.0044f9f5
push 0x24c
lea edx, [ebp - 0xe80]
xor ecx, ecx
push edi
push edx
mov word [ebp + esi*2 - 0x414], cx
mov dword [ebp - 0xe84], edi
call fcn.00453220
push 2
push 0x476154
lea eax, [ebp - 0x414]
push 0x200
push eax
call fcn.0044f8aa
add esp, 0x2c
lea ecx, [ebp - 0xe84]
push ecx
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xe8c], eax
cmp eax, 0xffffffff
je 0x41dc61
test byte [ebp - 0xe84], 0x10
je 0x41dc3e
mov eax, dword [ebp - 0xe88]
mov edx, dword [eax + 0x160]
cmp dword [edx - 0xc], edi
jle 0x41db8c
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41db53
sub eax, esi
sar eax, 1
mov esi, eax
cmp esi, 0x200
jae 0x41db8c
push esi
push edx
lea ecx, [ebp - 0x814]
push 0x200
push ecx
call fcn.0044f9f5
add esp, 0x10
xor edx, edx
mov word [ebp + esi*2 - 0x814], dx
lea eax, [ebp - 0xe58]
push eax
lea ecx, [ebp - 0x814]
push 0x200
push ecx
call fcn.0044f980
add esp, 0xc
push edi
lea edx, [ebp - 0xc14]
push edx
push 0x200
push edi
push str.mscorlib.dll
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x41dc3e
xor ecx, ecx
lea eax, [ebp - 0xe58]
mov dword [ebp - 0xc1c], 7
mov dword [ebp - 0xc20], edi
mov word [ebp - 0xc30], cx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41dbf0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0xe58]
lea ecx, [ebp - 0xc30]
call fcn.00430290
lea ecx, [ebp - 0xc30]
mov dword [ebp - 4], edi
call fcn.00424210
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xc1c], 8
jb 0x41dc3e
mov edx, dword [ebp - 0xc30]
push edx
call fcn.0044ebcc
add esp, 4
mov esi, dword [ebp - 0xe8c]
lea eax, [ebp - 0xe84]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41db30
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret 4
Function at 0x41dca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov ecx, 0x10
mov esi, str.SOFTWAREMicrosoft.NETFramework
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x50]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x48]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 0x49], 0
movsw word es:[edi], word [esi]
mov dword [ebp - 0x50], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41dd54
lea edx, [ebp - 0x54]
push edx
push ebx
push eax
push eax
mov eax, dword [ebp - 0x50]
push str.InstallRoot
mov esi, 0x200
push eax
mov dword [ebp - 0x54], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41dd34
cmp dword [ebp - 0x54], esi
mov ecx, dword [ebp - 0x50]
push ecx
setbe bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x50]
mov bl, byte [ebp - 0x49]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x49]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044ebd7
mov esp, ebp
pop ebp
ret
Function at 0x426830
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466b8b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4846a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0044d7ad
push 4
mov dword [ebp - 4], 0
call fcn.0044ef1f
mov edi, eax
add esp, 4
test edi, edi
je 0x4268b0
call fcn.0044db5b
mov dword [edi], eax
call fcn.0044d91a
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0044d84f
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4268a6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0044d877
jmp 0x4268b2
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 [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x426920
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466b5b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4846a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0044d7ad
push 4
mov dword [ebp - 4], 0
call fcn.0044ef1f
mov edi, eax
add esp, 4
test edi, edi
je 0x42699c
call fcn.0044db5b
mov dword [edi], eax
call fcn.0044d91a
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0044d84f
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x426992
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0044d877
jmp 0x42699e
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 [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4