joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10036de3
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 4]
mov dword [esp], 0x93c2f523
and dword [esp], ebp
or dword [esp], ebp
mov ebp, esp
push 0xac82907f
xor dword [esp], 0xbd35560a
and dword [esp], edi
or dword [esp], edi
push esi
push ecx
sub esp, 4
xor dword [esp], edx
xor edx, dword [esp]
xor dword [esp], edx
mov edx, dword [esp]
sub esp, 4
xchg dword [esp], ebx
lea esp, [esp - 0x6c]
xchg dword [esp + 0x6c], ebx
mov dword [esp + 0x6c], ebx
lea esp, [esp + 0x70]
sub esp, 4
shr esi, 7
shr esi, 0x19
xor esi, dword [ebp + 0xc]
dec esi
lea edi, [esi]
add edi, dword [ebp + 0x14]
mov ecx, esi
sub ecx, dword [ebp + 0x10]
inc ecx
je 0x10036e5f
add esi, dword [ebp + 8]
add edi, dword [ebp + 8]
movsb byte es:[edi], byte [esi]
dec esi
dec esi
dec edi
dec edi
dec ecx
jne 0x10036e53
mov edi, dword [ebp + 0x10]
add edi, dword [ebp + 8]
lea ecx, [ebp + 0x14]
mov ecx, dword [ecx]
cld
push 0xffffffffffffffff
call fcn.100377c2
push 0
pop edx
sub edx, eax
dec edx
not edx
push 0xffffffffffffffff
call fcn.100377c2
add edx, ecx
add eax, edx
xor al, ah
add edx, eax
rcl edx, 4
rcr eax, 6
mov byte [edi], al
lea edi, [edi + 1]
dec ecx
jne 0x10036e81
sub ebx, 0x16dbc99e
and ebx, dword [esp]
or ebx, dword [esp]
add esp, 4
pop edx
pop ecx
lea esi, [edx]
and esi, dword [esp]
or esi, dword [esp]
add esp, 4
xchg dword [esp], edi
mov dword [esp], edi
add esp, 4
leave
ret 0x10

Function at 0x100378df
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x16
mov dword [esp + 0x12], ebp
add esp, 0x12
mov ebp, esp
push 0
xor dword [esp], esi
sub esp, 4
xchg dword [esp], ecx
mov ecx, dword [esp]
push edx
mov esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
xor ecx, ecx
rol edx, 7
xor dl, al
mov al, byte [esi]
inc esi
cmp al, 0x5a
adc ecx, 0
cmp al, 0x41
sbb ecx, 0
shl ecx, 5
add eax, ecx
jne 0x10037902
mov eax, edx
pop edx
pop ecx
lea esp, [esp - 0x6a]
xchg dword [esp + 0x6a], esi
mov dword [esp + 0x6a], esi
lea esp, [esp + 0x6e]
leave
ret 4

Function at 0x10037944
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
lea esp, [esp - 4]
xchg dword [esp], edx
mov edx, dword [esp]
mov esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
xor ecx, ecx
rol edx, 7
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x1003795b
mov eax, edx
pop edx
pop ecx
or esi, 0xffffffff
inc esi
sub esi, 0xffffffff
neg esi
sub esp, 0x3e
and esi, dword [esp + 0x3e]
add esp, 0x42
leave
ret 4
Function at 0x1003898b
Capabilities:
Encode data using xor

Disassembly:
push 0
or dword [esp], ebp
mov ebp, esp
sub esp, 8
push eax
push 0
xor dword [esp], ebx
push 0xffffffffffffffff
and dword [esp], edx
push ecx
push edi
sub esp, 0x44
xor dword [esp + 0x40], esi
xor esi, dword [esp + 0x40]
xor dword [esp + 0x40], esi
mov esi, dword [esp + 0x40]
add esp, 0x40
sub ebx, ebx
or ebx, 0x7fe3134b
sub ebx, dword [0x7fe45c4b]
push eax
lea eax, [ebp - 8]
mov dword [eax], ebx
pop eax
xchg esi, eax
push 0x7fe45c3b
call fcn.10036875
xchg esi, eax
add esi, ebx
shr edx, 3
shr edx, 0x1d
add edx, dword [ebp + 8]
sub edx, ebx
call fcn.10036140
or edi, 0xffffffff
not edi
sub edi, eax
dec edi
not edi
push 0
mov eax, dword [esp]
lea esp, [esp + 4]
sub eax, dword [esi + 8]
dec eax
not eax
xor eax, edi
cmp edx, eax
jb 0x10038b0e
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x10038b0e
mov ecx, dword [esi + 0x10]
xor ecx, edi
xor edx, edx
or edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x10038ab7
mov eax, 1
lock xchg dword [0x7fe45c47], eax
cmp eax, 0
jne 0x10038a3d
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x10038a55
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
cmp eax, 0
je 0x10038a9f
sub esp, 0x4b
mov dword [esp + 0x47], 0x93428cfb
add esp, 0x47
and dword [esp], eax
or dword [esp], eax
pop dword [ebp - 4]
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x10038a89
xor eax, eax
sub eax, 1
neg eax
xor eax, edi
mov dword [esi], eax
mov dword [0x7fe45c47], 0
add edx, esi
mov dword [ebp + 4], edx
xor esi, ecx
or esi, 0xffffffff
not esi
xor esi, dword [esp]
add esp, 4
lea esp, [esp - 0x6a]
xchg dword [esp + 0x6a], edi
mov dword [esp + 0x6a], edi
lea esp, [esp + 0x6e]
mov ecx, dword [esp]
add esp, 4
xchg dword [esp], edx
mov dword [esp], edx
add esp, 4
mov ebx, dword [esp]
add esp, 4
xor dword [esp], eax
xor eax, dword [esp]
xor dword [esp], eax
mov dword [esp], eax
add esp, 4
leave
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x100389f8
Function at 0x1003c713
Capabilities:
Access peb ldr_data

Disassembly:
sub esp, 4
mov dword [esp], ebp
mov ebp, esp
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
sub esp, 4
xor dword [esp], ecx
xor ecx, dword [esp]
xor dword [esp], ecx
mov ecx, dword [esp]
sub esp, 4
xor dword [esp], edx
xor edx, dword [esp]
xor dword [esp], edx
mov edx, dword [esp]
push edi
push 0xffffffffffffffff
and dword [esp], esi
mov edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
shl ecx, 0xf
shl ecx, 0x11
sub ecx, dword [eax + 0xc]
dec ecx
not ecx
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x1003c811
push 0
add dword [esp], ebp
push 0xffffffffffffffff
lea esp, [esp - 0xd]
mov dword [esp + 9], 0x7fe379fe
lea esp, [esp + 9]
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], 0x7fe32e77
lea esp, [esp + 0x5c]
push 0xffffffffffffffff
call fcn.10037be4
mov edx, dword [ecx + 0x18]
cmp edx, 0
je 0x1003c7c9
mov ebx, edx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
cmp ebx, 0
je 0x1003c7c9
lea ebx, [ebx + edx]
mov esi, dword [ebx + 0xc]
lea esi, [esi + edx]
push esi
call fcn.100378df
call fcn.10037ca0
cmp eax, edi
jne 0x1003c762
add esp, 4
or eax, 0xffffffff
inc eax
add eax, ecx
pop esi
lea esp, [esp - 0xd]
xchg dword [esp + 0xd], edi
mov dword [esp + 0xd], edi
lea esp, [esp + 0x11]
pop edx
add ecx, 0x441c6b93
shr ecx, 0xd
shr ecx, 0x13
or ecx, dword [esp]
add esp, 4
mov ebx, dword [esp]
lea esp, [esp + 4]
leave
ret 4
xor ecx, ecx
jmp 0x1003c7d9
Function at 0x1003c822
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 0xfffffffc
mov dword [esp], ebp
mov ebp, esp
sub esp, 0x108
push ebx
add esp, 0xfffffffc
mov dword [esp], edx
push ecx
push 0
or dword [esp], edi
push esi
push ebp
push 0xffffffffffffffff
sub esp, 0x11
mov dword [esp + 0xd], 0x7fe37b13
add esp, 0xd
add esp, 0xfffffffc
mov dword [esp], esi
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], 0x7fe32e77
lea esp, [esp + 0x5f]
xor dword [esp], esi
xor esi, dword [esp]
xor dword [esp], esi
mov dword [esp], esi
add esp, 4
xchg dword [esp], esi
push 0xffffffffffffffff
call fcn.10037be4
push 0
mov ebx, dword [esp]
add esp, 4
add ebx, 0x6fed9913
xor ebx, 0x6fed991b
add ebx, ebp
mov ebx, dword [ebx]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
mov edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
sub esp, 4
xor dword [esp], eax
xor eax, dword [esp]
xor dword [esp], eax
mov eax, dword [esp]
push esi
call fcn.10037944
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1003c8f3
add edi, 4
add eax, 2
dec ecx
jne 0x1003c8ae
call fcn.10037ca0
xor eax, eax
jmp 0x1003c9b5
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1003c9fa
cmp eax, ecx
ja 0x1003c9fa
sub esi, esi
sub esi, eax
dec esi
not esi
lea edi, [ebp - 0x104]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
cmp al, 0x2e
jne 0x1003c92e
mov dword [edi], 0x6c6c64
lea eax, [ebp - 0x104]
push 0
add dword [esp], eax
call fcn.100378df
lea ebx, [ebp - 0x104]
lea edx, [ebp - 0x108]
lea esp, [esp - 4]
xchg dword [esp], edx
mov edx, dword [esp]
lea esp, [esp - 4]
xchg dword [esp], ebx
pop ebx
lea esp, [esp - 4]
sub esp, 4
xor dword [esp], eax
xor eax, dword [esp]
xor dword [esp], eax
mov eax, dword [esp]
call fcn.1003ca08
mov ebx, eax
sub esp, 0x4c
xor dword [esp + 0x48], esi
xor esi, dword [esp + 0x48]
xor dword [esp + 0x48], esi
mov esi, dword [esp + 0x48]
add esp, 0x48
call fcn.10037944
call fcn.10037ca0
push eax
push 0
xor dword [esp], ebx
call fcn.1003c822
sub esi, ecx
shl esi, 0x13
shl esi, 0xd
add esi, dword [esp]
add esp, 4
pop edi
shr ecx, 0xb
shr ecx, 0x15
sub ecx, 0xffffffff
neg ecx
and ecx, dword [esp]
add esp, 4
and edx, edi
xor edx, edx
or edx, dword [esp]
add esp, 4
and ebx, ecx
and ebx, dword [esp]
or ebx, dword [esp]
add esp, 4
leave
ret 8
call fcn.10037ca0
jmp 0x1003c9b5
Function at 0x10041dc0
Capabilities:
Encode data using xor

Disassembly:
push 0x773c5767
and dword [esp], ebp
or dword [esp], ebp
mov ebp, esp
sub esp, 4
lea esp, [esp - 4]
mov dword [esp], edi
push esi
sub esp, 0xc
mov dword [esp + 8], ebx
add esp, 8
push ecx
push edx
mov esi, dword [ebp + 8]
call fcn.10036140
cmp dword [esi], 0xffffffff
je 0x10041e24
lea ecx, [esi]
lea ecx, [ecx + 0x14]
add ecx, 0
mov ecx, dword [ecx]
add ecx, 6
mov ebx, dword [esi + 0x10]
xor dword [esi], eax
add esi, 4
dec ecx
jne 0x10041e05
xor byte [esi], al
inc esi
dec ebx
jne 0x10041e11
cmp dword [esi], 0xffffffff
jne 0x10041df5
pop edx
pop ecx
lea esp, [esp - 0x1f]
xchg dword [esp + 0x1f], ebx
mov dword [esp + 0x1f], ebx
lea esp, [esp + 0x23]
pop esi
pop edi
leave
ret 4
Function at 0x1004713c
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x52
mov dword [esp + 0x4e], 0xad5c28f8
add esp, 0x4e
mov dword [esp], ebp
mov ebp, esp
push ebx
push 0xffffffffffffffff
and dword [esp], ecx
push 0
add dword [esp], edx
add esp, 0xfffffffc
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10047164
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10047164
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10047164
cmp word [ebx + 4], 0x14c
jne 0x10047164
test word [ebx + 0x16], 2
je 0x10047164
test word [ebx + 0x16], 0x100
je 0x10047164
cmp word [ebx + 0x18], 0x10b
jne 0x10047164
sub esp, 0x3d
mov dword [esp + 0x39], 0x1d70e4af
add esp, 0x39
and dword [esp], eax
or dword [esp], eax
push 0
mov eax, 0xffffffff
and eax, dword [esp]
add esp, 4
add eax, 0xfefcf4f5
xchg dword [esp], eax
xchg dword [esp], edx
mov dword [esp], edx
lea esp, [esp + 4]
xor edx, 0xfefcf48d
add edx, ebx
mov edx, dword [edx]
cmp edx, 0
je 0x10047164
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
lea edx, [edx + eax]
mov ebx, eax
lea esp, [esp - 0x64]
mov dword [esp + 0x60], 0x6009042c
lea esp, [esp + 0x60]
mov dword [esp], edx
call fcn.100378df
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10047164
mov esi, dword [esp]
add esp, 4
shl edi, 0xb
shl edi, 0x15
or edi, 0xffffffff
and edi, dword [esp]
add esp, 4
mov edx, dword [esp]
lea esp, [esp + 4]
xor dword [esp], ecx
xor ecx, dword [esp]
xor dword [esp], ecx
mov dword [esp], ecx
add esp, 4
pop ebx
leave
ret 8
Function at 0x100472be
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
sub esp, 4
xchg dword [esp], edx
mov edx, dword [esp]
push ecx
lea esp, [esp - 0x4d]
xchg dword [esp + 0x49], edi
mov edi, dword [esp + 0x49]
lea esp, [esp + 0x49]
lea esp, [esp - 4]
xchg dword [esp], esi
sub esp, 0x65
mov esi, dword [esp + 0x65]
add esp, 0x69
lea esp, [esp - 4]
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
and eax, 0xdb83d375
push dword [ebx + 0x24]
lea esp, [esp - 0x26]
mov eax, dword [esp + 0x26]
lea esp, [esp + 0x2a]
add eax, edx
or edi, 0xffffffff
inc edi
or edi, dword [ebx + 0x20]
add edi, edx
lea ecx, [ebx + 0x18]
mov ecx, dword [ecx]
mov esi, dword [edi]
add esi, edx
push eax
add esp, 0xfffffffc
mov dword [esp], esi
call fcn.10037944
cmp eax, dword [ebp + 0xc]
xchg dword [esp], eax
mov dword [esp], eax
lea esp, [esp + 4]
je 0x10047383
add edi, 4
add eax, 2
dec ecx
jne 0x1004732d
xor eax, eax
mov esi, dword [esp]
lea esp, [esp + 4]
pop edi
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
dec ebx
and ebx, dword [esp]
or ebx, dword [esp]
add esp, 4
leave
ret 8
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1004735f
cmp eax, ecx
ja 0x1004735f
xor esi, esi
sub esi, eax
dec esi
not esi
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
cmp al, 0x2e
jne 0x100473be
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.10037aea
push edi
push 0x50b70ff2
call fcn.10046e4c
jmp 0x1004735f
Function at 0x100048cc
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 2
jne 0x100048dc
call fcn.1000569b
jmp 0x1000490b
cmp eax, 3
jne 0x100048e8
call fcn.100056d0
jmp 0x1000490b
cmp eax, 1
jne 0x10004901
xor eax, eax
push eax
push eax
push eax
push 0x100063d3
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x1000490b
cmp eax, 4
jne 0x1000490b
call fcn.100056e3
ret 4
Function at 0x1000569b
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x100064e0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret

Function at 0x100056ae
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
cmp byte [esp + 0x10], al
je 0x100056c0
push 0x100063d3
jmp 0x100056c5
push 0x10006479
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret 4

Function at 0x100056d0
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x10006600
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret

Function at 0x100056e3
Capabilities:
Create thread

Disassembly:
xor eax, eax
mov byte [ecx + 0x34], 1
push eax
push eax
push eax
push 0x10006769
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
Function at 0x10010521
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10078d40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x10010579
cmp byte [esi + 0x3d], bl
je 0x10010579
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x100105b3
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
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, ebx
je 0x1001058a
sub eax, 1
je 0x1001058d
dec eax
sub eax, 1
jne 0x100105b3
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003f419
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100105ab
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 0x100105b3
cmp byte [esi + 0x3d], bl
sete al
jmp 0x1001057b
xor al, al
jmp 0x1001057b

Function at 0x1001188d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0x10], 0
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
jb 0x100118df
ja 0x100118a8
cmp dword [ebp + 0xc], 0
jbe 0x100118df
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp - 8]
push edi
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 0x14]
mov ecx, esi
mov edx, dword [ebp + 0x18]
and ecx, 7
shl ecx, 3
call fcn.1003f590
xor byte [esi + ebx], al
add esi, 1
adc edi, 0
cmp edi, dword [ebp + 0x10]
jb 0x100118b4
ja 0x100118dc
cmp esi, dword [ebp + 0xc]
jb 0x100118b4
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001536a
Capabilities:
Allocate or change rwx memory

Disassembly:
cmp dword [esp + 0xc], 0
mov eax, 0x100791bc
cmovne eax, dword [esp + 0xc]
push eax
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
ret
Function at 0x1001a8be
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x1009b4fc]
push esi
xor esi, esi
jmp 0x1001a8d0
cmp dword [edx + 4], esi
jne 0x1001a91c
mov edx, dword [edx]
test edx, edx
jne 0x1001a8c9
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x1001a929
push edi
push 0x20
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop edi
mov dword [ecx], esi
mov eax, ecx
mov dword [edx + 4], ecx
add edi, 0x20
add ecx, 0x20
mov esi, eax
cmp edi, 0xfe0
jbe 0x1001a8f7
mov eax, dword [0x1009b4fc]
mov dword [edx], eax
pop edi
mov dword [0x1009b4fc], edx
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret
xor eax, eax
pop esi
ret

Function at 0x1001b09b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push ebx
push ebp
imul ebp, dword [esp + 0x10], 0x2c
push esi
add ebp, dword [0x1009b4f0]
mov eax, dword [ebp]
mov cl, byte [ebp + 0x14]
and cl, 1
lea ebx, [eax - 5]
cmove ebx, eax
movzx eax, cl
lea esi, [eax*2 + 5]
lea eax, [esp + 0x14]
mov dword [esp + 0xc], esi
push eax
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1001b0e2
push 0xa
pop eax
jmp 0x1001b169
cmp dword [esp + 0x18], 0
je 0x1001b107
mov byte [ebx], 0xe9
mov eax, dword [ebp + 4]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
test byte [ebp + 0x14], 1
je 0x1001b129
mov eax, dword [ebp]
mov word [eax], 0xf9eb
jmp 0x1001b129
test byte [ebp + 0x14], 1
je 0x1001b11e
push edi
mov edi, ebx
lea esi, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
pop edi
jmp 0x1001b129
mov eax, dword [ebp + 0xc]
mov dword [ebx], eax
mov al, byte [ebp + 0x10]
mov byte [ebx + 4], al
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [esp + 0x18]
mov cl, dl
add cl, cl
shl dl, 2
xor cl, byte [ebp + 0x14]
and cl, 2
xor cl, byte [ebp + 0x14]
xor dl, cl
and dl, 4
xor dl, cl
xor eax, eax
mov byte [ebp + 0x14], dl
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x1001b19b
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10078d40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x1001b279
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1001b272
push ebx
cmp dword [ebp - 0x20], 0x10
jb 0x1001b258
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1001b258
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1001b258
mov edx, dword [esi]
test edx, edx
jne 0x1001b226
push 0x200
push edx
mov dword [esi + 4], 0x80
push dword [0x100791fc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1001b271
lea ebx, [esi + 8]
jmp 0x1001b24e
mov eax, dword [esi + 4]
lea ebx, [esi + 8]
cmp dword [ebx], eax
jb 0x1001b24e
shl eax, 3
push eax
push edx
push 0
push dword [0x100791fc]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1001b271
shl dword [esi + 4], 1
mov dword [esi], edx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [ebx]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1001b1de
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1003f419
leave
ret

Function at 0x1001b2ef
Capabilities:
Suspend thread

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
xor ebp, ebp
push esi
mov dword [esi], ebp
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
call fcn.1001b19b
pop ecx
cmp dword [esi], ebp
je 0x1001b34e
push edi
mov edi, ebp
cmp dword [esi + 8], ebp
jbe 0x1001b34d
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push ebp
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1001b346
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebx
call fcn.1001b351
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1001b313
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x1001b505
Capabilities:
Resume thread

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
xor ebp, ebp
cmp dword [esi], ebp
je 0x1001b553
push edi
mov edi, ebp
cmp dword [esi + 8], ebp
jbe 0x1001b543
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push ebp
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1001b53c
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1001b51a
pop ebx
push dword [esi]
push ebp
push dword [0x100791fc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
ret
Function at 0x1001bc43
Capabilities:
Capture screenshot

Disassembly:
push 0x18
mov eax, 0x10043803
call fcn.1003f44a
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
mov dword [ebp - 0x14], edi
and dword [ebp - 4], 0
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4e
call esi
mov ebx, eax
push 0x4f
mov dword [ebp - 0x10], ebx
call esi
mov ecx, dword [ebp + 0x18]
mov esi, eax
push edi
mov dword [ecx], ebx
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x1001bd74
mov ecx, dword [ebp + 0xc]
push ebx
call fcn.1001c16d
push esi
push dword [ebp - 0x10]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
test esi, esi
jne 0x1001bcb7
push str.SpliceImages:_CreateCompatibleBitmap_failed
jmp 0x1001bd79
mov ecx, dword [ebp + 0x10]
push esi
call fcn.1001c14d
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
test eax, eax
je 0x1001bd6d
cmp eax, 0xffffffff
je 0x1001bd6d
mov eax, dword [ebp + 8]
xor ebx, ebx
and dword [ebp + 0x18], ebx
mov edx, dword [eax + 4]
mov esi, dword [eax]
mov eax, esi
cmp eax, edx
je 0x1001bd55
mov edi, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
cmp ecx, ebx
cmovge ecx, ebx
mov ebx, ecx
mov ecx, dword [eax + 8]
cmp ecx, edi
cmovge ecx, edi
add eax, 0x14
mov edi, ecx
cmp eax, edx
jne 0x1001bcf4
mov dword [ebp + 0x18], edi
mov edi, dword [ebp - 0x14]
mov dword [ebp + 0x1c], ebx
mov ebx, dword [esi + 8]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 4]
sub ecx, ebx
mov eax, dword [esi + 0xc]
sub ebx, dword [ebp + 0x18]
sub eax, edx
sub edx, dword [ebp + 0x1c]
push 0xcc0020
push 0
push 0
push dword [esi]
push ecx
push eax
push ebx
push edx
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x1001bd66
mov eax, dword [ebp + 8]
add esi, 0x14
cmp esi, dword [eax + 4]
jne 0x1001bd18
test edi, edi
je 0x1001bd60
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
call fcn.1003f427
ret
push str.SpliceImages:_BitBlt_failed
jmp 0x1001bd79
push str.SpliceImages:_SelectObject_failed
jmp 0x1001bd79
push str.SpliceImages:_CreateCompatibleDC_failed
lea ecx, [ebp - 0x24]
call fcn.1001bfe4
push 0x10050a10
lea eax, [ebp - 0x24]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3