joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445818
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
cmp dword [0x4a9110], 0
jne 0x445860
lea eax, [ebp - 0x20]
push eax
call sub.KERNEL32.DLL_GlobalMemoryStatus
cmp dword [ebp - 0x18], 0x8000000
mov dword [0x4a9110], 0x400000
ja 0x44584d
mov dword [0x4a9110], 0x200000
cmp dword [ebp - 0x18], 0x4000000
ja 0x445860
mov dword [0x4a9110], 0x100000
mov eax, dword [0x4a9110]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff200
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.0040be48
mov edi, eax
cmp byte [0x4b5ae8], 0
je 0x4466a4
mov eax, 0x4b59e8
mov ecx, 0x3a
mov edx, edi
call fcn.00410fa8
jmp 0x4466af
push 0x3a
push edi
call fcn.00498f44
add esp, 8
test eax, eax
je 0x4466ed
cmp byte [0x4a91dc], 0
jne 0x4466ed
push 0x31
mov eax, 0x65
call fcn.004129c8
push eax
mov eax, 0x528
call fcn.004129c8
push eax
push ebx
call sub.USER32.DLL_MessageBoxA
dec eax
jne 0x4466e6
mov byte [0x4a91dc], 1
jmp 0x4466ed
xor eax, eax
jmp 0x4467d7
mov edi, esi
cmp byte [0x4b5ae8], 0
je 0x44670b
mov eax, 0x4b59e8
mov ecx, 0x5c
mov edx, edi
call fcn.00410fe8
jmp 0x446716
push 0x5c
push edi
call fcn.00498f5c
add esp, 8
mov edi, eax
test edi, edi
je 0x44672a
cmp esi, edi
je 0x44672a
xor eax, eax
mov al, byte [edi - 1]
cmp eax, 0x3a
jne 0x446731
mov al, 1
jmp 0x4467d7
push esi
lea edx, [ebp - 0x400]
push edx
call fcn.00498e7c
add esp, 8
sub edi, esi
lea ecx, [ebp - 0x800]
lea eax, [ebp - 0x400]
mov byte [ebp + edi - 0x400], 0
push 0x400
push ecx
push eax
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
mov byte [ebp - 0x401], 0
jmp 0x4467c4
mov eax, 0x14d
call fcn.004129c8
push eax
lea edx, [ebp - 0x800]
push edx
push str.__s__n_s
lea ecx, [ebp - 0xe00]
push ecx
call fcn.0049bdcc
add esp, 0x10
mov eax, 0x65
push 0x34
call fcn.004129c8
push eax
lea edx, [ebp - 0xe00]
push edx
push ebx
call sub.USER32.DLL_MessageBoxA
cmp eax, 6
je 0x4467b5
xor eax, eax
jmp 0x4467d7
lea eax, [ebp - 0x800]
xor ecx, ecx
xor edx, edx
call fcn.0040a3dc
lea eax, [ebp - 0x800]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x44676c
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x449579
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff400
push ebx
push esi
mov esi, edx
xor ebx, ebx
mov byte [esi], 0
mov eax, dword [0x4c0540]
cmp dword [eax + 0x30], 0
jbe 0x44960d
push 0x400
push 0
lea edx, [ebp - 0x400]
xor ecx, ecx
mov eax, dword [0x4c0540]
call fcn.00410050
mov edx, dword [0x4c0540]
cmp dword [edx + 0x30], 1
jne 0x4495ed
lea eax, [ebp - 0x400]
xor edx, edx
call fcn.0040a838
test al, al
je 0x4495e6
lea eax, [ebp - 0x400]
xor edx, edx
call fcn.0040ac6c
call fcn.0040a9b0
test al, al
je 0x4495e6
xor ebx, ebx
jmp 0x4495f8
mov ebx, 1
jmp 0x4495f8
lea eax, [ebp - 0x400]
call fcn.0040c42c
lea eax, [ebp - 0x400]
call fcn.0040be48
push eax
push esi
call fcn.00498e7c
add esp, 8
cmp byte [esi], 0
jne 0x449684
lea edx, [ebp - 0x800]
push edx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea eax, [ebp - 0x800]
call fcn.0040be48
push eax
push esi
call fcn.00498e7c
add esp, 8
cmp byte [esi], 0
jne 0x449671
push 0x400
push 0
lea edx, [ebp - 0xc00]
xor ecx, ecx
mov eax, dword [0x4c0540]
call fcn.00410050
test al, al
je 0x449671
lea eax, [ebp - 0xc00]
call fcn.0040be48
push eax
push esi
call fcn.00498e7c
add esp, 8
mov bl, 1
cmp byte [esi], 0
jne 0x449684
push str.archive
push esi
call fcn.00498e7c
add esp, 8
test bl, bl
je 0x4496a5
mov eax, esi
call fcn.0040c248
mov ebx, eax
mov eax, esi
call fcn.0040be48
cmp ebx, eax
je 0x4496a5
xor edx, edx
mov eax, esi
call fcn.0040c18c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44b88a
Capabilities:
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x44b893
mov eax, dword [ebp - 4]
add esp, 0xfffffb1c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc30], edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, 0x4a9970
call fcn.004992ac
lea edx, [ebp - 0x1034]
mov eax, str.Rar_DIXXXXXX
call fcn.00464330
test al, al
jne 0x44b8e8
xor eax, eax
mov edx, dword [ebp - 0xc2c]
mov dword fs:[0], edx
jmp 0x44ba7d
lea ecx, [ebp - 0x1434]
push ecx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea eax, [ebp - 0x1034]
push eax
call fcn.0049a80c
pop ecx
call fcn.00449c20
mov ecx, 0x4bfd40
mov edx, 0x4bf940
mov eax, 0x4c7c4c
call fcn.00457d7c
mov edx, dword [0x4c7e54]
mov dword [0x4be4f0], edx
call fcn.0044a7b4
mov dword [0x4be0dc], 4
mov dword [0x4bdb08], 2
mov ecx, dword [ebp - 0xc30]
mov edx, ebx
mov eax, dword [0x4c0540]
call fcn.0040ff58
mov eax, 0x4c7c4c
xor ecx, ecx
xor edx, edx
call fcn.00452bdc
xor ebx, ebx
mov word [ebp - 0xc1c], 8
lea eax, [ebp - 0xc08]
call fcn.004130c8
inc dword [ebp - 0xc10]
mov edx, 0x4a99b5
mov word [ebp - 0xc1c], 0x14
lea eax, [ebp - 0xc08]
call fcn.00413168
lea eax, [ebp - 0x18d4]
call fcn.004141d8
lea eax, [ebp - 0x18a8]
call fcn.004141d8
lea eax, [ebp - 0x187c]
call fcn.004141d8
jmp 0x44ba11
cmp byte [ebp - 0x18d8], 0
jne 0x44ba11
call fcn.004107bc
test eax, eax
je 0x44b9f7
cmp word [ebp - 0x20e8], 0
je 0x44b9f7
test esi, esi
je 0x44b9f7
lea edx, [ebp - 0xc34]
push edx
push esi
push 0x400
lea ecx, [ebp - 0x20e8]
push ecx
call sub.KERNEL32.DLL_GetFullPathNameW
jmp 0x44ba00
test esi, esi
je 0x44ba00
mov word [esi], 0
lea eax, [ebp - 0x24e8]
mov edx, edi
call fcn.0040acd8
mov bl, 1
jmp 0x44ba28
lea edx, [ebp - 0x24e8]
lea eax, [ebp - 0xc08]
xor ecx, ecx
call fcn.004131dc
test al, al
jne 0x44b9bc
lea eax, [ebp - 0x1434]
push eax
call fcn.0049a80c
pop ecx
test bl, bl
jne 0x44ba45
lea edx, [ebp - 0x1034]
push edx
call sub.KERNEL32.DLL_RemoveDirectoryA
mov byte [0x4c749c], 0
mov eax, 0x4c7470
call fcn.0047d6a8
mov eax, ebx
mov edx, 2
push eax
lea eax, [ebp - 0xc08]
dec dword [ebp - 0xc10]
call fcn.00413138
pop eax
mov edx, dword [ebp - 0xc2c]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44d4ec
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 0x44d554
push ebx
push 0x400
mov edx, 0x4a9b06
mov eax, 0x4a9afb
mov ecx, edi
call fcn.004619ec
cmp byte [edi], 0
jne 0x44d52c
push ebx
push edi
call fcn.00498e7c
add esp, 8
jmp 0x44d557
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.00498e7c
add esp, 8
jmp 0x44d557
mov byte [edi], 0
cmp byte [edi], 0
setne bl
and ebx, 1
cmp byte [edi], 0
jne 0x44d570
push edi
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov eax, edi
call fcn.0040c35c
cmp byte [ebp + 0x10], 0
jne 0x44d585
test bl, bl
je 0x44d62a
mov edx, 0x4a9b10
mov eax, 0x4a9afb
mov ecx, 1
call fcn.00461bc4
test eax, eax
je 0x44d62a
mov eax, esi
call fcn.0040be48
push eax
push edi
call fcn.00498da0
add esp, 8
mov eax, edi
call fcn.0040c248
mov esi, eax
test esi, esi
je 0x44d62a
cmp edi, esi
jae 0x44d62a
mov byte [esi], 0
mov eax, edi
call fcn.0040c248
mov ebx, eax
test ebx, ebx
je 0x44d616
cmp edi, ebx
jae 0x44d616
cmp byte [ebp + 0xc], 0
je 0x44d603
cmp byte [esi + 1], 0
je 0x44d603
xor eax, eax
mov al, byte [esi + 2]
push eax
call fcn.0049cbe8
pop ecx
test eax, eax
jne 0x44d603
xor edx, edx
mov dl, byte [esi - 1]
push edx
call fcn.0049cbe8
pop ecx
test eax, eax
jne 0x44d613
mov edx, 0x4a9b1b
mov eax, ebx
call fcn.0040f55c
test eax, eax
jne 0x44d616
mov byte [ebx], 0
dec esi
jmp 0x44d61d
mov byte [esi], 0
dec esi
cmp edi, esi
jae 0x44d62a
xor ecx, ecx
mov cl, byte [esi]
cmp ecx, 0x2e
je 0x44d619
xor edx, edx
mov eax, edi
call fcn.0040c818
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44dbd0
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 + 0xc]
lea ebx, [ebp - 0x254]
test edi, edi
je 0x44dc19
push edi
push ebx
call fcn.00498e7c
add esp, 8
push ebx
call fcn.00498eac
pop ecx
inc eax
add ebx, eax
push edi
push ebx
call fcn.00498e7c
add esp, 8
push ebx
call fcn.00498eac
pop ecx
inc eax
add ebx, eax
mov eax, 0x426
call fcn.004129c8
push eax
push ebx
call fcn.00498e7c
add esp, 8
push ebx
call fcn.00498eac
pop ecx
inc eax
add ebx, eax
push 0x4a9bfc
push ebx
call fcn.00498e7c
add esp, 8
push ebx
call fcn.00498eac
pop ecx
inc eax
add ebx, eax
mov byte [ebx], 0
push 0x4c
push 0
lea edx, [ebp - 0x54]
push edx
call fcn.00498cfc
mov dword [ebp - 0x54], 0x4c
mov ecx, dword [ebp - 4]
mov eax, dword [0x4b41d0]
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.0040be48
cmp esi, eax
jne 0x44dcb5
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
cmp byte [ebp + 8], 0
je 0x44dccf
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetSaveFileNameA
mov ebx, eax
jmp 0x44dcda
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetOpenFileNameA
mov ebx, eax
test ebx, ebx
jne 0x44dd0b
call sub.COMDLG32.DLL_CommDlgExtendedError
cmp eax, 0x3002
jne 0x44dd0b
mov byte [esi], 0
cmp byte [ebp + 8], 0
je 0x44dd00
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetSaveFileNameA
mov ebx, eax
jmp 0x44dd0b
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 8
Function at 0x44dd1c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff328
push ebx
push esi
push edi
lea edi, [ebp - 0x80c]
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [edi], 0
xor esi, esi
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x88c]
mov eax, 0x4c7c4c
mov edx, esi
call fcn.00458150
test al, al
je 0x44dda8
push edi
call fcn.00498eac
pop ecx
push eax
lea eax, [ebp - 0x88c]
push eax
call fcn.00498eac
pop ecx
pop edx
add edx, eax
cmp edx, 0x3f6
ja 0x44dda8
test esi, esi
je 0x44dd87
push 0x4a9bfe
push edi
call fcn.00498da0
add esp, 8
push 0x4a9c00
push edi
call fcn.00498da0
add esp, 8
lea ecx, [ebp - 0x88c]
push ecx
push edi
call fcn.00498da0
add esp, 8
inc ebx
jmp 0x44dd3e
test ebx, ebx
je 0x44ddaf
inc esi
jmp 0x44dd3c
mov eax, 0x426
call fcn.004129c8
push eax
push edi
mov eax, 0x425
call fcn.004129c8
push eax
push edi
mov eax, 0x424
call fcn.004129c8
push eax
push str._s_t_s_t_s_t_s_.exe_t_s_t._t
lea edx, [ebp - 0x40c]
push edx
call fcn.0049bdcc
add esp, 0x1c
cmp byte [ebp - 9], 0
je 0x44de28
mov eax, dword [ebp - 8]
call fcn.0040c248
mov ebx, eax
test ebx, ebx
je 0x44de28
inc ebx
push ebx
call fcn.00498eac
pop ecx
cmp eax, 0x14
jge 0x44de28
mov eax, 0x426
call fcn.004129c8
push eax
push ebx
push ebx
push str._s_t._s_t_s_t._t
lea edx, [ebp - 0x40c]
push edx
call fcn.0049bdcc
add esp, 0x14
xor eax, eax
jmp 0x44de43
xor edx, edx
mov dl, byte [ebp + eax - 0x40c]
cmp edx, 9
jne 0x44de42
mov byte [ebp + eax - 0x40c], 0
inc eax
cmp byte [ebp + eax - 0x40c], 0
jne 0x44de2c
push 0x4c
push 0
lea ecx, [ebp - 0x8d8]
push ecx
call fcn.00498cfc
mov dword [ebp - 0x8d8], 0x4c
mov eax, dword [ebp - 4]
mov edx, dword [0x4b41d0]
mov dword [ebp - 0x8d4], eax
mov dword [ebp - 0x8d0], edx
lea ecx, [ebp - 0x40c]
add esp, 0xc
mov dword [ebp - 0x8cc], ecx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x8bc], eax
mov eax, 0x48d
mov dword [ebp - 0x8b8], 0x400
cmp byte [ebp + 8], 0
jne 0x44deae
add eax, 0xfffffcb3
call fcn.004129c8
mov dword [ebp - 0x8a8], eax
mov eax, dword [ebp - 8]
call fcn.0040be48
cmp eax, dword [ebp - 8]
jne 0x44dee3
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], 0x4a9c2d
lea eax, [ebp - 0x8d8]
push eax
call sub.COMDLG32.DLL_GetOpenFileNameA
mov ebx, eax
test ebx, ebx
jne 0x44df29
call sub.COMDLG32.DLL_CommDlgExtendedError
cmp eax, 0x3002
jne 0x44df29
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 edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44df3c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffab0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
lea ebx, [ebp - 0x550]
mov eax, 0x426
call fcn.004129c8
push eax
lea edx, [ebp - 0x104]
push edx
call fcn.00498e7c
add esp, 8
lea ecx, [ebp - 0x104]
push 3
push 0x4a9c31
push ecx
call fcn.00498eac
pop ecx
lea edx, [ebp - 0x103]
add eax, edx
push eax
call fcn.00498c8c
add esp, 0xc
mov word [ebp - 0x504], 0
push 0x4c
push 0
push ebx
call fcn.00498cfc
mov dword [ebx], 0x4c
mov dword [ebx + 4], esi
mov eax, dword [0x4b41d0]
lea ecx, [ebp - 0x504]
mov dword [ebx + 8], eax
mov dword [ebx + 0x1c], ecx
mov dword [ebx + 0x20], pe_nt_image_headers32
mov dword [ebx + 0x44], 0x44d63c
mov dword [ebx + 0x34], 0x9036c
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x40], edi
call fcn.004107bc
test eax, eax
je 0x44e092
mov eax, 0x426
call fcn.004129c8
lea edx, [ebp - 0x750]
mov ecx, 0x1000000
call fcn.00410844
lea eax, [ebp - 0x750]
call fcn.00410af4
add eax, eax
lea edx, [ebp - 0x74e]
add eax, edx
mov edx, 0x4a9c34
call fcn.00410b08
lea eax, [ebp - 0x750]
call fcn.00410af4
mov word [ebp + eax*2 - 0x74e], 0
lea edx, [ebp - 0x950]
mov ecx, 0x1000000
mov eax, dword [ebx + 0x30]
call fcn.00410844
lea eax, [ebp - 0x750]
lea edx, [ebp - 0x950]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x48], 0x4a9c38
lea ecx, [ebp - 0x1150]
push ecx
push 0x800
call sub.KERNEL32.DLL_GetCurrentDirectoryW
lea eax, [ebp - 0x1150]
mov dword [ebx + 0x2c], eax
push ebx
call sub.COMDLG32.DLL_GetOpenFileNameW
jmp 0x44e0c2
lea edx, [ebp - 0x104]
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x48], str.OKCANCELTPL
lea ecx, [ebp - 0x1550]
push ecx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea eax, [ebp - 0x1550]
mov dword [ebx + 0x2c], eax
push ebx
call sub.COMDLG32.DLL_GetOpenFileNameA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4508e0
Capabilities:
Check mutex on windows
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov eax, 0x4a9f60
push ebx
push esi
push edi
call fcn.004992ac
cmp dword [0x4c9894], 0
je 0x45090d
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
mov eax, edx
jmp 0x450aa8
push str.WinRAR_DragDrop
push 0
push 0
call sub.KERNEL32.DLL_CreateMutexA
mov esi, eax
push 0
push esi
call sub.KERNEL32.DLL_WaitForSingleObject
cmp eax, 0x102
jne 0x450954
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, 0x5b9
call fcn.004129c8
push eax
call fcn.00487828
pop ecx
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
mov eax, edx
jmp 0x450aa8
push 0x10
call sub.USER32.DLL_GetKeyState
test ah, 0x80
setne cl
and ecx, 1
mov byte [0x4ca732], cl
cmp byte [0x4ca732], 0
jne 0x450980
cmp dword [0x4c988c], 0
jne 0x450980
xor ebx, ebx
jmp 0x450985
mov ebx, 1
push 8
call fcn.004974ec
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x4509ad
mov word [ebp - 0x1c], 0x14
mov eax, dword [ebp - 4]
call fcn.0044ebb8
mov word [ebp - 0x1c], 8
mov edi, dword [ebp - 4]
jmp 0x4509b0
mov edi, dword [ebp - 4]
push 0x4f24
call fcn.004974ec
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x4509dd
mov word [ebp - 0x1c], 0x2c
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0044e110
mov word [ebp - 0x1c], 0x20
mov edx, dword [ebp - 8]
jmp 0x4509e0
mov edx, dword [ebp - 8]
mov dword [ebp - 0x30], edx
mov byte [0x4ca731], 0
mov byte [0x4ca734], 0
mov byte [0x4ca730], 1
mov byte [0x4ca733], 0
lea eax, [ebp - 0x34]
push eax
mov ecx, 3
test bl, bl
jne 0x450a0f
add ecx, 0xfffffffe
push ecx
push edi
push dword [ebp - 0x30]
call sub.OLE32.DLL_DoDragDrop
mov ebx, eax
mov eax, dword [ebp - 0x30]
push eax
mov byte [0x4ca730], 0
mov edx, dword [eax]
call dword [edx + 8]
push edi
mov ecx, dword [edi]
call dword [ecx + 8]
cmp byte [0x4ca732], 0
je 0x450a5a
cmp dword [0x4c988c], 0
je 0x450a5a
cmp ebx, 0x40100
jne 0x450a5a
call fcn.004846c0
mov eax, 0x4c6f00
call fcn.0045a93c
push esi
call sub.KERNEL32.DLL_ReleaseMutex
push esi
call sub.KERNEL32.DLL_CloseHandle
cmp ebx, 0x40100
je 0x450a9e
cmp byte [0x4ca733], 0
jne 0x450a9e
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x3f0
je 0x450a9e
mov eax, 0x53c
call fcn.004129c8
push eax
call fcn.00487828
pop ecx
mov eax, 0x4b3b9c
call fcn.0042dd14
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452598
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
push ebx
push esi
push edi
mov ebx, eax
lea esi, [ebp - 0x84]
mov edi, str.Formats.fmt
lea eax, [ebx + 4]
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [ebx + 0x404], eax
cmp dword [ebx + 0x404], 0
jne 0x4525d0
xor eax, eax
jmp 0x4527d2
lea edx, [edi + 0x29]
push edx
push dword [ebx + 0x404]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x490], eax
lea ecx, [edi + 0x31]
push ecx
push dword [ebx + 0x404]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x494], eax
lea eax, [edi + 0x36]
push eax
push dword [ebx + 0x404]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x498], eax
lea edx, [edi + 0x3c]
push edx
push dword [ebx + 0x404]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x49c], eax
lea ecx, [edi + 0x42]
push ecx
push dword [ebx + 0x404]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x4a0], eax
lea eax, [edi + 0x4e]
push eax
push dword [ebx + 0x404]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x4a4], eax
lea edx, [edi + 0x5a]
push edx
push dword [ebx + 0x404]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x4a8], eax
lea ecx, [edi + 0x62]
push ecx
push dword [ebx + 0x404]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x4ac], eax
cmp dword [ebx + 0x490], 0
je 0x452693
cmp dword [ebx + 0x494], 0
jne 0x45269a
cmp dword [ebx + 0x498], 0
jne 0x45269a
xor eax, eax
jmp 0x4527d2
push 0x84
push 0
push esi
call fcn.00498cfc
add esp, 0xc
mov dword [esi], 0x84
mov dword [esi + 4], 0x450d58
mov dword [esi + 8], 0x450e9c
mov dword [esi + 0xc], 0x450eaf
mov dword [esi + 0x10], 0x450ec4
mov dword [esi + 0x14], 0x450f23
mov dword [esi + 0x18], 0x4510f0
mov dword [esi + 0x1c], 0x451104
mov dword [esi + 0x20], 0x45110f
mov dword [esi + 0x24], 0x4511c3
mov dword [esi + 0x28], 0x451267
mov dword [esi + 0x2c], 0x45139b
mov dword [esi + 0x30], 0x45172e
mov dword [esi + 0x34], 0x45173d
mov dword [esi + 0x38], 0x451794
mov dword [esi + 0x3c], fcn.00450f3a
mov dword [esi + 0x40], 0x451826
mov dword [esi + 0x44], 0x451842
mov dword [esi + 0x48], 0x451870
mov dword [esi + 0x4c], 0x451885
mov dword [esi + 0x50], 0x45189a
mov dword [esi + 0x54], 0x4518af
mov dword [esi + 0x58], 0x4518c4
mov dword [esi + 0x5c], 0x451925
mov dword [esi + 0x60], 0x451984
mov dword [esi + 0x64], 0x451ac9
mov dword [esi + 0x68], 0x45130b
push 0x88
push 0
lea edx, [ebx + 0x408]
push edx
call fcn.00498cfc
add esp, 0xc
lea ecx, [ebx + 0x408]
mov dword [ebx + 0x408], 0x88
push ecx
push esi
call dword [ebx + 0x490]
cmp dword [ebx + 0x488], 0
je 0x4527d0
push dword [ebx + 0x404]
call sub.KERNEL32.DLL_FreeLibrary
xor eax, eax
mov dword [ebx + 0x404], eax
lea eax, [ebx + 4]
call fcn.0040be48
push eax
mov eax, 0x42e
call fcn.004129c8
push eax
call fcn.00487828
add esp, 8
xor eax, eax
jmp 0x4527d2
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453b68
Capabilities:
Check if file exists
Get common file path
Get disk information
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff800
mov edx, 0x4aa22a
mov eax, 0x4aa224
push ebx
mov ebx, ecx
lea ecx, [ebp - 0x400]
mov byte [ebx], 0
push 0x4aa151
push 0x400
call fcn.004619ec
cmp byte [ebp - 0x400], 0
jne 0x453bbd
cmp byte [0x4bed08], 0
je 0x453c78
lea eax, [ebp - 0x400]
push eax
push 0x400
call sub.KERNEL32.DLL_GetTempPathA
push 0x400
lea edx, [ebp - 0x800]
push edx
lea ecx, [ebp - 0x400]
push ecx
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
test eax, eax
jle 0x453bfb
cmp eax, 0x400
jge 0x453bfb
push 0x400
lea eax, [ebp - 0x800]
push eax
lea edx, [ebp - 0x400]
push edx
call fcn.0049905c
add esp, 0xc
lea ecx, [ebp - 0x400]
push ecx
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x453c1d
lea eax, [ebp - 0x400]
push eax
push 0x400
call sub.KERNEL32.DLL_GetTempPathA
mov edx, 0x4aa235
mov eax, 0x4aa224
mov ecx, 1
call fcn.00461bc4
test eax, eax
je 0x453c61
cmp byte [0x4bed08], 0
jne 0x453c61
push 0
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
je 0x453c4f
cmp eax, 5
jne 0x453c71
lea edx, [ebp - 0x400]
push edx
push ebx
call fcn.00498e7c
add esp, 8
jmp 0x453c71
lea eax, [ebp - 0x400]
push eax
push ebx
call fcn.00498e7c
add esp, 8
mov eax, ebx
call fcn.0040c35c
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459aa8
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffe0c
push ebx
mov ebx, eax
push esi
push edi
cmp dword [ebx + 0x520], 0
je 0x459c90
mov eax, dword [ebx + 0x520]
mov edi, dword [ebx + eax*4 + 0x49c]
xor eax, eax
mov dword [ebp - 4], eax
test edi, edi
je 0x459c90
lea edx, [ebp - 4]
push edx
push 0x20
push dword [ebx]
push edi
mov ecx, dword [edi]
call dword [ecx + 0x10]
test eax, eax
jne 0x459c90
cmp dword [ebp - 4], 0
je 0x459c90
xor eax, eax
mov dword [ebp - 8], eax
xor edx, edx
mov dword [ebp - 0x10], edx
jmp 0x459c6c
mov dword [ebp - 0x14], 0x10000000
lea ecx, [ebp - 0x14]
lea eax, [ebp - 8]
push ecx
push eax
push 1
push edi
mov edx, dword [edi]
call dword [edx + 0x24]
test byte [ebp - 0x11], 0x10
je 0x459b49
lea ecx, [ebp - 0x414]
push ecx
push 0
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.004608c8
test eax, eax
jne 0x459b5c
push dword [ebp - 8]
mov eax, dword [0x4cd5f4]
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
jmp 0x459c6c
mov ecx, dword [ebx + 0x520]
mov edx, dword [ebp - 8]
mov eax, dword [ebx + ecx*4 + 0x41c]
call fcn.0046082c
mov esi, eax
push 0x4409
push 0x160
lea eax, [ebp - 0x574]
push eax
push 0
push esi
call sub.SHELL32.DLL_SHGetFileInfoA
push esi
mov edx, dword [0x4cd5f4]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x14]
mov dword [ebp - 0x59c], 7
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov dword [ebp - 0x598], eax
lea eax, [ebp - 0x414]
mov edx, dword [ebp - 0x570]
mov dword [ebp - 0x580], edx
mov dword [ebp - 0x594], ecx
mov dword [ebp - 0x588], eax
push 0xc30
lea edx, [ebp - 0x11cc]
push 0
push edx
call fcn.00498cfc
mov ecx, dword [ebp - 8]
add esp, 0xc
mov dword [ebp - 0x5a4], ecx
lea eax, [ebp - 0x11cc]
mov dword [ebp - 0x5b0], 0x20
push dword [ebp - 0x588]
push eax
call fcn.00498e7c
mov dword [ebp - 0x5bc], 0x10
add esp, 8
lea edx, [ebp - 0x11cc]
mov eax, 0x4cb8cc
call fcn.00461080
mov dword [ebp - 0x57c], eax
lea edx, [ebp - 0x59c]
push edx
push 0
push 0x1007
push dword [ebx]
call sub.USER32.DLL_SendMessageA
mov dword [ebp - 0x11ec], 2
lea ecx, [ebp - 0x464]
lea edx, [ebp - 0x11f4]
mov dword [ebp - 0x11e0], ecx
push edx
push eax
push 0x102e
push dword [ebx]
call sub.USER32.DLL_SendMessageA
inc dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
push 1
mov eax, dword [ebp - 4]
push eax
mov edx, dword [eax]
call dword [edx + 0xc]
test eax, eax
je 0x459b13
mov ecx, dword [ebp - 4]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret