joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100615e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x80
xor eax, eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x9c]
test esi, esi
push edi
je 0x10061607
mov ebx, dword [esp + 0x94]
mov eax, 1
mov dword [ebx], esi
jmp 0x10061619
mov ebx, dword [esp + 0x94]
mov ecx, dword [ebx]
mov dword [esp + 0xa0], ecx
mov esi, ecx
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x100617bf
push esi
call fcn.1006ac00
mov edi, eax
add esp, 4
cmp edi, 0x80
jle 0x1006164f
push str.j____int_sizeof_ctx__key_
push 0x54
push str.D:EjrsysDevworkspacemsvsopensslcryptohmachmac.c
call fcn.10076f50
add esp, 0xc
mov ebp, dword [esp + 0x9c]
cmp edi, ebp
jge 0x100616ac
mov edx, dword [esp + 0xa4]
lea edi, [ebx + 4]
push edx
push esi
push edi
call fcn.10029400
add esp, 0xc
test eax, eax
je 0x100617b2
mov eax, dword [esp + 0x98]
push ebp
push eax
push edi
call fcn.100295b0
add esp, 0xc
test eax, eax
je 0x100617b2
lea esi, [ebx + 0x4c]
lea ecx, [ebx + 0x50]
push esi
push ecx
push edi
call fcn.10029600
add esp, 0xc
test eax, eax
je 0x100617b2
jmp 0x100616eb
test ebp, ebp
jl 0x100616b8
cmp ebp, 0x80
jle 0x100616cc
push str.len_0__len__int_sizeof_ctx__key_
push 0x61
push str.D:EjrsysDevworkspacemsvsopensslcryptohmachmac.c
call fcn.10076f50
add esp, 0xc
mov esi, dword [esp + 0x98]
mov ecx, ebp
mov edx, ecx
lea edi, [ebx + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x4c]
mov dword [esi], ebp
mov esi, dword [esi]
cmp esi, 0x80
je 0x10061710
mov ecx, 0x80
xor eax, eax
sub ecx, esi
lea edi, [esi + ebx + 0x50]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [esp + 0xa0]
xor eax, eax
mov cl, byte [ebx + eax + 0x50]
xor cl, 0x36
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x10061719
mov ebp, dword [esp + 0xa4]
lea edi, [ebx + 0x1c]
push ebp
push esi
push edi
call fcn.10029400
add esp, 0xc
test eax, eax
je 0x100617b2
push esi
call fcn.1006ac00
lea edx, [esp + 0x14]
push eax
push edx
push edi
call fcn.100295b0
add esp, 0x10
test eax, eax
je 0x100617b2
xor eax, eax
mov cl, byte [ebx + eax + 0x50]
xor cl, 0x5c
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x10061760
lea edi, [ebx + 0x34]
push ebp
push esi
push edi
call fcn.10029400
add esp, 0xc
test eax, eax
je 0x100617b2
push esi
call fcn.1006ac00
lea edx, [esp + 0x14]
push eax
push edx
push edi
call fcn.100295b0
add esp, 0x10
test eax, eax
je 0x100617b2
lea eax, [ebx + 0x1c]
add ebx, 4
push eax
push ebx
call fcn.100296a0
add esp, 8
test eax, eax
jne 0x100617c8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x80
ret
test eax, eax
je 0x1006179e
jmp 0x10061717
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x80
ret
Function at 0x10074770
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x14
push ebx
push ebp
lea ebp, [eax - 1]
push esi
mov esi, dword [esp + 0x30]
push edi
lea ecx, [ebp - 0x29]
cmp esi, ecx
jle 0x100747a8
push 0x33
push str.D:EjrsysDevworkspacemsvsopensslcrypto_rsa_rsa_oaep.c
push 0x6e
push 0x79
push 4
call fcn.10026360
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp ebp, 0x29
jge 0x100747cc
push 0x39
push str.D:EjrsysDevworkspacemsvsopensslcrypto_rsa_rsa_oaep.c
push 0x78
push 0x79
push 4
call fcn.10026360
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ebx, dword [esp + 0x28]
push 0
lea edx, [ebx + 1]
mov byte [ebx], 0
mov dword [esp + 0x30], edx
add ebx, 0x15
call fcn.1002d960
mov ecx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x44]
push 0
push ebx
push eax
push ecx
call fcn.10029810
mov ecx, ebp
xor eax, eax
sub ecx, esi
lea edi, [ebx + 0x14]
sub ecx, 0x29
push 0x14
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, ebx
mov ecx, esi
sub eax, esi
mov esi, dword [esp + 0x4c]
add eax, ebp
mov edx, ecx
shr ecx, 2
lea edi, [eax - 0x14]
mov byte [eax - 0x15], 1
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x48]
push edi
call fcn.10032a70
add esp, 0x20
test eax, eax
jg 0x1007484f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
add ebp, 0xffffffec
push 0x4e
push str.D:EjrsysDevworkspacemsvsopensslcrypto_rsa_rsa_oaep.c
push ebp
call fcn.10077900
mov esi, eax
add esp, 0xc
test esi, esi
mov dword [esp + 0x2c], esi
jne 0x1007488b
push 0x51
push str.D:EjrsysDevworkspacemsvsopensslcrypto_rsa_rsa_oaep.c
push 0x41
push 0x79
push 4
call fcn.10026360
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push 0x14
push edi
push ebp
push esi
call fcn.10074c50
add esp, 0x10
test eax, eax
jge 0x100748a6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
test ebp, ebp
jle 0x100748bd
mov eax, ebx
sub esi, ebx
mov ecx, ebp
mov dl, byte [esi + eax]
xor byte [eax], dl
inc eax
dec ecx
jne 0x100748b0
mov esi, dword [esp + 0x2c]
push ebp
push ebx
lea eax, [esp + 0x18]
push 0x14
push eax
call fcn.10074c50
add esp, 0x10
test eax, eax
jge 0x100748dc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
lea ecx, [esp + 0x10]
mov eax, edi
sub ecx, edi
mov edi, 0x14
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec edi
jne 0x100748e9
push esi
call fcn.10077ad0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x10074b30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
push esi
lea eax, [esp + 0xc]
push edi
push eax
xor edi, edi
call fcn.100293a0
mov ecx, dword [esp + 0x80]
push ecx
call fcn.1002d350
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0xc], esi
jge 0x10074b64
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x60
ret
push ebx
push ebp
mov ebp, dword [esp + 0x78]
xor ebx, ebx
test ebp, ebp
jle 0x10074c37
jmp 0x10074b7a
mov esi, dword [esp + 0x14]
mov edx, ebx
mov eax, ebx
sar edx, 0x18
sar eax, 0x10
mov byte [esp + 0x10], dl
mov edx, dword [esp + 0x84]
mov byte [esp + 0x11], al
mov ecx, ebx
push 0
lea eax, [esp + 0x1c]
sar ecx, 8
push edx
push eax
mov byte [esp + 0x1e], cl
mov byte [esp + 0x1f], bl
call fcn.10029400
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x88]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call fcn.100295b0
lea ecx, [esp + 0x28]
push 4
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.100295b0
add esp, 0x24
add esi, edi
cmp esi, ebp
push 0
jg 0x10074bfb
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x1c]
add edi, eax
push edi
push ecx
call fcn.10029600
add esp, 0xc
mov edi, esi
jmp 0x10074c2e
lea edx, [esp + 0x34]
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.10029600
mov edx, dword [esp + 0x80]
mov ecx, ebp
sub ecx, edi
lea esi, [esp + 0x3c]
mov eax, ecx
add edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 0xc
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
inc ebx
cmp edi, ebp
jl 0x10074b76
lea ecx, [esp + 0x18]
push ecx
call fcn.100298c0
add esp, 4
xor eax, eax
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x60
ret
Function at 0x100768d0
Capabilities:
Check for software breakpoints

