joyce8/EMBER2024-capa huggingface dataset:
Function at 0x31ed31a8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
xor eax, eax
push ebp
push 0x31ed324e
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x31ed31c9
push 0x493e0
call sub.kernel32.dll_Sleep_1
call sub.kernel32.dll_GetTickCount_1
cmp eax, 0x493e0
jb 0x31ed31bf
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x31ef2ecc]
sub eax, dword [edx + 0x208]
cmp eax, 0x493e0
jl 0x31ed31bf
push dword [0x31ef69a4]
push 0x31ed3264
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x31ef2ecc]
sub eax, dword [edx + 0x208]
mov ecx, 0x3e8
xor edx, edx
div ecx
lea edx, [ebp - 8]
call fcn.31ec6c04
push dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 3
call fcn.31ec4694
mov eax, dword [ebp - 4]
push eax
call fcn.31ec75b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x31ed3255
lea eax, [ebp - 8]
mov edx, 2
call fcn.31ec4348
ret

Function at 0x31ed3270
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
call fcn.31ec4780
mov eax, dword [ebp + 0xc]
call fcn.31ec4780
xor eax, eax
push ebp
push 0x31ed32ec
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0xc], 0
jne 0x31ed32b2
push 5
push 0
mov eax, dword [ebp + 8]
call fcn.31ec4790
push eax
call sub.kernel32.dll_MoveFileExA
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x31ed32d1
push 5
mov eax, dword [ebp + 0xc]
call fcn.31ec4790
push eax
mov eax, dword [ebp + 8]
call fcn.31ec4790
push eax
call sub.kernel32.dll_MoveFileExA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x31ed32f3
lea eax, [ebp + 8]
mov edx, 2
call fcn.31ec4348
ret
Function at 0x31ed32fc
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x31ed3304
xor eax, eax
push ebp
push 0x31ed347a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, dword [0x31ef3214]
mov edx, dword [edx]
call fcn.31ec451c
mov eax, dword [ebp - 4]
call fcn.31ec5f20
test al, al
jne 0x31ed3355
lea eax, [ebp - 8]
mov edx, dword [0x31ef3230]
mov edx, dword [edx]
call fcn.31ec451c
mov eax, dword [ebp - 8]
call fcn.31ec5f20
test al, al
je 0x31ed33e9
lea eax, [ebp - 0xc]
mov edx, dword [0x31ef31bc]
mov edx, dword [edx]
call fcn.31ec451c
mov eax, dword [ebp - 0xc]
mov edx, dword [0x31ef6990]
call fcn.31ec790c
push 4
push 0
lea edx, [ebp - 0x10]
mov eax, dword [0x31ef6990]
call fcn.31ec732c
mov eax, dword [ebp - 0x10]
call fcn.31ec4790
push eax
call sub.kernel32.dll_MoveFileExA
lea edx, [ebp - 0x14]
mov eax, dword [0x31ef6990]
call fcn.31ec73a8
mov edx, dword [ebp - 0x14]
mov eax, dword [0x31ef6994]
call fcn.31ec4728
je 0x31ed33e9
lea edx, [ebp - 0x18]
mov eax, dword [0x31ef6990]
call fcn.31ec73a8
mov ecx, dword [ebp - 0x18]
mov eax, dword [0x31ef69cc]
mov edx, dword [eax]
mov eax, dword [0x31ef69bc]
call fcn.31ecb718
lea edx, [ebp - 0x1c]
mov eax, dword [0x31ef6990]
call fcn.31ec73a8
mov edx, dword [ebp - 0x1c]
mov eax, 0x31ef6994
call fcn.31ec4378
cmp byte [0x31ef6976], 0
jne 0x31ed3419
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
mov eax, dword [0x31ef6994]
call fcn.31ec4790
push eax
call sub.kernel32.dll_CreateFileA
mov dword [0x31ef2ec0], eax
push dword [0x31ef69a4]
push 0x31ed3490
lea edx, [ebp - 0x24]
mov eax, dword [0x31ef2ec0]
call fcn.31ec6c04
push dword [ebp - 0x24]
push 0x31ed34a4
call sub.kernel32.dll_GetCurrentProcessId
lea edx, [ebp - 0x28]
call fcn.31ec6c04
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
mov edx, 5
call fcn.31ec4694
mov eax, dword [ebp - 0x20]
push eax
call fcn.31ec75b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x31ed3481
lea eax, [ebp - 0x28]
mov edx, 0xa
call fcn.31ec4348
ret

Function at 0x31ed5cfc
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 0x31ed5d35
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.31ec4414
jmp 0x31ed5d3e
mov eax, ebx
mov edx, esi
call fcn.31ec4378
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x31ed5d48
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 0x31ed5d6a
movzx eax, byte [esp]
jmp 0x31ed5d6c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x31ed63fc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x31ed6274
mov eax, dword [0x31ef321c]
cmp byte [eax], 0
je 0x31ed6478
mov eax, dword [0x31ef314c]
call fcn.31ec30f4
call fcn.31ec2dbc
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.31ed51bc
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 0x31ed64c0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x31ed64ae
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x31ef3124]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x31ef67f0]
call fcn.31ec4ea8
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 0x473ed0
Capabilities:
Encode data using xor

Disassembly:
xor dword [edi + 0x3f], edi
popal
sahf
mov dword [0x1c7ccc25], eax
loope 0x473ec6
mov al, byte [0xd6283422]
invalid

Function at 0x4bb6b1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c33b8
cmp edx, dword [eax]
je 0x4bb6d3
add eax, 8
inc ecx
cmp eax, 0x4c3448
jl 0x4bb6c4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c33b8]
jne 0x4bb801
mov eax, dword [0x4c8de0]
cmp eax, 1
je 0x4bb7db
test eax, eax
jne 0x4bb704
cmp dword [0x4c32e0], 1
je 0x4bb7db
cmp edx, 0xfc
je 0x4bb801
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb73b
lea eax, [ebp - 0x1a4]
push 0x4c09b0
push eax
call fcn.004bc090
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc520
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb77e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc520
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c09ac
push edi
call fcn.004be3f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c0990
push eax
call fcn.004bc090
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bc0a0
lea eax, [ebp - 0xa0]
push 0x4c098c
push eax
call fcn.004bc0a0
push dword [esi + 0x4c33bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bc0a0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c0964
push eax
call fcn.004be364
add esp, 0x2c
pop edi
jmp 0x4bb801
lea eax, [ebp + 8]
lea esi, [esi + 0x4c33bc]
push 0
push eax
push dword [esi]
call fcn.004bc520
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 0x401087
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
lea eax, [ebp - 0x118]
push eax
mov edi, 0x104
push edi
mov byte [ebp - 2], 0
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push dword [ebp + 8]
call fcn.004013f0
call fcn.004455da
test eax, eax
je 0x4010d8
push 0x10
push 0x46ad3e
push str.This_is_a_compiled_AutoIt_script._AV_researchers_please_email_avsupport_autoitscript.com_for_support.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401293
cmp dword [0x47e114], 0
jne 0x401106
push 0xffffffffffffffff
push dword [0x47e11c]
mov esi, 0x47f058
push 1
call fcn.00408233
mov al, byte [0x4754ac]
mov byte [0x47f05a], al
mov ebx, 0x47e128
jmp 0x40115c
lea eax, [ebp - 2]
push eax
push 0x47e114
mov esi, 0x47e128
mov ebx, 0x47f058
call fcn.004087dc
test al, al
jne 0x401131
mov dword [0x4754c4], 1
jmp 0x401286
mov al, byte [0x47f058]
mov byte [0x47e118], al
mov al, byte [0x47f059]
push 0x47e110
mov byte [ebp - 1], al
lea eax, [ebp - 0x220]
push eax
push edi
mov ebx, 0x47e128
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push dword [0x47e114]
push ebx
call fcn.0041afb0
test eax, eax
je 0x401192
mov edi, 0x47f058
call fcn.00408370
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x4754c4], 1
jmp 0x401293
cmp byte [ebp - 1], 1
jne 0x401241
cmp byte [0x47e0e5], 1
jne 0x401241
call fcn.0040f422
test al, al
jne 0x401241
push edi
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [ebp - 2], 0
je 0x40121a
mov edi, 0x46ada8
push edi
lea esi, [ebp - 0x10]
call fcn.0040fd2f
push ebx
mov eax, esi
call fcn.0040ff67
push edi
mov eax, esi
call fcn.0040ff67
push 1
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x220]
push eax
push str.runas
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push dword [ebp - 0x10]
call fcn.0044f520
pop ecx
jmp 0x40127c
push 1
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x220]
push eax
push str.runas
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x40127c
call fcn.0040129a
call fcn.0040137f
cmp byte [0x47e118], 0
mov esi, 0x47e6d8
jne 0x401260
mov eax, esi
call fcn.0040ba4b
push 1
mov ecx, 0x47e230
call fcn.0041b162
cmp byte [0x47e118], 0
jne 0x40127c
mov ecx, esi
call fcn.0040bf3f
mov edi, 0x47f058
call fcn.00408370
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402917
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
push 0xc
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
xor ebp, ebp
push ebp
mov edi, eax
push ebp
push edi
call esi
push eax
mov eax, dword [esp + 0x28]
push dword [eax]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call ebx
push 2
push ebp
push ebp
lea eax, [edi + 8]
push eax
call esi
push eax
mov eax, dword [esp + 0x30]
push dword [eax]
call esi
push eax
call ebx
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
push ebp
push ebp
push edi
push 0x402985
push ebp
push ebp
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x4037da
Capabilities:
Log keystrokes

