joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408fc2
Capabilities:
Create directory

Disassembly:
push 0x290
mov eax, 0x452b89
call fcn.00442764
mov eax, dword [ebp + 8]
mov dword [ebp - 0x248], eax
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
xor ebx, ebx
lea eax, [ebp - 0x216]
push ebx
push eax
mov esi, ecx
call fcn.0043e4b0
add esp, 0xc
push esi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0043f650
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
call fcn.0041b1ef
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 4], ebx
call fcn.00408f50
mov eax, dword [ebp - 0x250]
sub eax, dword [ebp - 0x254]
pop ecx
sar eax, 5
pop ecx
mov dword [ebp - 0x23c], ebx
test eax, eax
jbe 0x4091be
mov edi, vtable.TString.0
lea esi, [ebp - 0x234]
call fcn.00401225
mov dword [ebp - 0x238], edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x244], ebx
push 0x45702c
lea eax, [ebp - 0x27c]
call fcn.00401238
mov dword [ebp - 0x280], edi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x250]
sub eax, dword [ebp - 0x254]
sar eax, 5
cmp dword [ebp - 0x240], eax
jb 0x4090ae
call fcn.0043e173
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x254]
add eax, ecx
cmp eax, ebx
je 0x4090c5
add eax, 4
jmp 0x4090c7
xor eax, eax
lea ecx, [ebp - 0x27c]
push ecx
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.0040369b
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea esi, [ebp - 0x234]
mov byte [ebp - 4], 3
call fcn.004035f7
push ebx
push 1
lea esi, [ebp - 0x29c]
call fcn.0040146e
push ebx
mov byte [ebp - 4], 1
push 1
lea esi, [ebp - 0x27c]
mov dword [ebp - 0x280], edi
call fcn.0040146e
inc dword [ebp - 0x240]
mov eax, dword [ebp - 0x240]
add dword [ebp - 0x244], 0x20
cmp eax, dword [ebp - 0x23c]
jbe 0x409078
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x40914b
lea eax, [ebp - 0x230]
push eax
call fcn.00408e5f
pop ecx
test eax, eax
jne 0x409189
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x40916b
lea eax, [ebp - 0x230]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x409189
lea eax, [ebp - 0x238]
push eax
mov eax, dword [ebp - 0x248]
call fcn.00402bde
push ebx
push 1
lea esi, [ebp - 0x234]
mov dword [ebp - 0x238], edi
call fcn.0040146e
mov eax, dword [ebp - 0x250]
sub eax, dword [ebp - 0x254]
inc dword [ebp - 0x23c]
sar eax, 5
cmp dword [ebp - 0x23c], eax
jb 0x409057
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x260]
push eax
call fcn.00402b97
call fcn.004427e7
ret
Function at 0x409e50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
mov eax, dword [0x46a1c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x88], eax
xor eax, eax
push 0x3e
mov word [ebp - 0x70], ax
xor ebx, ebx
lea eax, [ebp - 0x6e]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x80], edi
call fcn.0043e4b0
add esp, 0xc
push 0xf4
lea eax, [ebp - 0x17c]
push ebx
push eax
mov dword [ebp - 0x180], ebx
call fcn.0043e4b0
add esp, 0xc
push 0x40
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 8]
lea esi, [ebp - 0x74]
mov eax, edi
mov dword [ebp - 0x74], ebx
call fcn.0041ad54
test al, 1
je 0x409fcd
cmp dword [ebp - 0x74], 0x40
jne 0x409fcd
mov eax, 0x5a4d
cmp ax, word [ebp - 0x70]
jne 0x409fcd
mov eax, dword [ebp - 0x34]
push ebx
cdq
push ebx
push edx
push eax
push dword [ebp + 8]
mov eax, edi
call fcn.0041addb
test al, 1
je 0x409fcd
push 0xf8
lea eax, [ebp - 0x180]
push eax
push dword [ebp + 8]
mov eax, edi
call fcn.0041ad54
test al, 1
je 0x409fcd
cmp dword [ebp - 0x74], 0xf8
jne 0x409fcd
cmp dword [ebp - 0x180], 0x4550
jne 0x409fcd
movzx ecx, word [ebp - 0x17a]
mov esi, dword [ebp - 0x12c]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x7c], ebx
cmp ecx, ebx
jbe 0x409fa7
xor eax, eax
mov byte [ebp - 0x2c], bl
lea edi, [ebp - 0x2b]
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
push 0x28
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
mov eax, dword [ebp - 0x80]
lea esi, [ebp - 0x74]
call fcn.0041ad54
test al, 1
je 0x409f93
cmp dword [ebp - 0x74], 0x28
jne 0x409fcd
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
add ecx, edx
cmp ecx, dword [ebp - 0x78]
jbe 0x409f93
mov dword [ebp - 0x78], ecx
inc dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x7c]
cmp ecx, dword [ebp - 0x84]
jb 0x409f4f
mov edi, dword [ebp - 0x80]
mov esi, dword [ebp - 0x78]
test al, 1
je 0x409fcd
push ebx
push ebx
push ebx
push esi
push dword [ebp + 8]
mov eax, edi
call fcn.0041addb
test al, 1
je 0x409fcd
mov eax, dword [ebp - 0x88]
mov dword [eax], esi
mov dword [eax + 4], ebx
xor eax, eax
inc eax
jmp 0x409fcf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043de6e
leave
ret 8
Function at 0x40f1d7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
mov dword [ebp - 8], edi
cmp eax, ecx
jb 0x40f264
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.0043fad0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x40f224
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x40f246
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x40f321
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
cmp ecx, edx
jbe 0x40f28c
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x40f297
xor eax, eax
jmp 0x40f2e2
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x40f2b4
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
push edx
call fcn.0040e0d0
jmp 0x40f2c5
cmp ecx, 2
jne 0x40f2cc
push edx
push dword [edi + 0x30]
mov edx, dword [edi]
call fcn.0040e2ea
pop ecx
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
pop ecx
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.0043fad0
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x40f30d
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x40f321
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x40f1e2
pop edi
pop ebx
leave
ret
Function at 0x41a800
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x453be3
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x46a1c0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x1c]
call fcn.0041dcd5
and dword [esp + 0x30], 0
mov esi, eax
call fcn.00409270
mov eax, esi
push eax
push 0x15
push edi
call fcn.00416847
lea eax, [esp + 0x14]
call fcn.0041e32d
mov esi, eax
mov byte [esp + 0x30], 1
call fcn.00409298
call fcn.00409270
mov eax, esi
push eax
push 0x14
push edi
call fcn.0041688d
lea eax, [esp + 0xc]
call fcn.0041e32d
mov esi, eax
mov byte [esp + 0x30], 2
call fcn.00409298
call fcn.00409270
mov eax, esi
push eax
push 0x13
push edi
call fcn.0041688d
push 0x800000
call fcn.0041a600
push 0xffffffffffffffff
push 8
call fcn.004165e7
push 0xffffffffffffffff
push 0x16
call fcn.004165e7
mov ecx, esi
mov byte [esp + 0x30], 1
call fcn.0041e38c
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call fcn.0041e38c
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0041dd34
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41e96b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
push esi
push edi
lea edi, [eax + 0x78]
mov esi, dword [edi + 0x10]
sub esi, dword [edi + 0xc]
xor ebx, ebx
sar esi, 2
mov dword [esp + 0x10], 0x41e7d6
mov dword [esp + 0x14], 0x41e7e1
mov dword [esp + 0x18], 0x41e7ec
mov dword [esp + 0x1c], 0x41e7f7
mov dword [esp + 0x20], 0x41e802
mov dword [esp + 0x24], 0x41e80d
mov dword [esp + 0x28], 0x41e818
mov dword [esp + 0x2c], 0x41e823
mov dword [esp + 0x30], 0x41e832
mov dword [esp + 0x34], 0x41e841
mov dword [esp + 0x38], 0x41e84c
mov dword [esp + 0x3c], 0x41e857
mov dword [esp + 0x40], 0x41e862
mov dword [esp + 0x44], 0x41e86d
mov dword [esp + 0x48], 0x41e87c
mov dword [esp + 0x4c], 0x41e88b
mov dword [esp + 0x50], 0x41e896
mov dword [esp + 0x54], 0x41e8a1
mov dword [esp + 0x58], 0x41e8ac
mov dword [esp + 0x5c], 0x41e8b7
mov dword [esp + 0x60], 0x41e8c2
mov dword [esp + 0x64], 0x41e8cd
mov dword [esp + 0x68], 0x41e8d8
mov dword [esp + 0x6c], 0x41e8e3
mov dword [esp + 0x70], 0x41e8ee
mov dword [esp + 0x74], 0x41e8f9
mov dword [esp + 0x78], 0x41e904
mov dword [esp + 0x7c], 0x41e90f
test esi, esi
jbe 0x41eaa3
add eax, 8
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
sar eax, 2
cmp ebx, eax
jb 0x41ea82
call fcn.0043e173
mov eax, dword [edi + 0xc]
push dword [eax + ebx*4]
lea eax, [esp + 0x14]
push dword [esp + 0x10]
push eax
push str.Kernel32.dll
call fcn.0041eba5
add esp, 0x10
inc ebx
cmp ebx, esi
jb 0x41ea70
mov eax, edi
call fcn.004153c3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41eba5
Capabilities:
Parse pe header

Disassembly:
push 0x4c
mov eax, 0x45144e
call fcn.004426fb
mov edi, dword [ebp + 0x14]
xor ebx, ebx
cmp edi, ebx
jne 0x41ebc2
xor eax, eax
call fcn.004427d3
ret
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x41ebba
mov esi, dword [edi + 0x3c]
add esi, edi
cmp dword [esi], 0x4550
jne 0x41ebba
push 4
call fcn.0043e277
pop ecx
cmp eax, ebx
je 0x41ebec
lea ecx, [ebp - 0x3c]
mov dword [eax], ecx
jmp 0x41ebee
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], 1
mov esi, dword [esi + 0x80]
add esi, edi
jmp 0x41ec2e
mov eax, dword [esi + 0xc]
push dword [ebp + 8]
add eax, edi
push eax
call fcn.004420eb
pop ecx
pop ecx
test eax, eax
jne 0x41ec2b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x3c]
call fcn.00415366
add esi, 0x14
mov dword [ebp - 0x18], esi
cmp dword [esi + 0xc], ebx
jne 0x41ec0b
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x30]
test eax, 0xfffffffc
jne 0x41ec6c
cmp dword [ebp - 0x30], ebx
je 0x41ec51
push dword [ebp - 0x30]
call fcn.0043e183
pop ecx
xor esi, esi
push dword [ebp - 0x3c]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.0043e183
pop ecx
mov eax, esi
jmp 0x41ebbc
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
sub eax, ecx
mov dword [ebp - 0x18], ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_VirtualProtect]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x1c
mov edi, dword [ebp - 0x2c]
sub edi, dword [ebp - 0x30]
and dword [ebp - 0x10], 0
sar edi, 2
test edi, edi
jbe 0x41ed2c
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x10]
sar eax, 2
cmp esi, eax
jb 0x41ecb4
call fcn.0043e173
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + esi*4]
mov esi, dword [eax + 0x10]
add esi, dword [ebp + 0x14]
cmp dword [esi], 0
je 0x41ed20
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + ecx]
cmp dword [esi], eax
je 0x41ecdc
add esi, 4
cmp dword [esi], 0
jne 0x41ecce
jmp 0x41ed20
push 0x1c
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
lea eax, [ebp - 0x44]
push eax
push 4
push dword [ebp - 0x4c]
push dword [ebp - 0x58]
call ebx
test eax, eax
jne 0x41ed07
push 1
push 6
call dword [sym.imp.USER32.dll_SetLastErrorEx]
jmp 0x41ed20
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [esi], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x44]
push dword [ebp - 0x4c]
push dword [ebp - 0x58]
call ebx
inc dword [ebp - 0x18]
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edi
jb 0x41ec9f
add dword [ebp - 0x14], 4
dec dword [ebp - 0x1c]
jne 0x41ec8a
cmp dword [ebp - 0x30], 0
je 0x41ed48
push dword [ebp - 0x30]
call fcn.0043e183
pop ecx
mov esi, dword [ebp - 0x18]
xor ebx, ebx
jmp 0x41ec53
Function at 0x42d1a5
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x454054
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x46a1c0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 0xc]
and dword [esi + 0xd8], 0
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x68]
push eax
call fcn.00416f48
and dword [esp + 0x30], 0
lea edi, [esi + 0x78]
push edi
call fcn.0040ab02
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0041749e
lea ebx, [esi + 0x38]
push ebx
mov ecx, edi
call fcn.004177a3
push eax
mov eax, dword [esi + 0x30]
call fcn.00418f9a
mov dword [esp + 0x14], eax
test al, 1
je 0x42d3d2
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.004174cf
lea edi, [esi + 0x70]
push edi
mov dword [esp + 0x34], 1
call fcn.0040ab02
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0041a53e
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x14]
push eax
push edi
call fcn.0041a5bc
lea ecx, [esi + 0x80]
push ecx
mov dword [esp + 0x34], 2
call fcn.0040ab02
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0041aa9f
mov eax, edi
call fcn.00416f43
lea ecx, [esi + 0x78]
mov dword [esi + 0x98], eax
lea edi, [esi + 0x88]
call fcn.004177b6
push eax
call fcn.0041e75d
lea ecx, [esi + 0x78]
call fcn.004177ae
push eax
call fcn.0041b3fe
lea ecx, [esi + 0x78]
call fcn.0041a75c
push eax
call fcn.0041b40c
push 0x10
lea eax, [esi + 0xe8]
push 0
push eax
call fcn.0043e4b0
lea edi, [esi + 0x80]
add esp, 0xc
mov ecx, edi
call fcn.0041aade
and dword [esi + 0x108], 0
mov ecx, edi
mov dword [esi + 0xf8], eax
mov dword [esi + 0xfc], edx
call fcn.0041aad0
mov ecx, edi
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], edx
call fcn.0041aade
mov dword [esi + 0x60], eax
mov eax, dword [esi + 0x8c]
lea edi, [esi + 0x50]
push edi
mov dword [esi + 0x64], edx
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
push eax
push dword [ebx + 8]
call dword [edx + 0x1c]
mov dword [esp + 0x14], eax
test al, 1
je 0x42d3d2
xor ebx, ebx
push ebx
push 1
push dword [edi]
lea eax, [esi + 0xa0]
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esi + 0x100], ebx
mov dword [esi + 0x104], ebx
call fcn.0042ed28
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.004178de
test eax, eax
jne 0x42d38e
lea eax, [esi + 0xa0]
call fcn.0041ac31
push dword [eax + 8]
lea eax, [esi + 0xbc]
push 3
push dword [esi + 0x54]
push eax
call fcn.0042ed28
mov dword [esi + 0xdc], 1
jmp 0x42d3a0
push ebx
push 1
push dword [esi + 0x54]
lea eax, [esi + 0xbc]
push eax
call fcn.0042ed28
mov ecx, edi
call fcn.004178b6
test eax, eax
je 0x42d3b6
mov ecx, dword [esi + 0x28]
push dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0x14]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esi + 0x10c]
push ebx
push dword [eax + 4]
push dword [eax]
mov eax, dword [esi + 0x24]
push dword [ebp + 8]
call fcn.0041addb
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42d660
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45498a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x46a1c0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x68]
push eax
call fcn.00416f48
and dword [esp + 0x30], 0
lea edi, [esi + 0x78]
push edi
call fcn.0040ab02
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0041749e
lea ebx, [esi + 0x38]
push ebx
mov ecx, edi
call fcn.004177a3
push eax
mov eax, dword [esi + 0x30]
call fcn.00418f9a
mov dword [esp + 0x14], eax
test al, 1
je 0x42d85b
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.004174cf
lea edi, [esi + 0x70]
push edi
mov dword [esp + 0x34], 1
call fcn.0040ab02
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0041a53e
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.0041a5bc
lea ecx, [esi + 0x80]
push ecx
mov dword [esp + 0x34], 2
call fcn.0040ab02
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0041aa9f
mov eax, edi
call fcn.00416f43
lea ecx, [esi + 0x78]
mov dword [esi + 0x98], eax
lea edi, [esi + 0x88]
call fcn.004177b6
push eax
call fcn.0041e75d
lea ecx, [esi + 0x78]
call fcn.004177ae
push eax
call fcn.0041b3fe
lea ecx, [esi + 0x78]
call fcn.0041a75c
push eax
call fcn.0041b40c
push 0x10
lea eax, [esi + 0xe8]
push 0
push eax
call fcn.0043e4b0
lea edi, [esi + 0x80]
add esp, 0xc
mov ecx, edi
call fcn.0041aade
and dword [esi + 0x108], 0
mov ecx, edi
mov dword [esi + 0xf8], eax
mov dword [esi + 0xfc], edx
call fcn.0041aad0
mov ecx, edi
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], edx
call fcn.0041aade
mov dword [esi + 0x60], eax
mov eax, dword [esi + 0x8c]
lea edi, [esi + 0x50]
push edi
mov dword [esi + 0x64], edx
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
push eax
push dword [ebx + 8]
call dword [edx + 0x1c]
mov dword [esp + 0x14], eax
test al, 1
je 0x42d85b
xor eax, eax
push eax
push 1
push dword [edi]
lea ebx, [esi + 0xa0]
push ebx
mov dword [esi + 0x100], eax
mov dword [esi + 0x104], eax
call fcn.0042ed28
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.004178de
test eax, eax
jne 0x42d832
mov eax, ebx
call fcn.0041ac31
push dword [eax + 8]
lea eax, [esi + 0xbc]
push 3
push dword [esi + 0x54]
push eax
call fcn.0042ed28
mov dword [esi + 0xdc], 1
jmp 0x42d845
push 0
push 1
push dword [esi + 0x54]
lea eax, [esi + 0xbc]
push eax
call fcn.0042ed28
mov ecx, edi
call fcn.004178b6
test eax, eax
je 0x42d85b
mov ecx, dword [esi + 0x28]
push dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42db05
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x451a47
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x46a1c0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x1c]
push eax
lea eax, [esi + 0x68]
push eax
call fcn.00416f48
lea ebx, [esi + 0x78]
xor edi, edi
push ebx
mov dword [esp + 0x3c], edi
call fcn.0040ab02
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0041749e
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
call fcn.004174cf
lea ecx, [esi + 0x70]
push ecx
mov dword [esp + 0x3c], 1
call fcn.0040ab02
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0041a53e
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x24]
push eax
lea eax, [esi + 0x70]
push eax
call fcn.0041a5bc
lea ecx, [esi + 0x80]
push ecx
mov dword [esp + 0x3c], 2
call fcn.0040ab02
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.0041aa9f
push 0x10
lea eax, [esi + 0xe8]
push edi
push eax
mov dword [esi + 0xf8], edi
mov dword [esi + 0xfc], edi
call fcn.0043e4b0
add esp, 0xc
lea ecx, [esi + 0x80]
call fcn.0041aad0
mov dword [esi + 0x100], eax
mov eax, 0x8000
mov ecx, ebx
mov dword [esi + 0x104], edx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], edi
call fcn.0041769a
push edi
push 1
push dword [esi + 0x50]
mov dword [esi + 0xd8], eax
lea eax, [esi + 0xa0]
push eax
call fcn.0042ed28
lea eax, [esp + 0x14]
push eax
push edi
lea ecx, [esi + 0x80]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call fcn.0041aaf4
push edx
push eax
push dword [ebp + 8]
mov eax, dword [esi + 0x24]
call fcn.0041addb
xor eax, eax
inc eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42ddf8
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x451a47
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x46a1c0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x1c]
push eax
lea eax, [esi + 0x68]
push eax
call fcn.00416f48
lea ebx, [esi + 0x78]
xor edi, edi
push ebx
mov dword [esp + 0x3c], edi
call fcn.0040ab02
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0041749e
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
call fcn.004174cf
lea ecx, [esi + 0x70]
push ecx
mov dword [esp + 0x3c], 1
call fcn.0040ab02
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0041a53e
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x24]
push eax
lea eax, [esi + 0x70]
push eax
call fcn.0041a5bc
lea ecx, [esi + 0x80]
push ecx
mov dword [esp + 0x3c], 2
call fcn.0040ab02
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.0041aa9f
lea ecx, [esi + 0x80]
call fcn.0041ab0e
mov dword [esi + 0xd8], eax
lea eax, [esi + 0x70]
mov dword [esi + 0xf8], edi
mov dword [esi + 0xfc], edi
call fcn.00416f43
push 0x10
mov dword [esi + 0x98], eax
lea eax, [esi + 0xe8]
push edi
push eax
call fcn.0043e4b0
add esp, 0xc
lea ecx, [esi + 0x80]
call fcn.0041aad0
push edi
mov dword [esi + 0x100], eax
mov eax, 0x4000
push 1
lea ecx, [esi + 0xa0]
push eax
push ecx
mov dword [esi + 0x104], edx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call fcn.0042ed28
mov ecx, ebx
call fcn.004178de
test eax, eax
jne 0x42df52
lea eax, [esi + 0xa0]
call fcn.0041ac31
push dword [eax + 8]
push 3
jmp 0x42df55
push edi
push 1
push dword [esi + 0x54]
lea eax, [esi + 0xbc]
push eax
call fcn.0042ed28
lea eax, [esp + 0x14]
push eax
push edi
lea ecx, [esi + 0x80]
call fcn.0041aaf4
push edx
push eax
push dword [ebp + 8]
mov eax, dword [esi + 0x24]
call fcn.0041addb
xor eax, eax
inc eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc