joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b168
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 0x44b184
mov edx, eax
add edx, dword [ebx + 0x40]
cmp esi, edx
jl 0x44b18b
xor eax, eax
jmp 0x44b269
mov edx, esi
sub edx, eax
push edx
push 0x49cc30
lea ecx, [esp + 8]
push ecx
call fcn.004908b8
add esp, 0xc
push 0x49ca45
push 0x400
lea ecx, [esp + 0x3c]
lea edx, [esp + 8]
mov eax, ebx
call fcn.00465984
lea eax, [esp + 0x34]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x44b1f9
test al, 0x10
je 0x44b1f9
lea eax, [esp + 0x34]
xor edx, edx
call fcn.0046830c
mov eax, 0x4b98a4
call fcn.00463b8c
test al, al
je 0x44b264
lea edx, [esp + 0x34]
mov eax, 0x4b98a4
xor ecx, ecx
call fcn.00461c04
jmp 0x44b264
lea edx, [esp + 0x34]
mov eax, 0x4b98a4
xor ecx, ecx
call fcn.00461a94
sub esi, dword [ebx + 0x3c]
push esi
push 0x49d677
lea edx, [esp + 8]
push edx
call fcn.004908b8
add esp, 0xc
push 0x49ca45
push 0x400
lea ecx, [esp + 0x43c]
lea edx, [esp + 8]
mov eax, ebx
call fcn.00465984
cmp byte [esp + 0x434], 0
je 0x44b264
lea edx, [esp + 0x434]
mov eax, 0x4ba5d4
xor ecx, ecx
call fcn.0045d158
mov eax, 0x4b98a4
xor edx, edx
call fcn.0045f0f8
mov eax, 1
add esp, 0x834
pop esi
pop ebx
ret
Function at 0x44b370
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push ebx
push esi
add esp, 0xfffff2b0
mov byte [esp], al
mov dword [0x4bc22c], 1
test dl, dl
je 0x44b504
lea eax, [esp + 0x10]
mov edx, 0x400
call fcn.00468290
lea eax, [esp + 0x10]
call fcn.0040ba60
lea edx, [esp + 0x10]
push edx
push str._sRar_
lea ecx, [esp + 0x418]
push ecx
call fcn.004908b8
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 0x44b4ed
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.0048d8e8
add esp, 8
lea ecx, [esp + 0x83c]
push ecx
lea eax, [esp + 0x954]
push eax
call fcn.0048d80c
add esp, 8
test byte [esp + 0x810], 0x10
je 0x44b4bc
push 6
push str.Rar_DI
lea edx, [esp + 0x844]
push edx
call fcn.0048d9e4
add esp, 0xc
test eax, eax
jne 0x44b461
call fcn.0040f820
cmp eax, 4
jne 0x44b465
xor ecx, ecx
jmp 0x44b46a
mov ecx, 1
mov byte [esp + 0xc], cl
lea eax, [esp + 0x950]
push eax
call sub.KERNEL32.DLL_RemoveDirectoryA
test eax, eax
jne 0x44b4d7
test bl, bl
je 0x44b489
cmp byte [esp], 0
je 0x44b490
cmp byte [esp + 0xc], 0
je 0x44b4d7
lea eax, [esp + 0x950]
call fcn.00468084
test al, al
je 0x44b4d7
lea eax, [esp + 0x950]
xor edx, edx
call fcn.0040a4f4
lea eax, [esp + 0x950]
call fcn.004678e4
jmp 0x44b4d7
lea eax, [esp + 0x950]
xor edx, edx
call fcn.0040a4f4
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 0x44b4fe
cmp dword [0x4bc22c], 1
je 0x44b3ed
push esi
call sub.KERNEL32.DLL_FindClose
cmp byte [esp], 0
jne 0x44b53d
cmp byte [0x4a7004], 0
je 0x44b53d
push 0
call sub.KERNEL32.DLL_GetCurrentThread
push eax
call sub.KERNEL32.DLL_SetThreadPriority
mov al, 1
call fcn.0044b550
mov ebx, eax
mov byte [0x4a7004], bl
test bl, bl
jne 0x44b53d
mov eax, 0x49d63e
call fcn.0044c6f8
xor edx, edx
mov dword [0x4bc22c], edx
add esp, 0xd50
pop esi
pop ebx
ret
Function at 0x44e6a1
Capabilities:
Get memory capacity

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

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff600
mov esi, edx
mov ebx, eax
mov ebp, esp
mov eax, esi
call fcn.0040b578
mov edi, eax
cmp byte [0x4a8940], 0
je 0x44f501
mov eax, 0x4a8840
mov ecx, 0x3a
mov edx, edi
call fcn.0040fdb4
jmp 0x44f50c
push 0x3a
push edi
call fcn.0048da20
add esp, 8
test eax, eax
je 0x44f54a
cmp byte [0x49e090], 0
jne 0x44f54a
push 0x31
mov eax, 0x65
call fcn.004116e8
push eax
mov eax, 0x528
call fcn.004116e8
push eax
push ebx
call sub.USER32.DLL_MessageBoxA
dec eax
jne 0x44f543
mov byte [0x49e090], 1
jmp 0x44f54a
xor eax, eax
jmp 0x44f5fb
mov edi, esi
cmp byte [0x4a8940], 0
je 0x44f568
mov eax, 0x4a8840
mov ecx, 0x5c
mov edx, edi
call fcn.0040fdf8
jmp 0x44f573
push 0x5c
push edi
call fcn.0048da38
add esp, 8
mov edi, eax
test edi, edi
je 0x44f587
cmp esi, edi
je 0x44f587
xor eax, eax
mov al, byte [edi - 1]
cmp eax, 0x3a
jne 0x44f58b
mov al, 1
jmp 0x44f5fb
push esi
push ebp
call fcn.0048d8e8
add esp, 8
sub edi, esi
mov byte [ebp + edi], 0
jmp 0x44f5ee
mov eax, 0x14d
call fcn.004116e8
push eax
push ebp
push str.__s__n_s
lea edx, [esp + 0x40c]
push edx
call fcn.004908b8
add esp, 0x10
mov eax, 0x65
push 0x34
call fcn.004116e8
push eax
lea edx, [esp + 0x408]
push edx
push ebx
call sub.USER32.DLL_MessageBoxA
cmp eax, 6
je 0x44f5e3
xor eax, eax
jmp 0x44f5fb
mov eax, ebp
xor ecx, ecx
xor edx, edx
call fcn.00409c94
push ebp
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x44f59e
mov al, 1
add esp, 0xa00
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x451fef
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 [0x4b3334]
cmp dword [eax + 0x30], 0
jbe 0x452069
push 0x400
push 0
lea edx, [esp + 8]
xor ecx, ecx
call fcn.0040f0c0
mov edx, dword [0x4b3334]
cmp dword [edx + 0x30], 1
jne 0x452051
mov eax, esp
xor edx, edx
call fcn.0040a0c8
test al, al
je 0x45204a
mov eax, esp
xor edx, edx
call fcn.0040a4fc
call fcn.0040a240
test al, al
je 0x45204a
xor ebx, ebx
jmp 0x452058
mov ebx, 1
jmp 0x452058
mov eax, esp
call fcn.0040bb00
mov eax, esp
call fcn.0040b578
push eax
push esi
call fcn.0048d8e8
add esp, 8
cmp byte [esi], 0
jne 0x4520e4
lea edx, [esp + 0x400]
push edx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea eax, [esp + 0x400]
call fcn.0040b578
push eax
push esi
call fcn.0048d8e8
add esp, 8
cmp byte [esi], 0
jne 0x4520d1
push 0x400
push 0
lea edx, [esp + 0x808]
xor ecx, ecx
mov eax, dword [0x4b3334]
call fcn.0040f0c0
test al, al
je 0x4520d1
lea eax, [esp + 0x800]
call fcn.0040b578
push eax
push esi
call fcn.0048d8e8
add esp, 8
mov bl, 1
cmp byte [esi], 0
jne 0x4520e4
push str.archive
push esi
call fcn.0048d8e8
add esp, 8
test bl, bl
je 0x452105
mov eax, esi
call fcn.0040b948
mov ebx, eax
mov eax, esi
call fcn.0040b578
cmp ebx, eax
je 0x452105
xor edx, edx
mov eax, esi
call fcn.0040b88c
add esp, 0xc00
pop esi
pop ebx
ret
Function at 0x4540fc
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 0x454145
push edi
push ebx
call fcn.0048d8e8
add esp, 8
push ebx
call fcn.0048d918
pop ecx
inc eax
add ebx, eax
push edi
push ebx
call fcn.0048d8e8
add esp, 8
push ebx
call fcn.0048d918
pop ecx
inc eax
add ebx, eax
mov eax, 0x426
call fcn.004116e8
push eax
push ebx
call fcn.0048d8e8
add esp, 8
push ebx
call fcn.0048d918
pop ecx
inc eax
add ebx, eax
push 0x49e6d0
push ebx
call fcn.0048d8e8
add esp, 8
push ebx
call fcn.0048d918
pop ecx
inc eax
add ebx, eax
mov byte [ebx], 0
push 0x4c
push 0
lea edx, [ebp - 0x54]
push edx
call fcn.0048d768
mov dword [ebp - 0x54], 0x4c
mov ecx, dword [ebp - 4]
mov eax, dword [0x4a7028]
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.0040b578
cmp esi, eax
jne 0x4541e1
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 0x454211
call sub.COMDLG32.DLL_CommDlgExtendedError
cmp eax, 0x3002
jne 0x454211
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 0x454224
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, 0x4ba5d4
mov edx, ebx
call fcn.0045d634
test al, al
je 0x45428c
test ebx, ebx
je 0x45426b
push 0x49e6d2
push esi
call fcn.0048d80c
add esp, 8
push 0x49e6d4
push esi
call fcn.0048d80c
add esp, 8
lea eax, [ebp - 0x88c]
push eax
push esi
call fcn.0048d80c
add esp, 8
inc ebx
jmp 0x454243
mov eax, 0x426
call fcn.004116e8
push eax
push esi
mov eax, 0x425
call fcn.004116e8
push eax
push esi
mov eax, 0x424
call fcn.004116e8
push eax
push str._s_t_s_t_s_t_s_.exe_t_s_t._t
lea edx, [ebp - 0x40c]
push edx
call fcn.004908b8
add esp, 0x1c
cmp byte [ebp - 9], 0
je 0x454305
mov eax, dword [ebp - 8]
call fcn.0040b948
mov ebx, eax
test ebx, ebx
je 0x454305
inc ebx
push ebx
call fcn.0048d918
pop ecx
cmp eax, 0x14
jge 0x454305
mov eax, 0x426
call fcn.004116e8
push eax
push ebx
push ebx
push str._s_t._s_t_s_t._t
lea edx, [ebp - 0x40c]
push edx
call fcn.004908b8
add esp, 0x14
xor eax, eax
jmp 0x45431d
and edx, 0xff
cmp edx, 9
jne 0x45431c
mov byte [ebp + eax - 0x40c], 0
inc eax
mov dl, byte [ebp + eax - 0x40c]
test dl, dl
jne 0x454309
push 0x4c
push 0
lea eax, [ebp - 0x8d8]
push eax
call fcn.0048d768
mov dword [ebp - 0x8d8], 0x4c
mov ecx, dword [ebp - 4]
mov eax, dword [0x4a7028]
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 0x454385
mov eax, 0x48d
jmp 0x45438a
mov eax, 0x140
call fcn.004116e8
mov dword [ebp - 0x8a8], eax
mov eax, dword [ebp - 8]
call fcn.0040b578
cmp eax, dword [ebp - 8]
jne 0x4543bf
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], 0x49e701
lea eax, [ebp - 0x8d8]
push eax
call sub.COMDLG32.DLL_GetOpenFileNameA
mov ebx, eax
test ebx, ebx
jne 0x454405
call sub.COMDLG32.DLL_CommDlgExtendedError
cmp eax, 0x3002
jne 0x454405
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 0x454418
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.004116e8
push eax
lea edx, [esp + 4]
push edx
call fcn.0048d8e8
add esp, 8
push 3
push 0x49e705
lea ecx, [esp + 8]
push ecx
call fcn.0048d918
pop ecx
lea edx, [esp + 9]
add eax, edx
push eax
call fcn.0048d6f8
add esp, 0xc
lea eax, [esp + 0x100]
mov word [eax], 0
push 0x4c
push 0
push ebx
call fcn.0048d768
add esp, 0xc
mov dword [ebx], 0x4c
mov dword [ebx + 4], esi
mov ecx, dword [0x4a7028]
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], 0x453b60
mov dword [ebx + 0x34], 0x9036c
mov dword [ebx + 0x30], ebp
mov dword [ebx + 0x40], edi
call fcn.0040f820
test eax, eax
je 0x454572
mov eax, 0x426
call fcn.004116e8
lea edx, [esp + 0x54c]
mov ecx, 0x10000000
call fcn.0040f898
lea eax, [esp + 0x54c]
call fcn.0040f914
add eax, eax
lea edx, [esp + 0x54e]
add eax, edx
mov edx, 0x49e708
call fcn.0040f928
lea eax, [esp + 0x54c]
call fcn.0040f914
mov word [esp + eax*2 + 0x54e], 0
lea edx, [esp + 0x74c]
mov ecx, 0x10000000
mov eax, dword [ebx + 0x30]
call fcn.0040f898
lea eax, [esp + 0x54c]
lea edx, [esp + 0x74c]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x30], edx
mov ecx, 0x49e70c
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 0x4545a0
mov ecx, esp
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x48], str.OKCANCELTPL
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 0x456b7c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov eax, 0x49ea24
push ebx
push esi
push edi
call fcn.0048dd88
cmp dword [0x4bc220], 0
je 0x456ba9
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
mov eax, edx
jmp 0x456ced
push 0x10
call sub.USER32.DLL_GetKeyState
test ah, 0x80
setne cl
and ecx, 1
mov byte [0x4bf196], cl
cmp byte [0x4bf196], 0
jne 0x456bd5
cmp dword [0x4bc218], 0
jne 0x456bd5
xor ebx, ebx
jmp 0x456bda
mov ebx, 1
push 8
call fcn.0048bf20
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x456c02
mov word [ebp - 0x1c], 0x14
mov eax, dword [ebp - 4]
call fcn.00455014
mov word [ebp - 0x1c], 8
mov esi, dword [ebp - 4]
jmp 0x456c05
mov esi, dword [ebp - 4]
push 0x4efc
call fcn.0048bf20
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x456c32
mov word [ebp - 0x1c], 0x2c
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004545f0
mov word [ebp - 0x1c], 0x20
mov edi, dword [ebp - 8]
jmp 0x456c35
mov edi, dword [ebp - 8]
mov byte [0x4bf195], 0
mov byte [0x4bf198], 0
lea eax, [ebp - 0x30]
mov byte [0x4bf194], 1
mov byte [0x4bf197], 0
push eax
test bl, bl
je 0x456c60
mov edx, 3
jmp 0x456c65
mov edx, 1
push edx
push esi
push edi
call sub.OLE32.DLL_DoDragDrop
mov ebx, eax
mov byte [0x4bf194], 0
push edi
mov eax, dword [edi]
call dword [eax + 8]
push esi
mov ecx, dword [esi]
call dword [ecx + 8]
cmp byte [0x4bf196], 0
je 0x456cab
cmp dword [0x4bc218], 0
je 0x456cab
cmp ebx, 0x40100
jne 0x456cab
call fcn.00446428
mov eax, 0x4b98a4
call fcn.0045fbcc
cmp ebx, 0x40100
je 0x456ce3
cmp byte [0x4bf197], 0
jne 0x456ce3
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x3f0
je 0x456ce3
mov eax, 0x53c
call fcn.004116e8
push eax
call fcn.0044a224
pop ecx
mov eax, 0x4a69f4
call fcn.00429838
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45717e
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 esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dl, 1
mov eax, ebx
call fcn.0040bda0
mov edx, ebx
mov eax, ebx
call fcn.0040b688
mov ecx, 0x400
xor edx, edx
mov eax, ebx
call fcn.0040be24
jmp 0x457205
test esi, 2
setne cl
push dword [ebp + 0x10]
and ecx, 1
lea eax, [ebp - 1]
push ecx
mov ecx, edi
mov edx, ebx
call fcn.0045971c
mov al, byte [ebp - 1]
sub al, 0x41
je 0x4571e1
sub al, 2
je 0x4571fe
sub al, 0xb
je 0x4571fe
sub al, 0xb
je 0x4571e1
jmp 0x457205
push 0
push ebx
call sub.KERNEL32.DLL_SetFileAttributesA
test esi, 1
jne 0x4571f7
push ebx
call sub.KERNEL32.DLL_DeleteFileA
mov eax, 0x59
jmp 0x457215
xor eax, eax
mov al, byte [ebp - 1]
jmp 0x457215
push ebx
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x4571b0
mov eax, 0x59
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x10
Function at 0x45825c
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 0x45828b
xor eax, eax
jmp 0x45842b
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 + 0x48]
push ecx
push dword [ebx + 0x404]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x4a0], eax
lea eax, [ebp + 0x54]
push eax
push dword [ebx + 0x404]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x4a4], eax
lea edx, [ebp + 0x5c]
push edx
push dword [ebx + 0x404]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x4a8], eax
cmp dword [ebx + 0x490], 0
je 0x45832b
cmp dword [ebx + 0x494], 0
jne 0x458332
xor eax, eax
jmp 0x45842b
push 0x84
push 0
push edi
call fcn.0048d768
add esp, 0xc
mov dword [edi], 0x84
mov dword [edi + 4], 0x456f9c
mov dword [edi + 8], 0x4570e0
mov dword [edi + 0xc], 0x4570f3
mov dword [edi + 0x10], 0x457108
mov dword [edi + 0x14], 0x457167
mov dword [edi + 0x18], 0x45721d
mov dword [edi + 0x1c], 0x457231
mov dword [edi + 0x20], 0x45723c
mov dword [edi + 0x24], 0x4572cb
mov dword [edi + 0x28], 0x45736d
mov dword [edi + 0x2c], 0x45740f
mov dword [edi + 0x30], 0x4576a0
mov dword [edi + 0x34], 0x4576af
mov dword [edi + 0x38], 0x45773c
mov dword [edi + 0x3c], fcn.0045717e
mov dword [edi + 0x40], 0x4577ce
mov dword [edi + 0x44], 0x4577ea
push 0x88
push 0
lea edx, [ebx + 0x408]
push edx
call fcn.0048d768
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 0x458429
push dword [ebx + 0x404]
call sub.KERNEL32.DLL_FreeLibrary
xor eax, eax
mov dword [ebx + 0x404], eax
lea eax, [ebx + 4]
call fcn.0040b578
push eax
mov eax, 0x42e
call fcn.004116e8
push eax
call fcn.0044a224
add esp, 8
xor eax, eax
jmp 0x45842b
mov al, 1
add esp, 0x84
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x459338
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, 0x49ecbc
mov byte [ebx], 0
mov eax, 0x49ecb6
push 0x49ec15
push 0x400
lea ecx, [esp + 8]
call fcn.00465984
cmp byte [esp], 0
je 0x4593c3
push esp
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x45937d
push esp
push 0x400
call sub.KERNEL32.DLL_GetTempPathA
mov edx, 0x49ecc7
mov eax, 0x49ecb6
mov ecx, 1
call fcn.00465b48
test eax, eax
je 0x4593b2
push 0
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
je 0x4593a6
cmp eax, 5
jne 0x4593bc
push esp
push ebx
call fcn.0048d8e8
add esp, 8
jmp 0x4593bc
push esp
push ebx
call fcn.0048d8e8
add esp, 8
mov eax, ebx
call fcn.0040ba60
add esp, 0x400
pop ebx
ret
Function at 0x45ed78
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff004
mov ebx, eax
push eax
add esp, 0xfffffe10
mov eax, dword [ebx + 0x520]
test eax, eax
je 0x45ef69
mov edi, dword [ebx + eax*4 + 0x49c]
xor eax, eax
mov dword [esp], eax
test edi, edi
je 0x45ef69
push esp
push 0x20
push dword [ebx]
push edi
mov edx, dword [edi]
call dword [edx + 0x10]
test eax, eax
jne 0x45ef69
cmp dword [esp], 0
je 0x45ef69
xor ecx, ecx
xor ebp, ebp
mov dword [esp + 4], ecx
jmp 0x45ef42
mov dword [esp + 0xc], 0x10000000
lea eax, [esp + 0xc]
push eax
lea edx, [esp + 8]
push edx
push 1
push edi
mov ecx, dword [edi]
call dword [ecx + 0x24]
test byte [esp + 0xf], 0x10
je 0x45ee0e
lea eax, [esp + 0x10]
xor ecx, ecx
push eax
mov eax, edi
mov edx, dword [esp + 8]
call fcn.00464e0c
test eax, eax
jne 0x45ee23
push dword [esp + 4]
mov edx, dword [0x4c11e4]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x14]
jmp 0x45ef42
mov eax, dword [ebx + 0x520]
mov edx, dword [esp + 4]
mov eax, dword [ebx + eax*4 + 0x41c]
call fcn.00464d7c
mov esi, eax
push 0x4409
push 0x160
lea eax, [esp + 0x418]
push eax
push 0
push esi
call sub.SHELL32.DLL_SHGetFileInfoA
push esi
mov edx, dword [0x4c11e4]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x14]
mov dword [esp + 0x570], 7
mov dword [esp + 0x574], ebp
xor edx, edx
mov eax, dword [esp + 0x414]
lea ecx, [esp + 0x10]
mov dword [esp + 0x58c], eax
mov dword [esp + 0x578], edx
mov dword [esp + 0x584], ecx
push 0xc30
push 0
lea eax, [esp + 0x5a0]
push eax
call fcn.0048d768
add esp, 0xc
mov edx, dword [esp + 4]
mov dword [esp + 0x11c0], edx
mov dword [esp + 0x11b4], 0x20
push dword [esp + 0x584]
lea ecx, [esp + 0x59c]
push ecx
call fcn.0048d8e8
add esp, 8
mov eax, 0x4c04bc
mov dword [esp + 0x11a8], 0x10
lea edx, [esp + 0x598]
call fcn.00465058
mov dword [esp + 0x590], eax
lea ecx, [esp + 0x570]
push ecx
push 0
push 0x1007
push dword [ebx]
call sub.USER32.DLL_SendMessageA
mov dword [esp + 0x11d0], 2
lea edx, [esp + 0x520]
lea ecx, [esp + 0x11c8]
mov dword [esp + 0x11dc], edx
push ecx
push eax
push 0x102e
push dword [ebx]
call sub.USER32.DLL_SendMessageA
inc ebp
lea eax, [esp + 8]
push eax
lea eax, [esp + 8]
push eax
push 1
mov edx, dword [esp + 0xc]
push edx
mov ecx, dword [edx]
call dword [ecx + 0xc]
test eax, eax
je 0x45edd7
mov eax, dword [esp]
push eax
mov edx, dword [eax]
call dword [edx + 8]
add esp, 0x11f0
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x460050
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff004
mov esi, 0x49f894
mov ebx, edx
push eax
add esp, 0xfffff9d0
lea edx, [esi + 4]
mov edi, ecx
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
push edx
mov edx, ebx
push 0x100
mov eax, 0x80000000
call fcn.004659a0
cmp byte [esp + 4], 0
je 0x46009b
lea ecx, [esp + 4]
push ecx
push edi
call fcn.0048d8e8
add esp, 8
push ebx
lea eax, [esi + 0x97]
push eax
lea edx, [esp + 0x10c]
push edx
call fcn.004908b8
add esp, 0xc
lea ecx, [esp + 0x230]
push ecx
lea eax, [esi + 4]
push eax
push 0x800
lea ecx, [esi + 4]
lea edx, [esp + 0x110]
mov eax, 0x80000000
call fcn.004659a0
test al, al
jne 0x46019a
push ebx
lea edx, [esi + 0xa6]
push edx
lea ecx, [esp + 0x10c]
push ecx
call fcn.004908b8
add esp, 0xc
lea eax, [esp + 0xa30]
push eax
lea edx, [esi + 4]
push edx
push 0x400
lea ecx, [esi + 4]
lea edx, [esp + 0x110]
mov eax, 0x80000000
call fcn.004659a0
test al, al
jne 0x460128
xor eax, eax
jmp 0x46021b
xor edx, edx
mov dl, byte [esp + 0xa30]
cmp edx, 0x22
jne 0x46013f
lea ecx, [esp + 0xa31]
jmp 0x460146
lea ecx, [esp + 0xa30]
push ecx
lea eax, [esp + 0x234]
push eax
call fcn.0048d8e8
add esp, 8
push 0x22
lea edx, [esp + 0x234]
push edx
call fcn.0048da25
add esp, 8
test eax, eax
je 0x460170
mov byte [eax], 0
lea eax, [esi + 0xbc]
push eax
lea edx, [esp + 0x234]
push edx
call fcn.0048da49
add esp, 8
test eax, eax
je 0x46018e
mov byte [eax], 0
lea eax, [esp + 0x230]
call fcn.0040e66c
lea edx, [esi + 0xbc]
push edx
lea ecx, [esp + 0x234]
push ecx
call fcn.0048d89c
add esp, 8
test eax, eax
jne 0x4601b9
xor eax, eax
jmp 0x46021b
xor esi, esi
push 0x800
lea eax, [esp + 0xe34]
push eax
lea edx, [esp + 0x238]
push edx
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
push 0x2c
lea ecx, [esp + 0xe34]
push ecx
call fcn.0048da3d
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x4601fc
lea esi, [ebx + 1]
push esi
call fcn.004921e8
pop ecx
mov esi, eax
mov byte [ebx], 0
xor eax, eax
mov dword [esp], eax
push 1
lea edx, [esp + 4]
push edx
push 0
push esi
lea ecx, [esp + 0xe40]
push ecx
call sub.SHELL32.DLL_ExtractIconExA
mov eax, dword [esp]
add esp, 0x1630
pop edi
pop esi
pop ebx
ret