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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x407b23
mov dword [ebx], 0
mov edx, 0x44a4e8
call fcn.00407990
mov esi, eax
test esi, esi
je 0x407c42
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call edi
add esp, 4
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x407c38
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x407c38
push esi
call edi
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x407c38
push 0
push dword [ebp + 8]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x407c38
mov ecx, edi
call fcn.0040d3e0
mov dword [ebp + 8], eax
test eax, eax
je 0x407c38
push esi
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, edi
je 0x407c21
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [0x44e638]
add esp, 4
test ecx, ecx
je 0x407c0e
movsx edx, word [ecx + 0x524c]
lea eax, [ecx + 0x5250]
mov esi, dword [ecx + 0x3f78]
lea eax, [eax + edx*8]
cmp dword [eax], esi
je 0x407c04
lea eax, [edx + 1]
mov edi, 6
cdq
idiv edi
movzx eax, dx
mov word [ecx + 0x524c], ax
cwde
add eax, 0xa4a
xor edx, edx
lea eax, [ecx + eax*8]
mov dword [eax], esi
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5248]
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x407c30
mov dword [ebx], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x410570
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x4105ad
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x410593
cmp byte [esi], bl
jne 0x410593
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x4448f0]
test bl, bl
jne 0x410584
pop edi
pop esi
not ecx
pop ebx
jmp fcn.00410510
Function at 0x416780
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x44e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov esi, 4
mov eax, dword [edi + 0xf4]
mov ebx, dword [edi + 0xfc]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x4448f0]
sub esi, 1
jne 0x4167c0
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x404c], ebx
jne 0x4167f7
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.00420f90
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004419d0
mov esp, ebp
pop ebp
ret 4
Function at 0x419870
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
or edx, 0xffffffff
mov al, 0x23
push ebx
push esi
push edi
mov edi, dword [0x44e638]
mov esi, 0x44a0d9
or ebx, 0xffffffff
nop dword [eax]
cmp al, 0x23
jne 0x41989e
cmp byte [esi], al
jne 0x41989e
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x4448f0]
test al, al
jne 0x419890
not edx
mov ecx, edx
call fcn.00410510
cmp byte [edi + 0xd0], 0
je 0x4198da
test eax, eax
je 0x4198da
cmp byte [eax + 0xbb], 0
je 0x4198da
mov bl, 1
jmp 0x4198dc
xor bl, bl
movss xmm4, dword [0x44ac4c]
lea eax, [ebp - 0x24]
movss xmm1, dword [edi + 0x3a04]
lea ecx, [edi + 0x4a68]
movss xmm3, dword [0x44abe8]
movaps xmm0, xmm4
subss xmm0, xmm1
mov dword [ebp - 0x24], 4
xorps xmm2, xmm2
push eax
mulss xmm0, xmm3
addss xmm0, xmm1
movss xmm1, dword [edi + 0x3a08]
movss dword [ebp - 0x10], xmm0
xorps xmm0, xmm0
subss xmm0, xmm1
mulss xmm0, xmm3
addss xmm0, xmm1
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [edi + 0x3a0c]
subss xmm2, xmm0
mulss xmm2, xmm3
addss xmm2, xmm0
movss xmm0, dword [edi + 0x3a10]
subss xmm4, xmm0
movss dword [ebp - 8], xmm2
mulss xmm4, xmm3
addss xmm4, xmm0
movups xmm0, xmmword [edi + 0x3a04]
movups xmmword [ebp - 0x20], xmm0
movss dword [ebp - 4], xmm4
call fcn.00421860
cmp dword [edi + 0x4a64], 4
je 0x41998e
movups xmm0, xmmword [ebp - 0x10]
movups xmmword [edi + 0x3a04], xmm0
test bl, bl
je 0x4199d5
mov edx, dword [0x44e638]
or dword [edx + 0x49f8], 1
mov eax, dword [edi + 0x518c]
mov ecx, dword [edi + 0x5190]
mov dword [edx + 0x4a08], eax
mov dword [edx + 0x4a0c], ecx
mov dword [edx + 0x4a10], 0
mov dword [edx + 0x4a14], 0
mov dword [edx + 0x49fc], 1
push 0x200016f
xor edx, edx
mov ecx, str.Tooltip_Error
call fcn.004132c0
add esp, 4
mov ecx, 1
mov bl, al
call fcn.004081a0
test bl, bl
je 0x419a57
mov ecx, dword [edi + 0x400c]
cmp word [ecx + 0xc8], 1
jne 0x419a5c
mov ecx, str.MESSAGE_FROM_DEAR_IMGUI
call fcn.0043cce0
mov ecx, dword [edi + 0x400c]
call fcn.00415dc0
mov ecx, dword [edi + 0x400c]
call fcn.00415d40
mov eax, dword [0x44e638]
mov eax, dword [eax + 0x400c]
movss xmm0, dword [eax + 0x18]
movss xmm1, dword [eax + 0x1c]
mov al, bl
movss dword [edi + 0x518c], xmm0
movss dword [edi + 0x5190], xmm1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00415b10
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f930
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x5158], 0
lea esi, [edi + 0x515c]
je 0x41f9b2
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x41f96c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00421e90
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.00407f30
mov edx, dword [esi]
mov ecx, 0x44e634
push dword [edi + 0x5158]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5164]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.00407f30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41fdc0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x44e638]
test bl, bl
je 0x41fe06
or edi, 0xffffffff
cmp bl, 0x23
jne 0x41fde7
cmp byte [esi], bl
jne 0x41fde7
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x4448f0]
test bl, bl
jne 0x41fdd8
mov edi, dword [0x44e638]
mov ecx, dword [edi + 0x50f4]
not eax
mov edx, dword [edi + 0x50fc]
pop edi
pop esi
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
pop ebx
cmp edx, ecx
je 0x41fe2d
cmp dword [edx + 4], eax
je 0x41fe30
add edx, 0x24
cmp edx, ecx
jne 0x41fe21
xor eax, eax
ret
mov eax, edx
ret
Function at 0x433310
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x44e040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x44e638]
lea eax, [ebp - 0x10]
push esi
push edi
push eax
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x4334cb
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x4334cb
push 0x38
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, dword [0x44e638]
add esp, 4
mov edi, eax
test esi, esi
je 0x4333b3
movsx edx, word [esi + 0x524c]
lea eax, [esi + 0x5250]
mov ecx, dword [esi + 0x3f78]
lea eax, [eax + edx*8]
cmp dword [eax], ecx
je 0x4333a9
lea eax, [edx + 1]
mov dword [ebp - 0x1c], 6
cdq
idiv dword [ebp - 0x1c]
movzx eax, dx
mov word [esi + 0x524c], ax
cwde
add eax, 0xa4a
lea eax, [esi + eax*8]
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ecx
inc word [eax + 4]
inc dword [esi + 0x5244]
test edi, edi
je 0x4333c6
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x4333c8
xor edi, edi
or dword [ebx + 0xc], 6
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x80], edi
mov dword [ebx + 0x78], str.imgui_impl_win32
mov dword [edi], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x20], 9
test esi, esi
je 0x433409
mov esi, dword [esi + 0x80]
jmp 0x43340b
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x43342e
mov dword [esi], eax
mov eax, dword [0x44e638]
xor esi, esi
mov dword [ebp - 0x38], str.xinput1_4.dll
mov dword [ebp - 0x34], str.xinput1_3.dll
mov dword [ebp - 0x30], str.xinput9_1_0.dll
mov eax, dword [eax + 0x4adc]
mov dword [ebp - 0x2c], str.xinput1_2.dll
mov dword [ebp - 0x28], str.xinput1_1.dll
mov ecx, dword [eax]
mov eax, dword [edi]
mov dword [ecx + 0x2c], eax
mov dword [ecx + 0x28], eax
mov byte [edi + 0x29], 1
nop dword [eax]
push dword [ebp + esi*4 - 0x38]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x433499
inc esi
cmp esi, 5
jl 0x433470
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004419d0
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XInputGetCapabilities
push ebx
mov dword [edi + 0x2c], ebx
call esi
push str.XInputGetState
push ebx
mov dword [edi + 0x30], eax
call esi
mov dword [edi + 0x34], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004419d0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004419d0
mov esp, ebp
pop ebp
ret
Function at 0x43ff70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
mov edi, dword [0x44e638]
mov ebx, dword [edi + 0x400c]
cmp byte [ebx + 0xbf], 0
jne 0x440072
mov esi, dword [edi + 0x4de4]
test esi, esi
jne 0x43ffa3
mov ecx, str.Mismatched_BeginTabBar___EndTabBar___
pop edi
pop esi
pop ebx
jmp fcn.00419360
cmp byte [esi + 0x73], 0
je 0x43ffb0
mov ecx, esi
call fcn.00440080
cmp byte [esi + 0x74], 0
jne 0x43ffd4
cmp dword [esi + 0x20], 0
je 0x43ffd4
mov eax, dword [esi + 0x28]
inc eax
cmp eax, dword [edi + 0x3f78]
jl 0x43ffd4
movss xmm1, dword [esi + 0x40]
addss xmm1, dword [esi + 0x38]
jmp 0x43fff3
movss xmm1, dword [esi + 0x38]
movss xmm0, dword [ebx + 0x104]
subss xmm0, xmm1
maxss xmm0, dword [esi + 0x3c]
movss dword [esi + 0x3c], xmm0
addss xmm1, xmm0
movss dword [ebx + 0x104], xmm1
cmp byte [esi + 0x72], 1
jle 0x440019
mov eax, dword [esi + 0x88]
mov ecx, dword [esi + 0x8c]
mov dword [ebx + 0x100], eax
mov dword [ebx + 0x104], ecx
or eax, 0xffffffff
test dword [esi + 0x10], 0x100000
mov word [esi + 0x78], ax
jne 0x44002e
call fcn.004168a0
mov eax, dword [edi + 0x4e08]
add eax, 0xffffffff
mov dword [edi + 0x4e08], eax
jne 0x44004b
xor ecx, ecx
mov dword [edi + 0x4de4], ecx
pop edi
pop esi
pop ebx
ret
mov edx, dword [edi + 0x4e10]
mov ecx, dword [edx + eax*8 - 8]
test ecx, ecx
jne 0x44006c
imul ecx, dword [edx + eax*8 - 4], 0x9c
mov eax, dword [0x44e638]
add ecx, dword [eax + 0x4df0]
mov dword [edi + 0x4de4], ecx
pop edi
pop esi
pop ebx
ret

Function at 0x4414e3
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x44150a
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x44150d
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004414bf
pop esi
leave
ret 8

Function at 0x44253f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44257e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44257e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44257e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44257e
cmp dword [ecx + 0x74], 0xe
jbe 0x44257e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100096e0
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 [0x100b300c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10009761
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 0x10009730
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.1007c089
mov esp, ebp
pop ebp
ret 4

Function at 0x10009780
Capabilities:
Encode data using xor

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

Function at 0x100097e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007d3bd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x100b300c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
cmp dword [0x100b48d0], 0x10
mov eax, 0x100b48bc
cmovae eax, dword [0x100b48bc]
cmp byte [eax], 0
je 0x100098fa
mov ecx, dword [ebp + 8]
cmp byte [ecx], 0
je 0x100098fa
cmp dword [0x100b4514], 0x10
mov eax, 0x100b4500
cmovae eax, dword [0x100b4500]
cmp byte [eax], 0
je 0x100098fa
mov esi, 0x100bacf8
mov edx, ecx
sub esi, ecx
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], al
test al, al
jne 0x10009856
mov edx, 0x100b6ce0
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 0x10009870
mov ecx, dword [0x100bb5a4]
mov edx, 0x100b48bc
cmp dword [0x100b48d0], 0x10
push 0x100bacf8
cmovae edx, dword [0x100b48bc]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
test eax, eax
jne 0x100098fa
mov ecx, 0x98
xor edx, edx
nop dword [eax]
mov al, byte [edx + 0x100a1b40]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x28], al
and ecx, 0x800000ff
jns 0x100098cd
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x100098b0
mov byte [ebp - 0x14], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 0
mov eax, dword [0x100b66ec]
mov esi, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x4c]
mov ecx, dword [0x100b66ec]
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 0x10009910
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007d3ed
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100b300c]
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 0x10009950
sub esi, ecx
push esi
call fcn.1007c8e2
add esp, 4
xor edx, edx
mov edi, eax
test esi, esi
js 0x1000997b
nop word [eax + eax]
xor byte [edx + edi], dl
lea ecx, [edx + edi]
inc edx
cmp edx, esi
jle 0x10009970
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x100099b1
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100099a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100099a7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007c8d4
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 0x1000aa90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100b300c]
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 0x1000aac7
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 0x1000aab0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007c089
mov esp, ebp
pop ebp
ret 8

Function at 0x1000ad80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100b300c]
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.1007c089
mov esp, ebp
pop ebp
ret 8
Function at 0x1000add0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100ab4a8
push 0x1007c23d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100b300c]
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 0x1000ae42
mov byte [esi + eax], 0x90
inc eax
jmp 0x1000ae34
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1000ae5c
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.1007c089
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100179b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100b300c]
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 0x10017a07
test eax, eax
je 0x10017a07
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10017a06
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.1007c089
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100b300c]
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 0x10017aec
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.1007c089
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.1007c089
mov esp, ebp
pop ebp
ret

Function at 0x10017c90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100b300c]
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 0x10017cee
test edi, edi
je 0x10017cee
push esi
push edi
call fcn.1007c8e2
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.1007c089
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.1007c089
mov esp, ebp
pop ebp
ret 8