joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ede0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x2001f
xor ebx, ebx
push esi
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.00412570
test eax, eax
je 0x46eefa
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x46ee76
cmp dword [ebx], 0
je 0x46ee66
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x46ee36
mov eax, 1
jmp 0x46ee93
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46ee2f
mov ecx, dword [ebx]
push 0
push ecx
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 4]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push esi
push edi
call eax
jmp 0x46ee93
cmp dword [ebx + 4], 0
je 0x46ee2f
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 4]
push eax
jmp 0x46ee7e
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x46eee3
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x46eea5
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 4]
test eax, eax
jne 0x46eee6
xor ebx, ebx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push ebx
push edx
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
cmp edi, ebx
je 0x46eed9
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
lea eax, [esi + 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x46eef1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x14]
jmp 0x46eeae
Function at 0x46ef00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x2001f
xor ebx, ebx
push esi
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.00412570
test eax, eax
je 0x46eff3
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x46ef96
cmp dword [ebx], 0
je 0x46ef86
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x46ef56
mov eax, 1
jmp 0x46efb3
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46ef4f
mov ecx, dword [ebx]
push 0
push ecx
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 4]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push esi
push edi
call eax
jmp 0x46efb3
cmp dword [ebx + 4], 0
je 0x46ef4f
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 4]
push eax
jmp 0x46ef9e
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x46efdc
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x46efc5
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 4]
test eax, eax
jne 0x46efdf
xor ebx, ebx
mov edi, dword [ebp + 0x14]
cmp edi, ebx
jne 0x46eff8
mov eax, 0xd
jmp 0x46f013
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x46efea
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x14]
jmp 0x46efce
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 0x10]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push ebx
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edx, edx
cmp eax, ebx
sete dl
mov edi, edx
cmp esi, ebx
je 0x46f027
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46f1b0
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x41c], eax
call fcn.0046e9b0
test eax, eax
je 0x46f341
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov word [ebp - 0x20c], cx
call sub.MSVCR100.dll_memset
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x412]
push ecx
mov word [ebp - 0x414], ax
call sub.MSVCR100.dll_memset
add esp, 0x18
push 0x104
lea edx, [ebp - 0x20c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x20c]
add eax, 0xfffffffe
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x46f240
mov ecx, dword [str.NTUSER.DAT]
mov edx, dword [0x4dfcd8]
mov dword [eax], ecx
mov ecx, dword [0x4dfcdc]
mov dword [eax + 4], edx
mov edx, dword [0x4dfce0]
mov dword [eax + 8], ecx
mov ecx, dword [0x4dfce4]
mov dword [eax + 0xc], edx
mov edx, dword [0x4dfce8]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
lea edx, [ebp - 0x414]
mov eax, edi
sub edx, edi
jmp 0x46f290
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x46f290
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46f341
mov esi, dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
push edi
push 0x80000003
call esi
lea ecx, [ebp - 0x20c]
push ecx
push edi
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
jne 0x46f341
lea edx, [ebp - 0x418]
push edx
push 0xf003f
push eax
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x414]
push eax
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46f32c
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x46f315
mov ecx, dword [ebp - 0x418]
push ecx
call eax
jmp 0x46f32c
mov edx, dword [ebp - 0x41c]
mov eax, dword [ebp - 0x418]
push ebx
push edx
push eax
call fcn.0046f140
add esp, 0xc
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 0x80000003
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
Function at 0x472780
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x374
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [0x561344]
test eax, eax
jne 0x4727fb
push 0x110
push eax
lea edx, [ebp - 0x31c]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x320]
push eax
mov dword [ebp - 0x320], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x314]
mov dword [0x561344], eax
cmp eax, 0x3fab
jb 0x472815
push str.explorer.exe_ms_settings:defaultapps
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
jmp 0x472826
push 0x4e0030
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.MSVCR100.dll_wcscat_s]
add esp, 0xc
push 0x40
lea eax, [ebp - 0x370]
push 0
push eax
mov dword [ebp - 0x374], 0x44
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x330]
push ecx
lea edx, [ebp - 0x374]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x330], eax
mov dword [ebp - 0x32c], eax
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x324], eax
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4728a7
mov ecx, dword [ebp - 0x32c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x330]
push edx
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret

Function at 0x472990
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [ebp + 8], 0
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 4], 0
jne 0x4729da
cmp dword [eax + 0x14], 8
jb 0x4729ad
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 4]
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x472a1d
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x14], 8
jb 0x4729cd
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x472a1d
cmp dword [eax + 0x14], 8
jb 0x4729e2
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 4]
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, eax
test esi, esi
jne 0x472a1d
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x14], 8
jb 0x472a02
mov eax, dword [eax]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp - 4]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x472a2b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x473f30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd4b8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5603e8]
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 edi, dword [ebp + 0xc]
xor eax, eax
mov esi, ecx
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
push 0x2001f
push eax
mov dword [ebp - 4], eax
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x54]
call fcn.00412570
mov ebx, eax
test ebx, ebx
jne 0x473f9c
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x473f93
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x54]
call fcn.004194e0
cmp byte [ebp + 8], 0
je 0x4740c4
test edi, edi
je 0x4740c4
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x473fb9
mov eax, dword [eax]
mov ecx, dword [esi]
push 0
push 0
push 0x2001f
push 0
push 0
push eax
push ecx
lea ecx, [ebp - 0x54]
call fcn.004174b0
mov ebx, eax
test ebx, ebx
jne 0x4740c6
cmp dword [edi + 0x14], 8
jb 0x473fe6
mov esi, dword [edi]
jmp 0x473fe8
mov esi, edi
mov edi, dword [ebp - 0x54]
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x474013
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push esi
push 1
push 0
push str.FriendlyTypeName
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [ebp - 0x58]
add esi, 0x1c
cmp dword [esi + 0x14], 8
jb 0x474021
mov esi, dword [esi]
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x474049
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push str.InfoTip
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x4c79ac
lea ecx, [ebp - 0x48]
call fcn.00405cd0
push 0x4da834
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00405cd0
mov ecx, dword [ebp - 0x58]
add ecx, 0x38
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x2c]
push eax
push edi
push ecx
mov byte [ebp - 4], 2
call fcn.00473980
mov esi, 8
add esp, 0x14
cmp dword [ebp - 0x18], esi
jb 0x47409d
mov edx, dword [ebp - 0x2c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x34], esi
jb 0x4740d7
mov ecx, dword [ebp - 0x48]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x4740d7
test ebx, ebx
mov edi, dword [ebp - 0x54]
jle 0x4740d7
and ebx, 0xffff
or ebx, 0x80070000
test edi, edi
je 0x4740e2
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
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.004b12f6
mov esp, ebp
pop ebp
ret 8
Function at 0x4765c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 4], eax
mov eax, 1
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
test byte [0x56145c], al
jne 0x476611
or dword [0x56145c], eax
push 0x110
push 0
push 0x56134c
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x561348
mov dword [0x561348], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x56134c], 6
jb 0x476634
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
push ecx
push ebx
push edi
push edx
mov ecx, esi
call fcn.004761f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 8]
push edi
push eax
mov ecx, esi
call fcn.004751b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4766b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
xor edi, edi
cmp dword [0x5614dc], edi
jne 0x476876
mov eax, dword [0x5614d8]
cmp eax, edi
jne 0x476878
xor eax, eax
mov dword [0x5614b4], eax
mov dword [0x5614b8], eax
mov dword [0x5614bc], eax
mov dword [0x5614c0], eax
mov dword [0x5614c4], eax
mov dword [0x5614c8], eax
mov dword [0x5614cc], eax
mov dword [0x5614d0], eax
mov dword [0x5614d4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
push edi
push str.dbghelp.dll
mov dword [0x5614b4], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x5614b8], eax
cmp eax, edi
je 0x476837
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ImagehlpApiVersionEx
push eax
call esi
mov dword [0x5614bc], eax
mov eax, dword [0x5614b8]
push str.SymInitialize
push eax
call esi
mov ecx, dword [0x5614b8]
push str.SymSetOptions
push ecx
mov dword [0x5614c0], eax
call esi
mov edx, dword [0x5614b8]
push str.SymGetOptions
push edx
mov dword [0x5614c4], eax
call esi
mov dword [0x5614c8], eax
mov eax, dword [0x5614b8]
push str.SymLoadModule64
push eax
call esi
mov ecx, dword [0x5614b8]
push str.SymGetModuleInfo64
push ecx
mov dword [0x5614cc], eax
call esi
mov edx, dword [0x5614b8]
push str.SymFromName
push edx
mov dword [0x5614d0], eax
call esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
mov ecx, 0xb
mov word [ebp - 8], cx
mov ecx, dword [0x5614bc]
mov dword [0x5614d4], eax
pop esi
cmp ecx, edi
je 0x476832
cmp dword [0x5614c0], edi
je 0x476832
cmp dword [0x5614cc], edi
je 0x476832
cmp dword [0x5614d0], edi
je 0x476832
cmp eax, edi
je 0x476832
lea edx, [ebp - 8]
push edx
call ecx
cmp word [ebp - 8], 0xb
jb 0x476832
mov eax, dword [0x5614b4]
push edi
push edi
push eax
call dword [0x5614c0]
test eax, eax
je 0x476832
mov eax, dword [0x5614c8]
cmp eax, edi
je 0x476823
cmp dword [0x5614c4], edi
je 0x476823
call eax
and eax, 0xfffffffc
or eax, 0x2704
push eax
call dword [0x5614c4]
mov eax, 0x5614b4
mov dword [0x5614d8], eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5614b8]
mov dword [0x5614dc], 1
cmp eax, edi
je 0x47684c
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x5614bc], edi
mov dword [0x5614c0], edi
mov dword [0x5614c4], edi
mov dword [0x5614c8], edi
mov dword [0x5614cc], edi
mov dword [0x5614d0], edi
mov dword [0x5614d4], edi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x477010
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x546578
push 0x4b160a
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5603e8]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov edx, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], dx
jne 0x4770b2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4770b2
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x4770b2
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x4770b2
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x477270
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
lea esi, [eax - 0x10000]
movzx eax, si
push edi
test eax, eax
je 0x477288
sub esi, eax
cmp esi, dword [ebp + 8]
jbe 0x477315
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea ecx, [ecx]
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x4772b4
mov esi, 0x4fff0000
jmp 0x477310
xor eax, eax
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call ebx
test eax, eax
je 0x477315
mov eax, 0x10000
cmp dword [ebp - 0xc], eax
jne 0x4772fe
cmp dword [ebp - 0x10], eax
jb 0x4772fe
push 0x40
push 0x3000
push eax
push esi
call edi
test eax, eax
jne 0x477317
sub esi, 0x10000
jmp 0x477310
mov esi, dword [ebp - 0x18]
add esi, 0xffff0000
movzx eax, si
test eax, eax
je 0x477310
sub esi, eax
cmp esi, dword [ebp + 8]
ja 0x4772a0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x477320
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebx
push esi
mov esi, eax
push edi
lea edi, [esi - 0x7ff80000]
cmp esi, 0x7ff80000
ja 0x477338
mov edi, 0x10000
lea ebx, [esi + 0x7ff80000]
cmp esi, 0x80000000
jb 0x47734b
mov ebx, 0xfff80000
mov eax, dword [0x5614e4]
mov edx, dword [0x5614e0]
test eax, eax
jne 0x477365
test edx, edx
je 0x477378
mov eax, edx
mov dword [0x5614e4], eax
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x477378
cmp ecx, edi
jb 0x477378
cmp ecx, ebx
jbe 0x477477
mov eax, edx
mov dword [0x5614e4], eax
test edx, edx
je 0x4773a6
test eax, eax
je 0x47739a
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x47739a
cmp ecx, edi
jb 0x47739a
cmp ecx, ebx
jbe 0x477472
mov eax, dword [eax + 4]
test eax, eax
jne 0x477387
mov dword [0x5614e4], eax
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, 0x40000000
jbe 0x4773d0
lea eax, [esi - 0x40000000]
push edi
call fcn.00477270
add esp, 4
test eax, eax
jne 0x477439
cmp esi, 0x40000000
jae 0x4773e5
push ebx
lea eax, [esi + 0x40000000]
call fcn.004771b0
add esp, 4
test eax, eax
jne 0x477439
cmp esi, 0x40000000
jbe 0x477406
push esi
lea eax, [esi - 0x40000000]
call fcn.004771b0
add esp, 4
test eax, eax
jne 0x477439
cmp esi, 0x40000000
jae 0x47741b
lea eax, [esi + 0x40000000]
push esi
call fcn.00477270
add esp, 4
test eax, eax
jne 0x477439
push edi
mov eax, esi
call fcn.00477270
add esp, 4
test eax, eax
jne 0x477439
push ebx
mov eax, esi
call fcn.004771b0
add esp, 4
test eax, eax
je 0x47749e
xor edx, edx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov ecx, dword [0x5614e0]
mov dword [eax + 4], ecx
mov dword [0x5614e4], eax
mov dword [0x5614e0], eax
lea ecx, [eax + 0xffa8]
mov esi, 0x38b
mov dword [ecx + 0x40], edx
mov edx, ecx
sub ecx, 0x48
dec esi
jne 0x477462
mov dword [eax + 8], edx
jmp 0x477477
mov dword [0x5614e4], eax
mov esi, dword [eax + 8]
cmp esi, edi
jb 0x47749e
cmp esi, ebx
ja 0x47749e
mov edx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [eax + 8], edx
call sub.MSVCR100.dll_memset
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x4774e0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov eax, dword [0x5614e0]
push ebx
mov ebx, 0x5614e0
test eax, eax
je 0x47754b
push esi
push edi
cmp dword [eax], 0x52727464
jne 0x477540
lea edi, [eax + 0x10000]
xor edx, edx
lea esi, [eax + 0x88]
mov ecx, dword [esi]
test ecx, ecx
je 0x477515
cmp ecx, eax
jb 0x477540
cmp ecx, edi
jae 0x477540
inc edx
add esi, 0x48
cmp edx, 0x38d
jb 0x477507
mov ecx, dword [eax + 4]
push 0x8000
push 0
push eax
mov dword [ebx], ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [0x5614e4], 0
jmp 0x477543
lea ebx, [eax + 4]
mov eax, dword [ebx]
test eax, eax
jne 0x4774f1
pop edi
pop esi
pop ebx
ret
Function at 0x477550
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [0x5614f0], ebx
je 0x477569
mov eax, 0x10dd
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x5614f0
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x47755f
push esi
mov esi, dword [0x5614e0]
mov dword [0x561500], ebx
mov dword [0x5614fc], ebx
mov dword [0x5614f4], ebx
mov dword [0x5614f8], ebx
cmp esi, ebx
je 0x4775c6
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ebx, [ebx]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x4775b0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4775d0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x5614f0], eax
je 0x4775eb
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret
push ebx
push esi
mov esi, dword [0x561500]
push edi
test esi, esi
je 0x47765d
jmp 0x477600
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 4]
push eax
movzx eax, byte [edx + 0x36]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], 0
jne 0x47764c
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x47764c
push 0x48
push 0
mov edi, ebx
push ebx
and edi, 0xffff0000
call sub.MSVCR100.dll_memset
mov edx, dword [edi + 8]
mov dword [ebx + 0x40], edx
mov dword [edi + 8], ebx
add esp, 0xc
mov dword [esi + 0x10], 0
mov edi, dword [esi]
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, edi
test edi, edi
jne 0x477600
mov dword [0x561500], 0
call fcn.00477160
mov esi, dword [0x5614fc]
test esi, esi
je 0x477697
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
lea esp, [esp]
mov eax, dword [esi + 4]
push eax
call ebx
mov edi, dword [esi]
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, edi
test edi, edi
jne 0x477680
pop edi
xor eax, eax
pop esi
mov dword [0x5614fc], eax
mov dword [0x5614f0], eax
pop ebx
mov esp, ebp
pop ebp
ret