joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4205d8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.00409cdc
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x420642
test ah, 4
je 0x42063b
test bl, bl
jne 0x420600
mov al, 1
jmp 0x420669
test al, 0x10
je 0x420608
xor eax, eax
jmp 0x420669
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42062c
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x420669
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x420669
test al, 0x10
sete al
jmp 0x420669
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x420663
cmp ebx, 3
je 0x420663
cmp ebx, 0x7b
je 0x420663
mov eax, esi
call fcn.00420598
test al, al
jne 0x420667
xor eax, eax
jmp 0x420669
mov al, 1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.00409cdc
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x420717
test esi, 0x400
jne 0x4206ac
test esi, 0x10
setne bl
jmp 0x420747
cmp byte [esp], 0
je 0x4206e0
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x420747
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x420747
test esi, 0x10
je 0x4206ec
mov bl, 1
jmp 0x420747
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x420713
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x420747
mov bl, 1
jmp 0x420747
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x420741
cmp eax, 3
je 0x420741
cmp eax, 0xa1
je 0x420741
cmp eax, 0x7b
je 0x420741
cmp eax, 0x35
je 0x420741
cmp eax, 0x15
je 0x420741
cmp eax, 0x43
jne 0x420745
xor ebx, ebx
jmp 0x420747
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x420980
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.00409cdc
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4209d5
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4209cf
test ah, 4
je 0x4209cf
test al, 0x10
je 0x4209cf
mov eax, esi
call fcn.00409cdc
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4209d5
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x425e80
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x425eb9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00408ffc
jmp 0x425ec2
mov eax, ebx
mov edx, esi
call fcn.00409254
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x425ecc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x425eee
movzx eax, word [esp]
jmp 0x425ef0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x426bc8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x426ced
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004269d0
mov esi, eax
mov eax, dword [0x682b28]
cmp byte [eax], 0
je 0x426c95
mov eax, dword [0x682714]
call fcn.00406d2c
call fcn.004068ac
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x426b98]
call fcn.0040b340
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x426d08
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x426cd1
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x682670]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x685c50]
call fcn.0040b68c
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426cf4
lea eax, [ebp - 4]
mov edx, dword [0x426b98]
call fcn.0040b464
ret
Function at 0x42793c
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 0x427a12
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040929c
lea eax, [ebp - 4]
call fcn.0040943c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00409cdc
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4279fc
mov eax, ebx
call fcn.00406738
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4279f5
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.00409cdc
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4279df
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x427a24
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4279df
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 0x4279fc
mov eax, dword [ebp - 0x10]
call fcn.00406754
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427a19
lea eax, [ebp - 4]
call fcn.00408e74
ret

Function at 0x428c74
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00409d98
add esp, 0x800
pop ebx
ret
Function at 0x4a8274
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a8312
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x4a82d6
cmp byte [ebx + 0x10], 0
jne 0x4a82d6
cmp byte [ebx + 0x3c], 0
jne 0x4a82d6
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4a82f7
lea edx, [ebp - 4]
mov eax, dword [0x682a8c]
call fcn.0040d140
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x481b80]
call fcn.00426d18
call fcn.0040853c
jmp 0x4a82f7
lea edx, [ebp - 8]
mov eax, dword [0x682a8c]
call fcn.0040d140
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x481b80]
call fcn.00426d18
call fcn.0040853c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8319
lea eax, [ebp - 8]
mov edx, 2
call fcn.00408ed4
ret

Function at 0x4a863c
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4a868a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004a81c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a86a3
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4a86ac
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004a81c0
dec esi
jne 0x4a86ce
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x4aab9c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x688028
cmp dword [edi], 0
jne 0x4aac18
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x688024]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x66d764
mov ecx, 2
call fcn.004068fc
mov edx, 0x4aab74
lea eax, [esi + 5]
call fcn.004aab94
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004aab94
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 0x4aabed
mov dword [0x688024], 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 0x4ce7c4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ce919
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 4], 0
je 0x4ce8ee
mov eax, dword [ebx + 4]
mov dl, 1
call fcn.004205d8
test al, al
je 0x4ce8ee
push 0x20
mov ecx, dword [ebx + 4]
mov dl, 1
mov eax, dword [0x47d86c]
call fcn.0049d704
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4ce8e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
mov esi, eax
mov eax, dword [ebp - 0xc]
call fcn.0049ce0c
sub esi, eax
push esi
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x40447c]
call fcn.0040b340
add esp, 4
mov edx, dword [ebp - 4]
mov ecx, esi
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebx + 0xc]
mov eax, dword [ebp - 4]
call fcn.004296fc
mov esi, eax
mov dl, 1
mov eax, dword [0x47aa8c]
call fcn.0049cdac
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4ce8ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040b124
sub eax, esi
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0xc]
mov ecx, esi
mov edx, dword [ebp - 4]
call fcn.00429d30
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004ceb90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ce8d1
mov eax, dword [ebp - 8]
call fcn.00407288
ret
mov eax, ebx
call fcn.004ce5c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ce920
lea eax, [ebp - 0x10]
call fcn.00408e74
lea eax, [ebp - 4]
mov edx, dword [0x40447c]
call fcn.0040b464
ret

Function at 0x4d1498
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.004d0d30
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.00409cdc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.004d0df8
test al, al
jne 0x4d1500
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x682958]
mov dl, 1
mov eax, dword [0x4cfb04]
call fcn.00426e10
call fcn.0040853c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4d150c
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.00409cdc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.004d0df8
test al, al
jne 0x4d156d
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x682d78]
mov dl, 1
mov eax, dword [0x4cfb04]
call fcn.00426e10
call fcn.0040853c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004d0d60
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 0x4d9e2c
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 0x4d9e32
ret
Function at 0x4e4c6c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4e4e21
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x30], 0
jne 0x4e4dfd
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x4e4dfd
mov eax, dword [ebp - 0xc]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x28
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x28]
add ebx, ebx
add ebx, ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
imul ebx
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4e4c34]
call fcn.0040b340
add esp, 4
lea eax, [ebp - 4]
call fcn.0040caf0
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [0x682724]
push eax
call sub.windowscodecs.dll_WICConvertBitmapSource
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 8]
call fcn.0040b124
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x2c
call fcn.00406d90
mov dword [ebp - 0x3c], 0x2c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
neg eax
mov dword [ebp - 0x34], eax
mov word [ebp - 0x30], 1
mov word [ebp - 0x2e], 0x20
mov dl, 1
mov eax, dword [0x4d86f0]
call fcn.004e16e8
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], ebx
xor edx, edx
push ebp
push 0x4e4dd4
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, ebx
mov dl, 7
call fcn.004e32f0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
push 0
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
push eax
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x70]
push eax
push 0
call sub.gdi32.dll_SetDIBits
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov dl, 1
call fcn.004e2370
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e4dfd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e4e28
lea eax, [ebp - 8]
mov edx, dword [0x4e4c34]
call fcn.0040b464
lea eax, [ebp - 4]
call fcn.0040caf0
ret

Function at 0x4f359c
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x66f9ac
test edx, edx
jne 0x4f35bb
xor eax, eax
jmp 0x4f36d9
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x4f35d8
push esi
push edx
push eax
call fcn.004f36e0
add esp, 0xc
jmp 0x4f36d9
push esi
push edx
push eax
call fcn.004f39a0
add esp, 0xc
jmp 0x4f36d9
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4f5190
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x43618c]
call fcn.0040a6b0
xor eax, eax
push ebp
push 0x4f5313
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x671ac8], 0
jne 0x4f51e4
mov ecx, dword [0x6824fc]
mov dl, 1
mov eax, dword [0x418f78]
call fcn.00426dd4
call fcn.0040853c
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.00406d90
mov eax, ebx
call fcn.00409ad4
mov dword [ebp - 0x20], eax
push esi
mov esi, 0x4f5324
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.0040caf0
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
test eax, eax
je 0x4f522b
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x4f5280
mov dword [ebp - 0x14], 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4f5279
lea eax, [ebp - 0x58]
mov edx, ebx
call fcn.00409dd4
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x54]
mov ecx, 0x10
call fcn.00409d98
mov eax, dword [ebp - 0x5c]
pop edx
call fcn.0041f548
test eax, eax
jne 0x4f5279
mov ebx, 0x15
jmp 0x4f5285
mov ebx, 0x10
jmp 0x4f5285
mov ebx, 0x15
xor eax, eax
push ebp
push 0x4f52d0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x682cf8]
movzx eax, word [eax]
or ax, 8
call fcn.00406c00
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push ebx
push 0
push esi
call dword [0x671ac8]
call fcn.004f4fc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f52d7
call fcn.00406bf0
ret
Function at 0x5022f8
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 - 8]
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 [0x688238], 0
je 0x502439
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x682a4c]
mov edx, dword [edx]
xor al, byte [edx + 0xc8]
je 0x502439
mov eax, dword [0x68823c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x688238]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x502408
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x688238]
call fcn.00498f40
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x502400
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1fd], 0
je 0x502400
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x68]
test al, al
je 0x502400
mov eax, dword [ebp - 0x14]
call fcn.0050dc1c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x502400
push ebp
call fcn.005022b4
pop ecx
test al, al
jne 0x502400
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffba
call fcn.00407548
test al, al
je 0x502400
mov byte [ebp - 9], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 9]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00407548
cmp byte [ebp - 9], 0
je 0x502400
lea edx, [ebp - 8]
lea eax, [ebp - 0x28]
call fcn.0040e794
test al, al
je 0x502400
mov edx, dword [ebp - 0x14]
mov eax, dword [0x68823c]
call fcn.00501a18
inc edi
dec ebx
jne 0x50235d
mov eax, dword [0x68823c]
cmp dword [eax + 8], 0
jle 0x502420
mov eax, dword [0x68823c]
call fcn.00501acc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x502439
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0050211c
pop ecx
test al, al
jne 0x502439
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 0x50a7d0
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.0040ea24
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.005048e8
test ebx, ebx
jne 0x50a823
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0050a64c
mov ebx, eax
test ebx, ebx
je 0x50a919
cmp esi, ebx
je 0x50a84c
mov eax, dword [esp]
sub eax, dword [ebx + 0x48]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x4c]
mov dword [esp + 0x118], eax
jmp 0x50a861
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 0x50a899
add eax, 0xffffff5f
sub eax, 2
jb 0x50a8b1
dec eax
sub eax, 2
jb 0x50a8c5
dec eax
sub eax, 2
jb 0x50a8bb
jmp 0x50a8cf
add eax, 0xfffffdff
sub eax, 2
jb 0x50a8b1
dec eax
sub eax, 2
jb 0x50a8c5
dec eax
sub eax, 2
jb 0x50a8bb
jmp 0x50a8cf
mov byte [esp + 0x120], 0
jmp 0x50a8d7
mov byte [esp + 0x120], 2
jmp 0x50a8d7
mov byte [esp + 0x120], 1
jmp 0x50a8d7
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.005a917c
mov esi, eax
call fcn.005013a4
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0050617c
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x50a91b
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x52e82c
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x52e919
push dword fs:[edx]
mov dword fs:[edx], esp
push ebx
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x52e8eb
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
xor edx, edx
push ebp
push 0x52e8da
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov eax, edi
mov ecx, ebx
call fcn.004068fc
mov eax, dword [ebp - 4]
call fcn.0052e710
mov eax, dword [ebp - 8]
push eax
movzx eax, si
push eax
call sub.user32.dll_SetClipboardData
test eax, eax
jne 0x52e8c3
mov ecx, dword [0x6825c4]
mov dl, 1
mov eax, dword [0x476ed8]
call fcn.00426dd4
call fcn.0040853c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52e8e1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret