joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ba0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x334
mov eax, dword [0x42fce0]
xor eax, esp
mov dword [esp + 0x330], eax
push ebx
push esi
mov eax, str.qq.exe
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401bc5
sub eax, edx
je 0x401cd8
push 0x1ff
lea eax, [esp + 0x13d]
push 0
push eax
mov byte [esp + 0x144], cl
call fcn.00413280
add esp, 0xc
xor eax, eax
jmp 0x401c00
mov cl, byte [eax + str.qq.exe]
mov byte [esp + eax + 0x138], cl
inc eax
test cl, cl
jne 0x401c00
lea ecx, [esp + 0x138]
push ecx
call fcn.00424497
add esp, 4
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x401cd8
push 0x124
lea edx, [esp + 0x18]
push 0
push edx
mov edi, 1
call fcn.00413280
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401cba
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea esp, [esp]
lea ecx, [esp + 0x34]
push ecx
call fcn.00424497
add esp, 4
lea edx, [esp + 0x138]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00411a80
add esp, 8
test eax, eax
je 0x401cab
call ebx
mov ecx, dword [esp + 0x18]
cmp ecx, eax
je 0x401cab
push ecx
call fcn.00401d90
add esp, 4
mov edi, eax
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401c70
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x330]
xor ecx, esp
call fcn.004116ac
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x33c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004116ac
mov esp, ebp
pop ebp
ret

Function at 0x401cf0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
push esi
lea eax, [esp + 8]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x401d25
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nLookupPrivilegeValue_error:_d
call fcn.00411d36
add esp, 8
xor eax, eax
pop esi
add esp, 0x1c
ret
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push 0
push 0
push 0x10
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x34]
push 0
push ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x401d80
call esi
push eax
push str.AdjustTokenPrivileges_failed:__u_n
call fcn.00411d36
add esp, 8
xor eax, eax
pop esi
add esp, 0x1c
ret
mov eax, 1
pop esi
add esp, 0x1c
ret
Function at 0x401d90
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push eax
xor esi, esi
push 0xf01ff
mov dword [esp + 0x14], esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401dea
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00401cf0
mov edx, dword [esp + 0x18]
add esp, 4
push edx
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401dea
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x401dea
mov ebx, 1
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401dfb
push eax
call edi
test esi, esi
je 0x401e02
push esi
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x402900
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x424d38
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x42fce0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea ecx, [esp + 0xc]
xor esi, esi
call fcn.00405664
mov eax, dword [ebp + 8]
push esi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], esi
call fcn.0040571e
cmp eax, esi
je 0x40295f
lea ecx, [esp + 0xc]
call fcn.00405327
lea ecx, [esp + 0xc]
call fcn.00405363
mov esi, eax
lea ecx, [esp + 0xc]
call fcn.00405241
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.0040568a
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402a10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [0x42fce0]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x110]
push esi
mov esi, dword [eax]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push esi
mov dword [esp + 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.004116ac
add esp, 0x10c
ret

Function at 0x402a80
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x42fce0]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x218]
push ebp
push 5
push 0
push 0
push eax
push str.open
push 0
mov dword [esp + 0x20], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ebp, eax
cmp ebp, 0x20
ja 0x402b98
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str..htm
push 0x80000000
call esi
test eax, eax
jne 0x402bb2
lea ecx, [esp + 0xc]
push ecx
lea edi, [esp + 0x18]
call fcn.00402a10
add esp, 4
test eax, eax
jne 0x402bb2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._shellopencommand
mov edx, edi
push edx
call ebx
lea eax, [esp + 0x10]
push eax
push 1
push 0
mov ecx, edi
push ecx
push 0x80000000
call esi
test eax, eax
jne 0x402bae
lea edx, [esp + 0x10]
push edx
call fcn.00402a10
add esp, 4
test eax, eax
jne 0x402bae
mov eax, edi
push str.__1_
push eax
call fcn.004122e5
mov esi, eax
add esp, 8
test esi, esi
jne 0x402b75
mov ecx, edi
push 0x429be0
push ecx
call fcn.004122e5
mov esi, eax
add esp, 8
test esi, esi
jne 0x402b75
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x17]
jmp 0x402b78
mov byte [esi], 0
push 0x429be4
push esi
call ebx
mov eax, dword [esp + 0x14]
push eax
push esi
call ebx
push 5
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004116ac
add esp, 0x214
ret
mov eax, ebp
jmp 0x402b95
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.004116ac
add esp, 0x214
ret
Function at 0x4043e3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x42fce0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x404481
push 0x426764
push 4
push eax
call fcn.00411b06
push eax
call fcn.004036e0
add esp, 0x10
push ebx
push edi
call fcn.00413228
mov edi, dword [eax]
call fcn.00413228
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00412008
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.00413228
cmp dword [eax], ebx
je 0x404498
call fcn.00413228
push dword [eax]
call fcn.00404273
pop ecx
jmp 0x40449f
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x404429
jmp 0x404526
call fcn.00413228
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
je 0x404522
cmp dword [ebp - 0x11c], esi
jae 0x404522
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x15c]
push ebx
push eax
mov dword [ebp - 0x160], 0x40
call fcn.00413280
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x404511
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x404511
lea ecx, [ebp - 0x160]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x404511
push ebx
push ebx
push esi
jmp 0x40451a
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x404524
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004116ac
leave
ret

Function at 0x4116ac
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42fce0]
jne 0x4116b6
repz ret
jmp fcn.0041621f

Function at 0x412029
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x41205a
call fcn.0041323b
mov dword [eax], esi
call fcn.00413228
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00416855
add esp, 0x14
push 0x16
pop eax
jmp 0x4120af
test dword [ebp + 0xc], 0xfffffff9
jne 0x412036
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x412087
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041324e
pop ecx
call fcn.00413228
mov eax, dword [eax]
jmp 0x4120af
test al, 0x10
jne 0x4120ad
test al, 1
je 0x4120ad
test byte [ebp + 0xc], 2
je 0x4120ad
call fcn.0041323b
mov dword [eax], 5
call fcn.00413228
mov dword [eax], 0xd
jmp 0x41207e
xor eax, eax
pop esi
pop ebp
ret
Function at 0x42001f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004172f5
and dword [ebp - 4], 0
cmp dword [0x4337f4], 0
mov ebx, eax
jne 0x4200d0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x420181
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x429994
push edi
call esi
test eax, eax
je 0x420181
push eax
call fcn.00417283
mov dword [esp], 0x429984
push edi
mov dword [0x4337f4], eax
call esi
push eax
call fcn.00417283
mov dword [esp], 0x429970
push edi
mov dword [0x4337f8], eax
call esi
push eax
call fcn.00417283
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4337fc], eax
call esi
push eax
call fcn.00417283
pop ecx
mov dword [0x433804], eax
test eax, eax
je 0x4200d0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00417283
pop ecx
mov dword [0x433800], eax
mov eax, dword [0x433800]
cmp eax, ebx
je 0x420128
cmp dword [0x433804], ebx
je 0x420128
push eax
call fcn.004172fe
push dword [0x433804]
mov esi, eax
call fcn.004172fe
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x420128
test edi, edi
je 0x420128
call esi
test eax, eax
je 0x42011f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42011f
test byte [ebp - 0xc], 1
jne 0x420128
or dword [ebp + 0x10], 0x200000
jmp 0x420161
mov eax, dword [0x4337f8]
cmp eax, ebx
je 0x420161
push eax
call fcn.004172fe
pop ecx
test eax, eax
je 0x420161
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x420161
mov eax, dword [0x4337fc]
cmp eax, ebx
je 0x420161
push eax
call fcn.004172fe
pop ecx
test eax, eax
je 0x420161
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4337f4]
call fcn.004172fe
pop ecx
test eax, eax
je 0x420181
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x420183
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001260
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push 0x401000
call fcn.10001440
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
call fcn.10001c60
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x100012c1
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, 0x53ec8b55
jne 0x100012d3
mov eax, 0x3e9
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x401000
call fcn.10001bf0
cmp eax, 0x16197be9
jne 0x100012ee
mov eax, 0x3ea
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8245bc
call fcn.10001bf0
cmp eax, 0x94bf
jne 0x10001309
mov eax, 0x3f3
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8252fc
call fcn.10001bf0
cmp eax, 0x94bf
jne 0x10001324
mov eax, 0x44d
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x82533c
call fcn.10001bf0
cmp eax, 0x94bf
jne 0x1000133f
mov eax, 0x457
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858d51
call fcn.10001bf0
cmp eax, 0x3539f633
jne 0x1000135a
mov eax, 0xc80
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858c61
call fcn.10001bf0
xor ecx, ecx
mov edx, 0xc8a
cmp eax, 0x3539f633
pop esi
cmove ecx, edx
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x10001520
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor ecx, ecx
mov dword [ebp - 0x10], 0
cmp byte [ebp + 0x14], cl
cmovne ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x1000153f
mov byte [ebp - 4], cl
jmp 0x1000155c
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push edx
push 0x40
push ecx
push eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10008640
add esp, 0xc
cmp byte [ebp - 4], 0
je 0x1000158a
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0x14]
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp + 0x14], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x10001590
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor ecx, ecx
cmp byte [ebp + 0x14], cl
push ebx
cmovne ecx, dword [ebp + 0x10]
push esi
xor esi, esi
mov dword [ebp - 0x10], esi
test ecx, ecx
jne 0x100015ae
xor bl, bl
jmp 0x100015cd
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push edx
push 0x40
push ecx
push eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [ebp - 0x10]
test eax, eax
setne bl
push dword [ebp + 0x10]
mov byte [ebp - 4], bl
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.10008640
add esp, 0xc
test bl, bl
je 0x100015fa
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0x14]
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp + 0x14], eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001600
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub eax, 1
je 0x10001634
sub eax, 1
je 0x1000168d
sub eax, 2
je 0x100016ed
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, byte [ebp + 0xc]
mov eax, dword [ebp + 8]
sub bl, al
mov bh, byte [ebp + 0x14]
dec bl
mov dword [ebp - 4], eax
movzx ecx, bh
mov dword [ebp - 0x18], 0
test bh, bh
jne 0x10001659
mov byte [ebp - 0xc], bh
mov byte [eax], bl
jmp 0x10001690
lea edx, [ebp - 0x10]
mov dword [ebp - 0x14], ecx
push edx
push 0x40
push ecx
push eax
mov dword [ebp - 0x18], eax
call edi
mov ecx, dword [ebp - 4]
test eax, eax
setne byte [ebp - 0xc]
mov byte [ecx], bl
test eax, eax
je 0x10001690
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
call edi
jmp 0x10001690
mov bh, byte [ebp + 0x14]
mov eax, dword [ebp - 8]
sub eax, esi
mov dword [ebp - 0x18], 0
mov esi, dword [ebp + 8]
sub eax, esi
movzx eax, ax
mov dword [ebp - 8], eax
movzx ecx, ax
movzx eax, bh
add eax, eax
jne 0x100016ba
mov byte [ebp - 0xc], 0
mov word [esi], cx
jmp 0x100016ed
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call edi
mov ecx, dword [ebp - 8]
test eax, eax
setne byte [ebp - 0xc]
mov word [esi], cx
test eax, eax
je 0x100016ed
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call edi
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
add eax, esi
mov ebx, dword [ebp + 0xc]
sub ebx, eax
mov dword [ebp - 0x18], 0
movzx eax, byte [ebp + 0x14]
shl eax, 2
test eax, eax
jne 0x10001718
mov byte [ebp - 0xc], al
mov dword [esi], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call edi
test eax, eax
setne byte [ebp - 0xc]
mov dword [esi], ebx
test eax, eax
je 0x10001747
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x18]
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001750
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
movzx ebx, byte [ebp + 0x10]
mov dword [ebp - 0x14], edx
push esi
mov esi, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
test ebx, ebx
jne 0x10001775
xor cl, cl
jmp 0x10001790
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push ecx
push 0x40
push ebx
push eax
mov dword [ebp - 0x14], eax
call edi
mov edx, dword [ebp - 0x14]
test eax, eax
mov eax, dword [ebp + 0xc]
setne cl
mov byte [ebp - 8], cl
mov ch, byte [esi]
mov byte [ebp + 0x13], ch
test cl, cl
je 0x100017b3
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edx
call edi
mov eax, dword [ebp + 0xc]
mov ch, byte [ebp + 0x13]
movzx ecx, ch
sub ecx, 0xe8
je 0x1000188c
sub ecx, 1
je 0x1000188c
sub ecx, 0x16
jne 0x1000187c
mov dword [ebp - 0x14], ecx
lea esi, [eax + 1]
test ebx, ebx
jne 0x100017e2
xor cl, cl
jmp 0x100017fa
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
push 0x40
push ebx
push esi
mov dword [ebp - 0x14], esi
call edi
test eax, eax
mov eax, dword [ebp + 0xc]
setne cl
mov byte [ebp - 8], cl
mov dl, byte [esi]
mov byte [ebp + 0x13], dl
test cl, cl
je 0x1000181f
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push dword [ebp - 0x14]
call edi
mov eax, dword [ebp + 0xc]
mov dl, byte [ebp + 0x13]
cmp dl, 0x15
je 0x10001829
cmp dl, 0x25
jne 0x1000187c
shl ebx, 2
lea esi, [eax + 2]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
test ebx, ebx
jne 0x1000183c
xor al, al
jmp 0x10001854
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
push 0x40
push ebx
push esi
mov dword [ebp - 0x14], esi
call edi
mov ecx, dword [ebp - 0x14]
test eax, eax
setne al
mov byte [ebp - 8], al
mov esi, dword [esi]
test al, al
je 0x1000186e
mov eax, dword [ebp - 0xc]
lea edx, [ebp + 0x10]
push edx
push eax
push dword [ebp - 0x10]
mov dword [ebp + 0x10], eax
push ecx
call edi
mov eax, dword [ebp + 8]
mov ecx, dword [esi]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [eax], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
shl ebx, 2
lea esi, [eax + 1]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
test ebx, ebx
jne 0x1000189f
xor al, al
jmp 0x100018b7
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
push 0x40
push ebx
push esi
mov dword [ebp - 0x14], esi
call edi
mov ecx, dword [ebp - 0x14]
test eax, eax
setne al
mov byte [ebp - 8], al
mov ebx, dword [esi]
test al, al
je 0x100018d1
mov eax, dword [ebp - 0xc]
lea edx, [ebp + 0x10]
push edx
push eax
push dword [ebp - 0x10]
mov dword [ebp + 0x10], eax
push ecx
call edi
mov eax, dword [ebp + 8]
lea ecx, [ebx + 4]
pop edi
add ecx, esi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001b70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push dword [ebp + 8]
call fcn.10001440
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
call fcn.10001c60
mov dword [ebp - 0x18], 0
mov esi, dword [eax]
movzx eax, byte [ebp + 0x10]
shl eax, 2
test eax, eax
jne 0x10001baa
mov byte [ebp - 0xc], al
jmp 0x10001bc4
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
cmp byte [ebp - 0xc], 0
je 0x10001be6
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10001bf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push ecx
call fcn.10001440
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
call fcn.10001c60
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x10001c4d
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 4], ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10001ce0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x10], edx
push ebx
push esi
mov esi, dword [ebp + 8]
test eax, eax
jne 0x10001cfc
xor al, al
jmp 0x10001d18
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x10]
test eax, eax
setne al
mov byte [ebp - 4], al
mov bl, byte [esi]
test al, al
je 0x10001d36
mov ecx, dword [ebp - 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push dword [ebp - 0xc]
mov dword [ebp + 0xc], ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret