joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4046b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x404796
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x404785
jg 0x4046f0
test edx, edx
je 0x404785
nop dword [eax]
call fcn.00406010
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x404744
jg 0x404707
test esi, esi
je 0x404744
cmp ebx, eax
jg 0x404717
jl 0x404711
cmp edi, esi
jae 0x404717
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.0040c2c0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x404769
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x40477f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x4046f0
jl 0x40477f
test edi, edi
jne 0x4046f0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x4047b8
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x4047ba
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x404838
jg 0x4047cd
test esi, esi
je 0x404838
test eax, eax
jl 0x40481c
jg 0x4047d7
test ebx, ebx
je 0x40481c
cmp edi, eax
jg 0x4047e7
jl 0x4047e1
cmp esi, ebx
jae 0x4047e7
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.0040c2c0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x404838
jg 0x40481f
test esi, esi
je 0x404838
jmp 0x40481f
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x404838
push eax
push esi
push 1
push edx
call fcn.004120a2
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404850
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x404882
jl 0x404875
test ecx, ecx
jne 0x404882
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x404942
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00406030
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4048ee
jg 0x4048ad
test esi, esi
je 0x4048ee
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x4048c5
mov eax, dword [esp + 0x10]
jl 0x4048bf
cmp eax, esi
jae 0x4048c5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0040c2c0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x40490f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x40492b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x404894
jl 0x40492b
test ecx, ecx
jne 0x404894
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x404981
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x404981
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.0040c2c0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x4049f0
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x4049a7
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x4049d9
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.004126f9
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x404a04
cmp edi, eax
ja 0x4049b5
test ecx, ecx
je 0x4049f0
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.004126f9
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404d70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x43d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x404da0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409e20
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x404ddc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x404ddc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409e20
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x404ec4
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x404e04
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x404e37
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.004111af
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409e20
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x404e97
sub eax, 1
je 0x404e97
sub eax, 2
jne 0x404ec4
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.004111af
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409e20
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x404eb4
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004120a2
add esp, 0x10
cmp edi, eax
jne 0x404ec4
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x404dc7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409e20
mov esp, ebp
pop ebp
ret 4
Function at 0x405d40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x43d008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x405dfa
cmp byte [esi + 0x3d], 0
je 0x405dfa
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x405de8
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x405db0
sub eax, 1
je 0x405db4
sub eax, 2
jne 0x405de8
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409e20
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x405dd1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004120a2
add esp, 0x10
cmp edi, eax
jne 0x405de8
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409e20
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409e20
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00409e20
mov esp, ebp
pop ebp
ret

Function at 0x406410
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42be90
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43d008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040a02d
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0040ae0e
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41dbc1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041da37

Function at 0x42137b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00420ece
Function at 0x459520
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x54000]
push edi
jmp 0x45953a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x459541
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x459530
mov eax, 1
add ebx, ebx
jne 0x459553
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x459548
jne 0x459564
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x459548
xor ecx, ecx
sub eax, 3
jb 0x459578
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4595ea
mov ebp, eax
add ebx, ebx
jne 0x459583
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x459590
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4595b4
inc ecx
add ebx, ebx
jne 0x4595a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x459595
jne 0x4595b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x459595
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4595d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4595c5
jmp 0x459536
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4595d4
add edi, ecx
jmp 0x459536
pop esi
mov edi, esi
mov ecx, 0x24a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4595f2
cmp byte [edi], 1
jne 0x4595f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
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 0x4595f7
lea edi, [esi + 0x57000]
mov eax, dword [edi]
or eax, eax
je 0x45966f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7ca4c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7cb00]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x459624
mov ecx, edi
jns 0x459653
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7cb04]
or eax, eax
je 0x459669
mov dword [ebx], eax
add ebx, 4
jmp 0x459641
call dword [esi + 0x7cb14]
mov ebp, dword [esi + 0x7cb08]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4596a3
sub esp, 0xffffff80
jmp 0x40323c
Function at 0x10fda
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
xor ecx, ecx
lea eax, [ebp + ecx + 8]
mov dl, byte [eax]
xor dl, 0x12
add dl, 0x17
xor dl, 0x20
inc ecx
cmp ecx, 3
mov byte [eax], dl
jl 0x10fe7
mov eax, dword [ebp + 8]
pop ebp
ret 4

Function at 0x1120e
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
push eax
push 0xb
call esi
push dword [ebp - 4]
push edi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov ebx, eax
cmp ebx, edi
je 0x1127c
push edi
push dword [ebp - 4]
push ebx
push 0xb
call esi
test eax, eax
jge 0x11255
xor esi, esi
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, esi
jmp 0x1127e
mov esi, dword [ebx]
xor eax, eax
cmp esi, edi
jbe 0x1127c
lea ecx, [ebx + 0x10]
mov edx, dword [ecx - 4]
cmp dword [ebp + 8], edx
jb 0x11271
mov edi, dword [ecx]
add edi, edx
cmp dword [ebp + 8], edi
jbe 0x11285
inc eax
add ecx, 0x11c
cmp eax, esi
jb 0x11260
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
mov edi, dword [ebp + 0xc]
imul eax, eax, 0x11c
mov edx, dword [ebp + 0x10]
add eax, ebx
push 0x40
lea esi, [eax + 0x20]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0xc]
mov dword [edx], ecx
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov dword [ecx], eax
inc esi
jmp 0x11248

Function at 0x1130e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
xor esi, esi
push esi
push esi
push 0x860
xor eax, eax
push 1
push 1
mov dword [ebp - 8], esi
lea edi, [ebp - 4]
stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push 0x80
mov dword [ebp - 0x20], eax
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x100020
lea eax, [ebp + 0xc]
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], 0x240
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jge 0x11386
push dword [ebp + 0xc]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
pop edi
pop esi
leave
ret 0x10
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push esi
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
jge 0x113af
push dword [ebp + 0xc]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
jmp 0x11380
xor esi, esi
inc esi
jmp 0x113a2
Function at 0x11400
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x1f34c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x24], 0
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 5
pop ecx
mov esi, 0x12182
lea edi, [ebp - 0x124]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0xea
xor edi, edi
lea eax, [ebp - 0x10e]
push edi
push eax
call sub.ntoskrnl.exe_memset
mov esi, dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
push edi
push eax
push 0xb
call esi
push dword [ebp - 0x12c]
push edi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov ebx, eax
push edi
cmp ebx, edi
jne 0x11487
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
jmp 0x1157e
push dword [ebp - 0x12c]
push ebx
push 0xb
call esi
test eax, eax
jge 0x1149a
push edi
push ebx
jmp 0x1147a
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x20]
push eax
call fcn.000113ba
lea eax, [ebp - 0x24]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x114b5
lea edi, [ebp - 0x124]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x114c5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x140]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
push 1
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [sym.imp.ntoskrnl.exe_KeServiceDescriptorTable]
mov eax, dword [eax]
mov esi, dword [ebp - 0x138]
sub eax, esi
push eax
push esi
call fcn.000112b2
mov ecx, dword [ebp + 8]
lea eax, [eax + ecx*4]
push 4
lea ecx, [ebp - 0x128]
push ecx
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.0001130e
test eax, eax
jne 0x11558
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
jmp 0x11480
mov eax, dword [ebp - 0x128]
lea eax, [eax + esi - 0x400000]
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.000120f8
leave
ret 4

Function at 0x116ce
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
movzx eax, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
movzx ecx, word [ecx + 6]
push esi
xor esi, esi
push edi
test ecx, ecx
jbe 0x11704
mov edx, dword [eax + 0xc]
cmp dword [ebp + 8], edx
jb 0x116fc
mov edi, dword [eax + 8]
add edi, edx
cmp dword [ebp + 8], edi
jb 0x11706
inc esi
add eax, 0x28
cmp esi, ecx
jb 0x116ea
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x11712
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
push ebx
call edi
test al, al
jne 0x1172d
xor eax, eax
jmp 0x11799
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x11729
push esi
mov esi, dword [ebx + 0x3c]
add esi, ebx
push esi
call edi
test al, al
je 0x11787
cmp dword [esi], 0x4550
jne 0x11787
cmp byte [ebp + 0x18], 0
je 0x11771
movzx eax, word [ebp + 0xc]
push esi
push dword [esi + eax*8 + 0x78]
call fcn.000116ce
test eax, eax
je 0x11787
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 0x14]
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
jmp 0x11777
mov edx, dword [ebp + 0x14]
and dword [edx], 0
movzx ecx, word [ebp + 0xc]
mov eax, dword [esi + ecx*8 + 0x78]
sub eax, dword [edx]
add eax, ebx
cmp eax, esi
jne 0x1178b
xor eax, eax
jmp 0x11798
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x11798
mov ecx, dword [esi + ecx*8 + 0x7c]
mov dword [edx], ecx
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
Function at 0x1186e
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x1f34c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 5
pop ecx
mov esi, 0x12182
lea edi, [ebp - 0x124]
rep movsd dword es:[edi], dword [esi]
push 0xea
mov dword [ebp - 0x238], eax
xor ebx, ebx
lea eax, [ebp - 0x10e]
push ebx
push eax
movsw word es:[edi], word [esi]
call sub.ntoskrnl.exe_memset
add esp, 0xc
push 7
xor eax, eax
pop ecx
mov byte [ebp - 0x24], bl
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov dword [ebp - 0x230], ebx
lea edi, [ebp - 0x22c]
stosd dword es:[edi], eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 8]
call fcn.0001120e
test eax, eax
jne 0x1190b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.000120f8
leave
ret 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.000113ba
lea eax, [ebp - 0x24]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x11920
lea edi, [ebp - 0x124]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x11930
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x260]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
push 1
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
push 0x18
pop esi
push ebx
push ebx
push 0x860
push 1
push 1
push 0x80
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x250], eax
push ebx
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x258]
push eax
push 0x100020
lea eax, [ebp - 0x228]
push eax
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x24c], 0x240
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x244], ebx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jge 0x119e9
push dword [ebp - 0x228]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x118f8
push 5
push esi
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x228]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jl 0x119d8
mov edi, dword [ebp - 0x27c]
push edi
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov esi, eax
cmp esi, ebx
je 0x119d8
push ebx
lea eax, [ebp - 0x240]
push eax
push edi
push esi
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x228]
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x23c], ebx
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
push dword [ebp - 0x228]
test eax, eax
jl 0x119de
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, dword [ebp - 0x234]
lea eax, [ecx - 0x400000]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push dword [ebp - 0x238]
sub eax, ecx
push eax
push esi
call fcn.000117a4
xor edi, edi
test al, al
jne 0x11a8b
push ebx
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, edi
jmp 0x118fa
inc edi
jmp 0x11a7c