joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010b2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x410284]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x4010ff
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x804]
push 0x3ff
push 0x400
push eax
call fcn.0040170c
lea eax, [ebp - 0x804]
push eax
call fcn.0040170c
add esp, 0x18
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ea2
leave
ret

Function at 0x40110b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x410284]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x401158
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x3ff
push 0x400
push eax
call fcn.0040170c
lea eax, [ebp - 0x404]
push eax
call fcn.0040170c
add esp, 0x18
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ea2
leave
ret

Function at 0x40170c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x40171b
pop dword [ebp - 0x38]
mov eax, 0x40171b
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xc03b3aa2
add dword [ebp - 0x48], 0x8e170aa9
mov dword [ebp - 0x44], 0xfad3bf40
add dword [ebp - 0x44], 0x375f8d05
mov dword [ebp - 0x40], 0xe3029e81
sub dword [ebp - 0x40], 0x96b65a53
mov dword [ebp - 0x3c], 0xf8d04dfd
add dword [ebp - 0x3c], 0x72fb203
lea eax, [ebp - 0x48]
push eax
mov eax, 0x4db2df80
sub eax, 0x4d720f2c
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x56ab9e27
sub dword [ebp - 0x48], 0xe23934d1
mov dword [ebp - 0x44], 0xafdecd4b
sub dword [ebp - 0x44], 0x6e726bd6
mov dword [ebp - 0x40], 0x7c5299ab
sub dword [ebp - 0x40], 0x18e32d3f
mov dword [ebp - 0x3c], 0x73ca2c16
add dword [ebp - 0x3c], 0x8c35d3ea
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0xf3e2cd7b
sub eax, 0xf3a1fd2f
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x38126
push 0
call eax
mov ecx, 0x415c
mov edx, eax
mov edi, 0x41b000
add edi, dword [ebp - 0x38]
mov esi, 0xca4778cb
mov dword [ebp - 0x18], 0xd58290ad
mov ebx, dword [edi]
add dword [ebp - 0xc], 0xb1f2dae2
xor ebx, esi
sub dword [ebp - 0x2c], 0x3cc56e8b
mov dword [edx], ebx
xor dword [ebp - 0x2c], 0xeacfc1cc
add edx, 0x193c638c
add edx, 0xe6c39c78
add edi, 0x5f72dff4
add edi, 0xa08d2010
loop 0x401826
add eax, 0x5df2d34a
add eax, 0xa20e24f9
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xb9d494a
sub ecx, 0xb5d494a
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x302cc8
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 0x302d05
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 0x302d25
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00305574
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x302f30
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00305304
test esi, esi
jne 0x302f67
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.003053f4
jmp 0x302f88
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00302dcc
mov dword [esp], eax
test esi, esi
je 0x302f88
cmp dword [ebx], 0
je 0x302f88
dec esi
jmp 0x302f6f
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x3043c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x3be020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x30445c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x30443c
xor eax, eax
push ebp
push 0x304435
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 0x304478
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 0x30443c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x3be020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x3be020], ax
mov esp, ebp
pop ebp
ret

Function at 0x305160
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x3c104c], 0
je 0x3051c1
cmp word [0x3c1220], 0xd7b2
jne 0x305189
cmp dword [0x3c1228], 0
jbe 0x305189
mov eax, 0x3c121c
call dword [0x3c1238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x3be0bc
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 0x3051e8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x3be030], 0
jne 0x3051dd
push 0
push 0x3be0b4
push 0x3be0bc
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x30749c
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 0x307502
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.00305574
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00303aac
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x3074ec
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x307509
lea eax, [ebp - 0x10]
call fcn.00305304
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.003057c4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x309f1d
test al, 0x10
jne 0x309f21
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x309f28
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.003057c4
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x309f4a
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x30ce40
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 0x30ce79
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.003053f4
jmp 0x30ce82
mov eax, ebx
mov edx, esi
call fcn.00305358
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x30ce8c
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 0x30cead
mov al, byte [esp]
jmp 0x30ceaf
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x30deac
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 0x30df82
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0030539c
lea eax, [ebp - 8]
call fcn.00305814
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.003057c4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x30df6c
mov eax, ebx
call fcn.00302a90
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x30df65
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.003057c4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x30df4f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x30df94
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x30df4f
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 0x30df6c
mov eax, dword [ebp - 0x10]
call fcn.00302ac0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x30df89
lea eax, [ebp - 8]
call fcn.00305304
ret

Function at 0x30e59c
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 0x30e600
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.00305574
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00309b14
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x30e607
lea eax, [ebp - 0xc]
call fcn.00305304
ret

Function at 0x320594
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x3c1888
cmp dword [edi], 0
jne 0x320610
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x3c1884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x3be44c
mov ecx, 2
call fcn.00302d8c
mov edx, 0x32056c
lea eax, [esi + 5]
call fcn.0032058c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0032058c
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 0x3205e5
mov dword [0x3c1884], 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 0x321bd4
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 0x321bda
ret
Function at 0x32448c
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 0x3244dd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x3244c4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x3244b4
jmp 0x3244dd
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 0x3244c5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x32d800
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.003057b4
xor eax, eax
push ebp
push 0x32d92e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x32d901
xor eax, eax
push ebp
push 0x32d8fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.003055c4
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x32d8cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x32d8be
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.003055c4
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.003057c4
mov edx, ebx
pop ecx
call fcn.00302d8c
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 0x32d8c5
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x3bff60]
mov dl, 1
mov eax, dword [0x308918]
call fcn.0030d6c8
call fcn.00304cf8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x32d935
lea eax, [ebp - 4]
call fcn.00305304
ret
Function at 0x32d93c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x32daed
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.003059b4
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x32db04
call fcn.00305610
mov eax, ebx
call fcn.0031fb28
mov edi, eax
dec edi
test edi, edi
jl 0x32d9f4
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.0031fafc
mov edx, dword [0x33c3a4]
call fcn.003046f0
test al, al
je 0x32d9f0
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.0031fafc
lea edx, [ebp - 0x14]
call fcn.0034b06c
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.003059b4
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00305684
inc esi
dec edi
jne 0x32d9a2
mov al, byte [0x32db08]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x32db14
mov eax, dword [ebp - 0xc]
call fcn.0030eb78
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.0030539c
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.0034b06c
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x32db04
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f8]
call fcn.0034b06c
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x32db04
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x32db04
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x32db20
call fcn.0030ac34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x32daf4
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00305328
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00305328
lea eax, [ebp - 0x14]
call fcn.00305304
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00305328
ret
Function at 0x333178
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
mov al, byte [ebp + 8]
call fcn.00332ef4
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.003057c4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x3331d6
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x3c0158]
mov dl, 1
mov eax, dword [0x332e18]
call fcn.0030d704
call fcn.00304cf8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x3444fc
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 0x3446bc
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
call fcn.00350838
mov eax, dword [ebx]
cmp byte [eax + 0x210], 0
je 0x3446a1
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebx]
sub eax, dword [edx + 0x220]
cmp eax, 0x1f4
jb 0x34455f
mov eax, dword [ebx]
add eax, 0x21c
call fcn.00305304
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 0x344630
mov eax, dword [ebp - 8]
mov al, byte [eax]
mov edx, dword [0x3c037c]
and eax, 0xff
bt dword [edx], eax
jae 0x3445f2
push 1
push 0x102
push 0x102
mov eax, dword [ebx]
call fcn.00351854
push eax
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x344670
mov eax, dword [ebx]
push dword [eax + 0x21c]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
mov dl, byte [edx]
call fcn.003054ec
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
call fcn.003054ec
push dword [ebp - 0x2c]
mov eax, dword [ebx]
add eax, 0x21c
mov edx, 3
call fcn.00305684
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp 0x344670
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
mov dl, byte [edx]
call fcn.003054ec
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx]
add eax, 0x21c
call fcn.003055cc
jmp 0x344670
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.003055c4
mov edx, eax
mov eax, dword [ebx]
add eax, 0x21c
mov ecx, 1
call fcn.00305864
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.003055c4
mov edx, eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.0030e018
cmp al, 2
je 0x344610
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.003055c4
mov edx, eax
mov eax, dword [ebx]
add eax, 0x21c
mov ecx, 1
call fcn.00305864
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.003055c4
test eax, eax
jle 0x34468a
push ebp
call fcn.00344418
pop ecx
jmp 0x3446a1
xor edx, edx
mov eax, dword [ebx]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
mov eax, dword [ebx]
mov si, 0xffeb
call fcn.00304760
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3446c3
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00305328
ret

Function at 0x345430
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 0x34537c
call sub.user32.dll_EnumWindows
ret
Function at 0x345550
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 0x3455cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00344fb0
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 0x345575
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00344bb0
cmp dword [ebp - 4], 0
je 0x3455b7
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.003057c4
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 0x3455d4
lea eax, [ebp - 4]
call fcn.00305304
ret

Function at 0x348bbc
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 [0x3c1b94], 0
je 0x348d0b
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x3c01dc]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x348d0b
mov eax, dword [0x3c1b98]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x3c1b94]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x348cda
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x3c1b94]
call fcn.003192d8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x348cd2
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x348cd2
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x348cd2
mov eax, dword [ebp - 0x14]
call fcn.00351854
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x348cd2
push ebp
call fcn.00348b78
pop ecx
test al, al
jne 0x348cd2
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x348c8e
mov eax, dword [ebp - 0x14]
call fcn.00350384
dec eax
jle 0x348cd2
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.00304760
cmp byte [ebp - 1], 0
je 0x348cd2
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x348cd2
mov edx, dword [ebp - 0x14]
mov eax, dword [0x3c1b98]
call fcn.00348344
inc edi
dec ebx
jne 0x348c21
mov eax, dword [0x3c1b98]
cmp dword [eax + 8], 0
jle 0x348cf2
mov eax, dword [0x3c1b98]
call fcn.003483d4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x348d0b
push ebp
mov eax, dword [ebp - 0x18]
call fcn.003489e0
pop ecx
test al, al
jne 0x348d0b
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
Function at 0x34c2ec
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x34c338
mov eax, esi
call fcn.00362160
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x34c338
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x34c338
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x34c477
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x34c378
cmp eax, 0x108
ja 0x34c378
mov eax, esi
call fcn.00362160
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x34c46e
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x34c477
jmp 0x34c46e
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x34c457
cmp eax, 0x20a
ja 0x34c457
test byte [esi + 0x50], 0x80
jne 0x34c3aa
sub eax, 0x203
je 0x34c3a7
sub eax, 3
je 0x34c3a7
sub eax, 3
jne 0x34c3aa
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x34c3be
dec eax
je 0x34c3d3
dec eax
je 0x34c3f0
dec eax
je 0x34c3d3
jmp 0x34c3f7
mov ecx, ebx
mov eax, dword [0x3c01dc]
mov eax, dword [eax]
mov edx, esi
call fcn.0036bad0
jmp 0x34c46e
cmp byte [esi + 0x5d], 1
jne 0x34c3e9
mov eax, esi
mov si, 0xffed
call fcn.00304760
jmp 0x34c477
or word [esi + 0x54], 1
jmp 0x34c46e
and word [esi + 0x54], 0xfffe
jmp 0x34c46e
mov eax, dword [0x3c1b50]
cmp byte [eax + 0x20], 0
je 0x34c46e
mov eax, dword [0x3c1b50]
cmp dword [eax + 0x1c], 0
je 0x34c46e
mov eax, dword [ebx]
mov edx, dword [0x3c1b50]
cmp eax, dword [edx + 0x1c]
jne 0x34c46e
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.003620a4
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00304760
jmp 0x34c477
cmp eax, 0xb00b
jne 0x34c46e
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0034ac0c
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret