joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ec10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
or eax, eax
je 0x43ec75
push dword [ebp + 8]
push 0
push 0x486ab0
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetTempFileNameA
or eax, eax
je 0x43ec75
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x43ec75
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, 1
leave
ret 8
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
xor eax, eax
leave
ret 8

Function at 0x43ec90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec4
push esi
push edi
push ebx
lea eax, [ebp - 0x118]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
or eax, eax
je 0x43ed5a
call fcn.0043ff78
call sub.kernel32.dll_GetCurrentProcessId
mov dword [ebp - 0x14], eax
push 4
lea eax, [ebp - 0x14]
push eax
call fcn.0043ffb8
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_GetSystemTime
push 0x10
lea eax, [ebp - 0x10]
push eax
call fcn.0043ffb8
inc dword [0x644ed0]
push 4
push 0x644ed0
call fcn.0043ffb8
call fcn.00440018
mov ecx, eax
lea eax, [ebp - 0x139]
push eax
push 0x10
push ecx
call fcn.00441c70
mov ecx, dword [ebp + 0xc]
or ecx, ecx
jne 0x43ed16
lea ecx, [0x443433]
mov edx, dword [ebp + 0x10]
or edx, edx
jne 0x43ed23
lea edx, [0x443430]
mov esi, dword [ebp + 8]
mov byte [esi], 0
push edx
push 0x486ac0
push ecx
lea eax, [ebp - 0x139]
push eax
push 0x443430
lea eax, [ebp - 0x118]
push eax
push esi
push 6
call fcn.0043deb0
add esp, 0x20
mov eax, 1
pop ebx
pop edi
pop esi
leave
ret 0xc
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x43ee30
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf4
push 0x104
push 0x644ee0
push dword [ebp + 8]
call sub.kernel32.dll_GetModuleFileNameA
push 0x644fe4
push 0x644ee0
call fcn.0043dfc0
push 0
push 0
push 0
push 0
push 0x644fe4
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x404], eax
cmp dword [ebp - 0x404], 0xffffffff
jne 0x43ee81
xor eax, eax
leave
ret 0xc
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x404]
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 0xffffffff
jne 0x43eeb7
push dword [ebp - 0x404]
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
leave
ret 0xc
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push dword [ebp + 0x10]
call sub.kernel32.dll_CreateFileA
mov dword [0x6450e8], eax
cmp dword [0x6450e8], 0xffffffff
jne 0x43eefb
push dword [ebp - 0x408]
call sub.wininet.dll_InternetCloseHandle
push dword [ebp - 0x404]
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
leave
ret 0xc
push 0
push 0
push 0
push dword [0x6450e8]
call sub.kernel32.dll_SetFilePointer
lea eax, [ebp - 0x40c]
push eax
push 0x400
lea eax, [ebp - 0x400]
push eax
push dword [ebp - 0x408]
call sub.wininet.dll_InternetReadFile
cmp dword [ebp - 0x40c], 0
je 0x43ef54
push 0
push 0x6450ec
push dword [ebp - 0x40c]
lea eax, [ebp - 0x400]
push eax
push dword [0x6450e8]
call sub.kernel32.dll_WriteFile
jmp 0x43ef0c
push dword [0x6450e8]
call sub.kernel32.dll_CloseHandle
push dword [ebp - 0x408]
call sub.wininet.dll_InternetCloseHandle
push dword [ebp - 0x404]
call sub.wininet.dll_InternetCloseHandle
mov eax, 1
leave
ret 0xc

Function at 0x43f040
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x43f06c
xor eax, eax
leave
ret 0xc
push 0
push dword [ebp - 4]
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
inc ecx
push ecx
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_ReadFile
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, 1
leave
ret 0xc
Function at 0x43f2c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x43f2ec
xor eax, eax
leave
ret 0xc
cmp dword [ebp + 0x10], 0
jbe 0x43f306
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, 1
leave
ret 0xc

Function at 0x43f440
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb0
push esi
push edi
push ebx
cmp dword [ebp + 0x14], 1
je 0x43f462
cmp dword [ebp + 0x14], 2
je 0x43f462
or eax, 0xffffffff
pop ebx
pop edi
pop esi
leave
ret 0x10
lea edi, [ebp - 0x38]
xor al, al
mov ecx, 0x38
rep stosb byte es:[edi], al
mov dword [ebp - 0x4c], 0
push dword [ebp + 8]
pop dword [ebp - 0x38]
push dword [ebp + 0xc]
pop dword [ebp - 0x34]
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x400
lea edi, [ebp - 0x38]
cmp dword [ebp + 0x14], 1
jne 0x43f4ac
push 0x38
push 0x486af0
push edi
call sub.zlib1.dll_inflateInit_
add esp, 0xc
jmp 0x43f4be
push 0x38
push 0x486af0
push 0xf
push edi
call sub.zlib1.dll_inflateInit2_
add esp, 0x10
or eax, eax
je 0x43f4cc
or eax, 0xffffffff
pop ebx
pop edi
pop esi
leave
ret 0x10
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push dword [ebp + 0x10]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x43f4f5
or eax, 0xffffffff
pop ebx
pop edi
pop esi
leave
ret 0x10
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], 0
jmp 0x43f540
cmp dword [ebp - 0x28], 0
jne 0x43f532
add dword [ebp - 0x4c], 0x400
lea ebx, [ebp - 0x44c]
push 0
lea eax, [ebp - 0x48]
push eax
push 0x400
push ebx
push dword [ebp - 0x3c]
call sub.kernel32.dll_WriteFile
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 0x400
push 0
push edi
call sub.zlib1.dll_inflate
add esp, 8
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x34], 0
jbe 0x43f54c
cmp dword [ebp - 0x40], 2
jb 0x43f501
mov byte [ebp - 0x44d], 0
jmp 0x43f5b5
mov eax, 0x400
sub eax, dword [ebp - 0x28]
mov dword [ebp - 0x44], eax
add dword [ebp - 0x4c], eax
cmp dword [ebp - 0x44], 0
jbe 0x43f58b
lea ebx, [ebp - 0x44c]
push 0
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x44]
push ebx
push dword [ebp - 0x3c]
call sub.kernel32.dll_WriteFile
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 0x400
cmp byte [ebp - 0x44d], 1
je 0x43f5bb
push 4
push edi
call sub.zlib1.dll_inflate
add esp, 8
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x28], 0
ja 0x43f5ae
cmp dword [ebp - 0x40], 1
jne 0x43f5b5
mov byte [ebp - 0x44d], 1
cmp dword [ebp - 0x40], 2
jb 0x43f555
push dword [ebp - 0x3c]
call sub.kernel32.dll_CloseHandle
push edi
call sub.zlib1.dll_inflateEnd
add esp, 4
or eax, eax
je 0x43f5d5
cmp eax, 1
jne 0x43f5df
mov eax, dword [ebp - 0x4c]
pop ebx
pop edi
pop esi
leave
ret 0x10
or eax, 0xffffffff
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x43f5f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb4
push esi
push edi
push ebx
cmp dword [ebp + 0x14], 1
je 0x43f612
cmp dword [ebp + 0x14], 2
je 0x43f612
or eax, 0xffffffff
pop ebx
pop edi
pop esi
leave
ret 0x10
lea edi, [ebp - 0x38]
xor al, al
mov ecx, 0x38
rep stosb byte es:[edi], al
mov dword [ebp - 0x48], 0
push dword [ebp + 8]
pop dword [ebp - 0x38]
push dword [ebp + 0xc]
pop dword [ebp - 0x34]
lea eax, [ebp - 0x448]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x400
lea edi, [ebp - 0x38]
cmp dword [ebp + 0x14], 1
jne 0x43f65c
push 0x38
push str.1.2.3
push edi
call sub.zlib1.dll_inflateInit_
add esp, 0xc
jmp 0x43f66e
push 0x38
push str.1.2.3
push 0xf
push edi
call sub.zlib1.dll_inflateInit2_
add esp, 0x10
or eax, eax
je 0x43f67c
or eax, 0xffffffff
pop ebx
pop edi
pop esi
leave
ret 0x10
mov dword [ebp - 0x3c], 0
jmp 0x43f6c4
cmp dword [ebp - 0x28], 0
jne 0x43f6b6
add dword [ebp - 0x48], 0x400
lea ebx, [ebp - 0x448]
push 0
lea eax, [ebp - 0x44]
push eax
push 0x400
push ebx
push dword [ebp + 0x10]
call sub.kernel32.dll_WriteFile
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 0x400
push 0
push edi
call sub.zlib1.dll_inflate
add esp, 8
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x34], 0
jbe 0x43f6d0
cmp dword [ebp - 0x3c], 2
jb 0x43f685
mov byte [ebp - 0x449], 0
jmp 0x43f739
mov eax, 0x400
sub eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
add dword [ebp - 0x48], eax
cmp dword [ebp - 0x40], 0
jbe 0x43f70f
lea ebx, [ebp - 0x448]
push 0
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x40]
push ebx
push dword [ebp + 0x10]
call sub.kernel32.dll_WriteFile
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 0x400
cmp byte [ebp - 0x449], 1
je 0x43f73f
push 4
push edi
call sub.zlib1.dll_inflate
add esp, 8
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x28], 0
ja 0x43f732
cmp dword [ebp - 0x3c], 1
jne 0x43f739
mov byte [ebp - 0x449], 1
cmp dword [ebp - 0x3c], 2
jb 0x43f6d9
push edi
call sub.zlib1.dll_inflateEnd
add esp, 4
or eax, eax
je 0x43f751
cmp eax, 1
jne 0x43f75b
mov eax, dword [ebp - 0x48]
pop ebx
pop edi
pop esi
leave
ret 0x10
or eax, 0xffffffff
pop ebx
pop edi
pop esi
leave
ret 0x10

Function at 0x43ff78
Capabilities:
Hash data with md5

Disassembly:
push edi
xor eax, eax
mov dword [0x645150], eax
xor eax, eax
mov dword [0x645154], eax
mov edi, 0x645100
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov eax, 0x645140
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop edi
ret
Function at 0x441b04
Capabilities:
Hash data using sha256

Disassembly:
push edi
xor eax, eax
mov dword [0x6451a0], eax
xor eax, eax
mov dword [0x6451a4], eax
mov edi, 0x645160
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov eax, 0x6451a8
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
pop edi
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x403203
pop dword [ebp - 0x38]
mov eax, 0x34448d5b
add eax, 0xcbfba4a8
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xa5b3dc95
sub dword [ebp - 0x48], 0x5761974a
mov dword [ebp - 0x44], 0x679d9766
sub dword [ebp - 0x44], 0x356a4b21
mov dword [ebp - 0x40], 0xce2b7a9a
sub dword [ebp - 0x40], 0x81df366c
mov dword [ebp - 0x3c], 0xa1a2cd60
sub dword [ebp - 0x3c], 0xa1a2cd60
lea eax, [ebp - 0x48]
push eax
mov eax, 0x9f298f7a
sub eax, 0x9ee91f16
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xab82f54a
add dword [ebp - 0x48], 0xc8ef740c
mov dword [ebp - 0x44], 0xd1d10167
sub dword [ebp - 0x44], 0x90649ff2
mov dword [ebp - 0x40], 0xe20319a6
add dword [ebp - 0x40], 0x816c52c6
mov dword [ebp - 0x3c], 0x1d97074f
sub dword [ebp - 0x3c], 0x1d97074f
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x36201
push 0
call eax
mov ecx, 0x869dee66
add ecx, 0x796257ba
mov edx, eax
mov ebx, 0xabbb336d
add ebx, 0x5485cc93
add ebx, dword [ebp - 0x38]
mov esi, 0xba49966d
add esi, 0x3d4539c4
add dword [ebp - 0x1c], ecx
mov edi, dword [ebx]
add dword [ebp - 0x2c], 0x1ce539b7
add edi, esi
sub dword [ebp - 0x18], 0xb912a6fc
mov dword [edx], edi
xor dword [ebp - 0x34], 0x7cebcbea
add edx, 0x5bbaf4f3
add edx, 0xa4450b11
add ebx, 4
loop 0x403320
add eax, 0x5f5f02bf
add eax, 0xa0a20894
xor ebx, ebx
add ebx, eax
add eax, 0xcbcaa3bb
add eax, 0x34355c4a
mov ecx, 0x9639686b
sub ecx, 0x95f9686b
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x40176f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x401779
repz ret
jmp fcn.00401a16

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40c600
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
mov dword [ebp - 8], edx
mov word [ebp - 2], ax
mov eax, dword [ebp - 8]
call fcn.00470e10
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40c659
push 0x100
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.USER32.DLL_GetKeyNameTextA
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x10c]
mov ecx, 0x100
call fcn.00471068
mov esp, ebp
pop ebp
ret

Function at 0x414890
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 0x414896
ret

Function at 0x417548
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 0x417599
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x417580
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x417570
jmp 0x417599
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 0x417581
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421224
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
cmp dword [0x484cc8], 0
jne 0x4212d1
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [ebp - 8], eax
mov eax, dword [0x484cc4]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x4808a8
mov ecx, 2
call fcn.0046fc60
mov edx, 0x4211e0
mov eax, dword [ebp - 8]
add eax, 5
call fcn.00421200
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebp - 0xc]
call fcn.00421200
mov edx, dword [ebp - 0xc]
mov dword [edx + 1], eax
mov eax, dword [0x484cc8]
mov edx, dword [ebp - 0xc]
mov dword [edx + 5], eax
mov eax, dword [ebp - 0xc]
mov dword [0x484cc8], eax
add dword [ebp - 0xc], 0xd
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x42128b
mov eax, dword [ebp - 8]
mov dword [0x484cc4], eax
mov eax, dword [0x484cc8]
mov dword [ebp - 4], eax
mov eax, dword [0x484cc8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 5]
mov dword [0x484cc8], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x42142c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov word [ebp - 2], ax
mov al, byte [0x421484]
mov byte [ebp - 3], al
test byte [ebp - 2], 4
je 0x421446
or byte [ebp - 3], 1
test byte [ebp - 2], 8
je 0x421450
or byte [ebp - 3], 4
test byte [ebp - 2], 1
je 0x42145a
or byte [ebp - 3], 8
test byte [ebp - 2], 2
je 0x421464
or byte [ebp - 3], 0x10
test byte [ebp - 2], 0x10
je 0x42146e
or byte [ebp - 3], 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x42147e
or byte [ebp - 3], 2
mov al, byte [ebp - 3]
pop ecx
pop ebp
ret

Function at 0x421488
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov al, byte [0x4214cc]
mov byte [ebp - 5], al
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4214a9
or byte [ebp - 5], 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4214b9
or byte [ebp - 5], 4
test byte [ebp - 1], 0x20
je 0x4214c3
or byte [ebp - 5], 2
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret
Function at 0x429268
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
test dl, dl
je 0x42927a
add esp, 0xfffffff0
call fcn.00470634
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00460578
mov eax, dword [ebp - 4]
call fcn.0042977c
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
mov dl, 1
mov eax, dword [0x456a58]
call fcn.0047023c
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
mov dl, 1
mov eax, dword [0x456a58]
call fcn.0047023c
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov dl, 1
mov eax, dword [0x456a58]
call fcn.0047023c
mov edx, dword [ebp - 4]
mov dword [edx + 0x48], eax
mov dl, 1
mov eax, dword [0x456a58]
call fcn.0047023c
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c], eax
mov dl, 1
mov eax, dword [0x456a58]
call fcn.0047023c
mov edx, dword [ebp - 4]
mov dword [edx + 0x70], eax
push 0
call sub.USER32.DLL_GetDC
mov dword [ebp - 0x10], eax
push 0x5a
mov eax, dword [ebp - 0x10]
push eax
call sub.GDI32.DLL_GetDeviceCaps
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0x10]
push eax
push 0
call sub.USER32.DLL_ReleaseDC
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
mov eax, 0x425094
push eax
push 0
push 0
mov eax, dword [0x4846c8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x413da8]
call fcn.00415494
mov edx, dword [ebp - 4]
mov dword [edx + 0x78], eax
mov dl, 1
mov eax, dword [0x413da8]
call fcn.00415494
mov edx, dword [ebp - 4]
mov dword [edx + 0x7c], eax
mov dl, 1
mov eax, dword [0x413da8]
call fcn.00415494
mov edx, dword [ebp - 4]
mov dword [edx + 0x74], eax
mov eax, dword [ebp - 4]
call fcn.00429c8c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x429b14
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x429b14
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x429b14
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x4293ce
call fcn.0047068c
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4298cc
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd98
push ebx
xor edx, edx
mov dword [ebp - 0x268], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x429a97
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x429a75
mov dl, 1
mov eax, dword [0x456f0c]
call fcn.0047023c
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00470e10
lea eax, [ebp - 0x11c]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x429a5e
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
call fcn.004432b8
test al, al
je 0x429a52
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
mov dword [ebp - 0x264], eax
mov byte [ebp - 0x260], 0
lea ecx, [ebp - 0x264]
mov edx, 0x429aa8
lea eax, [ebp - 0x25c]
call fcn.00468990
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x429a52
xor eax, eax
push ebp
push 0x429a4b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], 0x100
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x429ae0
mov eax, dword [ebp - 0x18]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x429a34
lea eax, [ebp - 0x268]
lea edx, [ebp - 0x21c]
mov ecx, 0x100
call fcn.00471068
mov edx, dword [ebp - 0x268]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + eax*4 - 0x11c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x429a34
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x21c]
mov ecx, 0x100
call fcn.00471068
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429a52
mov eax, dword [ebp - 0x18]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
inc dword [ebp - 0x10]
dec dword [ebp - 0x1c]
jne 0x429941
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov dl, 1
call fcn.0045b2dc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429a9e
lea eax, [ebp - 0x268]
call fcn.00470e10
ret