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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e6bf5
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10112200]
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 - 0x20]
push ebx
push eax
call fcn.10005810
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x1001cb1e
mov eax, dword [ebp + 0x10]
lea ecx, [esi + 0xc]
cmp ecx, eax
je 0x1001cb12
cmp dword [eax + 0x14], 0xf
mov edx, dword [eax + 0x10]
jbe 0x1001cb0b
mov eax, dword [eax]
push edx
push eax
call fcn.100073b0
mov eax, dword [ebp + 8]
mov byte [eax + 4], 0
jmp 0x1001cc41
cmp dword [edi + 8], 0x71c71c7
je 0x1001cc57
lea eax, [edi + 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
push 0x24
mov dword [ebp - 0x14], 0
call fcn.100bb295
mov ecx, dword [ebx]
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov dword [esi + 8], ecx
lea ecx, [esi + 0xc]
push dword [ebp + 0x10]
call fcn.1000e270
mov dword [ebp - 4], 1
mov eax, dword [edi + 8]
mov ebx, dword [edi + 0x1c]
inc eax
movss xmm3, dword [edi]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movd xmm1, ebx
addsd xmm0, qword [eax*8 + 0x10108980]
cvtdq2pd xmm1, xmm1
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x10108980]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x1001cbf9
divss xmm0, xmm3
call fcn.10004b10
call fcn.100bbd20
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x1001cbdb
cmp ebx, 0x200
jae 0x1001cbd9
shl ebx, 3
cmp ebx, ecx
jae 0x1001cbdb
mov ebx, ecx
push ebx
mov ecx, edi
call fcn.100056a0
push dword [ebp + 0xc]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10005810
mov edx, dword [eax]
jmp 0x1001cbfc
mov edx, dword [ebp - 0x20]
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 - 0x18]
mov edi, dword [ecx + eax*8]
cmp edi, dword [esi]
mov esi, dword [ebp - 0x14]
jne 0x1001cc27
mov dword [ecx + eax*8], esi
jmp 0x1001cc36
cmp edi, edx
jne 0x1001cc30
mov dword [ecx + eax*8], esi
jmp 0x1001cc3a
cmp dword [ecx + eax*8 + 4], ebx
jne 0x1001cc3a
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebp + 8]
mov byte [eax + 4], 1
mov dword [eax], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push str.unordered_map_set_too_long
call fcn.100ba07b
int3
Function at 0x1001dbe0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10112200]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], edx
push edi
xor ebx, ebx
push ebx
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 0x1001dd5c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1001dcf7
mov ebx, 1
cmp dword [ebp - 0x20], 0x10
jb 0x1001dcba
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1001dcba
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1001dcba
mov edx, dword [esi]
test edx, edx
jne 0x1001dc86
push 0x200
push edx
push dword [0x10115250]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1001dcdf
jmp 0x1001dcae
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1001dcae
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x10115250]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1001dcdf
mov dword [esi], edx
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 dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1001dc41
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1001dcf7
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x1001dcf7
push eax
push ebx
push dword [0x10115250]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1001dd5c
cmp dword [esi], 0
je 0x1001dd49
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1001dd49
nop
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 0x1001dd43
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.1001da70
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1001dd10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bb287
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 9
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100bb287
mov esp, ebp
pop ebp
ret
Function at 0x1001dd80
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
je 0x1001ddcc
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x1001ddbb
push edi
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 0x1001ddb4
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x1001dd91
pop edi
push dword [ebx]
push 0
push dword [0x10115250]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
ret

Function at 0x1001ddd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x1011afd0]
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 - 4]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1001de1d
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x1001de3e
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 0x1001de5f
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1001de5f
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x1001de59
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x1001de5f
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 8]
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
pop edi
mov byte [esi + 0x14], bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001deb0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [0x1011afd8]
sub esp, 0x10
push ebx
push esi
xor esi, esi
mov ebx, ecx
test edx, edx
je 0x1001dee4
mov eax, dword [0x1011afd0]
add eax, 0x14
nop
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x1001deec
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x1001ded0
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp esi, 0xffffffff
je 0x1001dfa2
test ebx, ebx
lea ecx, [ebp - 0x10]
setne al
or edx, 0xffffffff
push eax
call fcn.1001dbe0
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001dfa2
mov ecx, dword [0x1011afd8]
push edi
cmp esi, ecx
jae 0x1001df5a
imul edi, esi, 0x2c
mov eax, dword [0x1011afd0]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x1001df4f
mov edx, ebx
mov ecx, esi
call fcn.1001ddd0
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001df5a
mov ecx, dword [0x1011afd8]
jmp 0x1001df52
mov eax, dword [ebp - 4]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x1001df24
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1001dfa1
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1001df8f
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1001df89
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x1001df68
push ebx
push 0
push dword [0x10115250]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100208b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
mov edi, ecx
push eax
push 0x40
push 5
push edi
mov esi, edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100208d8
sub esi, edi
mov byte [edi], 0xe9
sub esi, 5
mov dword [edi + 1], esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10023550
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x100235ad
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x10023570
mov eax, dword [esi]
jmp 0x1002368b
cmp eax, 0x4e0
jb 0x1002368b
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
lea edx, [edi]
mov eax, ebx
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x100235c6
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x10023611
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10027de0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
not eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], 0x10106c90
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0xc]
sub eax, 1
mov dword [ebp + 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10027e3b
mov ecx, dword [ebp - 4]
shr ecx, 8
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
xor edx, eax
mov eax, dword [ebp - 0x10]
xor ecx, dword [eax + edx*4]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x10027dfb
mov eax, dword [ebp - 4]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x10027e50
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
not eax
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0x10106c90
cmp dword [ebp + 0xc], 0
je 0x10027f02
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
sub ecx, 1
mov dword [ebp + 0xc], ecx
cmp dword [ebp - 0x14], 0
je 0x10027f00
mov edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 2], al
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
movzx edx, byte [ebp - 2]
cmp edx, 0x23
jne 0x10027ede
cmp dword [ebp + 0xc], 2
jb 0x10027ede
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 8]
movzx eax, byte [edx + ecx]
cmp eax, 0x23
jne 0x10027ede
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 8]
movzx eax, byte [edx + ecx]
cmp eax, 0x23
jne 0x10027ede
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
shr edx, 8
mov eax, dword [ebp - 0xc]
and eax, 0xff
movzx ecx, byte [ebp - 2]
xor eax, ecx
mov ecx, dword [ebp - 0x10]
xor edx, dword [ecx + eax*4]
mov dword [ebp - 0xc], edx
jmp 0x10027e7b
jmp 0x10027f72
mov edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 1], al
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
movzx edx, byte [ebp - 1]
test edx, edx
je 0x10027f72
movzx eax, byte [ebp - 1]
cmp eax, 0x23
jne 0x10027f52
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x23
jne 0x10027f52
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x23
jne 0x10027f52
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
shr eax, 8
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
movzx edx, byte [ebp - 1]
xor ecx, edx
mov edx, dword [ebp - 0x10]
xor eax, dword [edx + ecx*4]
mov dword [ebp - 0xc], eax
jmp 0x10027f02
mov eax, dword [ebp - 0xc]
not eax
mov esp, ebp
pop ebp
ret

Function at 0x10028150
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.100c728c
add esp, 0x10
xor edx, edx
pop ebp
ret
Function at 0x1006b570
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.1006b540
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0xc], ecx
push 4
mov edx, dword [ebp - 4]
add edx, 0x24
push edx
push 0x20001004
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1006b5c0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x24], 0
mov esp, ebp
pop ebp
ret
Function at 0x100703a0
Capabilities:
Convert ip address from string
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x100703ea
cmp word [edi + 8], 2
jne 0x100703ea
mov esi, dword [ebp + 8]
push 0xffff
mov dword [esi], 0
mov dword [esi + 4], 0
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
pop edi
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 0xc], eax
xor eax, eax
pop esi
pop ebp
ret
push dword [ebp + 8]
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
neg eax
pop edi
sbb eax, eax
neg eax
dec eax
pop esi
pop ebp
ret
Function at 0x10074c20
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10112200]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
test esi, esi
je 0x10074c76
mov eax, 0x17
mov dword [ebp - 0xc], 0
mov word [ebp - 0x20], ax
xorps xmm0, xmm0
movzx eax, word [esi + 0x10]
push eax
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
call dword [sym.imp.WS2_32.dll_htons]
movups xmm0, xmmword [esi]
mov word [ebp - 0x1e], ax
movzx eax, word [esi + 0x12]
movups xmmword [ebp - 0x18], xmm0
mov dword [ebp - 8], eax
push 0
push 0
mov eax, esi
neg eax
sbb eax, eax
xor ecx, ecx
and eax, 0x1c
test esi, esi
push eax
lea eax, [ebp - 0x20]
cmove eax, ecx
push eax
push ecx
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x14]
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASendTo]
pop edi
pop esi
cmp eax, 0xffffffff
jne 0x10074cc5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bb287
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
xor ecx, ebp
call fcn.100bb287
mov esp, ebp
pop ebp
ret
Function at 0x10074ce0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x10112200]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10113f84], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push edi
jne 0x10074d87
lea eax, [ebp - 0x28]
mov dword [0x10113f84], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [0x101143d4], eax
test eax, eax
je 0x10074d3f
push 0x101143d8
call esi
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
call fcn.100bbe90
divsd xmm0, qword [0x100ea450]
jmp 0x10074d7f
xor eax, eax
mov dword [ebp - 0x14], 0x107b2
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0xe], 1
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [ebp - 0x1c]
xor eax, eax
or eax, dword [ebp - 0x20]
movsd xmm0, qword [0x10108808]
mov dword [0x101143d8], eax
mov dword [0x101143dc], ecx
movsd qword [0x101143e0], xmm0
cmp dword [0x101143d4], 0
je 0x10074d9e
lea eax, [ebp - 0x38]
push eax
call esi
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
jmp 0x10074db0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edx, dword [ebp - 0x2c]
xor ecx, ecx
or ecx, dword [ebp - 0x30]
sub ecx, dword [0x101143d8]
sbb edx, dword [0x101143dc]
call fcn.100bbe90
divsd xmm0, qword [0x101143e0]
call fcn.100bbd90
push 0
push 0xf4240
mov edi, eax
push edx
push edi
call fcn.100bbc70
mov esi, eax
mov dword [ebp - 0x24], 0x101143e8
imul ecx, esi, 0xf4240
sub edi, ecx
imul eax, edi, 0x3e8
cdq
mov edi, eax
mov ebx, edx
mov eax, esi
mov esi, 0x3b9aca00
cdq
mov ecx, eax
mov eax, edx
mul esi
mov esi, eax
mov eax, ecx
mov ecx, 0x3b9aca00
mul ecx
add esi, edx
add edi, eax
mov dword [ebp - 0x1c], edi
mov edi, 0x101143e8
adc ebx, esi
mov dword [ebp - 0x18], ebx
nop dword [eax]
nop dword [eax + eax]
mov ebx, dword [0x101143e8]
mov eax, ebx
mov esi, dword [0x101143ec]
mov edx, esi
mov ecx, esi
lock cmpxchg8b qword [edi]
cmp eax, ebx
jne 0x10074e30
cmp edx, esi
jne 0x10074e30
mov edi, dword [ebp - 0x1c]
mov eax, ebx
or eax, esi
jne 0x10074e7f
mov esi, dword [ebp - 0x18]
mov ebx, edi
mov edi, dword [ebp - 0x24]
add ebx, 0xfff0bdc0
adc esi, 0xffffffff
xor eax, eax
xor edx, edx
mov ecx, esi
lock cmpxchg8b qword [edi]
mov edi, dword [ebp - 0x1c]
mov ecx, eax
or ecx, edx
je 0x10074e7f
mov ebx, eax
mov esi, edx
mov ecx, dword [ebp - 0x18]
sub edi, ebx
mov eax, edi
mov ebx, 0xd7b634db
sbb ecx, esi
mul ebx
mov eax, edi
mov dword [ebp - 0x18], ecx
mov esi, edx
mov edx, 0x431bde82
mul edx
mov edi, eax
mov dword [ebp - 0x24], edx
mov eax, ecx
mul ebx
mov ecx, eax
mov ebx, edx
mov eax, dword [ebp - 0x18]
mov edx, 0x431bde82
mul edx
add ecx, esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
adc ebx, 0
add edi, ecx
pop edi
adc eax, 0
xor ecx, ecx
add ebx, eax
mov eax, dword [ebp - 0x1c]
pop esi
adc ecx, ecx
add eax, ebx
pop ebx
adc edx, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
shrd eax, edx, 0x12
call fcn.100bb287
mov esp, ebp
pop ebp
ret
Function at 0x10079170
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e79ed
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10112200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi], vtable.lunasvg::LayoutContainer.0
push 0xc
mov dword [ebp - 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.100bb295
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 8], eax
mov eax, esi
movups xmm0, xmmword [0x10112050]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [0x10112060]
movups xmmword [esi + 0x20], xmm0
movups xmm0, xmmword [0x10112050]
movups xmmword [esi + 0x30], xmm0
movups xmm0, xmmword [0x10112060]
movups xmmword [esi + 0x40], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1009c8d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x10114460], 0
push esi
mov esi, dword [ebp + 8]
jne 0x1009c9dc
mov eax, 1
lock xadd dword [0x10114464], eax
inc eax
cmp eax, 1
jne 0x1009c9cb
test esi, esi
jne 0x1009c9c0
push ebx
push edi
push str.advapi32.dll
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x1009c9a0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptAcquireContextA
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x1009c9a0
push str.CryptGenRandom
push esi
call edi
mov dword [ebp - 8], eax
test eax, eax
je 0x1009c9a0
push str.CryptReleaseContext
push esi
call edi
mov edi, eax
test edi, edi
je 0x1009c9a0
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 4]
push eax
call ebx
test eax, eax
je 0x1009c9a0
lea eax, [ebp + 8]
push eax
push 4
push dword [ebp - 4]
call dword [ebp - 8]
push 0
push dword [ebp - 4]
mov esi, eax
call edi
test esi, esi
je 0x1009c9a0
movzx esi, byte [ebp + 8]
movzx eax, byte [ebp + 9]
shl esi, 8
or esi, eax
movzx eax, byte [ebp + 0xa]
shl esi, 8
or esi, eax
movzx eax, byte [ebp + 0xb]
shl esi, 8
or esi, eax
jmp 0x1009c9b4
push 0
call fcn.100c4098
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
test esi, esi
mov eax, 1
pop edi
cmove esi, eax
pop ebx
mov dword [0x10114460], esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_SwitchToThread]
call esi
cmp dword [0x10114460], 0
je 0x1009c9d1
pop esi
mov esp, ebp
pop ebp
ret