joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475750
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4757aa
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.00475740
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00464cac
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004648ac
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4757b1
lea eax, [ebp - 4]
call fcn.0040444c
ret

Function at 0x47909c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4162b8]
call fcn.00405000
xor eax, eax
push ebp
push 0x4791e0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x49d6cc], 0
jne 0x4790ef
mov ecx, dword [0x4a1154]
mov dl, 1
mov eax, dword [0x407b2c]
call fcn.0040c724
call fcn.00403dc0
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402f60
mov eax, ebx
call fcn.00404cbc
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4791f0
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.004061d0
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404ccc
test eax, eax
jle 0x479187
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x479180
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004046d4
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004046bc
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004089bc
test eax, eax
jne 0x479180
mov ebx, 0x15
jmp 0x47918c
mov ebx, 0x10
jmp 0x47918c
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x49d6cc]
call fcn.00478ff4
mov eax, dword [ebp - 8]
call fcn.00478ff4
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004061e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4791e7
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404470
lea eax, [ebp - 0x10]
mov edx, dword [0x4162b8]
call fcn.004050d0
ret
Function at 0x487aa4
Capabilities:
Hash data using sha1

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00487798
mov dword [ebx + 0xc], 0x67452301
mov dword [ebx + 0x10], 0xefcdab89
mov dword [ebx + 0x14], 0x98badcfe
mov dword [ebx + 0x18], 0x10325476
mov dword [ebx + 0x1c], 0xc3d2e1f0
pop ebx
ret

Function at 0x499550
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe4
mov dword [esp + 4], edx
mov dword [esp], eax
cmp dword [esp], 0
jne 0x499572
mov eax, dword [esp + 4]
call fcn.0040444c
jmp 0x49970e
mov eax, dword [esp]
call fcn.0040470c
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add eax, 2
mov ecx, 3
cdq
idiv ecx
shl eax, 2
mov dword [esp + 0x10], eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x10]
xor edx, edx
call fcn.0040453c
mov ebp, 1
mov dword [esp + 8], 1
cmp ebp, dword [esp + 0xc]
jg 0x4996d4
xor esi, esi
lea edi, [esp + 0x14]
lea eax, [ebp + esi]
cmp eax, dword [esp + 0xc]
jle 0x4995cf
mov byte [edi], 0
jmp 0x4995dc
lea eax, [ebp + esi]
mov edx, dword [esp]
mov al, byte [edx + eax - 1]
mov byte [edi], al
inc esi
inc edi
cmp esi, 3
jne 0x4995c0
xor eax, eax
mov al, byte [esp + 0x14]
shr eax, 2
mov byte [esp + 0x17], al
mov al, byte [esp + 0x14]
shl eax, 4
xor edx, edx
mov dl, byte [esp + 0x15]
shr edx, 4
or al, dl
and al, 0x3f
mov byte [esp + 0x18], al
mov al, byte [esp + 0x15]
shl eax, 2
xor edx, edx
mov dl, byte [esp + 0x16]
shr edx, 6
or al, dl
and al, 0x3f
mov byte [esp + 0x19], al
mov al, byte [esp + 0x16]
and al, 0x3f
mov byte [esp + 0x1a], al
mov esi, 4
lea ebx, [esp + 0x17]
mov al, byte [ebx]
sub al, 0x1a
jb 0x499647
sub al, 0x1a
jb 0x499661
sub al, 0xa
je 0x49967b
dec al
je 0x49968f
jmp 0x4996a3
mov eax, dword [esp + 4]
call fcn.00404964
mov edx, dword [esp + 8]
xor ecx, ecx
mov cl, byte [ebx]
add ecx, 0x41
mov byte [eax + edx - 1], cl
jmp 0x4996bb
mov eax, dword [esp + 4]
call fcn.00404964
mov edx, dword [esp + 8]
xor ecx, ecx
mov cl, byte [ebx]
add ecx, 0x47
mov byte [eax + edx - 1], cl
jmp 0x4996bb
mov eax, dword [esp + 4]
call fcn.00404964
mov edx, dword [esp + 8]
mov byte [eax + edx - 1], 0x2b
jmp 0x4996bb
mov eax, dword [esp + 4]
call fcn.00404964
mov edx, dword [esp + 8]
mov byte [eax + edx - 1], 0x2f
jmp 0x4996bb
mov eax, dword [esp + 4]
call fcn.00404964
mov edx, dword [esp + 8]
xor ecx, ecx
mov cl, byte [ebx]
sub ecx, 4
mov byte [eax + edx - 1], cl
inc dword [esp + 8]
inc ebx
dec esi
jne 0x499633
add ebp, 3
cmp ebp, dword [esp + 0xc]
jle 0x4995ba
mov eax, dword [esp + 0xc]
mov ecx, 3
cdq
idiv ecx
mov esi, 3
sub esi, edx
dec esi
cmp esi, 2
je 0x49970e
mov ebp, dword [esp + 0x10]
sub ebp, esi
mov ebx, dword [esp + 0x10]
sub ebx, ebp
jl 0x49970e
inc ebx
mov eax, dword [esp + 4]
call fcn.00404964
mov byte [eax + ebp - 1], 0x3d
inc ebp
dec ebx
jne 0x4996fc
add esp, 0x1c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x499718
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe4
mov dword [esp], edx
mov ebp, eax
test ebp, ebp
jne 0x499735
mov eax, dword [esp]
call fcn.0040444c
jmp 0x4998cf
mov eax, ebp
call fcn.0040470c
mov dword [esp + 8], eax
test byte [esp + 8], 3
je 0x49975d
mov ecx, 0x4998e0
mov dl, 1
mov eax, dword [0x407b2c]
call fcn.0040c668
call fcn.00403dc0
mov eax, dword [esp + 8]
shr eax, 2
lea eax, [eax + eax*2]
mov dword [esp + 0xc], eax
mov eax, dword [esp]
mov ecx, dword [esp + 0xc]
xor edx, edx
call fcn.0040453c
mov esi, 1
mov dword [esp + 4], 1
cmp esi, dword [esp + 8]
jg 0x4998a3
mov edi, 4
lea ebx, [esp + 0x10]
xor eax, eax
mov al, byte [ebp + esi - 1]
cmp eax, 0x3d
jg 0x4997b8
je 0x4997f2
sub eax, 0x2b
je 0x4997e8
sub eax, 4
je 0x4997ed
dec eax
sub eax, 0xa
jb 0x4997de
jmp 0x4997f7
add eax, 0xffffffbf
sub eax, 0x1a
jb 0x4997ca
add eax, 0xfffffffa
sub eax, 0x1a
jb 0x4997d4
jmp 0x4997f7
mov al, byte [ebp + esi - 1]
sub al, 0x41
mov byte [ebx], al
jmp 0x499823
mov al, byte [ebp + esi - 1]
sub al, 0x47
mov byte [ebx], al
jmp 0x499823
mov al, byte [ebp + esi - 1]
add al, 4
mov byte [ebx], al
jmp 0x499823
mov byte [ebx], 0x3e
jmp 0x499823
mov byte [ebx], 0x3f
jmp 0x499823
mov byte [ebx], 0
jmp 0x499823
xor eax, eax
mov al, byte [ebp + esi - 1]
mov dword [esp + 0x14], eax
mov byte [esp + 0x18], 0
lea eax, [esp + 0x14]
push eax
push 0
mov ecx, 0x499900
mov dl, 1
mov eax, dword [0x407b2c]
call fcn.0040c6a4
call fcn.00403dc0
inc esi
inc ebx
dec edi
jne 0x499799
mov eax, dword [esp]
call fcn.00404964
mov edx, dword [esp + 4]
xor ecx, ecx
mov cl, byte [esp + 0x10]
shl ecx, 2
xor ebx, ebx
mov bl, byte [esp + 0x11]
shr ebx, 4
or ecx, ebx
mov byte [eax + edx - 1], cl
mov eax, dword [esp]
call fcn.00404964
mov edx, dword [esp + 4]
xor ecx, ecx
mov cl, byte [esp + 0x11]
shl ecx, 4
xor ebx, ebx
mov bl, byte [esp + 0x12]
shr ebx, 2
or ecx, ebx
mov byte [eax + edx], cl
mov eax, dword [esp]
call fcn.00404964
mov edx, dword [esp + 4]
xor ecx, ecx
mov cl, byte [esp + 0x12]
shl ecx, 6
xor ebx, ebx
mov bl, byte [esp + 0x13]
or ecx, ebx
mov byte [eax + edx + 1], cl
add dword [esp + 4], 3
cmp esi, dword [esp + 8]
jle 0x499790
mov edx, ebp
mov eax, 0x499924
call fcn.00404a50
mov esi, eax
test esi, esi
je 0x4998cf
mov eax, dword [esp + 8]
sub eax, esi
inc eax
mov esi, eax
mov edx, dword [esp + 0xc]
sub edx, esi
inc edx
mov eax, dword [esp]
mov ecx, esi
call fcn.004049ac
add esp, 0x1c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x499c70
Capabilities:
Hash data using sha1

Disassembly:
push ebx
mov ebx, eax
xor eax, eax
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [ebx + 0x18], eax
xor eax, eax
mov dword [ebx + 0x5c], eax
lea eax, [ebx + 0x1c]
xor ecx, ecx
mov edx, 0x40
call fcn.00402f60
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
mov dword [ebx + 0x10], 0xc3d2e1f0
pop ebx
ret
Function at 0x402b58
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004042d0
test esi, esi
jne 0x402b8e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004043c0
jmp 0x402bac
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a0c
mov edi, eax
test esi, esi
je 0x402bac
cmp dword [ebx], 0
je 0x402bac
dec esi
jmp 0x402b95
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403310
Capabilities:
Query or enumerate registry value

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

Function at 0x404154
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4bd04c], 0
je 0x4041b5
cmp word [0x4bd220], 0xd7b2
jne 0x40417d
cmp dword [0x4bd228], 0
jbe 0x40417d
mov eax, 0x4bd21c
call dword [0x4bd238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ba06c
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 0x4041dc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ba030], 0
jne 0x4041d1
push 0
push 0x4ba064
push 0x4ba06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4066e8
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 0x40674e
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.00404540
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ed4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406738
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406755
lea eax, [ebp - 0x10]
call fcn.004042d0
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404790
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4093d1
test al, 0x10
jne 0x4093d5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c95c
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 0x40c995
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004043c0
jmp 0x40c99e
mov eax, ebx
mov edx, esi
call fcn.00404324
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40d050
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cec8
mov eax, dword [0x4bc978]
cmp byte [eax], 0
je 0x40d0cc
mov eax, dword [0x4bc628]
call fcn.00402c98
call fcn.00402938
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.0040960c
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 0x40d114
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d102
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4bc590]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4bd668]
call fcn.00405be0
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 0x40d9d4
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 0x40daaa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404368
lea eax, [ebp - 8]
call fcn.004047e0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404790
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40da94
mov eax, ebx
call fcn.004027d0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40da8d
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.00404790
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40da77
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40dabc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40da77
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 0x40da94
mov eax, dword [ebp - 0x10]
call fcn.004027f0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dab1
lea eax, [ebp - 8]
call fcn.004042d0
ret

Function at 0x40df28
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 0x40df8c
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.00404540
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409090
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40df93
lea eax, [ebp - 0xc]
call fcn.004042d0
ret

Function at 0x424a10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4bd888
cmp dword [edi], 0
jne 0x424a8c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4bd884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4ba6cc
mov ecx, 2
call fcn.004029cc
mov edx, 0x4249e8
lea eax, [esi + 5]
call fcn.00424a08
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00424a08
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 0x424a61
mov dword [0x4bd884], 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 0x425ca8
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 0x425cae
ret
Function at 0x4281ac
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 0x4281fd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4281e4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4281d4
jmp 0x4281fd
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 0x4281e5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43bf88
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 0x43bed4
call sub.user32.dll_EnumWindows
ret

Function at 0x43c0a8
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 0x43c125
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0043bb08
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 0x43c0cd
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0043b708
cmp dword [ebp - 4], 0
je 0x43c10f
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404790
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 0x43c12c
lea eax, [ebp - 4]
call fcn.004042d0
ret

Function at 0x43f44c
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 [0x4bdb58], 0
je 0x43f59b
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4bc8d8]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x43f59b
mov eax, dword [0x4bdb5c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4bdb58]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x43f56a
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4bdb58]
call fcn.0041d708
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43f562
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x43f562
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x43f562
mov eax, dword [ebp - 0x14]
call fcn.004480e4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43f562
push ebp
call fcn.0043f408
pop ecx
test al, al
jne 0x43f562
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x43f51e
mov eax, dword [ebp - 0x14]
call fcn.00446c14
dec eax
jle 0x43f562
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.0040369c
cmp byte [ebp - 1], 0
je 0x43f562
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43f562
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4bdb5c]
call fcn.0043ebd4
inc edi
dec ebx
jne 0x43f4b1
mov eax, dword [0x4bdb5c]
cmp dword [eax + 8], 0
jle 0x43f582
mov eax, dword [0x4bdb5c]
call fcn.0043ec64
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43f59b
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0043f270
pop ecx
test al, al
jne 0x43f59b
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 0x442b7c
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 0x442bc8
mov eax, esi
call fcn.0045886c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x442bc8
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x442bc8
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 0x442d07
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x442c08
cmp eax, 0x108
ja 0x442c08
mov eax, esi
call fcn.0045886c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x442cfe
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x442d07
jmp 0x442cfe
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x442ce7
cmp eax, 0x20a
ja 0x442ce7
test byte [esi + 0x50], 0x80
jne 0x442c3a
sub eax, 0x203
je 0x442c37
sub eax, 3
je 0x442c37
sub eax, 3
jne 0x442c3a
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x442c4e
dec eax
je 0x442c63
dec eax
je 0x442c80
dec eax
je 0x442c63
jmp 0x442c87
mov ecx, ebx
mov eax, dword [0x4bc8d8]
mov eax, dword [eax]
mov edx, esi
call fcn.00462028
jmp 0x442cfe
cmp byte [esi + 0x5d], 1
jne 0x442c79
mov eax, esi
mov si, 0xffed
call fcn.0040369c
jmp 0x442d07
or word [esi + 0x54], 1
jmp 0x442cfe
and word [esi + 0x54], 0xfffe
jmp 0x442cfe
mov eax, dword [0x4bdb14]
cmp byte [eax + 0x20], 0
je 0x442cfe
mov eax, dword [0x4bdb14]
cmp dword [eax + 0x1c], 0
je 0x442cfe
mov eax, dword [ebx]
mov edx, dword [0x4bdb14]
cmp eax, dword [edx + 0x1c]
jne 0x442cfe
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.004587b0
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.0040369c
jmp 0x442d07
cmp eax, 0xb00b
jne 0x442cfe
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0044149c
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