joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466c54
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x466c5c
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x466e4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x466e64
mov eax, esi
call fcn.00464ae0
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004049d4
lea ecx, [ebp - 0x10]
mov edx, 0x466e78
mov eax, esi
call fcn.00464ae0
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004049d4
lea ecx, [ebp - 0x14]
mov edx, 0x466e90
mov eax, esi
call fcn.00464ae0
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004049d4
lea ecx, [ebp - 0x18]
mov edx, 0x466eac
mov eax, esi
call fcn.00464ae0
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004049d4
lea ecx, [ebp - 0x1c]
mov edx, 0x466ec8
mov eax, esi
call fcn.00464ae0
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004049d4
lea ecx, [ebp - 0x24]
mov edx, 0x466ee0
mov eax, esi
call fcn.00464ae0
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408878
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408c58
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x466ef8
mov eax, esi
call fcn.00464ae0
mov eax, dword [ebp - 0x28]
call fcn.00454c88
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x466f08
mov eax, esi
call fcn.00464ae0
mov eax, dword [ebp - 0x2c]
call fcn.00454c88
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x466f20
mov eax, esi
call fcn.00464ae0
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408c58
inc eax
je 0x466df1
lea ecx, [ebp - 0x34]
mov edx, 0x466f20
mov eax, esi
call fcn.00464ae0
mov eax, dword [ebp - 0x34]
call fcn.00408c1c
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a220
fstp qword [ebp - 0x3c]
wait
call fcn.0040a584
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x466e0c
lea ecx, [ebp - 0x40]
mov edx, 0x466f20
mov eax, esi
call fcn.00464ae0
mov eax, dword [ebp - 0x40]
call fcn.00454c88
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x466f30
mov eax, esi
call fcn.00464ae0
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004049d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466e55
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004049a4
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.004049a4
ret
Function at 0x46dba8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x46dc02
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0046db98
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004538d8
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004534d8
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46dc09
lea eax, [ebp - 4]
call fcn.00404980
ret

Function at 0x4721ec
Capabilities:
Create process on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4723b1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call fcn.004721b0
mov eax, 0x477f00
mov edx, 0x4723c8
call fcn.004049d4
mov eax, 0x477f04
mov edx, 0x4723e4
call fcn.004049d4
xor eax, eax
push ebp
push 0x47227c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov ecx, dword [0x477f04]
mov edx, dword [0x477f00]
call fcn.00404c8c
mov edx, dword [ebp - 4]
xor ecx, ecx
mov eax, dword [0x477f34]
call fcn.00427f44
mov edx, 0x47241c
mov eax, dword [0x477f34]
call fcn.0042814c
test al, al
je 0x472272
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x472288
call fcn.004721d4
mov eax, dword [0x477f14]
call fcn.00408fc8
test al, al
je 0x4722a3
test bl, bl
jne 0x472377
xor eax, eax
push ebp
push 0x472368
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [0x477f14]
call fcn.00404e40
push eax
lea edx, [ebp - 8]
xor eax, eax
call fcn.00402a44
mov eax, dword [ebp - 8]
call fcn.00404e40
push eax
call sub.user32.dll_GetForegroundWindow
call fcn.004721b0
push 0
push 0
push 0x472434
push dword [0x477f00]
push dword [0x477f04]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404d00
mov eax, dword [ebp - 0xc]
call fcn.00404e40
push eax
push 0x472454
push 0x472458
push 0
call sub.shell32.dll_ShellExecuteA
push 0x12c
call fcn.0040d7c8
lea eax, [ebp - 0x10]
mov ecx, dword [0x477f04]
mov edx, dword [0x477f00]
call fcn.00404c8c
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov eax, dword [0x477f34]
call fcn.00427f44
mov ecx, dword [0x477f14]
mov edx, 0x47241c
mov eax, dword [0x477f34]
call fcn.004280b8
call fcn.004721d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x472372
call fcn.0040480c
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.00402a44
mov eax, dword [ebp - 0x14]
mov edx, dword [0x477f14]
call fcn.00404d8c
je 0x472396
call fcn.0040480c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4723b8
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004049a4
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x403203
pop dword [ebp - 0x28]
mov eax, 0x403203
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x8f95561b
add dword [ebp - 0x38], 0xbebcef30
mov dword [ebp - 0x34], 0xd3a5280e
add dword [ebp - 0x34], 0x5e8e2437
mov dword [ebp - 0x30], 0xaa36edcc
sub dword [ebp - 0x30], 0x5deaa99e
mov dword [ebp - 0x2c], 0xb6b81fbe
sub dword [ebp - 0x2c], 0xb6b81fbe
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x6d6caa9f
add dword [ebp - 0x38], 0x705beb7
mov dword [ebp - 0x34], 0x25253230
sub dword [ebp - 0x34], 0xe3b8d0bb
mov dword [ebp - 0x30], 0x4d5be7b7
sub dword [ebp - 0x30], 0xe9ec7b4b
mov dword [ebp - 0x2c], 0xe7dda34f
sub dword [ebp - 0x2c], 0xe7dda34f
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x37691
push 0
call eax
mov ecx, 0x8510c597
add ecx, 0x7aef85ad
xor ebx, ebx
add ebx, eax
mov edx, 0x411000
add edx, dword [ebp - 0x28]
mov edi, 0x110f359c
sub edi, 0x3f9defe5
xor dword [ebp - 0x1c], edi
mov esi, dword [edx]
mov dword [ebp - 0x18], 0xfa665b4a
sub esi, edi
sub dword [ebp - 0x10], edx
mov dword [ebx], esi
mov dword [ebp - 0x1c], 0x491a8719
add ebx, 0xd9f46b5
add ebx, 0xf260b94f
add edx, 4
loop 0x403312
add eax, 0x11fe3
mov ebx, eax
add eax, 5
mov ecx, 0x485484be
add ecx, 0xb7eb7b42
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x402ab0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x328
mov ecx, dword [esp + 0x330]
mov edx, dword [esp + 0x32c]
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402af9
mov eax, dword [esp + 0x348]
pop edi
pop esi
pop ebp
mov dword [eax], 4
xor eax, eax
pop ebx
add esp, 0x328
ret 0x10
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x348]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je sym._SUB_TXTFILE_8_1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [esp + 0x340]
pop ebp
xor eax, eax
pop ebx
mov dword [ecx], 5
add esp, 0x328
ret 0x10

Function at 0x40404d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40a210
cmp edx, dword [eax]
je 0x40406f
add eax, 8
inc ecx
cmp eax, 0x40a2a0
jl 0x404060
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40a210]
jne 0x40419d
mov eax, dword [0x40b358]
cmp eax, 1
je 0x404177
test eax, eax
jne 0x4040a0
cmp dword [0x40a144], 1
je 0x404177
cmp edx, 0xfc
je 0x40419d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4040d7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404870
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004049f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40411a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004049f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4085f8
push edi
call sym.__set_sbh_threshold
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404870
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404880
lea eax, [ebp - 0xa0]
push 0x4085d8
push eax
call fcn.00404880
push dword [esi + 0x40a214]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404880
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405e24
add esp, 0x2c
pop edi
jmp 0x40419d
lea eax, [ebp + 8]
lea esi, [esi + 0x40a214]
push 0
push eax
push dword [esi]
call fcn.004049f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4067e0
Capabilities:
Log keystrokes via application hook

Disassembly:
sub esp, 0x10
push esi
push 0x8001
call dword [sym._SetFocus_4]
mov eax, dword [sym.imp.F1A0RN63.DLL_Ordinal_10000]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov dword [eax + 0x1b9], ecx
mov edx, dword [sym.imp.F1A0RN63.DLL_Ordinal_10000]
mov dword [edx + 0x80], 0x40b22c
mov eax, dword [sym.imp.F1A0RN63.DLL_Ordinal_10000]
add eax, 0xb4
push eax
push esi
call fcn.00406920
add esp, 8
push 0x40a75a
call sub.F1A0RN63.DLL_Ordinal_616
call sub.F1A0RN63.DLL_Ordinal_1412
mov ecx, dword [sym.imp.F1A0RN63.DLL_Ordinal_10000]
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [ecx + 0x8c], esi
jne 0x406863
push esi
call fcn.00407130
test eax, eax
jne 0x406863
push 3
call sub.F1A0RN63.DLL_Ordinal_210
xor eax, eax
pop esi
add esp, 0x10
ret 0x10
mov eax, dword [esp + 0x24]
lea edx, [esp + 4]
push edx
push eax
push esi
call sub.F1A0RN63.DLL_Ordinal_7
test eax, eax
jne 0x40689b
mov ecx, dword [esp + 0xc]
and ecx, 0xffff
push ecx
call sub.F1A0RN63.DLL_Ordinal_203
push eax
call sub.F1A0RN63.DLL_Ordinal_210
call sub.F1A0RN63.DLL_Ordinal_647
xor eax, eax
pop esi
add esp, 0x10
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x406980
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov esi, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x406f00
mov dword [0x40ba50], eax
call esi
call fcn.00407090
push 0
call sub.F1A0RN63.DLL_Ordinal_310
push 0
call esi
mov eax, dword [0x40ba50]
test eax, eax
je 0x4068e3
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov edx, dword [sym.imp.F1A0RN63.DLL_Ordinal_10000]
xor eax, eax
pop esi
mov ax, word [edx + 0x72]
add esp, 0x10
ret 0x10

Function at 0x407160
Capabilities:
Inspect load icon resource

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push str.F1a0dflt
push eax
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], sym.shellmenu.exe__PbMainWndProc
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], eax
call esi
test eax, eax
mov dword [esp + 0x18], eax
jne 0x4071ae
push 0x7f00
push eax
call esi
mov dword [esp + 0x18], eax
push 4
mov dword [esp + 0x20], 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], str.F1A0CLASS
mov dword [esp + 0x20], eax
lea eax, [esp + 4]
push eax
call dword [sym._RegSetValueExA_24]
neg ax
sbb eax, eax
pop esi
neg eax
add esp, 0x28
ret 4
Function at 0x40a9cb
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43700c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push esi
mov esi, ecx
mov dword [esi], 0x43c4e8
mov dword [esp + 8], esi
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x20]
xor ebx, ebx
push 0x43c4f8
mov dword [esp + 0x18], ebx
mov dword [esi + 8], ecx
call fcn.004059e5
add esp, 4
mov dword [esi + 0xc], eax
lea eax, [esi + 0x18]
push eax
mov dword [esi + 0x14], ebx
call dword [0x43a244]
mov dword [esi + 0x30], ebx
push ebx
push ebx
push 1
push ebx
mov byte [esp + 0x24], 3
mov byte [esi + 0x38], bl
call dword [0x43a21c]
mov edx, dword [esi + 0xc]
push esi
push edx
push 0x43c4d8
push 0x43c498
push 0x44a280
mov dword [esi + 0x30], eax
mov dword [esi + 0x10], 4
call fcn.00402bd0
mov ecx, dword [esp + 0x20]
add esp, 0x14
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x41e4f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4382e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
mov esi, ecx
call dword [0x43a308]
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [esp + 0x10], ebx
je 0x41e66b
push ebx
call dword [0x43a2c0]
test eax, eax
je 0x41e66b
push ebx
call dword [0x43a2e4]
test eax, eax
je 0x41e66b
lea eax, [esp + 0x34]
push eax
push ebx
call dword [0x43a2e8]
test eax, eax
je 0x41e66b
cmp dword [esi + 4], ebx
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
push ebp
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
jne 0x41e635
lea eax, [esp + 0x28]
lea ebx, [esi + 8]
push eax
mov ecx, ebx
call fcn.0040bd70
test al, al
jne 0x41e631
cmp dword [esi], 0
je 0x41e631
mov ecx, dword [esi + 0xc]
mov eax, dword [ebx]
sub ebp, ecx
lea ecx, [esp + 0x28]
sub edi, eax
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebp
call fcn.00413941
mov ecx, dword [esi]
mov edx, dword [ecx]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x58], 0
call dword [edx + 8]
push ebx
lea ecx, [esp + 0x20]
call fcn.00413941
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
mov bl, 1
push edx
mov ecx, eax
mov byte [esp + 0x58], bl
call fcn.00413721
mov ecx, dword [esi]
mov edx, dword [ecx]
push eax
mov byte [esp + 0x54], 2
call dword [edx + 4]
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], bl
call fcn.0041360e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 0
call fcn.0041360e
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], 0xffffffff
call fcn.0041360e
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esi + 4], ebx
add esi, 8
mov dword [esi], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 4], ecx
pop ebp
mov dword [esi + 8], edx
pop edi
mov dword [esi + 0xc], eax
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret
mov ecx, dword [esp + 0x44]
mov dword [esi + 4], edi
pop edi
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret
Function at 0x4252c4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, edx
shr eax, 4
xor eax, ecx
and eax, 0xf0f0f0f
xor ecx, eax
shl eax, 4
xor edx, eax
mov eax, edx
shr eax, 0x10
xor eax, ecx
and eax, 0xffff
xor ecx, eax
shl eax, 0x10
xor edx, eax
mov eax, ecx
shr eax, 2
xor eax, edx
and eax, 0x33333333
xor edx, eax
shl eax, 2
xor ecx, eax
mov eax, ecx
shr eax, 8
xor eax, edx
and eax, 0xff00ff
xor edx, eax
shl eax, 8
xor ecx, eax
mov eax, ecx
add ecx, ecx
shr eax, 0x1f
or eax, ecx
mov ecx, eax
xor ecx, edx
and ecx, 0xaaaaaaaa
xor edx, ecx
xor eax, ecx
mov ecx, edx
push ebx
shr ecx, 0x1f
add edx, edx
push esi
or ecx, edx
mov dword [ebp - 4], 8
push edi
mov edi, dword [ebp + 0xc]
mov esi, eax
shl esi, 0x1c
mov edx, eax
shr edx, 4
or esi, edx
xor esi, dword [edi]
add edi, 4
mov edx, esi
shr edx, 0x18
mov ebx, esi
shr ebx, 0x10
and ebx, 0x3f
and edx, 0x3f
mov edx, dword [edx*4 + 0x448948]
or edx, dword [ebx*4 + 0x448b48]
mov ebx, esi
shr ebx, 8
and ebx, 0x3f
or edx, dword [ebx*4 + 0x448d48]
and esi, 0x3f
or edx, dword [esi*4 + 0x448f48]
mov esi, dword [edi]
add edi, 4
mov dword [ebp + 0xc], edi
xor esi, eax
mov edi, esi
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x448a48]
mov ebx, esi
shr ebx, 0x10
and ebx, 0x3f
or edi, dword [ebx*4 + 0x448c48]
mov ebx, esi
shr ebx, 8
and ebx, 0x3f
or edi, dword [ebx*4 + 0x448e48]
and esi, 0x3f
or edi, dword [esi*4 + 0x449048]
or edi, edx
xor ecx, edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
shl esi, 0x1c
mov edx, ecx
shr edx, 4
or esi, edx
xor esi, dword [edi]
add edi, 4
mov edx, esi
shr edx, 0x18
mov ebx, esi
shr ebx, 0x10
and ebx, 0x3f
and edx, 0x3f
mov edx, dword [edx*4 + 0x448948]
or edx, dword [ebx*4 + 0x448b48]
mov ebx, esi
shr ebx, 8
and ebx, 0x3f
or edx, dword [ebx*4 + 0x448d48]
and esi, 0x3f
or edx, dword [esi*4 + 0x448f48]
mov esi, dword [edi]
add edi, 4
mov dword [ebp + 0xc], edi
xor esi, ecx
mov edi, esi
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x448a48]
mov ebx, esi
shr ebx, 0x10
and ebx, 0x3f
or edi, dword [ebx*4 + 0x448c48]
mov ebx, esi
shr ebx, 8
and ebx, 0x3f
or edi, dword [ebx*4 + 0x448e48]
and esi, 0x3f
or edi, dword [esi*4 + 0x449048]
or edi, edx
xor eax, edi
dec dword [ebp - 4]
jne 0x425346
mov edx, eax
shr eax, 1
shl edx, 0x1f
or edx, eax
mov eax, edx
xor eax, ecx
and eax, 0xaaaaaaaa
xor ecx, eax
xor edx, eax
mov esi, ecx
shl esi, 0x1f
shr ecx, 1
or esi, ecx
mov eax, esi
shr eax, 8
xor eax, edx
and eax, 0xff00ff
xor edx, eax
shl eax, 8
xor esi, eax
mov eax, esi
shr eax, 2
xor eax, edx
and eax, 0x33333333
xor edx, eax
shl eax, 2
xor esi, eax
mov ecx, dword [ebp + 8]
mov eax, edx
shr eax, 0x10
xor eax, esi
and eax, 0xffff
xor esi, eax
shl eax, 0x10
xor edx, eax
mov eax, edx
shr eax, 4
xor eax, esi
and eax, 0xf0f0f0f
mov edi, eax
shl edi, 4
xor edi, edx
mov dword [ecx], edi
pop edi
xor eax, esi
pop esi
mov dword [ecx + 4], eax
pop ebx
leave
ret
Function at 0x404080
Capabilities:
Set current directory

Disassembly:
push ecx
cmp byte [esp + 8], 0
mov eax, ecx
push ebx
mov ebx, dword [0x4e88cc]
mov ecx, 0x3a
push esi
push edi
mov byte [esp + 0xf], dl
mov esi, 0x4eb628
je 0x4040c8
inc dword [0x4eb724]
add ebx, 0xe8
mov edi, ebx
mov dword [0x4e88cc], ebx
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, 0x4ed830
mov dword [ebx + 0x2c], eax
call fcn.004238a0
jmp 0x4040cf
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x2c], eax
cmp dword [0x4eb738], 0
xorps xmm0, xmm0
movlpd qword [0x4ede68], xmm0
je 0x4040ff
mov eax, dword [0x4ea23c]
mov ecx, 0x4d5231
test eax, eax
je 0x4040f8
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [esp + 0xf], 0
jne 0x404184
mov cl, byte [ebx + 0xce]
test cl, cl
jne 0x404134
cmp byte [esp + 0x18], 0x65
sete cl
mov byte [ebx + 0xce], cl
jne 0x404134
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0x24], 0xffffffff
cmp dword [0x4ede74], 0
je 0x404146
cmp dword [0x4ede70], 0
jne 0x40414a
test cl, cl
je 0x404184
mov byte [ebx + 0xcc], 0
test cl, cl
jne 0x404184
cmp dword [0x4ede74], 0
jge 0x40416d
pop edi
pop esi
mov dword [ebx + 0xc0], 0xffffffff
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0xbc], eax
mov eax, dword [0x4ede74]
mov dword [ebx + 0xc0], eax
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4056b0
Capabilities:
Write clipboard data

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
jne 0x4056d2
call fcn.00405990
test eax, eax
jne 0x4056d2
push str.Cant_open_clipboard_for_writing.
mov ecx, esi
call fcn.004057f0
pop esi
ret 4
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x405718
cmp dword [esi + 0x18], eax
je 0x405708
cmp dword [esi + 8], eax
je 0x4056f5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], 0
mov dword [esi], 0
push 0x4d558c
mov ecx, esi
call fcn.004057f0
pop esi
ret 4
mov eax, dword [esi + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
je 0x405765
mov ecx, dword [esi + 0xc]
push ebx
xor bl, bl
test ecx, ecx
je 0x405756
cmp dword [esp + 0x10], 0xd
jne 0x40573d
cmp word [ecx], 0
jmp 0x40573f
cmp byte [ecx], bl
push eax
sete bl
call edi
mov eax, dword [esi + 4]
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
test bl, bl
pop ebx
push eax
je 0x405799
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
cmp dword [esi + 0x18], 0
je 0x40578f
cmp dword [esi + 8], 0
je 0x40577c
push dword [esi]
call edi
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], 0
mov dword [esi], 0
pop edi
mov eax, 1
pop esi
ret 4
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x4057b0
mov dword [esi + 4], 0
jmp 0x405765
cmp dword [esi + 0x18], 0
je 0x4057da
cmp dword [esi + 8], 0
je 0x4057c7
push dword [esi]
call edi
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], 0
mov dword [esi], 0
push 0x4d559c
mov ecx, esi
call fcn.004057f0
pop edi
pop esi
ret 4

Function at 0x405880
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x108
push esi
mov esi, dword [esp + 0x114]
push edi
test esi, esi
je 0x405899
mov dword [esi], 0
mov edi, dword [esp + 0x114]
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x405979
push 0x104
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameA]
push 0xb
lea eax, [esp + 0xc]
push str.Link_Source
push eax
call fcn.004b653e
add esp, 0xc
test eax, eax
je 0x40596c
lea eax, [esp + 8]
push str.ObjectLink
push eax
call fcn.004b626e
add esp, 8
test eax, eax
je 0x40596c
lea eax, [esp + 8]
push str.OwnerLink
push eax
call fcn.004b626e
add esp, 8
test eax, eax
je 0x40596c
lea eax, [esp + 8]
push str.Native
push eax
call fcn.004b626e
add esp, 8
test eax, eax
je 0x40596c
lea eax, [esp + 8]
push str.Embed_Source
push eax
call fcn.004b626e
add esp, 8
test eax, eax
je 0x40596c
lea eax, [esp + 8]
push str.MSDEVColumnSelect
push eax
call fcn.004b626e
add esp, 8
test eax, eax
je 0x405962
lea eax, [esp + 8]
push str.MSDEVLineSelect
push eax
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x40597e
test esi, esi
je 0x40596c
mov dword [esi], 1
pop edi
xor eax, eax
pop esi
add esp, 0x108
ret 8
mov byte [esp + 8], 0
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
pop edi
pop esi
add esp, 0x108
ret 8