joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004e210
Capabilities:
Hash data with crc32

Disassembly:
sub esp, 0x14
mov edx, dword [0x101541b4]
mov eax, ecx
push ebx
push ebp
push esi
push edi
mov edi, edx
mov dword [esp + 0x1c], eax
xor esi, esi
mov dword [esp + 0x18], esi
mov ebp, dword [edi + 0x1b94]
test al, 0x10
jne 0x1004e371
mov ebx, dword [ebp + 0x118]
test ebx, ebx
je 0x1004e271
cmp dword [edi + 0x1bc8], ebx
jne 0x1004e367
mov esi, dword [edi + 0x1c00]
xor eax, eax
cmp esi, 0xffffffff
cmove esi, eax
cmp byte [esi + edi + 0xec], al
je 0x1004e367
xor al, al
jmp 0x1004e2fb
cmp byte [edi + 0xec], 0
je 0x1004e367
test al, 8
je 0x1004e367
test byte [ebp + 0x11c], 1
jne 0x1004e2a7
cmp dword [edi + 0x1bc8], esi
je 0x1004e367
cmp dword [edi + 0x1bf8], ebp
jne 0x1004e367
lea esi, [ebp + 0x120]
mov ecx, ebp
push esi
call fcn.10040010
mov ebx, eax
mov ecx, esi
mov edx, ebx
mov dword [ebp + 0x118], ebx
call fcn.10040390
mov byte [esp + 0x17], al
test al, al
je 0x1004e2eb
cmp byte [edi + 0x3d8], 0
je 0x1004e2eb
mov edx, ebp
mov ecx, ebx
call fcn.10040140
mov ecx, ebp
call fcn.10048c60
mov al, byte [esp + 0x17]
cmp dword [edi + 0x1bc8], ebx
jne 0x1004e367
mov edx, dword [0x101541b4]
xor esi, esi
mov byte [edi + 0x1bd5], al
cmp byte [edx + esi + 0xec], 0
mov ecx, dword [ebp + 0xc0]
mov eax, dword [ebp + 0xc8]
mov eax, dword [eax + ecx*4 - 4]
mov dword [esp + 0x18], eax
jne 0x1004e323
xor al, al
jmp 0x1004e33b
movss xmm1, dword [edx + 0x30]
movss xmm0, dword [edx + esi*4 + 0x444]
mulss xmm1, xmm1
comiss xmm0, xmm1
setae al
mov dword [edi + 0x1bdc], 0xffffffff
mov dword [edi + 0x1be0], 0xffffffff
mov dword [edi + 0x1be8], 0xffffffff
mov dword [edi + 0x1bec], 0xffffffff
test al, al
jne 0x1004e3ab
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
xor ebp, ebp
or ebx, 0xffffffff
mov edx, 0x10138105
mov al, 0x23
or esi, 0xffffffff
cmp al, 0x23
jne 0x1004e38e
cmp byte [edx], al
jne 0x1004e38e
cmp byte [edx + 1], al
cmove ebx, esi
movzx ecx, bl
movzx eax, al
xor ecx, eax
shr ebx, 8
mov al, byte [edx]
inc edx
xor ebx, dword [ecx*4 + 0x10138340]
test al, al
jne 0x1004e380
not ebx
mov esi, ebp
cmp byte [edi + 0x1e3c], 0
jne 0x1004e3ef
call fcn.1004e130
mov eax, dword [esp + 0x18]
mov dword [edi + 0x1e58], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x1e54], ebx
mov byte [edi + 0x1e3c], 1
mov dword [edi + 0x1e40], eax
mov dword [edi + 0x1e48], esi
cmp ebx, dword [edi + 0x1bc8]
jne 0x1004e3ef
mov byte [edi + 0x1bd6], 1
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 0x1b38]
mov dword [edi + 0x1e44], eax
mov byte [edi + 0x1e3d], 1
test bl, 1
jne 0x1004e43d
xor edx, edx
xor ecx, ecx
call fcn.1004a4d0
cmp dword [edi + 0x1ea4], 0
je 0x1004e43d
test dword [edi + 0x1e98], 0x1000
je 0x1004e43d
mov eax, dword [edi + 0x1b94]
mov byte [eax + 0x8f], 1
mov byte [eax + 0xa8], 1
test bl, 0x12
jne 0x1004e449
and dword [ebp + 0x11c], 0xfffffffe
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x14
ret
Function at 0x1004e7c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x2ee0], 0
lea esi, [edi + 0x2ee4]
je 0x1004e843
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x1004e7fc
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.10051960
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.1003e100
mov edx, dword [esi]
mov ecx, 0x101541a0
push dword [edi + 0x2ee0]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x2eec]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call fcn.10104c54
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.1003e100
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10053000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10053038
mov eax, dword [0x101541b4]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x10053026
dec dword [eax + 0x370]
mov edx, dword [0x101541b0]
call fcn.1003cd90
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1005306e
mov eax, dword [0x101541b4]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x1005305c
dec dword [eax + 0x370]
mov edx, dword [0x101541b0]
call fcn.1003cd90
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x100530a4
mov eax, dword [0x101541b4]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x10053092
dec dword [eax + 0x370]
mov edx, dword [0x101541b0]
call fcn.1003cd90
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x100530f6
mov eax, dword [0x101541b4]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x100530e4
dec dword [eax + 0x370]
mov edx, dword [0x101541b0]
call fcn.1003cd90
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x1005312c
mov eax, dword [0x101541b4]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x1005311a
dec dword [eax + 0x370]
mov edx, dword [0x101541b0]
call fcn.1003cd90
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x10053162
mov eax, dword [0x101541b4]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x10053150
dec dword [eax + 0x370]
mov edx, dword [0x101541b0]
call fcn.1003cd90
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.10055c40
Function at 0x10056ad0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xfc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10c]
push edi
movss dword [esp + 0x10], xmm3
mov dword [esp + 0x14], ecx
movzx ebx, byte [esi + 8]
movzx eax, byte [esi + 9]
shl ebx, 8
add ebx, eax
movzx eax, byte [esi + 0xa]
shl ebx, 8
add ebx, eax
movzx eax, byte [esi + 0xb]
shl ebx, 8
add ebx, eax
mov eax, dword [0x101541b4]
test eax, eax
je 0x10056b19
inc dword [eax + 0x370]
mov edx, dword [0x101541b0]
mov ecx, ebx
call fcn.1003cd80
movzx edx, byte [esi]
mov ebp, eax
movzx ecx, byte [esi + 1]
shl edx, 8
add edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
add edx, ecx
movzx ecx, byte [esi + 3]
shl edx, 8
add edx, ecx
cmp edx, 0x57bc0000
jne 0x10056bcb
movzx ecx, byte [esi + 4]
movzx eax, byte [esi + 5]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 6]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 7]
shl ecx, 8
add ecx, eax
jne 0x10056bcb
movzx edi, byte [esi + 8]
movzx eax, byte [esi + 9]
shl edi, 8
add edi, eax
mov dword [0x1015c8cc], esi
movzx eax, byte [esi + 0xa]
shl edi, 8
add edi, eax
mov dword [0x1015c8c8], ebp
movzx eax, byte [esi + 0xb]
add esi, 0x10
shl edi, 8
mov ecx, esi
add edi, eax
mov dword [0x1015c8d0], ebp
add edi, ebp
mov dword [0x10156a1c], edi
call fcn.10059240
cmp eax, esi
je 0x10056bcb
cmp dword [0x1015c8d0], edi
ja 0x10056bcb
mov ecx, eax
mov esi, eax
call fcn.10059240
cmp eax, esi
jne 0x10056bb6
mov esi, dword [esp + 0x118]
test esi, esi
je 0x10056be3
mov ecx, 0x1e
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
jmp 0x10056c23
push 0x78
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.100fde00
mov eax, 0xffff
mov byte [esp + 0x2c], 1
add esp, 0xc
mov dword [esp + 0x2c], 3
mov dword [esp + 0x30], 1
mov dword [esp + 0x50], 0x7f7fffff
mov dword [esp + 0x5c], 0x3f800000
mov word [esp + 0x60], ax
mov eax, dword [esp + 0x11c]
lea esi, [esp + 0x18]
movss xmm0, dword [esp + 0x10]
lea edi, [esp + 0x90]
mov ecx, 0x1e
test eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x1e
mov byte [esp + 0x98], 1
lea esi, [esp + 0x90]
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x48]
cmovne ecx, eax
mov dword [esp + 0x18], ebp
lea eax, [esp + 0x18]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x14]
push eax
mov dword [esp + 0x20], ebx
movss dword [esp + 0x2c], xmm0
call fcn.100566a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xfc
ret 0x10
Function at 0x10057010
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], edi
test byte [edi], 4
jne 0x100571c3
mov eax, dword [edi + 0x464]
mov ecx, dword [edi + 0x48]
mov dword [esp + 0x14], ecx
lea edx, [eax*8]
sub edx, eax
lea eax, [edi + 0x58]
mov dword [esp + 0x1c], edx
xor ebx, ebx
mov dword [esp + 0x18], eax
nop dword [eax]
movzx ebp, word [ecx + edx*4]
movzx ecx, word [ecx + edx*4 + 6]
mov esi, ebp
mov eax, dword [esp + 0x14]
add ecx, ebx
imul ecx, dword [edi + 0x1c]
sub esi, ebx
shr esi, 1
sub ebp, esi
movzx eax, word [eax + edx*4 + 4]
sub ebp, ebx
add ecx, eax
mov eax, dword [edi + 0x14]
test eax, eax
je 0x100570b8
lea edi, [eax + ecx]
test esi, esi
je 0x1005708e
push esi
push 0
push edi
call fcn.100fde00
add esp, 0xc
add edi, esi
test ebx, ebx
je 0x100570a3
push ebx
push 0xff
push edi
call fcn.100fde00
add esp, 0xc
test ebp, ebp
je 0x100570e8
push ebp
lea eax, [edi + ebx]
push 0
push eax
call fcn.100fde00
add esp, 0xc
jmp 0x100570e8
mov eax, dword [edi + 0x18]
lea edx, [eax + ecx*4]
test esi, esi
je 0x100570ca
mov ecx, esi
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
test ebx, ebx
je 0x100570d8
lea edi, [edx + esi*4]
mov ecx, ebx
or eax, 0xffffffff
rep stosd dword es:[edi], eax
test ebp, ebp
je 0x100570e8
lea eax, [esi + ebx]
mov ecx, ebp
lea edi, [edx + eax*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
movzx ecx, word [ebp + edx*4 + 4]
add ecx, esi
movzx edx, word [ebp + edx*4 + 6]
add edx, ebx
lea eax, [ecx - 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1014bca0]
lea eax, [ebx + 1]
inc ebx
add eax, ecx
mov ecx, ebp
cvtpd2ps xmm3, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm3, dword [edi + 0x24]
addsd xmm0, qword [eax*8 + 0x1014bca0]
lea eax, [edx + 1]
movss dword [esp + 0x24], xmm3
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm2, dword [edi + 0x24]
addsd xmm0, qword [eax*8 + 0x1014bca0]
mov eax, dword [esp + 0x18]
movss dword [esp + 0x2c], xmm2
cvtpd2ps xmm1, xmm0
movd xmm0, edx
cvtdq2pd xmm0, xmm0
shr edx, 0x1f
addsd xmm0, qword [edx*8 + 0x1014bca0]
mov edx, dword [esp + 0x1c]
cvtpd2ps xmm0, xmm0
addss xmm1, xmm0
mulss xmm1, dword [edi + 0x28]
mulss xmm1, dword [0x1014b168]
movss dword [esp + 0x28], xmm1
movss dword [esp + 0x30], xmm1
movups xmm0, xmmword [esp + 0x24]
movups xmmword [eax], xmm0
add eax, 0x10
mov dword [esp + 0x18], eax
cmp ebx, 0x40
jb 0x10057050
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x1005c530
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x30
push ebx
mov ebx, dword [0x101541b4]
lea eax, [esp + 0x20]
push esi
push edi
push eax
push dword [0x10156908]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
movd xmm1, eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [esp + 0x20]
cvtdq2ps xmm0, xmm0
push eax
movss dword [ebx + 0x10], xmm1
movss dword [ebx + 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [esp + 0x20]
mov ecx, edi
sub ecx, dword [0x10156900]
mov esi, dword [esp + 0x24]
mov edx, esi
sbb edx, dword [0x10156904]
call fcn.10120e50
mov edx, dword [0x101568fc]
mov ecx, dword [0x101568f8]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x10], xmm0
call fcn.10120e50
movss xmm1, dword [esp + 0x10]
cvtsd2ss xmm0, xmm0
push 0x11
divss xmm1, xmm0
movss dword [ebx + 0x18], xmm1
mov dword [0x10156904], esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [0x10156900], edi
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [ebx + 0xfc], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [ebx + 0xfd], al
call esi
shr eax, 0xf
and al, 1
mov byte [ebx + 0xff], 0
push 0xa0
mov byte [ebx + 0xfe], al
call esi
shr eax, 0xf
and al, 1
push 0xa1
mov byte [ebx + 0x1a0], al
call esi
mov esi, dword [0x101541b4]
shr eax, 0xf
and al, 1
mov byte [ebx + 0x1a1], al
cmp byte [esi + 0x357], 0
je 0x1005c67b
cvttss2si eax, dword [esi + 0xe4]
mov dword [esp + 0x10], eax
cvttss2si eax, dword [esi + 0xe8]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push dword [0x10156908]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetCursorPos]
mov dword [esi + 0xe4], 0xff7fffff
mov dword [esi + 0xe8], 0xff7fffff
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x1005c6f5
mov ecx, dword [0x10156908]
cmp eax, ecx
je 0x1005c6af
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x1005c6f5
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1005c6f5
lea eax, [esp + 0x18]
push eax
push dword [0x10156908]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1005c6f5
movd xmm0, dword [esp + 0x18]
movd xmm1, dword [esp + 0x1c]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [esi + 0xe4], xmm0
movss dword [esi + 0xe8], xmm1
cmp byte [ebx + 0xb0], 0
je 0x1005c703
or eax, 0xffffffff
jmp 0x1005c70e
mov eax, dword [0x101541b4]
mov eax, dword [eax + 0x1e38]
cmp dword [0x10152b1c], eax
je 0x1005c720
mov dword [0x10152b1c], eax
call fcn.1005c400
pop edi
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x10072c70
Capabilities:
Hash data with crc32

Disassembly:
test dword [ecx + 0xc], 0x100000
push esi
push edi
mov edi, edx
je 0x10072ce0
mov cl, byte [edi]
lea esi, [edi + 1]
or eax, 0xffffffff
test cl, cl
je 0x10072cb8
or edi, 0xffffffff
nop dword [eax]
cmp cl, 0x23
jne 0x10072c9f
cmp byte [esi], cl
jne 0x10072c9f
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x10138340]
test cl, cl
jne 0x10072c90
mov ecx, dword [0x101541b4]
not eax
cmp dword [ecx + 0x1bc8], eax
jne 0x10072cce
mov dword [ecx + 0x1bcc], eax
cmp dword [ecx + 0x1c04], eax
jne 0x10072d22
pop edi
mov byte [ecx + 0x1c08], 1
pop esi
ret
mov esi, dword [0x101541b4]
xor edx, edx
mov eax, dword [esi + 0x1b94]
mov ecx, dword [eax + 0xc0]
mov eax, dword [eax + 0xc8]
push dword [eax + ecx*4 - 4]
mov ecx, edi
call fcn.1003d7c0
cmp dword [esi + 0x1bc8], eax
jne 0x10072d13
mov dword [esi + 0x1bcc], eax
cmp dword [esi + 0x1c04], eax
jne 0x10072d22
mov byte [esi + 0x1c08], 1
pop edi
pop esi
ret
Function at 0x1007c930
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x1007ca2b
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1007ca24
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop
cmp dword [esp + 0x14], 0x10
jb 0x1007ca08
call ebx
cmp dword [esp + 0x20], eax
jne 0x1007ca08
call ebp
cmp dword [esp + 0x1c], eax
je 0x1007ca08
mov edx, dword [esi]
test edx, edx
jne 0x1007c9d0
push 0x200
push edx
push dword [0x1015690c]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1007ca24
jmp 0x1007c9fb
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1007c9fb
shl eax, 3
push eax
push edx
push 0
push dword [0x1015690c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1007ca24
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x1c]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1007c990
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x1007ca75
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1007ca75
mov ebp, dword [esp + 0x34]
nop dword [eax + eax]
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1007ca6f
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [esp + 0x10]
mov ecx, ebx
push ebp
call fcn.1007c7d0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1007ca40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4

Function at 0x1007ca80
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx]
test eax, eax
je 0x1007cad9
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x1007cac9
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
nop dword [eax]
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1007cabf
push edi
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x1007caa0
mov eax, dword [ebx]
pop edi
pop ebp
push eax
push 0
push dword [0x1015690c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
ret
Function at 0x1007cae0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x1015d130]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
mov dword [esp + 0x18], edi
lea ebp, [eax*2 + 5]
lea eax, [esp + 0x10]
mov dword [esp + 0x14], ebp
push eax
push 0x40
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
test eax, eax
jns 0x1007cb41
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
add esp, 0xc
ret
test ebx, ebx
je 0x1007cb62
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x1007cb83
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1007cb83
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x1007cb7d
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x1007cb83
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [esp + 0x10]
mov dword [esp + 0x18], ebp
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], edi
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, byte [esi + 0x14]
and bl, 1
mov cl, bl
and al, 0xfd
add cl, cl
shl bl, 2
or cl, al
and cl, 0xfb
or cl, bl
xor eax, eax
pop edi
mov byte [esi + 0x14], cl
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x1007d3b0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
sub esp, 0x18
mov eax, dword fs:[0x30]
push ebx
push ebp
push esi
mov eax, dword [eax + 0xc]
mov ebx, ecx
add eax, 0xc
mov dword [esp + 0x18], ebx
push edi
mov dword [esp + 0x24], eax
mov edx, dword [eax]
mov dword [esp + 0x14], edx
cmp edx, eax
je 0x1007d480
nop dword [eax + eax]
movzx ecx, word [edx + 0x2c]
xor eax, eax
shr ecx, 1
mov dword [esp + 0x20], ecx
je 0x1007d453
mov ecx, dword [edx + 0x30]
mov dword [esp + 0x18], ecx
movzx esi, word [ecx]
mov edx, dword [esp + 0x2c]
mov ecx, esi
mov dl, byte [eax + edx]
movsx bp, dl
mov byte [esp + 0x13], dl
lea edx, [ecx - 0x61]
add ecx, 0xffffffe0
cmp dx, 0x19
movzx ebx, cx
mov ecx, esi
movzx edi, bp
cmova ebx, ecx
lea ecx, [edi - 0x20]
lea edx, [edi - 0x61]
movzx esi, cx
cmp dx, 0x19
movzx ecx, bp
cmova esi, ecx
cmp bx, si
jne 0x1007d468
cmp byte [esp + 0x13], 0
je 0x1007d468
mov ecx, dword [esp + 0x18]
inc eax
add ecx, 2
mov dword [esp + 0x18], ecx
cmp eax, dword [esp + 0x20]
jb 0x1007d3f5
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x18]
pop edi
pop esi
mov dword [ebx], eax
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret 4
mov edx, dword [esp + 0x14]
mov edx, dword [edx]
mov dword [esp + 0x14], edx
cmp edx, dword [esp + 0x24]
jne 0x1007d3e0
mov ebx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword [ebx], 0
mov eax, ebx
pop ebx
add esp, 0x18
ret 4

Function at 0x1007d4a0
Capabilities:
Parse pe header

Disassembly:
sub esp, 8
push edi
mov edi, dword [ecx]
test edi, edi
je 0x1007d597
push ebx
mov eax, 0x5a4d
push ebp
push esi
cmp word [edi], ax
jne 0x1007d549
mov eax, dword [edi + 0x3c]
xor ecx, ecx
add eax, edi
cmp dword [eax], 0x4550
cmovne eax, ecx
test eax, eax
je 0x1007d549
add eax, 0x18
mov ecx, 0x10b
cmp word [eax], cx
jne 0x1007d549
test eax, eax
je 0x1007d549
cmp dword [eax + 0x5c], 0
jbe 0x1007d549
add eax, 0x60
mov dword [esp + 0x14], eax
je 0x1007d549
mov eax, dword [eax]
xor ebx, ebx
mov dword [esp + 0x10], eax
mov ebp, dword [eax + edi + 0x18]
test ebp, ebp
je 0x1007d549
mov esi, dword [eax + edi + 0x20]
add esi, edi
nop dword [eax]
mov eax, dword [esi]
mov ecx, dword [esp + 0x20]
add eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1007d538
test dl, dl
je 0x1007d534
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1007d538
add eax, 2
add ecx, 2
test dl, dl
jne 0x1007d518
xor eax, eax
jmp 0x1007d53d
sbb eax, eax
or eax, 1
test eax, eax
je 0x1007d55b
inc ebx
add esi, 4
cmp ebx, ebp
jb 0x1007d510
mov eax, dword [esp + 0x1c]
xor ecx, ecx
pop esi
pop ebp
pop ebx
mov dword [eax], ecx
pop edi
add esp, 8
ret 8
mov edx, dword [esp + 0x10]
mov eax, dword [edx + edi + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + edi]
mov eax, dword [edx + edi + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + edi]
cmp ecx, edx
jb 0x1007d585
mov eax, ecx
sub eax, edx
mov edx, dword [esp + 0x14]
cmp eax, dword [edx + 4]
jb 0x1007d549
mov eax, dword [esp + 0x1c]
add ecx, edi
pop esi
pop ebp
pop ebx
mov dword [eax], ecx
pop edi
add esp, 8
ret 8
mov eax, dword [esp + 0x10]
pop edi
mov dword [eax], 0
add esp, 8
ret 8
Function at 0x10086110
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x100861a2
cmp byte [esi + 0x3d], 0
je 0x100861a2
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1008619a
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x1008616a
sub eax, 1
je 0x1008616e
sub eax, 2
jne 0x1008619a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
add esp, 0x24
ret
mov byte [esi + 0x3d], 0
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
sub edi, eax
je 0x1008618d
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10104c54
add esp, 0x10
cmp edi, eax
jne 0x1008619a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
add esp, 0x24
ret
pop edi
xor al, al
pop esi
add esp, 0x24
ret
mov al, 1
pop esi
add esp, 0x24
ret