joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ca30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x44ca6b
push 0x4998e0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, esi
call fcn.0044c6c0
mov edi, eax
test edi, edi
je 0x44ca6b
inc dword [edi + 0x14]
push 0x4998e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x44ca8f
test esi, esi
je 0x44ca87
push 0x4998e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x44caa4
test esi, esi
jmp 0x44cb9a
mov edx, dword [ebx + 0x50]
mov eax, dword [ebx + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push edx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x44cad9
mov ecx, dword [ebx + 0x50]
push 4
push 0x2000
push ecx
push eax
call esi
mov edi, eax
test edi, edi
je 0x44cb96
push 0x1c
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov edx, dword [ebx + 0x50]
push 0x1000
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [ebx + 0x54]
push 4
push 0x1000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 0x54]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 4], eax
push edx
push ecx
push eax
call fcn.00462f30
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 4]
push esi
push ebx
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], edi
call fcn.0044c700
mov eax, edi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x44cb5d
push eax
mov eax, esi
call fcn.0044c880
add esp, 4
push esi
call fcn.0044c910
add esp, 4
test eax, eax
je 0x44cb8f
push esi
call fcn.0044c7b0
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
add esp, 4
mov ebx, 1
test eax, eax
je 0x44cbb3
add eax, edi
je 0x44cb8f
push 0
push ebx
push edi
call eax
test eax, eax
jne 0x44cbb0
mov eax, esi
call fcn.0044cd00
cmp dword [ebp + 0xc], 0
je 0x44cba7
push 0x4998e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], ebx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x14], ebx
test eax, eax
je 0x44cbe4
push eax
call fcn.0045b42a
add esp, 4
mov edi, esi
mov dword [esi + 0x18], eax
call fcn.0044c5c0
push 0x4998e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x14], ebx
pop ebx
pop edi
mov dword [esi + 0x18], 0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x457a03
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4959d4]
jne 0x457a0d
repz ret
jmp fcn.00460649
Function at 0x45a7ca
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 0x45a7f1
call fcn.0045ad6b
mov dword [eax], esi
call fcn.0045ad58
push 0x16
pop esi
mov dword [eax], esi
call fcn.00461f50
mov eax, esi
jmp 0x45a846
test dword [ebp + 0xc], 0xfffffff9
jne 0x45a7d7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45a81e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045ad7e
pop ecx
call fcn.0045ad58
mov eax, dword [eax]
jmp 0x45a846
test al, 0x10
jne 0x45a844
test al, 1
je 0x45a844
test byte [ebp + 0xc], 2
je 0x45a844
call fcn.0045ad6b
mov dword [eax], 5
call fcn.0045ad58
mov dword [eax], 0xd
jmp 0x45a815
xor eax, eax
pop esi
pop ebp
ret

Function at 0x46f0f0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4959d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00462299
and dword [ebp - 0x14], 0
cmp dword [0x498184], 0
mov dword [ebp - 0x18], eax
jne 0x46f1a3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x46f24b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x46f24b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x47da6c
push ebx
mov dword [0x498184], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x498188], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x49818c], eax
call edi
push eax
call esi
mov dword [0x498194], eax
test eax, eax
je 0x46f1a3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x498190], eax
mov eax, dword [0x498190]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x46f1fc
cmp dword [0x498194], ecx
je 0x46f1fc
push eax
call esi
push dword [0x498194]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x46f1fc
test ebx, ebx
je 0x46f1fc
call edi
test eax, eax
je 0x46f1f3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x46f1f3
test byte [ebp - 8], 1
jne 0x46f1fc
or dword [ebp + 0x10], 0x200000
jmp 0x46f22f
mov eax, dword [0x498188]
cmp eax, dword [ebp - 0x18]
je 0x46f22f
push eax
call esi
test eax, eax
je 0x46f22f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x46f22f
mov eax, dword [0x49818c]
cmp eax, dword [ebp - 0x18]
je 0x46f22f
push eax
call esi
test eax, eax
je 0x46f22f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x498184]
call esi
test eax, eax
je 0x46f24b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x46f24d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00457a03
leave
ret
Function at 0x403354
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00405884
test esi, esi
jne 0x40338c
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004059c0
jmp 0x4033aa
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403298
mov edi, eax
test esi, esi
je 0x4033aa
cmp dword [ebx], 0
je 0x4033aa
dec esi
jmp 0x403393
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4033dc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4f1008], 0x8088405
inc edx
mov dword [ebx + 0x4f1008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403aa4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4f1024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403b3c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403b1c
xor eax, eax
push ebp
push 0x403b15
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403b74
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403b1c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4f1024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4f1024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404cd8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f9054], 0
je 0x404d39
cmp word [0x4f9330], 0xd7b2
jne 0x404d01
cmp dword [0x4f9338], 0
jbe 0x404d01
mov eax, 0x4f932c
call dword [0x4f9348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404d64
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4f1034], 0
jne 0x404d55
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404ed8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4f1038], 0
je 0x404efe
mov edx, esi
mov eax, ebx
call dword [0x4f1038]
jmp 0x404f0d
mov eax, 8
call fcn.00402fe0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4f9055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404ea0
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4096f4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4fbb2c
push 0xa
push 0x409788
mov eax, dword [0x4fbb1c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x409718
call fcn.004131c8
push ebx
mov eax, dword [0x4fbb1c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40972f
call fcn.004131c8
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x409741
call fcn.004131c8
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4fbb30], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4fbb34], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4fbb38], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4fbb3c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4fbb40], ecx
add edx, dword [eax + 0x14]
mov dword [0x4fbb44], edx
pop esi
pop ebx
ret

Function at 0x40b0fc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40b1a5
test eax, edx
je 0x40b1a8
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40b125
push edx
mov edx, eax
mov eax, esp
call fcn.00405aa0
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40b13b
push eax
lea eax, [esp + 8]
call fcn.00405aa0
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40b14a
movzx eax, word [eax]
sub eax, ecx
jmp 0x40b171
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40b18b
add ecx, 4
js 0x40b162
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40b188
push eax
mov eax, ecx
mov edx, 2
call fcn.00404f78
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40b16f
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40b171
xor eax, eax
ret
test eax, eax
je 0x40b1b8
test edx, edx
jne 0x40b10c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405910
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40c0ee
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40c10f
cmp ebx, 3
je 0x40c10f
cmp ebx, 0x7b
je 0x40c10f
mov eax, esi
call fcn.0040c090
test al, al
jne 0x40c113
xor eax, eax
jmp 0x40c115
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405910
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40c131
test al, 0x10
jne 0x40c135
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x410888
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4108c1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004059c0
jmp 0x4108ca
mov eax, ebx
mov edx, esi
call fcn.00405884
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4108d4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4108f6
movzx eax, word [esp]
jmp 0x4108f8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41105c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.00410e94
mov eax, dword [0x4f890c]
cmp byte [eax], 0
je 0x4110ee
mov eax, dword [0x4f8514]
call fcn.004034d8
call fcn.00403148
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call sub.user32.dll_CharToOemW
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x88c]
call fcn.0040c818
push eax
lea eax, [esp + 0x890]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x41113c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x411127
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4f8488]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4fbb1c]
call fcn.00406ea0
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call sub.user32.dll_MessageBoxW
add esp, 0x1084
ret
Function at 0x411d4c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x411e22
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004058d8
lea eax, [ebp - 4]
call fcn.0040619c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405910
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x411e0c
mov eax, ebx
call fcn.00402fe0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x411e05
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405910
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x411def
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x411e34
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x411def
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411e0c
mov eax, dword [ebp - 0x10]
call fcn.00402ffc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411e29
lea eax, [ebp - 4]
call fcn.00405874
ret

Function at 0x412ff7
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00405278
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x41301a
mov eax, edi
add eax, eax
call fcn.00402fe0
mov esi, eax
jmp 0x41301c
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x413055
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x41303f
mov eax, esp
cmp esi, eax
je 0x413062
mov eax, esi
call fcn.00402ffc
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x41309c
cmp bl, 0
je 0x413098
cmp bl, 0x41
jl 0x413093
cmp bl, 0x5a
jg 0x413093
or bl, 0x20
xor al, bl
inc esi
jmp 0x413077
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x412fdc

Function at 0x42b07c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0042ad80
dec esi
jne 0x42b09e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x42c25c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4fde5c
cmp dword [edi], 0
jne 0x42c2d8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4fde58]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4f1d98
mov ecx, 2
call fcn.00403198
mov edx, 0x42c234
lea eax, [esi + 5]
call fcn.0042c254
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042c254
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x42c2ad
mov dword [0x4fde58], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x431458
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.00430e5c
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00405910
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x4314b7
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4f8760]
mov dl, 1
mov eax, dword [0x430cd4]
call fcn.00411238
call fcn.0040475c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4314c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405910
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x431518
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4f8b34]
mov dl, 1
mov eax, dword [0x430cd4]
call fcn.00411238
call fcn.0040475c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00430e8c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4327b4
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4327ba
ret
Function at 0x4504fc
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x4505ce
push dword fs:[edx]
mov dword fs:[edx], esp
push ebx
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4505a0
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
xor edx, edx
push ebp
push 0x45058f
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov eax, edi
mov ecx, ebx
call fcn.00403198
mov eax, dword [ebp - 4]
call fcn.004503e0
mov eax, dword [ebp - 8]
push eax
movzx eax, si
push eax
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450596
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret

Function at 0x45066c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x450714
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x4506e7
mov edx, ebx
mov eax, dword [0x432168]
call fcn.004370fc
test al, al
je 0x4506d7
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
mov edi, eax
push edi
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00437014
call fcn.00404850
jmp 0x45071b
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x45069f
mov ecx, dword [0x4f8474]
mov dl, 1
mov eax, dword [0x450328]
call fcn.004111fc
call fcn.0040475c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45071b
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x450724
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x450780
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
mov edi, eax
push edi
mov ecx, esi
mov dx, 2
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450787
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret