joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1268a
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 0x60]
mov eax, dword [edi + 0xc]
xor edx, edx
mov dword [edi + 0x1c], edx
lea ebx, [edi + 0x18]
mov dword [ebx], edx
mov ecx, dword [esi + 8]
mov dword [ebp - 8], ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0xc]
mov dword [ebp + 0xc], ecx
movzx ecx, byte [esi]
sub ecx, edx
mov dword [ebp - 0xc], eax
je 0x1273c
dec ecx
dec ecx
je 0x12704
sub ecx, 0xc
jne 0x12747
mov ecx, dword [edi + 4]
cmp ecx, edx
je 0x126e7
test byte [ecx + 6], 5
je 0x126df
mov eax, dword [ecx + 0xc]
jmp 0x126e7
push edx
push ecx
call dword [sym.imp.ntoskrnl.exe_MmMapLockedPages]
push dword [ebp + 8]
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push 1
push dword [esi + 0x18]
call fcn.00011e66
jmp 0x12747
mov byte [0x160e4], 0
call fcn.00012d80
call fcn.00012d2e
call fcn.0001349a
call fcn.00013776
mov eax, dword [ebp + 8]
push dword [eax + 8]
push 0
call fcn.00013d90
push 2
call fcn.0001146c
push 3
call fcn.0001146c
jmp 0x12747
call dword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov dword [0x160f0], eax
xor dl, dl
mov ecx, edi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8
Function at 0x12ac4
Capabilities:
Print debug messages

Disassembly:
push 0x22c
push 0x151b0
call fcn.00014d74
mov eax, dword [0x160b4]
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x234], ebx
xor esi, esi
mov word [ebp - 0x230], si
xor eax, eax
lea edi, [ebp - 0x22e]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x220], esi
mov byte [ebp - 0x11c], 0
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov word [ebp - 0x228], si
xor eax, eax
lea edi, [ebp - 0x226]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 4], esi
mov eax, dword [0x160f4]
cmp eax, esi
jne 0x12b70
push 0x129ce
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov dword [0x160f4], eax
cmp eax, esi
jne 0x12b70
push 0x12a02
call sub.ntoskrnl.exe_DbgPrint
pop ecx
mov eax, dword [0x12a42]
jmp 0x12c19
lea ecx, [ebp - 0x220]
push ecx
push 0x100
lea ecx, [ebp - 0x11c]
push ecx
push 0x1b
push 0xffffffffffffffff
call eax
mov dword [ebp - 0x23c], eax
cmp eax, esi
jl 0x12c21
mov eax, dword [ebp - 0x220]
mov byte [ebp + eax - 0x11f], 0
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x238], eax
push 1
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlUnicodeStringToAnsiString]
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x21c]
rep stosd dword es:[edi], eax
movzx ecx, word [ebp - 0x228]
mov esi, dword [ebp - 0x224]
lea edi, [ebp - 0x21c]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x11d], 0
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeAnsiString]
lea eax, [ebp - 0x21c]
push eax
push ebx
call fcn.000128f8
test al, al
jne 0x12c1d
mov eax, dword [0x12a46]
mov dword [ebx], eax
jmp 0x12c5b
mov al, 1
jmp 0x12c35
push 0x12a4a
call sub.ntoskrnl.exe_DbgPrint
pop ecx
mov eax, dword [0x12a82]
mov dword [ebx], eax
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x12c61
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x1c]
call fcn.00014d59
call fcn.00014daf
ret 4
Function at 0x12e4a
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ecx, 0x1617c
call dword [sym.imp.HAL.dll_ExAcquireFastMutex]
xor ebx, ebx
xor edi, edi
mov esi, dword [edi*4 + 0x160f8]
cmp esi, ebx
je 0x12e9a
mov eax, dword [ebp + 8]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x12e91
cmp cl, bl
je 0x12e8d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x12e91
inc eax
inc eax
inc esi
inc esi
cmp cl, bl
jne 0x12e6f
xor eax, eax
jmp 0x12e96
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x12eb6
inc edi
cmp edi, 0x1a
jl 0x12e61
xor esi, esi
cmp dword [esi*4 + 0x160f8], ebx
je 0x12ecb
inc esi
cmp esi, 0x1a
jl 0x12ea2
jmp 0x12f57
push 0x12dbe
call sub.ntoskrnl.exe_DbgPrint
mov byte [edi + 0x16160], bl
jmp 0x12f56
mov eax, dword [ebp + 8]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x12ed1
sub eax, ecx
push 0x206b6444
inc eax
push eax
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
cmp edi, ebx
lea edx, [esi*4 + 0x160f8]
mov dword [edx], edi
jne 0x12f11
mov ecx, 0x1617c
call dword [sym.imp.HAL.dll_ExReleaseFastMutex]
push 0x12dee
call sub.ntoskrnl.exe_DbgPrint
pop ecx
xor al, al
jmp 0x12f64
mov eax, dword [ebp + 8]
lea ecx, [eax + 1]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x12f17
sub eax, ecx
lea ecx, [eax + 1]
mov ebx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 8]
mov edx, dword [edx]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x12f38
push dword [ebp + 8]
mov byte [esi + 0x16160], al
push 0x12e1e
call sub.ntoskrnl.exe_DbgPrint
pop ecx
pop ecx
mov ecx, 0x1617c
call dword [sym.imp.HAL.dll_ExReleaseFastMutex]
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x1333a
Capabilities:
Print debug messages

Disassembly:
push 0xc
push 0x151e0
call fcn.00014d74
mov eax, dword [0x161dc]
mov ebx, eax
xor esi, esi
mov dword [ebp - 4], esi
mov ecx, dword [0x160a8]
mov edx, dword [0x161e0]
cmp ecx, edx
je 0x13399
push ecx
push edx
push 0x132de
call sub.ntoskrnl.exe_DbgPrint
add esp, 0xc
mov eax, dword [0x161dc]
cmp dword [eax], esi
je 0x133d2
push 0x206b6444
push 0xfffc
push esi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edx, eax
mov dword [ebp - 0x1c], edx
cmp edx, esi
jne 0x1339d
mov eax, dword [0x161dc]
mov dword [eax], esi
jmp 0x133d2
mov ecx, 0x3fff
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [0x161dc], edx
mov dword [edx], esi
mov eax, dword [0x161dc]
mov dword [eax + 4], ebx
inc dword [0x161e0]
jmp 0x133d2
or dword [ebp - 4], 0xffffffff
call fcn.00014daf
ret
Function at 0x149ea
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x149fe
xor al, al
jmp 0x14ac8
mov eax, ebx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x14a04
push edi
sub eax, esi
push ebx
push 0x1497e
mov edi, eax
call sub.ntoskrnl.exe_DbgPrint
pop ecx
lea eax, [edi + ebx]
pop ecx
mov cl, byte [eax - 1]
cmp cl, 0x45
je 0x14a31
cmp cl, 0x65
jne 0x14ac4
mov cl, byte [eax - 2]
cmp cl, 0x58
je 0x14a42
cmp cl, 0x78
jne 0x14ac4
mov cl, byte [eax - 3]
cmp cl, 0x45
je 0x14a4f
cmp cl, 0x65
jne 0x14ac4
cmp byte [eax - 4], 0x2e
jne 0x14ac4
mov ecx, 0x189bc
call dword [sym.imp.HAL.dll_ExAcquireFastMutex]
xor esi, esi
cmp dword [esi*4 + 0x18698], 0
je 0x14a77
inc esi
cmp esi, 0xc8
jl 0x14a62
jmp 0x14ab5
push 0x206b6444
push 0x100
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
test edi, edi
lea edx, [esi*4 + 0x18698]
mov dword [edx], edi
jne 0x14aa5
push 0x149b2
call sub.ntoskrnl.exe_DbgPrint
pop ecx
jmp 0x14ab5
push 0x40
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [edx]
push 0x40
pop ecx
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x189bc
call dword [sym.imp.HAL.dll_ExReleaseFastMutex]
mov al, 1
jmp 0x14ac6
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x6ea8a690
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.6ea992d0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.6ea992d0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x6ea8a6f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x6eba7054]
test esi, esi
jle 0x6ea8a810
mov eax, dword [0x6eba7058]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x6ea8a724
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6ea8a7a7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6ea8a710
mov dword [esp], ebx
call fcn.6ea8aee0
mov edi, eax
test eax, eax
je 0x6ea8a837
mov eax, dword [0x6eba7058]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6ea8b020
mov edx, dword [0x6eba7058]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6ea8a817
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6ea8a7a0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x6ea8a7b0
add dword [0x6eba7054], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x6eba7058]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6ea8a7a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6ea8a690
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x6ea8a72e
mov eax, dword [0x6eba7058]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6ea8a690
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6ea8a690
lea esi, [esi]
nop
Function at 0x6ea8ab50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6eba7064
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6eba705c]
sub esp, 4
test ebx, ebx
je 0x6ea8aba5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6ea8ab9e
test esi, esi
je 0x6ea8ab9e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6ea8ab80
mov dword [esp], 0x6eba7064
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6ea8aee0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x6ea80000], 0x5a4d
jne 0x6ea8af05
mov ecx, dword [0x6ea8003c]
cmp dword [ecx + 0x6ea80000], 0x4550
lea edx, [ecx + 0x6ea80000]
je 0x6ea8af10
ret
cmp word [ecx + 0x6ea80018], 0x10b
jne 0x6ea8af05
push esi
movzx eax, word [ecx + 0x6ea80014]
push ebx
movzx esi, word [ecx + 0x6ea80006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x6ea80000
test si, si
je 0x6ea8af58
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6ea8af4e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x6ea8af5a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x6ea8af40
xor eax, eax
pop ebx
pop esi
ret

Function at 0x6ea90290
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [0x6eba70c0], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
sub esp, 0x10
mov dword [0x6eba70c4], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x6ea90300
mov dword [esp + 4], 0x6ea901a0
mov dword [esp], eax
mov dword [0x6eba70bc], eax
call fcn.6ea99b50
test eax, eax
jne 0x6eb56d79
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x6ea902ea
Function at 0x6ea9c3c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x80]
mov esi, 0x6eb60df5
push ebx
sub esp, 0x9c
mov eax, dword [str.not_enough_space_for_format_expansion__Please_submit_full_bug_report_at_https:__gcc.gnu.org_bugs__:_n]
mov dword [ebp - 0x81], eax
mov eax, dword [0x6eb60e59]
mov dword [ebp - 0x1c], eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
lea eax, [edx + 0x84]
and eax, 0xfffffff0
call fcn.6ea8b1c0
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x81]
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
lea eax, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 8], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x8c], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x8c]
mov byte [ebx + edx + 0x68], 0
mov dword [esp], ebx
call fcn.6eb55980
nop
nop
nop
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x6eb5e248], 0
jne 0x6ea9c4e6
mov byte [0x6eb5e248], 1
call fcn.6eb537f0
test eax, eax
je 0x6ea9c4b4
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call fcn.6ea8a340
mov dword [esp], 2
mov esi, dword [fcn.6ea992d0]
mov edi, eax
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp], 2
test edx, edx
je 0x6ea9c4a4
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x6eb615f9
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x6eb56164
jmp 0x6eb5615c
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x6ea9c46a
mov dword [esp], 2
call dword [0x6eb5d0a0]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sub.msvcrt.dll_fwrite
jmp 0x6eb56157
mov dword [esp], 2
call dword [0x6eb5d0a0]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x6eb615a8
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
call sub.msvcrt.dll_abort
mov dword [esp], edi
call fcn.6ea99a38
call fcn.6eb53b20
call fcn.6eb536e0
call fcn.6eb53820
jmp 0x6eb56157
Function at 0x439470
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a1d1
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x4c4014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push esi
lea ecx, [ebp - 0x230]
call fcn.00403570
mov dword [ebp - 4], 0
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0047969d
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4394f0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00402e00
xor eax, eax
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 1
call fcn.00435ae0
mov ecx, dword [ebp - 0x250]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 1
jb 0x43975b
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
push ecx
cmovae eax, dword [ebp - 0x260]
push eax
push 1
push str._.
push ecx
push dword [ebp - 0x264]
lea ecx, [ebp - 0x27c]
call fcn.004031a0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x27c]
cmp dword [ebp - 0x268], 8
lea ecx, [ebp - 0x230]
push dword [ebp - 0x26c]
cmovae eax, dword [ebp - 0x27c]
push eax
call fcn.00402f10
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x268]
cmp ecx, 8
jb 0x4395fb
mov edx, dword [ebp - 0x27c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4395f1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x439760
push ecx
push edx
call fcn.00469a08
add esp, 8
xor eax, eax
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea edx, [ebp - 0x248]
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.00435e50
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x230]
call fcn.00435c80
lea eax, [ebp - 0x230]
cmp esi, eax
je 0x43966a
cmp dword [ebp - 0x21c], 8
mov ecx, esi
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.00402e00
mov ecx, dword [ebp - 0x234]
cmp ecx, 8
jb 0x4396aa
mov edx, dword [ebp - 0x248]
lea ecx, [ecx*2 + 2]
mov eax, edx
invalid
stc
add byte [eax], dl
Function at 0x407ae0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
jmp 0x407afa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407b01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407af0
mov eax, 1
add ebx, ebx
jne 0x407b13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407b08
jne 0x407b24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407b08
xor ecx, ecx
sub eax, 3
jb 0x407b38
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x407baa
mov ebp, eax
add ebx, ebx
jne 0x407b43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407b50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x407b74
inc ecx
add ebx, ebx
jne 0x407b60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407b55
jne 0x407b71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407b55
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x407b94
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x407b85
jmp 0x407af6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x407b94
add edi, ecx
jmp 0x407af6
pop esi
mov edi, esi
mov ecx, 0x2d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x407bb2
cmp byte [edi], 1
jne 0x407bb2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x407bb7
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x407c26
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x708c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x407be4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7090]
or eax, eax
je 0x407c20
mov dword [ebx], eax
add ebx, 4
jmp 0x407c01
call dword [esi + 0x70a0]
mov ebp, dword [esi + 0x7094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x407c5a
sub esp, 0xffffff80
jmp 0x401d10
Function at 0x4016a0
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], ecx
mov ecx, 0x46b036
call fcn.0040c830
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 8], 1
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
push 1
lea ecx, [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x10]
push eax
push 0
push 0x400
push 0x400
push 1
push 0
push 0x40000003
push str..pipe_testspipe
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0xffffffff
jne 0x401769
push 0x402a20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, 0x469060
call fcn.004040a0
mov ecx, eax
call fcn.00404200
mov eax, dword [ebp - 4]
mov dword [eax], 0
push 0x402a20
push 0x402a20
push 0x44c414
push 0x469060
call fcn.00401bc0
add esp, 8
mov ecx, eax
call fcn.00404200
mov ecx, eax
call fcn.00404200
jmp 0x401850
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x468f30], eax
cmp dword [0x468f30], 0
jne 0x4017b4
push 0x402a20
push 0x402a20
push 0x44c4bc
push 0x469060
call fcn.00401bc0
add esp, 8
mov ecx, eax
call fcn.00404200
mov ecx, eax
call fcn.00404200
jmp 0x401850
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov edx, dword [0x468f30]
mov dword [ebp - 0x14], edx
push 0x402a20
push 0x44c4d0
push 0x469060
call fcn.00401bc0
add esp, 8
mov ecx, eax
call fcn.00404200
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x401850
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x401850
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x468f30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x402a20
push 0x402a20
push 0x44c4e4
push 0x469060
call fcn.00401bc0
add esp, 8
mov ecx, eax
call fcn.00404200
mov ecx, eax
call fcn.00404200
mov esp, ebp
pop ebp
ret