joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f800
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x41f832
jl 0x41f825
test ecx, ecx
jne 0x41f832
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x41f8f2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00421c40
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x41f89e
jg 0x41f85d
test esi, esi
je 0x41f89e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x41f875
mov eax, dword [esp + 0x10]
jl 0x41f86f
cmp eax, esi
jae 0x41f875
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0048d4d0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x41f8bf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x41f8db
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x41f844
jl 0x41f8db
test ecx, ecx
jne 0x41f844
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x41f931
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x41f931
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.0048d4d0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x41f9a0
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x41f957
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x41f989
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00496d3b
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x41f9b4
cmp edi, eax
ja 0x41f965
test ecx, ecx
je 0x41f9a0
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00496d3b
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x420800
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b26a0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e143c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0048b843
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0048a28d
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
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 0x42dc50
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov ecx, dword [ebp + 8]
call fcn.00402820
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x42dc84
xor al, al
jmp 0x42dcbe
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x42dcb2
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x42dcbe
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x42de90
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00402820
push eax
mov ecx, dword [ebp + 8]
call fcn.00402820
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x42deb8
mov al, 1
jmp 0x42def4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00402820
push eax
mov ecx, dword [ebp + 8]
call fcn.00402820
push eax
push str.move_file_from____s___to____s___flag___d_failed__error___d.
push 0xfa
push str.utility::ufile::moveFile
call fcn.00429810
add esp, 0x1c
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x42df00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402820
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x42df1b
mov al, 1
jmp 0x42df4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402820
push eax
push 0x4cb710
push 0x15f
push str.utility::ufile::removeFile
call fcn.00429810
add esp, 0x14
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x42df50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4e143c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x22c], 0
push 0x20a
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.0048da50
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0x228]
call fcn.00402960
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402910
mov ecx, dword [ebp - 0x22c]
or ecx, 1
mov dword [ebp - 0x22c], ecx
lea ecx, [ebp - 0x228]
call fcn.004028b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b62c
mov esp, ebp
pop ebp
ret

Function at 0x42e040
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov ecx, dword [ebp + 8]
call fcn.00402820
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0xffffffff
jne 0x42e07b
xor al, al
jmp 0x42e0a9
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x42e09e
mov ecx, dword [ebp - 4]
call fcn.0042e010
xor al, al
jmp 0x42e0a9
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx + 4], eax
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x42e0b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42e0e7
xor eax, eax
jmp 0x42e0ea
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x42e1a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42e1df
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0xc]
jne 0x42e1df
mov al, 1
jmp 0x42e1e1
xor al, al
mov esp, ebp
pop ebp
ret 8
Function at 0x42ee20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4e143c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
push 0
lea eax, [ebp - 0x120]
push eax
call fcn.0048da50
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x42ee7b
mov dword [ebp - 0x120], 0x114
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jb 0x42ee88
mov al, 1
jmp 0x42ee8a
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b62c
mov esp, ebp
pop ebp
ret
Function at 0x42f4e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x42f4f7
mov dword [ebp - 8], 1
jmp 0x42f4fe
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 8]
call fcn.00402820
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42f53f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x42f53f
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x42f53f
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x42f542
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x42f5f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.0048da50
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x440
mov dword [ebp - 0x30], 0x4cc154
mov ecx, dword [ebp + 8]
call fcn.00402820
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], 5
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x42f65a
push 5
push 0
mov ecx, dword [ebp + 8]
call fcn.00402820
push eax
push str.iexplore.exe
push 0x4cc0e4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esp, ebp
pop ebp
ret

Function at 0x42f660
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4e143c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], 0x4cc688
mov dword [ebp - 0x28], 0x20
mov eax, dword [ebp - 0x28]
push eax
call fcn.0048bc0f
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x34], 0x20019
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x34]
push eax
push 0
mov ecx, dword [ebp - 0x38]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42f714
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x3c]
push ecx
push 0
push str.CurrentBuild
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42f714
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402960
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402910
mov edx, dword [ebp - 0x20]
or edx, 1
mov dword [ebp - 0x20], edx
lea ecx, [ebp - 0x1c]
call fcn.004028b0
mov eax, dword [ebp + 8]
jmp 0x42f750
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x40], ecx
push 1
mov edx, dword [ebp - 0x40]
push edx
call fcn.0048bac4
add esp, 8
call fcn.00496412
push 0x4cc79c
mov ecx, dword [ebp + 8]
call fcn.00402960
mov eax, dword [ebp - 0x20]
or eax, 1
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b62c
mov esp, ebp
pop ebp
ret
Function at 0x42f8a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x14]
push eax
movzx ecx, byte [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00402820
push eax
mov ecx, dword [ebp + 8]
call fcn.00402820
push eax
push str.shell_filename____s___param____s___runas___d__show___d
push 0xc
push 0x4ccbb4
call fcn.00429810
add esp, 0x1c
call fcn.0042ee20
movzx edx, al
test edx, edx
je 0x42f8f3
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x42f8f3
mov dword [ebp - 8], 0x4ccbcc
jmp 0x42f8fa
mov dword [ebp - 8], str.open
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
je 0x42f90b
mov dword [ebp - 4], 5
jmp 0x42f912
mov dword [ebp - 4], 0
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00402820
push eax
mov ecx, dword [ebp + 8]
call fcn.00402820
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.shellEx_ret_._lastError___d
push 0x18
push 0x4ccc50
call fcn.00429810
add esp, 0x10
cmp dword [ebp - 0x10], 0x20
jg 0x42f97f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4ccc68
push 0x1b
push str.utility::process::shell
call fcn.00429810
add esp, 0x10
xor al, al
jmp 0x42f981
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x42faa0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b376d
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x4e143c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x88], 0
movzx eax, byte [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00402820
push eax
mov ecx, dword [ebp + 8]
call fcn.00402820
push eax
push str.createProcess_filename____s___param____s___show___d
push 0xf1
push 0x4cd498
call fcn.00429810
add esp, 0x18
mov ecx, dword [ebp + 8]
push ecx
mov edx, 0x4cd444
lea ecx, [ebp - 0x40]
call fcn.0040c5f0
add esp, 4
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x64], edx
mov dword [ebp - 4], 0
push 0x4cd4b4
mov edx, dword [ebp - 0x64]
lea ecx, [ebp - 0x28]
call fcn.0040c6c0
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004028b0
mov ecx, dword [ebp + 0xc]
call fcn.00402800
movzx eax, al
test eax, eax
jne 0x42fb8e
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, 0x4cd494
lea ecx, [ebp - 0x58]
call fcn.0040c5f0
add esp, 4
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402860
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.004028b0
push 0x44
push 0
lea ecx, [ebp - 0xcc]
push ecx
call fcn.0048da50
add esp, 0xc
mov dword [ebp - 0xcc], 0x44
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xa0], 1
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x42fbe4
mov dword [ebp - 0x5c], 5
jmp 0x42fbeb
mov dword [ebp - 0x5c], 0
mov ax, word [ebp - 0x5c]
mov word [ebp - 0x9c], ax
xor ecx, ecx
mov word [ebp - 0x9a], cx
mov dword [ebp - 0x98], 0
xor edx, edx
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x78], edx
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0xcc]
push ecx
push 0
push 0
push 0x10
push 0
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.00402820
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x42fc82
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.createProcess_failed____lastError___d
push 0x104
push str.utility::process::create
call fcn.00429810
add esp, 0x10
mov dword [ebp - 0x70], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004028b0
mov eax, dword [ebp - 0x70]
jmp 0x42fcb5
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], 0
je 0x42fc9a
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x7c]
mov dword [eax], ecx
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x74], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004028b0
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b62c
mov esp, ebp
pop ebp
ret
Function at 0x42ff20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
jne 0x42ff5d
mov eax, dword [ebp - 4]
add eax, 4
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x4300e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x42ff6f
mov dword [ebp - 8], 1
jmp 0x42ff76
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x430710
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b37f0
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x4e143c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x42c], ecx
mov eax, dword [ebp - 0x42c]
cmp dword [eax], 0
jne 0x4307b2
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x428]
push edx
call fcn.0042bf60
add esp, 8
mov dword [ebp - 0x434], eax
mov eax, dword [ebp - 0x434]
mov dword [ebp - 0x438], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x438]
call fcn.00402820
push eax
push 0x4ce2ac
push 0x3e
push str.utility::RegKey::RegRead
call fcn.00429810
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.004028b0
or eax, 0xffffffff
jmp 0x430834
mov ecx, dword [ebp + 8]
call fcn.00402800
mov dword [ebp - 0x43c], 0x400
lea edx, [ebp - 0x43c]
push edx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x440]
push ecx
push 0
mov ecx, dword [ebp + 8]
call fcn.00403eb0
push eax
mov edx, dword [ebp - 0x42c]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
jne 0x430813
lea ecx, [ebp - 0x410]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00421250
jmp 0x43082e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4ce260
push 0x51
push 0x4ce290
call fcn.00429810
add esp, 0x10
mov eax, dword [ebp - 0x430]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b62c
mov esp, ebp
pop ebp
ret 8

Function at 0x430890
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x4308a4
xor al, al
jmp 0x4308e8
mov ecx, dword [ebp - 4]
mov byte [ecx + 0xc], 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
push 0
push 0
mov edx, dword [ebp - 4]
push edx
push 0x4309e0
push 0
push 0
call fcn.004981b4
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x4308f0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x430945
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x102
jne 0x43092e
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x430966
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
mov edx, dword [edx]
mov ecx, dword [eax]
mov eax, dword [edx]
call eax
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
je 0x430986
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0
mov esp, ebp
pop ebp
ret 4

Function at 0x432ce0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3c2d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4e143c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00402e80
add esp, 4
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00433050
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.004330d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00432f70
mov dword [ebp - 0x20], 0x433110
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0
lea ecx, [ebp - 0x14]
call fcn.00432f60
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0
push 0
call fcn.004981b4
add esp, 0x18
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x432d7f
lea ecx, [ebp - 0x14]
call fcn.00432f30
jmp 0x432d90
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
push 6
call fcn.0048a661
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00432f70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4