joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c6c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
mov esi, ecx
push esi
push 0x42c530
push 0
push 0
call fcn.004534cd
add esp, 0x18
mov dword [ebp - 4], eax
test eax, eax
je 0x42c701
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 0x1c]
call fcn.0043f6b0
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42c710
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov al, byte [esi + 0x14]
test al, al
je 0x42c727
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
xor edi, edi
cmp dword [esi + 4], edi
mov byte [esi + 0x14], 1
mov byte [ebp - 1], 1
jle 0x42c777
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov byte [ebp - 1], 1
push 0
push 0
push esi
push 0x42c530
push 0
push 0
call fcn.004534cd
add esp, 0x18
mov dword [ebp - 8], eax
test eax, eax
je 0x42c78b
lea ecx, [ebp - 8]
push ecx
lea ecx, [esi + 0x1c]
call fcn.0043f6b0
lea edx, [esi + 0xc]
push edx
call ebx
inc edi
cmp edi, dword [esi + 4]
jl 0x42c742
mov eax, dword [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov al, byte [ebp - 1]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, esi
mov byte [ebp - 1], 0
call fcn.0042c4c0
mov al, byte [ebp - 1]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42d230
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x48d814]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
push 0x400
lea eax, [ebp - 0x404]
push 1
push eax
mov edi, ecx
call fcn.00451a15
add esp, 0x10
test eax, eax
jle 0x42d28e
push eax
lea ecx, [ebp - 0x404]
push ecx
push edi
call fcn.0042ef00
push esi
push 0x400
lea edx, [ebp - 0x404]
push 1
push edx
call fcn.00451a15
add esp, 0x1c
test eax, eax
jg 0x42d265
push esi
call fcn.00451dc3
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
xor ecx, ebp
pop esi
call fcn.0045075f
mov esp, ebp
pop ebp
ret 4
Function at 0x42db80
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x48d814]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x624], esi
mov word [ebp - 0x20c], ax
call fcn.00451390
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x412]
push eax
mov word [ebp - 0x414], dx
call fcn.00451390
push 0x104
lea ecx, [ebp - 0x61c]
push esi
push ecx
mov byte [ebp - 0x61d], 1
call fcn.00453382
add esp, 0x24
lea edx, [ebp - 0x61c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push 3
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x20c]
push str._s__d.log
push ecx
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call ebx
test eax, eax
je 0x42dc48
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42dc48
mov byte [ebp - 0x61d], al
mov esi, 2
lea ecx, [ecx]
push esi
lea ecx, [ebp - 0x61c]
push ecx
lea edx, [ebp - 0x20c]
push str._s__d.log
push edx
call edi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x42dcb0
lea ecx, [esi + 1]
push ecx
lea edx, [ebp - 0x61c]
push edx
lea eax, [ebp - 0x414]
push str._s__d.log
push eax
call edi
add esp, 0x10
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x42dcb0
mov byte [ebp - 0x61d], al
dec esi
test esi, esi
jg 0x42dc50
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x414]
push 0x478f1c
push ecx
call edi
mov esi, dword [ebp - 0x624]
add esp, 0xc
push esi
call ebx
test eax, eax
je 0x42dce8
lea edx, [ebp - 0x414]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x61d]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045075f
mov esp, ebp
pop ebp
ret
Function at 0x42dd00
Capabilities:
Check if file exists
Get file attributes
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov edx, edi
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x42dd14
push ebx
push edi
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42dd3a
mov ebx, 3
push 0
push 0x80
push ebx
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x20c], eax
cmp eax, 0xffffffff
je 0x42ddbf
cmp ebx, 3
jne 0x42ddbf
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 4], 0
mov dword [ebp - 8], eax
ja 0x42dd7d
cmp eax, 0x200000
jbe 0x42ddbf
mov edx, dword [esi + 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
push eax
mov dword [esi + 0x20c], 0xffffffff
call fcn.0042db80
add esp, 4
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x20c], eax
mov eax, dword [esi + 0x20c]
pop ebx
cmp eax, 0xffffffff
je 0x42ddfc
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 0x20c]
push 0
lea ecx, [ebp + 8]
push ecx
push 2
push 0x478f44
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x42e800
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x42f370
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push esi
push eax
push 4
push ecx
push 0x42f2e0
push 0
push 0
call fcn.004534cd
mov esi, eax
add esp, 0x18
test esi, esi
je 0x42f3a4
cmp byte [ebp + 0xc], 0
jne 0x42f3a4
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x432630
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46faeb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x48d814]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x50]
xor eax, eax
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], eax
mov byte [ecx + 4], al
mov dword [ebp - 4], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
push 0xffffffffffffffff
mov dword [esi + 0x48], eax
push eax
mov dword [esi + 0x4c], eax
call fcn.004017f0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x438350
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470470
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
mov eax, dword [0x48d814]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [ecx + 8], ebx
jne 0x4383bf
push 0x16
push str.Statement::Set_string_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x24], bl
call fcn.00402920
mov dword [ebp - 4], ebx
push str.No_statement_has_been_prepared.
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x70]
push ecx
call fcn.00433230
add esp, 0xc
push 0x48705c
lea edx, [ebp - 0x70]
push edx
call fcn.00450919
cmp dword [ecx + 0x14], ebx
jne 0x4383ee
push 0x16
push str.Statement::Set_string_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x24], bl
call fcn.00402920
mov dword [ebp - 4], 1
push str.The_statement_does_not_take_parameters.
jmp 0x4383a1
mov edx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
push edx
mov edx, dword [ebp + 8]
push edx
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x450043
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x48f238], 0
push esi
jne 0x44ffb6
call fcn.0044fedc
test eax, eax
je 0x44fff9
mov eax, dword [0x48f238]
cmp eax, 1
jne 0x44ffd7
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x44fff9
pop esi
ret
push eax
call dword [0x48f240]
test eax, eax
jne 0x450041
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x44fffd
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x48f238]
call dword [0x48f240]
mov edi, eax
test edi, edi
je 0x450022
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x45003e
mov edi, esi
add esi, 0xff0
push edi
push dword [0x48f238]
call dword [0x48f23c]
add edi, 0x10
cmp edi, esi
jb 0x45002a
mov eax, edi
pop edi
pop esi
ret
jmp 0x44ffa3

Function at 0x45075f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48d814]
jne 0x450769
repz ret
jmp fcn.0045780c

Function at 0x463de2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00457147
and dword [ebp - 4], 0
cmp dword [0x48fe04], 0
mov ebx, eax
jne 0x463e93
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x463f44
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x47eb40
push edi
call esi
test eax, eax
je 0x463f44
push eax
call fcn.004570d5
mov dword [esp], 0x47eb30
push edi
mov dword [0x48fe04], eax
call esi
push eax
call fcn.004570d5
mov dword [esp], 0x47eb1c
push edi
mov dword [0x48fe08], eax
call esi
push eax
call fcn.004570d5
mov dword [esp], 0x47eb00
push edi
mov dword [0x48fe0c], eax
call esi
push eax
call fcn.004570d5
pop ecx
mov dword [0x48fe14], eax
test eax, eax
je 0x463e93
push 0x47eae8
push edi
call esi
push eax
call fcn.004570d5
pop ecx
mov dword [0x48fe10], eax
mov eax, dword [0x48fe10]
cmp eax, ebx
je 0x463eeb
cmp dword [0x48fe14], ebx
je 0x463eeb
push eax
call fcn.00457150
push dword [0x48fe14]
mov esi, eax
call fcn.00457150
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x463eeb
test edi, edi
je 0x463eeb
call esi
test eax, eax
je 0x463ee2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x463ee2
test byte [ebp - 0xc], 1
jne 0x463eeb
or dword [ebp + 0x10], 0x200000
jmp 0x463f24
mov eax, dword [0x48fe08]
cmp eax, ebx
je 0x463f24
push eax
call fcn.00457150
pop ecx
test eax, eax
je 0x463f24
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x463f24
mov eax, dword [0x48fe0c]
cmp eax, ebx
je 0x463f24
push eax
call fcn.00457150
pop ecx
test eax, eax
je 0x463f24
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48fe04]
call fcn.00457150
pop ecx
test eax, eax
je 0x463f44
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x463f46
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x11f08
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
jmp fcn.0002087e

Function at 0x1578e
Capabilities:
Get system information on windows

Disassembly:
push 0x20
push 0x13210
call fcn.0001221c
mov byte [ebp - 0x19], 1
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x20]
push eax
push edi
push edi
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
je 0x157c5
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x158d5
mov esi, 0x50764476
push esi
push dword [ebp - 0x20]
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
call edi
mov ebx, eax
test ebx, ebx
je 0x157f4
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push ebx
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
jge 0x157f4
mov byte [ebp - 0x19], 0
cmp byte [ebp - 0x19], 0
jne 0x15809
test ebx, ebx
je 0x157b7
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x157b7
push esi
mov esi, 0x208
push esi
push 0
call edi
mov edi, dword [ebp + 8]
mov dword [edi], eax
test eax, eax
jne 0x1582b
mov eax, dword [ebp + 0xc]
and dword [eax], 0
mov eax, dword [ebp + 0x10]
and dword [eax], 0
jmp 0x157b7
movzx eax, word [ebx + 0x1e]
lea eax, [eax + ebx + 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
push 1
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
push esi
push 0
push dword [edi]
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov edi, dword [edi]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x1585f
push 0xb
pop ecx
mov eax, 0x17412
mov esi, eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x15879
sub eax, ecx
sar eax, 1
movzx ecx, word [ebp - 0x28]
push ecx
push dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
lea eax, [ecx + eax*2]
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
jmp 0x158cc
mov dword [ebp - 4], 0xfffffffe
mov al, 1
call fcn.00012261
ret 0xc
Function at 0x15aa8
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push 0x50764476
mov esi, 0x208
push esi
xor ebx, ebx
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
cmp edi, ebx
je 0x15bce
push esi
push ebx
push edi
call sub.ntoskrnl.exe_memset
add esp, 0xc
push 0x1745e
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], 0x240
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenSymbolicLinkObject]
test eax, eax
jl 0x15b52
xor eax, eax
mov word [ebp - 0x10], ax
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], edi
mov word [ebp - 0xe], si
call dword [sym.imp.ntoskrnl.exe_ZwQuerySymbolicLinkObject]
test eax, eax
jl 0x15b52
movzx eax, word [ebp - 0x10]
shr eax, 1
lea esi, [eax - 1]
jmp 0x15b4e
cmp word [edi + esi*2], 0x5c
je 0x15b99
dec esi
cmp esi, ebx
jg 0x15b46
push ebx
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push 0x7ffe0030
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x15bce
cmp word [0x7ffe0032], 0x3a
jne 0x15bce
cmp word [0x7ffe0034], 0x5c
jne 0x15bce
mov eax, 0x7ffe0034
movzx ecx, word [eax]
mov edx, dword [ebp + 8]
mov word [edx + eax - 0x7ffe0034], cx
inc eax
inc eax
cmp cx, bx
jne 0x15b82
jmp 0x15bca
mov ecx, dword [ebp + 8]
sub eax, esi
add eax, eax
mov dword [ebp - 8], eax
add eax, ecx
push eax
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x15b52
push dword [ebp - 8]
lea eax, [edi + esi*2]
push eax
push dword [ebp + 8]
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
push ebx
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, 1
jmp 0x15bd0
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x15e94
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
sub esp, 0x18
cmp word [eax], cx
je 0x15eb0
xor al, al
jmp 0x15fa8
push esi
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
je 0x15ec5
xor al, al
jmp 0x15fa7
mov eax, dword [esi + 0x3c]
movzx ecx, word [esi + 6]
push ebx
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x38]
push eax
push dword [esi + 0x50]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x54]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
call fcn.00015e74
push 0x50764476
mov ebx, eax
push ebx
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x15f06
xor al, al
jmp 0x15fa6
push edi
push ebx
push 0
push eax
call sub.ntoskrnl.exe_memset
movzx eax, word [esi + 0x14]
lea edi, [eax + esi + 0x18]
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
jbe 0x15f4a
lea esi, [edi + 8]
mov dword [ebp - 8], eax
push dword [ebp - 0xc]
push dword [esi + 8]
call fcn.00015e74
push dword [ebp - 0x10]
mov dword [esi + 8], eax
push dword [esi]
call fcn.00015e74
mov dword [esi], eax
add esi, 0x28
dec dword [ebp - 8]
jne 0x15f28
mov eax, dword [ebp - 4]
imul eax, eax, 0x28
add eax, edi
mov ecx, dword [eax - 0x1c]
mov edx, dword [eax - 0x18]
add edx, ecx
cmp edx, ebx
jbe 0x15f63
sub ebx, ecx
mov dword [eax - 0x18], ebx
push dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
push dword [ebp + 8]
push ebx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
cmp dword [ebp - 4], 0
jbe 0x15f9e
lea esi, [edi + 0x14]
mov edi, dword [ebp - 4]
mov eax, dword [esi]
add eax, dword [ebp + 8]
push dword [esi - 4]
push eax
mov eax, dword [esi - 8]
add eax, ebx
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
add esi, 0x28
dec edi
jne 0x15f81
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov al, 1
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x168b6
Capabilities:
Parse pe header

Disassembly:
push 0x114
push 0x13230
call fcn.0001221c
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [0x14294]
cmp eax, ecx
je 0x16a0f
cmp dword [0x14288], ecx
je 0x16a0f
cmp dword [0x14290], ecx
je 0x16a0f
cmp dword [0x1428c], ecx
je 0x16a0f
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push ecx
call eax
lea eax, [ebp - 0x2c]
push eax
call dword [0x14290]
sub eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
add eax, ebx
mov esi, eax
push esi
call dword [0x1428c]
test al, al
je 0x16931
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x16a4e
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x16a45
mov eax, dword [ebx + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
jne 0x16a45
lea esi, [eax + 0x18]
push 0x38
pop ecx
lea edi, [ebp - 0x124]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0xc4]
lea esi, [eax + ebx]
mov edi, dword [esi + 0x1c]
add edi, ebx
mov ebx, dword [esi + 0x20]
add ebx, dword [ebp + 0x10]
mov ecx, dword [esi + 0x24]
add ecx, dword [ebp + 0x10]
mov dword [ebp - 0x34], ecx
mov eax, dword [esi + 0x10]
mov dword [ebp + 0xc], eax
xor edx, edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [esi + 0x14]
jae 0x16a45
mov eax, dword [ebx + edx*4]
add eax, dword [ebp + 0x10]
movzx ecx, word [ecx + edx*2]
mov edx, dword [ebp + 0xc]
lea ecx, [ecx + edx - 1]
mov ecx, dword [edi + ecx*4]
add ecx, dword [ebp + 0x10]
mov dword [ebp - 0x30], ecx
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
push 1
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
push dword [ebp + 8]
lea eax, [ebp - 0x44]
push eax
call dword [0x14294]
push 1
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [0x14288]
test eax, eax
lea eax, [ebp - 0x24]
push eax
jne 0x169fb
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x30]
jmp 0x16a4e
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
inc dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x1c]
jmp 0x16986
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
sub eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
mov esi, eax
push esi
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x16a45
jmp 0x16923
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.00012261
ret 0xc
Function at 0x16a5c
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [esi], ax
je 0x16a79
xor al, al
jmp 0x16b10
mov eax, dword [esi + 0x3c]
cmp dword [esi + eax], 0x4550
jne 0x16a72
push 0
push 0x174ae
push 1
push esi
call fcn.00015fb2
test eax, eax
je 0x16a72
sub eax, esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 5
push 1
push esi
call dword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
test eax, eax
je 0x16a72
push ebx
push edi
jmp 0x16b05
and dword [ebp - 4], 0
lea edx, [esi - 8]
shr edx, 1
test edx, edx
jle 0x16b03
mov ecx, dword [ebp - 4]
movzx ecx, word [eax + ecx*2 + 8]
mov edi, ecx
and edi, 0xf000
mov ebx, 0x3000
cmp di, bx
jne 0x16afb
and ecx, 0xfff
add ecx, dword [eax]
add ecx, dword [ebp + 8]
mov edi, dword [ecx]
sub edi, dword [ebp + 0xc]
cmp edi, dword [ebp - 8]
jne 0x16afb
mov edi, 0x5c7
cmp word [ecx - 2], di
je 0x16b15
inc dword [ebp - 4]
cmp dword [ebp - 4], edx
jl 0x16ac1
add eax, esi
mov esi, dword [eax + 4]
test esi, esi
jne 0x16ab4
xor al, al
pop edi
pop ebx
pop esi
leave
ret 0xc
mov eax, dword [ecx + 4]
sub eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
add eax, dword [ebp + 8]
mov dword [ecx], eax
mov al, 1
jmp 0x16b0e

Function at 0x25d32
Capabilities:
Encode data using xor

Disassembly:
mov byte [esp], dh
pushfd
push dword [esp + 4]
lea esp, [esp + 0xc]
je 0x25bdf