joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422b09
Capabilities:
Link many functions at runtime

Disassembly:
mov ebx, ebx
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x432680]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push ebx
mov dword [ebp - 0x1c], eax
call fcn.0041946e
and dword [ebp - 0x14], 0
cmp dword [0x434920], 0
mov dword [ebp - 0x18], eax
jne 0x422bbc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x422c64
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push edi
call ebx
test eax, eax
je 0x422c64
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push edi
mov dword [0x434920], eax
call ebx
push eax
call esi
push str.GetLastActivePopup
push edi
mov dword [0x434924], eax
call ebx
push eax
call esi
push str.GetUserObjectInformationW
push edi
mov dword [0x434928], eax
call ebx
push eax
call esi
mov dword [0x434930], eax
test eax, eax
je 0x422bbc
push str.GetProcessWindowStation
push edi
call ebx
push eax
call esi
mov dword [0x43492c], eax
mov eax, dword [0x43492c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x422c15
cmp dword [0x434930], ecx
je 0x422c15
push eax
call esi
push dword [0x434930]
mov ebx, eax
call esi
mov edi, eax
test ebx, ebx
je 0x422c15
test edi, edi
je 0x422c15
call ebx
test eax, eax
je 0x422c0c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x422c0c
test byte [ebp - 8], 1
jne 0x422c15
or dword [ebp + 0x10], 0x200000
jmp 0x422c48
mov eax, dword [0x434924]
cmp eax, dword [ebp - 0x18]
je 0x422c48
push eax
call esi
test eax, eax
je 0x422c48
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x422c48
mov eax, dword [0x434928]
cmp eax, dword [ebp - 0x18]
je 0x422c48
push eax
call esi
test eax, eax
je 0x422c48
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x434920]
call esi
test eax, eax
je 0x422c64
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x422c66
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
pop esi
xor ecx, ebp
pop edi
call fcn.00412a15
leave
ret
Function at 0x422e74
Capabilities:
Get geographical location

Disassembly:
mov esi, esi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x432680]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
push ebx
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edi, edi
push edi
push edi
push dword [ebp + 0x10]
mov dword [ebp - 8], eax
push dword [ebp + 0xc]
call esi
mov ecx, eax
mov dword [ebp - 0xc], ecx
cmp ecx, edi
jne 0x422eb6
xor eax, eax
jmp 0x422f3c
jle 0x422efd
push 0xffffffffffffffe0
xor edx, edx
pop eax
div ecx
cmp eax, 2
jb 0x422efd
lea eax, [ecx + ecx + 8]
cmp eax, 0x400
ja 0x422ee5
call fcn.00420800
mov ebx, esp
cmp ebx, edi
je 0x422eaf
mov dword [ebx], 0xcccc
add ebx, 8
jmp 0x422eff
push eax
call fcn.0041302b
pop ecx
cmp eax, edi
je 0x422ef9
mov dword [eax], 0xdddd
add eax, 8
mov ebx, eax
jmp 0x422eff
xor ebx, ebx
cmp ebx, edi
je 0x422eaf
push dword [ebp - 0xc]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x422f33
push edi
push edi
cmp dword [ebp + 0x18], edi
jne 0x422f1e
push edi
push edi
jmp 0x422f24
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0xffffffffffffffff
push ebx
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
push ebx
call fcn.004174c1
pop ecx
mov eax, edi
lea esp, [ebp - 0x18]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412a15
leave
ret
Function at 0x426441
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor ebx, ebx
push edi
push 1
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.0041c055
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4264c9
push 2
push ebx
push ebx
push dword [ebp + 8]
call fcn.0041c055
mov ecx, eax
and ecx, edx
add esp, 0x10
cmp ecx, 0xffffffff
je 0x4264c9
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
sub esi, eax
sbb edi, edx
js 0x42655e
jg 0x4264a2
cmp esi, ebx
jbe 0x42655e
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4264d5
call fcn.00414d33
mov dword [eax], 0xc
call fcn.00414d33
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push dword [ebp + 8]
call fcn.004265f7
pop ecx
pop ecx
mov dword [ebp - 8], eax
test edi, edi
jl 0x4264f5
jg 0x4264f1
cmp esi, ebx
jb 0x4264f5
mov eax, ebx
jmp 0x4264f7
mov eax, esi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0041c1c4
add esp, 0xc
cmp eax, 0xffffffff
je 0x426541
cdq
sub esi, eax
sbb edi, edx
js 0x426518
jg 0x4264e7
test esi, esi
jne 0x4264e7
mov esi, dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004265f7
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
jmp 0x4265c7
call fcn.00414d46
cmp dword [eax], 5
jne 0x426556
call fcn.00414d33
mov dword [eax], 0xd
or esi, 0xffffffff
mov dword [ebp - 0xc], esi
jmp 0x42651b
cmp edi, ebx
jg 0x4265d3
jl 0x426568
cmp esi, ebx
jae 0x4265d3
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041c055
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4264c9
push dword [ebp + 8]
call fcn.00423792
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov dword [ebp - 0x10], eax
and eax, edx
mov dword [ebp - 0xc], edx
cmp eax, 0xffffffff
jne 0x4265d3
call fcn.00414d33
mov dword [eax], 0xd
call fcn.00414d46
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov esi, dword [ebp - 0x10]
and esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
je 0x4264c9
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.0041c055
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4264c9
xor eax, eax
jmp 0x4264d0
Function at 0x502d90
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x502dcd
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x502ded
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00504f8c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x503068
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00504d0c
test esi, esi
jne 0x50309f
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00504dfc
jmp 0x5030c0
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00502f04
mov dword [esp], eax
test esi, esi
je 0x5030c0
cmp dword [ebx], 0
je 0x5030c0
dec esi
jmp 0x5030a7
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x503cec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x61a024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x503d84
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x503d64
xor eax, eax
push ebp
push 0x503d5d
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 0x503da0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x503d64
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x61a024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x61a024], ax
mov esp, ebp
pop ebp
ret

Function at 0x504ae4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x62804c], 0
je 0x504b45
cmp word [0x628220], 0xd7b2
jne 0x504b0d
cmp dword [0x628228], 0
jbe 0x504b0d
mov eax, 0x62821c
call dword [0x628238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x61a074
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 0x504b6c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x61a034], 0
jne 0x504b61
push 0
push 0x61a06c
push 0x61a074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x504cc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00502b58
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x62804d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x504c88
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x506f50
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x506fb6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00504f8c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.005036dc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x506fa0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x506fbd
lea eax, [ebp - 0x10]
call fcn.00504d0c
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.005051dc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x50a025
test al, 0x10
jne 0x50a029
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x50a1c0
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.005051dc
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x50a1d4
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.005051dc
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x50a1f6
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x50d144
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x50d17d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00504dfc
jmp 0x50d186
mov eax, ebx
mov edx, esi
call fcn.00504d60
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x50d190
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x50d1b1
mov al, byte [esp]
jmp 0x50d1b3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x50d848
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x50d6b0
mov eax, dword [0x627af4]
cmp byte [eax], 0
je 0x50d8c4
mov eax, dword [0x627744]
call fcn.005034e4
call fcn.00502ce4
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0050a724
push eax
lea eax, [esp + 0x50]
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 0x50d90c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x50d8fa
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x6276b4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x628668]
call fcn.00506360
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x50e1e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x50e2b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00504da4
lea eax, [ebp - 8]
call fcn.0050522c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.005051dc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x50e2a0
mov eax, ebx
call fcn.00502b58
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x50e299
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 - 8]
call fcn.005051dc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x50e283
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x50e2c8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x50e283
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50e2a0
mov eax, dword [ebp - 0x10]
call fcn.00502b88
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50e2bd
lea eax, [ebp - 8]
call fcn.00504d0c
ret

Function at 0x50ea1c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x50ea80
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00504f8c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00509b10
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50ea87
lea eax, [ebp - 0xc]
call fcn.00504d0c
ret
Function at 0x524c60
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.00524ab8
dec esi
jne 0x524c82
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x525ddc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x62888c
cmp dword [esi], 0
jne 0x525e82
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x628888]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x61a530
mov ecx, 2
call fcn.00502ec4
mov edx, 0x525db4
mov eax, dword [ebp - 8]
add eax, 5
call fcn.00525dd4
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.00525dd4
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x525e49
mov eax, dword [ebp - 8]
mov dword [0x628888], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x527528
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 0x52752e
ret

Function at 0x529f50
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x529fa1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x529f88
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x529f78
jmp 0x529fa1
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x529f89
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x53be80
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea ebx, [ebp - 4]
xor eax, eax
push ebp
push 0x53c040
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
call fcn.0054ce00
mov eax, dword [ebx]
cmp byte [eax + 0x210], 0
je 0x53c025
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebx]
sub eax, dword [edx + 0x220]
cmp eax, 0x1f4
jb 0x53bee3
mov eax, dword [ebx]
add eax, 0x21c
call fcn.00504d0c
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebx]
mov dword [edx + 0x220], eax
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 8
je 0x53bfb4
mov eax, dword [ebp - 8]
mov al, byte [eax]
mov edx, dword [0x627cb0]
and eax, 0xff
bt dword [edx], eax
jae 0x53bf76
push 1
push 0x102
push 0x102
mov eax, dword [ebx]
call fcn.0054defc
push eax
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x53bff4
mov eax, dword [ebx]
push dword [eax + 0x21c]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
mov dl, byte [edx]
call fcn.00504ef4
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
call fcn.00504ef4
push dword [ebp - 0x2c]
mov eax, dword [ebx]
add eax, 0x21c
mov edx, 3
call fcn.0050509c
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp 0x53bff4
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
mov dl, byte [edx]
call fcn.00504ef4
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx]
add eax, 0x21c
call fcn.00504fe4
jmp 0x53bff4
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.00504fdc
mov edx, eax
mov eax, dword [ebx]
add eax, 0x21c
mov ecx, 1
call fcn.0050527c
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.00504fdc
mov edx, eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.0050e34c
cmp al, 2
je 0x53bf94
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.00504fdc
mov edx, eax
mov eax, dword [ebx]
add eax, 0x21c
mov ecx, 1
call fcn.0050527c
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.00504fdc
test eax, eax
jle 0x53c00e
push ebp
call fcn.0053bd9c
pop ecx
jmp 0x53c025
xor edx, edx
mov eax, dword [ebx]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
mov eax, dword [ebx]
mov si, 0xffeb
call fcn.00504088
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53c047
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00504d30
ret
Function at 0x53ff28
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.005051cc
xor eax, eax
push ebp
push 0x540058
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x54002b
xor eax, eax
push ebp
push 0x540024
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00504fdc
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x53fff9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x53ffe8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00504fdc
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.005051dc
mov edx, dword [ebp - 0xc]
pop ecx
call fcn.00502ec4
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53ffef
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x6275f0]
mov dl, 1
mov eax, dword [0x5087a0]
call fcn.0050d9fc
call fcn.00504660
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54005f
lea eax, [ebp - 4]
call fcn.00504d0c
ret