joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4081d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x4081d7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x4082b4
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41f968]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x41f968]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x41f968]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41f968]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41f968]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41f968]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41f968]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x41f968]
inc ecx
sub edx, 8
sub esi, 1
jne 0x4081f0
pop edi
test edx, edx
je 0x4082db
jmp 0x4082c0
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x41f968]
inc ecx
sub edx, 1
jne 0x4082c0
not eax
pop esi
ret

Function at 0x4082e0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x41f968]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x41f968]
mov dword [edx + 8], ecx
ret

Function at 0x408330
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x41f968]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x41f968]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x408a40
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x408a72
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408a68
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x408a85
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.00410070
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x408aa0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x408ad3
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408acd
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x408aff
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x408ae5
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.00410070
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x408b16
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x408b10
cmp byte [esi + 8], 0
je 0x408b10
or eax, 0xffffffff
add esp, 8
ret
Function at 0x408bb0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x408bf5
cmp byte [esi + 1], 0
je 0x408bfd
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x408c12
cmp byte [esi + 1], 0
je 0x408c04
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x408c1b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x408bce
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x408c1b
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x408c2f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.0040a7d2
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x408c4d
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x408d61
jmp 0x408c70
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x408c81
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x408c9a
mov ebp, 0x404
cmp byte [esi], 0
je 0x408cbf
cmp byte [esi + 1], 0
je 0x408d61
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x408cc2
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x408cea
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408ce4
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x408d10
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x408cfb
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.00410070
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x408d61
lea eax, [ebp - 3]
test eax, eax
jl 0x408d4c
dec eax
cmp byte [eax + ebx], 0x50
jne 0x408d3c
cmp byte [eax + ebx + 1], 0x4b
jne 0x408d3c
cmp byte [eax + ebx + 2], 5
jne 0x408d3c
cmp byte [eax + ebx + 3], 6
je 0x408d42
test eax, eax
jge 0x408d20
jmp 0x408d4c
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x408d61
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x408c64
push ebx
call fcn.0040a89c
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x409730
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x40974e
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x409742
cmp dword [edi + 0x7c], ebx
je 0x40975d
call fcn.00409b20
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004094a0
add esp, 0xc
test eax, eax
je 0x409784
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x84
call fcn.0040a7d2
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4097c5
push 0x4000
call fcn.0040a7d2
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x4097d2
push esi
call fcn.0040a89c
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x40981a
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.004085f0
test eax, eax
jne 0x40981a
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x409844
mov cl, byte [edi + 0x39]
mov byte [esi + 0x80], cl
jmp 0x40984d
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x80], dl
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [esi + 0x70]
mov dword [esi + 0x7c], eax
mov dword [edx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
cmp ebp, ebx
je 0x409887
mov cl, byte [ebp]
cmp cl, bl
je 0x409887
call fcn.004082e0
add ebp, 1
jne 0x409876
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x409c80
Capabilities:
Get common file path

Disassembly:
cmp dword [esi], 0
push edi
jne 0x409d33
cmp dword [esi + 4], 0xffffffff
jne 0x409d33
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
jmp 0x409cb0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409cb0
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x409ce9
cmp ax, 0x2f
je 0x409ce9
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x409cd6
mov eax, dword [0x41dc60]
mov dword [edi], eax
push 0x20
call fcn.0040b4fb
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add esp, 4
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 0x10], 0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], 0
mov dword [eax + 0xc], 0
call fcn.00408d80
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
ret 8
mov eax, 0x1000000
pop edi
ret 8

Function at 0x40a5bc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422044]
jne 0x40a5c6
repz ret
jmp fcn.0040c424

Function at 0x413d03
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040c784
and dword [ebp - 4], 0
cmp dword [0x424444], 0
mov ebx, eax
jne 0x413db4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413e65
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413e65
push eax
call fcn.0040c712
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x424444], eax
call esi
push eax
call fcn.0040c712
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x424448], eax
call esi
push eax
call fcn.0040c712
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42444c], eax
call esi
push eax
call fcn.0040c712
pop ecx
mov dword [0x424454], eax
test eax, eax
je 0x413db4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040c712
pop ecx
mov dword [0x424450], eax
mov eax, dword [0x424450]
cmp eax, ebx
je 0x413e0c
cmp dword [0x424454], ebx
je 0x413e0c
push eax
call fcn.0040c78d
push dword [0x424454]
mov esi, eax
call fcn.0040c78d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413e0c
test edi, edi
je 0x413e0c
call esi
test eax, eax
je 0x413e03
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413e03
test byte [ebp - 0xc], 1
jne 0x413e0c
or dword [ebp + 0x10], 0x200000
jmp 0x413e45
mov eax, dword [0x424448]
cmp eax, ebx
je 0x413e45
push eax
call fcn.0040c78d
pop ecx
test eax, eax
je 0x413e45
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413e45
mov eax, dword [0x42444c]
cmp eax, ebx
je 0x413e45
push eax
call fcn.0040c78d
pop ecx
test eax, eax
je 0x413e45
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x424444]
call fcn.0040c78d
pop ecx
test eax, eax
je 0x413e65
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413e67
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4093c0
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 0x4093f9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042e8
jmp 0x409402
mov eax, ebx
mov edx, esi
call fcn.0040424c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x409ab4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40992c
mov eax, dword [0x44ee30]
cmp byte [eax], 0
je 0x409b1c
mov eax, dword [0x44ec94]
call fcn.00402c38
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004085f8
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 0x409b64
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409b52
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x44ec54]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x44f714]
call fcn.004058e4
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 0x40a5bc
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 0x40a620
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.00404460
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408338
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a627
lea eax, [ebp - 0xc]
call fcn.004041f8
ret
Function at 0x41c1c4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x44fa20
cmp dword [edi], 0
jne 0x41c240
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x44fa1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x44e4bc
mov ecx, 2
call fcn.004028c0
mov edx, 0x41c19c
lea eax, [esi + 5]
call fcn.0041c1bc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041c1bc
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 0x41c215
mov dword [0x44fa1c], 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 0x41d3cc
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 0x41d3d2
ret

Function at 0x41f7d4
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 0x41f825
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41f80c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41f7fc
jmp 0x41f825
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 0x41f80d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427dfc
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 0x427d48
call sub.user32.dll_EnumWindows
ret

Function at 0x427f20
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 0x427f9d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042796c
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 0x427f45
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.004275c4
cmp dword [ebp - 4], 0
je 0x427f87
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004046a8
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 0x427fa4
lea eax, [ebp - 4]
call fcn.004041f8
ret

Function at 0x42ab78
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 [0x44fba8], 0
je 0x42acc7
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x44eddc]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42acc7
mov eax, dword [0x44fbac]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x44fba8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42ac96
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x44fba8]
call fcn.00413840
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42ac8e
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42ac8e
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42ac8e
mov eax, dword [ebp - 0x14]
call fcn.00433634
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42ac8e
push ebp
call fcn.0042ab34
pop ecx
test al, al
jne 0x42ac8e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42ac4a
mov eax, dword [ebp - 0x14]
call fcn.004321c8
dec eax
jle 0x42ac8e
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.004036a0
cmp byte [ebp - 1], 0
je 0x42ac8e
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42ac8e
mov edx, dword [ebp - 0x14]
mov eax, dword [0x44fbac]
call fcn.0042a2fc
inc edi
dec ebx
jne 0x42abdd
mov eax, dword [0x44fbac]
cmp dword [eax + 8], 0
jle 0x42acae
mov eax, dword [0x44fbac]
call fcn.0042a38c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42acc7
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042a99c
pop ecx
test al, al
jne 0x42acc7
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 0x42e274
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 0x42e2c0
mov eax, esi
call fcn.00443a70
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42e2c0
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x42e2c0
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 0x42e404
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x42e300
cmp eax, 0x108
ja 0x42e300
mov eax, esi
call fcn.00443a70
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42e3fb
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x42e404
jmp 0x42e3fb
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x42e3e2
cmp eax, 0x20a
ja 0x42e3e2
test byte [esi + 0x50], 0x80
jne 0x42e332
sub eax, 0x203
je 0x42e32f
sub eax, 3
je 0x42e32f
sub eax, 3
jne 0x42e332
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x42e346
dec eax
je 0x42e35b
dec eax
je 0x42e37b
dec eax
je 0x42e35b
jmp 0x42e382
mov ecx, ebx
mov eax, dword [0x44eddc]
mov eax, dword [eax]
mov edx, esi
call fcn.0044d0a4
jmp 0x42e3fb
cmp byte [esi + 0x5d], 1
jne 0x42e371
mov eax, esi
mov si, 0xffed
call fcn.004036a0
jmp 0x42e404
or word [esi + 0x54], 1
jmp 0x42e3fb
and word [esi + 0x54], 0xfffe
jmp 0x42e3fb
mov eax, dword [0x44fb64]
cmp byte [eax + 0x20], 0
je 0x42e3fb
mov eax, dword [0x44fb64]
cmp dword [eax + 0x1c], 0
je 0x42e3fb
mov eax, dword [ebx]
mov edx, dword [0x44fb64]
cmp eax, dword [edx + 0x1c]
jne 0x42e3fb
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.004439b4
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.004036a0
jmp 0x42e404
mov eax, dword [ebx]
cmp eax, 0xb00b
jne 0x42e3fb
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0042cbb0
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