joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442df0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x482f53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004767e2
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0047be7b
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047d397
test eax, eax
je 0x442f0c
mov ecx, dword [esp + 0x3c]
call fcn.0047bea8
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x442ed0
push edi
mov ecx, esi
call fcn.00479511
mov ecx, esi
call fcn.00443070
cmp dword [esp + 0x38], 1
jne 0x442f05
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0047964c
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x445920
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x445953
push esi
call fcn.00448a30
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44594c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4459d9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4459c2
mov eax, dword [esi + 8]
test eax, eax
je 0x445977
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4459be
cmp eax, 2
je 0x4459c2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44596a
cmp eax, 3
je 0x44599d
cmp eax, 1
jne 0x44596a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44596a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44596a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00445a00
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4459e8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00445a00
add esp, 4
pop esi
ret
Function at 0x4555a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x4556c1
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x4556a5
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x4555f7
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x4555d5
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x456109
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x456160
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x456160
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x456160
xor eax, eax
inc eax
jmp 0x456162
xor eax, eax
leave
ret 0x10
Function at 0x45618b
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x4561f9
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x66fbbc
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4561f0
cmp dword [ebp - 0xc], 4
jne 0x4561f0
cmp dword [ebp - 0x10], edi
je 0x4561f0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x68fc28], edi
xor eax, eax
jmp 0x456238
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x68fc28], edi
jge 0x456233
lea eax, [ebp - 0x34]
push eax
mov dword [0x68fc28], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x456233
cmp word [ebp - 0x14], 5
jb 0x456233
call fcn.00456166
test eax, eax
je 0x456233
emms
mov dword [0x68fc28], 1
mov eax, dword [0x68fc28]
pop edi
leave
ret

Function at 0x4775d8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x477610
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047568f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00475667
jmp 0x47761c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x478cce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x478d10
call fcn.0047e77d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x478d10
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x478d07
xor eax, eax
jmp 0x478d18
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00478d1e
pop edi
pop esi
pop ebx
ret 4

Function at 0x47ecad
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47ecdb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47ecf9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047ec13
jmp 0x47ecf9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47ecf9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047ec13
test edi, edi
mov eax, edi
jne 0x47ece3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401a80
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x406480
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4064a1
mov eax, 0xff
call fcn.00401a80
xor byte [esi], al
inc esi
dec ebx
jne 0x406491
pop esi
pop ebx
ret

Function at 0x417495
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x438258
cmp edx, dword [eax]
je 0x4174b7
add eax, 8
inc ecx
cmp eax, 0x4382e8
jl 0x4174a8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x438258]
jne 0x4175e5
mov eax, dword [0x4469ac]
cmp eax, 1
je 0x4175bf
test eax, eax
jne 0x4174e8
cmp dword [0x437a7c], 1
je 0x4175bf
cmp edx, 0xfc
je 0x4175e5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41751f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00419a20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00415cd0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x417562
lea eax, [ebp - 0x1a4]
push eax
call fcn.00415cd0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x421364
push edi
call fcn.004198a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00419a20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00419a30
lea eax, [ebp - 0xa0]
push 0x42534c
push eax
call fcn.00419a30
push dword [esi + 0x43825c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00419a30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041c0fd
add esp, 0x2c
pop edi
jmp 0x4175e5
lea eax, [ebp + 8]
lea esi, [esi + 0x43825c]
push 0
push eax
push dword [esi]
call fcn.00415cd0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40104e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x43c628], 0
jne 0x40106f
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x18]
mov dword [0x43c628], eax
mov eax, dword [0x43c62c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esi], eax
mov eax, dword [ebp + 8]
push edi
mov edi, str.Kernel32.dll
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [0x43c62c], esi
mov dword [esi + 4], edi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 1
call ebx
test eax, eax
jne 0x4010b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call fcn.004012ff
mov eax, dword [esi + 8]
push edi
mov dword [ebp + 8], eax
call ebx
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, dword [0x43c628]
pop edi
mov dword [esi + 0xc], eax
pop ebx
jbe 0x4010dd
cmp byte [eax], 0x68
jne 0x4010dd
mov eax, dword [eax + 1]
mov dword [esi + 0xc], eax
push dword [esi + 0x14]
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 4]
call fcn.00401129
mov eax, esi
leave
ret 8

Function at 0x401129
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x454
mov eax, dword [0x425054]
xor eax, esp
mov dword [esp + 0x450], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
cmp dword [ebp + 0x14], esi
push edi
mov edi, dword [ebp + 8]
je 0x40116f
push 0x1c
lea eax, [esp + 0x18]
push eax
push fcn.00401129
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x424
mov dword [esp + 0x14], eax
lea eax, [esp + 0x38]
push 0
push eax
mov dword [esp + 0x3c], 0x428
call fcn.0040c7b0
add esp, 0xc
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x14]
call sub.KERNEL32.dll_Module32FirstW
jmp 0x4011cd
mov eax, dword [esp + 0x4c]
cmp eax, esi
je 0x4011bf
mov ecx, dword [ebp + 0xc]
push ebx
push edi
call fcn.004011f9
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x14]
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x4011ad
cmp dword [esp + 0x10], 0xffffffff
je 0x4011e2
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x45c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c4ff
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402741
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
xor ebp, ebp
push ebp
push ebp
mov ebx, 0x52c
push ebx
push dword [0x43c640]
call edi
push ebp
push 0x7d0
push 2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [esi + 0xd0], ebp
jne 0x40278b
push ebp
push 6
push ebx
push dword [0x43c640]
call edi
push ebp
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebp
push ebp
push dword [0x43c640]
push 0x402935
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4084f9
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0xbc]
sub esp, 0x13c
mov eax, dword [0x425054]
xor eax, ebp
mov dword [ebp + 0xb8], eax
xor eax, eax
cmp dword [0x43c648], eax
jne 0x4085d7
push 0x114
push eax
mov dword [0x43c648], eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040c7b0
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x58], 6
jae 0x40856d
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x80], 9
je 0x40856d
cmp word [ebp - 0x80], 6
jne 0x40856d
call fcn.0040b000
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call fcn.0040b410
push 0x4085ec
push 0x43c714
call fcn.0040b490
push 0x408689
push 0x43c718
call fcn.0040b490
push 0x408726
push 0x43c71c
call fcn.0040b490
push 0x40880d
push 0x43c72c
call fcn.0040b490
push 0x40883f
push 0x43c728
call fcn.0040b490
push 0x40886f
push 0x426330
call fcn.0040b490
call fcn.0040b120
mov ecx, dword [ebp + 0xb8]
xor ecx, ebp
call fcn.0040c4ff
add ebp, 0xbc
leave
ret

Function at 0x408b00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x408b13
push 0x80004005
call fcn.00406abc
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x408b1a
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x408b4a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x425054]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea edx, [ebp - 0x214]
push edx
push 0x2001f
mov eax, ecx
mov ecx, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x220], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x408c67
xor eax, eax
cmp dword [ebp - 0x210], esi
je 0x408bb8
push dword [ebp - 0x210]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0x214]
mov edi, eax
mov dword [ebp - 0x210], ecx
jne 0x408c67
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push ecx
jmp 0x408c2b
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
call fcn.00408b4a
cmp eax, esi
mov dword [ebp - 0x214], eax
jne 0x408c8a
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 0x100
call edi
test eax, eax
je 0x408bf0
cmp dword [ebp - 0x210], esi
je 0x408c51
push dword [ebp - 0x210]
call ebx
mov dword [ebp - 0x210], esi
push dword [ebp - 0x21c]
mov eax, dword [ebp - 0x220]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 0x210], esi
je 0x408c77
push dword [ebp - 0x210]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c4ff
leave
ret 4
cmp dword [ebp - 0x210], esi
je 0x408c9a
push dword [ebp - 0x210]
call ebx
mov eax, dword [ebp - 0x214]
jmp 0x408c79
Function at 0x40a600
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x422de0
push 0x40ec40
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x425054]
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 eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test eax, eax
jne 0x40a647
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
cmp word [eax], 0x5a4d
je 0x40a65f
push 0xc1
jmp 0x40a71f
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [ebp - 0x24], ecx
cmp dword [ecx], 0x4550
je 0x40a679
push 0xbf
jmp 0x40a71f
movzx eax, word [ecx + 0x14]
test ax, ax
je 0x40a71a
movzx eax, ax
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 0x1c], edx
xor edx, edx
mov dword [ebp - 0x20], edx
movzx eax, word [ecx + 6]
cmp edx, eax
jae 0x40a71a
lea ecx, [edx + edx*4]
mov eax, dword [ebp - 0x1c]
lea ebx, [eax + ecx*8]
mov edi, str..detour
mov esi, ebx
mov ecx, 8
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40a709
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x40a71a
cmp dword [ebx + 0x10], 0
je 0x40a71a
mov ecx, dword [ebp + 8]
lea esi, [eax + ecx]
mov eax, dword [esi]
cmp eax, 0x40
jb 0x40a71a
cmp dword [esi + 4], 0x727444
jne 0x40a71a
cmp dword [esi + 8], 0
jne 0x40a6e4
mov dword [esi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
add edx, 1
mov ecx, dword [ebp - 0x24]
jmp 0x40a692
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40a8b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0xc
cmp dword [esi], 0x678
jne 0x40a9b8
cmp dword [esp + 0x10], 0x678
jb 0x40a9b8
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x10]
push ebx
or eax, 0xffffffff
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [esp + 0x10], eax
mov dword [esp + 8], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
push 0x40
push ecx
push edx
xor ebx, ebx
call edi
test eax, eax
je 0x40a9ae
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x14]
lea eax, [esp + 8]
push eax
push 0x40
push ecx
push edx
call edi
test eax, eax
je 0x40a99a
mov eax, dword [esi + 4]
mov edx, dword [esi + 0x10]
push eax
lea ecx, [esi + 0x1c]
push ecx
push edx
call fcn.004105c0
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x14]
push eax
lea ecx, [esi + 0x5c]
push ecx
push edx
call fcn.004105c0
mov eax, dword [esi + 0x18]
add esp, 0x18
test eax, eax
je 0x40a981
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x18]
push ecx
push 0x40
push edx
push eax
call edi
test eax, eax
je 0x40a986
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x18]
push eax
lea ecx, [esi + 0x664]
push ecx
push edx
call fcn.004105c0
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0xc]
add esp, 0xc
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x18]
push ecx
push edx
push eax
call edi
mov ebx, 1
mov edx, dword [esp + 8]
mov eax, dword [esi + 8]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x14]
push edx
push eax
push ecx
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 4]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esi + 0x10]
push eax
push ecx
push edx
call edi
pop edi
mov eax, ebx
pop ebx
add esp, 0xc
ret 4
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add esp, 0xc
ret 4

Function at 0x40aa30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x422dc0
push 0x40ec40
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x425054]
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 ecx, dword [ebp - 0x30]
cmp word [ecx], 0x5a4d
jne 0x40aacf
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40aacf
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x40aacf
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x40aacf
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