joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ab790
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54c566
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
mov eax, 0xa
push edi
mov dword [esp + 0x18], esi
mov dword [esi + 8], 0x581830
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], eax
mov dword [esp + 0x24], ebx
mov dword [esi + 0x24], 0x58181c
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], 0x11
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], eax
mov al, byte [esp + 0x13]
mov cl, byte [esp + 0x13]
push 0x14
mov byte [esp + 0x28], 1
mov byte [esi + 0x40], al
mov byte [esi + 0x41], cl
mov byte [esi + 0x48], bl
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
lea ecx, [esp + 0x14]
mov ebp, edi
mov dword [edi + 4], ebx
mov dword [edi + 0x10], 1
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
cmp dword [0x63e590], ebx
jne 0x4ab846
mov dword [0x63e590], edi
mov dword [edi], ebx
mov edx, dword [0x63e590]
xor ebp, ebp
mov dword [edx + 8], ebx
mov ecx, dword [0x63e58c]
inc ecx
mov dword [0x63e58c], ecx
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
cmp ebp, ebx
je 0x4ab86a
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edi, dword [0x63e590]
push 0x14
call sub.MFC42.DLL_operatornew
mov dword [eax + 4], edi
mov dword [eax + 0x10], ebx
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x44], eax
mov dword [esi + 0x4c], ebx
mov dword [eax], eax
mov eax, dword [esi + 0x44]
add esp, 4
mov dword [eax + 8], eax
mov dword [esi], 0x581818
mov dword [esi + 4], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x4ac430
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x12
call esi
mov bx, word [esp + 0xc]
mov cl, bl
sar eax, 0xf
shr cl, 2
and eax, 1
and ecx, 1
xor eax, ecx
test ax, ax
je 0x4ac45b
pop esi
xor eax, eax
pop ebx
ret
push 0x11
call esi
mov dl, bl
sar eax, 0xf
shr dl, 1
and eax, 1
and edx, 1
xor eax, edx
test ax, ax
je 0x4ac478
pop esi
xor eax, eax
pop ebx
ret
push 0x10
call esi
sar eax, 0xf
and eax, 0xffff
and ebx, 0xffff
not eax
xor eax, ebx
pop esi
and eax, 1
pop ebx
ret

Function at 0x4ac5a0
Capabilities:
Set global application hook

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
je 0x4ac5e9
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.USER32.dll_SetWindowsHookExA]
push eax
push 0x4ac4e0
push 0
call esi
mov dword [0x63e580], eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4ac608
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x4ac4a0
push 3
call esi
mov dword [0x63e57c], eax
pop esi
ret
mov eax, dword [0x63e580]
mov esi, dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
push eax
call esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4ac608
mov ecx, dword [0x63e57c]
push ecx
call esi
pop esi
ret

Function at 0x4ae950
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [esi + 4]
push 1
push eax
call edi
mov ecx, dword [esi + 4]
push 2
push ecx
mov dword [esi + 0x18], eax
call edi
mov edx, dword [esi + 4]
push 4
push edx
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
push 5
push eax
call edi
mov ecx, dword [esi + 4]
push 6
push ecx
mov dword [esi + 0x24], eax
call edi
mov edx, dword [esi + 4]
push 7
push edx
mov dword [esi + 0x28], eax
call edi
mov dword [esi + 0x34], eax
mov eax, dword [esi + 4]
push 9
push eax
call edi
mov ecx, dword [esi + 4]
push 0xa
push ecx
mov dword [esi + 0x2c], eax
call edi
mov dword [esi + 0x30], eax
pop edi
pop esi
ret
Function at 0x4af670
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ebp, dword [esp + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
call ebx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
push 2
push ecx
push edx
call fcn.0050e560
push 0
push 0x3e8
push edx
push eax
call fcn.0050e4b0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x20], edx
call esi
push 0
call edi
lea ecx, [esp + 0x20]
push ecx
call esi
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub ecx, eax
mov eax, dword [esp + 0x24]
sbb eax, edx
mov edx, dword [esp + 0x1c]
cmp eax, edx
jl 0x4af6d6
jg 0x4af705
cmp ecx, dword [esp + 0x18]
jb 0x4af6d6
lea edx, [esp + 0x10]
push 1
push edx
push 0x64
call fcn.004a8f00
mov ecx, eax
call fcn.004a9ec0
test dword [esp + 0x10], ebp
je 0x4af735
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [esp + 0x14]
cmp eax, 0x7d0
jb 0x4af69f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x4b0f80
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
mov dword [esp + 0x14], ecx
push edi
xor ebp, ebp
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x40]
mov dword [esp + 0x3c], ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [esp + 0x44]
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x48]
cmp esi, eax
mov dword [esp + 0x1c], eax
jae 0x4b1106
jmp 0x4b0fd8
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push 0x1c
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4b1106
cmp dword [esp + 0x30], 0x1000
jne 0x4b10eb
test byte [esp + 0x34], 1
jne 0x4b10eb
mov edx, dword [esp + 0x2c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4b1106
mov ecx, dword [esp + 0x2c]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
push 0x40
push ecx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esp + 0x2c]
mov edi, ebx
mov edx, ecx
lea eax, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
mov eax, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x64]
push ebp
push esi
push ecx
push edi
push ebx
call fcn.004b1810
mov ebp, eax
add esp, 0x14
cmp ebp, 0xffffffff
je 0x4b10db
mov edx, dword [esp + 0x10]
lea eax, [edx + ebp]
cmp eax, edi
je 0x4b10bc
mov ecx, dword [esp + 0x18]
push 5
push esi
push eax
call fcn.004b0d20
add ebp, esi
cmp ebp, 0xffffffff
je 0x4b10db
mov eax, dword [esp + 0x2c]
push ebp
push esi
push eax
push edi
push ebx
call fcn.004b1810
mov ebp, eax
add esp, 0x14
cmp ebp, 0xffffffff
jne 0x4b10a4
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
lea eax, [edx + ecx]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x4b0fd4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 8
Function at 0x4b1110
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
xor esi, esi
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x44]
mov dword [esp + 0x40], esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [esp + 0x48]
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], esi
xor ebp, ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x18], ebx
cmp ebx, eax
mov dword [esp + 0x20], eax
jae 0x4b12d6
jmp 0x4b1166
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push 0x1c
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4b12d6
cmp dword [esp + 0x34], 0x1000
jne 0x4b12bb
test byte [esp + 0x38], 1
jne 0x4b12bb
mov edx, dword [esp + 0x30]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, esi
mov dword [esp + 0x10], edi
je 0x4b12d6
mov ecx, dword [esp + 0x30]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x14]
push eax
push 0x40
push ecx
push ebx
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x10]
mov edx, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esp + 0x70]
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x10]
push ebp
push esi
push eax
push edi
push ecx
call fcn.004b1810
mov ebp, eax
add esp, 0x14
cmp ebp, 0xffffffff
je 0x4b12a5
jmp 0x4b1239
mov ebx, dword [esp + 0x18]
add ebx, ebp
cmp ebx, edi
je 0x4b1282
lea edx, [esp + 0x1c]
push edx
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, esi
mov esi, dword [esp + 0x6c]
mov eax, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x1c]
mov ecx, eax
mov eax, dword [esp + 0x70]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x70]
add ebp, esi
cmp ebp, 0xffffffff
je 0x4b12a5
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
push ebp
push esi
push ecx
push edi
push edx
call fcn.004b1810
mov ebp, eax
add esp, 0x14
cmp ebp, 0xffffffff
jne 0x4b1235
mov eax, dword [esp + 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
lea eax, [edx + ecx]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x4b1162
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 0xc
Function at 0x4b2060
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 4], eax
lea edi, [ecx + ecx + 2]
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4b2099
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push ebx
push esi
call dword [sym.imp.MSVCRT.dll_mbstowcs]
push esi
call dword [sym.imp.MSVCRT.dll__wcslwr]
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp + 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmp ecx, 1
mov eax, dword [eax + 0xc]
lea edx, [eax + 0xc]
mov dword [ebp + 8], edx
jne 0x4b20da
mov ebx, dword [edx]
mov dword [ebp + 8], edx
jmp 0x4b2100
cmp ecx, 2
jne 0x4b20eb
add eax, 0x14
mov edx, eax
mov dword [ebp + 8], eax
mov ebx, dword [edx]
jmp 0x4b2100
cmp ecx, 3
jne 0x4b20f6
add eax, 0x1c
mov dword [ebp + 8], eax
mov edx, dword [ebp + 8]
mov ebx, dword [edx]
jmp 0x4b2100
mov ecx, dword [ebp + 0xc]
mov esi, ebx
lea eax, [ecx*8]
sub esi, eax
mov ecx, 0x12
add esi, 8
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x250]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea edx, [ebp - 0x250]
push edx
call dword [sym.imp.MSVCRT.dll__wcslwr]
mov ecx, dword [ebp - 8]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 0x14
test eax, eax
je 0x4b215e
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [ebp - 4], 1
mov dword [edx], eax
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [ecx + 4], edx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x50]
cmp eax, 1
je 0x4b217b
cmp eax, 2
jne 0x4b2173
mov ebx, dword [ebp - 0x48]
jmp 0x4b217b
cmp eax, 3
jne 0x4b217b
mov ebx, dword [ebp - 0x40]
cmp ebx, dword [ebp + 8]
jne 0x4b20fd
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b2c20
Capabilities:
Allocate or change rwx memory
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5818b8
push 0x450af0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x44], edi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x38], esi
cmp esi, 0xffffffff
je 0x4b2d63
push ebx
push ebx
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4b2d63
push ebx
push ebx
push ebx
push 4
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x4b2d63
mov dword [ebp - 0x2c], ebx
cmp word [ebx], 0x5a4d
jne 0x4b2d63
mov esi, dword [ebx + 0x3c]
add esi, ebx
mov dword [ebp - 0x34], esi
cmp dword [esi], 0x4550
jne 0x4b2d60
xor eax, eax
mov ax, word [esi + 6]
mov dword [ebp - 0x24], eax
push 0x40
push 0x1000
mov edx, dword [esi + 0x50]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [edi + 0xc], eax
mov ecx, dword [esi + 0x50]
mov dword [edi + 0x10], ecx
test eax, eax
je 0x4b2d60
lea edx, [esi + 0xf8]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x3c], edx
mov ecx, dword [edx + 0xc]
mov esi, ebx
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [ebp - 0x24]
jae 0x4b2d59
mov ecx, dword [edx + 0x10]
mov esi, dword [edx + 0x14]
add esi, ebx
mov edi, dword [edx + 0xc]
mov eax, dword [ebp - 0x44]
add edi, dword [eax + 0xc]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add edx, 0x28
mov dword [ebp - 0x3c], edx
inc dword [ebp - 0x40]
jmp 0x4b2d27
mov dword [ebp - 0x1c], 1
mov esi, dword [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.004b2d8b
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b3170
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
test ebx, ebx
je 0x4b324e
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4b324e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4b324e
xor esi, esi
lea eax, [esi + ebx]
push eax
call fcn.004afe40
add esi, eax
add esp, 4
cmp esi, 5
jb 0x4b3199
push 0x40
push 0x1000
push 0x400
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebp, eax
test ebp, ebp
je 0x4b324e
push edi
mov ecx, 0x100
mov eax, 0x90909090
mov edi, ebp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push ebx
push ebp
call dword [sym.imp.MSVCRT.dll_memmove]
mov edx, ebx
mov byte [esi + ebp], 0xe9
sub edx, ebp
mov ecx, esi
sub edx, 5
mov eax, 0x90909090
mov dword [esi + ebp + 1], edx
mov edx, ecx
mov edi, ebx
add esp, 0xc
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sub eax, ebx
mov byte [ebx], 0xe9
sub eax, 5
mov dword [ebx + 1], eax
lea eax, [esp + 0x14]
push eax
push ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esp + 0x1c]
pop edi
mov dword [eax], esi
mov dword [eax + 4], ebp
pop esi
pop ebp
mov eax, 1
pop ebx
ret
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x4b3790
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54cb18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42.DLL_CDC::FromHandle
mov ecx, dword [ebp + 0x20]
lea edi, [ebp + 0x8c]
push edi
push ecx
mov esi, eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebp + 0x94]
xor ebx, ebx
Function at 0x4b72b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54ce70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ecx
lea ecx, [esp + 0x3c]
mov eax, esp
mov dword [esp + 4], esp
lea edx, [esp + 0x2c]
push ecx
push edx
push eax
mov dword [esp + 0x2c], 5
call sub.MFC42.DLL_operator_1
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0xc], esp
push eax
mov byte [esp + 0x28], 6
call sub.MFC42.DLL_CString::CString_3
mov byte [esp + 0x24], 5
call fcn.004b80a0
mov ecx, eax
call fcn.004b8ab0
push ecx
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 8], esp
push edx
call sub.MFC42.DLL_CString::CString_3
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 8], esp
push eax
mov byte [esp + 0x28], 8
call sub.MFC42.DLL_CString::CString_3
push ecx
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
mov byte [esp + 0x2c], 9
call sub.MFC42.DLL_CString::CString_3
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov byte [esp + 0x30], 0xa
call sub.MFC42.DLL_CString::CString_3
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x34], 0xb
call sub.MFC42.DLL_CString::CString_3
mov byte [esp + 0x30], 5
call fcn.004b7900
add esp, 0x14
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x1c], 1
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x4b7d30
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4b7d92
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x4b7da0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4b7e94
lea ecx, [esp + 0x10]
push ecx
push str..htm
push closesocket
mov ecx, edi
call fcn.004b7d30
test eax, eax
jne 0x4b7e94
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push closesocket
mov ecx, edi
call fcn.004b7d30
test eax, eax
jne 0x4b7e94
lea edx, [esp + 0x10]
push str.__1_
push edx
call dword [sym.imp.MSVCRT.dll__mbsstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4b7e65
lea eax, [esp + 0x10]
push 0x5f0420
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4b7e65
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x4b7e68
mov byte [esi], 0
push 0x5ef9d4
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x4ba320
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push edi
push 0x14
call sub.MFC42.DLL_operatornew
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x4ba348
mov dword [eax], 0x58204c
mov dword [eax + 4], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 8], ebx
mov edi, eax
jmp 0x4ba34a
xor edi, edi
push edi
push 0x4ba3b0
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
je 0x4ba39f
cmp dword [edi + 8], ebx
jle 0x4ba392
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov eax, dword [edi + 4]
lea ecx, [esp + 0x14]
push ecx
mov esi, dword [eax + ebx*4]
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [esp + 0x14], ebp
jne 0x4ba386
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 8]
inc ebx
cmp ebx, eax
jl 0x4ba365
pop esi
xor ebx, ebx
pop ebp
cmp edi, ebx
je 0x4ba39f
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
pop edi
pop ebx
ret 4