Disassembly:
push ebx
push ebp
push edi
push 1
push dword [esi]
call fcn.00405123
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
xor ebp, ebp
push ebp
push 0x25
call edi
mov ebx, dword [sym.imp.USER32.dll_PostMessageA]
shl eax, 0x10
or eax, 1
cmp dword [esp + 0x10], ebp
push eax
jge 0x40382a
push 0x25
push 0x100
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x25
jmp 0x40384c
push 0x27
push 0x100
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x27
push 0x101
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
push dword [esi]
call fcn.00405123
pop edi
pop ebp
mov al, 1
pop ebx
ret 4

Function at 0x403c98
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xb0
push dword [ebx]
call esi
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jne 0x403cc5
xor al, al
jmp 0x403cd9
push edi
push 0
push 0
push 0xe
push dword [ebx]
call esi
mov edi, eax
test edi, edi
jne 0x403cdf
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
lea eax, [edi + 0x101]
push eax
call fcn.0044f4b6
pop ecx
push eax
mov dword [ebp - 4], eax
lea eax, [edi + 1]
push eax
push 0xd
push dword [ebx]
call esi
test eax, eax
je 0x403d2c
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x403d0c
mov ecx, dword [ebp - 4]
mov byte [ecx + eax], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
add ecx, eax
mov eax, dword [ebp + 8]
push ecx
call fcn.0040fea9
mov bl, 1
push dword [ebp - 4]
call fcn.0044f520
pop ecx
mov al, bl
jmp 0x403cd8
xor bl, bl
jmp 0x403d1f
Function at 0x405123
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 1
jne 0x40514e
lea eax, [ebp + 0xc]
push eax
push 0x1388
push 2
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
je 0x405169
push 1
jmp 0x405150
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop ebp
ret 8

Function at 0x4051bd
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
push 0
push 0
mov ebx, eax
push 0xe
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
test esi, esi
jne 0x4051db
mov esi, 0x7fff
push ebp
lea ebp, [esi + 1]
push ebp
call fcn.0044f4b6
pop ecx
mov edi, eax
push edi
push ebp
push 0xd
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
mov eax, dword [esp + 0x14]
mov byte [edi + esi], 0
pop ebp
jne 0x40521c
push 0x46ad3e
call fcn.0040fea9
xor bl, bl
push edi
call fcn.0044f520
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
ret 4
push edi
call fcn.0040fea9
mov bl, 1
jmp 0x40520d
Function at 0x405e0a
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x405e28
mov eax, dword [esp + 0xc]
cmp byte [eax + 5], 1
jne 0x405eaf
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push 0
push 0
push 0xe
push dword [esp + 0x24]
call ebx
mov esi, eax
test esi, esi
jne 0x405e47
mov esi, 0x7fff
lea ebp, [esi + 1]
push ebp
call fcn.0044f4b6
pop ecx
mov edi, eax
push edi
push ebp
push 0xd
push dword [esp + 0x24]
call ebx
test eax, eax
pop ebp
mov byte [edi + esi], 0
pop ebx
jg 0x405e75
xor esi, esi
inc esi
push edi
call fcn.0044f520
pop ecx
mov eax, esi
jmp 0x405eb2
mov esi, dword [esp + 0xc]
cmp byte [esi + 0xc], 0
jne 0x405e8e
push edi
call fcn.00451750
pop ecx
push eax
push edi
call dword [sym.imp.USER32.dll_CharUpperBuffA]
push dword [esi + 0x20]
push edi
call fcn.00451920
test eax, eax
pop ecx
pop ecx
je 0x405ea8
mov byte [esi + 0xac], 1
xor esi, esi
jmp 0x405e6a
push edi
call fcn.0044f520
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
ret 8
Function at 0x407d62
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10324
call fcn.00454c70
push ebx
xor ebx, ebx
push esi
push edi
push 0x400
mov byte [0x47f058], bl
mov byte [0x47f059], bl
mov byte [0x47f05a], bl
mov dword [0x47f05c], ebx
mov dword [0x47f060], ebx
mov dword [0x47f064], ebx
mov dword [0x47f068], ebx
mov dword [0x47f06c], 0x46eb28
mov dword [0x47f070], ebx
mov dword [0x47f074], ebx
mov dword [0x47f078], ebx
mov dword [0x47f07c], 0x46eb28
mov dword [0x47f080], ebx
mov dword [0x47f084], ebx
mov dword [0x47f088], ebx
mov dword [0x47f090], ebx
mov dword [0x47f098], ebx
call fcn.0044f4b6
pop ecx
mov dword [0x47f08c], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x118]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00451fc3
push esi
lea eax, [ebp - 0x21c]
push str.Include
push eax
call fcn.00452010
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00452145
lea edi, [esi + 1]
push edi
call fcn.0044f4b6
mov ecx, dword [0x47f08c]
mov edx, dword [0x47f090]
mov dword [ecx + edx*4], eax
mov ecx, dword [0x47f090]
mov eax, dword [0x47f08c]
mov eax, dword [eax + ecx*4]
inc dword [0x47f090]
lea ecx, [ebp - 0x118]
push ecx
push eax
call fcn.0044f360
add esp, 0x40
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push str.SoftwareAutoIt_v3AutoIt
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407fb8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10324]
push eax
push ebx
push ebx
push str.Include
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0xffff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407faf
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x10324], bl
mov byte [ebp + eax - 0x10323], bl
lea eax, [ebp - 0x10324]
mov byte [ebp - 0x118], bl
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, bl
mov byte [ebp - 4], al
mov byte [ebp - 3], bl
je 0x407f22
cmp al, 0x3b
je 0x407f22
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0044f370
pop ecx
pop ecx
jmp 0x407fa7
lea eax, [ebp - 0x118]
push eax
call fcn.00451750
test eax, eax
pop ecx
je 0x407f60
lea eax, [ebp - 0x118]
push eax
call fcn.00451750
pop ecx
lea ecx, [ebp - 0x118]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x407f60
lea eax, [ebp - 0x118]
push 0x46b458
push eax
call fcn.0044f370
pop ecx
pop ecx
push edi
call fcn.0044f4b6
mov ecx, dword [0x47f08c]
mov edx, dword [0x47f090]
mov dword [ecx + edx*4], eax
mov ecx, dword [0x47f090]
mov eax, dword [0x47f08c]
mov eax, dword [eax + ecx*4]
inc dword [0x47f090]
push esi
lea ecx, [ebp - 0x118]
push ecx
push eax
call fcn.00452170
mov eax, dword [ebp - 8]
add esp, 0x10
cmp byte [eax], bl
mov byte [ebp - 0x118], bl
je 0x407faf
inc dword [ebp - 8]
jmp 0x407ef8
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 0x47f058
pop ebx
leave
ret
Function at 0x408d97
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, eax
mov eax, dword [esi]
add ecx, eax
push edi
mov edi, dword [ecx]
add eax, 4
mov dword [esi], eax
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044f4b6
mov ecx, dword [esi]
add ecx, dword [ebp + 8]
lea ebx, [edi + edi]
push ebx
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.0044f8e0
mov eax, dword [ebp - 4]
add dword [esi], ebx
xor ecx, ecx
add esp, 0x10
cmp edi, ecx
mov word [ebx + eax], cx
jle 0x408df3
xor word [eax + ecx*2], di
inc ecx
cmp ecx, edi
jl 0x408dea
push eax
or eax, 0xffffffff
call fcn.0040f99d
push dword [ebp - 4]
mov esi, eax
call fcn.0044f520
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x409a29
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
push edi
push 5
pop eax
mov dword [0x47e230], eax
mov dword [0x47e234], eax
mov al, byte [0x47e34d]
xor ebx, ebx
neg al
push ebx
push 0x5b
mov dword [0x47e36c], ebx
mov byte [0x47e238], 1
mov byte [0x47e239], bl
mov dword [0x47e23c], ebx
sbb eax, eax
and eax, 0xffffff70
add eax, 0xa0
mov dword [0x47e37c], eax
call esi
push ebx
push 0x10
mov byte [0x47e379], al
call esi
push ebx
push dword [0x47e37c]
mov byte [0x47e376], al
call esi
push ebx
push 0xa1
mov byte [0x47e377], al
call esi
push ebx
push 0x11
mov byte [0x47e378], al
call esi
push ebx
push 0x12
mov byte [0x47e374], al
call esi
mov byte [0x47e375], al
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
xor edi, edi
inc edi
lea esi, [edi + 0x474718]
movzx eax, byte [esi]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
cmp ax, 0xffff
jne 0x409ae1
mov byte [esi], 0x20
inc edi
cmp edi, 7
jle 0x409ac8
lea eax, [ebp - 8]
push str.0409
push eax
call fcn.004514b0
test eax, eax
pop ecx
pop ecx
pop edi
pop esi
pop ebx
jne 0x409b29
push 4
lea eax, [ebp - 0xc]
push str.0002
push eax
call fcn.004517db
add esp, 0xc
test eax, eax
mov byte [0x47471a], 0x20
mov byte [0x47471d], 0x20
je 0x409bbb
jmp 0x409ba6
lea eax, [ebp - 8]
push str.0809
push eax
call fcn.004514b0
test eax, eax
pop ecx
pop ecx
jne 0x409b46
mov byte [0x47471a], 0x20
jmp 0x409b9f
lea eax, [ebp - 6]
push 0x46ba04
push eax
call fcn.004514b0
test eax, eax
pop ecx
pop ecx
jne 0x409b63
mov byte [0x47471d], 0x20
jmp 0x409bb4
lea eax, [ebp - 6]
push 0x46ba08
push eax
call fcn.004514b0
test eax, eax
pop ecx
pop ecx
je 0x409b3d
lea eax, [ebp - 6]
push 0x46ba0c
push eax
call fcn.004514b0
test eax, eax
pop ecx
pop ecx
je 0x409bb4
lea eax, [ebp - 6]
push 0x46ba10
push eax
call fcn.004514b0
test eax, eax
pop ecx
pop ecx
jne 0x409bbb
mov byte [0x47471d], 0x20
mov byte [0x47471e], 0x20
mov byte [0x47471b], 0x20
mov byte [0x47471c], 0x20
leave
ret
Function at 0x409dc8
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp ebx, edi
jne 0x409de2
mov eax, dword [ebp + 8]
cmp byte [eax + 9], 0
je 0x409eb8
push esi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], eax
je 0x409e83
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [ebp - 4]
mov dword [0x47f508], eax
call esi
test ebx, ebx
mov dword [ebp + 0xc], eax
je 0x409e55
lea eax, [ebp - 0xc]
push eax
push ebx
call edi
mov ecx, dword [0x47f508]
cmp ecx, eax
mov dword [0x47f504], eax
je 0x409e4a
push 1
push eax
push ecx
call esi
mov dword [ebp - 8], eax
mov eax, dword [0x47f504]
push 1
push eax
push dword [ebp - 4]
call esi
mov dword [ebp - 0xc], eax
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jne 0x409eb7
cmp dword [ebp - 8], ecx
jne 0x409eb7
cmp dword [ebp - 0xc], ecx
jne 0x409eb7
mov eax, dword [0x47f508]
cmp dword [ebp - 4], eax
jne 0x409eb7
cmp eax, dword [0x47f504]
jne 0x409eb7
mov eax, dword [ebp + 8]
mov dword [eax + 0x140], ecx
jmp 0x409eb7
cmp ebx, edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x409eab
push edi
push dword [0x47f504]
push eax
call esi
mov ecx, dword [0x47f508]
mov eax, dword [0x47f504]
cmp ecx, eax
je 0x409eab
push edi
push eax
push ecx
call esi
push edi
push dword [0x47f508]
push dword [ebp - 4]
call esi
pop esi
pop edi
leave
ret 8

Function at 0x409ed4
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
cmp byte [ebp + 0xc], al
mov byte [ebp - 1], al
je 0x409f2c
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
push 0
push 0
push dword [ebp + 8]
call esi
push eax
push dword [ebp + 8]
call fcn.00409ebd
mov edi, dword [ebx + 4]
push ebx
call fcn.0040b017
push 2
push 0
push dword [ebp + 8]
call esi
push eax
push dword [ebp + 8]
call fcn.00409ebd
mov edi, dword [ebx]
push ebx
call fcn.0040b017
mov al, byte [ebp - 1]
pop edi
pop esi
leave
ret 8