joyce8/EMBER2024-capa huggingface dataset:
Function at 0x587b5c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x587b6e
add esp, 0xfffffff0
call fcn.00405de8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004a42d4
mov eax, dword [0x633250]
mov dword [eax + 4], ebx
mov dword [eax], 0x588024
mov eax, dword [0x63325c]
mov dword [eax + 4], ebx
mov dword [eax], 0x588030
mov eax, ebx
call fcn.0058803c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x471264]
call fcn.00405848
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x471264]
call fcn.00405848
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x471264]
call fcn.00405848
mov dword [ebx + 0x64], eax
mov dl, 1
mov eax, dword [0x471264]
call fcn.00405848
mov dword [ebx + 0x68], eax
mov dl, 1
mov eax, dword [0x471264]
call fcn.00405848
mov dword [ebx + 0x84], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x50], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x68]
push eax
mov eax, 0x582ca0
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x4c72b4]
call fcn.004cd2d8
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x4c72b4]
call fcn.004cd2d8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4c72b4]
call fcn.004cd2d8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4c72b4]
call fcn.004cd2d8
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x4c72b4]
call fcn.004cd2d8
mov dword [ebx + 0x98], eax
mov eax, ebx
call fcn.00588618
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x588448
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x588448
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x588448
mov eax, dword [ebx + 0x94]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x588448
mov eax, dword [ebx + 0x98]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x588448
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x587cee
call fcn.00405e40
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5881e8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x588393
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x588374
mov dl, 1
mov eax, dword [0x474a00]
call fcn.0049735c
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00407460
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x588363
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00501110
test al, al
je 0x588356
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x5883a4
lea eax, [ebp - 0x394]
call fcn.0041e578
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x588356
xor eax, eax
push ebp
push 0x58834f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x588414
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x588338
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00408374
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
jne 0x588338
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00408374
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x588356
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x588259
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.004972ac
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58839a
lea eax, [ebp - 0x3a0]
call fcn.00407460
ret

Function at 0x588f40
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x639720]
cmp byte [eax + 0xc5], 0
jne 0x588fb2
cmp dword [0x639744], 0
jne 0x588f72
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x632440]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x639744], eax
cmp dword [0x639740], 0
jne 0x588f8d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x639740], eax
cmp dword [0x639748], 0
jne 0x588fb2
push esp
push 0
push 0
mov eax, dword [0x63243c]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x639748], eax
pop edx
ret
Function at 0x58935c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x589373
add esp, 0xfffffff0
call fcn.00405de8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004a42d4
mov eax, dword [0x63311c]
cmp byte [eax], 0
jne 0x5893a0
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x194], al
mov eax, dword [0x633424]
cmp word [eax + 2], 0
jne 0x5893ba
mov eax, dword [0x633424]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0058b5f4
mov eax, dword [0x63354c]
cmp word [eax + 2], 0
jne 0x5893d4
mov eax, dword [0x63354c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0058b7f8
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x4c72b4]
call fcn.004cd2d8
mov esi, eax
mov dword [ebx + 0x54], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x58bc74
mov dl, 1
mov eax, dword [0x471264]
call fcn.00405848
mov dword [ebx + 0xa8], eax
mov dl, 1
mov eax, dword [0x471264]
call fcn.00405848
mov dword [ebx + 0xc8], eax
xor eax, eax
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x70], 0xff000018
mov dword [ebx + 0x8c], 0x1f4
mov byte [ebx + 0x90], 1
xor eax, eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x88], 0x9c4
mov byte [ebx + 0x9c], 0
mov byte [ebx + 0xbd], 1
mov byte [ebx + 0xd4], 1
mov dl, 1
mov eax, dword [0x4cbbd4]
call fcn.004d607c
mov esi, eax
mov dword [ebx + 0xb8], esi
push 0x5895bc
mov eax, dword [0x6332e0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.004d6478
mov eax, dword [ebx + 0xb8]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x58bf34
mov dl, 1
mov eax, dword [0x471264]
call fcn.00405848
mov dword [ebx + 0xb0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x6332e0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0041e378
test eax, eax
je 0x5894ee
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0041e1b4
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0041e35c
test eax, eax
je 0x589506
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0xa4]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00408374
push ebx
push 0x58afd0
call fcn.0057f0a8
mov dword [ebx + 0x190], eax
mov byte [ebx + 0xe8], 0
mov eax, dword [0x63311c]
cmp byte [eax], 0
jne 0x589557
mov eax, ebx
call fcn.005897a0
mov byte [ebx + 0x6d], 1
mov byte [ebx + 0x6e], 1
mov byte [ebx + 0x6f], 1
mov byte [ebx + 0xbe], 1
mov byte [ebx + 0xe9], 0
mov byte [ebx + 0xf4], 0
xor eax, eax
mov dword [ebx + 0xec], eax
mov byte [ebx + 0xeb], 0
xor eax, eax
mov dword [ebx + 0xc0], eax
mov eax, ebx
call fcn.0058c16c
mov eax, ebx
call fcn.0058cdd8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5895b4
call fcn.00405e40
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x589ae4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x589b86
cmp dword [ebx + 0xac], 0
jne 0x589b80
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x589a20
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x589b80
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x589b46
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x589b80
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0xa8]
call fcn.00493324
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x589b55
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x589dc4
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov ebx, edx
mov esi, eax
mov eax, dword [0x639720]
cmp dword [eax + 0x188], 0
je 0x589f3e
test bl, bl
jne 0x589e89
cmp dword [esi + 0xb4], 0
jne 0x589e7e
mov eax, esi
call fcn.0058cc28
push eax
push 0x589cb8
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x589e4f
mov eax, dword [0x639720]
cmp byte [eax + 0xeb], 0
je 0x589e4f
mov eax, dword [esi + 0xf0]
mov dword [esp], eax
mov eax, dword [esp]
test eax, eax
je 0x589e30
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x589e4f
push 0
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x589e38
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x589e7e
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0xb0]
call fcn.00493324
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x589e5e
inc dword [esi + 0xb4]
jmp 0x589f3e
cmp dword [esi + 0xb4], 0
jle 0x589f3e
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x589f3e
cmp dword [esi + 0x58], 0
je 0x589ef3
mov eax, dword [0x639720]
cmp byte [eax + 0xeb], 0
je 0x589ef3
mov eax, dword [esi + 0xf0]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x589ed4
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x589ef3
push 5
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x589edc
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x589f22
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0xb0]
call fcn.00493324
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x589f02
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xf0]
mov edx, dword [0x57b934]
call fcn.00409870
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x58ab5c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x58abb9
cmp byte [ebx + 0xeb], 0
jne 0x58abb9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x188]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004075e8
mov eax, dword [esi]
test eax, eax
je 0x58aba6
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x58abc6
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.00407840
jmp 0x58abc6
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.00407840
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x58c354
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x58c3c5
mov eax, esi
call fcn.004faf00
test al, al
je 0x58c3c5
mov eax, dword [ebx + 0x98]
call fcn.004fab30
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x58c3c5
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x114]
test al, al
je 0x58c3b6
push 0
mov eax, dword [ebx + 0x98]
call fcn.004fab30
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x98]
call fcn.004f1bbc
jmp 0x58c3c5
mov cl, 1
mov edx, dword [ebx + 0x88]
mov eax, ebx
call fcn.0058c18c
pop esi
pop ebx
ret
Function at 0x59896c
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004a41dc
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
pop ebx
ret

Function at 0x598a10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x598a22
mov ebx, 0x63249c
test edx, edx
jbe 0x598a44
mov esi, ecx
shr esi, 0x18
and esi, 0xff
movzx edi, byte [eax]
xor esi, edi
mov esi, dword [ebx + esi*4]
shl ecx, 8
xor esi, ecx
mov ecx, esi
inc eax
dec edx
jne 0x598a26
mov eax, ecx
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x598ab8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
add esp, 0xffffff80
test cl, cl
je 0x598ae3
cmp edx, 0x40
jl 0x598acb
mov edx, 0x40
push edx
lea ecx, [esp + 4]
push ecx
push edx
push eax
push 0x200
push 0
call sub.kernel32.dll_LCMapStringW
mov edx, eax
mov eax, esp
xor ecx, ecx
test edx, edx
jle 0x598b0b
shl ecx, 4
movzx ebx, word [eax]
add ecx, ebx
mov ebx, 0xf0000000
and ebx, ecx
mov esi, ebx
shr esi, 0x18
xor ecx, esi
not ebx
and ecx, ebx
dec edx
add eax, 2
test edx, edx
jg 0x598ae9
mov eax, ecx
add esp, 0x80
pop esi
pop ebx
ret

Function at 0x598b18
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x5c
call fcn.00405424
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret
Function at 0x5a5bd8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x5a5be1
mov eax, dword [ebp - 4]
push ebx
xor edx, edx
mov dword [ebp - 0x10004], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5a5c5a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xfffe]
push eax
push 0x7fff
call sub.kernel32.dll_GetCurrentDirectoryW
mov ecx, eax
lea edx, [ebp - 0xfffe]
mov eax, ebx
call fcn.004075e8
lea edx, [ebp - 0x10004]
mov eax, dword [ebx]
call fcn.005a5c68
mov edx, dword [ebp - 0x10004]
mov eax, ebx
call fcn.00407840
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a5c61
lea eax, [ebp - 0x10004]
call fcn.00407460
ret

Function at 0x5a5d9c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
xor edx, edx
mov dword [ebp - 0x210], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5a5e16
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20a]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathW
test eax, eax
jbe 0x5a5df8
lea eax, [ebp - 0x210]
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00408374
mov eax, dword [ebp - 0x210]
mov edx, ebx
call fcn.005a5c68
jmp 0x5a5dfd
call fcn.00424b78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a5e1d
lea eax, [ebp - 0x210]
call fcn.00407460
ret

Function at 0x5a5e24
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x210], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5a5eac
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20a]
push eax
push 0
mov eax, ebx
call fcn.004082b8
push eax
lea eax, [ebp - 0x210]
call fcn.005a5d9c
mov eax, dword [ebp - 0x210]
call fcn.004082b8
push eax
call sub.kernel32.dll_GetTempFileNameW
test eax, eax
jbe 0x5a5e8e
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00408374
jmp 0x5a5e93
call fcn.00424b78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a5eb3
lea eax, [ebp - 0x210]
call fcn.00407460
ret
Function at 0x5a6028
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5a60d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
test ebx, ebx
je 0x5a60c3
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x5a60bc
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, ebx
test eax, eax
je 0x5a6072
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x104
jl 0x5a608a
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, 0x5a60f4
call fcn.00408524
jmp 0x5a6094
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407888
mov eax, dword [ebp - 4]
call fcn.004082b8
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a60c3
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a60e0
lea eax, [ebp - 4]
call fcn.00407460
ret

Function at 0x5a6118
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5a6189
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
test eax, eax
je 0x5a613c
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x104
jl 0x5a6154
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, 0x5a61a4
call fcn.00408524
jmp 0x5a615e
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407888
push esi
mov eax, dword [ebp - 4]
call fcn.004082b8
push eax
call sub.kernel32.dll_SetFileAttributesW
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a6190
lea eax, [ebp - 4]
call fcn.00407460
ret

Function at 0x5a647c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x5a6535
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
test eax, eax
je 0x5a64a5
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x104
jl 0x5a64bd
lea eax, [ebp - 4]
mov ecx, edi
mov edx, 0x5a6554
call fcn.00408524
jmp 0x5a64c7
lea eax, [ebp - 4]
mov edx, edi
call fcn.00407888
mov eax, esi
test eax, eax
je 0x5a64d2
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x104
jl 0x5a64ea
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 0x5a656c
call fcn.00408524
jmp 0x5a64f4
lea eax, [ebp - 8]
mov edx, esi
call fcn.00407888
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [ebp - 8]
call fcn.004082b8
push eax
mov eax, dword [ebp - 4]
call fcn.004082b8
push eax
call sub.kernel32.dll_CopyFileW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a653c
lea eax, [ebp - 8]
mov edx, 2
call fcn.004074c0
ret
Function at 0x5a6834
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5a68e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
test eax, eax
je 0x5a685a
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x104
jl 0x5a6872
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, 0x5a68fc
call fcn.00408524
jmp 0x5a687c
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407888
mov eax, esi
test eax, eax
je 0x5a6887
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x104
jl 0x5a689f
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 0x5a6914
call fcn.00408524
jmp 0x5a68a9
lea eax, [ebp - 8]
mov edx, esi
call fcn.00407888
mov eax, dword [ebp - 8]
call fcn.004082b8
push eax
mov eax, dword [ebp - 4]
call fcn.004082b8
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a68e8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004074c0
ret

Function at 0x5a7230
Capabilities:
Get file size

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, eax
lea eax, [esp + 8]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_GetFileSize
xor edx, edx
mov dword [esp], eax
mov dword [esp + 4], edx
cmp dword [esp + 8], 0
je 0x5a726c
mov eax, dword [esp + 8]
xor edx, edx
mov edx, eax
xor eax, eax
or eax, dword [esp]
or edx, dword [esp + 4]
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
pop ebx
ret

Function at 0x5a8778
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
movzx ebx, word [0x5a87e4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5a8790
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5a87a0
or bx, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5a87b0
or bx, 2
push 1
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5a87c0
or bx, 8
push 4
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5a87d0
or bx, 0x20
push 2
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5a87e0
or bx, 0x10
mov eax, ebx
pop ebx
ret

Function at 0x5a884c
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
mov dword [esp], 0x80
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x5a887d
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x80
call fcn.00408374
jmp 0x5a888c
mov eax, ebx
mov edx, dword [0x633600]
mov edx, dword [edx]
call fcn.00407840
add esp, 0x104
pop ebx
ret
Function at 0x5a88f4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
call fcn.004083c4
push esi
push ebx
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00408050
push eax
push 0
call sub.kernel32.dll_CreateProcessW
mov ebx, eax
test ebx, ebx
je 0x5a8949
push 0x1388
mov eax, dword [esi]
push eax
call sub.user32.dll_WaitForInputIdle
cmp eax, 0x102
jne 0x5a894d
xor eax, eax
jmp 0x5a894f
mov al, 1
neg al
sbb eax, eax
mov ebx, eax
mov eax, ebx
pop esi
pop ebx
pop ebp
ret