joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1035b3d
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x103fecd
call fcn.0103c428
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push 0x1005a98
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
call fcn.01007727
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x10], ebx
je 0x1035c42
cmp dword [esi + 0x3e8], ebx
je 0x1035b94
xor edi, edi
cmp dword [ebp + 0xc], ebx
jbe 0x1035b94
mov eax, dword [ebp + 8]
push dword [eax + edi*4]
push dword [esi + 0x3e8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x1035b7c
push 0x1005a8c
lea ecx, [ebp + 0xc]
call fcn.01007727
mov byte [ebp - 4], 1
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.01008088
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x1035bc8
call fcn.01007c31
mov dword [ebp + 0xc], ebx
mov edi, dword [ebp - 0x14]
cmp edi, ebx
je 0x1035bd3
mov eax, dword [edi]
jmp 0x1035bd5
xor eax, eax
mov esi, dword [esi]
mov ecx, dword [esi]
lea edx, [ebp - 0x10]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push esi
call dword [ecx + 0xc]
test eax, eax
jl 0x1035c27
push dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
call fcn.01007727
mov byte [ebp - 4], 4
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x1035c06
mov ecx, dword [esi]
jmp 0x1035c08
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
push ebx
push ebx
push ebx
push ecx
push eax
call dword [edx + 0x40]
mov byte [ebp - 4], 3
cmp esi, ebx
je 0x1035c27
mov ecx, esi
call fcn.01007c31
mov dword [ebp + 0xc], ebx
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x1035cc9
call fcn.01007c31
mov dword [ebp - 0x18], ebx
jmp 0x1035cc9
cmp dword [esi + 0x3e4], ebx
je 0x1035c69
xor edi, edi
cmp dword [ebp + 0xc], ebx
jbe 0x1035c69
mov eax, dword [ebp + 8]
push dword [eax + edi*4]
push dword [esi + 0x3e4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x1035c51
mov edi, dword [ebp - 0x14]
cmp edi, ebx
je 0x1035c74
mov eax, dword [edi]
jmp 0x1035c76
xor eax, eax
mov esi, dword [esi]
mov ecx, dword [esi]
lea edx, [ebp - 0x10]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push esi
call dword [ecx + 0xc]
cmp eax, ebx
jl 0x1035cc9
push 0x1005a5c
lea ecx, [ebp + 0xc]
call fcn.01007727
mov byte [ebp - 4], 5
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x1035ca9
mov ecx, dword [esi]
jmp 0x1035cab
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
push ebx
push ebx
push ebx
push ecx
push eax
call dword [edx + 0x40]
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x1035cc9
mov ecx, esi
call fcn.01007c31
mov dword [ebp + 0xc], ebx
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x1035cd9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x10], ebx
or dword [ebp - 4], 0xffffffff
cmp edi, ebx
je 0x1035ceb
mov ecx, edi
call fcn.01007c31
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x1035d01
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x103fef2
call fcn.0103c428
sub esp, 0x16c
mov eax, dword [0x10490cc]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x144], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x154], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x120], 1
or dword [ebp - 0x11c], 0xffffffff
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x124], 0x100
mov dword [ebp - 0x118], ebx
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x114]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], ebx
xor edi, edi
mov dword [ebp - 0x13c], edi
cmp edi, dword [ebp + 0x14]
jae 0x1035f34
push dword [esi + edi*4]
lea ecx, [ebp - 0x12c]
call fcn.01007727
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x154]
call fcn.01008088
mov dword [ebp - 0x164], eax
mov byte [ebp - 4], 2
mov eax, dword [eax]
cmp eax, ebx
je 0x1035dc5
mov eax, dword [eax]
jmp 0x1035dc7
xor eax, eax
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x11c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x128]
cmp ecx, ebx
je 0x1035dfd
call fcn.01007c31
mov dword [ebp - 0x128], ebx
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x12c]
cmp ecx, ebx
je 0x1035e15
call fcn.01007c31
mov dword [ebp - 0x12c], ebx
cmp dword [ebp - 0x11c], ebx
je 0x1035f28
cmp dword [ebp - 0x11c], 0xffffffff
je 0x1035f28
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x178]
push eax
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x1035f0d
mov dword [ebp - 0x124], 0x100
cmp dword [ebp - 0x120], ebx
je 0x1035ee0
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x118]
push eax
push ebx
push ebx
push dword [esi + edi*4]
mov eax, dword [ebp - 0x144]
push dword [eax + 0x3e4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1035ee0
mov eax, dword [ebp - 0x124]
shr eax, 1
mov word [ebp + eax*2 - 0x118], bx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.msvcrt.dll__wtoi64]
pop ecx
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x158], edx
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
je 0x1035ee6
mov dword [ebp - 0x120], ebx
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x130], ecx
mov edx, dword [ebp - 0x140]
mov dword [edx + edi*8], eax
mov dword [edx + edi*8 + 4], ecx
jmp 0x1035f13
mov dword [ebp - 0x120], ebx
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x11c], 0xffffffff
jmp 0x1035f2e
mov dword [ebp - 0x120], ebx
inc edi
jmp 0x1035d7d
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0103bfcf
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x103bfcf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10490cc]
jne 0x103bfe0
test ecx, 0xffff0000
jne 0x103bfe0
ret
jmp fcn.0103bfea

Function at 0x103c227
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1006bd8
call fcn.0103c5e8
cmp word [0x1000000], 0x5a4d
jne 0x103c265
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x103c265
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x103c27e
cmp ecx, 0x20b
je 0x103c26b
and dword [ebp - 0x1c], 0
jmp 0x103c292
cmp dword [eax + 0x84], 0xe
jbe 0x103c265
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x103c28c
cmp dword [eax + 0x74], 0xe
jbe 0x103c265
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1049870], 0xffffffff
or dword [0x1049874], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1049868]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1049864]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x104986c], eax
call fcn.0103c5e0
cmp dword [0x10490e0], 0
jne 0x103c2ef
push fcn.0103c5e0
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0103c5c9
push 0x10013d0
push 0x10013cc
call sub.msvcrt.dll__initterm
mov eax, dword [0x1049860]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x104985c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x10013c8
push 0x10013ac
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0103492f
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], 0
jne 0x103c367
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x103c39c
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0103c623
ret
Function at 0x4044b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x41112b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x40346c
call fcn.00404692
push 4
mov dword [esp + 0x18], 0
call fcn.00405100
mov edi, eax
add esp, 4
test edi, edi
je 0x404524
push ebx
call fcn.00404950
mov dword [edi], eax
call fcn.00404760
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00404653
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x404518
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.0040467b
pop ebx
jmp 0x404526
xor edi, edi
mov dword [esi + 0x38], 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
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 ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40583e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426b90]
jne 0x405848
repz ret
jmp fcn.0040934c
Function at 0x40a9c4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x426b90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004068a6
and dword [ebp - 0x14], 0
cmp dword [0x439e4c], 0
mov dword [ebp - 0x18], eax
jne 0x40aa77
push 0x402b48
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40ab1f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402b3c
push ebx
call edi
test eax, eax
je 0x40ab1f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402b2c
push ebx
mov dword [0x439e4c], eax
call edi
push eax
call esi
push 0x402b18
push ebx
mov dword [0x439e50], eax
call edi
push eax
call esi
push 0x402afc
push ebx
mov dword [0x439e54], eax
call edi
push eax
call esi
mov dword [0x439e5c], eax
test eax, eax
je 0x40aa77
push 0x402ae4
push ebx
call edi
push eax
call esi
mov dword [0x439e58], eax
mov eax, dword [0x439e58]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40aad0
cmp dword [0x439e5c], ecx
je 0x40aad0
push eax
call esi
push dword [0x439e5c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40aad0
test ebx, ebx
je 0x40aad0
call edi
test eax, eax
je 0x40aac7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40aac7
test byte [ebp - 8], 1
jne 0x40aad0
or dword [ebp + 0x10], 0x200000
jmp 0x40ab03
mov eax, dword [0x439e50]
cmp eax, dword [ebp - 0x18]
je 0x40ab03
push eax
call esi
test eax, eax
je 0x40ab03
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40ab03
mov eax, dword [0x439e54]
cmp eax, dword [ebp - 0x18]
je 0x40ab03
push eax
call esi
test eax, eax
je 0x40ab03
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x439e4c]
call esi
test eax, eax
je 0x40ab1f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40ab21
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040583e
leave
ret
Function at 0x40bfd0
Capabilities:
Delete directory
Delete file
Get common file path
Read .ini file

Disassembly:
mov eax, 0x1d5c
call fcn.0040b720
cmp dword [0x2b41c34], 0x37
jne 0x40c0ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0x4032c4
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [esp + 0x115c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll__lread]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edx, [esp + 0x958]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push 0
lea eax, [esp + 0x155c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_BackupSeek]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
push 0
lea ecx, [esp + 0x15c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea edx, [esp + 0x55c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0xc]
push eax
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x2b41c38]
mov dword [esp], eax
mov eax, 0x39ee
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x2b37bdc]
mov byte [eax + esi], dl
add esp, 0x1d5c
ret
Function at 0x40c190
Capabilities:
Manipulate console buffer
Read .ini file

Disassembly:
sub esp, 0x824
mov eax, dword [esp + 0x828]
mov ecx, dword [eax]
mov edx, dword [0x438b64]
push ebp
push esi
mov esi, dword [eax + 4]
mov eax, dword [0x438b60]
push edi
mov dword [esp + 0x2c], eax
mov eax, dword [0x438b68]
mov dword [esp + 0x1c], edx
mov edx, dword [0x438b6c]
mov edi, 0xc6ef3720
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], 0x20
jmp 0x40c1ea
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
mov edx, ecx
shl edx, 4
cmp dword [0x2b41c34], 5
mov dword [esp + 0xc], edx
jne 0x40c21c
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
push 0
lea eax, [esp + 0x34]
push eax
push 0x403298
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
add edx, dword [esp + 0x24]
mov eax, ecx
shr eax, 5
add eax, dword [esp + 0x28]
add ecx, edi
xor eax, edx
xor eax, ecx
sub esi, eax
mov edx, esi
shl edx, 4
mov dword [esp + 0x14], eax
mov dword [0x2b37be0], 0
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x2c]
add dword [esp + 0xc], eax
add edi, esi
cmp dword [0x2b41c34], 0x1be
jne 0x40c26a
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
mov eax, esi
shr eax, 5
mov dword [0x2b37be8], 0xff6b3619
mov dword [0x2b37bec], 0xffffffff
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
add dword [esp + 0x14], eax
cmp dword [0x2b41c34], 0x979
jne 0x40c2a8
mov ecx, dword [esp + 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov edx, dword [esp + 0x14]
xor edx, edi
xor dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
sub dword [esp + 0x10], eax
lea eax, [esp + 0x20]
call fcn.0040c120
dec dword [esp + 0x18]
jne 0x40c1e2
cmp dword [0x2b41c34], 0x8d4
jne 0x40c307
push 0x4032b8
push 0
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov eax, dword [esp + 0x834]
mov ecx, dword [esp + 0x10]
pop edi
mov dword [eax + 4], esi
pop esi
mov dword [eax], ecx
pop ebp
add esp, 0x824
ret 4
mov eax, dword [esp + 0x834]
mov edx, dword [esp + 0x10]
pop edi
mov dword [eax + 4], esi
pop esi
mov dword [eax], edx
pop ebp
add esp, 0x824
ret 4
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Create process on windows
Create process suspended
Spoof parent pid

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe8
mov eax, dword [0x403004]
xor eax, esp
mov dword [esp + 0xe4], eax
push esi
push edi
push 0x1238
push 0
mov ecx, 0x1d
lea edi, [esp + 0x78]
mov esi, 0x402118
rep movsd dword es:[edi], dword [esi]
push 0x80
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, dword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
mov dword [esp + 0x18], 0
call esi
push dword [esp + 8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov edi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push edi
call esi
push 0
push 0
push 4
lea eax, [esp + 0x18]
push eax
push 0x20000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
push 0x44
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0x48
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x64], edi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0x80010
push 0
push 0
push 0
lea eax, [esp + 0x90]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x6c]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x14]
call esi
push dword [esp + 0xc]
call esi
test edi, edi
je 0x40111f
push edi
call dword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [esp + 0xec]
mov eax, dword [esp + 0x18]
pop edi
pop esi
xor ecx, esp
call fcn.00401137
mov esp, ebp
pop ebp
ret
Function at 0x40d58f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d4e88]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x74736e49
mov dword [ebp - 0x18], 0x536c6c61
mov dword [ebp - 0x14], 0x6c656968
mov word [ebp - 0x10], 0x64
cmp byte [ebp + 0xc], al
je 0x40d5d6
mov dword [ebp - 0xf], 0x7a695720
mov dword [ebp - 0xb], 0x647261
push 1
lea eax, [ebp - 0x1d]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.004090b1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004591d7
leave
ret 8