joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10037d1
Capabilities:
Manipulate console buffer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x101e03c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 0xa8], eax
xor eax, eax
xor edi, edi
push 0x9e
mov word [ebp - 0xa4], ax
lea eax, [ebp - 0xa2]
push edi
push eax
mov dword [ebp - 0xb0], edi
call sub.msvcrt.dll_memset
add esp, 0xc
cmp ebx, edi
je 0x10038b3
xor eax, eax
mov word [ebp - 0xac], ax
mov ax, word [esi + 6]
push 0x50
mov word [ebp - 0xaa], ax
pop ecx
lea eax, [ebp - 0xa4]
mov byte [eax], 0
inc eax
dec ecx
jne 0x1003843
push dword [ebp - 0xac]
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push ebx
call esi
push edi
lea eax, [ebp - 0xb0]
push eax
push 0x4f
push 0x4f
push 0x4f
push 0x100137c
lea eax, [ebp - 0xa4]
push eax
call fcn.01016096
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push eax
push ebx
call edi
push dword [ebp - 0xac]
push ebx
call esi
cmp dword [ebp - 0xa8], 0
je 0x10038b3
push 0
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0xa8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push dword [ebp - 0xa8]
push ebx
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101453d
leave
ret 0xc

Function at 0x10038c9
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x100000
mov esi, ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi + 0x48], eax
cmp eax, ebx
jne 0x1003960
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1003910
push ebx
lea eax, [ebp - 4]
push eax
push 1
push 0x1001380
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x1003928
push 0x10001
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x40
push eax
call fcn.0101716f
xor eax, eax
jmp 0x1003963
push 0xc
pop ecx
mov edx, ecx
lea eax, [ebp - 0x10]
mov byte [eax], bl
inc eax
dec edx
jne 0x1003930
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x48], eax
cmp eax, ebx
je 0x1003910
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 4
Function at 0x1006891
Capabilities:
Get domain controller name
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x101e03c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], esi
cmp edi, esi
je 0x100693e
cmp ebx, esi
je 0x100693e
cmp eax, esi
je 0x100693e
lea eax, [ebp - 0x214]
push eax
push 0x20
push esi
push esi
push edi
push esi
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
jne 0x10068fc
mov eax, dword [ebp - 0x214]
inc esi
test byte [eax + 0x24], 0x10
je 0x10068f2
mov dword [ebx], esi
push eax
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, esi
jmp 0x1006940
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x210], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x100693e
push esi
xor esi, esi
inc esi
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01014f64
test eax, eax
jne 0x100693e
mov eax, dword [ebp - 0x218]
mov dword [eax], esi
jmp 0x10068f8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101453d
leave
ret 0xc
Function at 0x100bf33
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp eax, ebx
je 0x100bf56
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [esi], ebx
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp + 0x14], eax
cmp eax, ebx
jne 0x100bfb7
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0x18]
push ebx
push dword [ebp + 0x10]
push dword [ebp - 8]
call edi
mov dword [ebp + 0x14], eax
cmp eax, ebx
jne 0x100bfb6
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
cmp eax, ebx
jbe 0x100bfaf
cmp eax, 2
jbe 0x100bfed
cmp eax, 3
jbe 0x100bfaf
cmp eax, 5
jbe 0x100bfce
cmp eax, 7
je 0x100bfed
mov dword [ebp + 0x14], 0x70c
pop edi
cmp dword [ebp - 8], ebx
pop esi
pop ebx
je 0x100bfc7
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
leave
ret 0x14
push dword [ebp - 4]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esi], eax
cmp eax, ebx
je 0x100bffe
mov eax, dword [ebp + 0x18]
push 4
pop ecx
mov byte [eax], bl
inc eax
dec ecx
jne 0x100bfe5
jmp 0x100c013
push dword [ebp - 4]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esi], eax
cmp eax, ebx
jne 0x100c007
mov dword [ebp + 0x14], 8
jmp 0x100bfb6
mov eax, dword [ebp + 0x18]
push 4
pop ecx
mov byte [eax], bl
inc eax
dec ecx
jne 0x100c00d
lea eax, [ebp - 4]
push eax
push dword [esi]
push dword [ebp + 0x18]
push ebx
push dword [ebp + 0x10]
push dword [ebp - 8]
call edi
mov ecx, dword [ebp - 4]
mov dword [ebp + 0x14], eax
mov dword [esi + ecx*4 - 4], ebx
cmp eax, ebx
je 0x100bfb6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi], ebx
jmp 0x100bfb6
Function at 0x1015f2a
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x101e03c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 5
pop ebx
mov ecx, ebx
mov esi, 0x1002e98
lea edi, [ebp - 0x18]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0x134]
push edi
push eax
call sub.msvcrt.dll_memset
mov dword [ebp - 0x130], ebx
add esp, 0xc
xor ebx, ebx
inc ebx
push ebx
push 2
push edi
mov dword [ebp - 0x134], esi
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
xor eax, eax
push edi
mov dword [ebp - 0x12c], edi
mov word [ebp - 0x20], ax
call esi
push ebx
push ebx
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push edx
push eax
push 3
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
cmp eax, ebx
jne 0x1015fc6
push 0x47e
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
jmp 0x101604a
mov esi, 0x105
push ebx
lea eax, [esi + 0xa]
push eax
push edi
push edi
call fcn.010161cb
mov dword [ebp - 0x138], eax
cmp eax, edi
je 0x101605b
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, edi
je 0x1016048
cmp eax, esi
jbe 0x1015ffe
cmp esi, 0x105
je 0x101606f
lea esi, [eax + 1]
xor eax, eax
cmp eax, edi
je 0x1015fcb
push 0x1002e7c
push dword [ebp - 0x138]
push 0x1002e70
push 2
call fcn.0101599b
add esp, 0x10
test eax, eax
je 0x101605b
call fcn.01014c31
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, edi
je 0x1016048
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
jne 0x1016080
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101453d
leave
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1016048
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1016048
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1016048
push 0x42b
jmp 0x1016067
push dword [ebp + 8]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1015fbf
Function at 0x1018543
Capabilities:
Initialize winsock library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x101e03c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1a4], ecx
mov dword [ebp - 0x1a0], esi
mov dword [ebp - 0x19c], esi
mov dword [ebp - 0x198], esi
cmp edi, esi
je 0x10186e1
cmp ebx, esi
je 0x10186e1
mov eax, dword [ebx]
cmp eax, esi
je 0x10185a5
cmp eax, 2
jb 0x10186e1
cmp ecx, esi
je 0x10186e1
cmp dword [0x101e3cc], esi
jne 0x10185d9
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10185cf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
jmp 0x10186ed
mov dword [0x101e3cc], 1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 5
push eax
mov dword [ebp - 0x1a0], eax
call fcn.0101521e
mov dword [ebp - 0x198], eax
cmp eax, esi
jne 0x101860e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10186f3
push 8
jmp 0x10186ed
lea ecx, [ebp - 0x1a0]
push ecx
push eax
push edi
call fcn.010150ff
test eax, eax
je 0x10186f3
push dword [ebp - 0x198]
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x19c], eax
cmp eax, 0xffffffff
jne 0x101865f
lea eax, [ebp - 0x198]
push eax
call fcn.010157c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10186f3
push 0x42b
jmp 0x10186ed
push 2
push 4
lea eax, [ebp - 0x19c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
mov dword [0x101e4e0], eax
cmp eax, esi
je 0x1018647
lea eax, [ebp - 0x198]
push eax
call fcn.010157c3
push esi
push esi
push edi
push 0x11
call fcn.010161cb
cmp eax, esi
je 0x10185f9
mov ecx, dword [0x101e4e0]
cmp ecx, esi
je 0x10186f3
mov eax, dword [ecx]
mov dword [ebp - 0x198], eax
cmp dword [ebp + 0x14], esi
jne 0x10186c7
cmp eax, esi
je 0x10186dc
push 0x1002f68
push dword [ecx]
call dword [sym.imp.msvcrt.dll_strtok]
pop ecx
pop ecx
mov dword [ebp - 0x198], eax
cmp eax, esi
je 0x10186dc
push ebx
push dword [ebp - 0x1a4]
push eax
call fcn.0101501b
test eax, eax
je 0x10186f3
xor eax, eax
inc eax
jmp 0x10186f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10186f3
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101453d
leave
ret 0x10
Function at 0x1018b12
Capabilities:
Connect network resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x1018c6d
push esi
call fcn.010188d6
cmp eax, 1
je 0x1018c6d
push esi
mov dword [ebp + 8], esi
call fcn.0101844a
cmp eax, 1
jne 0x1018b4c
add esi, 4
mov dword [ebp + 8], esi
push dword [ebp + 8]
call fcn.01018a3d
test eax, eax
jne 0x1018b68
call fcn.01014cc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1018ca1
cmp dword [ebp + 0x14], ebx
je 0x1018b91
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1018b91
push dword [ebp + 0x14]
push dword [ebp + 8]
push 0x1002f88
push 2
call fcn.0101599b
add esp, 0x10
jmp 0x1018ba3
push dword [ebp + 8]
push 0x1002f6c
push 1
call fcn.0101599b
add esp, 0xc
test eax, eax
jne 0x1018bc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1018bb9
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01014cc4
push 8
pop eax
jmp 0x1018ca1
call fcn.01014c31
cmp eax, ebx
jne 0x1018bd8
push 0x12
call fcn.01015406
jmp 0x1018be2
push ebx
push ebx
push eax
push 0x12
call fcn.010161cb
mov edx, eax
cmp edx, ebx
je 0x1018ba7
push edi
push 8
pop ecx
push ebx
push dword [ebp + 0xc]
xor eax, eax
push dword [ebp + 0x10]
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edx
call sub.MPR.dll_WNetAddConnection2W
mov esi, eax
pop edi
cmp esi, ebx
je 0x1018c33
cmp esi, 0x4b8
je 0x1018c2c
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01014cc4
jmp 0x1018c9b
call fcn.0101636c
jmp 0x1018c9b
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
call fcn.0101870b
push eax
call fcn.01014e03
test eax, eax
jne 0x1018c9b
push dword [ebp + 8]
call fcn.01018af5
push 0x1580
call fcn.01017157
push eax
call fcn.01014c5d
mov esi, 0x4b8
jmp 0x1018c9b
cmp dword [ebp + 0xc], ebx
je 0x1018c9f
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1018c9f
push 0x157e
call fcn.01017157
push eax
call fcn.01014c5d
mov esi, 0xa0010001
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x1018ca1
xor eax, eax
pop esi
pop ebx
leave
ret 0x10
Function at 0x1018ccd
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push edi
push 0
call ebx
mov edi, dword [ebp + 8]
test edi, edi
je 0x1018e57
push 0
push edi
call fcn.01014f43
test eax, eax
je 0x1018e57
xor esi, esi
inc esi
cmp dword [ebp + 0x1c], esi
jne 0x1018d36
cmp dword [ebp + 0xc], 0
je 0x1018d1c
cmp dword [ebp + 0x10], 2
jb 0x1018d1c
cmp dword [ebp + 0x14], 0
je 0x1018d1c
cmp dword [ebp + 0x18], 2
jae 0x1018d36
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1018d2a
push 0x57
call ebx
call fcn.01014cc4
xor eax, eax
jmp 0x1018e5a
push edi
mov dword [ebp - 4], edi
call fcn.0101844a
cmp eax, esi
jne 0x1018d49
lea eax, [edi + 4]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], esi
jne 0x1018d7a
cmp dword [ebp + 0x14], 0
je 0x1018d7a
push 0
push esi
push 0x1001440
push dword [ebp + 0x14]
call fcn.01014f64
test eax, eax
jne 0x1018d7a
push dword [ebp - 4]
call fcn.01018a3d
test eax, eax
jne 0x1018e6e
jmp 0x1018d2a
push dword [ebp - 4]
and dword [ebp - 8], 0
call fcn.01018a3d
test eax, eax
je 0x1018d2a
cmp dword [ebp + 0xc], 0
je 0x1018dbf
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1018dbf
mov eax, dword [ebp + 0x1c]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp + 0x14]
push eax
push dword [ebp + 0xc]
push edi
call fcn.01018cac
mov edi, eax
cmp dword [ebp + 0x1c], esi
jne 0x1018dce
mov dword [ebp - 8], esi
jmp 0x1018dce
push 0
push 0
push edi
mov dword [ebp - 8], esi
call fcn.01018cac
mov edi, eax
cmp edi, 0x55
jne 0x1018dde
push 0x50010001
call ebx
mov eax, esi
jmp 0x1018e5a
test edi, edi
jne 0x1018dea
cmp dword [ebp - 8], esi
je 0x1018dd3
push edi
jmp 0x1018dd8
mov eax, 0x4c3
cmp edi, eax
ja 0x1018e17
je 0x1018e14
cmp edi, 0x34
je 0x1018f06
cmp edi, 0x56
je 0x1018e61
cmp edi, 0x4be
je 0x1018f06
jmp 0x1018d2a
push eax
jmp 0x1018dd8
cmp edi, 0x4cf
jb 0x1018d2a
cmp edi, 0x4d1
jbe 0x1018f06
cmp edi, 0x52e
je 0x1018e61
mov esi, 0xa0010001
cmp edi, esi
jne 0x1018d2a
push 0x157e
call fcn.01017157
push eax
call fcn.01014c5d
push esi
call ebx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x18
cmp dword [ebp + 0x1c], 0
je 0x1018d2f
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x1018e91
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x1018d2a
push dword [ebp + 0xc]
push 0x157d
call fcn.01017157
push eax
push esi
push esi
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x20
push eax
call fcn.01017004
add esp, 0x14
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.01015cb6
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.01018cac
mov edi, eax
test edi, edi
je 0x1018dda
cmp edi, 0x34
je 0x1018f06
cmp edi, 0x4be
je 0x1018f06
mov eax, 0x4c3
cmp edi, eax
je 0x1018e14
cmp edi, 0x4ce
jbe 0x1018d2a
cmp edi, 0x4d1
ja 0x1018e37
push 0x4c6
call ebx
call fcn.01014cc4
push edi
call ebx
jmp 0x1018d2f
Function at 0x41f993
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41f9d2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f9d2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f9d2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41f9d2
cmp dword [ecx + 0x74], 0xe
jbe 0x41f9d2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x432150
Capabilities:
Parse pe header

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

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

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x404c40
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
xor eax, eax
mov dword [ebp - 0x1c], eax
mov esi, ecx
mov edi, edx
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x3c], esi
mov dword [esi], ecx
mov dword [ebp - 0x40], edi
mov dword [edi], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x34], 0
mov ecx, 0x628324
call fcn.004ed6b0
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x38], 0
mov ecx, 0x628324
call fcn.004ed6b0
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x1c], ebx
push 0
call sub.KERNEL32.dll_SetLastError
push dword [ebp + 8]
push ebx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x30]
mov edx, 0x10
call fcn.004f4f20
call sub.KERNEL32.dll_CreatePipe
mov esi, eax
lea ecx, [ebp - 0x30]
call fcn.004f4f51
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x10], 1
mov edx, dword [ebp - 0x18]
mov byte [ebp - 0x34], 1
mov eax, dword [ebp - 0x44]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x14]
mov byte [ebp - 0x38], 1
mov ecx, dword [ebp - 0x48]
mov dword [ecx + 4], edx
test esi, esi
setne bl
movzx ebx, bl
mov edx, dword [ebp - 0x40]
call fcn.004f4268
mov edx, dword [ebp - 0x3c]
call fcn.004f429d
call fcn.004f2f69
mov dword [eax + 4], edi
movzx eax, bl
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x404d70
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
xor eax, eax
mov dword [ebp - 0x14], eax
mov esi, edx
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x10]
cmp dword [ecx], ecx
call fcn.0045c0a0
mov eax, dword [ebp - 0x14]
mov edi, dword [eax + 4]
push 0
call sub.KERNEL32.dll_SetLastError
push esi
push edi
lea ecx, [ebp - 0x28]
mov edx, 8
call fcn.004f4f20
call sub.KERNEL32.dll_ConnectNamedPipe
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.004f4f51
call sub.KERNEL32.dll_GetLastError
mov edi, eax
test esi, esi
setne bl
movzx ebx, bl
cmp byte [ebp - 0x10], 0
je 0x404de1
mov ecx, dword [ebp - 0x14]
cmp byte [ecx], cl
xor edx, edx
call fcn.0045c0e0
call fcn.004f2f69
mov dword [eax + 4], edi
movzx eax, bl
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x404e10
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
xor eax, eax
mov dword [ebp - 0x14], eax
mov esi, edx
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x10]
cmp dword [ecx], ecx
call fcn.0045c0a0
mov eax, dword [ebp - 0x14]
mov edi, dword [eax + 4]
push 0
call sub.KERNEL32.dll_SetLastError
push esi
push edi
lea ecx, [ebp - 0x28]
mov edx, 8
call fcn.004f4f20
call sub.KERNEL32.dll_ConnectNamedPipe
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.004f4f51
call sub.KERNEL32.dll_GetLastError
mov edi, eax
test esi, esi
setne bl
movzx ebx, bl
cmp byte [ebp - 0x10], 0
je 0x404e81
mov ecx, dword [ebp - 0x14]
cmp byte [ecx], cl
xor edx, edx
call fcn.0045c0e0
call fcn.004f2f69
mov dword [eax + 4], edi
movzx eax, bl
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x405260
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x20
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov esi, edx
mov edi, dword [ebp + 0xc]
xor edx, edx
mov dword [edi], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x10]
cmp dword [ecx], ecx
call fcn.0045c0a0
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax + 4]
push 0
call sub.KERNEL32.dll_SetLastError
push dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push esi
push ebx
lea ecx, [ebp - 0x2c]
mov edx, 0x14
call fcn.004f4f20
call sub.KERNEL32.dll_ReadFile
mov esi, eax
lea ecx, [ebp - 0x2c]
call fcn.004f4f51
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor ecx, ecx
mov dword [ebp - 0x18], ecx
cmp byte [ebp - 0x10], 0
je 0x4052e0
mov ecx, dword [ebp - 0x14]
cmp byte [ecx], cl
xor edx, edx
call fcn.0045c0e0
call fcn.004f2f69
mov dword [eax + 4], edi
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc

Function at 0x405310
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
xor eax, eax
mov dword [ebp - 0x14], eax
mov esi, edx
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x10]
cmp dword [ecx], ecx
call fcn.0045c0a0
mov eax, dword [ebp - 0x14]
mov edi, dword [eax + 4]
push 0
call sub.KERNEL32.dll_SetLastError
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push esi
push edi
lea ecx, [ebp - 0x28]
mov edx, 0x14
call fcn.004f4f20
call sub.KERNEL32.dll_ReadFile
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.004f4f51
call sub.KERNEL32.dll_GetLastError
mov edi, eax
cmp byte [ebp - 0x10], 0
je 0x405382
mov ecx, dword [ebp - 0x14]
cmp byte [ecx], cl
xor edx, edx
call fcn.0045c0e0
call fcn.004f2f69
mov dword [eax + 4], edi
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc