joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004d9f0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100ee008]
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 0x1004db6c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1004db07
mov ebx, 1
cmp dword [ebp - 0x20], 0x10
jb 0x1004daca
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1004daca
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1004daca
mov edx, dword [esi]
test edx, edx
jne 0x1004da96
push 0x200
push edx
push dword [0x102cf04c]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1004daef
jmp 0x1004dabe
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1004dabe
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x102cf04c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1004daef
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 0x1004da51
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1004db07
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x1004db07
push eax
push ebx
push dword [0x102cf04c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1004db6c
cmp dword [esi], 0
je 0x1004db59
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1004db59
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 0x1004db53
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.1004d880
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1004db20
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c981f
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.100c981f
mov esp, ebp
pop ebp
ret
Function at 0x1004db90
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
je 0x1004dbdc
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x1004dbcb
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 0x1004dbc4
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 0x1004dba1
pop edi
push dword [ebx]
push 0
push dword [0x102cf04c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
ret

Function at 0x1004dbe0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100ee008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
push edi
add esi, dword [0x102cf040]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ebx, [eax*2 + 5]
lea eax, [ebp - 8]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1004dc3c
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c981f
mov esp, ebp
pop ebp
ret
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 0x1004dc57
mov eax, dword [esi]
mov word [eax], 0xf9eb
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [esi + 0x14], 6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100c981f
mov esp, ebp
pop ebp
ret
Function at 0x1004e830
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100ee008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword fs:[0x30]
push esi
push edi
mov edi, ecx
test ebx, ebx
jne 0x1004e863
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c981f
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebx + 0xc]
add ebx, 0x14
mov esi, dword [ebx]
cmp esi, ebx
je 0x1004e8d0
mov ecx, 0x5a4d
lea edx, [esi - 8]
test edx, edx
je 0x1004e8ca
mov eax, dword [edx + 0x18]
test eax, eax
je 0x1004e8ca
cmp word [eax], cx
jne 0x1004e8ca
mov ecx, dword [eax + 0x3c]
add ecx, eax
je 0x1004e8c5
cmp dword [ecx], 0x4550
jne 0x1004e8c5
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], ecx
cmp eax, dword [edi + 8]
je 0x1004e8b9
vmovq xmm0, qword [ebp - 0x10]
vmovq qword [eax], xmm0
mov dword [eax + 8], ecx
add dword [edi + 4], 0xc
jmp 0x1004e8c5
lea ecx, [ebp - 0x10]
push ecx
push eax
mov ecx, edi
call fcn.1002e460
mov ecx, 0x5a4d
mov esi, dword [esi]
cmp esi, ebx
jne 0x1004e874
mov eax, dword [edi]
cmp eax, dword [edi + 4]
mov ecx, dword [ebp - 4]
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.100c981f
mov esp, ebp
pop ebp
ret
Function at 0x1004f910
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, edx
push edi
mov dword [ebp - 4], eax
mov ebx, ecx
cmp dword [esi + 0x14], 0x10
mov edi, dword [esi + 0x10]
jb 0x1004f92c
mov esi, dword [esi]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x1004f94b
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x1004f937
mov eax, dword [ebp - 4]
push edx
mov edx, eax
mov ecx, ebx
call fcn.1004f2a0
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10059870
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [0x100ee008]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
cmp dword [eax + 0x14], 0x10
mov esi, eax
push edi
mov edi, dword [eax + 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
jb 0x100598a2
mov esi, dword [eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x100598c1
nop dword [eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x100598b0
cmp dword [ebx + 4], 0
mov dword [esp + 0x5c], edx
mov dword [esp + 0xc], 0
jle 0x10059a18
xor ecx, ecx
mov dword [esp + 0x10], ecx
nop dword [eax]
mov ebx, dword [ebx]
add ebx, ecx
mov ecx, dword [ebx + 0x28]
test ecx, ecx
je 0x10059907
cmp dword [ecx + 4], 0
jle 0x10059907
mov eax, dword [ebx + 0x2c]
add eax, dword [ebp + 0x10]
push eax
push ecx
push dword [esp + 0x1c]
mov ecx, 0x1044fcf0
call fcn.10059870
mov edi, dword [ebx]
mov esi, 0x811c9dc5
xor eax, eax
inc eax
cmp byte [eax + edi], 0
jne 0x10059910
xor edx, edx
test eax, eax
je 0x10059931
nop dword [eax]
movsx ecx, byte [edx + edi]
inc edx
xor ecx, esi
imul esi, ecx, 0x1000193
cmp edx, eax
jb 0x10059920
lea eax, [esp + 0x5c]
mov dword [esp + 0x60], esi
push eax
lea eax, [esp + 0x20]
mov ecx, 0x1044fd10
push eax
call fcn.1004c9e0
mov ecx, dword [eax]
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x28]
add ecx, 0xc
push eax
call fcn.1004c740
mov eax, dword [eax]
cmp dword [eax + 0x14], 0
jne 0x100599f7
lea eax, [esp + 0x5c]
mov ecx, 0x1044fd10
push eax
lea eax, [esp + 0x30]
push eax
call fcn.1004c9e0
mov ecx, dword [eax]
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x38]
add ecx, 0xc
push eax
call fcn.1004c740
mov ecx, 0x1044fd10
mov eax, dword [eax]
mov byte [eax + 0xc], 0
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.1004c9e0
mov ecx, dword [eax]
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x48]
add ecx, 0xc
push eax
call fcn.1004c740
mov ecx, 0x1044fd10
mov eax, dword [eax]
mov dword [eax + 0x10], ebx
lea eax, [esp + 0x5c]
mov esi, dword [ebx + 0x2c]
add esi, dword [ebp + 0x10]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.1004c9e0
mov ecx, dword [eax]
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x58]
add ecx, 0xc
push eax
call fcn.1004c740
mov eax, dword [eax]
mov dword [eax + 0x14], esi
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
inc eax
mov ecx, dword [esp + 0x10]
add ecx, 0x3c
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
cmp eax, dword [ebx + 4]
jl 0x100598e0
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100c981f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10059c70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100ee008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x10059de5
mov eax, dword [eax + 2]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10059de5
push ebx
lea ebx, [eax - 4]
test ebx, ebx
je 0x10059de4
mov eax, dword [ebx + 4]
test eax, eax
je 0x10059de4
cmp eax, 0xc8
jg 0x10059de4
cmp dword [ebx], 0
je 0x10059de4
push esi
mov esi, dword [ebx + 8]
test esi, esi
je 0x10059de3
push edi
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [ecx + esi], 0
jne 0x10059cd8
xor edx, edx
test ecx, ecx
je 0x10059cf6
movsx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x10059ce5
mov dword [ebp - 8], edi
cmp dword [ebx + 4], 0
mov dword [ebp - 0x18], 0
jle 0x10059de2
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x14], eax
mov ebx, dword [ebx]
add ebx, eax
mov esi, dword [ebx + 4]
test esi, esi
je 0x10059dc9
mov edi, 0x811c9dc5
xor eax, eax
inc eax
cmp byte [eax + esi], 0
jne 0x10059d28
xor edx, edx
test eax, eax
je 0x10059d46
movsx ecx, byte [edx + esi]
inc edx
xor ecx, edi
imul edi, ecx, 0x1000193
cmp edx, eax
jb 0x10059d35
lea eax, [ebp - 8]
mov dword [ebp - 0xc], edi
push eax
mov ecx, 0x1044fd10
call fcn.1004c4f0
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.1004c4d0
cmp dword [eax + 8], 0
jne 0x10059dc3
lea eax, [ebp - 8]
mov ecx, 0x1044fd10
push eax
call fcn.1004c4f0
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.1004c4d0
mov ecx, 0x1044fd10
mov byte [eax], 1
lea eax, [ebp - 8]
mov esi, dword [ebx + 8]
push eax
call fcn.1004c4f0
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.1004c4d0
mov ecx, 0x1044fd10
mov dword [eax + 8], esi
lea eax, [ebp - 8]
push eax
call fcn.1004c4f0
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.1004c4d0
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
lea ebx, [ecx - 4]
inc esi
add eax, 0x3c
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
cmp esi, dword [ebx + 4]
jl 0x10059d12
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c981f
mov esp, ebp
pop ebp
ret 4
Function at 0x10092860
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ccdcd
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100ee008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
vpxor xmm0, xmm0, xmm0
xor edx, edx
mov dword [ebp - 0x2c], 0
mov edi, 0xf
mov dword [ebp - 0x18], edx
vmovdqu xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x28], dl
mov dword [ebp - 4], edx
mov esi, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], eax
cmp esi, eax
je 0x10092961
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x100928e3
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x100928d1
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.10030ac0
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
lea ecx, [edx - 3]
cmp ecx, edx
ja 0x100928fd
cmp edi, 0x10
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x1009290a
sub ecx, edx
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.10040090
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov edi, 0x811c9dc5
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
test edx, edx
je 0x10092939
mov esi, eax
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, edx
jb 0x10092925
mov esi, dword [ebp - 0x30]
cmp edi, dword [ebp + 8]
jne 0x10092949
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1009295c
dec eax
mov dword [ebp - 0x2c], eax
add esi, 0x1c
mov dword [ebp - 0x30], esi
cmp esi, dword [ebp - 0x38]
je 0x10092961
mov edi, dword [ebp - 0x14]
jmp 0x100928c0
mov esi, dword [esi + 0x18]
jmp 0x10092963
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1009299b
mov edx, dword [ebp - 0x28]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x10092991
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10092991
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100c9c9f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c981f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100929c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ccdcd
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100ee008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
vpxor xmm0, xmm0, xmm0
xor edx, edx
mov dword [ebp - 0x2c], 1
mov edi, 0xf
mov dword [ebp - 0x18], edx
vmovdqu xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x28], dl
mov dword [ebp - 4], edx
mov esi, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], eax
cmp esi, eax
je 0x10092ac1
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x10092a43
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x10092a31
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.10030ac0
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
lea ecx, [edx - 3]
cmp ecx, edx
ja 0x10092a5d
cmp edi, 0x10
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x10092a6a
sub ecx, edx
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.10040090
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov edi, 0x811c9dc5
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
test edx, edx
je 0x10092a99
mov esi, eax
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, edx
jb 0x10092a85
mov esi, dword [ebp - 0x30]
cmp edi, dword [ebp + 8]
jne 0x10092aa9
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10092abc
dec eax
mov dword [ebp - 0x2c], eax
add esi, 0x1c
mov dword [ebp - 0x30], esi
cmp esi, dword [ebp - 0x38]
je 0x10092ac1
mov edi, dword [ebp - 0x14]
jmp 0x10092a20
mov esi, dword [esi + 0x18]
jmp 0x10092ac3
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10092afb
mov edx, dword [ebp - 0x28]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x10092af1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10092af1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100c9c9f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c981f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10094550
Capabilities:
Create thread
Set console window title

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x1009460f
push ebx
push esi
push edi
push 5
push str.debug
mov ecx, 0x103370b0
call fcn.10030ac0
mov dword [0x103370cc], 0
mov byte [0x103370c8], 1
call dword [sym.imp.KERNEL32.dll_AllocConsole]
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 1
call ebx
push 1
mov esi, eax
call ebx
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
push esi
push 0x100dd5a4
push str.CONOUT_
push eax
call edi
push 2
call ebx
push 2
mov esi, eax
call ebx
push esi
push 0x100dd5a4
push str.CONOUT_
push eax
call edi
push 0
call ebx
push 0
mov esi, eax
call ebx
push esi
push 0x100dd5a0
push str.CONIN_
push eax
call edi
add esp, 0x48
push str.Debug
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0
push 0
push 0
push 0x1003d4b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebx
test eax, eax
je 0x1009460f
mov eax, 1
pop ebp
ret 0xc
xor eax, eax
pop ebp
ret 0xc
Function at 0x10097f10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x10097f6e
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
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 esi, 1
jne 0x10097f30
mov eax, dword [edi]
jmp 0x10098059
cmp eax, 0x4e0
jb 0x10098059
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 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 [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x10097f90
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
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 [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x10097fe0
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 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 0x10098220
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov ebx, dword [eax]
mov edi, edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [0x10450100]
mov dword [ebp + 0xc], ecx
test al, 1
jne 0x10098297
or eax, 1
mov dword [0x10450100], eax
call dword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov esi, eax
mov dword [0x1045148c], 0xffffffff
mov dword [0x1045010c], esi
mov ecx, 1
mov eax, esi
shr eax, 0x1e
xor eax, esi
imul esi, eax, 0x6c078965
add esi, ecx
mov dword [ecx*4 + 0x1045010c], esi
inc ecx
cmp ecx, 0x270
jb 0x10098266
mov eax, dword [0x10450100]
mov ecx, dword [ebp + 0xc]
mov dword [0x10450108], 0x270
test al, 2
jne 0x100982b3
or eax, 2
mov dword [0x104514a0], 0
mov dword [0x10450100], eax
mov dword [0x104514a4], ecx
test al, 4
jne 0x100982cf
or eax, 4
mov dword [0x10451498], 0
mov dword [0x10450100], eax
mov dword [0x1045149c], ebx
push ecx
mov ecx, 0x104514a0
call fcn.100978d0
push ecx
mov ecx, 0x10451498
mov dword [edi], eax
call fcn.100978d0
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100b0be0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x100b0d81
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x280]
call eax
test al, al
je 0x100b0d81
mov eax, dword [0x10448160]
cmp dword [eax + 0x174], 0xffffffff
je 0x100b0d81
mov eax, dword [0x1044fe7c]
add eax, 0xffffff8e
xor eax, 0x9b265e1
cmp dword [eax + ebx], 0
mov eax, dword [0x1044fe44]
setle cl
add eax, 0xffffff9c
xor eax, 0x9b265d3
xor edi, edi
mov byte [eax + ebx], cl
mov eax, dword [0x1044fe38]
add eax, 0xffffff9f
xor eax, 0x9b265d0
mov dword [eax + ebx + 0xc], 0
mov eax, dword [0x1044fe3c]
add eax, 0xffffff9e
xor eax, 0x9b265d1
mov dword [eax + ebx + 0xc], 0
mov ecx, dword [0x1044fe40]
lea eax, [ecx - 0x63]
xor eax, 0x9b265d2
mov edx, dword [eax + ebx + 0xc]
mov dword [ebp - 4], edx
test edx, edx
je 0x100b0cce
lea eax, [ecx - 0x63]
xor eax, 0x9b265d2
mov eax, dword [eax + ebx]
mov esi, dword [eax + edi*4]
lea ebx, [eax + edi*4]
test esi, esi
je 0x100b0cc6
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x100b0cba
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x100b0cb7
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov edx, dword [ebp - 4]
mov dword [ebx], 0
mov ecx, dword [0x1044fe40]
mov ebx, dword [ebp + 8]
inc edi
cmp edi, edx
jb 0x100b0c83
lea eax, [ecx - 0x63]
xor eax, 0x9b265d2
lea ecx, [ebx + 8]
push 0
mov dword [eax + ebx + 0xc], 0
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x1c]
call eax
mov eax, dword [ebx + 8]
lea ecx, [ebx + 8]
push 0
mov eax, dword [eax + 0x14]
call eax
mov edx, dword [0x10448174]
xor ebx, ebx
mov dword [ebp - 4], edx
mov eax, dword [edx + 0x28]
mov dword [ebp - 8], eax
test eax, eax
je 0x100b0d72
nop dword [eax]
mov eax, dword [edx + 0x1c]
lea ecx, [ebx*4]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ecx + eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov esi, eax
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [ecx + esi], 0
jne 0x100b0d30
xor edx, edx
test ecx, ecx
je 0x100b0d59
nop dword [eax]
movsx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x100b0d40
cmp edi, 0x79705c5e
je 0x100b0d64
inc ebx
cmp ebx, dword [ebp - 8]
jae 0x100b0d72
mov edx, dword [ebp - 4]
jmp 0x100b0d10
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
mov ecx, dword [ecx + eax]
jmp 0x100b0d74
xor ecx, ecx
push 0
push dword [ebp + 8]
push 0
call dword [0x104482cc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4