joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005f540
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 4], ebx
mov eax, edi
shl eax, cl
cmp edx, eax
ja 0x1005f69a
mov esi, dword [ebx + 4]
lea eax, [edx - 1]
or eax, edi
mov dword [ebp + 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.10010040
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x1005f66d
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
imul edx, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, edx
mov edx, dword [ebx + 0xc]
lea edx, [edx + edi*8]
mov edi, dword [edx]
mov dword [ebp - 8], edx
cmp edi, esi
jne 0x1005f5f3
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x1005f663
mov edx, dword [edx + 4]
mov ebx, dword [eax + 8]
cmp ebx, dword [edx + 8]
jne 0x1005f62d
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
cmp edx, eax
je 0x1005f625
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 0xc]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
jmp 0x1005f660
cmp edi, edx
je 0x1005f63d
mov edx, dword [edx + 4]
cmp ebx, dword [edx + 8]
je 0x1005f676
cmp edi, edx
jne 0x1005f631
mov ebx, dword [eax + 4]
mov dword [ebp - 0xc], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 0xc]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 8]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 4]
mov eax, ecx
cmp ecx, esi
jne 0x1005f5a2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x1005f660
push str.invalid_hash_bucket_count
call fcn.1008315b
int3
Function at 0x100703f0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ae955
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100d0cc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor edx, eax
movzx eax, byte [ebx + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [ebx + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.1000f940
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10070483
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [edi + 8], 0x7ffffff
je 0x100705f1
lea eax, [edi + 4]
mov dword [ebp - 0x14], eax
push 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.1009a3ff
mov ecx, dword [ebx]
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [esi + 8], ecx
mov dword [esi + 0xc], 0x100b5cec
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov byte [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov eax, dword [edi + 8]
mov ebx, dword [edi + 0x1c]
inc eax
movss xmm3, dword [edi]
mov dword [ebp - 4], 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100b5b90]
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x100b5b90]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x10070593
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x1c], xmm0
fld qword [ebp - 0x1c]
fstp qword [esp]
call sub.msvcrt.dll_ceil
fstp qword [ebp - 0x1c]
movsd xmm0, qword [ebp - 0x1c]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.1009a560
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x10070575
cmp ebx, 0x200
jae 0x10070573
shl ebx, 3
cmp ebx, ecx
jae 0x10070575
mov ebx, ecx
push ebx
mov ecx, edi
call fcn.10010130
push dword [ebp + 0xc]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1000f940
mov edx, dword [eax]
jmp 0x10070596
mov edx, dword [ebp - 0x1c]
mov ebx, dword [edx + 4]
inc dword [edi + 8]
mov dword [esi], edx
mov dword [esi + 4], ebx
mov dword [ebx], esi
mov dword [edx + 4], esi
mov eax, dword [edi + 0x18]
and eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ecx + eax*8]
cmp edi, dword [esi]
mov esi, dword [ebp - 0x10]
jne 0x100705c1
mov dword [ecx + eax*8], esi
jmp 0x100705d0
cmp edi, edx
jne 0x100705ca
mov dword [ecx + eax*8], esi
jmp 0x100705d4
cmp dword [ecx + eax*8 + 4], ebx
jne 0x100705d4
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.1008315b
int3
Function at 0x100711d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
mov esi, 1
mov dword [ebp - 0x10], ebx
mov eax, esi
shl eax, cl
push edi
cmp edx, eax
ja 0x1007134e
lea eax, [edx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [ebx + 4]
push eax
mov dword [ebp + 8], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebx + 0xc]
lea eax, [esi + esi]
push eax
call fcn.10010040
lea eax, [esi - 1]
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x18], eax
mov esi, dword [ebx + 4]
mov eax, dword [ebp + 8]
mov esi, dword [esi]
mov edi, esi
cmp esi, eax
je 0x10071329
cmp dword [esi + 0x1c], 7
lea ecx, [esi + 8]
mov edi, dword [edi]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
jbe 0x10071251
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 8]
xor edx, edx
add ecx, ecx
mov ebx, 0x811c9dc5
mov dword [ebp - 8], ecx
je 0x1007127e
mov eax, dword [ebp - 4]
mov edi, ecx
movzx ecx, byte [edx + eax]
inc edx
xor ecx, ebx
imul ebx, ecx, 0x1000193
cmp edx, edi
jb 0x10071267
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0xc]
and edx, ebx
lea ecx, [ecx + edx*8]
mov dword [ebp - 4], ecx
cmp dword [ecx], eax
jne 0x1007129d
mov dword [ecx], esi
mov dword [ecx + 4], esi
jmp 0x1007131f
mov ebx, dword [ecx + 4]
lea eax, [ebx + 8]
push eax
lea eax, [esi + 8]
push eax
call fcn.10011ec0
add esp, 8
test al, al
je 0x100712da
mov ebx, dword [ebx]
cmp ebx, esi
je 0x100712d2
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], esi
jmp 0x1007131c
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
je 0x100712ff
mov ebx, dword [ebx + 4]
lea eax, [ebx + 8]
push eax
lea eax, [esi + 8]
push eax
call fcn.10011ec0
add esp, 8
test al, al
jne 0x10071332
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
jne 0x100712e1
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], esi
mov eax, dword [ebp + 8]
mov esi, edi
cmp edi, eax
jne 0x10071235
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
mov ebx, dword [ebx]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
jmp 0x1007131c
push str.invalid_hash_bucket_count
call fcn.1008315b
int3
Function at 0x10071bd0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x100d4b19], 0
push esi
je 0x10071c36
mov eax, dword [0x100d4b14]
xor esi, esi
mov edx, dword [ebp + 8]
add eax, 0xa0
nop dword [eax]
mov ecx, dword [eax - 0xa0]
or ecx, dword [eax - 0x9c]
je 0x10071c2d
mov ecx, dword [eax - 0x50]
cmp ecx, dword [edx + 8]
jne 0x10071c2d
mov ecx, dword [eax - 0x4c]
cmp ecx, dword [edx + 0xc]
jne 0x10071c2d
mov ecx, dword [eax]
cmp ecx, dword [edx + 0x10]
jne 0x10071c2d
mov ecx, dword [eax + 4]
cmp ecx, dword [edx + 0x14]
jne 0x10071c2d
mov ecx, dword [eax + 0x50]
cmp ecx, dword [edx + 0x18]
jne 0x10071c2d
mov ecx, dword [eax + 0x54]
cmp ecx, dword [edx + 0x1c]
je 0x10071c3b
inc esi
add eax, 8
cmp esi, 0xa
jl 0x10071bf0
xor al, al
pop esi
pop ebp
ret
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
test al, 0xf0
jne 0x10071c36
push 0x10
call esi
test al, 0xf0
je 0x10071c59
push 0xd
call esi
test al, 0xf0
je 0x10071c36
mov al, 1
pop esi
pop ebp
ret

Function at 0x10071c60
Capabilities:
Hash data using fnv

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
call fcn.10081c50
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.10082130
mov esi, dword [0x10c4a374]
mov edi, dword [0x10c4a378]
cmp esi, edi
je 0x10071d1f
mov edx, dword [esi]
movzx eax, dl
xor eax, 0x811c9dc5
mov dword [ebp - 4], edx
imul ecx, eax, 0x1000193
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, eax
mov eax, edx
shr eax, 0x10
imul ecx, ecx, 0x1000193
movzx eax, al
shr edx, 0x18
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, 0x10c4a384
xor eax, edx
imul eax, eax, 0x1000193
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.1000f940
mov eax, dword [ebp - 8]
test eax, eax
je 0x10071d2d
movups xmm1, xmmword [eax + 0xc]
movaps xmm0, xmm1
psrldq xmm1, 4
psrldq xmm0, 8
movd eax, xmm0
push eax
movd eax, xmm1
push eax
call fcn.10081960
add esi, 4
cmp esi, edi
jne 0x10071ca0
call fcn.10081cb0
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.invalid_unordered_map_K__T__key
call fcn.1008317b
int3
Function at 0x10072050
Capabilities:
Hash data using djb2
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f0
mov eax, dword [0x100d0cc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 0x10]
add eax, eax
cmp dword [edi + 0x14], 7
jbe 0x10072076
mov edi, dword [edi]
xor ebx, ebx
mov esi, 0x1505
test eax, eax
je 0x100720ad
dec eax
lea edi, [edi + 1]
mov dword [ebp - 0x3f0], eax
mov ecx, ebx
mov eax, esi
shld ebx, esi, 5
shl esi, 5
add esi, eax
movzx eax, byte [edi - 1]
cdq
adc ebx, ecx
add esi, eax
mov eax, dword [ebp - 0x3f0]
adc ebx, edx
test eax, eax
jne 0x10072081
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push ebx
push esi
push eax
lea eax, [ebp - 0x3ec]
push str.LUNA_NOTIFY._d._llu
push eax
call fcn.10072b20
add esp, 0x14
lea eax, [ebp - 0x3ec]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x3f0], eax
test ebx, ebx
je 0x10072156
mov esi, dword [ebp + 0xc]
cmp byte [0x100d4b19], 0
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
je 0x10072156
mov eax, dword [0x100d4b14]
xor edx, edx
add eax, 0xa0
nop dword [eax + eax]
mov ecx, dword [eax - 0xa0]
or ecx, dword [eax - 0x9c]
je 0x1007214d
mov ecx, dword [eax - 0x50]
cmp ecx, dword [esi + 8]
jne 0x1007214d
mov ecx, dword [eax - 0x4c]
cmp ecx, dword [esi + 0xc]
jne 0x1007214d
mov ecx, dword [eax]
cmp ecx, dword [esi + 0x10]
jne 0x1007214d
mov ecx, dword [eax + 4]
cmp ecx, dword [esi + 0x14]
jne 0x1007214d
mov ecx, dword [eax + 0x50]
cmp ecx, dword [esi + 0x18]
jne 0x1007214d
mov ecx, dword [eax + 0x54]
cmp ecx, dword [esi + 0x1c]
je 0x10072177
inc edx
add eax, 8
cmp edx, 0xa
jl 0x10072110
xor bl, bl
push dword [ebp - 0x3f0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1009a43d
mov esp, ebp
pop ebp
ret
push 0x11
call edi
test al, 0xf0
jne 0x10072156
push 0x10
call edi
test al, 0xf0
je 0x1007218f
push 0xd
call edi
test al, 0xf0
je 0x10072156
cmp ebx, 0x64
mov eax, 0x64
mov edi, ebx
cmova edi, eax
push edi
push dword [ebp - 0x3f0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100721b6
sub ebx, edi
je 0x10072156
jmp 0x100720ed
mov bl, 1
jmp 0x10072158
Function at 0x10077bc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
imul esi, dword [ebp + 8], 0x2c
push edi
add esi, dword [0x132cb150]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp + 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10077c08
pop edi
mov eax, 0xa
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x10077c2d
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 0x10077c4e
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10077c4e
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x10077c48
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x10077c4e
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
shl bl, 2
add cl, cl
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
xor eax, eax
mov byte [esi + 0x14], bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10077d30
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100d0cc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x10077e28
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10077e21
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x10077e08
call ebx
cmp dword [ebp - 0x14], eax
jne 0x10077e08
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10077e08
mov edx, dword [esi]
test edx, edx
jne 0x10077dd1
push 0x200
push edx
mov dword [esi + 4], 0x80
push dword [0x10c4a430]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10077e21
jmp 0x10077dfc
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10077dfc
shl eax, 3
push eax
push edx
push 0
push dword [0x10c4a430]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10077e21
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 [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10077d90
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x10077e6c
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x10077e6c
mov eax, dword [esi]
push dword [eax + ebx*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10077e66
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.100784e0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [esi + 8]
jb 0x10077e34
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1009a43d
mov esp, ebp
pop ebp
ret
Function at 0x10078650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
call fcn.10077ca0
cmp dword [0x10c4a430], 0
je 0x100786f2
mov edx, dword [ebp + 8]
push esi
push edi
test edx, edx
jne 0x100786b0
xor esi, esi
cmp dword [0x132cb158], esi
jbe 0x100786a1
push ebx
mov bl, byte [ebp + 0xc]
shl bl, 2
xor edi, edi
mov edx, dword [0x132cb150]
lea edi, [edi + 0x2c]
inc esi
mov cl, byte [edx + edi - 0x18]
xor cl, bl
and cl, 4
xor byte [edx + edi - 0x18], cl
cmp esi, dword [0x132cb158]
jb 0x10078681
pop ebx
xor eax, eax
pop edi
pop esi
xor ecx, ecx
mov edx, 0x10c4a42c
xchg dword [edx], ecx
pop ebp
ret
mov esi, dword [0x132cb158]
xor eax, eax
test esi, esi
je 0x100786d0
mov edi, dword [0x132cb150]
mov ecx, edi
cmp edx, dword [ecx]
je 0x100786d7
inc eax
add ecx, 0x2c
cmp eax, esi
jb 0x100786c4
mov eax, 4
jmp 0x100786a3
cmp eax, 0xffffffff
je 0x100786d0
mov cl, byte [ebp + 0xc]
imul edx, eax, 0x2c
shl cl, 2
xor cl, byte [edx + edi + 0x14]
and cl, 4
xor byte [edx + edi + 0x14], cl
jmp 0x100786a1
mov eax, 2
jmp 0x100786a5

Function at 0x10078700
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi], 0
je 0x10078750
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x1007873f
push ebx
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10078738
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x10078715
pop ebx
push dword [edi]
push 0
push dword [0x10c4a430]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
pop ebp
ret

Function at 0x10078760
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x132cb148]
test eax, eax
je 0x1007877c
nop dword [eax]
cmp dword [eax + 4], 0
jne 0x100787d2
mov eax, dword [eax]
test eax, eax
jne 0x10078770
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x100787cf
push esi
push edi
xor edi, edi
mov dword [eax + 8], 0
lea edx, [eax + 0x20]
lea esi, [edi + 0x20]
mov dword [edx], edi
mov ecx, edx
mov dword [eax + 4], edx
add esi, 0x20
add edx, 0x20
mov edi, ecx
cmp esi, 0xfe0
jbe 0x100787a5
mov ecx, dword [0x132cb148]
mov dword [eax], ecx
mov dword [0x132cb148], eax
pop edi
pop esi
test eax, eax
jne 0x100787d2
xor eax, eax
ret
mov edx, dword [eax + 4]
mov ecx, dword [edx]
inc dword [eax + 8]
mov dword [eax + 4], ecx
mov eax, edx
ret
Function at 0x1007c310
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10c4ad74]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10c4a8ec]
cmp eax, dword [ecx + 4]
jg 0x1007c359
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x10c4a438
push edi
push dword [esi]
call ebx
test eax, eax
jne 0x1007c354
add esi, 4
cmp esi, 0x10c4a8e8
jne 0x1007c340
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x10c4a8ec
call fcn.1009a4f8
add esp, 4
cmp dword [0x10c4a8ec], 0xffffffff
jne 0x1007c32f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x100d4b30
push 0x4b0
push 0x10c4a438
push eax
call sub.PSAPI.DLL_EnumProcessModules
push 0x10c4a8ec
mov dword [0x10c4a8e8], eax
call fcn.1009a4a7
add esp, 4
jmp 0x1007c32f

Function at 0x1007c3a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 0x5a4d
cmp ax, word [edx]
jne 0x1007c3e0
mov ecx, dword [edx + 0x3c]
cmp dword [ecx + edx], 0x4550
jne 0x1007c3e0
mov eax, dword [ecx + edx + 0xd8]
mov ecx, dword [ecx + edx + 0xdc]
add eax, edx
add ecx, eax
cmp eax, ecx
jae 0x1007c3e0
mov edx, dword [ebp + 0xc]
cmp dword [eax], edx
je 0x1007c3e2
add eax, 4
cmp eax, ecx
jb 0x1007c3d5
xor eax, eax
pop ebp
ret

Function at 0x1007c3f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 0x5a4d
cmp ax, word [edx]
jne 0x1007c447
mov ecx, dword [edx + 0x3c]
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x1007c447
movzx eax, word [ecx + 0x14]
add eax, 0x18
add eax, ecx
test byte [eax + 0x24], 0x20
jne 0x1007c429
nop dword [eax]
add eax, 0x28
test byte [eax + 0x24], 0x20
je 0x1007c420
mov ecx, dword [ebp + 0xc]
add edx, dword [eax + 0xc]
mov dword [ecx], edx
mov ecx, dword [eax + 8]
mov eax, dword [ebp + 0x10]
and ecx, 0xfffff000
add ecx, 0x1000
add ecx, edx
mov dword [eax], ecx
xor eax, eax
pop ebp
ret