joyce8/EMBER2024-capa huggingface dataset:
Function at 0x495170
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51dc70
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2018
call fcn.004fe1a0
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
mov byte [ebp - 0x2021], bl
mov eax, dword [str..EXE]
mov dword [ebp - 0x20], eax
mov ecx, dword [0x5674f8]
mov dword [ebp - 0x1c], ecx
mov dx, word [0x5674fc]
mov word [ebp - 0x18], dx
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x4952bb
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4951e0
sub eax, edx
sar eax, 1
je 0x4952bb
push 0x2000
push ebx
lea eax, [ebp - 0x2020]
push eax
call fcn.004fd670
push esi
push 0x1000
lea ecx, [ebp - 0x2020]
push ecx
call fcn.004fa94e
push 0x1000
lea edx, [ebp - 0x2020]
push edx
call fcn.004fab8f
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x2020]
push ecx
call fcn.004fa7e4
add esp, 0x28
cmp eax, ebx
je 0x495292
lea ecx, [ebp - 0x20]
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x495247
sub ecx, esi
sar ecx, 1
mov word [eax + ecx*2], bx
mov ecx, 0x567aa4
lea edx, [ebp - 0x2020]
call fcn.00494ad0
mov ecx, 0x567aa4
lea edx, [ebp - 0x2020]
call fcn.00494c80
lea edx, [ebp - 0x2020]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x495292
mov byte [ebp - 0x2021], 1
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x2021]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fa103
mov esp, ebp
pop ebp
ret
xor al, al
jmp 0x49529f
Function at 0x49c810
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x51db30
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
test edi, edi
je 0x49c963
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49c860
sub eax, edx
sar eax, 1
je 0x49c963
push 0x800
push 0
lea eax, [ebp]
push eax
call fcn.004fd670
push 0x3ff
push edi
push 0x400
lea ecx, [ebp]
push ecx
call fcn.004fa71b
add esp, 0x1c
mov ecx, 0x539d98
lea edx, [ebp]
call fcn.00494ad0
mov ecx, 0x539d98
lea edx, [ebp]
call fcn.00494c80
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x49c95a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x49c900
lea eax, [ebp]
push eax
push str.Delete_File____s_
mov ecx, esi
mov edx, 0x649e50
call fcn.004917b0
add esp, 8
mov dword [ebp - 0x18], esi
push 0x5814b0
lea ecx, [ebp - 0x18]
push ecx
call fcn.004fd5a3
sub eax, 2
je 0x49c955
sub eax, 3
je 0x49c930
sub eax, 0x1b
je 0x49c93f
lea edx, [ebp]
push edx
push str.Delete_File____s_
mov ecx, esi
mov edx, 0x649e50
call fcn.004917b0
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x49c9a6
push 0x80
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp]
call fcn.0049d210
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x49c9a6
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x49c9a6
mov eax, 0x57
jmp 0x49c9a8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x804
mov esp, ebp
pop ebp
ret
Function at 0x49c9d0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f2b0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1a68
call fcn.004fe1a0
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov edi, 1
mov dword [ebp - 4], 0
test esi, esi
je 0x49cc18
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49ca22
sub eax, edx
sar eax, 1
je 0x49cc18
push 0x800
push 0
lea eax, [ebp - 0x818]
push eax
call fcn.004fd670
add esp, 0xc
push 0x3ff
push esi
push 0x400
lea ecx, [ebp - 0x818]
push ecx
call fcn.004fa71b
mov ecx, 0x539d98
lea edx, [ebp - 0x818]
call fcn.00494ad0
mov ecx, 0x568974
lea edx, [ebp - 0x818]
call fcn.00494c80
push 0x800
push 0
lea edx, [ebp - 0x1818]
push edx
call fcn.004fd670
add esp, 0x1c
lea eax, [ebp - 0x818]
push eax
push str._s.
lea edx, [ebp - 0x1818]
call fcn.00404380
add esp, 8
lea ecx, [ebp - 0x1a68]
push ecx
lea edx, [ebp - 0x1818]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov ebx, dword [ebp + 0xc]
lea ecx, [ecx]
cmp esi, 0xffffffff
je 0x49cbe7
lea eax, [ebp - 0x1a3c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49cae2
sub eax, edx
sar eax, 1
cmp eax, 2
jne 0x49cb11
mov eax, 0x2e
cmp word [ebp - 0x1a3c], ax
jne 0x49cb11
cmp word [ebp - 0x1a3a], ax
je 0x49cbca
lea eax, [ebp - 0x1a3c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49cb20
sub eax, edx
sar eax, 1
cmp eax, 1
jne 0x49cb42
cmp word [ebp - 0x1a3c], 0x2e
je 0x49cbca
push 0x800
push 0
lea eax, [ebp - 0x1018]
push eax
call fcn.004fd670
add esp, 0xc
lea ecx, [ebp - 0x1a3c]
push ecx
lea edx, [ebp - 0x818]
push edx
push 0x535a74
lea edx, [ebp - 0x1018]
call fcn.00404380
add esp, 0xc
test byte [ebp - 0x1a68], 0x10
je 0x49cbbf
test bl, bl
je 0x49cbbf
push ebx
lea eax, [ebp - 0x1018]
push eax
call fcn.0049c9d0
add esp, 8
mov edi, eax
mov dword [ebp - 0x1a6c], edi
test edi, edi
je 0x49cbca
lea ecx, [ebp - 0x1018]
push ecx
push str.Delete_Directory_:__s_
mov ecx, edi
mov edx, 0x649e50
call fcn.004917b0
add esp, 8
jmp 0x49cbca
lea ecx, [ebp - 0x1018]
call fcn.0049c810
lea edx, [ebp - 0x1a68]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x49cad0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x49cc0f
lea ecx, [ebp - 0x818]
push ecx
call fcn.0049cc90
add esp, 4
mov edi, eax
mov dword [ebp - 0x1a6c], edi
mov dword [ebp - 4], 0xffffffff
jmp 0x49cc67
mov eax, 0x57
jmp 0x49cc69
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fa103
mov esp, ebp
pop ebp
ret
Function at 0x49d040
Capabilities:
Copy file
Delete file
Get common file path
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.004fe1a0
push 0xffffffffffffffff
push 0x51c290
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov esi, edx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x49d1cc
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x49d0a0
sub eax, edx
sar eax, 1
je 0x49d1cc
cmp esi, edi
je 0x49d1cc
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x49d0c2
sub eax, edx
sar eax, 1
je 0x49d1cc
push 0x5c
push esi
call fcn.004fa6eb
add esp, 8
mov edi, eax
test edi, edi
jne 0x49d0fd
mov dword [ebp - 0x1c], 0x57
push 0x5814b0
lea eax, [ebp - 0x1c]
push eax
call fcn.004fd5a3
mov ecx, edi
sub ecx, esi
sar ecx, 1
push ecx
push esi
push 0x400
lea edx, [ebp]
push edx
call fcn.004fa71b
push 0x800
push 0
lea eax, [ebp + 0x800]
push eax
call fcn.004fd670
add esp, 0x1c
lea ecx, [ebp + 0x800]
push ecx
push 0
push edi
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x49d155
push esi
push str._s.tmp
lea edx, [ebp + 0x800]
call fcn.00404380
add esp, 8
push 1
lea eax, [ebp + 0x800]
push eax
push esi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call edi
test eax, eax
je 0x49d194
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x49d188
push 4
push 0
lea ecx, [ebp + 0x800]
push ecx
call edi
jmp 0x49d19d
push 1
push esi
lea edx, [ebp + 0x800]
push edx
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
mov eax, 0x57
jmp 0x49d1a7
Function at 0x49d210
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.004fe1a0
push 0xffffffffffffffff
push 0x51c260
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x49d396
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x49d267
sub eax, edx
sar eax, 1
je 0x49d396
push 0x5c
push edi
call fcn.004fa6eb
add esp, 8
mov esi, eax
cmp esi, ebx
je 0x49d396
push 0x800
push ebx
lea eax, [ebp]
push eax
call fcn.004fd670
add esp, 0xc
lea ecx, [ebp]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x49d2cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
push 0x5814b0
lea edx, [ebp - 0x1c]
push edx
call fcn.004fd5a3
push 0x800
push ebx
lea eax, [ebp + 0x800]
push eax
call fcn.004fd670
add esp, 0xc
lea ecx, [ebp + 0x800]
push ecx
push ebx
add esi, 2
push esi
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x49d313
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
push 0x5814b0
lea eax, [ebp - 0x24]
push eax
call fcn.004fd5a3
push 3
lea ecx, [ebp + 0x800]
push ecx
push edi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call esi
test eax, eax
jne 0x49d340
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
push 0x5814b0
lea edx, [ebp - 0x20]
push edx
call fcn.004fd5a3
push 4
push ebx
lea eax, [ebp + 0x800]
push eax
call esi
test eax, eax
jne 0x49d367
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
push 0x5814b0
lea ecx, [ebp - 0x18]
push ecx
call fcn.004fd5a3
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
mov eax, 0x57
jmp 0x49d371
Function at 0x49d3f0
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.004fe1a0
push 0xffffffffffffffff
push 0x51c230
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x100c]
mov dword [ebp - 0x24], eax
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], 0x5c
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
cmp edx, edi
je 0x49d5d7
mov eax, edx
lea esi, [eax + 2]
jmp 0x49d460
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x49d460
sub eax, esi
sar eax, 1
je 0x49d5d7
push 0x3ff
push edx
push 0x400
lea ecx, [ebp]
push ecx
call fcn.004fa71b
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp]
push ecx
call fcn.004fa864
add esp, 0x1c
cmp eax, edi
je 0x49d5a8
push 0x3ff
push eax
push 0x400
lea edx, [ebp + 0x800]
push edx
call fcn.004fa71b
push 0x3ff
push 0x5356dc
push 0x400
lea eax, [ebp + 0x800]
push eax
call fcn.004fa558
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x18]
push edx
push edi
call fcn.004fa864
add esp, 0x2c
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, edi
cmp eax, edi
je 0x49d5a5
mov ecx, eax
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x49d500
sub ecx, esi
sar ecx, 1
je 0x49d5a5
push eax
push 0x400
lea eax, [ebp + 0x800]
push eax
call fcn.004fad44
push 0x5356dc
push 0x400
lea ecx, [ebp + 0x800]
push ecx
call fcn.004fad44
add esp, 0x18
push edi
lea edx, [ebp + 0x800]
push edx
call ebx
test eax, eax
je 0x49d584
mov ecx, dword [ebp - 0x24]
cmp ecx, edi
je 0x49d56e
push 1
mov eax, dword [ebp + 0x1010]
push eax
push 1
lea edx, [ebp + 0x800]
call fcn.0049dc10
add esp, 0xc
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.004fa864
add esp, 0xc
jmp 0x49d4f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp eax, 0xb7
je 0x49d56e
mov dword [ebp - 0x20], eax
push 0x5814b0
lea ecx, [ebp - 0x20]
push ecx
call fcn.004fd5a3
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
mov eax, 0x57
jmp 0x49d5b2
Function at 0x49d7b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51c1f0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5a4aa8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x49d88d
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x49d7f5
sub eax, edx
sar eax, 1
je 0x49d88d
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
jbe 0x49d871
push esi
call fcn.004da994
add esp, 4
mov edi, eax
test edi, edi
je 0x49d871
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, 1
jne 0x49d868
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0x5356dc
push edi
call sub.VERSION.dll_VerQueryValueW
cmp eax, 1
jne 0x49d868
push 0x34
mov edx, dword [ebp - 0x1c]
push edx
push 0x34
mov eax, dword [ebp + 8]
push eax
call fcn.004fa112
add esp, 0x10
mov dword [ebp - 0x14], 1
push edi
call fcn.004da999
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49ef00
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x519938
mov eax, dword fs:[0]
push eax
mov eax, dword [0x5a4aa8]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
mov dword [eax], vtable.Gdiplus::Image.0
xor ecx, ecx
mov dword [esp + 0xc], ecx
fld1
fst qword [eax + 0x50]
mov dword [eax], vtable.CImageEX.0
fstp qword [eax + 0x58]
mov dword [eax + 0x24], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0x30], ecx
mov byte [eax + 0x48], cl
mov dword [eax + 0x18], ecx
mov dword [eax + 0x44], ecx
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4

Function at 0x49f1d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51c180
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5a4aa8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x18], 1
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x49f2f2
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49f220
sub eax, edx
sar eax, 1
je 0x49f2f2
mov ecx, dword [ebp + 8]
call fcn.0049f340
test edi, edi
je 0x49f27b
push str.IMAGE
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x49f27b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
test eax, eax
jbe 0x49f27b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
jne 0x49f2bb
push str.IMAGE
mov eax, dword [ebp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x49f2b7
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
test eax, eax
jbe 0x49f2b7
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x49f2d4
push ebx
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
mov edx, esi
call fcn.0049f3f0
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x49f2d4
mov byte [esi + 0x48], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4a0f10
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x51da76
mov eax, dword fs:[0]
push eax
push ebp
push esi
push edi
mov eax, dword [0x5a4aa8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
test edi, edi
je 0x4a0f61
mov eax, dword [edi + 0x109a4]
test eax, eax
je 0x4a0f61
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a0f61
mov eax, dword [edi + 0x109a4]
jmp 0x4a0f63
xor eax, eax
push 0
push eax
push 0
push 0x80006
push 0
push 0
push 1
mov ecx, esi
call fcn.004e941e
mov dword [esp + 0x18], 0
lea eax, [esi + 0xb0c]
push eax
mov dword [esi], vtable.CBrowseFolderDlg.0
call fcn.004a0d40
mov byte [esp + 0x18], 1
mov ecx, esi
call fcn.004e8f47
mov ecx, esi
mov dword [eax + 0x2c], ebp
call fcn.004e8f47
push 0x800
lea ecx, [esi + 0x30c]
push 0
push ecx
mov dword [eax + 0xc], 0x569708
call fcn.004fd670
push 0x800
lea edx, [esi + 0xb6e]
push 0
push edx
call fcn.004fd670
push 0x800
lea eax, [esi + 0x136e]
push 0
push eax
call fcn.004fd670
push 0x800
lea ecx, [esi + 0x1b6e]
push 0
push ecx
call fcn.004fd670
mov edx, dword [esp + 0x58]
mov dword [esi + 0xb68], edi
add esp, 0x30
xor edi, edi
test ebp, ebp
mov dword [esi + 0xb64], edx
mov byte [esi + 0xb6c], 1
je 0x4a107d
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a1022
sub eax, edx
sar eax, 1
je 0x4a107d
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a107d
cmp byte [esi + 0xb6c], al
je 0x4a1059
mov eax, dword [esi + 0xb64]
test eax, eax
je 0x4a1059
add eax, 0xe230
je 0x4a1059
mov edi, dword [eax]
push 0
push edi
mov edx, ebp
call fcn.0049d3f0
add esp, 8
test eax, eax
jne 0x4a107d
push ebp
push str._CBrowseFolderDlg_Success_to_create_directory_:___s_
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
mov byte [esi + 0xb6d], 1
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 0xc
Function at 0x4a17f0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x51f1c1
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x5a4aa8]
xor eax, esp
mov dword [esp + 0x808], eax
push esi
mov eax, dword [0x5a4aa8]
xor eax, esp
push eax
lea eax, [esp + 0x814]
mov dword fs:[0], eax
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a1830
sub eax, edx
sar eax, 1
je 0x4a1943
push edi
lea ecx, [esp + 0xc]
call fcn.00405c00
mov esi, eax
mov dword [esp + 0x81c], 0
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4a186a
or esi, 0xffffffff
jmp 0x4a1887
push 0x5356dc
push eax
call fcn.004fa7e4
add esp, 8
test eax, eax
jne 0x4a1881
or esi, 0xffffffff
jmp 0x4a1887
sub eax, dword [esi]
sar eax, 1
mov esi, eax
mov dword [esp + 0x81c], 0xffffffff
lea ecx, [esp + 8]
call fcn.00406150
cmp esi, 0xffffffff
je 0x4a1943
test esi, esi
je 0x4a1943
push 0x800
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004fd670
add esp, 0xc
push edi
lea ecx, [esp + 0x10]
call fcn.00405c00
mov dword [esp + 0x81c], 1
add esi, 1
push esi
lea ecx, [esp + 0xc]
push ecx
mov ecx, eax
call fcn.00416140
mov byte [esp + 0x81c], 2
mov eax, dword [eax]
push 0x3ff
push eax
lea edx, [esp + 0x18]
push 0x400
push edx
call fcn.004fa71b
add esp, 0x10
mov byte [esp + 0x81c], 1
lea ecx, [esp + 8]
call fcn.00406150
mov dword [esp + 0x81c], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00406150
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, 3
neg eax
sbb eax, eax
and eax, 0xd
jmp 0x4a1948
mov eax, 0x57
mov ecx, dword [esp + 0x814]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.004fa103
add esp, 0x818
ret
Function at 0x4a57d0
Capabilities:
Create directory

Disassembly:
mov eax, 0x1820
call fcn.004fe1a0
mov eax, dword [0x5a4aa8]
xor eax, esp
mov dword [esp + 0x181c], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov edi, ecx
cmp edi, ebx
mov esi, edx
mov dword [esp + 0x18], 0x5c
mov dword [esp + 0x14], ebx
je 0x4a5951
mov eax, edi
lea edx, [eax + 2]
jmp 0x4a5810
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a5810
sub eax, edx
sar eax, 1
je 0x4a5951
cmp byte [esp + 0x1834], bl
jne 0x4a585e
push 0x5c
push edi
call fcn.004fa6eb
add esp, 8
cmp eax, ebx
je 0x4a5951
sub eax, edi
sar eax, 1
push eax
push edi
lea eax, [esp + 0x1030]
push 0x400
push eax
call fcn.004fa71b
add esp, 0x10
jmp 0x4a5874
push edi
lea ecx, [esp + 0x102c]
push 0x400
push ecx
call fcn.004fa94e
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1030]
push ecx
call fcn.004fa864
add esp, 0xc
cmp eax, ebx
je 0x4a59d5
push eax
lea edx, [esp + 0x82c]
push 0x400
push edx
call fcn.004fa94e
add esp, 0xc
push 0x5356dc
lea eax, [esp + 0x82c]
push 0x400
push eax
call fcn.004fad44
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
call fcn.004fa864
add esp, 0xc
cmp eax, ebx
je 0x4a59d3
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, eax
lea edi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x4a58f0
sub ecx, edi
sar ecx, 1
je 0x4a59d3
push eax
lea eax, [esp + 0x82c]
push 0x400
push eax
call fcn.004fad44
add esp, 0xc
push 0x5356dc
lea ecx, [esp + 0x82c]
push 0x400
push ecx
call fcn.004fad44
add esp, 0xc
push ebx
lea edx, [esp + 0x82c]
push edx
call ebp
test eax, eax
jne 0x4a596e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4a59b8
xor al, al
mov ecx, dword [esp + 0x182c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004fa103
add esp, 0x1820
ret 4
cmp esi, ebx
je 0x4a59b8
push 0x800
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.004fd670
add esp, 0xc
lea ecx, [esp + 0x828]
push ecx
lea edx, [esp + 0x24]
push 0x400
push edx
mov byte [esp + 0x82c], bl
call fcn.004fa94e
add esp, 0xc
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x824], 1
call fcn.004a5dc0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
call fcn.004fa864
add esp, 0xc
cmp eax, ebx
jne 0x4a58e7
mov bl, 1
mov al, bl
jmp 0x4a5953