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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x60
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x5c], eax
lea eax, [esp]
mov dword [esp + 0x10], 0x44
push eax
lea eax, [esp + 0x14]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x403180
movlpd qword [esp + 0x3c], xmm0
movlpd qword [esp + 0x44], xmm0
movlpd qword [esp + 0x4c], xmm0
movlpd qword [esp + 0x54], xmm0
movlpd qword [esp + 0x5c], xmm0
movlpd qword [esp + 0x64], xmm0
movlpd qword [esp + 0x6c], xmm0
movlpd qword [esp + 0x74], xmm0
movaps xmmword [esp + 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4011fa
push 0x401680
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.00401470
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [esp + 0x5c]
mov eax, 1
xor ecx, esp
call fcn.004017da
mov esp, ebp
pop ebp
ret
push 0x401440
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.00401220
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
call section..text
int3

Function at 0x401fe0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40201f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40201f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40201f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40201f
cmp dword [ecx + 0x74], 0xe
jbe 0x40201f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10169940
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x101838ac], 0
mov dword [0x101838b0], 0
mov dword [0x101838bc], 0
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x10169a9d
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x101838a4], 0x25d2
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x101838ac], edx
mov ecx, dword [ebp - 0x20]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x101838b0], edx
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x101838b4], cl
mov dword [0x101838a4], 0x1914
mov edi, dword [ebp - 0x20]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x101838a4], 0x1987
mov dword [0x101838a8], 0x18d0
mov cl, byte [0x101838b4]
mov edx, dword [0x101838b0]
mov byte [edi + edx], cl
mov edx, dword [0x101838ac]
movzx edx, byte [edi + edx]
mov ebx, dword [0x101838b0]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x101838bc], ebx
mov dword [0x101838a4], 0x1f44
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov cl, byte [edx + ecx]
xor cl, byte [edi + ebx]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
mov byte [ebx + edx], cl
add edx, 1
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
mov dword [ebp - 0x38], edx
je 0x10169a9d
mov eax, dword [0x101838ac]
mov ecx, dword [0x101838b0]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], edx
jmp 0x10169999
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10169aa5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [0x101838a4], 0x1baf
mov dword [ebp - 0x10], eax
call fcn.10169da1
xor ecx, ecx
mov edx, eax
mov dword [0x101838a4], 0x1202
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov ebx, dword [0x101838a8]
mov dword [ebp - 0x14], eax
mov eax, ebx
add eax, 0xffffe1a3
mov dword [0x101838a8], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + esi], 0x4550
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
jne 0x10169b1a
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
add ecx, 0xffffce46
mov dword [0x101838a4], ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov dword [0x101838a8], 0x219f
mov eax, dword [eax + 0x78]
mov dword [0x101838a4], 0xe0a
mov edx, dword [ebp - 0x20]
add edx, dword [edx + eax + 0x20]
mov esi, dword [ebp - 0x20]
mov edi, dword [esi + eax + 0x18]
cmp edi, 0
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], ecx
je 0x10169c39
xor eax, eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov esi, dword [ebp - 0x30]
mov edi, dword [esi + ecx*4]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [ebp - 0x48]
add ecx, edx
mov esi, dword [ebp - 0x20]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x51], bh
mov byte [ebp - 0x52], cl
je 0x10169bd9
mov eax, dword [ebp - 0x50]
add eax, 1
mov cl, byte [ebp - 0x51]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x52]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x4c], eax
jne 0x10169b88
mov al, byte [ebp - 0x52]
test al, 1
jne 0x10169c16
jmp 0x10169be2
xor eax, eax
mov dword [0x101838a4], 0x2122
mov ecx, dword [ebp - 0x40]
add ecx, 2
mov edx, dword [ebp - 0x44]
add edx, 1
mov esi, dword [ebp - 0x28]
cmp edx, esi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], eax
jb 0x10169b6e
jmp 0x10169c39
mov eax, dword [ebp - 0x40]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x2c]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x20]
add edi, dword [edx + ecx*4]
mov dword [0x101838a4], 0x12b1
mov dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x34]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10169c44
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 1
lea esi, [ebp - 0x24]
mov dword [0x101838a8], 0x2139
mov dword [0x101838a4], 0xad4
mov byte [ebp - 0x24], 0x56
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edx
jmp 0x10169cb7
mov dword [0x101838a4], 0x1396
call fcn.1016a5c9
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call fcn.1016a704
mov dword [0x101838a4], 0xb56
cmp eax, 0
mov dword [ebp - 0x38], eax
je 0x10169d99
jmp 0x10169cdf
mov eax, dword [ebp - 0x34]
mov cl, byte [eax + 0x1016d41a]
mov dl, byte [eax + 0x1016d3eb]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x34], eax
je 0x10169c7f
jmp 0x10169cb7
mov eax, dword [ebp - 0x38]
mov dword [0x101838a4], 0x22a
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x101838a8], 0xc23
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.1016a272
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [0x101838a4], 0x2dce
mov dword [ecx + 0x3c], 0xc0
mov edx, dword [0x101838a8]
add edx, 0x39b
mov dword [0x101838a8], edx
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0xc], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x2c], ecx
add ecx, 0x14c4
mov esi, dword [ebp - 0x3c]
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x10169d90
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x1016a9e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x101838b0], 0
mov byte [0x101838b4], 0
mov dword [0x101838a4], 0xb4
mov dword [0x101838ac], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x1016aa40
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov dword [0x101838ac], 0
mov dword [ebp - 0x20], eax
jmp 0x1016aa72
mov eax, dword [ebp - 0x1c]
mov dword [0x101838a4], 0x14fa
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x101838ac]
add eax, 1
mov dword [0x101838ac], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1016aa40
jmp 0x1016aa2f
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x101838b8], 0
mov edx, dword [0x101838b0]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x101838b8], edi
mov eax, edi
cdq
idiv ecx
mov dword [0x101838b0], edx
mov dword [0x101838a8], 0x1128
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x101838b4], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov cl, byte [0x101838b4]
mov edx, dword [0x101838b0]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov dword [0x101838a8], 0x1c9
mov edx, dword [0x101838ac]
add edx, 1
mov dword [0x101838ac], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x1016aa72
jmp 0x1016aa27
Function at 0x1016ab43
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov eax, dword [0x101838a4]
add eax, 0xfffff426
mov dword [0x101838a4], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x101838a8], 0xb46
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1016ab9f
mov eax, dword [ebp - 0x14]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
jge 0x1016abb5
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
jne 0x1016ab88
mov eax, dword [ebp - 0x18]
mov ecx, dword [0x101838a4]
mov edx, ecx
add edx, 0xfffffe97
mov dword [0x101838a8], edx
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
jne 0x1016ac53
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x1016ac53
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x1016ac53
mov eax, dword [ebp - 0x20]
add eax, 0x25fa
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [0x101838a4], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x14], 0x64
jne 0x1016ac53
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1016ac53
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x1016ac53
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x28], eax
je 0x1016ac5a
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x1016ac5a
mov eax, dword [ebp - 0x28]
add esp, 0x28
pop ebp
ret

Function at 0x1016aef8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [fcn.1016aef8]
mov ecx, dword [0x101838a8]
add ecx, 0x1573
mov dword [0x101838a8], ecx
mov ecx, dword [0x101838a4]
add ecx, 0x7e9
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
jne 0x1016af5a
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x1016af5a
mov eax, dword [ebp - 0x10]
mov dword [0x101838a4], eax
mov eax, dword [ebp - 0xc]
add esp, 0x10
pop ebp
ret
mov eax, 0x27b1
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffff000
and ecx, 0xfffff000
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
jmp 0x1016af28
Function at 0x401300
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push str.TeenyWiny
push str.Balaklava
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401338
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0xbc], eax
push str.Times_New
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov eax, dword [ebp + 8]
push eax
call fcn.00401600
add esp, 4
push str.Roman
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x3c], 0xe
mov dword [ebp - 0x4c], 0xa
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call section..text
add esp, 8
test eax, eax
jne 0x40139c
xor eax, eax
jmp 0x4013d5
push 0
push 0
push 0
lea ecx, [ebp - 0xb8]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4013cf
lea edx, [ebp - 0xb8]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40139c
mov eax, dword [ebp - 0xb0]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10d6b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ntoskrnl.exe_ExGetPreviousMode]
test al, al
je 0x10e03
mov eax, dword [sym.imp.ntoskrnl.exe_MmUserProbeAddress]
cmp esi, dword [eax]
jb 0x10e03
push edi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [sym.imp.ntoskrnl.exe_IoFileObjectType]
push edi
push dword [eax]
mov esi, 0x1f01ff
push esi
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
cmp eax, edi
jl 0x10e1f
lea eax, [ebp - 4]
push eax
mov eax, dword [sym.imp.ntoskrnl.exe_IoFileObjectType]
push 1
push dword [eax]
push esi
push edi
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
cmp eax, edi
jl 0x10e59
mov ebx, dword [ebp - 4]
push 0x40
push 0x1000
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
mov dword [ebp - 0x10], 0x400
call dword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
cmp eax, edi
jl 0x10e1f
mov esi, dword [ebp - 8]
jmp 0x10e06
mov ebx, dword [ebp + 8]
push esi
push ebx
call dword [0x13e40]
test eax, eax
jl 0x10e1f
mov ecx, dword [esi]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
cmp dword [ebp - 4], edi
je 0x10e2d
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, dword [ebp - 0xc]
cmp ecx, edi
je 0x10e3a
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp dword [ebp - 8], edi
je 0x10e57
push 0x8000
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
mov dword [ebp - 0x10], edi
call dword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x14026
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
push esi
mov esi, 0xc0000001
test eax, eax
je 0x14079
cmp dword [eax], 0x140b8
jne 0x14079
cmp dword [eax + 4], 0
je 0x14060
mov edx, dword [ebp + 0xc]
inc byte [edx + 0x23]
add dword [edx + 0x60], 0x24
mov ecx, dword [eax + 4]
call dword [sym.imp.ntoskrnl.exe_IofCallDriver]
mov esi, eax
jmp 0x14079
mov ecx, dword [ebp + 0xc]
and dword [ecx + 0x1c], 0
mov eax, 0xc0000010
xor dl, dl
mov esi, eax
mov dword [ecx + 0x18], eax
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x14086
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jge 0x14097
xor eax, eax
jmp 0x1409a
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
xor dl, dl
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x1c], eax
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x1431e
Capabilities:
Get file attributes
Map section object
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x13cc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
xor eax, eax
mov dword [ebp - 0x38], esi
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
call dword [sym.imp.ntoskrnl.exe_KeQuerySystemTime]
mov dword [ebp - 0x28], 4
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlRandom]
xor edx, edx
push 0x1a
pop ecx
div ecx
mov eax, dword [ebp - 0x28]
add dl, 0x61
inc dword [ebp - 0x28]
cmp dword [ebp - 0x28], 0x20
mov byte [ebp + eax - 0x24], dl
jb 0x1435b
push esi
lea eax, [ebp - 0x44]
push eax
push 0x20
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
push esi
push esi
push ebx
mov dword [ebp - 0x24], 0x72647567
mov dword [ebp - 0x44], 0x4e
mov dword [ebp - 0x40], esi
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
test eax, eax
jl 0x14437
push 5
push 0x18
pop edi
push edi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jl 0x14437
push dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x6c]
push 0x8000000
push 4
push esi
lea eax, [ebp - 0x5c]
push eax
push 0xf001f
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x50], 0x240
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateSection]
test eax, eax
jl 0x14437
push 4
push 0x100000
push 1
lea eax, [ebp - 0x28]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x30]
mov dword [ebp - 0x28], esi
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
test eax, eax
jl 0x14437
push esi
push 1
push ebx
push dword [ebp - 0x2c]
call fcn.0001b8ae
cmp dword [ebp - 0x2c], esi
je 0x14447
push dword [ebp - 0x2c]
push 0xffffffffffffffff
call dword [sym.imp.ntoskrnl.exe_ZwUnmapViewOfSection]
cmp dword [ebp - 0x30], esi
je 0x14455
push dword [ebp - 0x30]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x3c]
call fcn.00010d6b
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00010919
leave
ret 4
Function at 0x1447e
Capabilities:
Get file attributes
Set file attributes
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
mov eax, dword [ebp + 0xc]
push esi
push edi
push 0x18
pop ebx
xor esi, esi
push esi
push esi
push 0x60
push 3
push esi
push 0x80
mov dword [ebp - 0x30], eax
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x1f01ff
lea eax, [ebp - 4]
push eax
mov edi, ecx
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], 0x240
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
cmp eax, esi
mov dword [ebp + 0xc], eax
jl 0x14618
push 1
push dword [edi + 0x24]
push dword [ebp - 4]
call fcn.0001c2c7
cmp eax, esi
mov dword [ebp + 0xc], eax
jl 0x14618
test byte [ebp + 0x10], 1
je 0x145bc
push 5
push ebx
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [edi + 0x24]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
cmp eax, esi
mov dword [ebp + 0xc], eax
jl 0x14618
cmp dword [ebp - 0x44], esi
jl 0x14618
jg 0x14533
cmp dword [ebp - 0x48], esi
jbe 0x14618
push 0x47554452
mov ebx, 0x400
push ebx
push 1
mov dword [ebp + 0xc], 0xc0000001
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x14618
push ebx
push esi
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
cmp dword [ebp - 0x44], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
jl 0x14605
jg 0x1457d
cmp dword [ebp - 0x48], esi
jbe 0x14605
push esi
lea eax, [ebp - 0x10]
push eax
push 0x200
push dword [ebp - 8]
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push dword [edi + 0x24]
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
cmp eax, esi
mov dword [ebp + 0xc], eax
jl 0x14605
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
adc dword [ebp - 0xc], esi
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x44]
mov dword [ebp - 0x10], eax
jl 0x1457d
jg 0x145bc
cmp eax, dword [ebp - 0x48]
jb 0x1457d
test byte [ebp + 0x10], 2
je 0x145e4
push 0x14
push 8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [edi + 0x24]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
cmp eax, esi
mov dword [ebp + 0xc], eax
jl 0x14605
test byte [ebp + 0x10], 4
je 0x145fa
push esi
push dword [edi + 0x24]
call fcn.0001c3b1
cmp eax, esi
mov dword [ebp + 0xc], eax
jl 0x14605
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ebp - 4], esi
cmp dword [ebp - 8], esi
je 0x14618
push 0x47554452
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 4], esi
pop edi
pop esi
pop ebx
je 0x14629
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp + 0xc]
leave
ret 0xc