joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403764
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40a070]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40a340]
je 0x403799
inc eax
cmp eax, 0x13
jb 0x40378a
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40a340]
jne 0x4038bf
mov eax, dword [0x40aacc]
cmp eax, 1
je 0x403897
cmp eax, edx
jne 0x4037c9
cmp dword [0x40a084], 1
je 0x403897
cmp ecx, 0xfc
je 0x4038bf
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4037ff
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00404940
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00404b70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x403833
mov eax, edi
push eax
call fcn.00404b70
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40870c
push edi
call fcn.00404a40
add esp, 0x10
push edi
call fcn.00404b70
push dword [esi + 0x40a344]
mov ebx, eax
call fcn.00404b70
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004029c0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00404940
push edi
push ebx
call fcn.00404950
push 0x408708
push ebx
call fcn.00404950
push dword [esi + 0x40a344]
push ebx
call fcn.00404950
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040483e
add esp, 0x2c
jmp 0x4038bf
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40a344]
push dword [esi]
call fcn.00404b70
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00402749
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x404615
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x404643
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40464a
cmp ebx, dword [eax + 4]
jae 0x40464a
xor eax, eax
jmp 0x40483a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40465b
xor eax, eax
inc eax
jmp 0x404839
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x404671
cmp ecx, edx
jae 0x4047b6
cmp dword [eax + 4], 0
je 0x40467a
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x404662
cmp dword [ebp + 8], 0
je 0x40469c
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4047b6
cmp eax, esi
jae 0x4047b6
mov eax, dword [0x40ad58]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4046c1
cmp dword [esi*4 + 0x40ad60], edi
je 0x4047ba
inc esi
cmp esi, eax
jl 0x4046af
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404836
cmp dword [ebp - 8], 0x1000000
jne 0x404836
test byte [ebp - 0xc], 0xcc
je 0x40473f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x404836
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x404836
cmp word [eax + 0x18], 0x10b
jne 0x404836
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x404836
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40473f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40473f
test byte [ecx + 0x27], 0x80
jne 0x4047b6
push 1
push 0x40ada0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x404653
mov ecx, dword [0x40ad58]
test ecx, ecx
mov edx, ecx
jle 0x404773
lea eax, [ecx*4 + 0x40ad5c]
cmp dword [eax], edi
je 0x404773
dec edx
sub eax, 4
test edx, edx
jg 0x404767
test edx, edx
jne 0x4047a4
push 0xf
pop ebx
cmp ecx, ebx
jg 0x404780
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x404798
lea eax, [edx*4 + 0x40ad60]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x404786
cmp ecx, 0x10
jge 0x4047a4
inc ecx
mov dword [0x40ad58], ecx
push 0
push 0x40ada0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x404653
xor eax, eax
jmp 0x404839
test esi, esi
jle 0x404653
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40ada0
call ebx
test eax, eax
jne 0x404653
cmp dword [esi*4 + 0x40ad60], edi
je 0x404810
mov eax, dword [0x40ad58]
lea esi, [eax - 1]
test esi, esi
jl 0x4047fe
cmp dword [esi*4 + 0x40ad60], edi
je 0x4047fa
dec esi
jns 0x4047ee
test esi, esi
jge 0x40480e
cmp eax, 0x10
jge 0x404809
inc eax
mov dword [0x40ad58], eax
lea esi, [eax - 1]
jmp 0x404810
je 0x404828
xor ecx, ecx
test esi, esi
jl 0x404828
lea eax, [ecx*4 + 0x40ad60]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x404816
push 0
push 0x40ada0
call ebx
jmp 0x404653
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40483e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40ada4], ebx
push esi
push edi
jne 0x4048be
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4048f9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40ada4], eax
je 0x4048f9
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40ada8], eax
call esi
cmp dword [0x40aa80], 2
mov dword [0x40adac], eax
jne 0x4048be
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40adb4], eax
je 0x4048be
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40adb0], eax
mov eax, dword [0x40adb0]
test eax, eax
je 0x404903
call eax
test eax, eax
je 0x4048ea
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40adb4]
test eax, eax
je 0x4048ea
test byte [ebp - 8], 1
jne 0x404903
cmp dword [0x40aa8c], 4
jb 0x4048fd
or byte [ebp + 0x12], 0x20
jmp 0x404922
xor eax, eax
jmp 0x404932
or byte [ebp + 0x12], 4
jmp 0x404922
mov eax, dword [0x40ada8]
test eax, eax
je 0x404922
call eax
mov ebx, eax
test ebx, ebx
je 0x404922
mov eax, dword [0x40adac]
test eax, eax
je 0x404922
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40ada4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40692b
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004029c0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4069c6
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40aa80]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4069c6
cmp eax, 1
je 0x4069e7
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4069c6
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x406993
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4069c2
xor eax, eax
inc eax
jmp 0x406a06
cmp edi, eax
jae 0x4069ca
xor eax, eax
jmp 0x406a06
cmp eax, esi
jae 0x4069d1
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40aa80]
jmp 0x4069ea
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402904
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 0x402941
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 0x402961
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404878
add esp, 0x210
pop esi
pop ebx
ret

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

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

Function at 0x402fd8
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x402fee
sub ecx, 2
jne 0x403010
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x403017
cmp edx, dword [ebx + 8]
je 0x403021
mov eax, 0x64
jmp 0x40301c
mov eax, 0x67
jmp 0x40301c
call sub.kernel32.dll_GetLastError
call fcn.004028bc
pop ebx
ret

Function at 0x403254
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x403287
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x40328e
cmp edx, dword [ebx + 8]
je 0x403298
mov eax, 0x65
jmp 0x403293
mov eax, 5
jmp 0x403293
call sub.kernel32.dll_GetLastError
call fcn.004028bc
mov eax, ebx
pop ebx
ret

Function at 0x403714
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4ac010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4037ac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40378c
xor eax, eax
push ebp
push 0x403785
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 0x4037c8
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 0x40378c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4ac010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4ac010], ax
mov esp, ebp
pop ebp
ret
Function at 0x404494
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b2048], 0
je 0x4044f5
cmp word [0x4b221c], 0xd7b2
jne 0x4044bd
cmp dword [0x4b2224], 0
jbe 0x4044bd
mov eax, 0x4b2218
call dword [0x4b2234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ac078
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 0x40451c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ac020], 0
jne 0x404511
push 0
push 0x4ac098
push 0x4ac078
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408e54
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404ac0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408e6d
test al, 0x10
jne 0x408e71
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40a37c
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 0x40a3b5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404700
jmp 0x40a3be
mov eax, ebx
mov edx, esi
call fcn.00404664
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a3c8
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 0x40a3e9
mov al, byte [esp]
jmp 0x40a3eb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40aa70
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a8e8
mov eax, dword [0x4b12e0]
cmp byte [eax], 0
je 0x40aad8
mov eax, dword [0x4b10b4]
call fcn.00402de0
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409174
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
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 0x40ab20
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ab0e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4b1058]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b2714]
call fcn.00405d74
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 0x40b6cc
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 0x40b730
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.00404878
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408b64
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b737
lea eax, [ebp - 0xc]
call fcn.00404610
ret
Function at 0x41d390
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4b2a20
cmp dword [edi], 0
jne 0x41d40c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4b2a1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4ac518
mov ecx, 2
call fcn.0040299c
mov edx, 0x41d368
lea eax, [esi + 5]
call fcn.0041d388
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041d388
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 0x41d3e1
mov dword [0x4b2a1c], 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 0x41e970
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 0x41e976
ret

Function at 0x421370
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 0x4213c1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4213a8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x421398
jmp 0x4213c1
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 0x4213a9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x435524
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x435596
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x43556a
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.00404800
jmp 0x435571
mov eax, ebx
call fcn.00404610
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43559d
cmp dword [ebp - 8], 0
je 0x43558d
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4355a4
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x435646
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x435619
mov edx, ebx
mov eax, dword [0x41e434]
call fcn.00422bd4
test al, al
je 0x435609
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.00422ae4
call fcn.0040411c
jmp 0x43564d
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x4355d4
mov ecx, dword [0x4b104c]
mov dl, 1
mov eax, dword [0x407af4]
call fcn.0040ac40
call fcn.00404070
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43564d
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x435654
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, 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 0x4356ac
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4356b3
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x4356bc
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x435711
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x435718
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x435788
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, 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 0x4357fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00435460
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.00422ba8
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4357e7
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x435804
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x43580c
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, 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 0x435881
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00435460
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x43586b
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x435888
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4365a0
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x4364ec
call sub.user32.dll_EnumWindows
ret
Function at 0x4366c4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x436741
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00436110
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x4366e9
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00435d68
cmp dword [ebp - 4], 0
je 0x43672b
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404ac0
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x436748
lea eax, [ebp - 4]
call fcn.00404610
ret

Function at 0x439ab4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x4b2ba8], 0
je 0x439c03
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4b1268]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x439c03
mov eax, dword [0x4b2bac]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4b2ba8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x439bd2
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4b2ba8]
call fcn.004149f4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x439bca
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x439bca
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x439bca
mov eax, dword [ebp - 0x14]
call fcn.00442604
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x439bca
push ebp
call fcn.00439a70
pop ecx
test al, al
jne 0x439bca
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x439b86
mov eax, dword [ebp - 0x14]
call fcn.00441198
dec eax
jle 0x439bca
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.00403aa0
cmp byte [ebp - 1], 0
je 0x439bca
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x439bca
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4b2bac]
call fcn.00439238
inc edi
dec ebx
jne 0x439b19
mov eax, dword [0x4b2bac]
cmp dword [eax + 8], 0
jle 0x439bea
mov eax, dword [0x4b2bac]
call fcn.004392c8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x439c03
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004398d8
pop ecx
test al, al
jne 0x439c03
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret