joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408960
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x425280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x427368]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
cmp dword [eax + 0x38], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
mov edi, dword [ebp + 8]
je 0x408a0b
push str.Adobe_Flash_Box_Files_Update
push edi
call esi
push str.This_task_detect_has_update_for_swf_files.
push ebx
call esi
lea eax, [ebp - 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push eax
call fcn.00413a40
movzx eax, word [ebp - 0xde]
push eax
movzx eax, word [ebp - 0xe2]
push eax
movzx eax, word [ebp - 0xe4]
push eax
lea eax, [ebp - 0xd0]
push str.Ver__d_d_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0xd0]
add esp, 0x20
push eax
push edi
call esi
lea eax, [ebp - 0xd0]
push eax
jmp 0x408a18
push 0x4227a0
push edi
call esi
push 0x4227b8
push ebx
call esi
mov eax, dword [0x427368]
mov edx, str.SOFTWAREWYBoxInfo
mov ecx, str.SOFTWARESmallBoxInfo
cmp dword [eax + 0x38], 0
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xe8]
cmove ecx, edx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x408a88
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push edi
push 1
push 0
push str.TName
push dword [ebp - 0xe8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xe8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040fbae
mov esp, ebp
pop ebp
ret 0x10
Function at 0x409420
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x425280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, ecx
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00413a40
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
push 0
push 0x4226cc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0x42287c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040fbae
mov esp, ebp
pop ebp
ret

Function at 0x409730
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x425280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push 0xffffffffffffffeb
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x40977c
mov ecx, dword [eax + 0x1b4]
mov esi, dword [eax + 0x1b8]
test ecx, ecx
je 0x40976f
push 0
push ecx
call ebx
test esi, esi
je 0x40977c
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [edi]
test eax, eax
jne 0x40982c
push 0x30
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00413a40
mov eax, dword [0x427364]
add esp, 0xc
mov dword [ebp - 0x34], 0x30
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], 0x409650
push 5
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_GetSysColorBrush]
mov dword [ebp - 0x14], eax
lea esi, [edi + 8]
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], esi
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push dword [0x427364]
push 0
push dword [edi + 4]
push 0x13a
push 0x1f1
push 0
push 0
push 0x40000000
push 0x421898
push esi
push 0x10000
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [edi], eax
test eax, eax
jne 0x409815
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fbae
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.00409580
push 5
push dword [edi]
call ebx
push dword [edi]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x409831
push 5
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040fbae
mov esp, ebp
pop ebp
ret
Function at 0x409850
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x425280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x30
lea eax, [ebp - 0x34]
mov edi, ecx
push 0
push eax
call fcn.00413a40
mov eax, dword [0x427364]
add esp, 0xc
mov dword [ebp - 0x34], 0x30
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], 0x409650
push 5
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_GetSysColorBrush]
mov dword [ebp - 0x14], eax
lea esi, [edi + 8]
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], esi
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push dword [0x427364]
push 0
push dword [edi + 4]
push 0x13a
push 0x1f1
push 0
push 0
push 0x40000000
push 0x421898
push esi
push 0x10000
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [edi], eax
test eax, eax
jne 0x4098f3
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fbae
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.00409580
push 0
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0040fbae
mov esp, ebp
pop ebp
ret
Function at 0x409f70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
mov esi, dword [edi]
test esi, esi
je 0x409fcf
mov dword [edi], 0
mov edx, 0x400000
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x409fd8
test ecx, ecx
je 0x409fcf
mov ecx, dword [ebp - 4]
mov edx, 0x400000
test esi, esi
jne 0x409f90
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409ff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
mov esi, dword [edi]
test esi, esi
je 0x40a04f
mov dword [edi], 0
mov edx, 0x400000
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x40a058
test ecx, ecx
je 0x40a04f
mov ecx, dword [ebp - 4]
mov edx, 0x400000
test esi, esi
jne 0x40a010
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40cc90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ecx
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x428460], ecx
inc eax
cmp eax, 0x100
jb 0x40cc93
cmp eax, 0x800
jae 0x40cd63
nop
mov edx, dword [eax*4 + 0x428060]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x428460]
mov dword [eax*4 + 0x428460], edx
inc eax
cmp eax, 0x800
jb 0x40cd40
mov dword [0x427378], 0x40d920
call fcn.0040dab0
mov ecx, dword [0x427378]
test eax, eax
mov edx, 0x40d9c0
cmove ecx, edx
mov dword [0x427378], ecx
pop ecx
ret
Function at 0x40dfc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov eax, dword [eax]
and eax, 7
cmp edx, 5
jae 0x40dfe0
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
add edx, 0xfffffffc
or ebx, 0xffffffff
add edx, ecx
push esi
mov dword [ebp - 8], edx
lea ecx, [ecx]
lea esi, [edi + ecx]
cmp esi, edx
jae 0x40e009
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x40e006
inc esi
cmp esi, edx
jb 0x40dff7
mov ecx, dword [ebp - 4]
mov edi, esi
sub edi, ecx
mov ecx, edi
sub ecx, ebx
cmp esi, edx
jae 0x40e111
cmp ecx, 3
jbe 0x40e022
xor eax, eax
jmp 0x40e060
dec ecx
shl eax, cl
and eax, 7
je 0x40e060
movzx ecx, byte [eax + 0x422978]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x422970], 0
mov cl, byte [edx + 4]
je 0x40e04a
test cl, cl
je 0x40e04a
cmp cl, 0xff
jne 0x40e05d
mov edx, dword [ebp - 8]
and eax, 3
mov ecx, dword [ebp - 4]
add eax, eax
mov ebx, edi
or eax, 1
inc edi
jmp 0x40dff0
mov edx, dword [ebp - 8]
mov cl, byte [esi + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test cl, cl
je 0x40e082
cmp cl, 0xff
je 0x40e082
mov ecx, dword [ebp - 4]
and eax, 3
add eax, eax
or eax, 1
inc edi
jmp 0x40dff0
movzx edx, cl
movzx ecx, byte [esi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
sub edx, edi
lea ebx, [edx - 5]
test eax, eax
je 0x40e0de
movzx edx, byte [eax + 0x422978]
mov ecx, 0x18
shl edx, 3
sub ecx, edx
mov dword [ebp - 0xc], edx
mov edx, ebx
shr edx, cl
test dl, dl
je 0x40e0ca
cmp dl, 0xff
jne 0x40e0de
mov ecx, 0x20
mov edx, 1
sub ecx, dword [ebp - 0xc]
shl edx, cl
dec edx
xor edx, ebx
jmp 0x40e0a0
mov edx, dword [ebp - 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
mov byte [esi + 1], bl
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
mov ebx, dword [ebp - 0x10]
shr ecx, 8
add edi, 5
mov byte [esi + 2], cl
mov ecx, dword [ebp - 4]
jmp 0x40dff0
pop esi
pop ebx
cmp ecx, 3
jbe 0x40e126
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 7
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x414dd9
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x425280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00411613
mov dword [ebp - 0x14], eax
cmp dword [0x4272f4], esi
jne 0x414ecc
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x414e59
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x414fac
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x414fac
push 0x41e698
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x414fac
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4272f4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4272f8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4272fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x427304], eax
test eax, eax
je 0x414ec9
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x427300], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x414ef1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x414ee4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x414f06
push 4
pop eax
jmp 0x414fae
cmp dword [ebp - 0x14], esi
je 0x414f06
push dword [0x4272f4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x414eeb
mov eax, dword [0x427300]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x414f64
cmp dword [0x427304], edi
je 0x414f64
push eax
call ebx
push dword [0x427304]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x414f64
test eax, eax
je 0x414f64
call ecx
test eax, eax
je 0x414f59
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x414f59
test byte [ebp - 8], 1
jne 0x414f64
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x414f94
mov eax, dword [0x4272f8]
cmp eax, edi
je 0x414f91
push eax
call ebx
test eax, eax
je 0x414f91
call eax
mov esi, eax
test esi, esi
je 0x414f91
mov eax, dword [0x4272fc]
cmp eax, edi
je 0x414f91
push eax
call ebx
test eax, eax
je 0x414f91
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4272f4]
call ebx
test eax, eax
je 0x414fac
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x414fae
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040fbae
mov esp, ebp
pop ebp
ret
Function at 0x43a420
Capabilities:
Check if file exists
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov ebx, ecx
push eax
call fcn.00435fb4
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
mov esi, eax
add ecx, 0xfffffff0
call fcn.004055b1
test esi, esi
je 0x43a499
mov esi, dword [ebp + 8]
mov ecx, ebx
push esi
call fcn.0043a26e
cmp dword [esi + 8], 0
mov edi, dword [esi + 4]
mov dword [ebp + 8], eax
je 0x43a478
push dword [ebx + 4]
push 0x5cfe30
push dword [esi + 8]
call fcn.0043bf34
mov eax, dword [ebp + 8]
add esp, 0xc
test eax, eax
je 0x43a4f5
lea eax, [ebx + 4]
push dword [eax]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x43a4a3
test edi, edi
je 0x43a499
mov ecx, edi
call fcn.004384a6
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 8], 0
mov ebx, eax
je 0x43a4c2
push ebx
push 0x5cff28
push dword [esi + 8]
call fcn.0043bf34
add esp, 0xc
cmp ebx, 0x20
jne 0x43a4e8
push dword [ebp + 8]
push dword [0x63c770]
call fcn.0043b7d6
pop ecx
pop ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43a4e8
push 0x5cff78
call fcn.0043bf2b
test edi, edi
je 0x43a506
mov ecx, edi
call fcn.00438482
jmp 0x43a506
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43a506
push 0x5d0020
call fcn.0043bf2b
xor eax, eax
jmp 0x43a49c

Function at 0x43ae29
Capabilities:
Set file attributes

Disassembly:
push 0x80
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret

Function at 0x43c8fc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ecx + 0x2c]
push edi
mov edi, dword [ecx + 0x30]
mov eax, edi
sub eax, esi
push 0x2c
cdq
pop ebx
idiv ebx
test eax, eax
je 0x43c9c1
call fcn.0043c4d0
test eax, eax
je 0x43c9c1
cmp esi, edi
je 0x43c9c1
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x43c947
push dword [esi + 4]
push 0x5d02c4
push ebx
call fcn.0043bf34
add esp, 0xc
push dword [esi + 4]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp + 8], eax
test eax, eax
je 0x43c99d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x43c984
test ebx, ebx
je 0x43c984
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5d02f0
push ebx
call fcn.0043bf34
add esp, 0xc
push 0x5dc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43c9b6
test ebx, ebx
je 0x43c9b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5d0340
push ebx
call fcn.0043bf34
add esp, 0xc
add esi, 0x2c
cmp esi, edi
jne 0x43c932
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x460190
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x5d2bac
call edi
test eax, eax
je 0x4601b9
push 0x5d2bc4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x4601da
push 0x5d2b30
call edi
test eax, eax
je 0x460258
push 0x5d2bc4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x460258
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 7
push esi
call edi
test eax, eax
je 0x460258
cmp byte [ebp + 8], 0
jne 0x46022a
mov eax, dword [esi]
mov dword [0x63d07c], eax
movzx eax, word [esi + 4]
mov word [0x63d080], ax
movzx eax, byte [esi + 6]
mov byte [0x63d082], al
mov eax, dword [0x5d2be0]
mov dword [esi], eax
movzx eax, word [0x5d2be4]
mov word [esi + 4], ax
movzx eax, byte [0x5d2be6]
jmp 0x460249
cmp byte [0x63d07c], 0
je 0x46024c
mov eax, dword [0x63d07c]
mov dword [esi], eax
mov ax, word [0x63d080]
mov word [esi + 4], ax
mov al, byte [0x63d082]
mov byte [esi + 6], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 7
push esi
call edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ab8b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp esi, 8
je 0x4ab8ed
cmp esi, 0x21
jb 0x4ab8cc
cmp esi, 0x2e
jbe 0x4ab8ed
cmp esi, 0x43
je 0x4ab8e0
cmp esi, 0x56
je 0x4ab8e0
cmp esi, 0x58
je 0x4ab8e0
cmp esi, 0x5a
jne 0x4ab91f
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4ab91f
mov eax, dword [edi + 0x20]
mov ecx, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x18], 0x100
mov dword [ebp - 0x14], esi
call fcn.0054e178
test eax, eax
je 0x4ab91f
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4ac100
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 0x74]
test eax, eax
je 0x4ac297
mov eax, dword [edi + 0x134]
test eax, eax
je 0x4ac297
cmp dword [eax + 0x20], 0
je 0x4ac297
cmp dword [eax + 0x80], 0
je 0x4ac140
pop edi
mov eax, 2
pop esi
pop ebp
ret 8
mov esi, dword [ebp + 8]
cmp esi, 0xd
je 0x4ac297
cmp esi, 9
je 0x4ac297
cmp esi, 0x1b
jne 0x4ac189
lea eax, [edi + 0x154]
mov ecx, edi
push eax
call fcn.004ace80
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x70]
mov ecx, dword [edi + 0xc0]
xor eax, eax
pop edi
pop esi
cmp dword [ecx + 0xe0], 2
sete al
pop ebp
ret 8
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call ebx
test ax, ax
jns 0x4ac1c4
push 0x11
call ebx
test ax, ax
js 0x4ac1c4
mov ecx, dword [edi + 0xc0]
call fcn.004af680
test eax, eax
je 0x4ac1c4
movzx ecx, si
push ecx
mov ecx, eax
call fcn.0048a5d0
test eax, eax
jne 0x4ac27f
mov ecx, edi
call fcn.00498e60
test eax, eax
je 0x4ac256
cmp dword [edi + 0x16c], 0
je 0x4ac256
cmp esi, 0x26
je 0x4ac1e6
cmp esi, 0x28
jne 0x4ac256
mov ecx, edi
call fcn.004ab510
test eax, eax
jne 0x4ac256
mov edx, dword [edi]
cmp esi, 0x26
mov ecx, edi
sete al
lea eax, [eax*2 - 1]
push eax
push 1
call dword [edx + 0x16c]
mov esi, dword [edi + 0x134]
test esi, esi
je 0x4ac27f
mov esi, dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
jne 0x4ac27f
mov edi, dword [edi + 0x134]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push 0
push 0xb1
push dword [edi + 0x20]
call esi
push 0
push 0
push 0xb7
push dword [edi + 0x20]
call esi
pop ebx
pop edi
mov eax, 1
pop esi
pop ebp
ret 8
mov ecx, dword [edi + 0x160]
mov ebx, dword [ebp + 0xc]
test ecx, ecx
je 0x4ac26e
push ebx
push esi
call fcn.004f10e0
test eax, eax
jne 0x4ac27f
mov ecx, dword [edi + 0x134]
push ebx
push esi
call fcn.004ab8b0
test eax, eax
je 0x4ac28b
pop ebx
pop edi
mov eax, 1
pop esi
pop ebp
ret 8
pop ebx
pop edi
mov eax, 2
pop esi
pop ebp
ret 8
pop edi
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x587740
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x58777b

