joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009fae0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1013e00c]
xor eax, ebp
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
push esi
push edi
movss dword [ebp - 0x18], xmm2
lea esi, [ecx + 1]
movss dword [ebp - 0x10], xmm1
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1009fb20
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.1000b650
lea eax, [ebp - 0x30]
mov ecx, 0x101a0c0c
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.10099f70
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x1009fb7b
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1009fb71
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1009fb71
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100d7723
add esp, 8
mov esi, dword [ebp - 0xc]
cmp esi, dword [0x101a0c0c]
je 0x1009fcc3
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [esi + 0x34], eax
jle 0x1009fcc3
movss xmm2, dword [0x10135aa8]
lea ecx, [esi + 0x38]
movsd xmm3, qword [0x10135738]
lea ebx, [eax + 0x50]
mov dword [ebp - 0x14], ecx
cmp eax, 9
jle 0x1009fbcf
movss xmm0, dword [ebp - 0x10]
add eax, 0xfffffff7
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mulss xmm1, xmm2
subss xmm0, xmm1
jmp 0x1009fbdf
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
addss xmm0, dword [ebp - 0x10]
movzx eax, byte [ecx]
dec eax
cdq
idiv ebx
cvtps2pd xmm1, xmm0
mov ebx, eax
mov edi, edx
mov eax, 0x66666667
imul edi
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push ecx
mov dword [esp], 0
push 1
movd xmm0, ecx
lea eax, [ecx + ecx*4]
cvtdq2pd xmm0, xmm0
push 1
sub esp, 0x20
add eax, eax
sub edi, eax
lea eax, [ebx + 0x7bed]
mov dword [esp + 0x1c], 0x3de00000
mulsd xmm0, qword [0x101354e0]
mov dword [esp + 0x18], 0x3da00000
divsd xmm0, xmm3
cvtpd2ps xmm0, xmm0
movss dword [esp + 0x14], xmm0
movd xmm0, edi
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x101354b8]
divsd xmm0, xmm3
cvtpd2ps xmm0, xmm0
movss dword [esp + 0x10], xmm0
movss xmm0, dword [ebp - 0x18]
mov dword [esp + 0xc], 0x41280000
mov dword [esp + 8], 0x40f00000
movss dword [esp + 4], xmm0
cvtpd2ps xmm0, xmm1
movss dword [esp], xmm0
push eax
mov eax, 0x637c60
call eax
mov eax, dword [ebp - 0xc]
add esp, 0x30
mov ecx, dword [ebp - 0x14]
inc eax
movss xmm2, dword [0x10135aa8]
add ecx, 8
mov ebx, 0x50
movsd xmm3, qword [0x10135738]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], ecx
cmp eax, dword [esi + 0x34]
jl 0x1009fbb1
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100d7712
mov esp, ebp
pop ebp
ret 4
Function at 0x100a4b80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [0x10541aa0]
mov esi, 0x861110
push 7
call esi
mov ebx, 0x85ec20
mov ecx, eax
call ebx
test al, al
jne 0x100a4c6c
push 8
call esi
mov ecx, eax
call ebx
test al, al
jne 0x100a4c6c
push 0xc
call esi
mov ecx, eax
call ebx
test al, al
jne 0x100a4c6c
push 0xe
call esi
mov ecx, eax
call ebx
test al, al
jne 0x100a4c6c
push 0xf
call esi
mov ecx, eax
call ebx
test al, al
jne 0x100a4c6c
push 0x41
call esi
mov ecx, eax
call ebx
test al, al
jne 0x100a4c6c
push 0x4e
call esi
mov ecx, eax
call ebx
test al, al
jne 0x100a4c6c
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x100a4c6c
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, dword [0x101a0cac]
add ecx, 0xfa
cmp eax, ecx
jb 0x100a4c6c
cmp dword [0x101836c0], 1
je 0x100a4c6c
cmp word [edi], 0
jl 0x100a4c6c
xor eax, eax
mov byte [ebp - 1], 0
mov dword [ebp - 7], eax
lea ecx, [ebp - 8]
mov word [ebp - 3], ax
mov edx, 8
mov word [ebp - 4], ax
mov al, byte [edi + 0x43]
mov dword [ebp - 8], 0x17908c1
mov byte [ebp - 2], al
call fcn.100c3740
call esi
mov dword [0x101a0cac], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100b0db0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov edx, 0x1012f457
push edi
lea edi, [esi + 0xc]
mov dword [esi], vtable.CFileProtect.0
mov eax, edi
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x100b0de7
test cl, cl
je 0x100b0de3
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x100b0de7
add eax, 2
add edx, 2
test cl, cl
jne 0x100b0dc7
xor eax, eax
jmp 0x100b0dec
sbb eax, eax
or eax, 1
test eax, eax
je 0x100b0e27
cmp dword [esi + 8], 0
je 0x100b0e27
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x100b0e27
push dword [esi + 4]
call fcn.100d7da7
push 0x100
push 0
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
test byte [ebp + 8], 1
je 0x100b0e3b
push 0x10c
push esi
call fcn.100d7723
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x100b0e50
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1013e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0
push 0x20
push 3
push 0
push 1
push connect
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100b100e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 8], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x100b0eab
push eax
call fcn.100d7da7
add esp, 4
mov dword [edi + 4], 0
push dword [edi + 8]
call fcn.100d7d9e
add esp, 4
mov dword [edi + 4], eax
test eax, eax
je 0x100b1007
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push dword [edi + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100b1007
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi + 8]
cmp ecx, 8
jb 0x100b100e
mov edx, dword [edi + 4]
mov eax, dword [edx]
cmp eax, dword [0x1012ff48]
jne 0x100b100e
mov eax, dword [edx + 4]
cmp eax, dword [0x1012ff4c]
jne 0x100b100e
push ebx
lea eax, [ecx - 8]
xor ebx, ebx
test eax, eax
jle 0x100b0f6d
nop
mov ecx, 0x101eb109
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100b0f28
sub ecx, edx
mov esi, dword [edi + 4]
mov eax, ebx
xor edx, edx
div ecx
movsx eax, byte [edx + 0x101eb109]
and eax, 0xf
movzx eax, byte [eax + 0x1012ff50]
sub byte [esi + ebx + 8], al
mov eax, ebx
mov ecx, dword [edi + 4]
and eax, 0xf
movzx eax, byte [eax + 0x1012ff50]
xor byte [ecx + ebx + 8], al
inc ebx
mov eax, dword [edi + 8]
sub eax, 8
cmp ebx, eax
jl 0x100b0f20
lea esi, [edi + 0xc]
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
mov ecx, 0x3e8
idiv ecx
push edx
push str.DataItemTemp_t_d
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x10102
push 2
push 0
push 7
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
pop ebx
cmp esi, 0xffffffff
je 0x100b100e
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
mov eax, dword [edi + 8]
sub eax, 8
push eax
mov eax, dword [edi + 4]
add eax, 8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
jne 0x100b0ff1
call eax
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d7712
mov esp, ebp
pop ebp
ret 4
call eax
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d7712
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.100d7712
mov esp, ebp
pop ebp
ret 4
Function at 0x100b10b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1013e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0xe8c588]
push ebx
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push edi
test eax, eax
je 0x100b10d5
push eax
call esi
mov eax, dword [0xe8c58c]
test eax, eax
je 0x100b10e1
push eax
call esi
mov eax, dword [0xe8c590]
test eax, eax
je 0x100b10ed
push eax
call esi
mov eax, dword [0xe8c594]
test eax, eax
je 0x100b10f9
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push 0x81c0380
call edi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
mov dword [0x81c0380], esi
push dword [ebp - 8]
push 4
push 0x81c0380
call edi
cmp dword [0x101a219c], 0x10
mov ecx, 0x101a2188
mov edi, dword [sym.imp.GDI32.dll_CreateFontA]
mov ebx, 0x190
cmovae ecx, dword [0x101a2188]
mov eax, 0x2bc
cmp dword [0x101a217c], 1
mov edx, ebx
push ecx
push 0
push 3
push 0
push 0
push dword [0x101a2184]
cmove edx, eax
mov eax, dword [0x101a2180]
push 0
push 0
push 0
push edx
push 0
push 0
dec eax
add eax, esi
push 0
push eax
call edi
mov dword [0xe8c588], eax
mov ecx, 0x101a21ac
cmp dword [0x101a21c0], 0x10
mov eax, 0x2bc
mov edx, ebx
cmovae ecx, dword [0x101a21ac]
cmp dword [0x101a21a0], 1
push ecx
push 0
push 3
push 0
push 0
push dword [0x101a21a8]
cmove edx, eax
mov eax, dword [0x101a21a4]
push 0
push 0
push 0
push edx
push 0
push 0
dec eax
add eax, esi
push 0
push eax
call edi
mov dword [0xe8c58c], eax
mov ecx, 0x101a21d0
cmp dword [0x101a21e4], 0x10
mov eax, 0x2bc
mov edx, ebx
cmovae ecx, dword [0x101a21d0]
cmp dword [0x101a21c4], 1
push ecx
cmove edx, eax
mov eax, dword [0x101a21c8]
push 0
lea eax, [eax + esi*2]
add eax, 0xfffffffe
push 3
push 0
push 0
push dword [0x101a21cc]
push 0
push 0
push 0
push edx
push 0
push 0
push 0
push eax
call edi
mov dword [0xe8c590], eax
mov ecx, 0x101a21f4
cmp dword [0x101a2208], 0x10
mov eax, 0x2bc
cmovae ecx, dword [0x101a21f4]
cmp dword [0x101a21e8], 1
push ecx
push 0
push 3
push 0
push 0
push dword [0x101a21f0]
cmove ebx, eax
mov eax, dword [0x101a21ec]
push 0
push 0
push 0
push ebx
push 0
push 0
add eax, 0xc
push 0
push eax
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov dword [0xe8c594], eax
pop ebx
call fcn.100d7712
mov esp, ebp
pop ebp
ret 8
Function at 0x100b3480
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cvttss2si eax, xmm2
push edi
mov edi, ecx
movaps xmm4, xmm2
movss dword [ebp - 4], xmm3
movsx edx, ax
movss dword [ebp - 8], xmm4
cmp dword [0x879340c], edx
jl 0x100b35bf
cvttss2si eax, dword [ebp + 0xc]
cwde
add eax, edx
cmp dword [0x879340c], eax
jg 0x100b35bf
mov edx, dword [0x8793410]
cvttss2si eax, xmm3
movsx ecx, ax
cmp edx, ecx
jl 0x100b35bf
cvttss2si eax, dword [ebp + 0x10]
cwde
add eax, ecx
cmp edx, eax
jg 0x100b35bf
movss xmm0, dword [ebp + 0x18]
divss xmm0, dword [ebp + 0x20]
push 1
movss dword [ebp + 0x18], xmm0
movss xmm0, dword [ebp + 0x14]
divss xmm0, dword [ebp + 0x1c]
movss dword [ebp + 0x20], xmm0
call dword [sym.imp.USER32.dll_GetKeyState]
movss xmm2, dword [ebp + 0x18]
mov ecx, 0x8000
movss xmm0, dword [ebp + 0x20]
push ecx
mov dword [esp], 0
push 1
push 0
sub esp, 0x20
test cx, ax
mov eax, 0x637c60
movss dword [esp + 0x1c], xmm2
movss dword [esp + 0x18], xmm0
je 0x100b354f
cvtps2pd xmm1, xmm2
addsd xmm1, xmm1
cvtpd2ps xmm0, xmm1
movss dword [esp + 0x14], xmm0
jmp 0x100b3555
movss dword [esp + 0x14], xmm2
movss xmm0, dword [ebp + 0x10]
mov dword [esp + 0x10], 0
movss dword [esp + 0xc], xmm0
movss xmm0, dword [ebp + 0xc]
movss dword [esp + 8], xmm0
movss xmm0, dword [ebp - 4]
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 8]
movss dword [esp], xmm0
push dword [ebp + 8]
call eax
add esp, 0x30
mov eax, 0x791050
push 1
call eax
add esp, 4
test al, al
je 0x100b362c
push 0
push 0
push 0x19
mov eax, 0x6d6c20
call eax
push edi
call dword [ebp + 0x24]
add esp, 0x10
pop edi
mov esp, ebp
pop ebp
ret 0x20
movss xmm1, dword [ebp + 0x18]
mov eax, 0x637c60
movss xmm2, dword [ebp + 0x14]
divss xmm1, dword [ebp + 0x20]
push ecx
mov dword [esp], 0
push 1
push 0
sub esp, 0x20
divss xmm2, dword [ebp + 0x1c]
movss xmm0, dword [ebp + 0x10]
movss dword [esp + 0x1c], xmm1
movss dword [esp + 0x18], xmm2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
movss dword [esp + 0xc], xmm0
movss xmm0, dword [ebp + 0xc]
movss dword [esp + 8], xmm0
movss dword [esp + 4], xmm3
movss dword [esp], xmm4
push dword [ebp + 8]
call eax
add esp, 0x30
pop edi
mov esp, ebp
pop ebp
ret 0x20
Function at 0x100c3250
Capabilities:
Allocate or change rwx memory
Check for time delay via gettickcount
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x1013e00c]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov dword [esp + 0x24], 0
cmp dword [0x102c088c], 2
push edi
jne 0x100c32e2
movq xmm0, qword [0x102c08a8]
lea ecx, [esp + 0x10]
mov ax, word [0x102c08b0]
mov edx, 0xe
mov dword [esp + 0x10], 0x3f30ec1
movq qword [esp + 0x14], xmm0
mov word [esp + 0x1c], ax
call fcn.100c3740
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x102c0890], 1
mov dword [0x102c088c], 3
call esi
mov dword [0x102c0888], eax
call esi
mov dword [0x102c0884], eax
mov dword [0x102c0880], 0x7530
mov dword [0x102c087c], 0x7530
mov ecx, 0x101eadc3
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100c32f0
sub ecx, edx
je 0x100c336a
push ecx
push 0x101eadc3
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0xf
mov byte [esp + 0x18], al
call fcn.1000b650
mov dword [esp + 0x28], 1
lea esi, [esp + 0x10]
mov edi, dword [esp + 0x24]
cmp edi, 0x10
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
cmovae esi, ecx
test eax, eax
je 0x100c3372
lea edx, [eax + esi]
mov eax, esi
cmp esi, edx
jae 0x100c3372
nop dword [eax]
cmp byte [eax], 0x20
jne 0x100c335c
inc eax
cmp eax, edx
jb 0x100c3350
jmp 0x100c3372
sub eax, esi
cmp eax, 0xffffffff
je 0x100c3372
mov byte [esp + 0xf], 0
jmp 0x100c3377
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov byte [esp + 0xf], 1
test byte [esp + 0x28], 1
je 0x100c33b0
cmp edi, 0x10
jb 0x100c33b0
lea edx, [edi + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x100c33a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100c33a6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100d7723
add esp, 8
cmp byte [esp + 0xf], 0
je 0x100c33ca
cmp byte [0x101eb18f], 0
jne 0x100c33ca
mov ecx, 0x1013f808
call fcn.1002ce00
mov ecx, dword [0x10541560]
mov eax, dword [ecx]
cmp eax, ecx
je 0x100c3428
nop word [eax + eax]
mov byte [eax + 0x15], 0xff
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x100c340a
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x100c3406
cmp eax, dword [ecx + 8]
jne 0x100c3406
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x100c33f6
mov eax, ecx
jmp 0x100c3420
mov eax, ecx
mov edx, dword [eax]
cmp byte [edx + 0xd], 0
jne 0x100c3420
mov ecx, dword [edx]
mov eax, edx
mov edx, ecx
cmp byte [ecx + 0xd], 0
je 0x100c3414
cmp eax, dword [0x10541560]
jne 0x100c33e0
mov ecx, 0x10541560
call fcn.100ab970
mov ecx, 0x1054176c
call fcn.100ab970
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 0x28]
push eax
push 0x40
push 1
push 0x83703d
mov dword [0x10541610], 0
call esi
lea eax, [esp + 0x28]
mov byte [0x83703d], 0xc
push eax
push dword [esp + 0x2c]
push 1
push 0x83703d
call esi
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor ecx, esp
call fcn.100d7712
mov esp, ebp
pop ebp
ret
Function at 0x100c4310
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1013e00c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0xe609e8], 5
jne 0x100c449e
cmp dword [0x102c0890], 2
je 0x100c449e
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov edi, dword [0x101eaed4]
mov dword [0x102c0890], 1
mov dword [0x102c088c], 0
call esi
mov dword [0x102c0888], eax
call esi
mov dword [0x102c0884], eax
xor esi, esi
mov eax, dword [0xe8cb7c]
mov ecx, 0x402bc0
mov dword [0x102c0880], 0x7530
mov dword [0x102c087c], edi
mov dword [0x102c0878], 0
movzx eax, byte [eax + 8]
mov dword [0x102c0874], eax
mov byte [ebp - 0x108], 0xc1
mov byte [ebp - 0x106], 0x14
nop dword [eax + eax]
mov byte [ebp - 0x105], 0
mov ebx, 4
cmp esi, 0x190
jae 0x100c4436
mov edi, 6
lea eax, [ebp - 0x100]
sub edi, eax
push esi
call ecx
mov ecx, eax
mov eax, 0x96a4c0
call eax
test eax, eax
je 0x100c4428
cmp byte [eax + 0x30c], 0
je 0x100c4428
movzx ecx, word [eax + 0x7e]
mov eax, ecx
mov byte [ebp - 0x10b], cl
shr eax, 8
mov byte [ebp - 0x10c], al
lea eax, [edi + ebx]
lea eax, [ebp + eax - 0x104]
cmp eax, 0x100
ja 0x100c4436
mov ax, word [ebp - 0x10c]
mov word [ebp + ebx - 0x104], ax
add ebx, 2
inc byte [ebp - 0x105]
inc esi
mov ecx, 0x402bc0
cmp esi, 0x190
jb 0x100c43d1
push 0xffffffffffffffff
mov byte [ebp - 0x107], bl
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x104]
push ebx
push eax
push 0x14
call fcn.100c0460
add esp, 0x10
mov ecx, 0x402bc0
cmp esi, 0x190
jb 0x100c43b0
mov dword [0x81f6b6c], 0
mov ecx, dword [0x8128ac8]
pop edi
pop esi
pop ebx
movq xmm0, qword [ecx]
movq qword [0x102c08a8], xmm0
mov ax, word [ecx + 8]
mov word [0x102c08b0], ax
mov al, byte [ecx + 0xa]
mov byte [0x102c08b2], al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d7712
mov esp, ebp
pop ebp
ret
Function at 0x100c4b00
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1013a198
push 0x100d7d7b
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x1013e00c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14c], eax
push dword [ebp + 8]
push str..PhysicalDrive_d
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x150], esi
cmp esi, 0xffffffff
je 0x100c4ccb
mov dword [ebp - 0x134], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x144], xmm0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0
push 0
lea eax, [ebp - 0x130]
push eax
push 8
lea eax, [ebp - 0x144]
push eax
push 0xc
lea eax, [ebp - 0x13c]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x100c4be4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100c4ccb
push dword [ebp - 0x140]
call fcn.100d7d9e
mov edi, eax
mov dword [ebp - 0x148], edi
push dword [ebp - 0x140]
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
push 0
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x140]
push edi
push 0xc
lea eax, [ebp - 0x13c]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x100c4c46
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.100d7da7
add esp, 4
jmp 0x100c4ccb
mov eax, dword [edi + 0x18]
test eax, eax
je 0x100c4c31
mov dword [ebp - 4], 0
add eax, edi
push eax
push 0x100
push dword [ebp - 0x14c]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.100d7da7
add esp, 4
mov dword [ebp - 0x148], 0x8123
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x100c4ccd
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.100d7712
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100c67a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10126c10
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1013e00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 2
push 0x1013309c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.1000b650
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
push dword [0x101a0270]
lea ecx, [ebp - 0x48]
call fcn.1007c3d0
push 0x100c6760
push str.SetJewelStack
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.100892b0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x100c6852
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100c6848
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100c6848
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100d7723
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp edx, 0x10
jb 0x100c68a1
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100c6897
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100c6897
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100d7723
add esp, 8
push str.Data__KGData__Lua__Configs__CustomJewelStack.lua
mov ecx, 0x101a026c
call fcn.100b07c0
push 0x1012f457
push str.StartLoadJewelStack
push 0x101a026c
call fcn.100b0970
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
add esp, 0xc
push eax
push 0x40
push 6
push 0x7dc964
call esi
mov eax, 0x7dc964
mov ecx, 0x90909090
mov dword [eax], ecx
mov word [eax + 4], cx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 6
push 0x7dc964
call esi
push 0x100c6630
push 0x7dc964
push 0xe9
call fcn.100c88d0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0x40
push 6
push 0x7dd634
call esi
mov eax, 0x7dd634
mov ecx, 0x90909090
mov dword [eax], ecx
mov word [eax + 4], cx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 6
push 0x7dd634
call esi
push 0x100c6730
push 0x7dd634
push 0xe9
call fcn.100c88d0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d7712
mov esp, ebp
pop ebp
ret
Function at 0x100c7f60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1013e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 8]
mov byte [ebp - 0x14], 0xe9
push eax
mov esi, ecx
mov dword [ebp - 8], 0
push 0x40
sub edx, esi
push 5
sub edx, 5
push esi
mov dword [ebp - 0x13], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100c7fae
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d7712
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
mov al, byte [ebp - 0x10]
mov byte [esi + 4], al
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], 0
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100c7f99
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.100d7712
mov esp, ebp
pop ebp
ret

Function at 0x100c7ff0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1013e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
push esi
mov byte [ebp - 0x14], al
mov esi, ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
sub edx, esi
push 5
sub edx, 5
push esi
mov dword [ebp - 0x13], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100c8040
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d7712
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
mov al, byte [ebp - 0x10]
mov byte [esi + 4], al
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], 0
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100c802b
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.100d7712
mov esp, ebp
pop ebp
ret