Disassembly:
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp eax, edx
push esi
jne 0x100769a5
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x100768f3
cmp al, 0x6b
jne 0x100769a5
cmp al, 0x6b
lea esi, [ecx + 1]
jne 0x10076961
lea eax, [edx - 3]
xor edx, edx
test eax, eax
jle 0x10076915
mov cl, byte [esi]
inc esi
cmp cl, 0xba
je 0x10076915
cmp cl, 0xbb
jne 0x1007693e
inc edx
cmp edx, eax
jl 0x10076903
sub eax, edx
test edx, edx
jne 0x10076964
push 0x8f
push str.D:EjrsysDevworkspacemsvsopensslcrypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.10026360
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push 0x86
push str.D:EjrsysDevworkspacemsvsopensslcrypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.10026360
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
lea eax, [edx - 2]
cmp byte [eax + esi], 0xcc
je 0x1007698d
push 0x98
push str.D:EjrsysDevworkspacemsvsopensslcrypto_rsa_rsa_x931.c
push 0x8b
push 0x80
push 4
call fcn.10026360
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
mov ecx, eax
push edi
mov edi, dword [esp + 0xc]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret
push 0x77
push str.D:EjrsysDevworkspacemsvsopensslcrypto_rsa_rsa_x931.c
push 0x89
push 0x80
push 4
call fcn.10026360
add esp, 0x14
or eax, 0xffffffff
pop esi
ret

Function at 0x10076e70
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x10076eb1
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x10076eb1
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push 0x100c5f20
call fcn.1007dfb6
add esp, 0xc
lea esp, [ebp - 0x108]
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x104]
push 0xff
push ecx
call fcn.1007df66
add esp, 0x10
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x10076f2a
call fcn.10076d60
test eax, eax
jle 0x10076f2a
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push 0
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x104]
push 1
push esi
mov dword [ebp - 4], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea esp, [ebp - 0x108]
pop esi
mov esp, ebp
pop ebp
ret
push 0x10
lea ecx, [ebp - 0x104]
push str.OpenSSL:_FATAL
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea esp, [ebp - 0x108]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403800
Capabilities:
Query or enumerate registry value

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

Function at 0x404694
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x459048], 0
je 0x4046f5
cmp word [0x45921c], 0xd7b2
jne 0x4046bd
cmp dword [0x459224], 0
jbe 0x4046bd
mov eax, 0x459218
call dword [0x459234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x40471c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45702c], 0
jne 0x404711
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408218
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40826a
test eax, edx
je 0x40826d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40822d
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x408253
add ecx, 4
js 0x408243
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408250
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x408279
test edx, edx
jne 0x408220
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40b440
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 0x40b479
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404904
jmp 0x40b482
mov eax, ebx
mov edx, esi
call fcn.00404868
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b48c
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 0x40b4ae
movzx eax, byte [esp]
jmp 0x40b4b0
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bb40
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b9b8
mov eax, dword [0x4589e8]
cmp byte [eax], 0
je 0x40bbbc
mov eax, dword [0x458814]
call fcn.004031c8
call fcn.00402fac
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.00408bc0
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 0x40bc04
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bbf2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4587c0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45b7f4]
call fcn.0040596c
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 0x40c47c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c552
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004048ac
lea eax, [ebp - 4]
call fcn.00404cfc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ca4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c53c
mov eax, ebx
call fcn.00402e50
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c535
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 - 4]
call fcn.00404ca4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c51f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c564
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c51f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c53c
mov eax, dword [ebp - 0x10]
call fcn.00402e6c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c559
lea eax, [ebp - 4]
call fcn.00404814
ret

Function at 0x41b08c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45d9e8
cmp dword [edi], 0
jne 0x41b108
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45d9e4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x457ad4
mov ecx, 2
call fcn.00403040
mov edx, 0x41b064
lea eax, [esi + 5]
call fcn.0041b084
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b084
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 0x41b0dd
mov dword [0x45d9e4], 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 0x41d64c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404ca4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41d6a4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x458b00]
mov dl, 1
mov eax, dword [0x41d158]
call fcn.0040bd00
call fcn.0040425c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d260
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41e500
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 0x41e506
ret
Function at 0x4287c8
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404814
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x428816
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404a84
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42d8f8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42da2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x41d1b8]
call fcn.0041d288
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x42da01
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041d328
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404a84
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x42da40
call fcn.00404b2c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041d38c
lea ecx, [ebp - 4]
mov edx, 0x42da7c
mov eax, dword [ebp - 0xc]
call fcn.0041d5d4
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040d69c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x42d9e4
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x42da88
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4583fc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d9eb
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x42dad8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x42db1f
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42db02
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42db13
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x42db1f
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x432610
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 [0x45dc40], 0
je 0x432759
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x458988]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x432759
mov eax, dword [0x45dc44]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x45dc40]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x432728
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x45dc40]
call fcn.00414120
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x432720
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x432720
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x432720
mov eax, dword [ebp - 0x14]
call fcn.0043cccc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x432720
push ebp
call fcn.004325cc
pop ecx
test al, al
jne 0x432720
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403bfc
test al, al
je 0x432720
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, 0xffbc
call fcn.00403bfc
cmp byte [ebp - 1], 0
je 0x432720
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x432720
mov edx, dword [ebp - 0x14]
mov eax, dword [0x45dc44]
call fcn.00431d3c
inc edi
dec ebx
jne 0x432675
mov eax, dword [0x45dc44]
cmp dword [eax + 8], 0
jle 0x432740
mov eax, dword [0x45dc44]
call fcn.00431df4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x432759
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00432430
pop ecx
test al, al
jne 0x432759
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 0x439ba0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00406634
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00434998
test ebx, ebx
jne 0x439bf3
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.00439adc
mov ebx, eax
test ebx, ebx
je 0x439cde
cmp esi, ebx
je 0x439c1c
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x439c31
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x439c69
add eax, 0xffffff5f
sub eax, 2
jb 0x439c81
dec eax
sub eax, 2
jb 0x439c95
dec eax
sub eax, 2
jb 0x439c8b
jmp 0x439c9f
add eax, 0xfffffdff
sub eax, 2
jb 0x439c81
dec eax
sub eax, 2
jb 0x439c95
dec eax
sub eax, 2
jb 0x439c8b
jmp 0x439c9f
mov byte [esp + 0x120], 0
jmp 0x439ca7
mov byte [esp + 0x120], 2
jmp 0x439ca7
mov byte [esp + 0x120], 1
jmp 0x439ca7
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.004484a8
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00436108
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x439ce0
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret