joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490b77
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x490b92
push 1
call fcn.00490c41
pop ecx
jmp 0x490c3d
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x490c2c
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x490c05
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [eax + 0x18], 0
jbe 0x490c03
push dword [ebp - 0x30]
push 0
push dword [ebp - 8]
call fcn.0048ec66
add esp, 0xc
jmp 0x490c2a
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x490c2a
push 0
push 0
push 0
push 0
push 0
push 0
push 0x6e5
push 0
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x490c3d
push 0x499a
push 0
push 0
call fcn.0048cea5
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x49116e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x49122c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x4911b8
push 0x4079
push 0x339b
push 1
call fcn.00491248
add esp, 0xc
jmp 0x49122a
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x491207
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x491205
push 0
push 0
push 0x1bc7
push 0x1e31
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_ScrollWindow]
jmp 0x49122a
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x49122a
push 0x1c02
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x491244
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
push 0x3ae8
push dword [ebp - 0x30]
push 1
call fcn.0048c582
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x49b8b3
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], 0x860b4ffb
push 1
mov dword [ebp - 0x10], 0xa5043c4a
mov dword [ebp - 0xc], ebx
pop edi
jmp 0x49b8e3
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x24], edi
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jl 0x49b8d9
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x49b8f7
call dword [sym.imp.USER32.dll_WaitMessage]
mov dword [ebp - 0xc], ebx
jmp 0x49b908
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 2
jle 0x49b8fc
push edi
push edi
push esi
push edi
push 0x3052
push 0x2f10
call fcn.00495a59
mov dword [ebp - 8], edi
add esp, 0x18
mov dword [ebp - 0x10], 2
mov dword [ebp - 0xc], 5
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x10], 0x1b0cadfb
mov dword [ebp - 0xc], ebx
jmp 0x49b952
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x18], 6
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], edi
jl 0x49b944
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x49b971
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x6e5
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], ebx
jne 0x49b983
cmp dword [ebp - 8], ebx
jne 0x49b983
mov eax, ebx
xor edx, edx
cmp eax, 0x7d72
mov eax, dword [ebp - 8]
setl dl
xor ecx, ecx
cmp edx, eax
setge cl
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
sub ecx, eax
neg ecx
sbb ecx, ecx
inc ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
dec eax
neg eax
sbb eax, eax
neg eax
cmp eax, dword [ebp - 8]
je 0x49b9c5
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov eax, dword [ebp - 8]
cmp eax, 0x3b0a6d08
push esi
setge cl
mov dword [ebp - 0x10], ecx
call fcn.004782a9
mov dword [ebp - 8], 0xfffffffa
mov edx, eax
pop ecx
mov dword [ebp - 0xc], ebx
jmp 0x49b9f7
mov ecx, dword [ebp - 0xc]
mov dword [ebp + ecx*4 - 0x14], edi
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], edi
jl 0x49b9ed
mov dword [ebp - 8], ebx
jmp 0x49ba38
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0xc], ebx
jmp 0x49ba30
mov dword [ebp - 0x10], 0x16b471df
mov eax, dword [ebp - 8]
cmp dword [ebp + eax*4 - 0x14], ebx
jne 0x49ba35
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x14]
imul eax, dword [ebp - 0xc]
imul eax, eax, 0x2972
mov dword [ebp - 0x10], eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], ebx
jle 0x49ba09
inc dword [ebp - 8]
cmp dword [ebp - 8], ebx
jle 0x49ba01
pop edi
pop esi
mov dword [ebp - 8], ebx
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c64d6
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4cc7c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004b8e7b
mov dword [ebp - 0x14], eax
cmp dword [0xac80fc], esi
jne 0x4c65c9
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4c6556
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4c66a9
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4c66a9
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4c66a9
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0xac80fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0xac8100], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0xac8104], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xac810c], eax
test eax, eax
je 0x4c65c6
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xac8108], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4c65ee
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4c65e1
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4c6603
push 4
pop eax
jmp 0x4c66ab
cmp dword [ebp - 0x14], esi
je 0x4c6603
push dword [0xac80fc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4c65e8
mov eax, dword [0xac8108]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4c6661
cmp dword [0xac810c], edi
je 0x4c6661
push eax
call ebx
push dword [0xac810c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4c6661
test eax, eax
je 0x4c6661
call ecx
test eax, eax
je 0x4c6656
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4c6656
test byte [ebp - 8], 1
jne 0x4c6661
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4c6691
mov eax, dword [0xac8100]
cmp eax, edi
je 0x4c668e
push eax
call ebx
test eax, eax
je 0x4c668e
call eax
mov esi, eax
test esi, esi
je 0x4c668e
mov eax, dword [0xac8104]
cmp eax, edi
je 0x4c668e
push eax
call ebx
test eax, eax
je 0x4c668e
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0xac80fc]
call ebx
test eax, eax
je 0x4c66a9
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4c66ab
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b5e5b
mov esp, ebp
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x1a8170c3
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x48973df1
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4209ab
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4209ea
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4209ea
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4209ea
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4209ea
cmp dword [ecx + 0x74], 0xe
jbe 0x4209ea
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433160
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43318d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43318d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40690c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406945
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040cc
jmp 0x40694e
mov eax, ebx
mov edx, esi
call fcn.00404030
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406958
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40697a
movzx eax, byte [esp]
jmp 0x40697c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40700c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x406e84
mov eax, dword [0x42732c]
cmp byte [eax], 0
je 0x407088
mov eax, dword [0x427288]
call fcn.00402f34
call fcn.00402d9c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00405dcc
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4070d0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4070be
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x427268]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x42a7f0]
call fcn.00404644
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40b15a
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [pe_dos_header]
mov eax, dword ds:[eax + 0x34]
mov ebp, dword ds:[eax + 0xb8]
jmp 0x40b168
push eax
push ecx
push esi
push ebp
mov eax, dword fs:[0x30]
test eax, eax
js 0x40b14a
mov eax, dword ds:[eax + 0xc]
mov esi, dword ds:[eax + 0x1c]
lodsd eax, dword [esi]
mov ebp, dword ds:[eax + 8]
mov dword [ebx + 0x60], ebp
mov eax, ebp
cmp word [eax], 0x5a4d
jne 0x40b145
add eax, 0x3c
mov ecx, dword [eax]
add ecx, dword [ebx + 0x60]
cmp word [ecx], 0x4550
jne 0x40b145
add ecx, 0x78
mov esi, dword [ecx]
add esi, dword [ebx + 0x60]
add esi, 0x18
lodsd eax, dword [esi]
mov dword [ebx + 0x64], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x68], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x6c], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x70], eax
pop ebp
pop esi
pop ecx
pop eax
ret
Function at 0x10004500
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x10
movzx eax, byte [esp + 0x18]
xor edx, edx
mov dword [esp], edx
push ebx
push esi
mov esi, dword [esp + 0x1c]
test eax, eax
jne 0x1000451b
xor al, al
jmp 0x1000453b
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], eax
push ecx
push 0x40
push eax
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 8]
test eax, eax
setne al
mov byte [esp + 0x14], al
mov bl, byte [esi]
test al, al
je 0x1000455e
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push ecx
push dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov al, bl
pop ebx
add esp, 0x10
ret

Function at 0x10005f10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor ecx, ecx
mov edx, 0x811c9dc5
push edi
mov edi, dword [esp + 0xc]
test esi, esi
je 0x10005f36
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x10005f25
pop edi
mov eax, edx
pop esi
ret
Function at 0x1000f640
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x1c]
xor edx, edx
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 8], edx
push ebp
movzx ebp, bl
push esi
mov esi, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
test bl, bl
jne 0x1000f668
xor cl, cl
jmp 0x1000f688
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebp
push ecx
push 0x40
push ebp
push eax
mov dword [esp + 0x24], eax
call edi
mov edx, dword [esp + 0x14]
test eax, eax
mov eax, dword [esp + 0x2c]
setne cl
mov byte [esp + 0x20], cl
mov ch, byte [esi]
mov byte [esp + 0x30], ch
test cl, cl
je 0x1000f6b3
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push eax
push dword [esp + 0x20]
mov dword [esp + 0x1c], eax
push edx
call edi
mov eax, dword [esp + 0x2c]
mov ch, byte [esp + 0x30]
movzx ecx, ch
sub ecx, 0xe8
je 0x1000f760
sub ecx, 1
je 0x1000f760
sub ecx, 0x16
jne 0x1000f74e
push ebx
push ecx
mov ecx, esp
inc eax
mov dword [ecx], eax
call fcn.10004500
add esp, 8
cmp al, 0x15
je 0x1000f6e7
cmp al, 0x25
jne 0x1000f74e
mov esi, dword [esp + 0x2c]
lea eax, [ebp*4]
xor ecx, ecx
add esi, 2
mov dword [esp + 0x14], ecx
test eax, eax
jne 0x1000f703
xor al, al
jmp 0x1000f71f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
push ecx
push 0x40
push eax
push esi
mov dword [esp + 0x24], esi
call edi
mov ecx, dword [esp + 0x14]
test eax, eax
setne al
mov byte [esp + 0x20], al
mov esi, dword [esi]
test al, al
je 0x1000f73e
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x30]
push edx
push eax
push dword [esp + 0x20]
mov dword [esp + 0x3c], eax
push ecx
call edi
mov eax, dword [esp + 0x28]
mov ecx, dword [esi]
mov dword [eax], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x28]
mov dword [eax], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov esi, dword [esp + 0x28]
inc eax
push ebx
push 4
push ecx
mov ecx, esp
push esi
mov dword [ecx], eax
call fcn.10010250
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x10010050
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x28]
mov eax, ebp
mov dword [esp + 8], ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub eax, 1
je 0x10010086
sub eax, 1
je 0x100100eb
sub eax, 2
je 0x10010157
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x28]
sub bl, al
movzx ecx, byte [esp + 0x34]
dec bl
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], 0
test ecx, ecx
jne 0x100100ab
mov byte [esp + 0x20], cl
mov byte [eax], bl
jmp 0x100100e7
lea edx, [esp + 0x1c]
mov dword [esp + 0x18], ecx
push edx
push 0x40
push ecx
push eax
mov dword [esp + 0x24], eax
call edi
mov ecx, dword [esp + 0x30]
test eax, eax
setne byte [esp + 0x20]
mov byte [ecx], bl
test eax, eax
je 0x100100e7
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x30]
push ecx
push eax
push dword [esp + 0x20]
mov dword [esp + 0x3c], eax
push dword [esp + 0x20]
call edi
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov eax, ebx
sub eax, ebp
mov dword [esp + 0x14], 0
sub eax, esi
movzx eax, ax
mov dword [esp + 0x30], eax
movzx ecx, ax
movzx eax, byte [esp + 0x34]
add eax, eax
jne 0x1001011a
mov byte [esp + 0x20], 0
mov word [esi], cx
jmp 0x10010157
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
push ecx
push 0x40
push eax
push esi
mov dword [esp + 0x24], esi
call edi
mov ecx, dword [esp + 0x30]
test eax, eax
setne byte [esp + 0x20]
mov word [esi], cx
test eax, eax
je 0x10010157
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x30]
push ecx
push eax
push dword [esp + 0x20]
mov dword [esp + 0x3c], eax
push dword [esp + 0x20]
call edi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x14], 0
lea eax, [esi + ebp]
sub ebx, eax
movzx eax, byte [esp + 0x34]
shl eax, 2
test eax, eax
jne 0x10010182
mov byte [esp + 0x20], al
mov dword [esi], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
push ecx
push 0x40
push eax
push esi
mov dword [esp + 0x24], esi
call edi
test eax, eax
setne byte [esp + 0x20]
mov dword [esi], ebx
test eax, eax
je 0x100101ba
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x30]
push ecx
push eax
push dword [esp + 0x20]
mov dword [esp + 0x3c], eax
push dword [esp + 0x20]
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x100101d0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x10
xor ecx, ecx
cmp byte [esp + 0x20], cl
push ebx
cmovne ecx, dword [esp + 0x20]
push esi
xor esi, esi
mov dword [esp + 8], esi
test ecx, ecx
jne 0x100101ee
xor bl, bl
jmp 0x10010212
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
push 0x40
push ecx
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esp + 8]
test eax, eax
setne bl
push dword [esp + 0x24]
mov byte [esp + 0x18], bl
push dword [esp + 0x20]
push dword [esp + 0x28]
call fcn.1001e8f0
add esp, 0xc
test bl, bl
je 0x10010247
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push ecx
push eax
push dword [esp + 0x14]
mov dword [esp + 0x34], eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x10010250
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x10
push ebx
push esi
push edi
sub eax, 1
je 0x10010371
sub eax, 1
je 0x100102f9
sub eax, 2
je 0x10010282
mov eax, dword [esp + 0x20]
mov dword [eax], 0
pop edi
pop esi
pop ebx
add esp, 0x10
ret
movzx ecx, byte [esp + 0x2c]
xor edx, edx
mov eax, dword [esp + 0x24]
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
shl ecx, 2
mov dword [esp + 0xc], edx
test ecx, ecx
jne 0x100102a4
xor cl, cl
jmp 0x100102c4
lea edx, [esp + 0x14]
mov dword [esp + 0x10], ecx
push edx
push 0x40
push ecx
push eax
mov dword [esp + 0x1c], eax
call edi
mov edx, dword [esp + 0xc]
test eax, eax
mov eax, dword [esp + 0x24]
setne cl
mov byte [esp + 0x18], cl
mov esi, dword [esi]
test cl, cl
je 0x100102e7
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push ecx
push eax
push dword [esp + 0x18]
mov dword [esp + 0x34], eax
push edx
call edi
mov eax, dword [esp + 0x24]
lea ecx, [esi + 4]
add ecx, eax
mov eax, dword [esp + 0x20]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
movzx ecx, byte [esp + 0x2c]
xor edx, edx
mov eax, dword [esp + 0x24]
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [esp + 0xc], edx
add ecx, ecx
jne 0x10010318
xor cl, cl
jmp 0x10010338
lea edx, [esp + 0x14]
mov dword [esp + 0x10], ecx
push edx
push 0x40
push ecx
push eax
mov dword [esp + 0x1c], eax
call edi
mov edx, dword [esp + 0xc]
test eax, eax
mov eax, dword [esp + 0x24]
setne cl
mov byte [esp + 0x18], cl
movzx esi, word [esi]
test cl, cl
je 0x1001035c
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push ecx
push eax
push dword [esp + 0x18]
mov dword [esp + 0x34], eax
push edx
call edi
mov eax, dword [esp + 0x24]
add eax, 2
movsx ecx, si
add ecx, eax
mov eax, dword [esp + 0x20]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
movzx ecx, byte [esp + 0x2c]
xor edx, edx
mov eax, dword [esp + 0x24]
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [esp + 0xc], edx
test ecx, ecx
jne 0x10010390
xor cl, cl
jmp 0x100103b0
lea edx, [esp + 0x14]
mov dword [esp + 0x10], ecx
push edx
push 0x40
push ecx
push eax
mov dword [esp + 0x1c], eax
call edi
mov edx, dword [esp + 0xc]
test eax, eax
mov eax, dword [esp + 0x24]
setne cl
mov byte [esp + 0x18], cl
mov bl, byte [esi]
test cl, cl
je 0x100103d3
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push ecx
push eax
push dword [esp + 0x18]
mov dword [esp + 0x34], eax
push edx
call edi
mov eax, dword [esp + 0x24]
inc eax
movsx ecx, bl
add ecx, eax
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
add esp, 0x10
ret