joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d864
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 0x44d8cc
push ebx
push 0x400
mov edx, 0x4a3e9d
mov eax, 0x4a4907
mov ecx, edi
call fcn.0046be20
cmp byte [edi], 0
jne 0x44d8a4
push ebx
push edi
call fcn.004949c8
add esp, 8
jmp 0x44d8cf
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.004949c8
add esp, 8
jmp 0x44d8cf
mov byte [edi], 0
mov al, byte [edi]
test al, al
setne bl
and ebx, 1
test al, al
jne 0x44d8e8
push edi
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov eax, edi
call fcn.0040bf34
cmp byte [ebp + 0x10], 0
jne 0x44d8fd
test bl, bl
je 0x44d9a2
mov edx, 0x4a4912
mov eax, 0x4a4907
mov ecx, 1
call fcn.0046bff8
test eax, eax
je 0x44d9a2
mov eax, esi
call fcn.0040ba30
push eax
push edi
call fcn.004948ec
add esp, 8
mov eax, edi
call fcn.0040be1c
mov esi, eax
test esi, esi
je 0x44d9a2
cmp edi, esi
jae 0x44d9a2
mov byte [esi], 0
mov eax, edi
call fcn.0040be1c
mov ebx, eax
test ebx, ebx
je 0x44d98e
cmp edi, ebx
jae 0x44d98e
cmp byte [ebp + 0xc], 0
je 0x44d97b
cmp byte [esi + 1], 0
je 0x44d97b
xor eax, eax
mov al, byte [esi + 2]
push eax
call fcn.00498760
pop ecx
test eax, eax
jne 0x44d97b
xor edx, edx
mov dl, byte [esi - 1]
push edx
call fcn.00498760
pop ecx
test eax, eax
jne 0x44d98b
mov edx, 0x4a41de
mov eax, ebx
call fcn.0040edcc
test eax, eax
jne 0x44d98e
mov byte [ebx], 0
dec esi
jmp 0x44d995
mov byte [esi], 0
dec esi
cmp edi, esi
jae 0x44d9a2
xor ecx, ecx
mov cl, byte [esi]
cmp ecx, 0x2e
je 0x44d991
xor edx, edx
mov eax, edi
call fcn.0040c2e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44e840
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 [0x4c3de8], 0
jne 0x44ea95
push 0
push 0
push 0xffffffffffffffff
push esi
call sub.SHELL32.DLL_DragQueryFileA
mov edi, eax
cmp edi, 1
jne 0x44e9f6
mov word [esp + 0x408], 0
push 0x400
lea eax, [esp + 0xc]
push eax
push 0
push esi
call sub.SHELL32.DLL_DragQueryFileA
call fcn.0040ff8c
test eax, eax
je 0x44e8b1
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 [0x4c3de0], 0
je 0x44e8dd
cmp eax, dword [0x4c1454]
je 0x44e909
cmp eax, dword [0x4c1980]
je 0x44e909
lea eax, [esp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
test al, 0x10
jne 0x44e909
push 1
lea ecx, [esp + 0x40c]
lea edx, [esp + 0xc]
mov eax, 0x4c1454
call fcn.004667fc
dec eax
je 0x44ea95
push 7
push str.rarreg.
lea eax, [esp + 0x10]
call fcn.0040ba30
push eax
call fcn.00494bf8
add esp, 0xc
test eax, eax
jne 0x44e9f6
push 0x400
lea edx, [esp + 0xc0c]
push edx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x4a49c3
lea eax, [esp + 0xc0c]
call fcn.0040ba30
push eax
call fcn.004949c8
add esp, 8
push 0
lea edx, [esp + 0xc0c]
push edx
lea ecx, [esp + 0x10]
push ecx
call sub.KERNEL32.DLL_CopyFileA
push dword [0x4c1440]
call sub.USER32.DLL_SetForegroundWindow
push 1
push dword [0x4c1440]
call sub.USER32.DLL_FlashWindow
mov al, 1
call fcn.0040e54c
mov byte [0x4ae730], al
push 0
push dword [0x4c1440]
call sub.USER32.DLL_FlashWindow
cmp dword [0x4c3de0], 0
je 0x44e9b2
mov eax, 0x4c1454
call fcn.00464f18
jmp 0x44e9c1
mov edx, 0x4a3d11
mov eax, 0x4c1454
call fcn.0046364c
cmp byte [0x4ae730], 0
je 0x44ea95
push 0x30
mov eax, 0x368
call fcn.00411fe8
push eax
mov eax, 0x367
call fcn.00411fe8
push eax
push dword [0x4c1440]
call sub.USER32.DLL_MessageBoxA
jmp 0x44ea95
xor eax, eax
call fcn.00457054
cmp dword [0x4c3de0], 0
je 0x44ea10
mov dword [0x4b8084], 1
mov eax, dword [0x4baab4]
call fcn.0040f714
xor ebx, ebx
cmp edi, ebx
jle 0x44ea7a
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.0040ff8c
test eax, eax
je 0x44ea5d
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 [0x4baab4]
call fcn.0040f74c
inc ebx
cmp edi, ebx
jg 0x44ea20
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.00457e0c
add esp, 0x1c08
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x44f0bc
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 0x44f0d8
mov edx, eax
add edx, dword [ebx + 0x40]
cmp esi, edx
jl 0x44f0df
xor eax, eax
jmp 0x44f1c5
mov edx, esi
sub edx, eax
push edx
push 0x4a3f24
lea ecx, [esp + 8]
push ecx
call fcn.00497928
add esp, 0xc
push 0x4a3d11
push 0x400
lea ecx, [esp + 0x3c]
lea edx, [esp + 8]
mov eax, ebx
call fcn.0046be20
lea eax, [esp + 0x34]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x44f151
test al, 0x10
je 0x44f151
lea eax, [esp + 0x34]
xor edx, edx
call fcn.0046e99c
mov eax, 0x4c1454
call fcn.00468ef0
test al, al
je 0x44f1c0
lea edx, [esp + 0x34]
mov eax, 0x4c1454
xor ecx, ecx
call fcn.00466f5c
jmp 0x44f1c0
lea edx, [esp + 0x34]
mov eax, 0x4c1454
xor ecx, ecx
call fcn.00466dec
test al, al
je 0x44f1c0
sub esi, dword [ebx + 0x3c]
push esi
push 0x4a49ce
lea edx, [esp + 8]
push edx
call fcn.00497928
add esp, 0xc
push 0x4a3d11
push 0x400
lea ecx, [esp + 0x43c]
lea edx, [esp + 8]
mov eax, ebx
call fcn.0046be20
cmp byte [esp + 0x434], 0
je 0x44f1c0
lea edx, [esp + 0x434]
mov eax, 0x4c219c
xor ecx, ecx
call fcn.0046222c
mov eax, 0x4c1454
xor edx, edx
call fcn.0046442c
mov eax, 1
add esp, 0x834
pop esi
pop ebx
ret
Function at 0x44f2cc
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push ebx
push esi
add esp, 0xfffff2b0
mov byte [esp], al
mov dword [0x4c3df8], 1
test dl, dl
je 0x44f460
lea eax, [esp + 0x10]
mov edx, 0x400
call fcn.0046e8e0
lea eax, [esp + 0x10]
call fcn.0040bf34
lea edx, [esp + 0x10]
push edx
push str._sRar_
lea ecx, [esp + 0x418]
push ecx
call fcn.00497928
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 0x44f449
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.004949c8
add esp, 8
lea ecx, [esp + 0x83c]
push ecx
lea eax, [esp + 0x954]
push eax
call fcn.004948ec
add esp, 8
test byte [esp + 0x810], 0x10
je 0x44f418
push 6
push str.Rar_DI
lea edx, [esp + 0x844]
push edx
call fcn.00494a54
add esp, 0xc
test eax, eax
jne 0x44f3bd
call fcn.0040ff8c
cmp eax, 4
jne 0x44f3c1
xor ecx, ecx
jmp 0x44f3c6
mov ecx, 1
mov byte [esp + 0xc], cl
lea eax, [esp + 0x950]
push eax
call sub.KERNEL32.DLL_RemoveDirectoryA
test eax, eax
jne 0x44f433
test bl, bl
je 0x44f3e5
cmp byte [esp], 0
je 0x44f3ec
cmp byte [esp + 0xc], 0
je 0x44f433
lea eax, [esp + 0x950]
call fcn.0046e6d4
test al, al
je 0x44f433
lea eax, [esp + 0x950]
xor edx, edx
call fcn.0040a904
lea eax, [esp + 0x950]
call fcn.0046deb4
jmp 0x44f433
lea eax, [esp + 0x950]
xor edx, edx
call fcn.0040a904
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 0x44f45a
cmp dword [0x4c3df8], 1
je 0x44f349
push esi
call sub.KERNEL32.DLL_FindClose
cmp byte [esp], 0
jne 0x44f499
cmp byte [0x4ae730], 0
je 0x44f499
push 0
call sub.KERNEL32.DLL_GetCurrentThread
push eax
call sub.KERNEL32.DLL_SetThreadPriority
mov al, 1
call fcn.0044f4ac
mov ebx, eax
mov byte [0x4ae730], bl
test bl, bl
jne 0x44f499
mov eax, 0x4a4995
call fcn.0045079c
xor edx, edx
mov dword [0x4c3df8], edx
add esp, 0xd50
pop esi
pop ebx
ret
Function at 0x45276b
Capabilities:
Get memory capacity

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

Function at 0x4535a9
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.0040ba30
mov edi, eax
cmp byte [0x4b006c], 0
je 0x4535e3
mov eax, 0x4aff6c
mov ecx, 0x3a
mov edx, edi
call fcn.00410688
jmp 0x4535ee
push 0x3a
push edi
call fcn.00494a90
add esp, 8
test eax, eax
je 0x45362c
cmp byte [0x4a54ac], 0
jne 0x45362c
push 0x31
mov eax, 0x65
call fcn.00411fe8
push eax
mov eax, 0x528
call fcn.00411fe8
push eax
push ebx
call sub.USER32.DLL_MessageBoxA
dec eax
jne 0x453625
mov byte [0x4a54ac], 1
jmp 0x45362c
xor eax, eax
jmp 0x4536fa
mov edi, esi
cmp byte [0x4b006c], 0
je 0x45364a
mov eax, 0x4aff6c
mov ecx, 0x5c
mov edx, edi
call fcn.004106cc
jmp 0x453655
push 0x5c
push edi
call fcn.00494aa8
add esp, 8
mov edi, eax
test edi, edi
je 0x453669
cmp esi, edi
je 0x453669
xor eax, eax
mov al, byte [edi - 1]
cmp eax, 0x3a
jne 0x453670
mov al, 1
jmp 0x4536fa
push esi
lea edx, [esp + 4]
push edx
call fcn.004949c8
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 0x4536ed
mov eax, 0x14d
call fcn.00411fe8
push eax
push ebp
push str.__s__n_s
lea edx, [esp + 0x80c]
push edx
call fcn.00497928
add esp, 0x10
mov eax, 0x65
push 0x34
call fcn.00411fe8
push eax
lea edx, [esp + 0x808]
push edx
push ebx
call sub.USER32.DLL_MessageBoxA
cmp eax, 6
je 0x4536e2
xor eax, eax
jmp 0x4536fa
mov eax, ebp
xor ecx, ecx
xor edx, edx
call fcn.0040a090
push ebp
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x45369d
mov al, 1
add esp, 0xe00
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x45645b
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 [0x4baab4]
cmp dword [eax + 0x30], 0
jbe 0x4564d5
push 0x400
push 0
lea edx, [esp + 8]
xor ecx, ecx
call fcn.0040f830
mov edx, dword [0x4baab4]
cmp dword [edx + 0x30], 1
jne 0x4564bd
mov eax, esp
xor edx, edx
call fcn.0040a4d8
test al, al
je 0x4564b6
mov eax, esp
xor edx, edx
call fcn.0040a90c
call fcn.0040a650
test al, al
je 0x4564b6
xor ebx, ebx
jmp 0x4564c4
mov ebx, 1
jmp 0x4564c4
mov eax, esp
call fcn.0040bfd4
mov eax, esp
call fcn.0040ba30
push eax
push esi
call fcn.004949c8
add esp, 8
cmp byte [esi], 0
jne 0x456550
lea edx, [esp + 0x400]
push edx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea eax, [esp + 0x400]
call fcn.0040ba30
push eax
push esi
call fcn.004949c8
add esp, 8
cmp byte [esi], 0
jne 0x45653d
push 0x400
push 0
lea edx, [esp + 0x808]
xor ecx, ecx
mov eax, dword [0x4baab4]
call fcn.0040f830
test al, al
je 0x45653d
lea eax, [esp + 0x800]
call fcn.0040ba30
push eax
push esi
call fcn.004949c8
add esp, 8
mov bl, 1
cmp byte [esi], 0
jne 0x456550
push str.archive
push esi
call fcn.004949c8
add esp, 8
test bl, bl
je 0x456571
mov eax, esi
call fcn.0040be1c
mov ebx, eax
mov eax, esi
call fcn.0040ba30
cmp ebx, eax
je 0x456571
xor edx, edx
mov eax, esi
call fcn.0040bd60
add esp, 0xc00
pop esi
pop ebx
ret
Function at 0x4589f0
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 0x458a39
push edi
push ebx
call fcn.004949c8
add esp, 8
push ebx
call fcn.004949f8
pop ecx
inc eax
add ebx, eax
push edi
push ebx
call fcn.004949c8
add esp, 8
push ebx
call fcn.004949f8
pop ecx
inc eax
add ebx, eax
mov eax, 0x426
call fcn.00411fe8
push eax
push ebx
call fcn.004949c8
add esp, 8
push ebx
call fcn.004949f8
pop ecx
inc eax
add ebx, eax
push 0x4a5b7c
push ebx
call fcn.004949c8
add esp, 8
push ebx
call fcn.004949f8
pop ecx
inc eax
add ebx, eax
mov byte [ebx], 0
push 0x4c
push 0
lea edx, [ebp - 0x54]
push edx
call fcn.00494848
mov dword [ebp - 0x54], 0x4c
mov ecx, dword [ebp - 4]
mov eax, dword [0x4ae754]
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.0040ba30
cmp esi, eax
jne 0x458ad5
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 0x458b05
call sub.COMDLG32.DLL_CommDlgExtendedError
cmp eax, 0x3002
jne 0x458b05
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 0x458b18
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, 0x4c219c
mov edx, ebx
call fcn.004627b4
test al, al
je 0x458b80
test ebx, ebx
je 0x458b5f
push 0x4a5b7e
push esi
call fcn.004948ec
add esp, 8
push 0x4a5b80
push esi
call fcn.004948ec
add esp, 8
lea eax, [ebp - 0x88c]
push eax
push esi
call fcn.004948ec
add esp, 8
inc ebx
jmp 0x458b37
mov eax, 0x426
call fcn.00411fe8
push eax
push esi
mov eax, 0x425
call fcn.00411fe8
push eax
push esi
mov eax, 0x424
call fcn.00411fe8
push eax
push str._s_t_s_t_s_t_s_.exe_t_s_t._t
lea edx, [ebp - 0x40c]
push edx
call fcn.00497928
add esp, 0x1c
cmp byte [ebp - 9], 0
je 0x458bf9
mov eax, dword [ebp - 8]
call fcn.0040be1c
mov ebx, eax
test ebx, ebx
je 0x458bf9
inc ebx
push ebx
call fcn.004949f8
pop ecx
cmp eax, 0x14
jge 0x458bf9
mov eax, 0x426
call fcn.00411fe8
push eax
push ebx
push ebx
push str._s_t._s_t_s_t._t
lea edx, [ebp - 0x40c]
push edx
call fcn.00497928
add esp, 0x14
xor eax, eax
jmp 0x458c11
and edx, 0xff
cmp edx, 9
jne 0x458c10
mov byte [ebp + eax - 0x40c], 0
inc eax
mov dl, byte [ebp + eax - 0x40c]
test dl, dl
jne 0x458bfd
push 0x4c
push 0
lea eax, [ebp - 0x8d8]
push eax
call fcn.00494848
mov dword [ebp - 0x8d8], 0x4c
mov ecx, dword [ebp - 4]
mov eax, dword [0x4ae754]
mov dword [ebp - 0x8d4], ecx
mov dword [ebp - 0x8d0], eax
lea edx, [ebp - 0x40c]
add esp, 0xc
mov dword [ebp - 0x8cc], edx
mov eax, 0x48d
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x8bc], ecx
mov dword [ebp - 0x8b8], 0x400
cmp byte [ebp + 8], 0
jne 0x458c7c
add eax, 0xfffffcb3
call fcn.00411fe8
mov dword [ebp - 0x8a8], eax
mov eax, dword [ebp - 8]
call fcn.0040ba30
cmp eax, dword [ebp - 8]
jne 0x458cb1
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], 0x4a5bad
lea eax, [ebp - 0x8d8]
push eax
call sub.COMDLG32.DLL_GetOpenFileNameA
mov ebx, eax
test ebx, ebx
jne 0x458cf7
call sub.COMDLG32.DLL_CommDlgExtendedError
cmp eax, 0x3002
jne 0x458cf7
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 0x458d08
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.00411fe8
push eax
lea edx, [esp + 4]
push edx
call fcn.004949c8
add esp, 8
push 3
push 0x4a5bb1
lea ecx, [esp + 8]
push ecx
call fcn.004949f8
pop ecx
lea edx, [esp + 9]
add eax, edx
push eax
call fcn.004947d8
add esp, 0xc
mov word [esp + 0x100], 0
push 0x4c
push 0
push ebx
call fcn.00494848
add esp, 0xc
mov dword [ebx], 0x4c
mov dword [ebx + 4], esi
mov eax, dword [0x4ae754]
lea ecx, [esp + 0x100]
mov dword [ebx + 8], eax
mov dword [ebx + 0x1c], ecx
mov dword [ebx + 0x20], pe_nt_image_headers32
mov dword [ebx + 0x44], 0x458454
mov dword [ebx + 0x34], 0x9036c
mov dword [ebx + 0x30], ebp
mov dword [ebx + 0x40], edi
call fcn.0040ff8c
test eax, eax
je 0x458e5e
mov eax, 0x426
call fcn.00411fe8
lea edx, [esp + 0x54c]
mov ecx, 0x10000000
call fcn.00410004
lea eax, [esp + 0x54c]
call fcn.004101ec
add eax, eax
lea edx, [esp + 0x54e]
add eax, edx
mov edx, 0x4a5bb4
call fcn.00410200
lea eax, [esp + 0x54c]
call fcn.004101ec
mov word [esp + eax*2 + 0x54e], 0
lea edx, [esp + 0x74c]
mov ecx, 0x10000000
mov eax, dword [ebx + 0x30]
call fcn.00410004
lea eax, [esp + 0x54c]
lea edx, [esp + 0x74c]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x48], 0x4a5bb8
lea ecx, [esp + 0x94c]
push ecx
push 0x800
call sub.KERNEL32.DLL_GetCurrentDirectoryW
lea eax, [esp + 0x94c]
mov dword [ebx + 0x2c], eax
push ebx
call sub.COMDLG32.DLL_GetOpenFileNameW
jmp 0x458e8c
mov edx, esp
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x48], str.OKCANCELTPL
lea ecx, [esp + 0x114c]
push ecx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea eax, [esp + 0x114c]
mov dword [ebx + 0x2c], eax
push ebx
call sub.COMDLG32.DLL_GetOpenFileNameA
add esp, 0x154c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x45b604
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov eax, 0x4a5ed0
push ebx
push esi
push edi
call fcn.00494df8
cmp dword [0x4c3de8], 0
je 0x45b631
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
mov eax, edx
jmp 0x45b771
push 0x10
call sub.USER32.DLL_GetKeyState
test ah, 0x80
setne cl
and ecx, 1
mov byte [0x4c6dbe], cl
cmp byte [0x4c6dbe], 0
jne 0x45b65d
cmp dword [0x4c3de0], 0
jne 0x45b65d
xor ebx, ebx
jmp 0x45b662
mov ebx, 1
push 8
call fcn.00493000
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x45b68a
mov word [ebp - 0x1c], 0x14
mov eax, dword [ebp - 4]
call fcn.0045995c
mov word [ebp - 0x1c], 8
mov esi, dword [ebp - 4]
jmp 0x45b68d
mov esi, dword [ebp - 4]
push 0x4f14
call fcn.00493000
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x45b6ba
mov word [ebp - 0x1c], 0x2c
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00458edc
mov word [ebp - 0x1c], 0x20
mov edi, dword [ebp - 8]
jmp 0x45b6bd
mov edi, dword [ebp - 8]
mov byte [0x4c6dbd], 0
mov byte [0x4c6dc0], 0
mov byte [0x4c6dbc], 1
mov byte [0x4c6dbf], 0
lea eax, [ebp - 0x30]
push eax
mov edx, 3
test bl, bl
jne 0x45b6e9
add edx, 0xfffffffe
push edx
push esi
push edi
call sub.OLE32.DLL_DoDragDrop
mov byte [0x4c6dbc], 0
push edi
mov ecx, dword [edi]
mov ebx, eax
call dword [ecx + 8]
push esi
mov eax, dword [esi]
call dword [eax + 8]
cmp byte [0x4c6dbe], 0
je 0x45b72f
cmp dword [0x4c3de0], 0
je 0x45b72f
cmp ebx, 0x40100
jne 0x45b72f
call fcn.0044a2c8
mov eax, 0x4c1454
call fcn.00464f18
cmp ebx, 0x40100
je 0x45b767
cmp byte [0x4c6dbf], 0
jne 0x45b767
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x3f0
je 0x45b767
mov eax, 0x53c
call fcn.00411fe8
push eax
call fcn.0044e1d4
pop ecx
mov eax, 0x4ae120
call fcn.0042cf6c
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45bc06
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.0040c2e0
mov edx, ebx
mov eax, ebx
call fcn.0040bb40
mov ecx, 0x400
xor edx, edx
mov eax, ebx
call fcn.0040c364
jmp case.0x45bc6e.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.0045e708
xor eax, eax
mov al, byte [ebp - 2]
add eax, 0xffffffbf
cmp eax, 0x18
ja case.0x45bc6e.65
mov al, byte [eax + 0x45bc75]
jmp dword [eax*4 + 0x45bc8e]
push 0
push ebx
call sub.KERNEL32.DLL_SetFileAttributesA
test esi, 1
jne 0x45bcb4
push ebx
call sub.KERNEL32.DLL_DeleteFileA
mov eax, 0x59
jmp 0x45bcef
xor eax, eax
mov al, byte [ebp - 2]
jmp 0x45bcef
mov byte [ebp - 1], 1
push ebx
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x45bc3f
cmp byte [ebp - 1], 0
je 0x45bcea
test esi, 4
je 0x45bcea
mov eax, 0x52
jmp 0x45bcef
mov eax, 0x59
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x10
Function at 0x45ce60
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, str.Formats.fmt
lea eax, [ebx + 4]
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov esi, eax
mov dword [ebx + 0x404], esi
test esi, esi
jne 0x45ce8f
xor eax, eax
jmp 0x45d04d
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 0x45cf4d
cmp dword [ebx + 0x494], 0
jne 0x45cf54
cmp dword [ebx + 0x498], 0
jne 0x45cf54
xor eax, eax
jmp 0x45d04d
push 0x84
push 0
push edi
call fcn.00494848
add esp, 0xc
mov dword [edi], 0x84
mov dword [edi + 4], 0x45ba20
mov dword [edi + 8], 0x45bb68
mov dword [edi + 0xc], 0x45bb7b
mov dword [edi + 0x10], 0x45bb90
mov dword [edi + 0x14], 0x45bbef
mov dword [edi + 0x18], 0x45bcf7
mov dword [edi + 0x1c], 0x45bd0b
mov dword [edi + 0x20], 0x45bd16
mov dword [edi + 0x24], 0x45bdca
mov dword [edi + 0x28], 0x45be6e
mov dword [edi + 0x2c], 0x45bf12
mov dword [edi + 0x30], 0x45c2a5
mov dword [edi + 0x34], 0x45c2b4
mov dword [edi + 0x38], 0x45c350
mov dword [edi + 0x3c], fcn.0045bc06
mov dword [edi + 0x40], 0x45c3e2
mov dword [edi + 0x44], 0x45c3fe
push 0x88
push 0
lea edx, [ebx + 0x408]
push edx
call fcn.00494848
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 0x45d04b
push dword [ebx + 0x404]
call sub.KERNEL32.DLL_FreeLibrary
xor eax, eax
mov dword [ebx + 0x404], eax
lea eax, [ebx + 4]
call fcn.0040ba30
push eax
mov eax, 0x42e
call fcn.00411fe8
push eax
call fcn.0044e1d4
add esp, 8
xor eax, eax
jmp 0x45d04d
mov al, 1
add esp, 0x84
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x45e318
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, 0x4a6194
mov byte [ebx], 0
mov eax, 0x4a618e
push 0x4a60c1
push 0x400
lea ecx, [esp + 8]
call fcn.0046be20
cmp byte [esp], 0
je 0x45e3a3
push esp
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x45e35d
push esp
push 0x400
call sub.KERNEL32.DLL_GetTempPathA
mov edx, 0x4a619f
mov eax, 0x4a618e
mov ecx, 1
call fcn.0046bff8
test eax, eax
je 0x45e392
push 0
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
je 0x45e386
cmp eax, 5
jne 0x45e39c
push esp
push ebx
call fcn.004949c8
add esp, 8
jmp 0x45e39c
push esp
push ebx
call fcn.004949c8
add esp, 8
mov eax, ebx
call fcn.0040bf34
add esp, 0x400
pop ebx
ret