joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436364
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, ecx
mov dword [esp], edx
mov ebp, eax
xor esi, esi
mov ebx, dword [esp]
jmp 0x436378
inc ebx
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
test edx, edx
jg 0x436377
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
add eax, eax
add eax, eax
mov ebx, eax
mov eax, edi
xor ecx, ecx
mov edx, ebx
call fcn.00405838
xor ebx, ebx
cmp esi, dword [esp]
jge 0x4364dc
inc ebx
mov eax, edi
call fcn.004057cc
movzx edx, byte [ebp + esi]
and dl, 0xfc
movzx edx, dl
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
lea eax, [esi + 1]
cmp eax, dword [esp]
jge 0x436495
inc ebx
mov eax, edi
call fcn.004057cc
movzx edx, byte [ebp + esi]
and dl, 3
movzx edx, dl
shl edx, 4
movzx ecx, byte [ebp + esi + 1]
and cl, 0xf0
movzx ecx, cl
shr ecx, 4
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
lea eax, [esi + 2]
cmp eax, dword [esp]
jge 0x436464
inc ebx
mov eax, edi
call fcn.004057cc
movzx edx, byte [ebp + esi + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx ecx, byte [ebp + esi + 2]
and cl, 0xc0
movzx ecx, cl
shr ecx, 6
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.004057cc
movzx edx, byte [ebp + esi + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
jmp 0x4364d0
inc ebx
mov eax, edi
call fcn.004057cc
movzx edx, byte [ebp + esi + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.004057cc
mov byte [eax + ebx - 1], 0x3d
jmp 0x4364d0
inc ebx
mov eax, edi
call fcn.004057cc
movzx edx, byte [ebp + esi]
and dl, 3
movzx edx, dl
shl edx, 4
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.004057cc
mov byte [eax + ebx - 1], 0x3d
inc ebx
mov eax, edi
call fcn.004057cc
mov byte [eax + ebx - 1], 0x3d
add esi, 3
cmp esi, dword [esp]
jl 0x4363ac
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x436fec
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.004035d8
ret
Function at 0x437ac8
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
xor eax, eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x248], eax
xor eax, eax
push ebp
push 0x437c51
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov eax, 2
call fcn.0043766c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x437c33
xor eax, eax
push ebp
push 0x437c2c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x240]
xor ecx, ecx
mov edx, 0x22c
call fcn.004035d8
mov dword [ebp - 0x240], 0x22c
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 8]
call fcn.0043768c
mov ebx, eax
jmp 0x437c0d
lea eax, [ebp - 0x248]
lea edx, [ebp - 0x21c]
mov ecx, 0x104
call fcn.00405dcc
mov eax, dword [ebp - 0x248]
lea edx, [ebp - 0x244]
call fcn.0040d28c
mov edx, dword [ebp - 0x244]
mov eax, 0x437c6c
call fcn.0040bbf0
test al, al
je 0x437bfd
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x238]
push eax
call sub.Kernel32.dll_ProcessIdToSessionId
test eax, eax
je 0x437bfd
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x4ebebc]
push eax
call sub.wtsapi32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x437bfd
xor eax, eax
push ebp
push 0x437bf6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0
jne 0x437bdf
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
call fcn.004047e0
call fcn.004047e0
jmp 0x437c33
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437bfd
mov eax, dword [ebp - 0x10]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
ret
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 8]
call fcn.004376ac
mov ebx, eax
test ebx, ebx
jne 0x437b4b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437c33
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437c58
lea eax, [ebp - 0x248]
mov edx, 2
call fcn.00405bdc
ret
Function at 0x437bfd
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
xor eax, eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x248], eax
xor eax, eax
push ebp
push 0x437c51
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov eax, 2
call fcn.0043766c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x437c33
xor eax, eax
push ebp
push 0x437c2c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x240]
xor ecx, ecx
mov edx, 0x22c
call fcn.004035d8
mov dword [ebp - 0x240], 0x22c
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 8]
call fcn.0043768c
mov ebx, eax
jmp 0x437c0d
lea eax, [ebp - 0x248]
lea edx, [ebp - 0x21c]
mov ecx, 0x104
call fcn.00405dcc
mov eax, dword [ebp - 0x248]
lea edx, [ebp - 0x244]
call fcn.0040d28c
mov edx, dword [ebp - 0x244]
mov eax, 0x437c6c
call fcn.0040bbf0
test al, al
je 0x437bfd
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x238]
push eax
call sub.Kernel32.dll_ProcessIdToSessionId
test eax, eax
je 0x437bfd
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x4ebebc]
push eax
call sub.wtsapi32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x437bfd
xor eax, eax
push ebp
push 0x437bf6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0
jne 0x437bdf
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
call fcn.004047e0
call fcn.004047e0
jmp 0x437c33
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437bfd
mov eax, dword [ebp - 0x10]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
ret
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 8]
call fcn.004376ac
mov ebx, eax
test ebx, ebx
jne 0x437b4b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437c33
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437c58
lea eax, [ebp - 0x248]
mov edx, 2
call fcn.00405bdc
ret

Function at 0x437c88
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
cmp dword [0x4ebec0], 0
je 0x437ca2
call dword [0x4ebec0]
mov dword [ebp - 4], eax
jmp 0x437ca7
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x437d15
cmp dword [ebp - 4], 0xffffffff
je 0x437d15
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 8
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x4ebebc]
push eax
call sub.wtsapi32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x437d10
xor eax, eax
push ebp
push 0x437d09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jne 0x437ced
call fcn.004047e0
jmp 0x437d29
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437d15
mov eax, dword [ebp - 8]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
ret
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x437d21
cmp dword [ebp - 4], 0xffffffff
jne 0x437d29
call fcn.00437ac8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x437f84
Capabilities:
Get session information
Get session user name

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
mov eax, ebx
xor edx, edx
call fcn.00405be4
cmp byte [0x4f90bc], 0
je 0x437fbb
xor eax, eax
call fcn.00437f0c
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jbe 0x43802a
mov edx, ebx
mov eax, dword [esp + 4]
call fcn.0043804c
jmp 0x43802a
lea eax, [esp + 4]
push eax
lea eax, [esp + 4]
push eax
push 5
call fcn.00437c88
push eax
mov eax, dword [0x4ebebc]
push eax
call sub.wtsapi32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x438008
mov eax, ebx
mov edx, dword [esp]
call fcn.00405d90
mov eax, dword [ebx]
mov edx, 0x43803c
call fcn.0040bbf0
test al, al
je 0x437fff
mov eax, ebx
xor edx, edx
call fcn.00405be4
mov eax, dword [esp]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
cmp dword [ebx], 0
jne 0x43802a
xor eax, eax
call fcn.00437f0c
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jbe 0x43802a
mov edx, ebx
mov eax, dword [esp + 4]
call fcn.0043804c
pop ecx
pop edx
pop ebx
ret

Function at 0x438f24
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405bcc
xor eax, eax
push ebp
push 0x438fe2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x438fc4
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040800c
mov eax, dword [ebp - 8]
test eax, eax
je 0x438f6c
sub eax, 4
mov eax, dword [eax]
mov esi, eax
lea eax, [esi + 4]
mov dword [edi], eax
mov eax, dword [edi]
push eax
call fcn.00407ed0
pop ecx
mov dword [ebx], eax
mov ebx, dword [ebx]
mov eax, edi
mov edx, ebx
mov ecx, 4
call fcn.004031a0
add ebx, 4
lea eax, [ebp - 8]
call fcn.004057cc
mov ecx, esi
mov edx, ebx
call fcn.004031a0
mov ecx, esi
dec ecx
test ecx, ecx
jl 0x438fc4
inc ecx
xor esi, esi
mov eax, esi
mov edi, 0x16
cdq
idiv edi
movzx eax, byte [edx + 0x4ebee0]
xor byte [ebx], al
inc ebx
inc esi
dec ecx
jne 0x438fac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438fe9
lea eax, [ebp - 8]
call fcn.00404f94
lea eax, [ebp - 4]
call fcn.00405bd4
ret
Function at 0x43b2d4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, dword [ebp + 8]
mov eax, ebx
xor edx, edx
call fcn.00405be4
push 0
push edi
lea eax, [ebp - 0x20a]
push eax
push esi
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, ebx
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00405dcc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x43b31c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, edx
push 0xff
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00405dcc
add esp, 0x200
pop ebx
ret

Function at 0x43b34c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, edx
push esp
push 0xff
call sub.kernel32.dll_GetTempPathW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00405dcc
add esp, 0x200
pop ebx
ret

Function at 0x43b378
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, edx
push 0xff
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00405dcc
add esp, 0x200
pop ebx
ret

Function at 0x43b3a8
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
mov ebx, eax
mov eax, ebx
xor edx, edx
call fcn.00405be4
mov dword [ebp - 4], 0x104
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x43b3e5
mov eax, ebx
lea edx, [ebp - 0x20c]
call fcn.00405d90
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43b3ec
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
xor edx, edx
mov dword [ebp - 0x20c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x43b468
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
test eax, eax
jbe 0x43b44f
push ebx
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.00405dcc
mov eax, dword [ebp - 0x20c]
mov ecx, 2
mov edx, 1
call fcn.00406378
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43b46f
lea eax, [ebp - 0x20c]
call fcn.00405bd4
ret
Function at 0x43be10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43bf73
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x43be8e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x23
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, dword [ebp - 4]
add eax, 8
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.00405dcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43beb9
xor eax, eax
push ebp
push 0x43befb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x1a
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, dword [ebp - 4]
add eax, 4
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.00405dcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43bf26
lea edx, [ebp - 0x224]
xor eax, eax
call fcn.0040335c
mov eax, dword [ebp - 0x224]
lea edx, [ebp - 0x220]
call fcn.0040cfb8
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00405be4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43bf7a
lea eax, [ebp - 0x224]
mov edx, 4
call fcn.00405bdc
ret

Function at 0x43d09c
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 0x43d0a2
ret
Function at 0x444790
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4449f3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405c38
lea eax, [ebp - 0x120]
xor ecx, ecx
mov edx, 0x11c
call fcn.004035d8
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call sub.kernel32.dll_GetVersionExW
lea eax, [ebp - 0x144]
xor ecx, ecx
mov edx, 0x24
call fcn.004035d8
push 0x444a00
push 0x444a28
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.00408f10
test eax, eax
je 0x44481a
lea edx, [ebp - 0x144]
push edx
call eax
jmp 0x444826
lea eax, [ebp - 0x144]
push eax
call sub.kernel32.dll_GetSystemInfo_1
cmp dword [ebp - 0x110], 2
jne 0x4449d3
test bl, bl
je 0x444856
call fcn.00444ba0
mov edx, dword [eax]
mov dword [ebp - 0x11c], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x118], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffffd
sub eax, 2
jae 0x444871
lea eax, [ebp - 4]
mov edx, 0x444a50
call fcn.00405c38
cmp dword [ebp - 0x11c], 5
jne 0x444895
cmp dword [ebp - 0x118], 0
jne 0x444895
lea eax, [ebp - 4]
mov edx, 0x444a74
call fcn.00405c38
jmp 0x4449d3
cmp dword [ebp - 0x11c], 5
jne 0x4448b9
cmp dword [ebp - 0x118], 1
jne 0x4448b9
lea eax, [ebp - 4]
mov edx, 0x444a9c
call fcn.00405c38
jmp 0x4449d3
cmp dword [ebp - 0x11c], 5
jne 0x4448ff
cmp dword [ebp - 0x118], 2
jne 0x4448ff
cmp byte [ebp - 6], 1
jne 0x4448ed
cmp word [ebp - 0x144], 9
jne 0x4448ed
lea eax, [ebp - 4]
mov edx, 0x444a9c
call fcn.00405c38
jmp 0x4449d3
lea eax, [ebp - 4]
mov edx, 0x444ac0
call fcn.00405c38
jmp 0x4449d3
cmp dword [ebp - 0x11c], 6
jne 0x444923
cmp dword [ebp - 0x118], 0
jne 0x444923
lea eax, [ebp - 4]
mov edx, 0x444af4
call fcn.00405c38
jmp 0x4449d3
cmp dword [ebp - 0x11c], 6
jne 0x444947
cmp dword [ebp - 0x118], 1
jne 0x444947
lea eax, [ebp - 4]
mov edx, 0x444b1c
call fcn.00405c38
jmp 0x4449d3
cmp dword [ebp - 0x11c], 6
jne 0x44496d
mov eax, dword [ebp - 0x118]
add eax, 0xfffffffe
sub eax, 2
jae 0x44496d
lea eax, [ebp - 4]
mov edx, 0x444b3c
call fcn.00405c38
jmp 0x4449d3
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jne 0x444992
mov edx, dword [ebp - 0x118]
sub edx, 4
jne 0x444992
lea eax, [ebp - 4]
mov edx, 0x444b5c
call fcn.00405c38
jmp 0x4449d3
cmp eax, 0xa
jne 0x4449c1
cmp dword [ebp - 0x114], 0x55f0
jae 0x4449b2
lea eax, [ebp - 4]
mov edx, 0x444b5c
call fcn.00405c38
jmp 0x4449d3
lea eax, [ebp - 4]
mov edx, 0x444b80
call fcn.00405c38
jmp 0x4449d3
cmp eax, 0xb
jb 0x4449d3
lea eax, [ebp - 4]
mov edx, 0x444b80
call fcn.00405c38
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00405be4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4449fa
lea eax, [ebp - 4]
call fcn.00405bd4
ret
Function at 0x445128
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x118], ecx
test dl, dl
je 0x445147
add esp, 0xfffffff0
call fcn.00404148
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4451eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000001
mov eax, esi
call fcn.004452a0
mov dword [esi + 0x18], 0xf003f
mov byte [esi + 0xc], 1
xor eax, eax
mov dword [esi + 0x1c], eax
mov dword [ebp - 0x114], 0x114
lea eax, [ebp - 0x114]
push eax
call sub.kernel32.dll_GetVersionExW
cmp dword [ebp - 0x110], 5
jne 0x44519d
call fcn.00444d98
test al, al
jne 0x4451cb
cmp dword [ebp - 0x110], 5
ja 0x4451cb
lea edx, [ebp - 0x118]
xor eax, eax
call fcn.00444790
mov eax, dword [ebp - 0x118]
mov edx, 0x44521c
call fcn.0040bbf0
test al, al
jne 0x4451cb
xor eax, eax
jmp 0x4451cd
mov al, 1
mov byte [0x4f914c], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4451f2
lea eax, [ebp - 0x118]
call fcn.00405bd4
ret

Function at 0x44576c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.004450d0
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00405c70
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x4457cb
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4f2e94]
mov dl, 1
mov eax, dword [0x444f7c]
call fcn.004139b4
call fcn.004046ec
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x445808
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x445963
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
call fcn.004450d0
mov dword [ebp - 0xc], eax
mov eax, esi
xor edx, edx
call fcn.00405be4
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x44585d
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x445860
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
dec eax
sub al, 2
jae 0x44586f
add dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4457d4]
call fcn.004075d8
add esp, 4
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.004035d8
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, edi
call fcn.00405c70
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov ebx, eax
test ebx, ebx
jne 0x4458c5
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00405d90
mov edx, dword [esi]
mov eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4458d8
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x802
jle 0x44592d
mov eax, edx
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x4458f0
sub esi, 4
mov esi, dword [esi]
push 0x445980
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040c364
push dword [ebp - 0x1c]
push 0x4459c0
lea edx, [ebp - 0x20]
mov eax, esi
call fcn.0040c364
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00406184
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dl, 1
call fcn.00445064
mov eax, dword [ebp - 0xc]
call fcn.00445100
mov edx, dword [ebp + 0xc]
mov byte [edx], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44596a
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00405bdc
lea eax, [ebp - 4]
mov edx, dword [0x4457d4]
call fcn.004075e4
ret

Function at 0x44d3e4
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00405be4
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x44d42b
push pe_nt_image_headers32
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00405dcc
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x452844
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45297d
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x42f75c]
call fcn.0042f898
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x452953
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0042f938
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00405dcc
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x452998
call fcn.004060a0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0042fac4
test al, al
je 0x45293d
lea ecx, [ebp - 4]
mov edx, 0x452a0c
mov eax, dword [ebp - 0xc]
call fcn.0042fd10
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.004163a8
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x452936
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x452a24
mov eax, dword [ebp - 8]
push eax
call fcn.00408f10
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4ed5dc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45293d
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45295a
mov eax, dword [ebp - 0xc]
call fcn.00403d10
ret

Function at 0x452a88
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 0x452acf
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x452ab2
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x452ac3
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x452acf
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret