joyce8/EMBER2024-capa huggingface dataset:
Function at 0x642d8438
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x642d870e
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x732946ea
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x7328b6b0
push 0xffffffffffffffff
call fcn.642cf638
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x642d84a2
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.642d84ba
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x642d8702
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x642d86d6
Function at 0x642e7f08
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x642e7f2a
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x642e7f2a
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x642e7f2a
ret
cmp word [ebx + 4], 0x14c
jne 0x642e7f2a
test word [ebx + 0x16], 2
je 0x642e7f2a
test word [ebx + 0x16], 0x100
je 0x642e7f2a
cmp word [ebx + 0x18], 0x10b
jne 0x642e7f2a
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x642e7f2a
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x642e7fb6
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x642e7f4a
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.642cee95
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x642e7f2a
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x642e7fb6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x642e7f2a
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x642e7f2a
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x642e7f2a
ret
cmp word [ebx + 4], 0x14c
jne 0x642e7f2a
test word [ebx + 0x16], 2
je 0x642e7f2a
test word [ebx + 0x16], 0x100
je 0x642e7f2a
cmp word [ebx + 0x18], 0x10b
jne 0x642e7f2a
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x642e7f2a
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x642e7fb6
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x642e7f4a
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.642cee95
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x642e7f2a
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x642e806d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x642e80c6
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x642e806d
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x642e807c
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x646edd1f
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x642e80cd
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.642cef43
cmp eax, dword [ebp + 0xc]
pop eax
je 0x642e816c
add edi, 4
add eax, 2
dec ecx
jne 0x642e80b2
call 0x642e8119
loope 0x642e810f
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x642e8169
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x642e817a
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x642e812d
cmp eax, ecx
ja 0x642e812d
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x642e81b7
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x642e81ad
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.642cf422
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x642e807c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x642e80c6
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x642e806d
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x642e807c
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x646edd1f
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x642e80cd
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.642cef43
cmp eax, dword [ebp + 0xc]
pop eax
je 0x642e816c
add edi, 4
add eax, 2
dec ecx
jne 0x642e80b2
call 0x642e8119
loope 0x642e810f
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x642e8169
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x642e817a
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x642e812d
cmp eax, ecx
ja 0x642e812d
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x642e81b7
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x642e81ad
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.642cf422
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x11b30
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call sub.ntoskrnl.exe_PsGetVersion
cmp dword [ebp - 8], 5
jne 0x11b80
cmp dword [ebp - 4], 2
jne 0x11b61
mov dword [0x14268], 0x77
jmp 0x11bd2
cmp dword [ebp - 4], 1
jne 0x11b73
mov dword [0x14268], 0x71
jmp 0x11bd2
cmp dword [ebp - 4], esi
jne 0x11bca
mov dword [0x14268], esi
jmp 0x11be5
cmp dword [ebp - 8], 6
jne 0x11bca
mov eax, dword [ebp - 4]
cmp eax, esi
jne 0x11b99
mov dword [0x14268], 0xb7
jmp 0x11bd2
cmp eax, 1
jne 0x11baa
mov dword [0x14268], 0xaf
jmp 0x11bd2
cmp eax, 2
jne 0x11bbb
mov dword [0x14268], 0xed
jmp 0x11bd2
cmp eax, 3
jne 0x11bca
mov dword [0x14268], 0xef
cmp dword [0x14268], esi
je 0x11be5
mov eax, dword [0x14280]
mov ecx, dword [0x14268]
mov eax, dword [eax + ecx*4]
mov dword [0x14264], eax
pop esi
leave
ret 4

