joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50dee0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5567b0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5c2b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x50]
mov edi, dword [ebp + 0xc]
push 0x3c
push 0
push eax
mov dword [ebp - 0x14], 0xffffffff
call fcn.0052ebd0
add esp, 0xc
mov dword [ebp - 0x50], 0x3c
mov ecx, 0x5a5fa0
call fcn.004f06e0
push eax
lea ecx, [ebp - 0x54]
call fcn.00457210
mov dword [ebp - 4], 0
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50df71
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
mov dword [ebp - 0x40], eax
mov eax, dword [edi]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x4c], 0x440
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x50dfba
push ecx
call fcn.00456ec0
mov edx, dword [ebp - 0x18]
mov ecx, eax
call fcn.004722c0
lea eax, [ebp - 0x14]
push eax
call fcn.00456ec0
mov edx, dword [ebp - 0x18]
mov ecx, eax
call fcn.00472490
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052ab62
mov esp, ebp
pop ebp
ret 0xc
Function at 0x50ea50
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556a8e
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x5c2b80]
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 dword [ebp - 4], 0
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
add bl, bl
or bl, byte [ebp + 0xc]
mov dword [ebp - 0x90], 0
add bl, bl
or bl, byte [ebp + 0x10]
mov dword [ebp - 0xac], esi
mov dword [esi], 0
call fcn.00456bd0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x50eac7
push 0x80004005
call fcn.00456ea0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
movzx eax, bl
push eax
push str._d:f4b82c
push esi
mov dword [ebp - 0x90], 1
call fcn.00457480
add esp, 0xc
mov dword [ebp - 0x74], 0
mov edx, esi
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x88], 0x67452301
mov dword [ebp - 0x84], 0xefcdab89
mov dword [ebp - 0x80], 0x98badcfe
mov dword [ebp - 0x7c], 0x10325476
mov byte [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
call fcn.00457010
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x50eb4b
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x14]
call fcn.0051ae40
mov byte [ebp - 4], 4
cmp dword [ebp - 0x94], 0x10
jb 0x50eb6f
push dword [ebp - 0xa8]
call fcn.0047c370
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x94], 0xf
mov dword [ebp - 0x98], 0
mov byte [ebp - 0xa8], 0
cmp dword [eax - 4], 1
mov edi, dword [eax - 0xc]
jle 0x50eba2
push edi
lea ecx, [ebp - 0x14]
call fcn.0045c400
mov eax, dword [ebp - 0x14]
push edi
push eax
lea ecx, [ebp - 0x88]
call fcn.00529560
lea ecx, [ebp - 0x88]
call fcn.00529620
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x88]
call fcn.005293a0
mov byte [ebp - 4], 5
mov ecx, esi
push eax
call fcn.0045be70
mov byte [ebp - 4], 4
or ebx, 0xffffffff
mov edx, dword [ebp - 0x8c]
mov eax, ebx
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x50ebfe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x14]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x50ec1f
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.0052ab62
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5223c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55afd8
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x5c2b80]
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 ebx, edx
mov edi, ecx
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [ebp - 0x220], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
xor eax, eax
push 0x1fc
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
mov dword [ebp - 0x21c], 1
call fcn.0052ebd0
add esp, 0xc
xor esi, esi
lea esp, [esp]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0xff
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x5224dd
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x218]
call fcn.00457210
mov dword [ebp - 4], 1
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.0045bd60
mov dword [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x218]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5224e4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
jmp 0x522460
cmp eax, 0x103
je 0x5224ea
inc esi
jmp 0x522460
mov eax, edi
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.0052ab62
mov esp, ebp
pop ebp
ret
Function at 0x54788d
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c2b80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00533df6
mov dword [ebp - 0x14], eax
cmp dword [0x5cf8b4], esi
jne 0x547980
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x54790d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x547a60
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x547a60
push 0x58d5f0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x547a60
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x5cf8b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x5cf8b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x58d620
push edi
mov dword [0x5cf8bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5cf8c4], eax
test eax, eax
je 0x54797d
push 0x58d63c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5cf8c0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5479a5
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x547998
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x5479ba
push 4
pop eax
jmp 0x547a62
cmp dword [ebp - 0x14], esi
je 0x5479ba
push dword [0x5cf8b4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x54799f
mov eax, dword [0x5cf8c0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x547a18
cmp dword [0x5cf8c4], edi
je 0x547a18
push eax
call ebx
push dword [0x5cf8c4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x547a18
test eax, eax
je 0x547a18
call ecx
test eax, eax
je 0x547a0d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x547a0d
test byte [ebp - 8], 1
jne 0x547a18
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x547a48
mov eax, dword [0x5cf8b8]
cmp eax, edi
je 0x547a45
push eax
call ebx
test eax, eax
je 0x547a45
call eax
mov esi, eax
test esi, esi
je 0x547a45
mov eax, dword [0x5cf8bc]
cmp eax, edi
je 0x547a45
push eax
call ebx
test eax, eax
je 0x547a45
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5cf8b4]
call ebx
test eax, eax
je 0x547a60
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x547a62
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052ab62
mov esp, ebp
pop ebp
ret
Function at 0x405080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x4050c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x42a458
push ecx
call fcn.004151e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.004151e1
add esp, 0x10
jmp 0x4050d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0041520b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00414dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00405050
mov eax, dword [0x42f728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x40513b
push esi
call fcn.00404fb0
add esp, 4
mov dword [0x42f728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x40514c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00404ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x408440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x4084b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x40848e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x408471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40847e
add edx, ecx
cmp ebx, edx
jb 0x40848a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x408467
xor ecx, ecx
jmp 0x4084a2
test eax, eax
jne 0x408492
xor ecx, ecx
jmp 0x4084a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.004083c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x4088f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x408921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x408946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x40896e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x408993
push ecx
push esi
call fcn.004084c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x409c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x409c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x409c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x409c38
add edx, eax
cmp ebx, edx
jb 0x409c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x409c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x409c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x409c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x409cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x409c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x409ca8
add edx, ecx
cmp ebx, edx
jb 0x409cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x409c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x409f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00416145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x409ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x409fdd
lea eax, [esp + 0x18]
push eax
jmp 0x409fe2
push 0x42f720
call fcn.00415fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x409fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x409f40
push 4
push ecx
push eax
call fcn.0041643f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x40bf20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ecx
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 4], ebp
je 0x40bfd7
mov eax, dword [esp + 0xc]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x40bfcf
push ebx
push edi
push 0x42f770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x40bfae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x42f770
push esi
call ebx
test eax, eax
je 0x40bfae
mov ebp, 3
cmp dword [0x42f774], ebp
jne 0x40bfaa
push 0x3e8
call edi
push 0x42f770
push esi
call ebx
test eax, eax
jne 0x40bf8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x40bfc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x40bfbb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ecx
ret
Function at 0x413000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x413131
push esi
call fcn.00416145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00405080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x413131
push 0
push ebp
call fcn.004053a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00405260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x41308b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.004052f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x413121
push 0x42b918
push edi
call fcn.004143f0
push eax
push ebx
push esi
call fcn.00412f60
push 0x42b8f8
push edi
call fcn.004143f0
push eax
push ebx
push esi
call fcn.00412f60
push 0x42b8d8
push edi
call fcn.004143f0
push eax
push ebx
push esi
call fcn.00412f60
push 0x42b8c0
push edi
call fcn.004143f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00412f60
push 0x42b8a0
push edi
call fcn.004143f0
push eax
push ebx
push esi
call fcn.00412f60
push 0x42b888
push edi
call fcn.004143f0
push eax
push ebx
push esi
call fcn.00412f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4141b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00414140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00414140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00414140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00414140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x414bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x414c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x42687c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x414c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x414c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x412210
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41223d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41223d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x787943cd
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x3678740d
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401000
Capabilities:
Connect pipe
Create pipe

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
xor eax, eax
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push 1
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
or dword [esi + 0x2c], 0x100
or ebp, 0xffffffff
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x38], ebp
mov dword [esi + 0x40], ebp
mov eax, dword [edi + 0x1108]
push eax
lea ebx, [edi + 0x110c]
push ebx
push str.RemCom_stdout
lea edx, [esp + 0x28]
push str..pipe_s_s_d
push 0x40ef68
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 1
call fcn.00401889
mov ecx, dword [edi + 0x1108]
push ecx
push ebx
push str.RemCom_stdin
push str..pipe_s_s_d
push 0x40f070
call fcn.00401889
mov edx, dword [edi + 0x1108]
push edx
push ebx
push str.RemCom_stderr
push str..pipe_s_s_d
push 0x40f178
call fcn.00401889
mov edi, dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
add esp, 0x3c
lea eax, [esp + 0x10]
push eax
push ebp
push 0
push 0
push 0xff
push 4
push 2
push 0x40ef68
call edi
lea ecx, [esp + 0x10]
push ecx
push ebp
push 0
push 0
push 0xff
push 4
push 2
push 0x40f178
mov dword [esi + 0x3c], eax
call edi
lea edx, [esp + 0x10]
push edx
push ebp
push 0
push 0
mov dword [esi + 0x40], eax
push 0xff
push 4
push 1
push 0x40f070
call edi
mov ecx, dword [esi + 0x3c]
cmp ecx, ebp
mov dword [esi + 0x38], eax
je 0x40115a
cmp dword [esi + 0x40], ebp
je 0x40115a
cmp eax, ebp
je 0x40115a
mov edi, dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push 0
push ecx
call edi
mov eax, dword [esi + 0x38]
push 0
push eax
call edi
mov ecx, dword [esi + 0x40]
push 0
push ecx
call edi
pop edi
pop esi
lea eax, [ebp + 2]
pop ebp
pop ebx
add esp, 0x20
ret
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esi + 0x40]
push edx
call edi
mov eax, dword [esi + 0x38]
push eax
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
Function at 0x401180
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x15c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x158], eax
push esi
mov esi, dword [esp + 0x164]
push edi
mov edi, dword [esp + 0x16c]
push 0x44
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00401920
lea ecx, [esp + 0x24]
push ecx
push esi
mov dword [esp + 0x2c], 0x44
call fcn.00401000
add esp, 0x14
test eax, eax
jne 0x4011e8
pop edi
mov eax, 2
pop esi
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.00401904
add esp, 0x15c
ret
push ebx
push ebp
push esi
lea edx, [esp + 0x68]
push str.cmd.exe__q__c___s_
push edx
mov dword [edi], 0
xor ebp, ebp
call fcn.00401889
mov cl, byte [esi + 0x1000]
add esp, 0xc
lea eax, [esi + 0x1000]
neg cl
lea edx, [esp + 0x10]
push edx
mov edx, dword [esi + 0x1104]
sbb ecx, ecx
and eax, ecx
lea ecx, [esp + 0x24]
push ecx
push eax
push ebp
or edx, 0x8000000
push edx
push 1
push ebp
push ebp
lea eax, [esp + 0x84]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40126a
mov eax, dword [esp + 0x10]
mov dword [edi], ebp
cmp dword [esi + 0x1210], ebp
mov ebx, eax
jne 0x40126f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x40126f
mov ebp, 1
mov ecx, dword [esp + 0x168]
mov eax, ebp
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.00401904
add esp, 0x15c
ret