Function at 0x5877be
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x3c]
add esi, edi
mov ebx, dword [esi + 0x78]
call fcn.00587700
sar byte [eax - 0x6f], cl
mov bl, 0x56
push ebx
call fcn.00587740
pop ecx
test eax, eax
pop ecx
je 0x587893
push edi
push esi
push ebx
call fcn.00587780
add esp, 0xc
call fcn.00587700
cmpsd dword [esi], dword es:[edi]
xorps xmm5, xmmword [ebp - 0x75]
jbe 0x587872
test esi, esi
je 0x587893
mov ebx, dword [esi + edi + 0x24]
add esi, edi
add ebx, edi
call fcn.00587700
outsw dx, word [esi]
push cs
mov eax, dword [esi + 0x20]
add eax, edi
mov edi, dword [esi + 0x1c]
add edi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
shr eax, 0x10
call 0xc0ddde3a
je 0x5878a2
and dword [ebp - 4], 0
mov eax, dword [edi]
pop es
mov dword [ebp - 0x10], eax
call fcn.00587700
shr esi, 0xb7
test al, 0x83
jge 0x587831
add byte [ebx + eax*2 - 0x75], dh
inc ebp
in al, dx
and dword [ebp - 0x10], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, dword [ebp - 4]
jne 0x587873
mov eax, dword [ebp - 0xc]
push dword [ebp + 0xc]
mov eax, dword [eax]
add eax, dword [ebp + 8]
push eax
call fcn.00587696
pop ecx
test eax, eax
pop ecx
je 0x58789a
daa
mov eax, dword [esi + 0x18]
inc dword [ebp - 0x10]
add dword [ebp - 8], 2
add dword [ebp - 0xc], 4
dec eax
cmp dword [ebp - 0x10], eax
jbe 0x587851
mov eax, dword [esi + 0x14]
inc dword [ebp - 4]
dec eax
cmp dword [ebp - 4], eax
jbe 0x587830
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 4]
mov eax, dword [edi + eax*4]
jmp 0x5878d7
xor ebx, ebx
mov dword [ebp - 0x10], edi
mov eax, dword [esi + 0x10]
add eax, ebx
cmp dword [ebp + 0xc], eax
jne 0x5878c2
call fcn.00587700
adc edi, dword [edi - 0x43]
and cl, byte [ebx + 0x3883f045]
add byte [ebp + 0xf], dh
mov eax, dword [esi + 0x14]
add dword [ebp - 0x10], 4
inc ebx
dec eax
cmp ebx, eax
jbe 0x5878a7
jmp 0x587893
add eax, dword [ebp + 8]
jmp 0x587895

Function at 0x587a63
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cmpsb byte ss:[esi], byte es:[edi]
push ebx
stc
lea eax, [ebp - 0x18]
mov byte [ebp - 0x18], bl
push eax
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda