joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013f80
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10014012
cmp byte [esi + 0x3d], 0
je 0x10014012
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1001400a
mov ecx, dword [esi + 0x38]
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 dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x10013fd9
sub eax, 1
je 0x10013fdd
sub eax, 2
jne 0x1001400a
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 0x10013ffd
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1001400a
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
Function at 0x1001dac0
Capabilities:
Get process heap force flags

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c5566
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x38
push esi
push edi
mov dword [ebp - 4], 0
movss xmm1, dword [0x100d86cc]
addss xmm1, dword [0x100f2004]
movss xmm2, dword [0x100d86d0]
addss xmm2, dword [0x100f2008]
movss xmm0, dword [0x100eea60]
mov esi, dword [0x100d86dc]
movss dword [ebp - 0x14], xmm1
movss xmm1, dword [0x100f1fec]
subss xmm1, dword [0x100d86cc]
movss dword [ebp - 0x18], xmm2
addss xmm2, dword [0x100dd598]
push 0x34
movss dword [ebp - 0x24], xmm0
movss dword [ebp - 0x1c], xmm1
movss dword [ebp - 0x20], xmm2
call fcn.100c27e9
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.1001b080
movss xmm2, dword [ebp - 0x1c]
lea eax, [ebx + 8]
movss xmm4, dword [ebp - 0x20]
lea ecx, [ebp - 0x48]
movss xmm1, dword [ebp - 0x14]
movss xmm3, dword [ebp - 0x18]
movss xmm0, dword [ebp - 0x24]
mov dword [edi], vtable.DrawCMD_Rect.0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x30], 0xff000000
movss dword [edi + 0x24], xmm2
addss xmm2, xmm1
movss dword [edi + 0x28], xmm4
addss xmm4, xmm3
mov byte [ebp - 4], 0
movss dword [edi + 0x2c], xmm0
movss dword [edi + 0x1c], xmm1
mulss xmm2, dword [0x100dd47c]
mov dword [edi + 0x30], esi
mulss xmm4, dword [0x100dd47c]
push eax
movss dword [edi + 0x20], xmm3
movss xmm0, dword [0x100f2008]
addss xmm0, dword [0x100dd570]
mov esi, dword [0x100d86c8]
movss dword [ebp - 0x28], xmm2
movss dword [ebp - 0x24], xmm4
movss dword [0x100f2008], xmm0
call fcn.10009990
push 0x48
mov byte [ebp - 4], 2
call fcn.100c27e9
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
push 3
push 0
push esi
push dword [ebp - 0x24]
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
push dword [ebp - 0x28]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10009990
mov ecx, edi
call fcn.1001b1f0
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x1001dc7e
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001dc74
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001dc74
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100c2c4d
add esp, 8
movss xmm1, dword [0x100f2008]
xorps xmm2, xmm2
movss xmm0, dword [0x100d86d0]
addss xmm1, dword [0x100dd570]
mov edx, dword [ebx + 0x1c]
addss xmm0, xmm2
addss xmm1, xmm0
movss dword [0x100f2008], xmm1
cmp edx, 0x10
jb 0x1001dcdf
mov ecx, dword [ebx + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001dcd5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001dcd5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100c2c4d
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10032020
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x10032030
mov dword [edi], 0
mov edx, 0x100d9c94
call fcn.10031ef0
mov esi, eax
test esi, esi
jne 0x10032043
pop edi
pop esi
ret
push ebx
push ebp
mov ebp, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 2
push 0
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x100320fb
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x100320fb
push 0
push 0
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x100320fb
mov eax, dword [0x100eea8c]
test eax, eax
je 0x1003208f
inc dword [eax + 0x36c]
push dword [0x100eea90]
push ebx
call fcn.10031b40
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x100320fb
push esi
push ebx
push 1
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, ebx
je 0x100320e5
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x100eea8c]
add esp, 4
test eax, eax
je 0x100320cf
dec dword [eax + 0x36c]
push dword [0x100eea90]
push ebp
call fcn.10031b50
add esp, 8
xor eax, eax
pop ebp
pop ebx
pop edi
pop esi
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
je 0x100320f4
mov dword [edi], ebx
mov eax, ebp
pop ebp
pop ebx
pop edi
pop esi
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor eax, eax
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x10034670
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100c5d43
push eax
mov dword fs:[0], esp
mov eax, dword [0x100eea8c]
push ebx
sub esp, 0x28
push esi
push edi
test eax, eax
je 0x100346b0
inc dword [eax + 0x36c]
push dword [0x100eea90]
push 0x3a80
call fcn.10031b40
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x11]
add esp, 8
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x100346e9
push ecx
mov ecx, eax
call fcn.100309f0
mov edi, eax
mov dword [ebp - 0x18], eax
jmp 0x100346ee
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0xffffffff
mov esi, 0x100d9d45
mov eax, dword [0x100eea8c]
test eax, eax
mov dword [ebp - 0x24], 0
cmove eax, edi
mov dword [ebp - 0x38], str.Window
mov dword [0x100eea8c], eax
or edx, 0xffffffff
mov al, 0x57
or edi, 0xffffffff
nop
cmp al, 0x23
jne 0x1003472e
cmp byte [esi], al
jne 0x1003472e
cmp byte [esi + 1], al
cmove edx, edi
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x100d4810]
test al, al
jne 0x10034720
mov edi, dword [ebp - 0x18]
not edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], 0x100402a0
mov dword [ebp - 0x2c], 0x10040340
mov esi, dword [edi + 0x2c50]
mov ecx, dword [edi + 0x2c54]
mov dword [ebp - 0x28], 0x10040410
cmp esi, ecx
jne 0x10034815
inc esi
test ecx, ecx
je 0x10034788
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1003478d
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x10034815
mov eax, dword [0x100eea8c]
test eax, eax
je 0x100347a5
inc dword [eax + 0x36c]
push dword [0x100eea90]
lea eax, [esi + esi*2]
shl eax, 3
push eax
call fcn.10031b40
mov edx, dword [edi + 0x2c58]
add esp, 8
mov dword [ebp - 0x18], eax
test edx, edx
je 0x10034809
mov ecx, dword [edi + 0x2c50]
lea ecx, [ecx + ecx*2]
shl ecx, 3
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [edi + 0x2c58]
add esp, 0xc
test ecx, ecx
je 0x100347f7
mov eax, dword [0x100eea8c]
test eax, eax
je 0x100347f7
dec dword [eax + 0x36c]
push dword [0x100eea90]
push ecx
call fcn.10031b50
mov eax, dword [ebp - 0x18]
add esp, 8
mov dword [edi + 0x2c58], eax
mov dword [edi + 0x2c54], esi
mov eax, dword [edi + 0x2c50]
movups xmm0, xmmword [ebp - 0x38]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x2c58]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [ebp - 0x28]
movq qword [eax + ecx*8 + 0x10], xmm0
mov eax, edi
inc dword [edi + 0x2c50]
mov ecx, dword [ebp - 0xc]
mov byte [edi], 1
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x100366b0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push ebp
push esi
lea esi, [ecx + 1]
or ecx, 0xffffffff
push edi
test bl, bl
je 0x100366f0
cmp bl, 0x23
jne 0x100366d2
cmp byte [esi], bl
jne 0x100366d2
cmp byte [esi + 1], bl
cmove eax, ecx
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
mov ecx, 0xffffffff
xor eax, dword [edx*4 + 0x100d4810]
test bl, bl
jne 0x100366c3
mov ebx, dword [0x100eea8c]
not eax
mov ebp, dword [ebx + 0x197c]
mov esi, ebp
mov edi, dword [ebx + 0x1984]
mov ecx, edi
test esi, esi
je 0x10036734
nop dword [eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x10036728
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x1003672a
mov esi, edx
test esi, esi
jne 0x10036710
mov ecx, dword [ebx + 0x1984]
lea ecx, [ecx + ebp*8]
cmp edi, ecx
je 0x10036747
cmp dword [edi], eax
jne 0x10036747
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x1003fdb0
Capabilities:
Hash data with crc32

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [0x100eea8c]
push ebp
push esi
mov esi, ebx
mov dword [esp + 0xc], ecx
push edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov ecx, dword [esi + 0x2c5c]
mov ebp, dword [esi + 0x2c60]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov byte [esp + 0x2c], 0
cmp ecx, ebp
jne 0x1003feba
lea edi, [ecx + 1]
test ebp, ebp
je 0x1003fe1e
mov eax, ebp
cdq
sub eax, edx
sar eax, 1
add eax, ebp
jmp 0x1003fe23
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ebp
jle 0x1003feba
push dword [0x100eea90]
inc dword [esi + 0x36c]
lea eax, [edi*8]
sub eax, edi
shl eax, 2
push eax
call fcn.10031b40
mov ebx, eax
add esp, 8
mov eax, dword [esi + 0x2c64]
test eax, eax
je 0x1003fea2
mov ecx, dword [esi + 0x2c5c]
lea edx, [ecx*8]
sub edx, ecx
shl edx, 2
push edx
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi + 0x2c64]
add esp, 0xc
test ecx, ecx
je 0x1003fe93
mov eax, dword [0x100eea8c]
test eax, eax
je 0x1003fe93
dec dword [eax + 0x36c]
push dword [0x100eea90]
push ecx
call fcn.10031b50
add esp, 8
mov ecx, dword [esi + 0x2c5c]
mov dword [esi + 0x2c64], ebx
mov ebx, dword [0x100eea8c]
mov dword [esi + 0x2c60], edi
movups xmm0, xmmword [esp + 0x14]
mov eax, dword [esp + 0x2c]
lea edx, [ecx*8]
mov ebp, dword [esp + 0x10]
sub edx, ecx
mov ecx, dword [esi + 0x2c64]
movups xmmword [ecx + edx*4], xmm0
movq xmm0, qword [esp + 0x24]
movq qword [ecx + edx*4 + 0x10], xmm0
mov dword [ecx + edx*4 + 0x18], eax
inc dword [esi + 0x2c5c]
mov eax, dword [esi + 0x2c5c]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x2c64]
mov esi, ebp
lea edi, [eax + ecx*4]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x1003ff10
sub esi, ecx
test ebx, ebx
je 0x1003ff23
inc dword [ebx + 0x36c]
push dword [0x100eea90]
inc esi
push esi
call fcn.10031b40
push esi
push ebp
push eax
call sub.VCRUNTIME140.dll_memcpy
mov dword [edi - 0x1c], eax
lea esi, [ebp + 1]
mov al, byte [ebp]
add esp, 0x14
or edx, 0xffffffff
test al, al
je 0x1003ff77
or ebx, 0xffffffff
nop
cmp al, 0x23
jne 0x1003ff5e
cmp byte [esi], al
jne 0x1003ff5e
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x100d4810]
test al, al
jne 0x1003ff50
not edx
lea eax, [edi - 0x1c]
mov dword [edi - 0x18], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x100401b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [0x100eea8c]
mov eax, ecx
mov dword [esp + 4], eax
mov dword [esi + 0x2c40], 0
test eax, eax
je 0x10040297
push edi
lea edi, [esi + 0x2c44]
mov dword [esi + 0x2c40], 0
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x10040200
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, edi
call fcn.10040d90
xor ecx, ecx
mov dword [edi], 0
cmp dword [edi + 4], ecx
jne 0x10040218
push 8
mov ecx, edi
call fcn.10040d90
mov ecx, dword [edi]
mov eax, dword [edi + 8]
push ebx
push ebp
xor ebp, ebp
mov byte [ecx + eax], 0
inc dword [edi]
mov ebx, dword [edi]
cmp dword [esi + 0x2c50], ebp
jle 0x10040252
xor ebx, ebx
mov eax, dword [esi + 0x2c58]
add eax, ebx
push edi
push eax
push esi
mov eax, dword [eax + 0x10]
call eax
inc ebp
add esp, 0xc
add ebx, 0x18
cmp ebp, dword [esi + 0x2c50]
jl 0x10040231
mov ebx, dword [edi]
mov ecx, dword [esp + 0x10]
lea eax, [ebx - 1]
neg ebx
mov edi, 0x100eea72
mov edx, 0x100d9dd8
sbb ebx, ebx
and ebx, eax
mov eax, dword [esi + 0x2c4c]
test eax, eax
cmovne edi, eax
call fcn.10031ef0
mov esi, eax
test esi, esi
je 0x10040294
push esi
push ebx
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret
Function at 0x10043240
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, ecx
mov dword [esp + 8], 0xffffffff
push ebp
push esi
mov eax, edx
mov dword [esp + 0xc], ebx
movq xmm0, qword [ebx + 0x70]
mov esi, dword [ebx + 0x78]
movq qword [esp + 0x20], xmm0
mov dword [esp + 0x14], eax
push edi
mov edi, dword [esp + 0x24]
test esi, esi
js 0x100433b2
xor edx, edx
test esi, esi
jle 0x100433b4
mov cl, byte [edi]
mov edx, 1
test cl, cl
je 0x100433b4
cmp cl, 3
jne 0x10043336
cmp edx, esi
jl 0x1004329f
xor al, al
jmp 0x100432a3
mov al, byte [edi + edx]
inc edx
movzx ecx, al
cmp edx, esi
jl 0x100432ae
xor al, al
jmp 0x100432b2
mov al, byte [edi + edx]
inc edx
shl ecx, 8
movzx eax, al
or ecx, eax
mov dword [esp + 0x1c], ecx
cmp edx, esi
jl 0x100432c6
xor al, al
jmp 0x100432ca
mov al, byte [edi + edx]
inc edx
movzx ebp, al
cmp edx, esi
jl 0x100432d5
xor al, al
jmp 0x100432d9
mov al, byte [edi + edx]
inc edx
shl ebp, 8
xor ebx, ebx
movzx eax, al
or ebp, eax
test ecx, ecx
je 0x10043332
cmp edx, esi
jl 0x100432ef
xor al, al
jmp 0x100432f3
mov al, byte [edi + edx]
inc edx
movzx eax, al
mov dword [esp + 0x20], eax
cmp edx, esi
jl 0x10043302
xor al, al
jmp 0x10043306
mov al, byte [edi + edx]
inc edx
movzx eax, al
cmp edx, esi
jl 0x10043311
xor cl, cl
jmp 0x10043315
mov cl, byte [edi + edx]
inc edx
shl eax, 8
movzx ecx, cl
or eax, ecx
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
jl 0x10043329
cmp ecx, eax
jl 0x100433a8
inc ebx
mov ebp, eax
cmp ebx, dword [esp + 0x1c]
jl 0x100432e7
mov ebx, dword [esp + 0x10]
movq xmm0, qword [ebx + 0x64]
sub esp, 0xc
mov eax, dword [ebx + 0x6c]
mov edx, esp
mov ecx, dword [esp + 0x20]
movq qword [edx], xmm0
mov dword [edx + 8], eax
lea eax, [esp + 0x30]
push eax
call fcn.10041aa0
add esp, 4
mov ecx, esp
sub esp, 0xc
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ecx], xmm0
movq xmm0, qword [ebx + 0x34]
mov dword [ecx + 8], eax
mov ecx, esp
mov eax, dword [ebx + 0x3c]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea eax, [esp + 0x48]
push eax
call fcn.10041c40
mov edx, dword [esp + 0x5c]
add esp, 0x1c
movq xmm0, qword [eax]
mov ecx, dword [eax + 8]
mov eax, edx
pop edi
pop esi
pop ebp
movq qword [edx], xmm0
mov dword [edx + 8], ecx
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
jmp 0x10043332
mov edx, esi
add eax, edx
cmp eax, esi
jg 0x100433d1
test eax, eax
js 0x100433d1
cmp eax, esi
jge 0x100433d1
mov al, byte [edi + eax]
movzx eax, al
mov dword [esp + 0x14], eax
jmp 0x10043336
xor al, al
movzx eax, al
mov dword [esp + 0x14], eax
jmp 0x10043336
Function at 0x10053540
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push ebp
mov ebp, ecx
test ebp, ebp
je 0x10053581
push ebx
mov ebx, dword [esp + 0x14]
lea eax, [esp + 8]
push esi
mov esi, dword [esp + 0x14]
sub ebx, esi
push eax
push 0x40
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push esi
push ebp
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
pop ebp
test ecx, ecx
je 0x100535ba
mov edx, dword [esp + 0x10]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x100535b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100535b0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100c2c4d
add esp, 8
pop ecx
ret

Function at 0x100538f0
Capabilities:
Create thread

Disassembly:
cmp dword [esp + 8], 1
jne 0x1005392b
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 8
push 0
push 0
push dword [esp + 0xc]
push 0x100537a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1005392b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret 0xc
Function at 0x10054b30
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 0x10054c2e
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10054c27
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop
cmp dword [esp + 0x14], 0x10
jb 0x10054c0b
call ebx
cmp dword [esp + 0x20], eax
jne 0x10054c0b
call ebp
cmp dword [esp + 0x1c], eax
je 0x10054c0b
mov edx, dword [esi]
test edx, edx
jne 0x10054bd0
push 0x200
push edx
push dword [0x100eead0]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10054c27
jmp 0x10054bfb
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10054bfb
shl eax, 3
push eax
push edx
push 0
push dword [0x100eead0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10054c27
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
lea eax, [ecx + 1]
mov dword [esi + 8], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10054b90
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x10054c78
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10054c78
mov ebp, dword [esp + 0x34]
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 0x10054c72
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [esp + 0x10]
mov ecx, ebx
push ebp
call fcn.100549e0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10054c40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret

Function at 0x10054c80
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx]
test eax, eax
je 0x10054cd9
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x10054cc9
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 0x10054cbf
push edi
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x10054ca0
mov eax, dword [ebx]
pop edi
pop ebp
push eax
push 0
push dword [0x100eead0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
ret
Function at 0x10054ce0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push ebx
push esi
imul esi, ecx, 0x2c
push edi
add esi, dword [0x100f3cf0]
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, [esp + 0xc]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10054d22
pop edi
pop esi
mov eax, 0xa
pop ebx
pop ecx
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 0x10054d3d
mov eax, dword [esi]
mov word [eax], 0xf9eb
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
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
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x100631d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c6c2c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push 0x3c
call fcn.100c27e9
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
lea ecx, [esi + 4]
mov dword [esi], vtable.CCLCMsg_FileCRCCheck.0
call fcn.10097c70
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword [esi + 0x34], 0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0x100ec018
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x100ec018
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0x100ec018
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x38], 0
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x10067d60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c6cfc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push 0x34
call fcn.100c27e9
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
lea ecx, [esi + 4]
mov dword [esi], vtable.CSVCMsg_SendTable_sendprop_t.0
call fcn.10097c70
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0x100ec018
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0x100ec018
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x1006bcd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c6d8c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push 0x38
call fcn.100c27e9
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
lea ecx, [esi + 4]
mov dword [esi], vtable.CSVCMsg_VoiceData.0
call fcn.10097c70
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov word [esi + 0x1c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x18], 0x100ec018
mov dword [esi + 0x20], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x34], 0
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret