joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44da6c
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
cmp byte [ebp + 8], 0
je 0x44dad4
push ebx
push 0x400
mov edx, 0x4a4dc5
mov eax, 0x4a582f
mov ecx, edi
call fcn.0046c0c4
cmp byte [edi], 0
jne 0x44daac
push ebx
push edi
call fcn.00494e64
add esp, 8
jmp 0x44dad7
push 0x400
lea eax, [ebp - 0x400]
push eax
push edi
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
mov byte [ebp - 1], 0
lea edx, [ebp - 0x400]
push edx
push edi
call fcn.00494e64
add esp, 8
jmp 0x44dad7
mov byte [edi], 0
mov al, byte [edi]
test al, al
setne bl
and ebx, 1
test al, al
jne 0x44daf0
push edi
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov eax, edi
call fcn.0040bf64
cmp byte [ebp + 0x10], 0
jne 0x44db05
test bl, bl
je 0x44dbaa
mov edx, 0x4a583a
mov eax, 0x4a582f
mov ecx, 1
call fcn.0046c29c
test eax, eax
je 0x44dbaa
mov eax, esi
call fcn.0040ba60
push eax
push edi
call fcn.00494d88
add esp, 8
mov eax, edi
call fcn.0040be4c
mov esi, eax
test esi, esi
je 0x44dbaa
cmp edi, esi
jae 0x44dbaa
mov byte [esi], 0
mov eax, edi
call fcn.0040be4c
mov ebx, eax
test ebx, ebx
je 0x44db96
cmp edi, ebx
jae 0x44db96
cmp byte [ebp + 0xc], 0
je 0x44db83
cmp byte [esi + 1], 0
je 0x44db83
xor eax, eax
mov al, byte [esi + 2]
push eax
call fcn.00498bfc
pop ecx
test eax, eax
jne 0x44db83
xor edx, edx
mov dl, byte [esi - 1]
push edx
call fcn.00498bfc
pop ecx
test eax, eax
jne 0x44db93
mov edx, 0x4a5106
mov eax, ebx
call fcn.0040ee00
test eax, eax
jne 0x44db96
mov byte [ebx], 0
dec esi
jmp 0x44db9d
mov byte [esi], 0
dec esi
cmp edi, esi
jae 0x44dbaa
xor ecx, ecx
mov cl, byte [esi]
cmp ecx, 0x2e
je 0x44db99
xor edx, edx
mov eax, edi
call fcn.0040c310
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44ea4c
Capabilities:
Copy file
Get file attributes
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff004
mov esi, eax
push eax
add esp, 0xfffff3f8
cmp dword [0x4c4ce8], 0
jne 0x44eca1
push 0
push 0
push 0xffffffffffffffff
push esi
call sub.SHELL32.DLL_DragQueryFileA
mov edi, eax
cmp edi, 1
jne 0x44ec02
mov word [esp + 0x408], 0
push 0x400
lea eax, [esp + 0xc]
push eax
push 0
push esi
call sub.SHELL32.DLL_DragQueryFileA
call fcn.0040ffc8
test eax, eax
je 0x44eabd
push 0x400
lea edx, [esp + 0x40c]
push edx
push 0
push esi
call sub.SHELL32.DLL_DragQueryFileW
push esp
call sub.USER32.DLL_GetCursorPos
push dword [esp + 4]
push dword [esp + 4]
call sub.USER32.DLL_WindowFromPoint
cmp dword [0x4c4ce0], 0
je 0x44eae9
cmp eax, dword [0x4c2354]
je 0x44eb15
cmp eax, dword [0x4c2880]
je 0x44eb15
lea eax, [esp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
test al, 0x10
jne 0x44eb15
push 1
lea ecx, [esp + 0x40c]
lea edx, [esp + 0xc]
mov eax, 0x4c2354
call fcn.00466aa0
dec eax
je 0x44eca1
push 7
push 0x4a58e3
lea eax, [esp + 0x10]
call fcn.0040ba60
push eax
call fcn.00495094
add esp, 0xc
test eax, eax
jne 0x44ec02
push 0x400
lea edx, [esp + 0xc0c]
push edx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x4a58eb
lea eax, [esp + 0xc0c]
call fcn.0040ba60
push eax
call fcn.00494e64
add esp, 8
push 0
lea edx, [esp + 0xc0c]
push edx
lea ecx, [esp + 0x10]
push ecx
call sub.KERNEL32.DLL_CopyFileA
push dword [0x4c2340]
call sub.USER32.DLL_SetForegroundWindow
push 1
push dword [0x4c2340]
call sub.USER32.DLL_FlashWindow
mov al, 1
call fcn.0040e580
mov byte [0x4af630], al
push 0
push dword [0x4c2340]
call sub.USER32.DLL_FlashWindow
cmp dword [0x4c4ce0], 0
je 0x44ebbe
mov eax, 0x4c2354
call fcn.004651bc
jmp 0x44ebcd
mov edx, 0x4a4c39
mov eax, 0x4c2354
call fcn.004638e8
cmp byte [0x4af630], 0
je 0x44eca1
push 0x30
mov eax, 0x368
call fcn.0041202c
push eax
mov eax, 0x367
call fcn.0041202c
push eax
push dword [0x4c2340]
call sub.USER32.DLL_MessageBoxA
jmp 0x44eca1
xor eax, eax
call fcn.004572bc
cmp dword [0x4c4ce0], 0
je 0x44ec1c
mov dword [0x4b8f84], 1
mov eax, dword [0x4bb9b4]
call fcn.0040f74c
xor ebx, ebx
cmp edi, ebx
jle 0x44ec86
mov word [esp + 0x1408], 0
push 0x400
lea eax, [esp + 0x100c]
push eax
mov ebp, ebx
push ebp
push esi
call sub.SHELL32.DLL_DragQueryFileA
call fcn.0040ffc8
test eax, eax
je 0x44ec69
push 0x400
lea eax, [esp + 0x140c]
push eax
push ebp
push esi
call sub.SHELL32.DLL_DragQueryFileW
lea ecx, [esp + 0x1408]
lea edx, [esp + 0x1008]
mov eax, dword [0x4bb9b4]
call fcn.0040f784
inc ebx
cmp edi, ebx
jg 0x44ec2c
push 0x10
call sub.USER32.DLL_GetKeyState
test ah, 0x80
setne al
and eax, 1
mov cl, 1
mov edx, eax
xor eax, eax
call fcn.00458078
add esp, 0x1c08
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x44f2cc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
push esi
add esp, 0xfffff7cc
mov esi, edx
mov eax, dword [ebx + 0x3c]
cmp esi, eax
jl 0x44f2e8
mov edx, eax
add edx, dword [ebx + 0x40]
cmp esi, edx
jl 0x44f2ef
xor eax, eax
jmp 0x44f3d5
mov edx, esi
sub edx, eax
push edx
push 0x4a4e4c
lea ecx, [esp + 8]
push ecx
call fcn.00497dc4
add esp, 0xc
push 0x4a4c39
push 0x400
lea ecx, [esp + 0x3c]
lea edx, [esp + 8]
mov eax, ebx
call fcn.0046c0c4
lea eax, [esp + 0x34]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x44f361
test al, 0x10
je 0x44f361
lea eax, [esp + 0x34]
xor edx, edx
call fcn.0046ec30
mov eax, 0x4c2354
call fcn.004691b8
test al, al
je 0x44f3d0
lea edx, [esp + 0x34]
mov eax, 0x4c2354
xor ecx, ecx
call fcn.00467200
jmp 0x44f3d0
lea edx, [esp + 0x34]
mov eax, 0x4c2354
xor ecx, ecx
call fcn.00467090
test al, al
je 0x44f3d0
sub esi, dword [ebx + 0x3c]
push esi
push 0x4a58f6
lea edx, [esp + 8]
push edx
call fcn.00497dc4
add esp, 0xc
push 0x4a4c39
push 0x400
lea ecx, [esp + 0x43c]
lea edx, [esp + 8]
mov eax, ebx
call fcn.0046c0c4
cmp byte [esp + 0x434], 0
je 0x44f3d0
lea edx, [esp + 0x434]
mov eax, 0x4c309c
xor ecx, ecx
call fcn.004624c0
mov eax, 0x4c2354
xor edx, edx
call fcn.004646c8
mov eax, 1
add esp, 0x834
pop esi
pop ebx
ret
Function at 0x44f4dc
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push ebx
push esi
add esp, 0xfffff2b0
mov byte [esp], al
mov dword [0x4c4cf8], 1
test dl, dl
je 0x44f670
lea eax, [esp + 0x10]
mov edx, 0x400
call fcn.0046eb74
lea eax, [esp + 0x10]
call fcn.0040bf64
lea edx, [esp + 0x10]
push edx
push 0x4a5938
lea ecx, [esp + 0x418]
push ecx
call fcn.00497dc4
add esp, 0xc
lea eax, [esp + 4]
push eax
call sub.KERNEL32.DLL_GetSystemTimeAsFileTime
lea edx, [esp + 0x810]
push edx
lea ecx, [esp + 0x414]
push ecx
call sub.KERNEL32.DLL_FindFirstFileA
mov esi, eax
cmp eax, 0xffffffff
sete al
and eax, 1
jmp 0x44f659
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
sub edx, dword [esp + 0x818]
push eax
cmp edx, 8
lea edx, [esp + 0x954]
setae bl
and ebx, 1
push edx
call fcn.00494e64
add esp, 8
lea ecx, [esp + 0x83c]
push ecx
lea eax, [esp + 0x954]
push eax
call fcn.00494d88
add esp, 8
test byte [esp + 0x810], 0x10
je 0x44f628
push 6
push 0x4a5940
lea edx, [esp + 0x844]
push edx
call fcn.00494ef0
add esp, 0xc
test eax, eax
jne 0x44f5cd
call fcn.0040ffc8
cmp eax, 4
jne 0x44f5d1
xor ecx, ecx
jmp 0x44f5d6
mov ecx, 1
mov byte [esp + 0xc], cl
lea eax, [esp + 0x950]
push eax
call sub.KERNEL32.DLL_RemoveDirectoryA
test eax, eax
jne 0x44f643
test bl, bl
je 0x44f5f5
cmp byte [esp], 0
je 0x44f5fc
cmp byte [esp + 0xc], 0
je 0x44f643
lea eax, [esp + 0x950]
call fcn.0046e968
test al, al
je 0x44f643
lea eax, [esp + 0x950]
xor edx, edx
call fcn.0040a930
lea eax, [esp + 0x950]
call fcn.0046e148
jmp 0x44f643
lea eax, [esp + 0x950]
xor edx, edx
call fcn.0040a930
lea ecx, [esp + 0x950]
push ecx
call sub.KERNEL32.DLL_DeleteFileA
lea eax, [esp + 0x810]
push eax
push esi
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
sete al
and eax, 1
test eax, eax
jne 0x44f66a
cmp dword [0x4c4cf8], 1
je 0x44f559
push esi
call sub.KERNEL32.DLL_FindClose
cmp byte [esp], 0
jne 0x44f6a9
cmp byte [0x4af630], 0
je 0x44f6a9
push 0
call sub.KERNEL32.DLL_GetCurrentThread
push eax
call sub.KERNEL32.DLL_SetThreadPriority
mov al, 1
call fcn.0044f6bc
mov ebx, eax
mov byte [0x4af630], bl
test bl, bl
jne 0x44f6a9
mov eax, 0x4a58bd
call fcn.004509b0
xor edx, edx
mov dword [0x4c4cf8], edx
add esp, 0xd50
pop esi
pop ebx
ret
Function at 0x452986
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
cmp dword [0x4a6308], 0
jne 0x4529c8
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov dword [0x4a6308], 0x400000
mov eax, dword [esp + 8]
cmp eax, 0x8000000
ja 0x4529b7
mov dword [0x4a6308], 0x200000
cmp eax, 0x4000000
ja 0x4529c8
mov dword [0x4a6308], 0x100000
mov eax, dword [0x4a6308]
add esp, 0x20
ret

Function at 0x4537d4
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff200
mov esi, edx
mov ebx, eax
mov eax, esi
lea ebp, [esp + 0x400]
call fcn.0040ba60
mov edi, eax
cmp byte [0x4b0f6c], 0
je 0x45380e
mov eax, 0x4b0e6c
mov ecx, 0x3a
mov edx, edi
call fcn.004106c8
jmp 0x453819
push 0x3a
push edi
call fcn.00494f2c
add esp, 8
test eax, eax
je 0x453857
cmp byte [0x4a63d4], 0
jne 0x453857
push 0x31
mov eax, 0x65
call fcn.0041202c
push eax
mov eax, 0x528
call fcn.0041202c
push eax
push ebx
call sub.USER32.DLL_MessageBoxA
dec eax
jne 0x453850
mov byte [0x4a63d4], 1
jmp 0x453857
xor eax, eax
jmp 0x453925
mov edi, esi
cmp byte [0x4b0f6c], 0
je 0x453875
mov eax, 0x4b0e6c
mov ecx, 0x5c
mov edx, edi
call fcn.0041070c
jmp 0x453880
push 0x5c
push edi
call fcn.00494f44
add esp, 8
mov edi, eax
test edi, edi
je 0x453894
cmp esi, edi
je 0x453894
xor eax, eax
mov al, byte [edi - 1]
cmp eax, 0x3a
jne 0x45389b
mov al, 1
jmp 0x453925
push esi
lea edx, [esp + 4]
push edx
call fcn.00494e64
add esp, 8
sub edi, esi
mov byte [esp + edi], 0
push 0x400
push ebp
lea ecx, [esp + 8]
push ecx
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
mov byte [ebp + 0x3ff], 0
jmp 0x453918
mov eax, 0x14d
call fcn.0041202c
push eax
push ebp
push 0x4a681a
lea edx, [esp + 0x80c]
push edx
call fcn.00497dc4
add esp, 0x10
mov eax, 0x65
push 0x34
call fcn.0041202c
push eax
lea edx, [esp + 0x808]
push edx
push ebx
call sub.USER32.DLL_MessageBoxA
cmp eax, 6
je 0x45390d
xor eax, eax
jmp 0x453925
mov eax, ebp
xor ecx, ecx
xor edx, edx
call fcn.0040a0bc
push ebp
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4538c8
mov al, 1
add esp, 0xe00
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4566c5
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffff400
mov esi, edx
xor ebx, ebx
mov byte [esi], 0
mov eax, dword [0x4bb9b4]
cmp dword [eax + 0x30], 0
jbe 0x45673f
push 0x400
push 0
lea edx, [esp + 8]
xor ecx, ecx
call fcn.0040f868
mov edx, dword [0x4bb9b4]
cmp dword [edx + 0x30], 1
jne 0x456727
mov eax, esp
xor edx, edx
call fcn.0040a504
test al, al
je 0x456720
mov eax, esp
xor edx, edx
call fcn.0040a938
call fcn.0040a67c
test al, al
je 0x456720
xor ebx, ebx
jmp 0x45672e
mov ebx, 1
jmp 0x45672e
mov eax, esp
call fcn.0040c004
mov eax, esp
call fcn.0040ba60
push eax
push esi
call fcn.00494e64
add esp, 8
cmp byte [esi], 0
jne 0x4567ba
lea edx, [esp + 0x400]
push edx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea eax, [esp + 0x400]
call fcn.0040ba60
push eax
push esi
call fcn.00494e64
add esp, 8
cmp byte [esi], 0
jne 0x4567a7
push 0x400
push 0
lea edx, [esp + 0x808]
xor ecx, ecx
mov eax, dword [0x4bb9b4]
call fcn.0040f868
test al, al
je 0x4567a7
lea eax, [esp + 0x800]
call fcn.0040ba60
push eax
push esi
call fcn.00494e64
add esp, 8
mov bl, 1
cmp byte [esi], 0
jne 0x4567ba
push 0x4a6901
push esi
call fcn.00494e64
add esp, 8
test bl, bl
je 0x4567db
mov eax, esi
call fcn.0040be4c
mov ebx, eax
mov eax, esi
call fcn.0040ba60
cmp ebx, eax
je 0x4567db
xor edx, edx
mov eax, esi
call fcn.0040bd90
add esp, 0xc00
pop esi
pop ebx
ret
Function at 0x458c5c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9ac
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
lea ebx, [ebp - 0x254]
test edi, edi
je 0x458ca5
push edi
push ebx
call fcn.00494e64
add esp, 8
push ebx
call fcn.00494e94
pop ecx
inc eax
add ebx, eax
push edi
push ebx
call fcn.00494e64
add esp, 8
push ebx
call fcn.00494e94
pop ecx
inc eax
add ebx, eax
mov eax, 0x426
call fcn.0041202c
push eax
push ebx
call fcn.00494e64
add esp, 8
push ebx
call fcn.00494e94
pop ecx
inc eax
add ebx, eax
push 0x4a6aa4
push ebx
call fcn.00494e64
add esp, 8
push ebx
call fcn.00494e94
pop ecx
inc eax
add ebx, eax
mov byte [ebx], 0
push 0x4c
push 0
lea edx, [ebp - 0x54]
push edx
call fcn.00494ce4
mov dword [ebp - 0x54], 0x4c
mov ecx, dword [ebp - 4]
mov eax, dword [0x4af654]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], eax
lea edx, [ebp - 0x254]
mov eax, esi
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 0x400
mov ecx, dword [ebp - 8]
add esp, 0xc
mov dword [ebp - 0x24], ecx
call fcn.0040ba60
cmp esi, eax
jne 0x458d41
lea edx, [ebp - 0x654]
push edx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea ecx, [ebp - 0x654]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], 0x1080c
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetOpenFileNameA
mov ebx, eax
test ebx, ebx
jne 0x458d71
call sub.COMDLG32.DLL_CommDlgExtendedError
cmp eax, 0x3002
jne 0x458d71
mov byte [esi], 0
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetOpenFileNameA
mov ebx, eax
test ebx, ebx
setne al
and eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x458d84
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff328
push ebx
push esi
lea esi, [ebp - 0x80c]
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [esi], 0
xor ebx, ebx
lea ecx, [ebp - 0x88c]
mov eax, 0x4c309c
mov edx, ebx
call fcn.00462a48
test al, al
je 0x458dec
test ebx, ebx
je 0x458dcb
push 0x4a6aa6
push esi
call fcn.00494d88
add esp, 8
push 0x4a6aa8
push esi
call fcn.00494d88
add esp, 8
lea eax, [ebp - 0x88c]
push eax
push esi
call fcn.00494d88
add esp, 8
inc ebx
jmp 0x458da3
mov eax, 0x426
call fcn.0041202c
push eax
push esi
mov eax, 0x425
call fcn.0041202c
push eax
push esi
mov eax, 0x424
call fcn.0041202c
push eax
push 0x4a6aab
lea edx, [ebp - 0x40c]
push edx
call fcn.00497dc4
add esp, 0x1c
cmp byte [ebp - 9], 0
je 0x458e65
mov eax, dword [ebp - 8]
call fcn.0040be4c
mov ebx, eax
test ebx, ebx
je 0x458e65
inc ebx
push ebx
call fcn.00494e94
pop ecx
cmp eax, 0x14
jge 0x458e65
mov eax, 0x426
call fcn.0041202c
push eax
push ebx
push ebx
push 0x4a6ac5
lea edx, [ebp - 0x40c]
push edx
call fcn.00497dc4
add esp, 0x14
xor eax, eax
jmp 0x458e7d
and edx, 0xff
cmp edx, 9
jne 0x458e7c
mov byte [ebp + eax - 0x40c], 0
inc eax
mov dl, byte [ebp + eax - 0x40c]
test dl, dl
jne 0x458e69
push 0x4c
push 0
lea eax, [ebp - 0x8d8]
push eax
call fcn.00494ce4
mov dword [ebp - 0x8d8], 0x4c
mov ecx, dword [ebp - 4]
mov eax, dword [0x4af654]
mov dword [ebp - 0x8d4], ecx
mov dword [ebp - 0x8d0], eax
lea edx, [ebp - 0x40c]
add esp, 0xc
mov dword [ebp - 0x8cc], edx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x8bc], ecx
mov dword [ebp - 0x8b8], 0x400
cmp byte [ebp + 8], 0
je 0x458ee5
mov eax, 0x48d
jmp 0x458eea
mov eax, 0x140
call fcn.0041202c
mov dword [ebp - 0x8a8], eax
mov eax, dword [ebp - 8]
call fcn.0040ba60
cmp eax, dword [ebp - 8]
jne 0x458f1f
lea edx, [ebp - 0xcd8]
push edx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea ecx, [ebp - 0xcd8]
mov dword [ebp - 0x8ac], ecx
mov dword [ebp - 0x8a4], 0x1080c
mov dword [ebp - 0x89c], 0x4a6ad5
lea eax, [ebp - 0x8d8]
push eax
call sub.COMDLG32.DLL_GetOpenFileNameA
mov ebx, eax
test ebx, ebx
jne 0x458f65
call sub.COMDLG32.DLL_CommDlgExtendedError
cmp eax, 0x3002
jne 0x458f65
mov eax, dword [ebp - 8]
mov byte [eax], 0
lea edx, [ebp - 0x8d8]
push edx
call sub.COMDLG32.DLL_GetOpenFileNameA
mov ebx, eax
test ebx, ebx
setne al
and eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x458f78
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff004
push eax
add esp, 0xfffffab4
mov ebp, ecx
mov edi, edx
mov esi, eax
lea ebx, [esp + 0x500]
mov eax, 0x426
call fcn.0041202c
push eax
lea edx, [esp + 4]
push edx
call fcn.00494e64
add esp, 8
push 3
push 0x4a6ad9
lea ecx, [esp + 8]
push ecx
call fcn.00494e94
pop ecx
lea edx, [esp + 9]
add eax, edx
push eax
call fcn.00494c74
add esp, 0xc
lea eax, [esp + 0x100]
mov word [eax], 0
push 0x4c
push 0
push ebx
call fcn.00494ce4
add esp, 0xc
mov dword [ebx], 0x4c
mov dword [ebx + 4], esi
mov ecx, dword [0x4af654]
lea eax, [esp + 0x100]
mov dword [ebx + 8], ecx
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], pe_nt_image_headers32
mov dword [ebx + 0x44], 0x4586c0
mov dword [ebx + 0x34], 0x9036c
mov dword [ebx + 0x30], ebp
mov dword [ebx + 0x40], edi
call fcn.0040ffc8
test eax, eax
je 0x4590d2
mov eax, 0x426
call fcn.0041202c
lea edx, [esp + 0x54c]
mov ecx, 0x10000000
call fcn.00410040
lea eax, [esp + 0x54c]
call fcn.00410228
add eax, eax
lea edx, [esp + 0x54e]
add eax, edx
mov edx, 0x4a6adc
call fcn.0041023c
lea eax, [esp + 0x54c]
call fcn.00410228
mov word [esp + eax*2 + 0x54e], 0
lea edx, [esp + 0x74c]
mov ecx, 0x10000000
mov eax, dword [ebx + 0x30]
call fcn.00410040
lea eax, [esp + 0x54c]
lea edx, [esp + 0x74c]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x30], edx
mov ecx, 0x4a6ae0
lea eax, [esp + 0x94c]
mov dword [ebx + 0x48], ecx
push eax
push 0x800
call sub.KERNEL32.DLL_GetCurrentDirectoryW
lea edx, [esp + 0x94c]
mov dword [ebx + 0x2c], edx
push ebx
call sub.COMDLG32.DLL_GetOpenFileNameW
jmp 0x459100
mov ecx, esp
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x48], 0x4a6af8
lea eax, [esp + 0x114c]
push eax
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea edx, [esp + 0x114c]
mov dword [ebx + 0x2c], edx
push ebx
call sub.COMDLG32.DLL_GetOpenFileNameA
add esp, 0x154c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x45b88c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov eax, 0x4a6df8
push ebx
push esi
push edi
call fcn.00495294
cmp dword [0x4c4ce8], 0
je 0x45b8b9
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
mov eax, edx
jmp 0x45b9fd
push 0x10
call sub.USER32.DLL_GetKeyState
test ah, 0x80
setne cl
and ecx, 1
mov byte [0x4c7cbe], cl
cmp byte [0x4c7cbe], 0
jne 0x45b8e5
cmp dword [0x4c4ce0], 0
jne 0x45b8e5
xor ebx, ebx
jmp 0x45b8ea
mov ebx, 1
push 8
call fcn.0049349c
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x45b912
mov word [ebp - 0x1c], 0x14
mov eax, dword [ebp - 4]
call fcn.00459be0
mov word [ebp - 0x1c], 8
mov esi, dword [ebp - 4]
jmp 0x45b915
mov esi, dword [ebp - 4]
push 0x4f14
call fcn.0049349c
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x45b942
mov word [ebp - 0x1c], 0x2c
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00459150
mov word [ebp - 0x1c], 0x20
mov edi, dword [ebp - 8]
jmp 0x45b945
mov edi, dword [ebp - 8]
mov byte [0x4c7cbd], 0
mov byte [0x4c7cc0], 0
lea eax, [ebp - 0x30]
mov byte [0x4c7cbc], 1
mov byte [0x4c7cbf], 0
push eax
test bl, bl
je 0x45b970
mov edx, 3
jmp 0x45b975
mov edx, 1
push edx
push esi
push edi
call sub.OLE32.DLL_DoDragDrop
mov ebx, eax
mov byte [0x4c7cbc], 0
push edi
mov eax, dword [edi]
call dword [eax + 8]
push esi
mov ecx, dword [esi]
call dword [ecx + 8]
cmp byte [0x4c7cbe], 0
je 0x45b9bb
cmp dword [0x4c4ce0], 0
je 0x45b9bb
cmp ebx, 0x40100
jne 0x45b9bb
call fcn.0044a4cc
mov eax, 0x4c2354
call fcn.004651bc
cmp ebx, 0x40100
je 0x45b9f3
cmp byte [0x4c7cbf], 0
jne 0x45b9f3
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x3f0
je 0x45b9f3
mov eax, 0x53c
call fcn.0041202c
push eax
call fcn.0044e3e0
pop ecx
mov eax, 0x4af020
call fcn.0042cfac
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45be8e
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov eax, ebx
mov byte [ebp - 1], 0
mov dl, 1
call fcn.0040c310
mov edx, ebx
mov eax, ebx
call fcn.0040bb70
mov ecx, 0x400
xor edx, edx
mov eax, ebx
call fcn.0040c394
jmp case.0x45bef6.65
test esi, 2
setne cl
push dword [ebp + 0x10]
and ecx, 1
lea eax, [ebp - 2]
push ecx
mov ecx, edi
mov edx, ebx
call fcn.0045e980
xor eax, eax
mov al, byte [ebp - 2]
add eax, 0xffffffbf
cmp eax, 0x18
ja case.0x45bef6.65
mov al, byte [eax + 0x45befd]
jmp dword [eax*4 + 0x45bf16]
push 0
push ebx
call sub.KERNEL32.DLL_SetFileAttributesA
test esi, 1
jne 0x45bf3c
push ebx
call sub.KERNEL32.DLL_DeleteFileA
mov eax, 0x59
jmp 0x45bf77
xor eax, eax
mov al, byte [ebp - 2]
jmp 0x45bf77
mov byte [ebp - 1], 1
push ebx
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x45bec7
cmp byte [ebp - 1], 0
je 0x45bf72
test esi, 4
je 0x45bf72
mov eax, 0x52
jmp 0x45bf77
mov eax, 0x59
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x10
Function at 0x45d0e4
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff7c
mov ebx, eax
mov edi, esp
mov ebp, 0x4a6fdc
lea eax, [ebx + 4]
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov esi, eax
mov dword [ebx + 0x404], esi
test esi, esi
jne 0x45d113
xor eax, eax
jmp 0x45d2d1
lea edx, [ebp + 0x29]
push edx
push esi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x490], eax
lea ecx, [ebp + 0x31]
push ecx
push dword [ebx + 0x404]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x494], eax
lea eax, [ebp + 0x36]
push eax
push dword [ebx + 0x404]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x498], eax
lea edx, [ebp + 0x3c]
push edx
push dword [ebx + 0x404]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x49c], eax
lea ecx, [ebp + 0x42]
push ecx
push dword [ebx + 0x404]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x4a0], eax
lea eax, [ebp + 0x4e]
push eax
push dword [ebx + 0x404]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x4a4], eax
lea edx, [ebp + 0x5a]
push edx
push dword [ebx + 0x404]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x4a8], eax
lea ecx, [ebp + 0x62]
push ecx
push dword [ebx + 0x404]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x4ac], eax
cmp dword [ebx + 0x490], 0
je 0x45d1d1
cmp dword [ebx + 0x494], 0
jne 0x45d1d8
cmp dword [ebx + 0x498], 0
jne 0x45d1d8
xor eax, eax
jmp 0x45d2d1
push 0x84
push 0
push edi
call fcn.00494ce4
add esp, 0xc
mov dword [edi], 0x84
mov dword [edi + 4], 0x45bcac
mov dword [edi + 8], 0x45bdf0
mov dword [edi + 0xc], 0x45be03
mov dword [edi + 0x10], 0x45be18
mov dword [edi + 0x14], 0x45be77
mov dword [edi + 0x18], 0x45bf7f
mov dword [edi + 0x1c], 0x45bf93
mov dword [edi + 0x20], 0x45bf9e
mov dword [edi + 0x24], 0x45c040
mov dword [edi + 0x28], 0x45c0e4
mov dword [edi + 0x2c], 0x45c188
mov dword [edi + 0x30], 0x45c51b
mov dword [edi + 0x34], 0x45c52a
mov dword [edi + 0x38], 0x45c5c6
mov dword [edi + 0x3c], fcn.0045be8e
mov dword [edi + 0x40], 0x45c658
mov dword [edi + 0x44], 0x45c674
push 0x88
push 0
lea edx, [ebx + 0x408]
push edx
call fcn.00494ce4
add esp, 0xc
lea ecx, [ebx + 0x408]
mov dword [ebx + 0x408], 0x88
push ecx
push edi
call dword [ebx + 0x490]
cmp dword [ebx + 0x488], 0
je 0x45d2cf
push dword [ebx + 0x404]
call sub.KERNEL32.DLL_FreeLibrary
xor eax, eax
mov dword [ebx + 0x404], eax
lea eax, [ebx + 4]
call fcn.0040ba60
push eax
mov eax, 0x42e
call fcn.0041202c
push eax
call fcn.0044e3e0
add esp, 8
xor eax, eax
jmp 0x45d2d1
mov al, 1
add esp, 0x84
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x45e590
Capabilities:
Check if file exists
Get common file path
Get disk information
Get file attributes

Disassembly:
push ebx
mov ebx, ecx
add esp, 0xfffffc00
mov edx, 0x4a70bc
mov byte [ebx], 0
mov eax, 0x4a70b6
push 0x4a6fe9
push 0x400
lea ecx, [esp + 8]
call fcn.0046c0c4
cmp byte [esp], 0
je 0x45e61b
push esp
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x45e5d5
push esp
push 0x400
call sub.KERNEL32.DLL_GetTempPathA
mov edx, 0x4a70c7
mov eax, 0x4a70b6
mov ecx, 1
call fcn.0046c29c
test eax, eax
je 0x45e60a
push 0
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
je 0x45e5fe
cmp eax, 5
jne 0x45e614
push esp
push ebx
call fcn.00494e64
add esp, 8
jmp 0x45e614
push esp
push ebx
call fcn.00494e64
add esp, 8
mov eax, ebx
call fcn.0040bf64
add esp, 0x400
pop ebx
ret