Function at 0x15006
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [ebp - 8], 5
jne 0x150d0
cmp dword [ebp - 4], 2
jne 0x15067
mov dword [0x141d4], 0x80
mov dword [0x141dc], 0xc2
mov dword [0x141e4], 0x11f
mov dword [0x141ec], 0x12
mov dword [0x141f4], 0x10a
jmp 0x151ad
cmp dword [ebp - 4], 1
jne 0x150a4
mov dword [0x141d4], 0x7a
mov dword [0x141dc], 0xba
mov dword [0x141e4], 0x115
mov dword [0x141ec], 0x11
mov dword [0x141f4], 0x101
jmp 0x151ad
cmp dword [ebp - 4], esi
jne 0x151ad
mov dword [0x141d4], esi
mov dword [0x141dc], esi
mov dword [0x141e4], esi
mov dword [0x141ec], esi
mov dword [0x141f4], esi
jmp 0x151ad
cmp dword [ebp - 8], 6
jne 0x151ad
mov eax, dword [ebp - 4]
cmp eax, esi
jne 0x15118
mov dword [0x141d4], 0xc2
mov dword [0x141dc], 0x105
mov dword [0x141e4], 0x166
mov dword [0x141ec], 0x12
mov dword [0x141f4], 0x14e
jmp 0x151ad
cmp eax, 1
jne 0x15151
mov dword [0x141d4], 0xbe
mov dword [0x141dc], 0x115
mov dword [0x141e4], 0x18f
mov dword [0x141ec], 0x13
mov dword [0x141f4], 0x172
jmp 0x151ad
push 2
pop ecx
cmp eax, ecx
jne 0x15178
mov dword [0x141d4], 0xde
mov dword [0x141dc], 0x84
mov dword [0x141ec], 0x197
jmp 0x1519d
push 3
pop ecx
cmp eax, ecx
jne 0x151ad
mov dword [0x141d4], 0xe0
mov dword [0x141dc], 0x86
mov dword [0x141ec], 0x19b
mov dword [0x141f4], 0x23
mov dword [0x141e4], ecx
pop esi
leave
ret
Function at 0x1523c
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [ebp - 4], 5
mov eax, dword [ebp - 8]
jne 0x1526c
cmp eax, 2
je 0x152b0
cmp eax, 1
je 0x152b0
test eax, eax
je 0x152b0
cmp dword [ebp - 4], 6
jne 0x152b0
test eax, eax
jne 0x15284
mov eax, dword [sym.imp.ntoskrnl.exe_PsProcessType]
mov eax, dword [eax]
add eax, 0x138
jmp 0x152ab
cmp eax, 1
jne 0x15295
mov eax, dword [sym.imp.ntoskrnl.exe_PsProcessType]
mov eax, dword [eax]
sub eax, 0xffffff80
jmp 0x152ab
cmp eax, 2
je 0x1529f
cmp eax, 3
jne 0x152b0
mov eax, dword [sym.imp.ntoskrnl.exe_PsProcessType]
mov eax, dword [eax]
add eax, 0x88
mov dword [0x141c8], eax
leave
ret

Function at 0x155e4
Capabilities:
Get system information on windows

Disassembly:
push 0x20
push 0x13200
call fcn.00011e2c
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 0x1561b
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x1572b
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 0x1564a
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push ebx
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
jge 0x1564a
mov byte [ebp - 0x19], 0
cmp byte [ebp - 0x19], 0
jne 0x1565f
test ebx, ebx
je 0x1560d
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x1560d
push esi
mov esi, 0x208
push esi
push 0
call edi
mov edi, dword [ebp + 8]
mov dword [edi], eax
test eax, eax
jne 0x15681
mov eax, dword [ebp + 0xc]
and dword [eax], 0
mov eax, dword [ebp + 0x10]
and dword [eax], 0
jmp 0x1560d
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 0x156b5
push 0xb
pop ecx
mov eax, 0x17268
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 0x156cf
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 0x15722
mov dword [ebp - 4], 0xfffffffe
mov al, 1
call fcn.00011e71
ret 0xc
Function at 0x158fe
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 0x15a24
push esi
push ebx
push edi
call sub.ntoskrnl.exe_memset
add esp, 0xc
push 0x172b4
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 0x159a8
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 0x159a8
movzx eax, word [ebp - 0x10]
shr eax, 1
lea esi, [eax - 1]
jmp 0x159a4
cmp word [edi + esi*2], 0x5c
je 0x159ef
dec esi
cmp esi, ebx
jg 0x1599c
push ebx
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push 0x7ffe0030
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x15a24
cmp word [0x7ffe0032], 0x3a
jne 0x15a24
cmp word [0x7ffe0034], 0x5c
jne 0x15a24
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 0x159d8
jmp 0x15a20
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 0x159a8
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 0x15a26
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x15cea
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 0x15d06
xor al, al
jmp 0x15dfe
push esi
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
je 0x15d1b
xor al, al
jmp 0x15dfd
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.00015cca
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 0x15d5c
xor al, al
jmp 0x15dfc
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 0x15da0
lea esi, [edi + 8]
mov dword [ebp - 8], eax
push dword [ebp - 0xc]
push dword [esi + 8]
call fcn.00015cca
push dword [ebp - 0x10]
mov dword [esi + 8], eax
push dword [esi]
call fcn.00015cca
mov dword [esi], eax
add esi, 0x28
dec dword [ebp - 8]
jne 0x15d7e
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 0x15db9
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 0x15df4
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 0x15dd7
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov al, 1
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x1670c
Capabilities:
Parse pe header

Disassembly:
push 0x114
push 0x13220
call fcn.00011e2c
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [0x14290]
cmp eax, ecx
je 0x16865
cmp dword [0x14284], ecx
je 0x16865
cmp dword [0x1428c], ecx
je 0x16865
cmp dword [0x14288], ecx
je 0x16865
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push ecx
call eax
lea eax, [ebp - 0x2c]
push eax
call dword [0x1428c]
sub eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
add eax, ebx
mov esi, eax
push esi
call dword [0x14288]
test al, al
je 0x16787
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x168a4
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x1689b
mov eax, dword [ebx + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
jne 0x1689b
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 0x1689b
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 [0x14290]
push 1
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [0x14284]
test eax, eax
lea eax, [ebp - 0x24]
push eax
jne 0x16851
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x30]
jmp 0x168a4
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
inc dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x1c]
jmp 0x167dc
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 0x1689b
jmp 0x16779
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.00011e71
ret 0xc
Function at 0x168b2
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 0x168cf
xor al, al
jmp 0x16966
mov eax, dword [esi + 0x3c]
cmp dword [esi + eax], 0x4550
jne 0x168c8
push 0
push 0x17304
push 1
push esi
call fcn.00015e08
test eax, eax
je 0x168c8
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 0x168c8
push ebx
push edi
jmp 0x1695b
and dword [ebp - 4], 0
lea edx, [esi - 8]
shr edx, 1
test edx, edx
jle 0x16959
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 0x16951
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 0x16951
mov edi, 0x5c7
cmp word [ecx - 2], di
je 0x1696b
inc dword [ebp - 4]
cmp dword [ebp - 4], edx
jl 0x16917
add eax, esi
mov esi, dword [eax + 4]
test esi, esi
jne 0x1690a
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 0x16964
Function at 0x407b20
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x14]
test eax, eax
jg 0x407b41
jl 0x407b37
test esi, esi
jne 0x407b41
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ecx
ret 0xc
cmp dword [ebx + 0x38], 0
push ebp
push edi
mov edi, esi
je 0x407bf4
mov ebp, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
nop dword [eax]
mov ecx, ebx
call fcn.004039f0
mov esi, eax
mov eax, edx
mov dword [esp + 0x10], eax
test eax, eax
jl 0x407bb1
jg 0x407b79
test esi, esi
je 0x407bb1
cmp ebp, eax
jg 0x407b89
jl 0x407b83
cmp edi, esi
jae 0x407b89
mov esi, edi
mov dword [esp + 0x10], ebp
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push dword [esp + 0x20]
call fcn.0040a5b0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
sub edi, esi
sbb ebp, dword [esp + 0x10]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x18]
jmp 0x407bd0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x407be0
mov eax, dword [esp + 0x18]
add edi, 0xffffffff
mov esi, 1
adc ebp, 0xffffffff
mov byte [eax], cl
add eax, esi
mov dword [esp + 0x18], eax
test ebp, ebp
jg 0x407b60
jl 0x407be0
test edi, edi
jne 0x407b60
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, edi
pop edi
sbb edx, ebp
pop ebp
pop esi
pop ebx
pop ecx
ret 0xc
mov eax, dword [ebx + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, dword [eax]
test edx, edx
je 0x407c39
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
test eax, eax
je 0x407c40
mov edi, dword [esp + 0x1c]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ebp
call fcn.0040a5b0
mov eax, dword [ebx + 0x2c]
add ebp, esi
sub edi, esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x407c40
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
je 0x407ca9
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x407c6a
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax], edx
cmp edi, 0xfff
jbe 0x407c94
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call fcn.00412874
add esp, 0x10
add ebp, eax
sub edi, eax
cmp eax, 0xfff
jne 0x407ca9
cmp edi, eax
ja 0x407c72
test edi, edi
je 0x407ca9
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call fcn.00412874
add esp, 0x10
sub edi, eax
mov edx, dword [esp + 0x20]
sub esi, edi
pop edi
pop ebp
mov eax, esi
sbb edx, 0
pop esi
pop ebx
pop ecx
ret 0xc