joyce8/EMBER2024-capa huggingface dataset:
Function at 0x487a28
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 0x487bd5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x487bb6
mov dl, 1
mov eax, dword [0x4227bc]
call fcn.004281dc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
xor edx, edx
call fcn.00406070
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x487ba5
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.004775fc
test al, al
je 0x487b98
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, 0x487be4
lea eax, [ebp - 0x394]
call fcn.0040e6a0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x487b98
xor eax, eax
push ebp
push 0x487b91
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 0x487c54
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x487b7a
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406270
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x487b7a
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406270
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487b98
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x487a9b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.00427fc8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487bdc
lea eax, [ebp - 0x3a0]
call fcn.00406060
ret

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

Disassembly:
push ecx
mov eax, dword [0x5293b4]
cmp byte [eax + 0xa9], 0
jne 0x488686
cmp dword [0x5293cc], 0
jne 0x488646
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x519460]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x5293cc], eax
cmp dword [0x5293c8], 0
jne 0x488661
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x5293c8], eax
cmp dword [0x5293d0], 0
jne 0x488686
push esp
push 0
push 0
mov eax, dword [0x51945c]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5293d0], eax
pop edx
ret
Function at 0x48889c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4888b3
add esp, 0xfffffff0
call fcn.00404290
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0043028c
mov eax, dword [0x522d1c]
cmp byte [eax], 0
jne 0x4888e0
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x523214]
cmp word [eax + 2], 0
jne 0x4888fa
mov eax, dword [0x523214]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0048a55c
mov eax, dword [0x5233e4]
cmp word [eax + 2], 0
jne 0x488914
mov eax, dword [0x5233e4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0048a76c
mov byte [ebx + 0x31], 0
mov dl, 1
mov eax, dword [0x434750]
call fcn.00436550
mov esi, eax
mov dword [ebx + 0x38], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x48abf0
mov dl, 1
mov eax, dword [0x4220b8]
call fcn.00403d7c
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x4220b8]
call fcn.00403d7c
mov dword [ebx + 0xac], eax
xor eax, eax
mov dword [ebx + 0x5c], eax
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x58], 0xff000018
mov dword [ebx + 0x74], 0x1f4
mov byte [ebx + 0x78], 1
xor eax, eax
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x70], 0x9c4
mov byte [ebx + 0x84], 0
mov byte [ebx + 0xa1], 1
mov byte [ebx + 0xb8], 1
mov dl, 1
mov eax, dword [0x435304]
call fcn.0043de20
mov esi, eax
mov dword [ebx + 0x9c], esi
push 0x488af0
mov eax, dword [0x522fdc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0043e224
mov eax, dword [ebx + 0x9c]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x48aea0
mov dl, 1
mov eax, dword [0x4220b8]
call fcn.00403d7c
mov dword [ebx + 0x94], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x522fdc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0040e450
test eax, eax
je 0x488a22
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0040e1e0
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0040e438
test eax, eax
je 0x488a3a
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x88]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00406270
push ebx
push 0x48a1cc
call fcn.0047ef68
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xcc], 0
mov eax, dword [0x522d1c]
cmp byte [eax], 0
jne 0x488a8b
mov eax, ebx
call fcn.00488c64
mov byte [ebx + 0x55], 1
mov byte [ebx + 0x56], 1
mov byte [ebx + 0x57], 1
mov byte [ebx + 0xa2], 1
mov byte [ebx + 0xcd], 0
mov byte [ebx + 0xd8], 0
xor eax, eax
mov dword [ebx + 0xd0], eax
mov byte [ebx + 0xcf], 0
xor eax, eax
mov dword [ebx + 0xa4], eax
mov eax, ebx
call fcn.0048b0c8
mov eax, ebx
call fcn.0048bc8c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x488ae8
call fcn.004042e8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x488f38
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x488fda
cmp dword [ebx + 0x90], 0
jne 0x488fd4
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x488e84
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 8], 0
je 0x488fd4
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 0x488f9a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x8c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x488fd4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x8c]
call fcn.00424e1c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x488fa9
inc dword [ebx + 0x90]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x5293b4]
cmp dword [eax + 0x170], 0
je 0x48935d
test bl, bl
jne 0x4892ab
cmp dword [esi + 0x98], 0
jne 0x4892a0
mov eax, esi
call fcn.0048badc
push eax
push 0x489104
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x40], 0
je 0x489271
mov eax, dword [0x5293b4]
cmp byte [eax + 0xcf], 0
je 0x489271
mov eax, dword [esi + 0xd4]
call fcn.004078c8
mov edi, eax
cmp edi, 0
jl 0x489271
push 0
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x48925a
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4892a0
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00424e1c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x489280
inc dword [esi + 0x98]
jmp 0x48935d
cmp dword [esi + 0x98], 0
jle 0x48935d
dec dword [esi + 0x98]
cmp dword [esi + 0x98], 0
jne 0x48935d
cmp dword [esi + 0x40], 0
je 0x489308
mov eax, dword [0x5293b4]
cmp byte [eax + 0xcf], 0
je 0x489308
mov eax, dword [esi + 0xd4]
call fcn.004078c8
mov edi, eax
cmp edi, 0
jl 0x489308
push 5
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4892f1
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x489337
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00424e1c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x489317
mov eax, dword [esi + 0x94]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd4]
mov ecx, 1
mov edx, dword [0x47e970]
call fcn.00407a88
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x489f18
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x489f83
cmp byte [ebx + 0xcf], 0
jne 0x489f83
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004061ac
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x489f70
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x489f90
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00406070
jmp 0x489f90
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00406070
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x48b29c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x48b30a
mov eax, esi
call fcn.00471ef8
test al, al
je 0x48b30a
mov eax, dword [ebx + 0x80]
call fcn.00471b4c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x48b30a
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x48b2fe
push 0
mov eax, dword [ebx + 0x80]
call fcn.00471b4c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.00469098
jmp 0x48b30a
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.0048b0e8
pop esi
pop ebx
ret

Function at 0x493ca4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
dec ecx
test ecx, ecx
jl 0x493d13
inc ecx
xor ebx, ebx
mov eax, dword [ebp - 0x10]
and eax, 0xff
movzx edx, byte [esi + ebx]
xor eax, edx
mov edx, dword [eax*8 + 0x519a84]
mov eax, dword [eax*8 + 0x519a80]
push edx
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
shrd eax, edx, 8
shr edx, 8
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
inc ebx
dec ecx
jne 0x493cc8
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x493d24
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
dec ecx
test ecx, ecx
jl 0x493d4c
inc ecx
xor ebx, ebx
movzx esi, byte [edx + ebx]
xor esi, eax
and esi, 0xff
mov esi, dword [esi*4 + 0x519680]
shr eax, 8
xor esi, eax
mov eax, esi
inc ebx
dec ecx
jne 0x493d2e
pop esi
pop ebx
ret
Function at 0x498290
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x4982c1
dec al
je 0x4982fc
dec al
je 0x498341
dec al
je 0x4983aa
jmp 0x498434
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x498434
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 0x4982d1
jmp 0x498434
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x498434
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]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x49830c
jmp 0x498434
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x498434
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 ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x498370
xor ebp, ebp
jmp 0x498380
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x498389
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x498351
jmp 0x498434
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x498434
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, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x498403
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + 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 + 4], 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 + 4]
push eax
mov eax, ebp
pop edx
call fcn.00493d50
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4983be
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4a4e9c
Capabilities:
Allocate or change rwx memory
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a503e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [esi + 5], eax
mov byte [esi], 0
xor ecx, ecx
mov edx, 6
mov eax, ebx
call fcn.004a4dc4
test al, al
je 0x4a4f08
mov eax, dword [0x523200]
cmp byte [eax], 0
je 0x4a4ef9
mov ecx, 0x40a3
mov edx, 0x4a5058
mov eax, 0x4a50d4
call fcn.00405418
push 0x4a5118
call sub.kernel32.dll_OutputDebugStringW
jmp 0x4a5023
mov eax, ebx
call fcn.004a4a3c
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 5
push esi
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x4a5023
mov byte [ebp - 0xd], 0xe9
sub edi, ebx
sub edi, 5
mov dword [ebp - 0xc], edi
movzx eax, byte [esi]
cmp al, byte [ebp - 0xd]
jne 0x4a4fd8
push 0x4a5140
call sub.kernel32.dll_OutputDebugStringW
movzx eax, byte [esi]
mov byte [ebp - 0xd], al
mov byte [esi], 0
xor edi, edi
xor eax, eax
mov dword [ebp - 0x14], eax
cmp byte [ebp - 0xd], 0xe9
jne 0x4a4f82
mov edi, ebx
add edi, 5
add edi, dword [esi + 1]
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push edi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_ReadProcessMemory
lea eax, [ebp - 0x1c]
push eax
movzx eax, byte [ebp - 0xd]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x2c], edi
mov byte [ebp - 0x28], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x34]
mov ecx, 2
mov eax, 0x4a517c
call fcn.0040e728
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 0x4a51b4
call fcn.00406544
mov eax, dword [ebp - 0x18]
mov ecx, 0x40ca
mov edx, 0x4a5058
call fcn.00405418
jmp 0x4a5023
mov dword [esi + 5], ebx
lea eax, [ebp - 0x14]
push eax
push 0x40
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
lea eax, [ebp - 4]
push eax
push 5
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_WriteProcessMemory
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
test esi, esi
je 0x4a5023
push 5
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5045
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00406068
ret
Function at 0x4a51f0
Capabilities:
Allocate or change rwx memory
Print debug messages

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
cmp byte [esi], 0
je 0x4a529c
test ebx, ebx
je 0x4a529c
xor ecx, ecx
mov edx, 6
mov eax, ebx
call fcn.004a4dc4
test al, al
je 0x4a5247
mov eax, dword [0x523200]
cmp byte [eax], 0
je 0x4a523b
mov ecx, 0x40e9
mov edx, 0x4a52b0
mov eax, 0x4a532c
call fcn.00405418
push 0x4a5370
call sub.kernel32.dll_OutputDebugStringW
jmp 0x4a529c
mov eax, ebx
call fcn.004a4a3c
mov ebx, eax
test ebx, ebx
je 0x4a529c
lea eax, [esp + 4]
push eax
push 0x40
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
push esp
push 5
push esi
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_WriteProcessMemory
mov edi, eax
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 8]
push eax
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
test edi, edi
je 0x4a5299
push 5
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
mov byte [esi], 0
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4aac70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4aacdf
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0x14]
mov ecx, 1
mov eax, 0x4aacf8
call fcn.0040e728
mov eax, dword [ebp - 4]
call fcn.004060fc
push eax
call sub.kernel32.dll_OutputDebugStringW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aace6
lea eax, [ebp - 4]
call fcn.00406060
ret

Function at 0x4aae14
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4aae71
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x4aae88
call fcn.0040e728
mov eax, dword [ebp - 4]
call fcn.004060fc
push eax
call sub.kernel32.dll_OutputDebugStringW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aae78
lea eax, [ebp - 4]
call fcn.00406060
ret
Function at 0x4aaf38
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4ab1ca
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x529404], 0
je 0x4ab1af
mov ebx, dword [0x529404]
call fcn.00404348
mov eax, ebx
call fcn.00404668
or edx, 0xffffffff
call fcn.004043f4
xor eax, eax
push ebp
push 0x4ab1a8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x529404]
mov edx, dword [eax + 0x30]
mov dword [ebp - 8], edx
mov edx, dword [eax + 0x34]
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x4ab0ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x529404]
xor edx, edx
mov dword [eax + 0x38], edx
mov eax, dword [0x529404]
mov edx, dword [0x48f910]
mov dword [eax + 0x34], edx
mov dword [eax + 0x30], 0x4a0414
mov eax, dword [0x529404]
call fcn.004a9c58
mov eax, dword [0x529404]
mov edx, dword [ebp - 8]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x34], edx
mov eax, dword [0x529404]
mov ebx, dword [eax + 0x38]
cmp byte [0x52944c], 0
je 0x4ab042
test ebx, ebx
je 0x4ab042
xor edi, edi
test ebx, ebx
je 0x4ab042
cmp dword [ebx + 4], 0xfffffffe
jne 0x4ab03b
inc edi
push 0x4ab1e4
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.0040d06c
push dword [ebp - 0x14]
push 0x4ab224
push dword [ebx]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00406628
mov eax, dword [ebp - 0x10]
call fcn.004060fc
push eax
call sub.kernel32.dll_OutputDebugStringW
mov ebx, dword [ebx + 0x18]
test ebx, ebx
jne 0x4ab000
mov eax, dword [0x529404]
mov ebx, dword [eax + 0x38]
test ebx, ebx
je 0x4ab084
mov esi, dword [ebx + 0x18]
xor eax, eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 4], 0xfffffffe
mov dword [ebx + 8], 0xe6
mov dword [ebx + 0xc], 0xe6
mov byte [ebx + 0x14], 0
mov edx, dword [ebx + 0x10]
mov ecx, ebx
mov eax, dword [0x529404]
call fcn.004a9f14
mov ebx, esi
test ebx, ebx
jne 0x4ab04e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ab0b4
mov eax, dword [0x529404]
xor edx, edx
mov dword [eax + 0x38], edx
mov eax, dword [0x529404]
mov edx, dword [ebp - 8]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x34], edx
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ab1d1
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406068
ret

Function at 0x4c5f84
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.0040366c
ret