joyce8/EMBER2024-capa huggingface dataset:
Function at 0x627080
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x62722b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x62720c
mov dl, 1
mov eax, dword [0x4439ac]
call fcn.0046e198
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00409d08
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x6271fb
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0055fce8
test al, al
je 0x6271ee
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x62723c
lea eax, [ebp - 0x394]
call fcn.0042652c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x6271ee
xor eax, eax
push ebp
push 0x6271e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x6272ac
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x6271d0
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040aa30
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
jne 0x6271d0
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040aa30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6271ee
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x6270f1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x2d], 0
mov dl, 1
call fcn.0046e0c0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x627232
lea eax, [ebp - 0x3a0]
call fcn.00409d08
ret

Function at 0x627e38
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x6ff830]
cmp byte [eax + 0xc5], 0
jne 0x627eaa
cmp dword [0x6ff854], 0
jne 0x627e6a
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x6f760c]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x6ff854], eax
cmp dword [0x6ff850], 0
jne 0x627e85
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x6ff850], eax
cmp dword [0x6ff858], 0
jne 0x627eaa
push esp
push 0
push 0
mov eax, dword [0x6f7608]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x6ff858], eax
pop edx
ret
Function at 0x6282cc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x6282e3
add esp, 0xfffffff0
call fcn.0040855c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0048005c
mov eax, dword [0x6f8594]
cmp byte [eax], 0
jne 0x628310
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x194], al
mov eax, dword [0x6f8a84]
cmp word [eax + 2], 0
jne 0x62832a
mov eax, dword [0x6f8a84]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0062a764
mov eax, dword [0x6f8c40]
cmp word [eax + 2], 0
jne 0x628344
mov eax, dword [0x6f8c40]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0062a968
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x51ab10]
call fcn.005211dc
mov esi, eax
mov dword [ebx + 0x54], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x62aee0
mov dl, 1
mov eax, dword [0x43fff0]
call fcn.00407e70
mov dword [ebx + 0xa8], eax
mov dl, 1
mov eax, dword [0x43fff0]
call fcn.00407e70
mov dword [ebx + 0xc8], eax
xor eax, eax
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x70], 0xff000018
mov dword [ebx + 0x8c], 0x1f4
mov byte [ebx + 0x90], 1
xor eax, eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x88], 0x9c4
mov byte [ebx + 0x9c], 0
mov byte [ebx + 0xbd], 1
mov byte [ebx + 0xd4], 1
mov dl, 1
mov eax, dword [0x51f8ac]
call fcn.0052b498
mov esi, eax
mov dword [ebx + 0xb8], esi
push 0x628534
mov eax, dword [0x6f888c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0052b9b4
mov eax, dword [ebx + 0xb8]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x62b1c8
mov dl, 1
mov eax, dword [0x43fff0]
call fcn.00407e70
mov dword [ebx + 0xb0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x6f888c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0042632c
test eax, eax
je 0x62845e
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00426184
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00426310
test eax, eax
je 0x628476
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0xa4]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.0040aa30
push ebx
push 0x62a144
call fcn.0061d45c
mov dword [ebx + 0x190], eax
mov byte [ebx + 0xe8], 0
mov eax, dword [0x6f8594]
cmp byte [eax], 0
jne 0x6284c7
mov eax, ebx
call fcn.006286fc
mov byte [ebx + 0x6d], 1
mov byte [ebx + 0x6e], 1
mov byte [ebx + 0x6f], 1
mov byte [ebx + 0xbe], 1
mov byte [ebx + 0xe9], 0
mov byte [ebx + 0xf4], 0
xor eax, eax
mov dword [ebx + 0xec], eax
mov byte [ebx + 0xeb], 0
xor eax, eax
mov dword [ebx + 0xc0], eax
mov eax, ebx
call fcn.0062b400
mov eax, ebx
call fcn.0062c088
mov byte [ebx + 0x196], 0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x62852b
call fcn.004085b4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x628a28
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x628aca
cmp dword [ebx + 0xac], 0
jne 0x628ac4
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x628968
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x628ac4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x628a8a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x628ac4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [ebx + 0xa8]
mov edx, esi
call fcn.00469208
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x628a99
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x628d70
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x6ff830]
cmp dword [eax + 0x188], 0
je 0x628ed9
test bl, bl
jne 0x628e2c
cmp dword [esi + 0xb4], 0
jne 0x628e21
mov eax, esi
call fcn.0062bed8
push eax
push 0x628c70
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x628df2
mov eax, dword [0x6ff830]
cmp byte [eax + 0xeb], 0
je 0x628df2
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x628dd3
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x628df2
push 0
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x628ddb
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x628e21
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.00469208
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x628e01
inc dword [esi + 0xb4]
jmp 0x628ed9
cmp dword [esi + 0xb4], 0
jle 0x628ed9
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x628ed9
cmp dword [esi + 0x58], 0
je 0x628e8e
mov eax, dword [0x6ff830]
cmp byte [eax + 0xeb], 0
je 0x628e8e
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x628e6f
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x628e8e
push 5
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x628e77
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x628ebd
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.00469208
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x628e9d
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xf0]
mov edx, dword [0x619acc]
call fcn.0040c3b0
pop edi
pop esi
pop ebx
ret
Function at 0x629c60
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x629cbd
cmp byte [ebx + 0xeb], 0
jne 0x629cbd
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x188]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00409e90
mov eax, dword [esi]
test eax, eax
je 0x629caa
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x629cca
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a0e8
jmp 0x629cca
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a0e8
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x62b614
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x62b685
mov eax, esi
call fcn.00559840
test al, al
je 0x62b685
mov eax, dword [ebx + 0x98]
call fcn.0055946c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x62b685
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x140]
test al, al
je 0x62b676
push 0
mov eax, dword [ebx + 0x98]
call fcn.0055946c
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x98]
xor edx, edx
call fcn.00550044
jmp 0x62b685
mov edx, dword [ebx + 0x88]
mov cl, 1
mov eax, ebx
call fcn.0062b420
pop esi
pop ebx
ret
Function at 0x63a3ec
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x63a41a
mov eax, ebx
call fcn.0063aea8
cmp dword [ebx + 0x40], 0
je 0x63a413
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x63a48b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x63a47d
cmp dword [ebx + 8], 0
je 0x63a43c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x63a44e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x63a47d
cmp dword [ebx + 8], 0
je 0x63a42f
cmp eax, 3
je 0x63a461
dec eax
jne 0x63a42f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x63a42f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x63a42f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x63a4a9
cmp dword [ebx + 0x14], 0xcc
je 0x63a4a9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0063a4b4
pop ebx
ret

Function at 0x64ec4c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x6ffc70], 0
jne 0x64ec63
call fcn.0064ec08
mov eax, edi
dec eax
test eax, eax
jl 0x64ec8b
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x6ff870]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x64ec6d
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x651cb0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x651ce1
dec al
je 0x651d1c
dec al
je 0x651d60
dec al
je 0x651dd2
jmp 0x651e6d
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x651e6d
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x651cf1
jmp 0x651e6d
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x651e6d
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
movzx ecx, al
mov ecx, dword [ebx + ecx*4 + 0x40]
add dl, byte [ecx + esi]
and dl, 0xff
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x651d2c
jmp 0x651e6d
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x651e6d
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, dword [ebx + 0x24]
mov ecx, esi
dec ecx
cmp edx, ecx
jbe 0x651d93
xor edx, edx
mov dword [esp + 4], edx
jmp 0x651da8
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov ebp, dword [ebx + edx*4 + 0x40]
movzx edx, byte [ebp + esi]
add eax, dword [esp + 4]
sar eax, 1
jns 0x651dc0
adc eax, 0
add dl, al
and dl, 0xff
mov byte [ebp + esi], dl
inc esi
dec edi
jne 0x651d70
jmp 0x651e6d
xor eax, eax
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 8], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x651e6d
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, dword [ebx + 0x24]
mov ecx, esi
dec ecx
cmp edx, ecx
ja 0x651e39
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 8], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 8]
push eax
movzx eax, byte [esp + 8]
pop edx
call fcn.0064ec94
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [esp]
and al, 0xff
mov byte [edx + esi], al
inc esi
dec edi
jne 0x651dee
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x66c228
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409dec
mov eax, dword [ebp - 8]
call fcn.00409dec
xor eax, eax
push ebp
push 0x66c2fc
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x66c26b
sub ecx, 4
mov ecx, dword [ecx]
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x66c277
sub ebx, 4
mov ebx, dword [ebx]
mov eax, ecx
cdq
idiv ebx
test eax, eax
jl 0x66c291
inc eax
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.0040ab88
dec ebx
jne 0x66c283
mov eax, dword [ebp - 4]
test eax, eax
je 0x66c29d
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
test ebx, ebx
jle 0x66c2d9
mov esi, 1
mov eax, dword [ebp - 4]
movzx eax, word [eax + esi*2 - 2]
mov edx, dword [ebp - 0xc]
movzx edx, word [edx + esi*2 - 2]
xor ax, dx
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x14]
movzx edx, word [ebp - 0xe]
call fcn.0040a99c
mov edx, dword [ebp - 0x14]
mov eax, edi
call fcn.0040ab88
inc esi
dec ebx
jne 0x66c2a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66c303
lea eax, [ebp - 0x14]
call fcn.00409d08
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00409d68
ret
Function at 0x66d0e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00409dec
xor eax, eax
push ebp
push 0x66d242
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x6f8a10]
mov eax, dword [eax]
push eax
push 0
push 0x1fffff
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0xc], eax
mov eax, dword [0x6f8d3c]
mov eax, dword [eax]
sub eax, 1
jb 0x66d12a
je 0x66d12e
jmp 0x66d137
xor ebx, ebx
jmp 0x66d137
mov eax, dword [0x6f85a0]
mov eax, dword [eax]
mov ebx, eax
mov eax, dword [0x6f8888]
mov eax, dword [eax + esi*4 - 4]
mov edx, 0x66d260
call fcn.0040ad18
je 0x66d166
mov eax, dword [0x6f8888]
mov eax, dword [eax + esi*4 - 4]
mov edx, dword [0x6f8a10]
mov edx, dword [edx]
call fcn.0066ca40
xor edx, edx
mov ebx, eax
mov eax, dword [ebp - 4]
mov edx, 0x66d294
call fcn.0040ad18
jne 0x66d180
mov eax, dword [0x6f8b48]
mov eax, dword [eax + esi*8 - 8]
mov ebx, eax
mov eax, dword [ebp - 4]
mov edx, 0x66d2d8
call fcn.0040ad18
jne 0x66d1a7
mov edx, dword [0x6f8a10]
mov edx, dword [edx]
mov eax, dword [0x6f8b2c]
mov eax, dword [eax]
call fcn.0066ca40
xor edx, edx
mov ebx, eax
cmp dword [ebp - 0xc], 0
je 0x66d22c
xor eax, eax
push ebp
push 0x66d225
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40
push 0x3000
push 0x200
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov esi, eax
mov ebx, esi
mov eax, dword [0x6f8bf0]
mov eax, dword [eax]
call fcn.0062a320
test ebx, ebx
ja 0x66d1f8
mov eax, ebx
xor edx, edx
mov ecx, dword [0x6f85a0]
cmp edx, dword [ecx + 4]
jne 0x66d1f6
cmp eax, dword [ecx]
jbe 0x66d202
mov dword [ebp - 8], esi
call fcn.004094f8
jmp 0x66d22c
xor eax, eax
mov dword [ebp - 8], eax
call fcn.004094f8
jmp 0x66d22c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66d249
lea eax, [ebp - 4]
call fcn.00409d08
ret
Function at 0x66d328
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00409dec
xor eax, eax
push ebp
push 0x66d4d3
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
mov eax, dword [0x6f8a10]
mov eax, dword [eax]
push eax
push 0
push 0x1fffff
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0xc], eax
mov eax, dword [0x6f8d3c]
mov eax, dword [eax]
sub eax, 1
jb 0x66d375
je 0x66d37e
jmp 0x66d385
mov dword [ebp - 0x10], 0x10000
jmp 0x66d385
mov dword [ebp - 0x10], 0x100000
mov eax, dword [0x6f8888]
mov eax, dword [eax + ebx*4 - 4]
mov edx, 0x66d4f4
call fcn.0040ad18
je 0x66d3b8
mov eax, dword [0x6f8888]
mov eax, dword [eax + ebx*4 - 4]
mov edx, dword [0x6f8a10]
mov edx, dword [edx]
call fcn.0066ca40
xor edx, edx
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 4]
mov edx, 0x66d528
call fcn.0040ad18
jne 0x66d3da
mov eax, dword [0x6f8b48]
mov edx, dword [eax + ebx*8 - 8]
mov dword [ebp + 8], edx
mov edx, dword [eax + ebx*8 - 4]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 4]
mov edx, 0x66d56c
call fcn.0040ad18
jne 0x66d405
mov edx, dword [0x6f8a10]
mov edx, dword [edx]
mov eax, dword [0x6f8b2c]
mov eax, dword [eax]
call fcn.0066ca40
xor edx, edx
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], edx
cmp dword [ebp - 0xc], 0
je 0x66d4bd
xor eax, eax
push ebp
push 0x66d4b6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp edi, 0x1869f
je 0x66d49f
push 0x40
push 0x3000
push 0x200
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov esi, eax
mov ebx, esi
mov eax, dword [0x6f8bf0]
mov eax, dword [eax]
call fcn.0062a320
test ebx, ebx
jbe 0x66d46f
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [0x6f85a0]
mov edx, dword [eax + 4]
mov eax, dword [eax]
cmp edx, dword [esp + 4]
jne 0x66d46b
cmp eax, dword [esp]
pop edx
pop eax
jb 0x66d481
mov eax, dword [ebp - 0x10]
xor edx, edx
add eax, dword [ebp + 8]
adc edx, dword [ebp + 0xc]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], edx
inc edi
test ebx, ebx
ja 0x66d48d
cmp ebx, 0x400000
jbe 0x66d497
mov dword [ebp - 8], esi
call fcn.004094f8
jmp 0x66d4bd
cmp edi, 0x1869f
jne 0x66d425
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66d4bd
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66d4da
lea eax, [ebp - 4]
call fcn.00409d08
ret
Function at 0x66d5bc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xe
push 0
push 0
dec ecx
jne 0x66d5c5
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409dec
mov eax, dword [ebp + 0xc]
call fcn.00409dec
mov eax, dword [ebp + 8]
call fcn.00409dec
xor eax, eax
push ebp
push 0x66d953
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x6f8a10]
mov eax, dword [eax]
push eax
push 0
push 0x1fffff
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0x20], eax
lea edx, [ebp - 8]
mov eax, dword [ebp + 0xc]
call fcn.0066cd34
mov dword [ebp - 0x58], 0x40
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x58]
push eax
push 2
mov eax, dword [ebp + 0x10]
mov esi, eax
push esi
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_VirtualProtectEx
mov eax, dword [ebp - 8]
mov edx, 0x66d970
call fcn.0040ad18
jne 0x66d68c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov eax, dword [ebp - 4]
call fcn.00425508
cdq
push edx
push eax
mov eax, dword [ebp + 8]
call fcn.0066e2b0
mov bl, 1
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x54]
push eax
push 2
push esi
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_VirtualProtectEx
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x66d91e
xor eax, eax
push ebp
push 0x66d6d7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.00409d08
mov eax, dword [ebp - 0x1c]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x10]
mov eax, 8
call fcn.004254c8
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.0040a130
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66d6de
lea eax, [ebp - 0x10]
call fcn.00409d08
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66d95a
lea eax, [ebp - 0x78]
mov edx, 6
call fcn.00409d68
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00409d68
lea eax, [ebp + 8]
mov edx, 2
call fcn.00409d68
ret

Function at 0x66e1fc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov ecx, edx
test ecx, ecx
js 0x66e215
shr ecx, 2
mov ebx, dword [eax + ecx*4]
dec ecx
push ebx
jns 0x66e20e
mov eax, esp
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [0x6f8a10]
mov eax, dword [eax]
push eax
push 0
push 0x1fffff
call sub.kernel32.dll_OpenProcess
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push 0x40
lea eax, [esi + 1]
push eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
add eax, dword [ebp + 8]
adc edx, dword [ebp + 0xc]
mov edi, eax
push edi
push ebx
call sub.kernel32.dll_VirtualProtectEx
lea eax, [ebp - 8]
push eax
lea eax, [esi + 1]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
push ebx
call sub.kernel32.dll_WriteProcessMemory
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
inc esi
push esi
push edi
push ebx
call sub.kernel32.dll_VirtualProtectEx
push ebx
call sub.kernel32.dll_CloseHandle
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 0x10