joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e8d14
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4e8e2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x53f320], 0x808
lea edx, [ebp - 8]
mov eax, 0xfb
call fcn.004ab8e8
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0xc]
mov edx, 0x549464
mov ecx, 0x105
call fcn.00404820
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
pop ecx
call fcn.004048d8
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00404e90
mov eax, dword [ebp - 0x10]
mov dx, 0xffff
call fcn.0046e0d4
mov ebx, eax
test ebx, ebx
je 0x4e8df4
mov ecx, dword [esi + 4]
sub ecx, 0x20
lea edx, [esi + 0x20]
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, ebx
call fcn.004037ac
mov eax, 0xc8
call fcn.004d9234
push 1
push 0x4e8e38
push 0x4e8e44
push dword [ebp - 4]
push 0x4e8e54
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.0040494c
mov eax, dword [ebp - 0x14]
call fcn.00404a84
push eax
lea edx, [ebp - 0x18]
mov eax, 0x62
call fcn.004ab8e8
mov eax, dword [ebp - 0x18]
call fcn.00404a84
push eax
push 0x4e8e58
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
mov dword [0x53f320], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8e32
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004045dc
lea eax, [ebp - 0x10]
call fcn.00404cf0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004045dc
ret

Function at 0x4e94fc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4e95f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x53f320], 0x80d
call sub.user32.dll_GetForegroundWindow
mov dword [ebx], eax
push 0x7f
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebx]
push eax
call sub.user32.dll_GetClassNameA
test eax, eax
jle 0x4e959e
lea edx, [ebp - 4]
lea eax, [ebp - 0x88]
call fcn.00409f74
push 0x7f
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebx]
push eax
call sub.user32.dll_GetWindowTextA
test eax, eax
jle 0x4e9579
lea edx, [ebp - 8]
lea eax, [ebp - 0x88]
call fcn.00409f74
jmp 0x4e9581
lea eax, [ebp - 8]
call fcn.004045b8
push dword [ebp - 4]
push 0x4e9614
push dword [ebp - 8]
push 0x4e9620
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040494c
xor esi, esi
mov edi, 0x53fb98
cmp esi, 3
jl 0x4e95bb
mov edx, dword [ebp - 4]
mov eax, dword [edi]
call fcn.00404bc8
test eax, eax
setg bl
jmp 0x4e95c8
mov eax, dword [edi]
mov edx, dword [ebp - 4]
call fcn.004049d0
sete bl
test bl, bl
jne 0x4e95de
inc esi
add edi, 4
cmp esi, 4
jne 0x4e95a5
xor ebx, ebx
xor eax, eax
mov dword [0x53f320], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e9600
lea eax, [ebp - 8]
mov edx, 2
call fcn.004045dc
ret
Function at 0x4ebbb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ebd13
push dword fs:[eax]
mov dword fs:[eax], esp
cmp word [0x549578], 0
jbe 0x4ebc26
mov ax, word [0x53f378]
cmp ax, word [0x549578]
jb 0x4ebc26
mov eax, dword [0x53f338]
mov dword [0x53f368], eax
mov eax, dword [0x53f33c]
mov dword [0x53f36c], eax
mov word [0x53f378], 0
mov eax, dword [ebx + 0x314]
call fcn.0047cbb0
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.004ef598
mov dl, 1
mov ax, 2
call fcn.004d98c0
jmp 0x4ebcfd
cmp word [0x54957a], 0
jbe 0x4ebc94
mov ax, word [0x53f378]
cmp ax, word [0x54957a]
jb 0x4ebc94
mov eax, dword [0x53f338]
mov dword [0x53f368], eax
mov eax, dword [0x53f33c]
mov dword [0x53f36c], eax
mov word [0x53f378], 0
cmp dword [0x54957c], 0
je 0x4ebc94
lea eax, [ebp - 4]
mov ecx, dword [0x54957c]
mov edx, 0x4ebd28
call fcn.004048d8
lea eax, [ebp - 4]
call fcn.004db564
push 0
lea eax, [ebp - 4]
call fcn.00404adc
push eax
call sub.kernel32.dll_WinExec
cmp word [0x549580], 0
jbe 0x4ebcfd
mov ax, word [0x53f378]
cmp ax, word [0x549580]
jb 0x4ebcfd
mov eax, dword [0x53f338]
mov dword [0x53f368], eax
mov eax, dword [0x53f33c]
mov dword [0x53f36c], eax
mov word [0x53f378], 0
cmp dword [0x549584], 0
je 0x4ebcfd
lea eax, [ebp - 4]
mov edx, dword [0x549584]
call fcn.00404650
lea eax, [ebp - 4]
call fcn.004db564
push 0
lea eax, [ebp - 4]
call fcn.00404adc
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ebd1a
lea eax, [ebp - 4]
call fcn.004045b8
ret
Function at 0x4f1fb8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
xor eax, eax
push ebp
push 0x4f216e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x53f320], 0x82d
cmp byte [0x53f3cc], 0
jne 0x4f201a
cmp byte [0x53f3d0], 0
jne 0x4f201a
mov eax, dword [0x5495d8]
call fcn.0046dd44
test al, al
je 0x4f201a
push 1
push 0x4f217c
push 0x4f2180
mov eax, dword [0x5495d8]
call fcn.00404a84
push eax
push 0x4f2184
push 0
call sub.shell32.dll_ShellExecuteA
mov eax, dword [0x5495cc]
call fcn.0046dd44
test al, al
je 0x4f214c
mov cl, 1
mov dl, 1
mov eax, dword [0x4b15c0]
call fcn.004b19c4
mov dword [0x53f3f4], eax
mov eax, dword [0x53f3f4]
mov edx, dword [0x4b15c0]
call fcn.0040395c
add eax, 0x30
push eax
lea edx, [ebp - 4]
mov eax, 0x10e
call fcn.004ab8e8
mov edx, dword [ebp - 4]
pop eax
call fcn.0040460c
mov eax, dword [0x53f3f4]
mov edx, dword [0x4b15c0]
call fcn.0040395c
mov byte [eax + 0x34], 0
mov eax, dword [0x53f3f4]
call fcn.0041f638
cmp dword [0x5495a4], 0
jne 0x4f20a5
lea eax, [ebp - 8]
call fcn.00471448
mov edx, dword [ebp - 8]
mov eax, 0x5495a4
call fcn.0040460c
cmp dword [0x5495a4], 0
je 0x4f20fd
mov cl, 1
mov dl, 1
mov eax, dword [0x4b15c0]
call fcn.004b19c4
mov dword [0x53f3f8], eax
mov eax, dword [0x53f3f8]
mov edx, dword [0x4b15c0]
call fcn.0040395c
add eax, 0x30
mov edx, dword [0x5495a4]
call fcn.0040460c
mov eax, dword [0x53f3f8]
mov edx, dword [0x4b15c0]
call fcn.0040395c
mov byte [eax + 0x34], 1
mov eax, dword [0x53f3f8]
call fcn.0041f638
mov cl, 1
mov dl, 1
mov eax, dword [0x4b15c0]
call fcn.004b19c4
mov dword [0x53f3fc], eax
mov eax, dword [0x53f3fc]
mov edx, dword [0x4b15c0]
call fcn.0040395c
add eax, 0x30
mov edx, dword [0x54959c]
call fcn.0040460c
mov eax, dword [0x53f3fc]
mov edx, dword [0x4b15c0]
call fcn.0040395c
mov byte [eax + 0x34], 2
mov eax, dword [0x53f3fc]
call fcn.0041f638
xor eax, eax
mov dword [0x53f320], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f2175
lea eax, [ebp - 8]
mov edx, 2
call fcn.004045dc
ret
Function at 0x4f289c
Capabilities:
Enumerate gui resources
Get graphical window text
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff74
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404a74
xor eax, eax
push ebp
push 0x4f298f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x414568]
call fcn.0040377c
mov edi, eax
push edi
push 0x4f23fc
call sub.user32.dll_EnumWindows
mov ebx, dword [edi + 8]
dec ebx
test ebx, ebx
jl 0x4f2972
inc ebx
xor esi, esi
push 0x7f
lea eax, [ebp - 0x8c]
push eax
mov edx, esi
mov eax, edi
call fcn.00416e84
push eax
call sub.user32.dll_GetWindowTextA
test eax, eax
jle 0x4f296a
lea eax, [ebp - 4]
call fcn.00404adc
mov edx, eax
lea eax, [ebp - 0x8c]
call fcn.00409e38
test eax, eax
jne 0x4f296a
lea eax, [ebp - 8]
push eax
mov edx, esi
mov eax, edi
call fcn.00416e84
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor edx, edx
cmp edx, 0xffffffff
jne 0x4f294e
cmp eax, 0xffffffff
je 0x4f296a
cmp dword [ebp - 0xc], 0
je 0x4f296a
push 0x31
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
inc esi
dec ebx
jne 0x4f28e9
mov eax, edi
call fcn.004037ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f2996
lea eax, [ebp - 4]
call fcn.004045b8
ret

Function at 0x4f29a0
Capabilities:
Terminate process

Disassembly:
push ebx
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov ebx, eax
mov eax, ebx
xor edx, edx
cmp edx, 0xffffffff
jne 0x4f29b9
cmp eax, 0xffffffff
je 0x4f29cd
test ebx, ebx
je 0x4f29cd
push 0x31
push ebx
call sub.kernel32.dll_TerminateProcess
push ebx
call sub.kernel32.dll_CloseHandle_1
pop ebx
ret
Function at 0x4f3c2c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
mov dword [0x53f320], 0x834
lea eax, [ebp - 0x118]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x118]
push eax
push 0xff
call sub.kernel32.dll_GetLogicalDriveStringsA
test eax, eax
je 0x4f3d4a
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
and al, 0xdf
mov bl, al
cmp bl, 0x41
jb 0x4f3d43
cmp bl, 0x43
jb 0x4f3d25
mov esi, ebx
and esi, 0xff
cmp byte [esi + 0x5497a5], 3
je 0x4f3d25
xor eax, eax
push ebp
push 0x4f3d1b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetDriveTypeA
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 5
jne 0x4f3ccb
mov byte [esi + 0x5497a5], 3
jmp 0x4f3ce9
cmp byte [ebp - 0xd], 3
jne 0x4f3ce9
mov eax, ebx
call fcn.00471d58
test al, al
jne 0x4f3ce5
mov byte [esi + 0x5497a5], 3
jmp 0x4f3ce9
mov byte [ebp - 0xd], 2
cmp byte [ebp - 0xd], 2
jne 0x4f3d11
mov eax, ebx
sub al, 0x41
inc eax
call fcn.00409c64
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
add eax, dword [ebp - 0x18]
adc edx, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f3d25
mov eax, dword [ebp - 0xc]
call fcn.00409d38
inc eax
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
and al, 0xdf
mov bl, al
cmp bl, 0x41
jae 0x4f3c84
xor eax, eax
mov dword [0x53f320], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f4bac
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
xor eax, eax
push ebp
push 0x4f4dbc
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x53f320], 0x841
xor eax, eax
mov dword [ebp - 8], eax
push 0
push 4
push 2
push 1
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [0x53fa5c]
cmp eax, 0x7a
jne 0x4f4da1
mov eax, dword [ebp - 8]
call fcn.00408d98
mov dword [ebp - 4], eax
mov eax, dword [0x549800]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x549804]
mov edx, dword [eax]
call dword [edx + 8]
push 0
push 4
push 2
push 1
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [0x53fa5c]
test eax, eax
jne 0x4f4cc2
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
dec ebx
test ebx, ebx
jl 0x4f4cc2
inc ebx
xor esi, esi
lea eax, [esi + esi*2]
mov edx, dword [ebp - 4]
lea edi, [edx + eax*8 + 4]
cmp dword [edi + 0xc], 0
je 0x4f4cbe
cmp dword [edi + 0x14], 0
je 0x4f4cbe
mov eax, dword [edi]
cmp eax, 3
je 0x4f4c6d
cmp eax, 4
je 0x4f4c6d
cmp eax, 5
jne 0x4f4cbe
mov edx, dword [edi + 0x14]
mov eax, dword [0x549800]
call fcn.00416ee0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x4f4ca2
mov edx, dword [ebp - 0xc]
mov eax, dword [0x549804]
call fcn.00416e84
mov ecx, eax
inc ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [0x549804]
call fcn.00416fd0
jmp 0x4f4cbe
mov edx, dword [edi + 0x14]
mov eax, dword [0x549800]
call fcn.00416d28
mov edx, 1
mov eax, dword [0x549804]
call fcn.00416d28
inc esi
dec ebx
jne 0x4f4c46
mov eax, dword [ebp - 4]
call fcn.004027dc
mov eax, dword [0x549800]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4f4d9a
inc ebx
xor esi, esi
mov edx, esi
mov eax, dword [0x549804]
call fcn.00416e84
cmp eax, 8
jbe 0x4f4d92
mov edx, esi
mov eax, dword [0x549800]
call fcn.00416e84
mov edi, eax
xor eax, eax
call fcn.004b44f4
mov dword [0x53fc3c], eax
mov eax, edi
call fcn.004f2414
test al, al
jne 0x4f4d92
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.004b49f4
push edi
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
test eax, eax
je 0x4f4d43
cmp eax, 0xffffffff
je 0x4f4d43
push 0x1111
push eax
call sub.kernel32.dll_TerminateProcess
cmp dword [0x53f41c], 0
je 0x4f4d92
cmp dword [ebp - 0x10], 0
je 0x4f4d92
push 0
lea edx, [ebp - 0x14]
mov eax, 0xec
call fcn.004ab8e8
mov eax, dword [ebp - 0x14]
call fcn.00404a84
push eax
lea edx, [ebp - 0x18]
mov eax, 0x25
call fcn.004ac178
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
call fcn.00404894
mov eax, dword [ebp - 0x18]
call fcn.00404a84
push eax
push 0
call sub.user32.dll_MessageBoxA_1
inc esi
dec ebx
jne 0x4f4cde
xor eax, eax
mov dword [0x53f320], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f4dc3
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004045dc
ret
Function at 0x4f4e14
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
xor eax, eax
push ebp
push 0x4f4fae
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x53f320], 0x845
cmp dword [0x53fa70], 0
je 0x4f4f28
push 0
push 0x1388
mov eax, dword [0x53f338]
mov edx, dword [0x53f33c]
call fcn.00405a30
cmp edx, 0
jne 0x4f4f28
cmp eax, 0x4b0
jne 0x4f4f28
cmp dword [0x53fbb8], 0
jne 0x4f4e85
mov dl, 1
mov eax, dword [0x470804]
call fcn.0040377c
mov dword [0x53fbb8], eax
mov eax, dword [0x53f45c]
call fcn.00404ea0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x4f4ead
mov eax, dword [0x53f45c]
push eax
mov eax, dword [0x53fa70]
push eax
call fcn.0046de68
jmp 0x4f4f28
test al, 6
je 0x4f4ec5
push 0x20
mov eax, dword [0x53f45c]
call fcn.00404ea0
push eax
call sub.kernel32.dll_SetFileAttributesW
jmp 0x4f4e9a
push 0xa
mov eax, dword [0x53f45c]
push eax
mov eax, dword [0x53fbb8]
push eax
call fcn.0046df20
test al, al
je 0x4f4e9a
mov eax, dword [0x53fbb8]
call fcn.004196f0
push edx
push eax
mov eax, dword [0x53fa70]
call fcn.004196f0
cmp edx, dword [esp + 4]
jne 0x4f4efb
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4f4e9a
mov eax, dword [0x53fbb8]
call fcn.004196f0
mov ecx, eax
mov eax, dword [0x53fa70]
mov edx, dword [eax + 4]
mov eax, dword [0x53fbb8]
mov eax, dword [eax + 4]
call fcn.00471e90
test eax, eax
jne 0x4f4e9a
cmp dword [0x53f430], 0
jle 0x4f4f91
sub dword [0x53f430], 0xc8
cmp dword [0x53f430], 0
jg 0x4f4f98
mov dword [0x53f430], 0x4e20
lea eax, [ebp - 4]
mov edx, dword [0x54962c]
call fcn.00404650
xor ebx, ebx
call fcn.004e9624
test al, al
jne 0x4f4f69
mov bl, 1
mov eax, dword [ebp - 4]
call fcn.004e97bc
cmp eax, 2
je 0x4f4f7f
cmp dword [0x53fba8], 3
jle 0x4f4f86
mov bl, 1
call fcn.004e96dc
mov dl, 1
mov eax, ebx
call fcn.004e99e4
jmp 0x4f4f98
xor eax, eax
mov dword [0x53f320], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f4fb5
lea eax, [ebp - 4]
call fcn.004045b8
ret
Function at 0x4f5038
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
xor edx, edx
push ebp
push 0x4f519b
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [0x53f320], 0x847
cmp al, byte [0x53fc64]
je 0x4f5179
mov byte [0x53fc64], al
cmp dword [0x5499f4], 0
jne 0x4f5087
mov dl, 1
mov eax, dword [0x414568]
call fcn.0040377c
mov dword [0x5499f4], eax
mov eax, dword [0x5499f4]
mov eax, dword [eax + 8]
test eax, eax
jle 0x4f50bd
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4f50b3
inc ebx
xor esi, esi
mov edx, esi
mov eax, dword [0x5499f4]
call fcn.00416e84
push eax
call sub.kernel32.dll_CloseHandle_1
inc esi
dec ebx
jne 0x4f509d
mov eax, dword [0x5499f4]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x54956c]
mov al, byte [eax]
mov byte [ebp - 1], al
mov eax, dword [0x540c9c]
mov eax, dword [eax]
mov al, byte [eax]
mov byte [ebp - 2], al
cmp byte [0x53fc64], 0
je 0x4f5179
mov bl, 0x41
cmp bl, byte [ebp - 1]
je 0x4f516f
cmp bl, byte [ebp - 2]
je 0x4f516f
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00404798
lea eax, [ebp - 0xc]
mov edx, 0x4f51b0
call fcn.00404894
mov eax, dword [ebp - 0xc]
call fcn.00404a84
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x4f516f
lea edx, [ebp - 0x10]
mov eax, 0x7d
call fcn.004ab8e8
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.00404798
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 8]
pop ecx
call fcn.004048d8
push 0
push 0x22
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 8]
call fcn.00404adc
push eax
call sub.kernel32.dll_CreateFileA_1
cmp eax, 0xffffffff
je 0x4f516f
mov edx, eax
mov eax, dword [0x5499f4]
call fcn.00416d28
inc ebx
cmp bl, 0x5b
jne 0x4f50e2
xor eax, eax
mov dword [0x53f320], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f51a2
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.004045dc
ret

Function at 0x4f5634
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a74
mov eax, dword [ebp - 8]
call fcn.00404a74
xor eax, eax
push ebp
push 0x4f56de
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0046de04
mov esi, eax
mov eax, dword [ebp - 8]
call fcn.0046de04
cmp esi, eax
jne 0x4f5697
mov eax, dword [ebp - 4]
call fcn.00470ab8
push edx
push eax
mov eax, dword [ebp - 8]
call fcn.00470ab8
cmp edx, dword [esp + 4]
jne 0x4f5693
cmp eax, dword [esp]
pop edx
pop eax
je 0x4f56c3
mov edx, 0x20
mov eax, dword [ebp - 8]
call fcn.0040986c
push 0
lea eax, [ebp - 8]
call fcn.00404adc
push eax
lea eax, [ebp - 4]
call fcn.00404adc
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f56e5
lea eax, [ebp - 8]
mov edx, 2
call fcn.004045dc
ret
Function at 0x4fc9a8
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a74
mov eax, dword [ebp - 8]
call fcn.00404a74
xor eax, eax
push ebp
push 0x4fca4c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0046de04
mov ebx, eax
mov eax, dword [ebp - 8]
call fcn.0046de04
mov ecx, eax
test ecx, ecx
jle 0x4fca2f
test ebx, ebx
jle 0x4fca0e
mov eax, ecx
sub eax, ebx
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jg 0x4fca01
mov bl, 1
jmp 0x4fca31
mov edx, 0x20
mov eax, dword [ebp - 4]
call fcn.0040986c
push 0
lea eax, [ebp - 4]
call fcn.00404adc
push eax
lea eax, [ebp - 8]
call fcn.00404adc
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4fca31
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fca53
lea eax, [ebp - 8]
mov edx, 2
call fcn.004045dc
ret
Function at 0x4048a0
Capabilities:
Check if file exists
Create directory
Get disk information
Get file attributes

Disassembly:
sub esp, 0x210
mov eax, dword [0x4571dc]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [esp + 0x218]
push edi
push 0x20a
lea eax, [esp + 0xc]
push 0
push eax
mov edi, ecx
call fcn.00428a10
push esi
lea ecx, [esp + 0x18]
push 0x104
push ecx
call fcn.0042955d
lea edx, [esp + 0x20]
push 0x5c
push edx
call fcn.00428cb0
add esp, 0x20
test eax, eax
jne 0x40491a
lea eax, [esp + 8]
push 0x3a
push eax
call fcn.00428cb0
add esp, 8
test eax, eax
je 0x40491f
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
neg eax
sbb eax, eax
neg eax
jmp 0x404959
xor edx, edx
mov word [eax], dx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40494e
lea ecx, [esp + 8]
push ecx
mov ecx, edi
call fcn.004048a0
test eax, eax
je 0x404959
push 0
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x404959
and al, 0x10
xor ecx, ecx
cmp al, 0x10
sete cl
mov eax, ecx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
call fcn.00428852
add esp, 0x210
ret 4

Function at 0x404980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x444188
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x4571dc]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
lea ecx, [esp + 8]
call fcn.004165c0
mov esi, dword [esp + 0x34]
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.00416160
test eax, eax
je 0x4049fd
push 3
push esi
lea ecx, [esp + 0x10]
call fcn.004162a0
test eax, eax
jne 0x4049fd
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004165d0
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret 4
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004165d0
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret 4
Function at 0x4080c0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x4443ab
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4571dc]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push edi
mov eax, dword [0x4571dc]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov esi, dword [esp + 0x230]
push 0x20a
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00428a10
add esp, 0xc
push 0
push 7
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edx, edx
test eax, eax
setge dl
mov edi, edx
test edi, edi
jne 0x408145
push 0x20a
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00428a10
add esp, 0xc
lea eax, [esp + 0x10]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408150
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00401610
mov eax, dword [esi]
push 0x5c
push eax
call fcn.00428cb0
add esp, 8
test eax, eax
jne 0x408182
or eax, 0xffffffff
jmp 0x408186
sub eax, dword [esi]
sar eax, 1
mov ecx, dword [esi]
mov edx, dword [ecx - 0xc]
dec edx
cmp edx, eax
jne 0x4081df
mov eax, dword [ecx - 0xc]
dec eax
push eax
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00402470
push eax
mov ecx, esi
mov dword [esp + 0x22c], 0
call fcn.00401770
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x228], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4081df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00428852
add esp, 0x220
ret 4

Function at 0x409b20
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x210
mov eax, dword [0x4571dc]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
mov esi, dword [esp + 0x21c]
push edi
push 0x20a
lea eax, [esp + 0x10]
push 0
push eax
mov ebx, ecx
call fcn.00428a10
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
add esp, 0xc
push 0x103
lea ecx, [esp + 0x10]
push ecx
push str._TEMP_
call edi
test eax, eax
jne 0x409b84
push 0x103
lea edx, [esp + 0x10]
push edx
push str._TMP_
call edi
test eax, eax
je 0x409be0
lea eax, [esp + 0xc]
lea edx, [eax + 2]
jmp 0x409b90
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409b90
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00401610
push 1
push 0x44764c
mov ecx, esi
call fcn.004024f0
push 3
push 0x447a48
mov ecx, esi
call fcn.004024f0
push 1
push 0x44764c
mov ecx, esi
call fcn.004024f0
mov esi, dword [esi]
push esi
mov ecx, ebx
call fcn.004048a0
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00428852
add esp, 0x210
ret 4