joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b30
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x40]
push edi
mov edi, dword [ebx + 0x48]
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x18], 0
jle 0x405ca3
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
test edi, edi
je 0x405ca3
mov eax, dword [ebx + 4]
push 0
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x5c
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
je 0x405c8e
lea eax, [esi + 0x54]
xor ecx, ecx
mov edi, esi
lea edx, [esp + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov ecx, 0x17
xor eax, eax
rep stosd dword es:[edi], eax
push eax
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 4]
push edx
push 4
push esi
push eax
call ebp
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esi + 4]
push 4
push edx
push eax
call ebp
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x10]
push 0
lea eax, [esi + 8]
push ecx
push 4
push eax
push edx
mov dword [esp + 0x30], eax
call ebp
mov edx, dword [ebx + 4]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esi + 0xc]
push 4
push ecx
push edx
call ebp
mov edx, dword [ebx + 4]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esi + 0x10]
push 4
push ecx
push edx
call ebp
lea edi, [esi + 0x14]
mov dword [esp + 0x14], 0x10
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x10]
push 0
push eax
push 4
push edi
push ecx
call ebp
mov eax, dword [esp + 0x14]
add edi, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x405c07
mov eax, dword [ebx + 4]
lea edx, [esp + 0x10]
push 0
push edx
lea edi, [esi + 0x54]
push 4
push edi
push eax
call ebp
mov ecx, dword [edi]
inc ecx
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [edi]
add esp, 4
mov edx, eax
inc ecx
mov dword [esi + 0x58], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0x58]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push eax
call ebp
mov eax, dword [ebx + 0x44]
test eax, eax
jne 0x405c7f
mov dword [ebx + 0x44], esi
jmp 0x405c85
mov ecx, dword [ebx + 0x24]
mov dword [ecx + 4], esi
mov edx, dword [esp + 0x1c]
mov dword [ebx + 0x24], esi
mov edi, dword [edx]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x405b59
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x405cb0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x50]
push edi
mov edi, dword [ebx + 0x58]
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x14], 0
jle 0x405dfa
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
test edi, edi
je 0x405dfa
mov eax, dword [ebx + 4]
push 0
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x1c
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
je 0x405de5
lea eax, [esi + 0x14]
xor ecx, ecx
mov edi, esi
lea edx, [esp + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov ecx, 7
xor eax, eax
rep stosd dword es:[edi], eax
push eax
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 4]
push edx
push 4
push esi
push eax
call ebp
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esi + 4]
push 4
push edx
push eax
call ebp
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esi + 8]
push 4
push edx
push eax
call ebp
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x10]
push 0
lea eax, [esi + 0xc]
push ecx
push 4
push eax
push edx
mov dword [esp + 0x2c], eax
call ebp
mov edx, dword [ebx + 4]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esi + 0x10]
push 4
push ecx
push edx
call ebp
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x10]
push 0
push eax
lea edi, [esi + 0x14]
push 4
push edi
push ecx
call ebp
mov edx, dword [edi]
inc edx
push edx
call sub.MFC42.DLL_operatornew
mov ecx, dword [edi]
add esp, 4
mov edx, eax
inc ecx
mov dword [esi + 0x18], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push eax
call ebp
mov eax, dword [ebx + 0x54]
test eax, eax
jne 0x405dd6
mov dword [ebx + 0x54], esi
jmp 0x405ddc
mov ecx, dword [ebx + 0x28]
mov dword [ecx + 4], esi
mov edx, dword [esp + 0x18]
mov dword [ebx + 0x28], esi
mov edi, dword [edx]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x405cd9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x405e10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], 0
mov eax, dword [edi + 0x60]
mov ebp, dword [edi + 0x68]
test eax, eax
mov dword [esp + 0x18], eax
jle 0x405f02
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
test ebp, ebp
je 0x405f02
mov eax, dword [edi + 4]
push 0
push 0
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x14
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
je 0x405eed
mov edx, esi
xor ecx, ecx
lea eax, [esp + 0x10]
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
push ecx
push eax
mov dword [edx + 0x10], ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [edi + 4]
push 4
push esi
push ecx
call ebx
mov ecx, dword [edi + 4]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esi + 4]
push 4
push eax
push ecx
call ebx
mov ecx, dword [edi + 4]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esi + 8]
push 4
push eax
push ecx
call ebx
mov eax, dword [edi + 4]
lea edx, [esp + 0x10]
push 0
lea ebp, [esi + 0xc]
push edx
push 4
push ebp
push eax
call ebx
mov eax, dword [edi + 4]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esi + 0x10]
push 4
push edx
push eax
call ebx
mov eax, dword [edi + 0x64]
test eax, eax
jne 0x405ee1
mov dword [edi + 0x64], esi
jmp 0x405ee7
mov ecx, dword [edi + 0x2c]
mov dword [ecx + 4], esi
mov dword [edi + 0x2c], esi
mov ebp, dword [ebp]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x405e39
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x1001d10
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1002230
call fcn.01001ec4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1003384
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1001acb
cmp eax, esi
jne 0x1001abe
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1001ace
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001aa5
xor esi, esi
inc esi
mov eax, dword [0x1003380]
cmp eax, esi
jne 0x1001ae1
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001b10
mov eax, dword [0x1003380]
test eax, eax
jne 0x1001b0a
mov dword [0x1003380], esi
push 0x1001130
push 0x1001124
call fcn.01001a07
pop ecx
pop ecx
test eax, eax
je 0x1001b10
jmp 0x1001c34
mov dword [0x1003044], esi
mov eax, dword [0x1003380]
cmp eax, esi
jne 0x1001b34
push 0x1001120
push 0x1001118
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1003380], 2
cmp dword [ebp - 0x20], ebx
jne 0x1001b41
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1003388], ebx
je 0x1001b62
push 0x1003388
call fcn.01001e39
pop ecx
test eax, eax
je 0x1001b62
push ebx
push 2
push ebx
call dword [0x1003388]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1001c34
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1001bcc
cmp cx, bx
je 0x1001b87
cmp dword [ebp - 0x1c], ebx
jne 0x1001bcc
movzx ecx, word [eax]
cmp cx, bx
je 0x1001b9c
cmp cx, 0x20
ja 0x1001b9c
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1001b87
test byte [ebp - 0x40], 1
je 0x1001ba8
movzx ecx, word [ebp - 0x3c]
jmp 0x1001bab
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1003040], eax
cmp dword [0x1003034], ebx
jne 0x1001c11
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1001bdd
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1001b71
cmp dword [0x1003044], ebx
jne 0x1001c1f
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1003040]
jmp 0x1001c40
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01001f09
ret
call fcn.01002011
jmp 0x1001a68
Function at 0x604520
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17c000]
push edi
or ebp, 0xffffffff
jmp 0x604542
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x604549
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x604538
mov eax, 1
add ebx, ebx
jne 0x60455b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x60456c
jne 0x60458b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x60458b
dec eax
add ebx, ebx
jne 0x604578
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x604550
add ebx, ebx
jne 0x604587
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6045dd
xor ecx, ecx
sub eax, 3
jb 0x6045a3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x604612
sar eax, 1
mov ebp, eax
jmp 0x6045ae
add ebx, ebx
jne 0x6045ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x60457c
inc ecx
add ebx, ebx
jne 0x6045bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x60457c
add ebx, ebx
jne 0x6045c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6045be
jne 0x6045da
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6045be
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6045fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6045ee
jmp 0x60453e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6045fc
add edi, ecx
jmp 0x60453e
pop esi
mov edi, esi
mov ecx, 0x64c4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x60461a
cmp byte [edi], 0x22
jne 0x60461a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x60461f
lea edi, [esi + 0x201000]
mov eax, dword [edi]
or eax, eax
je 0x604697
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x205d44]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x205e84]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x60464c
mov ecx, edi
jns 0x60467b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x205e88]
or eax, eax
je 0x604691
mov dword [ebx], eax
add ebx, 4
jmp 0x604669
call dword [esi + 0x205e98]
mov ebp, dword [esi + 0x205e8c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x6046cb
sub esp, 0xffffff80
jmp 0x4f10d2
Function at 0x10008ec0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37c8
call fcn.1007f320
mov eax, dword [0x100b600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push dword [ecx]
lea eax, [ebp - 0x108]
xor esi, esi
push str..PhysicalDrive_d
push eax
call fcn.10009790
add esp, 0xc
lea eax, [ebp - 0x108]
push esi
push esi
push 3
push esi
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100090e3
push 0x2710
lea eax, [ebp - 0x37b8]
mov dword [ebp - 0x37bc], esi
push esi
push eax
mov dword [ebp - 0x37c0], esi
mov dword [ebp - 0x37c8], esi
mov dword [ebp - 0x37c4], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x37bc]
push esi
push eax
push 0x2710
lea eax, [ebp - 0x37b8]
push eax
push 0xc
lea eax, [ebp - 0x37c8]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100090d6
mov edx, dword [ebp - 0x37ac]
lea eax, [ebp - 0x8d8]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.10008d30
mov edx, dword [ebp - 0x37a8]
lea eax, [ebp - 0xcc0]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.10008d30
mov edx, dword [ebp - 0x37a4]
lea eax, [ebp - 0x10a8]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.10008d30
mov edx, dword [ebp - 0x37a0]
lea eax, [ebp - 0x4f0]
push eax
push 1
lea ecx, [ebp - 0x37b8]
call fcn.10008d30
add esp, 0x20
cmp byte [0x100b8ed8], 0
jne 0x10009099
movsx eax, byte [ebp - 0x4f0]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 4
test eax, eax
jne 0x10009012
movsx eax, byte [ebp - 0x4dd]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 4
test eax, eax
je 0x10009099
xor ecx, ecx
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x8d8]
lea ecx, [ecx + 1]
mov byte [ecx + 0x100b8ad7], al
test al, al
jne 0x10009020
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0xcc0]
lea ecx, [ecx + 1]
mov byte [ecx + 0x100b82d7], al
test al, al
jne 0x10009040
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x4f0]
lea ecx, [ecx + 1]
mov byte [ecx + 0x100b8ed7], al
test al, al
jne 0x10009060
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x10a8]
lea ecx, [ecx + 1]
mov byte [ecx + 0x100b86d7], al
test al, al
jne 0x10009080
mov esi, 1
push 0x2710
lea eax, [ebp - 0x37b8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x37bc]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x37b8]
push eax
push 0
push 0
push 0x700a0
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x100090dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.1007df89
mov esp, ebp
pop ebp
ret
Function at 0x1000a210
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x100b600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1000a291
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0xd0]
push eax
push 0x40
push 4
push esi
call edi
mov eax, dword [esi]
push 0
push dword [ebp - 0xd0]
mov dword [ebp - 0xcc], eax
push 4
push esi
call edi
xor eax, eax
nop word [eax + eax]
xor byte [ebp + eax - 0xcc], al
inc eax
cmp eax, 4
jb 0x1000a260
lea eax, [ebp - 0xd0]
push eax
push 0x40
push 4
push esi
call edi
mov eax, dword [ebp - 0xcc]
push 0
push dword [ebp - 0xd0]
mov dword [esi], eax
push 4
push esi
call edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1007df89
mov esp, ebp
pop ebp
ret 4

Function at 0x1000a2b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x100b600c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x1000a2f7
mov eax, dword [eax]
mov dword [ebp - 0xcc], eax
xor eax, eax
xor byte [ebp + eax - 0xcc], al
inc eax
cmp eax, 4
jb 0x1000a2d4
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007df89
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1007df89
mov esp, ebp
pop ebp
ret 4

Function at 0x1000a310
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007f3cd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x100b600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
cmp dword [0x100b78d0], 0x10
mov eax, 0x100b78bc
cmovae eax, dword [0x100b78bc]
cmp byte [eax], 0
je 0x1000a42a
mov ecx, dword [ebp + 8]
cmp byte [ecx], 0
je 0x1000a42a
cmp dword [0x100b7518], 0x10
mov eax, 0x100b7504
cmovae eax, dword [0x100b7504]
cmp byte [eax], 0
je 0x1000a42a
mov esi, 0x100bdd10
mov edx, ecx
sub esi, ecx
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], al
test al, al
jne 0x1000a386
mov edx, 0x100b9ce8
sub edx, ecx
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x1000a3a0
mov ecx, dword [0x100be5c4]
mov edx, 0x100b78bc
cmp dword [0x100b78d0], 0x10
push 0x100bdd10
cmovae edx, dword [0x100b78bc]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
test eax, eax
jne 0x1000a42a
mov ecx, 0x98
xor edx, edx
nop dword [eax]
mov al, byte [edx + 0x100a3bc0]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x28], al
and ecx, 0x800000ff
jns 0x1000a3fd
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x1000a3e0
mov byte [ebp - 0x14], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 0
mov eax, dword [0x100b96f0]
mov esi, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x4c]
mov ecx, dword [0x100b96f0]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [esi]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1000a440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007f3fd
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100b600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea esi, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae esi, dword [ebp + 8]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x1000a480
sub esi, ecx
push esi
call fcn.1007e8be
add esp, 4
xor edx, edx
mov edi, eax
test esi, esi
js 0x1000a4ab
nop word [eax + eax]
xor byte [edx + edi], dl
lea ecx, [edx + edi]
inc edx
cmp edx, esi
jle 0x1000a4a0
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x1000a4e1
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000a4d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000a4d7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007e8b0
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18

Function at 0x1000b5c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100b600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
js 0x1000b5f7
nop
lea eax, [ebp - 8]
push eax
push 0x40
push 4
lea eax, [ebx + esi]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
inc esi
cmp esi, edi
jle 0x1000b5e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007df89
mov esp, ebp
pop ebp
ret 8

Function at 0x1000b8b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100b600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
mov ebx, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
mov dword [edi], ecx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.1007df89
mov esp, ebp
pop ebp
ret 8
Function at 0x1000b900
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100ad668
push 0x1007e219
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100b600c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
mov edi, dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 0xc]
sub eax, esi
sub eax, 5
mov byte [esi], 0xe8
mov dword [esi + 1], eax
mov eax, 5
mov dword [ebp - 0x28], eax
cmp eax, edi
jae 0x1000b972
mov byte [esi + eax], 0x90
inc eax
jmp 0x1000b964
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1000b98c
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1007df89
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10018700
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100b600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov eax, edx
mov dword [ebp - 0xc], eax
cmp ebx, 0x1000
jbe 0x10018757
test eax, eax
je 0x10018757
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10018756
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push dword [ebp - 0xc]
push ebx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1007df89
mov esp, ebp
pop ebp
ret

Function at 0x10018770
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100b600c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], edi
cmp eax, 0x1000
jbe 0x1001883c
xor ecx, ecx
mov eax, edi
add eax, 5
push ebx
setb cl
neg ecx
or ecx, eax
push esi
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
lea ecx, [edi + 5]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, eax
lea eax, [ebp - 0xc]
mov ebx, esi
push eax
push 0x40
push ecx
push esi
call edi
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push esi
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov ecx, dword [ebp - 0x10]
add esi, edx
mov eax, edx
add ecx, 0xfffffffb
sub eax, esi
add eax, ecx
mov dword [esi + 1], eax
lea eax, [ebp - 8]
push eax
push 0x40
mov byte [esi], 0xe9
mov esi, dword [ebp - 0x10]
push edx
push esi
call edi
mov eax, dword [ebp - 0x18]
sub eax, esi
mov byte [esi], 0xe9
sub eax, 5
mov dword [esi + 1], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0x14]
push esi
call edi
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop esi
mov eax, ebx
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007df89
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.1007df89
mov esp, ebp
pop ebp
ret

Function at 0x100189e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100b600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp ebx, 0x1000
jbe 0x10018a3e
test edi, edi
je 0x10018a3e
push esi
push edi
call fcn.1007e8be
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007df89
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.1007df89
mov esp, ebp
pop ebp
ret 8