joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47d45a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004638b0
mov eax, dword [0x499780]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00478c36
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x47d49c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x47d5f8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004639f0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4c6440]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0047cfe3
mov ecx, dword [esi*4 + 0x4c6440]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x47d5f1
cmp eax, dword [ecx + edi + 0x24]
jne 0x47d5f1
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47d5f1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0047cfe3
add esp, 0x14
test edx, edx
jl 0x47d5f1
jg 0x47d567
test eax, eax
jb 0x47d5f1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x47d5f1
jl 0x47d581
cmp dword [ebp - 0x1008], eax
ja 0x47d5f1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x47d59f
test ebx, ebx
je 0x47d5d8
cmp ecx, edi
jae 0x47d5d8
mov al, byte [ecx]
cmp al, 0xd
jne 0x47d5b9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x47d5c5
cmp byte [ecx + 1], 0xa
jne 0x47d5c5
inc ecx
jmp 0x47d5c5
movzx eax, al
movsx eax, byte [eax + 0x499ac8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x47d59f
cmp edx, ebx
jne 0x47d59f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x47d5f6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004644c5
leave
ret
Function at 0x47f365
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x47f402
push ebx
push esi
call fcn.0047f32e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0047f2c2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x47f3af
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x47f401
push edi
push eax
call fcn.00479da0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x47f3cf
call fcn.00477472
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x47f400
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0047f2c2
add esp, 0x20
test eax, eax
jne 0x47f3ee
push edi
call fcn.00477472
jmp 0x47f3f6
push ebx
call fcn.00477472
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4821fb
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00479ab5
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x48226a
cmp esi, dword [ebp - 4]
je 0x482265
cmp dword [ebp + 0xc], 0
je 0x482265
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x482242
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00481d4d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x48226c
xor eax, eax
inc eax
jmp 0x48226c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4822d1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x499780]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00479ab5
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00479ab5
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x482348
cmp word [ecx], dx
je 0x482348
mov eax, dword [0x490184]
push edi
dec eax
push eax
push 0x490070
call fcn.00482270
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4823bb
cmp word [eax], dx
je 0x4823bb
mov eax, dword [edi]
test eax, eax
je 0x48236c
cmp word [eax], dx
je 0x48236c
lea eax, [ebp - 0x10]
push eax
call fcn.00481c53
jmp 0x482375
lea eax, [ebp - 0x10]
push eax
call fcn.00481cee
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4823e5
mov eax, dword [0x49006c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x48fd60
call fcn.00482270
add esp, 0xc
test al, al
je 0x4823e5
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4823b0
cmp word [eax], di
je 0x4823b0
lea eax, [ebp - 0x10]
push eax
call fcn.00481c53
pop ecx
jmp 0x4823e7
lea eax, [ebp - 0x10]
push eax
call fcn.00481cee
jmp 0x4823ad
mov eax, dword [edi]
test eax, eax
je 0x4823d2
cmp word [eax], dx
je 0x4823d2
lea eax, [ebp - 0x10]
push eax
call fcn.00481c08
pop ecx
jmp 0x4823e5
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4824b0
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004820f5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4824b0
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4824b0
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4824b0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x48243d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00478757
test ebx, ebx
je 0x4824ab
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00478757
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4824b0
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4824b0
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00469e4f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4824b2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004644c5
leave
ret
Function at 0x4875c5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00487541
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x487734
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x487734
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4876e9
jg 0x487621
test eax, eax
je 0x4876df
push 1
push 0x1000
call fcn.00478083
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x487644
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4876d6
push 0x8000
push ebx
call fcn.0047433e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x48766d
jg 0x487668
cmp ecx, 0x1000
jb 0x48766d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0047bfab
add esp, 0x10
cmp eax, 0xffffffff
je 0x4876b2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x487668
jl 0x487699
test ecx, ecx
jne 0x48765a
push dword [ebp - 0xc]
push ebx
call fcn.0047433e
push esi
call fcn.00477472
add esp, 0xc
xor ebx, ebx
jmp 0x487742
cmp byte [edi + 0x24], 0
je 0x4876c9
cmp dword [edi + 0x20], 5
jne 0x4876c9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4876d4
mov ebx, dword [edi + 0x18]
jmp 0x4876d6
xor ebx, ebx
push esi
call fcn.00477472
pop ecx
jmp 0x487742
test ecx, ecx
jg 0x4876ab
jl 0x4876e9
test eax, eax
jae 0x4876ab
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0047d001
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x487709
cmp byte [edi + 0x1c], 0
je 0x4876ab
jmp 0x48773a
push ebx
call fcn.004800cb
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4876ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x487742
cmp byte [edi + 0x1c], 0
je 0x48773f
mov ebx, dword [edi + 0x18]
jmp 0x487742
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0047d001
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x488aa0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x488acd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x488acd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401080
Capabilities:
Create directory
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x10
cmp word [eax], 0
je 0x4011d7
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401098
sub eax, ebx
add eax, 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov esi, eax
sub esp, 0xc
xor eax, eax
nop
movzx edx, word [ebx + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x4010d0
cmp word [esi], 0
je 0x40111e
lea esi, [esi]
lea esi, [esi]
mov eax, esi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4010f8
mov edx, eax
sub edx, esi
cmp esi, eax
je 0x40111e
lea eax, [esi + edx - 2]
cmp word [eax], 0x5c
jne 0x40111e
xor ecx, ecx
mov word [eax], cx
cmp word [esi], 0
jne 0x4010f0
mov eax, dword fs:[0x18]
mov dword [ebp - 0x10], eax
jmp 0x401148
xor edx, edx
mov eax, esi
mov word [edi], dx
call sym._XCOPY_CreateDirectory
test eax, eax
je 0x4011a2
mov eax, 0x5c
mov word [edi], ax
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 8
mov ebx, eax
test eax, eax
jne 0x4011d0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x34]
cmp eax, 0xb7
je 0x4011d0
cmp eax, 3
jne 0x4011a2
mov dword [esp + 4], 0x5c
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcsrchr]
mov edi, eax
test eax, eax
jne 0x401130
mov dword [esp + 4], 0x2f
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcsrchr]
mov edi, eax
test eax, eax
jne 0x401130
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, 1
jmp 0x4011a2
mov eax, 2
jmp 0x4010a6
Function at 0x4040a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x4040f8
cmp byte [esi + ebx - 1], 0xa
je 0x4040cc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x40c504], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x404b70
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x1089e
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
push edi
mov edi, dword [eax + 4]
test ecx, ecx
je 0x108e4
cmp dword [eax + 8], 0x11
jb 0x108e4
cmp edi, 0x11
jb 0x108e4
push ecx
call fcn.00016e0a
mov dword [esi + 0x18], eax
test eax, eax
jl 0x108e4
mov dword [esi + 0x1c], edi
xor edi, edi
xor dl, dl
mov ecx, esi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
and dword [esi + 0x1c], 0
mov eax, 0xc0000001
mov dword [esi + 0x18], eax
mov edi, eax
jmp 0x108d2

Function at 0x108fa
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x60]
movzx edx, byte [eax]
sub edx, 0
je 0x10970
dec edx
dec edx
je 0x10967
dec edx
je 0x1095e
dec edx
je 0x10955
sub edx, 0xa
jne 0x1092f
mov edx, dword [eax + 0xc]
cmp edx, 0x12c800
je 0x1094c
cmp edx, 0x220194
je 0x10943
and dword [ecx + 0x18], 0
and dword [ecx + 0x1c], 0
xor dl, dl
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
xor eax, eax
jmp 0x10977
push eax
push ecx
call fcn.0001089e
jmp 0x10977
push eax
push ecx
call fcn.000174a6
jmp 0x10977
push eax
push ecx
call fcn.000185b8
jmp 0x10977
push eax
push ecx
call fcn.00017f6c
jmp 0x10977
push eax
push ecx
call fcn.00017eca
jmp 0x10977
push eax
push ecx
call fcn.0001701e
pop ebp
ret 8

Function at 0x10b72
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 8]
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0xc]
mov dword [ebp + 0xc], eax
mov byte [ebp + 0xb], 0
call fcn.00017200
test al, al
je 0x10c48
test ebx, ebx
je 0x10c48
cmp dword [ebp + 0xc], 0x1c
jb 0x10c48
mov ecx, 0x1a590
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov byte [ebp + 0xf], al
mov eax, dword [esi + 0x18]
cdq
push edx
push eax
push dword [0x1a59c]
call fcn.000104f2
test eax, eax
je 0x10c1e
mov ebx, dword [ebx + 0x10]
dec ebx
je 0x10c11
dec ebx
je 0x10c08
dec ebx
je 0x10bff
dec ebx
je 0x10bf6
dec ebx
je 0x10bed
dec ebx
jne 0x10c1e
test byte [eax + 0x13c], 0x20
jmp 0x10c18
test byte [eax + 0x13c], 0x10
jmp 0x10c18
test byte [eax + 0x13c], 8
jmp 0x10c18
test byte [eax + 0x13c], 4
jmp 0x10c18
test byte [eax + 0x13c], 2
jmp 0x10c18
test byte [eax + 0x13c], 1
je 0x10c1e
mov byte [ebp + 0xb], 1
mov dl, byte [ebp + 0xf]
mov ecx, 0x1a590
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
cmp byte [ebp + 0xb], 0
je 0x10c48
and dword [edi + 0x1c], 0
and dword [edi + 0x18], 0
xor dl, dl
mov ecx, edi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
xor eax, eax
jmp 0x10c5a
mov ecx, dword [ebp + 0x10]
inc byte [edi + 0x23]
add dword [edi + 0x60], 0x24
mov edx, edi
call dword [sym.imp.ntoskrnl.exe_IofCallDriver]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x10c66
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 0x60]
movzx eax, byte [esi]
sub eax, 0
je 0x10dad
sub eax, 0xe
je 0x10c9f
dec eax
je 0x10ce0
sub eax, 3
jne 0x10d99
push dword [ebp + 0x10]
push esi
push edi
call fcn.00010ad8
jmp 0x10db7
push esi
push edi
push dword [ebp + 8]
call sub.TDI.SYS_TdiMapUserRequest
test eax, eax
jge 0x10ce0
cmp dword [esi + 0xc], 0x210203
jne 0x10d99
mov esi, dword [esi + 0x10]
test esi, esi
je 0x10d99
mov dword [esi], 0x10b24
and dword [edi + 0x18], 0
xor dl, dl
mov ecx, edi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
xor eax, eax
jmp 0x10db7
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x10]
cmp eax, 2
jne 0x10d82
movzx eax, byte [esi + 1]
cmp eax, 6
jg 0x10d4f
je 0x10d43
dec eax
je 0x10d37
dec eax
je 0x10d28
dec eax
je 0x10d19
dec eax
jne 0x10d99
push dword [ebp + 0x10]
push esi
push edi
call fcn.00012948
jmp 0x10db7
push dword [ebp + 0x10]
push esi
push edi
call fcn.0001209c
jmp 0x10db7
push dword [ebp + 0x10]
push esi
push edi
call fcn.00012514
jmp 0x10db7
push dword [ebp + 0x10]
push esi
push edi
call fcn.00012426
jmp 0x10db7
push dword [ebp + 0x10]
push esi
push edi
call fcn.00012732
jmp 0x10db7
sub eax, 7
je 0x10d76
dec eax
je 0x10d6a
sub eax, 0x127ffc
jne 0x10d99
push dword [ebp + 0x10]
push esi
push edi
call fcn.00010b72
jmp 0x10db7
push dword [ebp + 0x10]
push esi
push edi
call fcn.00013642
jmp 0x10db7
push dword [ebp + 0x10]
push esi
push edi
call fcn.000142a0
jmp 0x10db7
cmp eax, 1
jne 0x10d99
cmp byte [esi + 1], 0xb
jne 0x10d99
push dword [ebp + 0x10]
push esi
push edi
call fcn.0001164c
jmp 0x10db7
mov ecx, dword [ebp + 0x10]
inc byte [edi + 0x23]
add dword [edi + 0x60], 0x24
mov edx, edi
call dword [sym.imp.ntoskrnl.exe_IofCallDriver]
jmp 0x10db7
push dword [ebp + 0x10]
push esi
push edi
call fcn.00010a62
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1164c
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [sym.imp.HAL.dll_KfAcquireSpinLock]
push edi
mov edi, dword [ebp + 0xc]
mov ecx, 0x1a590
call ebx
mov byte [ebp + 0xf], al
mov eax, dword [edi + 0x18]
cdq
push edx
push eax
push dword [0x1a5b8]
call fcn.000104f2
test eax, eax
je 0x1178a
push esi
lea esi, [eax - 8]
lea ecx, [esi + 0x1a0]
mov dword [ebp - 8], ecx
call ebx
mov ecx, dword [edi + 4]
xor ebx, ebx
sub ecx, ebx
je 0x11750
dec ecx
je 0x11723
dec ecx
dec ecx
je 0x116f6
dec ecx
je 0x116c3
sub ecx, 3
je 0x116b7
dec ecx
jne 0x1177e
mov dword [ebp - 4], 0xc0000184
jmp 0x1177e
mov ecx, dword [edi + 8]
cmp ecx, ebx
je 0x116e5
mov dword [esi + 0xf0], ecx
mov ecx, dword [edi + 0xc]
mov dword [esi + 0xf4], ecx
mov dword [edi + 8], 0x14cda
jmp 0x1176d
mov dword [esi + 0xf0], ebx
mov dword [esi + 0xf4], ebx
jmp 0x1177e
mov ecx, dword [edi + 8]
cmp ecx, ebx
je 0x11715
mov dword [esi + 0xe0], ecx
mov ecx, dword [edi + 0xc]
mov dword [esi + 0xe4], ecx
mov dword [edi + 8], 0x1378c
jmp 0x1176d
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xe4], ebx
jmp 0x1177e
mov ecx, dword [edi + 8]
cmp ecx, ebx
je 0x11742
mov dword [esi + 0xd0], ecx
mov ecx, dword [edi + 0xc]
mov dword [esi + 0xd4], ecx
mov dword [edi + 8], 0x133ce
jmp 0x1176d
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xd4], ebx
jmp 0x1177e
mov ecx, dword [edi + 8]
cmp ecx, ebx
je 0x11772
mov dword [esi + 0xc8], ecx
mov ecx, dword [edi + 0xc]
mov dword [esi + 0xcc], ecx
mov dword [edi + 8], 0x12a50
mov dword [edi + 0xc], esi
jmp 0x1177e
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], ebx
mov ecx, dword [ebp - 8]
mov dl, al
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
pop esi
mov dl, byte [ebp + 0xf]
mov ecx, 0x1a590
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
xor eax, eax
cmp dword [ebp - 4], eax
pop edi
pop ebx
jge 0x117b6
mov ecx, dword [ebp + 8]
xor dl, dl
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
xor eax, eax
jmp 0x117c9
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
inc byte [edx + 0x23]
add dword [edx + 0x60], 0x24
call dword [sym.imp.ntoskrnl.exe_IofCallDriver]
leave
ret 0xc
Function at 0x13642
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
call fcn.00017200
test al, al
jne 0x1366e
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
inc byte [edx + 0x23]
add dword [edx + 0x60], 0x24
call dword [sym.imp.ntoskrnl.exe_IofCallDriver]
jmp 0x1375a
push ebx
push esi
mov esi, dword [sym.imp.HAL.dll_KfAcquireSpinLock]
push edi
mov ecx, 0x1a590
call esi
mov byte [ebp - 1], al
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x18]
cdq
push edx
push eax
push dword [0x1a59c]
call fcn.000104f2
mov edi, dword [ebp + 8]
test eax, eax
je 0x1372d
lea ebx, [eax - 8]
test byte [ebx + 0x38], 2
je 0x1372d
cmp byte [ebx + 0xd9], 0
jne 0x1372d
call fcn.00017200
test al, al
je 0x1375e
cmp byte [ebx + 0x139], 0
jne 0x1375e
cmp byte [ebx + 0xd7], 0
je 0x1375e
lea ecx, [ebx + 0x13c]
call esi
lea ecx, [edi + 0x58]
lea esi, [ebx + 0xec]
mov edx, dword [esi + 4]
mov dword [ecx + 4], edx
mov dword [ecx], esi
mov dword [edx], ecx
mov dword [esi + 4], ecx
mov dl, al
lea ecx, [ebx + 0x13c]
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov eax, dword [edi + 0x60]
or byte [eax + 3], 1
mov eax, 0x1359e
lea ecx, [edi + 0x38]
xchg dword [ecx], eax
push 0
mov esi, 0x103
push ebx
mov dword [edi + 0x18], esi
call fcn.0001307c
mov dword [ebp - 8], esi
mov dl, byte [ebp - 1]
mov ecx, 0x1a590
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov eax, 0x103
cmp dword [ebp - 8], eax
je 0x13757
mov ecx, dword [ebp + 0x10]
inc byte [edi + 0x23]
add dword [edi + 0x60], 0x24
mov edx, edi
call dword [sym.imp.ntoskrnl.exe_IofCallDriver]
pop edi
pop esi
pop ebx
leave
ret 0xc
mov dl, byte [ebp - 1]
mov ecx, 0x1a590
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov ecx, edi
and dword [ecx + 0x1c], 0
mov esi, 0xc0000184
xor dl, dl
mov dword [ecx + 0x18], esi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, esi
jmp 0x13757