joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f750
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x48268c]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x4844b4], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x40f1a0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x40f490
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.0040f150
je 0x40f7c2
movzx eax, word [esp + 0x234]
mov eax, dword [eax*8 + 0x47efec]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.004489d9
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40f8bf
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.0044b179
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.0044b50f
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40f83d
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x40f884
push esi
call ebp
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.0044b179
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.0044b50f
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x40f8bb
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x40f8ef
xor edi, edi
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x40f8ef
add edi, 1
cmp edi, 3
jl 0x40f886
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x47efec], edx
mov dword [0x47eff4], eax
mov dword [fcn.0040f150], ecx
pop edi
pop esi
pop ebp
pop ebx
movzx edx, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [edx*8 + 0x47efec]
xor ecx, esp
mov dword [0x4844b4], 1
call fcn.004489d9
add esp, 0x230
ret 4
push esi
call ebp
jmp 0x40f8bb
Function at 0x41b180
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
push edi
push 0
push 0x80
push 3
push 0
push 0
push Ordinal_2
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x41b35d
push ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jne 0x41b1d9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
add esp, 0x1c
ret
push esi
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x41b1f7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
pop edi
add esp, 0x1c
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x41b217
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebx
pop edi
add esp, 0x1c
ret
push 0
lea ecx, [esp + 0x20]
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b346
cmp dword [esp + 0x1c], ebx
jne 0x41b346
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x10]
push edx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jl 0x41b35b
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41b35b
lea ecx, [esp + 0xc]
push ecx
push 0x470938
push 1
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
test eax, eax
jl 0x41b333
cmp dword [esp + 0xc], 0
je 0x41b333
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov edi, dword [esp + 0x2c]
mov ecx, edi
call fcn.004124b0
mov esi, eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ecx
push eax
mov ecx, esi
mov dword [esp + 0x28], edx
call fcn.0043295c
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push 0
mov edx, dword [edx + 0x20]
mov ebx, ecx
neg ebx
push ebx
mov ebx, dword [esp + 0x20]
push ebx
push ecx
mov ecx, dword [esp + 0x34]
push 0
push ecx
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, dword [esi + 4]
push 0
push 0
push ecx
push eax
call edx
push esi
mov ecx, edi
call fcn.004124d0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop esi
pop ebx
pop edi
add esp, 0x1c
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop esi
pop ebx
pop edi
add esp, 0x1c
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebx
pop edi
add esp, 0x1c
ret
Function at 0x41c990
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41c9e8
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x465904
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41c9db
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x41c9ea
xor eax, eax
pop esi
leave
ret 4

Function at 0x41f66e
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x461b4d
call fcn.0044be8c
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41f693
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41f6df
call fcn.0041fa16
push eax
lea ecx, [ebp - 0x10]
call fcn.00401de0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041cc24
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010b0
mov eax, esi
call fcn.0044bf64
ret 8

Function at 0x420af0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0041db3d
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x420b27
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00420712
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x42643f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x426478
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0042125f
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00420f32
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x4281e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x42822b
call fcn.0041db3d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42822b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x428246
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00427d9f
test ebx, ebx
mov esi, eax
je 0x428244
test edi, edi
je 0x428244
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x42970e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x429754
call fcn.0041db3d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x429754
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x429797
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x429780
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x429780
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x429794
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4333e2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x433410
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43342e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043334c
jmp 0x43342e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43342e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0043334c
test edi, edi
mov eax, edi
jne 0x433418
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x48602c]
test ecx, ecx
je 0x4334f1
jmp 0x4333e1
ret 8

Function at 0x4489d9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48268c]
jne 0x4489e3
repz ret
jmp fcn.00452337
Function at 0x45a092
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00450554
xor ebx, ebx
cmp dword [0x486dcc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x45a167
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x45a0d2
xor eax, eax
jmp 0x45a22b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x470888
push edi
call esi
cmp eax, ebx
je 0x45a0cb
push eax
call fcn.004504f1
mov dword [esp], 0x470878
push edi
mov dword [0x486dcc], eax
call esi
push eax
call fcn.004504f1
mov dword [esp], 0x470864
push edi
mov dword [0x486dd0], eax
call esi
push eax
call fcn.004504f1
mov dword [0x486dd4], eax
lea eax, [ebp - 8]
push eax
call fcn.0044c214
test eax, eax
pop ecx
pop ecx
je 0x45a135
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044fd42
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x45a167
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004504f1
cmp eax, ebx
pop ecx
mov dword [0x486ddc], eax
je 0x45a167
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004504f1
pop ecx
mov dword [0x486dd8], eax
mov eax, dword [0x486dd8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x45a1e0
cmp dword [0x486ddc], esi
je 0x45a1e0
push eax
call fcn.0045055d
pop ecx
call eax
cmp eax, ebx
je 0x45a1ad
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x486ddc]
call fcn.0045055d
pop ecx
call eax
test eax, eax
je 0x45a1ad
test byte [ebp - 0x18], 1
jne 0x45a1e0
lea eax, [ebp - 0xc]
push eax
call fcn.0044c24b
test eax, eax
pop ecx
je 0x45a1c8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044fd42
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x45a1d7
or dword [ebp + 0x10], 0x200000
jmp 0x45a211
or dword [ebp + 0x10], 0x40000
jmp 0x45a211
mov eax, dword [0x486dd0]
cmp eax, esi
je 0x45a211
push eax
call fcn.0045055d
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x45a211
mov eax, dword [0x486dd4]
cmp eax, esi
je 0x45a211
push dword [ebp - 4]
push eax
call fcn.0045055d
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x486dcc]
call fcn.0045055d
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45fc48
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x48268c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0045fbdd
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004489f0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x45fc97
cmp dword [ebp - 0x1c], 5
jb 0x45fcaf
jmp 0x45fcab
cmp dword [ebp - 0x10], 1
jne 0x45fcaf
cmp dword [ebp - 0x1c], 4
ja 0x45fcab
jne 0x45fcaf
cmp dword [ebp - 0x18], 0
jbe 0x45fcaf
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x47115c
call fcn.0045fab1
test eax, eax
jge 0x45fcd0
mov byte [0x483aa0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004489d9
add ebp, 0x78
leave
ret
Function at 0x7d25a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x682015
lea edi, [esi - 0x281015]
mov dword [edi + 0x397b80], 0x4769b361
push edi
jmp 0x7d25ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7d25d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7d25c0
mov eax, 1
add ebx, ebx
jne 0x7d25e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7d25f4
jne 0x7d2613
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7d2613
dec eax
add ebx, ebx
jne 0x7d2600
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7d25d8
add ebx, ebx
jne 0x7d260f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7d2665
xor ecx, ecx
sub eax, 3
jb 0x7d262b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7d269a
sar eax, 1
mov ebp, eax
jmp 0x7d2636
add ebx, ebx
jne 0x7d2636
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7d2604
inc ecx
add ebx, ebx
jne 0x7d2644
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7d2604
add ebx, ebx
jne 0x7d2651
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7d2646
jne 0x7d2662
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7d2646
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7d2684
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7d2676
jmp 0x7d25c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7d2684
add edi, ecx
jmp 0x7d25c6
pop esi
mov edi, esi
mov ecx, 0x10eea
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7d26a2
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0x7d26a7
lea edi, [esi + 0x3cf000]
mov eax, dword [edi]
or eax, eax
je 0x7d270f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x401d20]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x401e6c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7d26cd
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x401e74]
or eax, eax
je 0x7d2709
mov dword [ebx], eax
add ebx, 4
jmp 0x7d26ea
call dword [esi + 0x401e70]
mov ebp, dword [esi + 0x401e78]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x3d276a]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x7d275b
sub esp, 0xffffff80
jmp 0x401320
Function at 0x10486
Capabilities:
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
xor esi, esi
mov word [ebp - 0x18], si
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
cmp ebx, esi
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
stosd dword es:[edi], eax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x10], esi
stosd dword es:[edi], eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
je 0x10609
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x10609
mov dword [eax], esi
movzx edi, word [ebx + 2]
mov dword [ebp + 8], 0x20
push 0x6e65654b
push edi
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x1050e
dec dword [ebp + 8]
jne 0x104df
xor eax, eax
cmp eax, esi
mov dword [ebp - 0x14], eax
jne 0x10528
mov dword [ebp + 8], 0xc000009a
jmp 0x10604
mov ecx, edi
mov edi, dword [ebp - 0xc]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0xc]
jmp 0x104fb
mov ax, word [ebx + 2]
mov word [ebp - 0x16], ax
push ebx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
push 0x18
pop ebx
push 0x100
push esi
push esi
push esi
push esi
push esi
push 1
push 1
push 0x80
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], eax
push esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x100020
lea eax, [ebp - 8]
mov edi, 0x240
push eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.ntoskrnl.exe_IoCreateFile]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x105f6
push dword [ebp - 8]
lea eax, [ebp - 0x38]
push 0x1000000
push 0x10
push esi
push eax
push 0xf001f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateSection]
cmp eax, esi
mov edi, dword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [ebp + 8], eax
jl 0x105f1
push 4
push 0x100000
push 1
lea eax, [ebp - 0x10]
push eax
push esi
push 0x3e8
push esi
push dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
push dword [ebp - 4]
mov dword [ebp + 8], eax
call edi
push dword [ebp - 8]
call edi
push 0x6e65654b
push dword [ebp - 0x14]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp + 8]
jmp 0x1060e
mov eax, 0xc000000d
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10bbe
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x30
push 0x1ea70
call fcn.000195f0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x10c77
cmp dword [ebp + 0xc], ebx
je 0x10c77
cmp dword [ebp + 0x10], ebx
je 0x10c77
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], esi
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 0x28], eax
mov eax, dword [eax + 0x78]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x10c6e
lea edi, [eax + esi]
mov dword [ebp - 0x30], edi
cmp ebx, dword [edi + 0x18]
jae 0x10c6e
mov eax, dword [edi + 0x20]
lea eax, [eax + ebx*4]
mov eax, dword [eax + esi]
mov dword [ebp - 0x34], eax
add eax, esi
mov dword [ebp - 0x38], eax
mov ecx, dword [edi + 0x24]
lea ecx, [ecx + ebx*2]
movzx ecx, word [ecx + esi]
mov dword [ebp - 0x3c], ecx
movzx ecx, cx
mov edx, dword [edi + 0x1c]
lea ecx, [edx + ecx*4]
mov ecx, dword [ecx + esi]
mov dword [ebp - 0x20], ecx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe__stricmp]
pop ecx
pop ecx
test eax, eax
jne 0x10c61
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + esi + 1]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ebp - 0x1c], 1
jmp 0x10c6e
inc ebx
mov dword [ebp - 0x40], ebx
jmp 0x10c0a
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
jmp 0x10c79
xor eax, eax
call fcn.0001962b
ret 0xc

Function at 0x10fdc
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push 0x34
push 0x1ea80
call fcn.000195f0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov esi, dword [ebp + 8]
cmp esi, ebx
je ObQueryNameString
cmp dword [ebp + 0xc], ebx
je ObQueryNameString
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je IoFileObjectType
mov dword [eax], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], esi
cmp word [esi], 0x5a4d
jne IoGetAttachedDevice
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 0x2c], eax
cmp dword [eax], 0x4550
jne 0x110d4
mov eax, dword [eax + 0x78]
mov dword [ebp - 0x30], eax
cmp eax, ebx
je KeSetEvent
lea edi, [eax + esi]
mov dword [ebp - 0x34], edi
cmp ebx, dword [edi + 0x18]
jae KeGetCurrentThread
mov eax, dword [edi + 0x20]
lea eax, [eax + ebx*4]
mov eax, dword [eax + esi]
mov dword [ebp - 0x38], eax
add eax, esi
mov dword [ebp - 0x3c], eax
mov ecx, dword [edi + 0x24]
lea ecx, [ecx + ebx*2]
movzx ecx, word [ecx + esi]
mov dword [ebp - 0x40], ecx
movzx ecx, cx
mov edx, dword [edi + 0x1c]
lea ecx, [edx + ecx*4]
mov ecx, dword [ecx + esi]
mov dword [ebp - 0x20], ecx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe__stricmp]
pop ecx
pop ecx
test eax, eax
jne 0x1109e
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ebp - 0x1c], 1
jmp 0x110d4
inc ebx
mov dword [ebp - 0x44], ebx
jmp 0x11047
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
jmp ObQueryNameString
xor eax, eax
call fcn.0001962b
ret 0xc