joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1051710
Capabilities:
Encode data using xor

Disassembly:
dec ecx
mov edx, 0xdda10ca8
inc byte [edi]
add byte [eax], al
inc eax
jmp 0x1048da8

Function at 0x1052960
Capabilities:
Encode data using xor

Disassembly:
sub dword [eax], eax
add bh, dl
cwde
or ecx, eax
or byte [edx], ch
add byte [eax], al
jno 0x1052955
daa
rcl dword [eax], 0x2a
add byte [eax], al
salc
sub cl, byte [0x2b2cc1]
add al, bh
scasd eax, dword es:[edi]
adc al, 0xc1
xor byte [ebx], ch
add byte [eax], al
push eax
fcomp qword [ecx + eax*8]
test byte [ebx], ch
add byte [eax], al
invalid
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x2b04164
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x6543751
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x402546
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402585
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402585
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402585
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402585
cmp dword [ecx + 0x74], 0xe
jbe 0x402585
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x408fc5
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], ecx
mov esi, dword [eax + 0xc]
jmp 0x409092
mov edx, dword [esi + 0x18]
xor edi, edi
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
mov esi, dword [esi]
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 0x3c]
mov dword [ebp - 8], edx
mov dword [ebp - 0x18], esi
mov ebx, dword [eax + edx + 0x78]
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x409092
and dword [ebp - 0x10], edi
shr ecx, 0x10
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x409040
mov edx, dword [ebp - 0x10]
mov ebx, ecx
mov esi, dword [ebp - 0x14]
movsx eax, byte [esi + edx]
ror edi, 0xd
add eax, edi
cmp byte [esi + edx], 0x61
lea edi, [eax - 0x20]
cmovl edi, eax
inc edx
cmp edx, ebx
jb 0x40901f
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx + edx + 0x18]
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + edx + 0x20]
add eax, edx
mov dword [ebp - 4], ecx
cmp dword [ebx + edx + 0x18], ecx
jbe 0x409092
mov ecx, dword [eax]
xor ebx, ebx
add ecx, edx
add eax, 4
mov dword [ebp - 0x18], ecx
mov edx, ecx
mov dword [ebp - 0x10], eax
mov cl, byte [edx]
ror ebx, 0xd
movsx eax, cl
add ebx, eax
inc edx
test cl, cl
jne 0x409069
mov edx, dword [ebp - 8]
lea eax, [ebx + edi]
cmp eax, dword [ebp - 0x1c]
je 0x4090a3
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
jb 0x409058
cmp dword [esi + 0x18], 0
jne 0x408fe2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov eax, dword [esi + edx + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + edx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
jmp 0x40909e

Function at 0x40af40
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0xc]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [esi + 0x18]
mov esi, dword [esi + 4]
and ecx, eax
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov ebx, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp ebx, esi
jne 0x40af9b
mov ecx, esi
jmp 0x40afa0
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x40afc5
mov ecx, dword [eax + 8]
cmp ecx, dword [edi]
je 0x40afaf
mov eax, dword [eax]
jmp 0x40af93
mov ecx, dword [edi]
cmp ecx, dword [eax + 8]
mov ecx, dword [ebp + 8]
cmovne eax, esi
pop edi
pop esi
mov dword [ecx], eax
mov eax, ecx
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x45341d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045329a
Function at 0x1000f83c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1008c620]
jne 0x1000f846
repz ret
jmp fcn.1000faed

Function at 0x10011130
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x10], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
mov dword [0x1008c5fc], 0x252d
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 8], eax
mov eax, dword [0x1008c600]
add eax, 0x253
mov dword [0x1008c5fc], eax
mov dword [ebp - 0xc], 0
jmp 0x100111ff
mov dword [0x1008c5fc], 0xbea
jmp 0x100111ee
jmp 0x100112ce
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
movzx eax, word [ecx + eax*2 - 0x14]
cmp eax, 0x64
je 0x1001127a
jmp 0x100112d0
mov dword [0x1008c600], 0xc8
mov dword [ebp - 4], 1
jmp 0x100112de
jmp 0x100112d5
mov dword [0x1008c5fc], 0x23b8
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dx, word [eax + ecx*2 - 0xe]
mov word [ebp - 0x12], dx
mov ax, word [ebp - 0x12]
movzx ecx, ax
cmp ecx, 0x6c
je 0x100111a6
jmp 0x100112c9
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x104
jge 0x1001121f
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2]
cmp eax, 0
jne 0x1001117a
jmp 0x1001121f
mov dword [0x1008c600], 0x1ac
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 - 0x1a]
cmp eax, 0x6c
jne 0x100112d7
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 - 0x18]
cmp eax, 0x6f
jne 0x100112d5
mov dword [0x1008c600], 0x198f
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 - 0x16]
cmp eax, 0x61
je 0x1001118b
jmp 0x100111bc
mov eax, dword [0x1008c5fc]
sub eax, 0x1325
mov dword [0x1008c5fc], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 - 0x12]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0x64
jne 0x100112ce
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
movzx edx, word [eax + ecx*2 - 0x10]
cmp edx, 0x6c
je 0x100111c1
jmp 0x10011186
jmp 0x10011186
jmp 0x100112d0
jmp 0x100111bc
jmp 0x100112d7
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
add esp, 0x28
pop ebp
ret
Function at 0x100114e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [fcn.100114e0]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov cx, word [eax]
mov word [ebp - 0xa], cx
mov ax, word [ebp - 0xa]
movzx ecx, ax
cmp ecx, 0x5a4d
je 0x10011532
mov eax, dword [ebp - 4]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [0x1008c5fc]
sub ecx, 0x362
mov dword [0x1008c5fc], ecx
jmp 0x1001155b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 4]
cmp dword [ecx + eax], 0x4550
sete dl
mov byte [ebp - 0x11], dl
mov al, byte [ebp - 0x11]
test al, 1
jne 0x10011551
jmp 0x10011559
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x1001156a
jmp 0x10011508
mov al, 1
test al, 1
jne 0x100114ef
jmp 0x10011563
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
add esp, 0x14
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ed0
nop
mov ecx, 0x59330376
nop
nop
nop
nop
nop
test eax, eax
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x2498386e
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x1002348
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1d8
mov eax, dword [0x1038008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x1a0], 0
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c8], eax
mov eax, dword [esi + 4]
not eax
push edi
and eax, 1
push esi
mov dword [ebp - 0x1d8], eax
call fcn.01001ba9
movzx eax, word [esi + 0x16]
mov edi, dword [ebx]
mov dword [ebp - 0x1cc], eax
xor eax, eax
test byte [ebp + 0x24], 8
mov dword [ebp - 0x1bc], edi
mov dword [ebx], eax
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0x1c4], eax
jne 0x101049a
mov eax, dword [ebp - 0x1b8]
mov dword [ebp - 0x1b4], eax
cmp dword [ebx], edi
jae 0x1002521
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [0x1038030]
push dword [eax + 0x18]
call dword [fcn.01001370]
mov dword [ebp - 0x1b4], eax
test eax, eax
jne 0x10104cc
mov dword [ebp - 0x1a0], 0xc0000017
jmp 0x1002549
push edi
push dword [ebp - 0x1b8]
mov dword [ebp - 0x1c4], eax
push eax
call dword [fcn.010012a4]
add esp, 0xc
push dword [0x1038334]
shr edi, 1
push edi
push dword [ebp - 0x1b4]
call fcn.01004dfe
mov dword [ebp - 0x1a0], eax
test eax, eax
jl 0x100253c
mov edi, dword [ebp - 0x1bc]
jmp 0x10023dd

Function at 0x1002ed4
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
cmp word [0x10382f8], 0
push ebx
push esi
push edi
jne 0x1002f1a
push 1
call fcn.01002f2e
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.01002bf2
test eax, eax
je 0x100e8c1
push esi
push ebx
call fcn.01002c10
test byte [0x10382f8], 2
jne 0x100ecd8
jmp fcn.01002f13
movzx ecx, word [esi + 2]
movsx edi, word [ebx + 0xa]
mov ax, cx
sub ax, word [ebx + 0xe]
movsx edx, cx
mov word [ebp - 2], ax
mov ax, word [esi]
sub ax, word [ebx + 0xc]
mov word [ebp - 4], ax
movsx eax, word [ebx + 0x44]
add eax, edx
cdq
idiv edi
movzx eax, dx
mov dword [ebp - 0x10], eax
xor eax, eax
cmp cx, word [esi + 6]
mov ecx, dword [0x1038030]
sete al
add ecx, 0x300000
mov dword [ebp - 0x2c], eax
mov eax, dword fs:[0x18]
movsx edx, word [ebx + 8]
mov eax, dword [eax + 0x30]
lea edx, [edx + edx + 2]
push edx
push ecx
push dword [eax + 0x18]
call dword [fcn.01001370]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x100e950
mov esi, dword [0x100136c]
push 0x100ece8
push 1
push 0x70
call esi
push 0x100aa2c
push 1
push 0x70
call esi
add esp, 0x18
jmp fcn.01002f13
movsx eax, word [esi + 2]
movsx ecx, word [esi + 6]
cmp eax, ecx
mov dword [ebp - 0x20], eax
jg 0x100ecb1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01022608
jmp fcn.01002f13
Function at 0x1003701
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [0x1038250]
cmp ebx, 0x1038250
je 0x1003733
push esi
push edi
mov edi, dword [fcn.01001378]
mov esi, ebx
mov eax, dword [esi + 8]
mov ebx, dword [ebx]
cmp eax, dword [ebp + 8]
je 0x1003738
cmp ebx, 0x1038250
jne 0x100371d
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ecx], eax
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x28]
test al, 2
jne 0x100c469
lea eax, [esi + 0xc]
push eax
call dword [0x1001330]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call edi
jmp 0x1003729
push dword [esi + 0x34]
and eax, 0xfffffffd
mov dword [esi + 0x28], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call edi
jmp 0x100374d
Function at 0x1005995
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call dword [fcn.01001318]
mov ebx, dword [ebp + 0x10]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea edi, [ebx + 0xc]
push edi
push dword [0x1038030]
push dword [eax + 0x18]
call dword [fcn.01001370]
mov esi, eax
test esi, esi
je 0x100fde4
lea eax, [ebp + 0xc]
push eax
push edi
push esi
push 2
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [fcn.010012e0]
mov edi, eax
test edi, edi
jl 0x1005a13
mov eax, dword [esi + 8]
cmp ebx, eax
jb 0x1005a31
push eax
lea eax, [esi + 0xc]
push eax
push dword [ebp + 0x14]
call dword [fcn.010012a4]
mov eax, dword [ebp + 0x18]
add esp, 0xc
test eax, eax
jne 0x100fdee
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [fcn.01001378]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14
mov edi, 0xc0000023
jmp 0x1005a13
mov eax, 0xc0000017
jmp 0x1005a2a
mov ecx, dword [esi + 8]
mov dword [eax], ecx
jmp 0x1005a13

Function at 0x1005a3d
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [fcn.01001484]
push edi
push dword [ebp + 8]
call esi
lea eax, [eax + eax + 2]
mov ebx, 0x7ffe0030
push ebx
movzx edi, ax
call esi
add eax, eax
cmp dword [ebp + 0xc], 0
movzx esi, ax
je 0x1005b1e
push 1
push esi
push ebx
push dword [ebp + 8]
call fcn.01003a83
test eax, eax
jne 0x1005b1e
movzx eax, si
push 0x18
sub edi, esi
add dword [ebp + 8], eax
pop edx
mov ecx, dword [0x1038030]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx ebx, dx
movzx edx, di
add edx, ebx
push edx
add ecx, 0x100000
push ecx
push dword [eax + 0x18]
call dword [fcn.01001370]
mov esi, eax
mov dword [ebp + 0xc], esi
test esi, esi
je 0x1005afc
push ebx
push 0x1005b04
push esi
call dword [fcn.010012a4]
xor eax, eax
add esp, 0xc
add esi, ebx
cmp ax, di
jae 0x1005af9
dec di
shr di, 1
inc di
movzx eax, di
cmp dword [ebp + 0x10], 0
jne 0x1005b25
mov ecx, dword [ebp + 8]
mov cx, word [ecx]
add dword [ebp + 8], 2
mov word [esi], cx
inc esi
inc esi
dec eax
jne 0x1005ae1
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
xor edx, edx
jmp 0x1005a8d
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5c
jne 0x1005ae7
push 0x5f
pop ecx
jmp 0x1005aed

Function at 0x1006d73
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x1006dd0
call fcn.01006dec
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1006dc2
cmp ecx, 0xffffffff
je 0x1006dc2
and dword [ebp - 4], eax
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x1006dbb
mov edx, dword [ecx + 0x3c]
test edx, edx
jl 0x1006dbb
cmp edx, 0x10000000
jae 0x1006dbb
lea eax, [ecx + edx]
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x1012060
mov dword [ebp - 4], 0xfffffffe
call fcn.0100637d
ret 4
Function at 0x1007422
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
push edi
cmp byte [0x1038416], bl
jne 0x100e321
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax], ebx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword fs:[0x18]
mov edx, dword [ebp + 8]
movsx esi, word [ebp + 8]
mov ecx, dword [0x1038030]
mov eax, dword [eax + 0x30]
mov edi, dword [fcn.01001370]
shr edx, 0x10
movsx edx, dx
imul edx, esi
lea edx, [edx + edx + 2]
push edx
add ecx, 0x340000
push ecx
push dword [eax + 0x18]
call edi
mov esi, dword [ebp + 0xc]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x100e368
xor eax, eax
jmp 0x1007449
mov eax, dword fs:[0x18]
movsx edx, word [ebp + 0xa]
movsx ebx, word [ebp + 8]
mov ecx, dword [0x1038030]
imul edx, ebx
mov eax, dword [eax + 0x30]
add ecx, 0x340000
inc edx
push edx
push ecx
push dword [eax + 0x18]
call edi
mov dword [esi + 8], eax
test eax, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
jne 0x100e3b0
push dword [esi + 4]
push 0
push dword [eax + 0x18]
call dword [fcn.01001378]
jmp 0x100e361
movsx edx, word [ebp + 0xa]
movsx ebx, word [ebp + 8]
mov ecx, dword [0x1038030]
imul edx, ebx
lea edx, [edx + edx + 2]
push edx
add ecx, 0x340000
push ecx
push dword [eax + 0x18]
call edi
mov dword [esi + 0xc], eax
test eax, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
jne 0x100e40a
push dword [esi + 8]
mov edi, dword [fcn.01001378]
push 0
push dword [eax + 0x18]
call edi
push dword [esi + 4]
push 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call edi
jmp 0x100e361
movsx edx, word [ebp + 0xa]
movsx ebx, word [ebp + 8]
mov ecx, dword [0x1038030]
imul edx, ebx
push edx
add ecx, 0x340000
push ecx
push dword [eax + 0x18]
call edi
xor ebx, ebx
mov dword [esi], eax
cmp eax, ebx
jne 0x1007446
push dword [esi + 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edi, dword [fcn.01001378]
push ebx
push dword [eax + 0x18]
call edi
push dword [esi + 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call edi
push dword [esi + 4]
push ebx
jmp 0x100e3f7
Function at 0x1007970
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, eax
mov eax, dword [eax]
push esi
test eax, eax
je 0x10079ba
mov esi, eax
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10079c2
test dx, dx
je 0x10079ac
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10079c2
add eax, 4
add ecx, 4
test dx, dx
jne 0x100798a
xor eax, eax
test eax, eax
jne 0x10079c9
mov eax, dword [ebx]
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 2]
jmp 0x10079d3
sbb eax, eax
sbb eax, 0xffffffff
jmp 0x10079ae
mov ebx, esi
mov esi, dword [ebx]
test esi, esi
je 0x10079ba
jmp 0x1007984
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x10079d3
sub eax, ecx
mov ecx, dword [0x1038030]
push edi
sar eax, 1
lea edi, [eax + eax + 2]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea edx, [edi + 8]
push edx
add ecx, 0x280000
push ecx
push dword [eax + 0x18]
call dword [fcn.01001370]
mov esi, eax
test esi, esi
je 0x1007a27
push dword [ebp + 0xc]
and dword [esi], 0
and dword [esi + 4], 0
push edi
lea eax, [esi + 8]
push eax
call fcn.010034fc
mov dword [ebx], esi
mov eax, esi
pop edi
jmp 0x10079b4
Function at 0x10098ad
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
xor ebx, ebx
push 7
mov dword [ebp - 0x24], ebx
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
cmp dword [eax + 0x200], ebx
jne 0x1009962
cmp dword [eax + 0x1f8], ebx
jne 0x1009962
mov edi, dword [ebp + 0xc]
xor eax, eax
push edi
push esi
mov word [esi], ax
mov word [esi + 2], ax
mov word [esi + 4], ax
mov word [esi + 6], ax
mov word [esi + 8], ax
mov word [esi + 0xa], ax
mov word [esi + 0xc], ax
push ebx
mov word [esi + edi*2 - 4], ax
call dword [0x1001438]
test eax, eax
je 0x100c9a2
cmp word [esi + edi*2 - 4], bx
jne 0x100c9b0
cmp word [esi], 0x5c
je 0x100c9b8
mov eax, ebx
lea eax, [esi + eax*2]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x20
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x10], 0x64
call dword [0x1001434]
cmp eax, 0xffffffff
je 0x100c9f7
xor eax, eax
pop edi
mov word [esi], ax
pop esi
pop ebx
leave
ret 8
call dword [0x1001430]
push eax
push 0x100caac
jmp 0x100ca03
push edi
push 0x100ca68
jmp 0x100ca03
cmp word [esi + 2], 0x3f
jne 0x1009932
cmp word [esi + 4], 0x3f
jne 0x1009932
cmp word [esi + 6], 0x5c
jne 0x1009932
cmp word [esi + 0xa], 0x3a
jne 0x1009932
cmp word [esi + 0xc], 0x5c
jne 0x1009932
push 4
pop eax
jmp 0x1009934
call dword [0x1001430]
push eax
push 0x100ca24
mov edi, dword [0x100136c]
push 1
push 0x70
call edi
push 0x100aa2c
push 1
push 0x70
call edi
add esp, 0x1c
jmp 0x1009962

Function at 0x100a1cd
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x100a21a
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ecx], eax
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x28]
push edi
mov edi, dword [fcn.01001378]
test al, 2
jne 0x100c44b
lea eax, [esi + 0xc]
push eax
call dword [0x1001330]
mov eax, dword fs:[0x18]
add byte [eax], al
add byte [ebx + 0x6a563040], cl
add bh, bh
jo 0x100a22b
call edi
and dword [ebx + 0x10], 0
pop edi
pop esi
pop ebx
pop ebp
ret 4
push dword [esi + 0x34]
and eax, 0xfffffffd
mov dword [esi + 0x28], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call edi
jmp 0x100a1fa