joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b7fd0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
cmp byte [0x54a17c], 0
push ebp
mov ebp, dword [esp + 0x10]
je 0x4b806b
push ebx
mov ebx, dword [esp + 0x10]
imul ebx, ebp
push edi
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x4b8069
push esi
movsx eax, byte [edi]
mov esi, dword [0x5887a8]
xor eax, esi
and eax, 0xff
mov ecx, dword [0x5887b0]
shr esi, 8
xor esi, dword [eax*4 + 0x5883a8]
mov edx, ecx
mov eax, esi
mov dword [0x5887a8], eax
movzx eax, al
add eax, dword [0x5887ac]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x5887ac], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x5883a8]
or edx, 2
mov dword [0x5887b0], ecx
mov ecx, edx
xor ecx, 1
imul ecx, edx
shr ecx, 8
xor byte [edi], cl
inc edi
sub ebx, 1
jne 0x4b7ff4
pop esi
pop edi
pop ebx
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0
push ebp
push edx
push eax
call fcn.0043f040
pop ebp
ret 0xc
Function at 0x4bba60
Capabilities:
Read file on windows

Disassembly:
push ecx
push eax
push 4
lea ecx, [esp + 8]
push 1
push ecx
call fcn.004c4965
add esp, 0x10
cmp eax, 4
je 0x4bba7e
xor eax, eax
pop ecx
ret 4
mov ecx, dword [esp + 8]
lea edx, [esp]
xor eax, eax
sub ecx, edx
lea esp, [esp]
lea edx, [ecx + eax]
mov dl, byte [esp + edx]
cmp dl, byte [esp + eax]
jne 0x4bbaa1
inc eax
cmp eax, 4
jl 0x4bba90
xor ecx, ecx
cmp eax, 4
sete cl
mov eax, ecx
pop ecx
ret 4
Function at 0x4c1050
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c107d
test al, 0x10
jne 0x4c1074
and eax, 0xffffffdf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4c107d
mov eax, 1
pop esi
ret 4
push esi
push 0x4bf
call fcn.00475570
push eax
mov eax, dword [0x51ef64]
push eax
call fcn.004ad680
add esp, 0xc
xor eax, eax
pop esi
ret 4

Function at 0x4c1302
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4eb0b4]
jne 0x4c130c
repz ret
jmp fcn.004c6613

Function at 0x4cfa4f
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.004c7546
and dword [ebp - 4], 0
cmp dword [0x589a04], 0
mov ebx, eax
jne 0x4cfb00
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4cfbb1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4cfbb1
push eax
call fcn.004c74d4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x589a04], eax
call esi
push eax
call fcn.004c74d4
mov dword [esp], 0x4e14d4
push edi
mov dword [0x589a08], eax
call esi
push eax
call fcn.004c74d4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x589a0c], eax
call esi
push eax
call fcn.004c74d4
pop ecx
mov dword [0x589a14], eax
test eax, eax
je 0x4cfb00
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004c74d4
pop ecx
mov dword [0x589a10], eax
mov eax, dword [0x589a10]
cmp eax, ebx
je 0x4cfb58
cmp dword [0x589a14], ebx
je 0x4cfb58
push eax
call fcn.004c754f
push dword [0x589a14]
mov esi, eax
call fcn.004c754f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4cfb58
test edi, edi
je 0x4cfb58
call esi
test eax, eax
je 0x4cfb4f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4cfb4f
test byte [ebp - 0xc], 1
jne 0x4cfb58
or dword [ebp + 0x10], 0x200000
jmp 0x4cfb91
mov eax, dword [0x589a08]
cmp eax, ebx
je 0x4cfb91
push eax
call fcn.004c754f
pop ecx
test eax, eax
je 0x4cfb91
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4cfb91
mov eax, dword [0x589a0c]
cmp eax, ebx
je 0x4cfb91
push eax
call fcn.004c754f
pop ecx
test eax, eax
je 0x4cfb91
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x589a04]
call fcn.004c754f
pop ecx
test eax, eax
je 0x4cfbb1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4cfbb3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407ef0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0x10], 0x4f
fadd st(5), st(0)
invalid
Function at 0x401bc3
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push 0x40
push 0x1000
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
nop
nop
jmp 0x401bed
mov esp, ebp
pop ebp
ret 4

Function at 0x403092
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, 0
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
jmp 0x4030cb
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40cf3c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.00476bb0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40cf81
push ebx
call fcn.004740f1
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0xff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
nop
nop
nop
nop
push 0x51d067
push dword [ebp - 4]
mov ecx, 2
call fcn.0040c9a6
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40cfb7
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40cfc8
push ebx
call fcn.004740f1
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x40e6b8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
cmp dword [ebp + 0xc], 0
je 0x40e6e7
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
nop
nop
jmp 0x40e6fe
push 9
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
nop
nop
jmp 0x40e6fe
mov esp, ebp
pop ebp
ret 8
Function at 0x41cf38
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x41cf70
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x41cf5e
mov al, 1
jmp 0x41cfc1
cmp dword [ebx + 0x54], ecx
jne 0x41cf67
mov al, 2
jmp 0x41cfc1
cmp dword [ebx + 0x7c], ecx
jne 0x41cfc1
mov al, 3
jmp 0x41cfc1
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x41cf85
mov al, 4
jmp 0x41cfc1
cmp ecx, 5
jne 0x41cfa5
cmp ebx, 0
jne 0x41cf93
mov al, 5
jmp 0x41cfc1
cmp ebx, 1
jne 0x41cf9c
mov al, 6
jmp 0x41cfc1
cmp ebx, 2
jne 0x41cfa5
mov al, 7
jmp 0x41cfc1
cmp ecx, 6
jne 0x41cfb1
cmp ebx, 0
jne 0x41cfb3
mov al, 8
jmp 0x41cfc1
cmp ebx, 1
jne 0x41cfba
mov al, 9
cmp ebx, 2
jne 0x41cfc1
mov al, 0xa
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41eed4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
nop
nop
nop
mov dword [ebp - 4], eax
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
mov eax, 0
sete al
mov dword [ebp - 8], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
mov eax, dword [ebp - 8]
jmp 0x41ef3e
mov esp, ebp
pop ebp
ret 4
Function at 0x42060c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
nop
nop
mov dword [0x712e63], eax
push 0x70dd27
push dword [0x712e63]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
nop
nop
nop
mov dword [0x712e2b], eax
push str.IsBadWritePtr
push dword [0x712e63]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
nop
nop
nop
mov dword [0x712e67], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
nop
nop
mov dword [0x712e6b], eax
push str.ZwProtectVirtualMemory
push dword [0x712e6b]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
nop
nop
nop
mov dword [0x712e6f], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00476ea0
add esp, 0x10
mov dword [ebp - 4], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
nop
nop
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4206cc
push ebx
call fcn.004740f1
add esp, 4
mov eax, dword [ebp - 8]
mov dword [0x712e73], eax
push str.d3dx9_29.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
nop
nop
nop
nop
mov dword [0x712e77], eax
push str.D3DXMatrixTransformation2D
push dword [0x712e77]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
nop
nop
nop
mov dword [0x712e7b], eax
push 0x49ab37
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
nop
nop
mov dword [0x712e7f], eax
push str.GetAsyncKeyState
push dword [0x712e7f]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
nop
nop
nop
mov dword [ebp - 4], eax
push 5
push dword [ebp - 4]
call fcn.0042074e
mov dword [0x712e83], eax
mov eax, 0
jmp 0x42074a
mov esp, ebp
pop ebp
ret

Function at 0x4479f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x200
call fcn.00401bc3
mov dword [ebp - 4], eax
push 0x200
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
nop
nop
nop
nop
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [0x49ab4c]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.00401055
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x910
call fcn.004767f0
add esp, 0x1c
mov dword [ebp - 0x1c], eax
push 0x70e5a8
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.0040211e
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x447a95
push ebx
call fcn.004740f1
add esp, 4
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
call fcn.00401eeb
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x447abd
push ebx
call fcn.004740f1
add esp, 4
mov eax, dword [ebp - 0x28]
jmp 0x447ac5
mov esp, ebp
pop ebp
ret 4
Function at 0x45ae76
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 8]
push 2
mov ebx, 0xc4
call fcn.00479eb0
add esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x45aeff
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00476bf0
add esp, 0x1c
mov dword [ebp - 4], eax
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 8]
push 2
mov ebx, 0xc4
call fcn.00479eb0
add esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x45af71
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00476bf0
add esp, 0x1c
mov dword [ebp - 4], eax
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 8]
push 2
mov ebx, 0xc4
call fcn.00479eb0
add esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x45afe3
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00476bf0
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x45afeb
mov esp, ebp
pop ebp
ret
Function at 0x463aa1
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push dword [ebp + 8]
call dword [sym.imp.IMM32.dll_ImmGetContext]
nop
nop
nop
nop
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x463bbe
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00476ea0
add esp, 0x10
mov dword [ebp - 0x10], eax
push 0
push dword [ebp - 0x10]
push 0x800
push dword [ebp - 4]
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringA]
nop
nop
nop
nop
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x463b27
push ebx
call fcn.004740f1
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x184
call fcn.00476bb0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x463b60
push ebx
call fcn.004740f1
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x800
push dword [ebp - 4]
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringA]
nop
nop
nop
nop
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
nop
nop
nop
nop
lea eax, [ebp - 0xc]
push eax
call fcn.00463be0
test eax, eax
je 0x463bbe
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x463bb9
push eax
mov ebx, eax
call fcn.004018f3
inc eax
push eax
call fcn.004740eb
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x463bc8
mov eax, 0x49ab77
jmp 0x463bc8
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x463bd9
push ebx
call fcn.004740f1
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x477590
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret

Function at 0x4775b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x477642
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x477634
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x47762c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x4775f5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x477860
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4778c9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00476610
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x479c80
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x479cc1.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x479cc1.2
jmp dword [eax*4 + 0x479d4c]
mov word [esp + 0x48], di
jmp 0x479cfa
mov word [esp + 0x48], 2
jmp 0x479cfa
mov word [esp + 0x48], 3
jmp 0x479cfa
mov word [esp + 0x48], 4
jmp 0x479cfa
mov word [esp + 0x48], 7
jmp 0x479cfa
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x479d44
cmp dword [esp + 0x70], edi
je 0x479d30
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret
Function at 0x47a100
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call fcn.0047b3a0
mov esi, dword [esp + 0x38]
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ebp
test ebx, ebx
je 0x47a250
test ecx, ecx
je 0x47a250
inc ecx
push ecx
call fcn.00487e7e
mov ebp, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, ebp
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0047c8f0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x47a179
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x47a23d
push 0x400
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call fcn.00487e7e
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x47a201
cmp eax, 0xea
jne 0x47a229
push esi
call fcn.00487ea7
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00487e7e
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0x47a1cc
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x47a20f
cmp eax, 2
jne 0x47a229
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
call fcn.0047adc0
add esp, 8
mov dword [esp + 0x10], eax
push esi
call fcn.00487ea7
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.00487ea7
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x47a27e
mov ebp, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x47a28a
mov edx, dword [esp + 0x40]
test edx, edx
je 0x47a28a
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.0047adc0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x47a630
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x47a680
push esi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x47a675
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.0047adc0
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, edi
pop esi
pop edi
ret
mov eax, edi
pop edi
ret
Function at 0x47a690
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebp, ebp
test esi, esi
je 0x47a713
push ebp
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x47a713
push ebx
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x47a706
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebp, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
ret
mov eax, ebp
pop esi
pop ebp
ret

Function at 0x48a849
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48a88b
call fcn.0048dba0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48a88b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48a882
xor eax, eax
jmp 0x48a893
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048a899
pop edi
pop esi
pop ebx
ret 4