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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xb]
mov esi, dword [eax]
mov edi, dword [eax + 4]
add edi, esi
mov edx, ecx
add edx, eax
test cl, cl
cmovs edx, edi
cmovs eax, esi
sub edx, eax
mov ecx, edx
cmp edx, 4
jb 0x10036932
imul esi, dword [eax], 0x5bd1e995
mov edi, esi
shr edi, 0x18
xor edi, esi
imul esi, edi, 0x5bd1e995
imul ecx, ecx, 0x5bd1e995
xor ecx, esi
add eax, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x1003690c
cmp edx, 1
je 0x10036953
cmp edx, 2
je 0x1003694a
cmp edx, 3
jne 0x1003695e
movzx edx, byte [eax + 2]
shl edx, 0x10
xor ecx, edx
movzx edx, byte [eax + 1]
shl edx, 8
xor ecx, edx
movzx eax, byte [eax]
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
pop esi
pop edi
pop ebp
ret 4
Function at 0x1003a210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
movdqu xmm1, xmmword [ecx]
movdqu xmm2, xmmword [ecx + 0x10]
movdqu xmm4, xmmword [ecx + 0x20]
movdqu xmm3, xmmword [ecx + 0x30]
movd xmm0, dword [ebp + 0x10]
pxor xmm0, xmm1
add eax, 0xffffffc0
add ecx, 0x40
cmp eax, 0x40
jb 0x1003a2de
movdqa xmm1, xmmword [0x1019db50]
movdqa xmm5, xmmword [0x1019db60]
nop word cs:[eax + eax]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm1, 0
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm6
movdqa xmm6, xmm2
pclmulqdq xmm6, xmm1, 0
pclmulqdq xmm2, xmm5, 0x11
pxor xmm2, xmm6
movdqa xmm6, xmm4
pclmulqdq xmm6, xmm1, 0
pclmulqdq xmm4, xmm5, 0x11
pxor xmm4, xmm6
movdqa xmm6, xmm3
pclmulqdq xmm6, xmm1, 0
pclmulqdq xmm3, xmm5, 0x11
pxor xmm3, xmm6
movdqu xmm6, xmmword [ecx]
pxor xmm0, xmm6
movdqu xmm6, xmmword [ecx + 0x10]
pxor xmm2, xmm6
movdqu xmm6, xmmword [ecx + 0x20]
pxor xmm4, xmm6
movdqu xmm6, xmmword [ecx + 0x30]
pxor xmm3, xmm6
add eax, 0xffffffc0
add ecx, 0x40
cmp eax, 0x3f
ja 0x1003a260
movdqa xmm1, xmmword [0x1019db70]
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm1, 0
pxor xmm5, xmm2
movdqa xmm2, xmmword [0x1019db80]
pclmulqdq xmm0, xmm2, 0x11
pxor xmm0, xmm5
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm1, 0
pxor xmm5, xmm4
pclmulqdq xmm0, xmm2, 0x11
pxor xmm0, xmm5
movdqa xmm4, xmm0
pclmulqdq xmm4, xmm1, 0
pxor xmm4, xmm3
pclmulqdq xmm0, xmm2, 0x11
pxor xmm0, xmm4
cmp eax, 0x10
jb 0x1003a428
lea edx, [eax - 0x10]
mov esi, edx
shr esi, 4
inc esi
and esi, 3
je 0x1003a388
shl esi, 4
xor edi, edi
nop word cs:[eax + eax]
movdqu xmm3, xmmword [ecx + edi]
movdqa xmm4, xmm0
pclmulqdq xmm4, xmm1, 0
pxor xmm4, xmm3
pclmulqdq xmm0, xmm2, 0x11
pxor xmm0, xmm4
add edi, 0x10
cmp esi, edi
jne 0x1003a360
add ecx, edi
sub eax, edi
movdqa xmm3, xmm0
cmp edx, 0x30
jb 0x1003a42c
nop word cs:[eax + eax]
movdqa xmm4, xmm0
pclmulqdq xmm4, xmm1, 0
pclmulqdq xmm0, xmm2, 0x11
movdqu xmm3, xmmword [ecx]
pxor xmm3, xmm4
pxor xmm3, xmm0
movdqu xmm0, xmmword [ecx + 0x10]
movdqa xmm4, xmm3
pclmulqdq xmm4, xmm1, 0
pxor xmm4, xmm0
pclmulqdq xmm3, xmm2, 0x11
pxor xmm3, xmm4
movdqu xmm0, xmmword [ecx + 0x20]
movdqa xmm4, xmm3
pclmulqdq xmm4, xmm1, 0
pxor xmm4, xmm0
pclmulqdq xmm3, xmm2, 0x11
pxor xmm3, xmm4
movdqu xmm0, xmmword [ecx + 0x30]
movdqa xmm4, xmm3
pclmulqdq xmm4, xmm1, 0
pxor xmm4, xmm0
pclmulqdq xmm3, xmm2, 0x11
pxor xmm3, xmm4
add ecx, 0x40
add eax, 0xffffffc0
movdqa xmm0, xmm3
cmp eax, 0xf
ja 0x1003a3a0
jmp 0x1003a42c
movdqa xmm3, xmm0
movdqa xmm0, xmmword [0x1019db80]
pclmulqdq xmm0, xmm3, 1
psrldq xmm3, 8
pxor xmm3, xmm0
pxor xmm1, xmm1
pxor xmm0, xmm0
pblendw xmm0, xmm3, 3
psrldq xmm3, 4
pclmulqdq xmm0, xmmword [0x1019db90], 0
pxor xmm0, xmm3
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
pclmulqdq xmm2, xmmword [0x1019dba0], 0x10
pblendw xmm2, xmm1, 0xfc
pclmulqdq xmm2, xmmword [0x1019dbb0], 0
pxor xmm2, xmm0
pextrd eax, xmm2, 1
pop esi
pop edi
pop ebp
ret
Function at 0x1003b3a4
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x1003b3d8
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
call fcn.1003b3e0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x1003b3d1
mov dword [esi], ebx
call fcn.10065990
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x1003d9c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x1003db60
mov edx, dword fs:[0]
mov dword [eax], edx
mov dword fs:[0], eax
mov dword [ecx + 0x18], esi
xor edx, edx
test esi, esi
sete dl
mov dword [ecx + 0x10], edx
xor edx, edx
mov dword [ecx + 0x14], edx
mov dword [ecx + 4], 0x1002
mov dword [ecx + 0xc], edx
mov dword [ecx + 8], 6
xorps xmm0, xmm0
movups xmmword [ecx + 0x20], xmm0
movups xmmword [ecx + 0x30], xmm0
mov dword [ecx + 0x44], edx
mov dword [ebp - 0x20], ecx
mov dword [ecx + 0x40], edx
mov dword [eax + 8], edx
call fcn.10051220
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x1c], eax
lock inc dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x10044de0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x10055990
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov ebx, dword [ebp + 0x10]
mov dword fs:[0], eax
test byte [ebx + 4], 1
jne 0x10044e4f
movzx eax, byte [ebp + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
mov edi, dword [eax + 0x18]
mov ecx, edi
call dword [section..00cfg]
movsx eax, byte [ebp + 0x14]
mov ecx, esi
push dword [ebp - 0x20]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
jmp 0x10044f71
mov eax, dword [ebx + 0x1c]
lea ecx, [ebp - 0x2c]
mov dword [ecx], eax
mov dword [ebp - 0x20], eax
lock inc dword [eax + 4]
mov dword [ebp - 0x10], 0
push 0x101be780
call fcn.100513c8
mov esi, eax
xor ebx, ebx
dec ebx
mov eax, ebx
mov ecx, dword [ebp - 0x20]
lock xadd dword [ecx + 4], eax
test eax, eax
mov cl, byte [ebp + 0x18]
jne 0x10044ea4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov ecx, dword [ebp - 0x20]
call edi
mov cl, byte [ebp + 0x18]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov eax, dword [esi]
xor cl, 1
movzx ecx, cl
mov edi, dword [eax + ecx*4 + 0x14]
mov dword [ebp - 0x10], ebx
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
lea esi, [ebp - 0x2c]
push esi
call edi
mov edi, esi
mov al, byte [ebp - 0x21]
test al, al
jns 0x10044ed8
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test al, al
js 0x10044ef0
movzx eax, al
add eax, ebp
add eax, 0xffffffd4
cmp edi, eax
jne 0x10044efa
jmp 0x10044f55
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x28]
cmp edi, eax
je 0x10044f59
test ebx, ebx
je 0x10044f12
mov al, byte [edi]
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [ebx + 0x1c]
je 0x10044f16
lea edx, [ecx + 1]
mov dword [ebx + 0x18], edx
mov byte [ecx], al
jmp 0x10044f4f
xor ebx, ebx
jmp 0x10044f4f
mov dword [ebp - 0x20], edi
movzx edi, al
mov eax, dword [ebx]
mov esi, dword [eax + 0x30]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, esi
call dword [section..00cfg]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x30], ebx
mov ecx, ebx
push edi
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x10044f49
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x20]
inc edi
mov al, byte [ebp - 0x21]
jmp 0x10044ede
mov dword [esi], ebx
jmp 0x10044f66
mov dword [esi], ebx
push dword [ebp - 0x2c]
call fcn.10145bd4
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
Function at 0x10045000
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ecx
lea ecx, [esi + 0x50]
mov dword [ecx - 4], esp
xor edi, edi
dec edi
mov dword [ecx + 8], edi
mov dword [ecx + 4], 0x10055650
mov eax, dword fs:[0]
mov dword [ecx], eax
mov dword fs:[0], ecx
xor eax, eax
lea ecx, [esi + 0x19]
mov dword [ecx + 3], eax
mov dword [ecx - 1], 0x25
mov eax, dword [ebp + 8]
mov edx, 0x1019d7b2
push dword [eax + 4]
push 1
call fcn.10052dca
add esp, 8
mov dword [esi], esp
lea eax, [esi + 0x20]
mov dword [eax + 8], edi
mov dword [eax + 4], edi
mov dword [eax], edi
mov byte [eax + 0xc], 0xff
mov edi, eax
sub esp, 0x1c
mov ebx, esp
lea ecx, [ebx + 8]
call fcn.10041423
mov dword [ebx], edi
mov dword [ebx + 4], 0xd
lea eax, [esi + 0x18]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x18], eax
call fcn.1005859e
add esp, 0x1c
mov esp, dword [esi]
lea ebx, [esi + eax]
add ebx, 0x20
mov ecx, edi
mov edx, ebx
push dword [ebp + 8]
call fcn.100460ec
add esp, 4
lea edi, [esi + 0x30]
xor ecx, ecx
dec ecx
mov dword [edi + 0x13], ecx
mov dword [edi + 0xf], ecx
pcmpeqd xmm0, xmm0
movdqa xmmword [edi], xmm0
lea edx, [esi + 8]
mov dword [edx], ecx
lea edx, [esi + 4]
mov dword [edx], ecx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x1c]
lea edx, [esi + 0x14]
mov dword [edx], ecx
mov dword [esi], ecx
lock inc dword [ecx + 4]
lea ecx, [esi + 0x50]
xor edx, edx
mov dword [ecx + 8], edx
lea ecx, [esi + 0x20]
mov edx, eax
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 4]
push eax
lea eax, [esi + 8]
push eax
push edi
push ebx
call fcn.100476b0
add esp, 0x14
mov dl, byte [ebp + 0xc]
xor eax, eax
dec eax
mov ecx, dword [esi]
lock xadd dword [ecx + 4], eax
test eax, eax
jne 0x10045131
mov ebx, dword [esi]
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov dword [esi + 0x58], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
call edi
mov dl, byte [ebp + 0xc]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esi + 0x58], 0xffffffff
movsx edx, dl
push edx
push dword [ebp + 8]
push eax
push ecx
lea eax, [esi + 0x30]
push eax
push dword [esi + 0xc]
mov edi, dword [esi + 0x10]
push edi
call fcn.10034cbf
add esp, 0x1c
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100451d0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov esi, esp
mov dword [esi + 0x88], ebp
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], ecx
lea ecx, [esi + 0x90]
mov dword [ecx - 4], esp
xor ebx, ebx
dec ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 4], 0x10055660
mov eax, dword fs:[0]
mov dword [ecx], eax
mov dword fs:[0], ecx
xor eax, eax
lea ecx, [esi + 0x29]
mov dword [ecx + 3], eax
mov dword [ecx - 1], 0x25
mov eax, dword [ebp + 8]
mov edx, 0x1019d7d7
push dword [eax + 4]
push 1
call fcn.10052dca
add esp, 8
mov dword [esi + 0xc], esp
lea edi, [esi + 0x30]
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], ebx
pcmpeqd xmm0, xmm0
movdqa xmmword [edi], xmm0
sub esp, 0x20
mov ebx, esp
lea ecx, [ebx + 8]
call fcn.10041423
mov dword [ebx], edi
mov dword [ebx + 4], 0x18
lea eax, [esi + 0x28]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x18], eax
call fcn.1005859e
add esp, 0x20
mov esp, dword [esi + 0xc]
lea ebx, [esi + eax]
add ebx, 0x30
mov ecx, edi
mov edx, ebx
push dword [ebp + 8]
call fcn.100460ec
add esp, 4
mov dword [esi + 0x20], eax
lea eax, [esi + 0x50]
pcmpeqd xmm0, xmm0
movdqu xmmword [eax + 0x1d], xmm0
movdqa xmmword [eax + 0x10], xmm0
movdqa xmmword [eax], xmm0
lea edx, [esi + 0x14]
xor ecx, ecx
dec ecx
mov dword [edx], ecx
lea edx, [esi + 0x10]
mov dword [edx], ecx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x1c]
lea edx, [esi + 0x24]
mov dword [edx], ecx
mov dword [esi + 0xc], ecx
lock inc dword [ecx + 4]
lea ecx, [esi + 0x90]
xor edx, edx
mov dword [ecx + 8], edx
mov ecx, edi
mov edx, dword [esi + 0x20]
lea edi, [esi + 0x24]
push edi
lea edi, [esi + 0x10]
push edi
lea edi, [esi + 0x14]
push edi
push eax
push ebx
call fcn.100476b0
add esp, 0x14
mov dl, byte [ebp + 0xc]
xor eax, eax
dec eax
mov ecx, dword [esi + 0xc]
lock xadd dword [ecx + 4], eax
test eax, eax
jne 0x10045322
mov ebx, dword [esi + 0xc]
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov dword [esi + 0x98], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
call edi
mov dl, byte [ebp + 0xc]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x98], 0xffffffff
movsx edx, dl
push edx
push dword [ebp + 8]
push eax
push ecx
lea eax, [esi + 0x50]
push eax
push dword [esi + 0x18]
mov edi, dword [esi + 0x1c]
push edi
call fcn.10034cbf
add esp, 0x1c
mov eax, dword [esi + 0x90]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10045f50
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, esp
mov dword [esi + 0x68], ebp
mov dword [esi + 0xc], esp
lea ecx, [esi + 0x70]
mov dword [ecx - 4], esp
xor edx, edx
dec edx
mov dword [ecx + 8], edx
mov dword [ecx + 4], 0x100559a0
mov eax, dword fs:[0]
mov dword [ecx], eax
mov dword fs:[0], ecx
lea edi, [esi + 0x50]
mov dword [edi + 0x10], edx
pcmpeqd xmm0, xmm0
movdqa xmmword [edi], xmm0
push eax
sub esp, 0x18
mov ebx, esp
lea ecx, [ebx + 8]
call fcn.10041423
mov dword [ebx], edi
mov dword [ebx + 4], 0x14
mov dword [ebx + 0x14], 0x1019d765
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x18], eax
call fcn.1005859e
add esp, 0x1c
mov esp, dword [esi + 0xc]
mov dword [esi + 0x18], eax
lea edx, [esi + eax]
add edx, 0x50
mov ecx, edi
mov dword [esi + 0x14], edx
mov edi, dword [ebp + 0x10]
push edi
call fcn.100460ec
add esp, 4
mov dword [esi + 0x10], eax
xor eax, eax
dec eax
mov dword [esi + 0x41], eax
mov dword [esi + 0x3d], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
mov eax, dword [edi + 0x1c]
lea ecx, [esi + 0x1c]
mov dword [ecx], eax
mov dword [esi + 0xc], eax
lock inc dword [eax + 4]
lea eax, [esi + 0x70]
mov dword [eax + 8], 0
push 0x101be748
call fcn.100513c8
mov ebx, eax
xor eax, eax
dec eax
mov ecx, dword [esi + 0xc]
lock xadd dword [ecx + 4], eax
test eax, eax
jne 0x1004604a
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov dword [esi + 0x78], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov ecx, dword [esi + 0xc]
call edi
mov eax, dword [ebx]
mov edi, dword [eax + 0x18]
mov dword [esi + 0x78], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
lea eax, [esi + 0x20]
mov ecx, ebx
push eax
mov ebx, dword [esi + 0x14]
push ebx
lea eax, [esi + 0x50]
push eax
call edi
mov ecx, dword [esi + 0x10]
mov eax, ecx
lea edx, [esi + 0x50]
sub eax, edx
cmp ecx, ebx
mov ecx, dword [esi + 0x18]
lea ecx, [esi + ecx + 0x20]
lea eax, [esi + eax + 0x20]
cmove eax, ecx
movsx edx, byte [ebp + 0x14]
push edx
push dword [ebp + 0x10]
push ecx
push eax
lea eax, [esi + 0x20]
push eax
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push edi
call fcn.10034cbf
add esp, 0x1c
mov eax, dword [esi + 0x70]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
Function at 0x10046140
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x100559b0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov ebx, dword [ebp + 0x10]
mov dword fs:[0], eax
test byte [ebx + 4], 1
jne 0x100461af
movzx eax, byte [ebp + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
mov edi, dword [eax + 0x18]
mov ecx, edi
call dword [section..00cfg]
movzx eax, word [ebp + 0x14]
mov ecx, esi
push dword [ebp - 0x20]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
jmp 0x100462e6
mov eax, dword [ebx + 0x1c]
lea ecx, [ebp - 0x2c]
mov dword [ecx], eax
mov dword [ebp - 0x20], eax
lock inc dword [eax + 4]
mov dword [ebp - 0x10], 0
push 0x101be788
call fcn.100513c8
mov esi, eax
xor ebx, ebx
dec ebx
mov eax, ebx
mov ecx, dword [ebp - 0x20]
lock xadd dword [ecx + 4], eax
test eax, eax
mov cl, byte [ebp + 0x18]
jne 0x10046204
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov ecx, dword [ebp - 0x20]
call edi
mov cl, byte [ebp + 0x18]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov eax, dword [esi]
xor cl, 1
movzx ecx, cl
mov edi, dword [eax + ecx*4 + 0x14]
mov dword [ebp - 0x10], ebx
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
lea esi, [ebp - 0x2c]
push esi
call edi
mov edx, esi
mov al, byte [ebp - 0x21]
test al, al
jns 0x10046238
mov edx, dword [ebp - 0x2c]
mov ebx, dword [ebp + 0xc]
test al, al
js 0x10046251
movzx ecx, al
lea ecx, [ecx*2 - 0x2c]
add ecx, ebp
cmp edx, ecx
jne 0x1004625d
jmp 0x100462c3
mov ecx, dword [ebp - 0x28]
add ecx, ecx
add ecx, dword [ebp - 0x2c]
cmp edx, ecx
je 0x100462ca
test ebx, ebx
je 0x10046277
movzx esi, word [edx]
mov eax, dword [ebx + 0x18]
cmp eax, dword [ebx + 0x1c]
je 0x1004627b
lea ecx, [eax + 2]
mov dword [ebx + 0x18], ecx
mov word [eax], si
jmp 0x100462ac
xor ecx, ecx
jmp 0x100462b9
mov dword [ebp - 0x30], edx
mov eax, dword [ebx]
mov edi, dword [eax + 0x30]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov dword [ebp - 0x10], 1
movzx eax, si
mov dword [ebp - 0x20], ebx
mov ecx, ebx
push eax
call edi
mov esi, eax
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x30]
xor ecx, ecx
cmp si, 0xffff
je 0x100462b6
mov ecx, ebx
mov al, byte [ebp - 0x21]
add edx, 2
mov ebx, ecx
jmp 0x1004623b
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x100462dc
mov esi, dword [ebp + 8]
mov dword [esi], ebx
push dword [ebp - 0x2c]
call fcn.10145bd4
mov eax, esi
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
Function at 0x10046370
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov esi, esp
mov dword [esi + 0x78], ebp
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], ecx
lea ecx, [esi + 0x80]
mov dword [ecx - 4], esp
xor ebx, ebx
dec ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 4], 0x100556b0
mov eax, dword fs:[0]
mov dword [ecx], eax
mov dword fs:[0], ecx
xor eax, eax
lea ecx, [esi + 0x29]
mov dword [ecx + 3], eax
mov dword [ecx - 1], 0x25
mov eax, dword [ebp + 8]
mov edx, 0x1019d7b2
push dword [eax + 4]
push 1
call fcn.10052dca
add esp, 8
mov dword [esi + 0xc], esp
lea edi, [esi + 0x30]
mov dword [edi + 8], ebx
mov dword [edi + 4], ebx
mov dword [edi], ebx
mov byte [edi + 0xc], 0xff
sub esp, 0x1c
mov ebx, esp
lea ecx, [ebx + 8]
call fcn.10041423
mov dword [ebx], edi
mov dword [ebx + 4], 0xd
lea eax, [esi + 0x28]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x18], eax
call fcn.1005859e
add esp, 0x1c
mov esp, dword [esi + 0xc]
lea ebx, [esi + eax]
add ebx, 0x30
mov ecx, edi
mov edx, ebx
push dword [ebp + 8]
call fcn.100460ec
add esp, 4
mov dword [esi + 0x20], eax
pcmpeqd xmm0, xmm0
lea eax, [esi + 0x40]
movdqu xmmword [eax + 0x1e], xmm0
movdqa xmmword [eax + 0x10], xmm0
movdqa xmmword [eax], xmm0
lea edx, [esi + 0x14]
xor ecx, ecx
dec ecx
mov dword [edx], ecx
lea edx, [esi + 0x10]
mov dword [edx], ecx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x1c]
lea edx, [esi + 0x24]
mov dword [edx], ecx
mov dword [esi + 0xc], ecx
lock inc dword [ecx + 4]
lea ecx, [esi + 0x80]
xor edx, edx
mov dword [ecx + 8], edx
mov ecx, edi
mov edx, dword [esi + 0x20]
lea edi, [esi + 0x24]
push edi
lea edi, [esi + 0x10]
push edi
lea edi, [esi + 0x14]
push edi
push eax
push ebx
call fcn.10047f50
add esp, 0x14
movzx edx, word [ebp + 0xc]
xor eax, eax
dec eax
mov ecx, dword [esi + 0xc]
lock xadd dword [ecx + 4], eax
test eax, eax
jne 0x100464b9
mov ebx, dword [esi + 0xc]
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov dword [esi + 0x88], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
call edi
movzx edx, word [ebp + 0xc]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x88], 0xffffffff
movzx edx, dx
push edx
push dword [ebp + 8]
push eax
push ecx
lea eax, [esi + 0x40]
push eax
push dword [esi + 0x18]
mov edi, dword [esi + 0x1c]
push edi
call fcn.10047530
add esp, 0x1c
mov eax, dword [esi + 0x80]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10046570
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xd0
mov esi, esp
mov dword [esi + 0xb8], ebp
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], ecx
lea ecx, [esi + 0xc0]
mov dword [ecx - 4], esp
xor ebx, ebx
dec ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 4], 0x100556c0
mov eax, dword fs:[0]
mov dword [ecx], eax
mov dword fs:[0], ecx
xor eax, eax
lea ecx, [esi + 0x29]
mov dword [ecx + 3], eax
mov dword [ecx - 1], 0x25
mov eax, dword [ebp + 8]
mov edx, 0x1019d7d7
push dword [eax + 4]
push 1
call fcn.10052dca
add esp, 8
mov dword [esi + 0xc], esp
lea edi, [esi + 0x30]
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], ebx
pcmpeqd xmm0, xmm0
movdqa xmmword [edi], xmm0
sub esp, 0x20
mov ebx, esp
lea ecx, [ebx + 8]
call fcn.10041423
mov dword [ebx], edi
mov dword [ebx + 4], 0x18
lea eax, [esi + 0x28]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x18], eax
call fcn.1005859e
add esp, 0x20
mov esp, dword [esi + 0xc]
lea ebx, [esi + eax]
add ebx, 0x30
mov ecx, edi
mov edx, ebx
push dword [ebp + 8]
call fcn.100460ec
add esp, 4
mov dword [esi + 0x20], eax
lea eax, [esi + 0x50]
pcmpeqd xmm0, xmm0
movdqu xmmword [eax + 0x4a], xmm0
movdqa xmmword [eax + 0x40], xmm0
movdqa xmmword [eax + 0x30], xmm0
movdqa xmmword [eax + 0x20], xmm0
movdqa xmmword [eax + 0x10], xmm0
movdqa xmmword [eax], xmm0
lea edx, [esi + 0x14]
xor ecx, ecx
dec ecx
mov dword [edx], ecx
lea edx, [esi + 0x10]
mov dword [edx], ecx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x1c]
lea edx, [esi + 0x24]
mov dword [edx], ecx
mov dword [esi + 0xc], ecx
lock inc dword [ecx + 4]
lea ecx, [esi + 0xc0]
xor edx, edx
mov dword [ecx + 8], edx
mov ecx, edi
mov edx, dword [esi + 0x20]
lea edi, [esi + 0x24]
push edi
lea edi, [esi + 0x10]
push edi
lea edi, [esi + 0x14]
push edi
push eax
push ebx
call fcn.10047f50
add esp, 0x14
movzx edx, word [ebp + 0xc]
xor eax, eax
dec eax
mov ecx, dword [esi + 0xc]
lock xadd dword [ecx + 4], eax
test eax, eax
jne 0x100466d3
mov ebx, dword [esi + 0xc]
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov dword [esi + 0xc8], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
call edi
movzx edx, word [ebp + 0xc]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [esi + 0xc8], 0xffffffff
movzx edx, dx
push edx
push dword [ebp + 8]
push eax
push ecx
lea eax, [esi + 0x50]
push eax
push dword [esi + 0x18]
mov edi, dword [esi + 0x1c]
push edi
call fcn.10047530
add esp, 0x1c
mov eax, dword [esi + 0xc0]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret