joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f40
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4951c0]
jne 0x407f4a
repz ret
jmp fcn.0040bbb6

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40850a
call fcn.004086a3
mov dword [eax], esi
call fcn.00408690
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00409c80
add esp, 0x14
push 0x16
pop eax
jmp 0x40855f
test dword [ebp + 0xc], 0xfffffff9
jne 0x4084e6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x408537
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004086b6
pop ecx
call fcn.00408690
mov eax, dword [eax]
jmp 0x40855f
test al, 0x10
jne 0x40855d
test al, 1
je 0x40855d
test byte [ebp + 0xc], 2
je 0x40855d
call fcn.004086a3
mov dword [eax], 5
call fcn.00408690
mov dword [eax], 0xd
jmp 0x40852e
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4172d0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040ee9f
and dword [ebp - 4], 0
cmp dword [0x49a118], 0
mov ebx, eax
jne 0x417381
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x417432
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x47bf3c
push edi
call esi
test eax, eax
je 0x417432
push eax
call fcn.0040ee2d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x49a118], eax
call esi
push eax
call fcn.0040ee2d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x49a11c], eax
call esi
push eax
call fcn.0040ee2d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x49a120], eax
call esi
push eax
call fcn.0040ee2d
pop ecx
mov dword [0x49a128], eax
test eax, eax
je 0x417381
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040ee2d
pop ecx
mov dword [0x49a124], eax
mov eax, dword [0x49a124]
cmp eax, ebx
je 0x4173d9
cmp dword [0x49a128], ebx
je 0x4173d9
push eax
call fcn.0040eea8
push dword [0x49a128]
mov esi, eax
call fcn.0040eea8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4173d9
test edi, edi
je 0x4173d9
call esi
test eax, eax
je 0x4173d0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4173d0
test byte [ebp - 0xc], 1
jne 0x4173d9
or dword [ebp + 0x10], 0x200000
jmp 0x417412
mov eax, dword [0x49a11c]
cmp eax, ebx
je 0x417412
push eax
call fcn.0040eea8
pop ecx
test eax, eax
je 0x417412
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x417412
mov eax, dword [0x49a120]
cmp eax, ebx
je 0x417412
push eax
call fcn.0040eea8
pop ecx
test eax, eax
je 0x417412
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49a118]
call fcn.0040eea8
pop ecx
test eax, eax
je 0x417432
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x417434
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4207d0
Capabilities:
Read file on windows

Disassembly:
push ecx
cmp dword [ebx + 0x38], 0
push esi
mov esi, eax
je 0x4207f7
mov eax, dword [ebx + 0x44]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebx + 0x38]
push ecx
call fcn.00407f4f
add esp, 4
mov dword [ebx + 0x38], 0
push 0
push esi
call fcn.00408562
add esp, 8
test eax, eax
je 0x42080b
xor eax, eax
pop esi
pop ecx
ret
push ebp
push edi
push 0x47f090
push esi
call fcn.00408bd7
mov ebp, eax
push ebp
push 1
push 0xe
push ebx
call fcn.00408e8e
push ebp
push 1
lea esi, [ebx + 0x10]
push 0x28
push esi
call fcn.00408e8e
movzx eax, word [ebx + 0x1e]
mov edx, dword [ebx + 0x14]
mov edi, dword [ebx + 0x18]
lea ecx, [eax - 1]
add esp, 0x28
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x4c], edi
cmp ecx, 0x1f
ja case.0x420855.2
movzx ecx, byte [ecx + 0x42095c]
jmp dword [ecx*4 + 0x420948]
mov dword [ebx + 0x54], 2
jmp case.0x420855.2
mov dword [ebx + 0x54], 0x10
jmp case.0x420855.2
mov dword [ebx + 0x54], 0x100
jmp case.0x420855.2
mov dword [ebx + 0x54], 0
mov ecx, dword [ebx + 0x30]
test ecx, ecx
jne 0x420888
mov ecx, dword [ebx + 0x54]
imul eax, edx
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
imul eax, edi
add eax, eax
add eax, eax
mov dword [ebx + 0x50], eax
mov eax, dword [ebx + 0x54]
mov dword [esp + 0xc], ecx
test eax, eax
je 0x4208e5
lea edx, [eax*4 + 0x28]
push edx
call fcn.004082ac
mov dword [ebx + 0x38], eax
mov edi, eax
mov eax, dword [esp + 0x10]
push ebp
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebx + 0x38]
push 1
lea ecx, [eax*4]
push ecx
add edx, 0x28
push edx
call fcn.00408e8e
add esp, 0x14
jmp 0x4208fb
push 0x28
call fcn.004082ac
mov ecx, 0xa
mov edi, eax
mov dword [ebx + 0x38], eax
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x10]
push 0
push 0
lea esi, [ebx + 0x40]
push esi
push 0
push eax
add ecx, eax
push 0
mov dword [ebx + 0x3c], ecx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
cmp dword [ebx + 0x20], 0
mov dword [ebx + 0x44], eax
jne 0x420934
mov edx, dword [ebx + 0x50]
mov eax, dword [esi]
push ebp
push edx
push 1
push eax
call fcn.00408e8e
add esp, 0x10
push ebp
call fcn.00409014
add esp, 4
pop edi
pop ebp
mov eax, 1
pop esi
pop ecx
ret
Function at 0x421060
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push 0x47f094
push eax
mov ebx, ecx
mov esi, edx
call fcn.00408bd7
mov ecx, dword [esp + 0x30]
push 0
push ecx
push eax
mov dword [0x54c910], eax
call fcn.0040a3af
add esp, 0x14
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, 0xffffffff
je 0x4210a6
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x4210d3
test edi, edi
je 0x4210b1
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [0x54c910]
push edx
call fcn.00409014
push 0x47f098
push 0x47f0b8
xor edi, edi
call fcn.00458fe0
add esp, 0xc
jmp 0x4210fc
mov ecx, dword [0x54c910]
push ecx
push ebx
push 1
push eax
call fcn.00408e8e
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [0x54c910]
push edx
call fcn.00409014
add esp, 4
lea eax, [esp + 0x14]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jge 0x421120
push 0x47f0c0
push 0x47f0e0
call fcn.00458fe0
add esp, 8
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 0x47b55c
push 0
push 0
push edx
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
test eax, eax
jge 0x42114f
push 0x47f0e8
push 0x47f108
call fcn.00458fe0
add esp, 8
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [0x498010]
mov ebp, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
push 0x58
push ecx
call ebp
mov edx, dword [0x498010]
push 0x5a
push edx
mov dword [esp + 0x30], eax
call ebp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
push 0x9ec
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MulDiv]
call edi
mov ecx, dword [esp + 0x20]
push 0x9ec
push ecx
push ebx
mov ebp, eax
call edi
mov edi, eax
call fcn.004011a0
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esi + 0x218], eax
lea ebx, [esi + 0x21c]
mov eax, edi
mov ecx, ebp
call fcn.00469800
mov edx, dword [esi + 0x260]
mov eax, dword [esi + 0x218]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
push edx
mov edx, dword [esp + 0x24]
push edx
push 0
push 0
mov edx, edi
neg edx
push edx
mov edx, dword [esi + 0x218]
push ebp
push edi
push 0
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x424410
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [0x54c914]
push 0x3e8
push 0x54cb20
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, 0x54cb20
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x424430
mov cx, word [0x47f488]
mov dl, byte [0x47f48a]
mov word [eax], cx
mov byte [eax + 2], dl
mov eax, 0x54cf08
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x424452
push esi
push edi
mov edi, 0x54cb20
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x424465
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [0x54c914]
push 0x54cb20
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_SetWindowTextA]
cmp dword [0x58fb90], 0
je 0x4244c6
push 0x47f48c
push 0x47f490
call fcn.00408bd7
mov esi, eax
add esp, 8
test esi, esi
je 0x4244c6
push 0x54cf08
push 0x47f4a0
push esi
call fcn.0040a9c6
push esi
call fcn.00409014
add esp, 0x10
pop edi
pop esi
ret

Function at 0x424ad0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x18
cmp dword [0x58fe4c], 0
push ebx
push esi
push edi
jne 0x424b97
mov eax, dword [0x49ab6c]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 8]
push 0
push 0x44e8e0
push ecx
push str.IDD_DBGDLG
push edx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ed
push eax
mov dword [0x58fe4c], eax
call esi
mov dword [0x54c914], eax
mov eax, dword [0x58fe4c]
push 0x3f1
push eax
call esi
mov edx, dword [0x49ab6c]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x10]
mov dword [0x54c8fc], eax
mov eax, dword [edx + 0x10]
push ecx
push eax
call esi
mov edx, dword [0x58fe4c]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edx
call esi
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x10]
mov edx, dword [0x4967f0]
push 0
inc eax
push eax
inc ecx
push ecx
mov ecx, dword [0x58fe4c]
lea eax, [edx + ebx + 0x28]
push eax
push edi
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [0x58fe4c]
push 1
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x424e30
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push DirectSoundCreate
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x424fbd
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, 0xffffffff
je 0x424fc1
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x424fc1
push 0
lea ecx, [esp + 0x24]
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x424fb4
cmp ebx, dword [esp + 0x20]
jne 0x424fb4
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x14]
push edx
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jl 0x424fd8
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0x47b55c
push 0
push 0
push ecx
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
test eax, eax
jl 0x424fd8
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [0x498010]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
push 0x58
push ecx
call edi
mov edx, dword [0x498010]
push 0x5a
push edx
mov ebp, eax
call edi
push 0x9ec
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x30], eax
call esi
mov edi, eax
mov eax, dword [esp + 0x24]
push 0x9ec
push eax
push ebx
call esi
mov ebx, dword [esp + 0x2c]
mov esi, eax
push esi
push edi
mov eax, ebx
call fcn.004023a0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
push edx
mov edx, dword [esp + 0x24]
push edx
push 0
push 0
mov edx, esi
neg edx
push edx
mov edx, dword [ebx + 0x218]
push edi
push esi
push 0
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x424fc1
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x424fcc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp esi, 0xffffffff
je 0x424fd8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.JPEG
push 0x47f5c0
call fcn.00458fe0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
Function at 0x426410
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x478aa4
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x4951c0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov byte [0x4963e5], 0
call fcn.00403300
cmp dword [0x58fb2c], 0
je 0x42659f
mov esi, dword [0x58fb08]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x28], 0
mov ebp, dword [0x4963e0]
cmp ebp, dword [0x4963d8]
jge 0x4264fb
nop
cmp dword [esp + 0x1c], 0
mov eax, dword [0x4ed548]
lea edi, [eax + ebp*4]
je 0x4264ba
mov ecx, dword [edi]
mov dword [esi], ecx
add esi, 4
mov dword [esp + 0x10], esi
sub esi, dword [esp + 0x14]
cmp esi, 0x32000
jl 0x4264d2
push 0x48b2e8
push 0x48b1d8
call fcn.00458fe0
add esp, 8
jmp 0x4264d2
mov edx, dword [esp + 0x18]
push edx
push 1
push 4
push edi
call fcn.00408e8e
add esp, 0x10
test eax, eax
jne 0x4264d2
mov dword [edi], eax
mov eax, dword [0x539fbc]
mov ecx, dword [eax + ebp*4]
push 0xffffffffffffffff
lea esi, [esp + 0x14]
test ecx, ecx
jne 0x4264e9
mov ecx, 0x47d203
call fcn.004026c0
mov esi, dword [esp + 0x10]
inc ebp
cmp ebp, dword [0x4963d8]
jl 0x426480
cmp byte [0x58fba8], 0
je 0x426524
mov ecx, dword [0x49a31c]
push 0x58fba8
push 0x47f968
push ecx
call fcn.004081b3
mov eax, dword [0x49a31c]
add esp, 0xc
jmp 0x42654e
mov edx, dword [0x47f978]
mov eax, dword [0x49a31c]
mov dword [eax], edx
mov ecx, dword [0x47f97c]
mov dword [eax + 4], ecx
mov dx, word [0x47f980]
mov word [eax + 8], dx
mov cl, byte [0x47f982]
mov byte [eax + 0xa], cl
push 0x47f984
push eax
call fcn.00408bd7
mov edi, eax
add esp, 8
test edi, edi
je 0x42657f
sub esi, dword [esp + 0x14]
mov edx, dword [0x58fb08]
push edi
push esi
push 1
push edx
call fcn.0040a161
push edi
call fcn.00409014
add esp, 0x14
mov dword [esp + 0x28], 0xffffffff
cmp dword [esp + 0x1c], 0
jne 0x42659f
mov eax, dword [esp + 0x18]
test eax, eax
je 0x42659f
push eax
call fcn.00409014
add esp, 4
call fcn.0044fa30
cmp dword [0x58fb14], 0
je 0x4265b7
mov edi, 0x59ca80
call fcn.00405150
cmp dword [0x58fb18], 0
je 0x4265ca
mov edi, 0x649638
call fcn.00405150
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret

Function at 0x426750
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [0x54aae8]
push esi
mov esi, 0x54aae8
jmp 0x426760
mov ecx, dword [0x54a8cc]
movsx edx, al
push ecx
xor edx, 0x84
push edx
call fcn.0040afdc
mov al, byte [esi + 1]
inc esi
add esp, 8
test al, al
jne 0x426760
pop esi
ret
Function at 0x440750
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebp
xor ebp, ebp
cmp dword [0x52dea0], ebp
mov dword [esp + 4], ebp
jle 0x4407de
push ebx
push edi
mov eax, dword [0x54474c]
xor ebx, ebx
cmp dword [eax + ebp + 4], ebx
jle 0x4407c8
nop
cmp dword [esi + 0xc], 0
mov eax, dword [eax + ebp]
lea edi, [eax + ebx*4]
je 0x4407a5
mov ecx, dword [esi]
mov edx, dword [edi]
mov dword [ecx], edx
add dword [esi], 4
mov eax, dword [esi]
sub eax, dword [esi + 4]
cmp eax, 0x32000
jl 0x4407bc
push 0x48b2e8
push 0x48b1d8
call fcn.00458fe0
add esp, 8
jmp 0x4407bc
mov eax, dword [esi + 8]
push eax
push 1
push 4
push edi
call fcn.00408e8e
add esp, 0x10
test eax, eax
jne 0x4407bc
mov dword [edi], eax
mov eax, dword [0x54474c]
inc ebx
cmp ebx, dword [eax + ebp + 4]
jl 0x440770
mov eax, dword [esp + 0xc]
inc eax
add ebp, 0x60
cmp eax, dword [0x52dea0]
mov dword [esp + 0xc], eax
jl 0x440762
pop edi
pop ebx
pop ebp
pop ecx
ret
Function at 0x456590
Capabilities:
Get disk information

Disassembly:
sub esp, 0x220
mov eax, dword [0x4951c0]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
xor eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [esp + 0x1c], 0x5c3a41
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
xor ebx, ebx
mov al, bl
lea ecx, [esp + 0x1c]
add al, 0x41
push ecx
mov byte [esp + 0x20], al
call esi
cmp eax, 5
jne 0x456638
push 0x100
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x100
lea eax, [esp + 0x140]
push eax
lea ecx, [esp + 0x38]
push ecx
call ebp
test eax, eax
je 0x456638
mov eax, dword [0x49a31c]
push edi
lea edx, [esp + 0x20]
push edx
push 0x488014
push eax
call fcn.004081b3
mov ecx, dword [0x49a31c]
push 0
push ecx
call fcn.00408562
add esp, 0x18
test eax, eax
je 0x456658
inc ebx
cmp ebx, 0x1b
jl 0x4565c8
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00407f40
add esp, 0x220
ret
xor edx, edx
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x1c]
mov byte [eax + 0x58fab0], cl
inc eax
test cl, cl
jne 0x456660
cmp dword [0x4ab5b4], edx
je 0x4566a9
cmp dword [0x58f980], edx
je 0x4566a9
cmp dword [0x58f984], edx
je 0x4566a9
mov eax, dword [0x58f98c]
mov dword [0x58f984], edx
mov dword [esp + 0xc], edx
lea edx, [esp + 0xc]
push edx
push 2
push 0x808
push eax
call dword [sym.imp.WINMM.dll_mciSendCommandA]
call fcn.0046e680
mov ecx, dword [esp + 0x228]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00407f40
add esp, 0x220
ret
Function at 0x462250
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x38
push ebx
push ebp
push edi
mov eax, dword [esi + 0x10]
push 1
push 0x202
push 0x202
push eax
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x462256
mov edx, dword [esi + 0x10]
push 1
push 0x102
push 0x102
push edx
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x462275
call dword [sym.imp.WINMM.dll_timeGetTime]
xor ebx, ebx
mov ebp, eax
cmp dword [0x58fe6c], ebx
jne 0x4623d9
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4623a1
mov eax, dword [0x49ac78]
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x4622ef
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [esi + 0xa2c], 0x202
jne 0x462316
cmp dword [esp + 0x4c], 0
jne 0x4623d9
jmp 0x4623a1
cmp dword [esp + 0x4c], 0
je 0x4623a1
call fcn.00401de0
test eax, eax
jne 0x4623d9
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [0x49ab6c]
cmp eax, dword [ecx + 0x10]
jne 0x46234b
push 0xd
call edi
movzx eax, ax
test ax, ax
jne 0x462356
test ebx, ebx
jne 0x462356
mov ebx, 1
jmp 0x4623cc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edx, dword [0x49ab6c]
cmp eax, dword [edx + 0x10]
jne 0x46237f
push 0xd
call edi
movzx eax, ax
test ax, ax
je 0x46237f
cmp ebx, 1
jne 0x46237f
mov ebx, 2
jmp 0x4623cc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [0x49ab6c]
cmp eax, dword [ecx + 0x10]
jne 0x46239c
push 0xd
call edi
movzx eax, ax
test ax, ax
jne 0x4623a1
cmp ebx, 2
je 0x4623d9
cmp dword [0x543998], 0
je 0x4623b1
cmp dword [esp + 0x4c], 0
jne 0x4623d9
push esi
call fcn.00461ed0
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [esp + 0x48]
lea ecx, [edx + ebp]
cmp eax, ecx
jae 0x4623d9
cmp eax, ebp
jb 0x4623d9
cmp dword [0x58fe6c], 0
je 0x4622b0
pop edi
pop ebp
pop ebx
add esp, 0x38
ret 8
Function at 0x465040
Capabilities:
Write file on windows

Disassembly:
push ecx
movzx ecx, word [esi + 0x1e]
movzx eax, cx
imul eax, dword [esi + 0x14]
add eax, 0x1f
cdq
push ebx
and edx, 0x1f
add eax, edx
push ebp
push edi
mov edi, eax
sar edi, 5
imul edi, dword [esi + 0x18]
add edi, edi
mov eax, 0x4d42
add edi, edi
xor edx, edx
xor ebp, ebp
mov word [esi], ax
lea eax, [edi + 0x36]
mov dword [esp + 0xc], ebp
mov dword [esi + 2], eax
mov word [esi + 8], dx
mov word [esi + 6], dx
mov dword [esi + 0xa], 0x36
cmp cx, 8
jne 0x4650a2
mov edx, dword [esi + 0x30]
add edx, edx
add edx, edx
lea ebx, [edx + 0x36]
add edx, eax
mov dword [esi + 0xa], ebx
mov dword [esi + 2], edx
mov eax, 1
mov word [esi + 0x1c], ax
mov dword [esi + 0x20], ebp
cmp cx, 0x18
jne 0x4650b7
mov dword [esi + 0x30], ebp
mov ecx, dword [esp + 0x14]
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
push ecx
mov dword [esi + 0x34], ebp
mov dword [esi + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x10]
push edx
push 0xe
mov ebx, eax
push esi
push ebx
call ebp
push 0
lea eax, [esp + 0x10]
push eax
push 0x28
lea ecx, [esi + 0x10]
push ecx
push ebx
call ebp
cmp word [esi + 0x1e], 8
jne 0x465124
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x46510e
mov eax, 0x100
mov ecx, dword [esi + 0x38]
push 0
lea edx, [esp + 0x10]
push edx
add eax, eax
add eax, eax
push eax
add ecx, 0x28
push ecx
push ebx
call ebp
mov eax, dword [esi + 0x40]
push 0
lea edx, [esp + 0x10]
push edx
push edi
push eax
push ebx
call ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
pop ebx
pop ecx
ret 4