joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449582
Capabilities:
Encode data using base64
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov ebx, eax
lea ecx, [ebp - 8]
mov edi, ebx
mov byte [ebp - 1], 0
call fcn.00443de7
cmp byte [ebp + 0x10], 0
jne 0x449658
cmp ebx, 0x14
jge 0x4495b6
push 0x14
pop edi
lea eax, [edi + 4]
push eax
lea ecx, [ebp - 8]
call fcn.00443e29
mov esi, dword [ebp - 8]
lea eax, [edi + 4]
push eax
push 0
push esi
call fcn.004aa020
lea eax, [ebx + 1]
push eax
push dword [ebp + 8]
push esi
call fcn.00413de4
add esp, 0x18
xor eax, eax
test ebx, ebx
jle 0x4495fa
mov cl, byte [ebp - 1]
mov edx, dword [ebp + 8]
shl cl, 1
add cl, byte [eax + edx]
inc eax
cmp eax, ebx
mov byte [ebp - 1], cl
jl 0x4495e7
mov cl, byte [ebp - 1]
shr cl, 5
mov eax, ebx
sar eax, 2
add al, cl
mov cl, byte [ebp - 1]
shl cl, 3
add al, cl
mov cl, byte [ebp - 1]
shr cl, 2
add al, cl
add al, bl
movzx eax, al
cdq
push pe_nt_image_headers32
pop ecx
idiv ecx
xor ecx, ecx
test edi, edi
mov al, byte [edx + 0x4c3808]
mov byte [ebp - 1], al
jle 0x449656
mov eax, dword [ebp - 8]
add eax, ecx
mov dword [ebp + 8], eax
mov eax, ecx
cdq
push 0x14
pop ebx
idiv ebx
mov eax, dword [ebp + 8]
mov dl, byte [edx + 0x4c384c]
xor dl, byte [eax]
xor dl, byte [ebp - 1]
inc ecx
cmp ecx, edi
mov byte [eax], dl
jl 0x449631
mov ebx, edi
lea eax, [ebx + ebx*2 + 0x10]
mov ebx, dword [ebp + 0xc]
push eax
mov ecx, ebx
call fcn.00443fa0
mov eax, dword [ebx]
xor edx, edx
push 2
mov word [eax], dx
pop ecx
add eax, ecx
mov word [eax], dx
cmp byte [esi], dl
jne 0x449681
mov esi, eax
jmp 0x44976a
cmp byte [ebp + 0x10], 0
jne 0x44969f
movzx bx, byte [ebp - 1]
mov word [eax], 0x23
add eax, ecx
mov word [eax], 0x23
add eax, ecx
mov word [eax], bx
add eax, ecx
mov word [eax], dx
movzx ebx, byte [esi]
add edi, esi
inc esi
mov byte [ebp + 0xb], 8
cmp byte [ebp + 0xb], 6
jge 0x4496bc
cmp byte [ebp + 0xb], 0
jle 0x44971e
cmp esi, edi
jne 0x449720
mov dl, bl
and dl, 0x3f
cmp byte [ebp + 0x10], 0
je 0x4496d2
movzx ecx, dl
mov cl, byte [ecx + 0x4c3808]
jmp 0x449703
test dl, dl
jne 0x4496db
add dl, 0x2b
jmp 0x449701
cmp dl, 1
jne 0x4496e5
add dl, 0x2e
jmp 0x449701
cmp dl, 0xc
jae 0x4496ef
add dl, 0x2e
jmp 0x449701
cmp dl, 0x26
jae 0x4496f9
add dl, 0x35
jmp 0x449701
cmp dl, 0x40
jae 0x449701
add dl, 0x3b
mov cl, dl
movzx cx, cl
mov word [eax], cx
inc eax
inc eax
shr ebx, 6
add byte [ebp + 0xb], 0xfa
jns 0x4496ac
mov word [eax], 0x3d
inc eax
inc eax
jmp 0x4496ac
cmp esi, edi
jae 0x449757
movzx edx, byte [esi]
mov cl, byte [ebp + 0xb]
add byte [ebp + 0xb], 8
shl edx, cl
or ebx, edx
inc esi
cmp esi, edi
jae 0x449757
movzx edx, byte [esi]
mov cl, byte [ebp + 0xb]
add byte [ebp + 0xb], 8
shl edx, cl
or ebx, edx
inc esi
cmp esi, edi
jae 0x449757
movzx edx, byte [esi]
mov cl, byte [ebp + 0xb]
shl edx, cl
or ebx, edx
inc esi
add byte [ebp + 0xb], 8
cmp byte [ebp + 0xb], 0
jg 0x4496ac
and word [eax], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
lea ecx, [ebp - 8]
call fcn.0043db4f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x449912
Capabilities:
Get file size

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x33c
lea eax, [ebp + 0x78]
push ebx
push eax
mov dword [ebp + 0x50], ecx
call fcn.0043dae7
mov dword [esp], 0x4c5094
push 5
pop eax
lea ebx, [ebp + 0x78]
mov byte [ebp + 0x6f], 0
call fcn.00443b8a
test al, al
pop ecx
je 0x449949
mov byte [ebp + 0x6f], 1
lea ecx, [ebp + 0x64]
call fcn.00443f5b
mov eax, dword [ebp + 0x78]
xor ebx, ebx
cmp word [eax], 0x3d
mov dword [ebp + 0x60], 0x4bd3f8
je 0x44997f
mov ecx, dword [ebp + 0x50]
push ebx
push 0x3d
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00438db7
mov dword [ebp + 0x78], eax
cmp word [eax], 0x3d
jne 0x44998e
inc eax
inc eax
push eax
mov dword [ebp + 0x78], eax
call fcn.00412ae5
pop ecx
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x64]
cmp word [eax], bx
jne 0x4499a3
lea ecx, [ebp + 0x64]
call fcn.0043db4f
jmp 0x449ac8
push esi
mov esi, dword [ebp + 0x60]
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edx, eax
xor eax, eax
cmp edx, ebx
mov ecx, 0x93
lea edi, [ebp - 0x2c8]
mov dword [ebp - 0x2cc], ebx
mov dword [ebp + 0x4c], edx
mov dword [ebp + 0x5c], ebx
rep stosd dword es:[edi], eax
jle 0x4499e1
mov ax, word [esi + edx*2 - 2]
cmp ax, 0x5c
je 0x449a56
cmp ax, 0x2f
je 0x449a56
lea eax, [ebp - 0x2cc]
push eax
lea eax, [ebp + 0x5c]
push esi
push eax
call fcn.004a976e
add esp, 0xc
xor esi, esi
xor edi, edi
cmp dword [ebp + 0x5c], ebx
je 0x449a95
test byte [ebp - 0x2cc], 0x10
jne 0x449a5c
test byte [ebp - 0x2cb], 4
jne 0x449a2d
cmp byte [ebp + 0x6f], bl
jg 0x449a2d
mov eax, dword [ebp - 0x2ac]
mov edi, dword [ebp - 0x2b0]
xor ecx, ecx
or esi, eax
or edi, ecx
jmp 0x449a95
push ebx
push 0x80
push 3
push ebx
push 7
push ebx
push dword [ebp + 0x60]
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x68], ebx
call fcn.0040569f
cmp dword [ebp + 0x68], ebx
jne 0x449a74
lea ecx, [ebp + 0x68]
call fcn.00402cb5
jmp 0x449a5c
mov edi, dword [ebp + 0x58]
mov esi, dword [ebp + 0x54]
cmp dword [ebp + 0x4c], 0x20e
jge 0x449a95
push dword [ebp + 0x60]
call fcn.004497b8
pop ecx
mov esi, eax
mov edi, edx
jmp 0x449a95
lea eax, [ebp + 0x54]
push eax
push dword [ebp + 0x68]
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x58], ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
mov esi, dword [ebp + 0x54]
mov edi, dword [ebp + 0x58]
lea ecx, [ebp + 0x68]
call fcn.00402cb5
push edi
lea eax, [ebp - 0x7c]
push esi
push eax
mov word [ebp - 0x7c], bx
call fcn.00497ed3
mov ecx, dword [ebp + 0x50]
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 0x64]
call fcn.00443666
lea ecx, [ebp + 0x5c]
call fcn.00402cea
lea ecx, [ebp + 0x64]
call fcn.0043db4f
pop edi
pop esi
xor eax, eax
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x44a9ef
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esi]
call fcn.0043edf6
add esp, 0x10
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
pop esi
ret
Function at 0x44be4d
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
lea ecx, [ebp - 4]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
call fcn.0040569f
cmp dword [ebp - 4], edi
je 0x44bef2
push esi
mov esi, dword [ebp + 0xc]
cmp esi, edi
mov dword [ebp - 0xc], edi
jne 0x44be8a
lea esi, [ebp - 0xc]
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, dword [ebp + 0x10]
xor ecx, ecx
cmp ebx, edi
setne cl
mov dword [esi], eax
cmp ecx, edi
mov dword [ebp - 8], ecx
je 0x44bec0
push eax
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
cmp eax, edi
mov dword [ebx], eax
je 0x44bef0
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
jmp 0x44bec7
mov ebx, eax
call fcn.0040f29d
mov ebx, eax
cmp ebx, edi
je 0x44bef0
push edi
lea eax, [ebp - 0x10]
push eax
push dword [esi]
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [ebp - 8], edi
je 0x44beee
mov eax, dword [ebp + 0x10]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov edi, ebx
pop ebx
pop esi
lea ecx, [ebp - 4]
call fcn.00402cb5
mov eax, edi
pop edi
leave
ret
Function at 0x44c6a5
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, 0x104
push edi
mov ecx, esi
call fcn.00443fa0
mov eax, dword [esi]
and word [eax], 0
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
push eax
push dword [esp + 0x18]
call edi
mov ebx, eax
test ebx, ebx
jle 0x44c6f2
mov eax, dword [esi]
cmp word [eax], 0
jne 0x44c6f2
lea eax, [ebx + 2]
push eax
mov ecx, esi
call fcn.00443fa0
inc ebx
push ebx
push dword [esi]
push dword [esp + 0x18]
call edi
pop edi
pop esi
pop ebx
ret

Function at 0x44c7b4
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push ebx
push esi
xor ebx, ebx
cmp dword [ebp + 8], ebx
push 3
pop eax
jge 0x44c868
cmp cx, 0x61
jb 0x44c7df
cmp cx, 0x7a
ja 0x44c7df
and ecx, 0xffdf
push 0x5c
pop eax
push ebx
push ebx
push 3
push ebx
push 3
mov word [ebp - 0x14], ax
mov word [ebp - 0x28], ax
mov word [ebp - 0x26], ax
mov word [ebp - 0x22], ax
push ebx
lea eax, [ebp - 0x28]
push eax
mov word [ebp - 0x18], cx
mov word [ebp - 0x16], 0x3a
mov word [ebp - 0x12], bx
mov word [ebp - 0x24], 0x2e
mov word [ebp - 0x20], cx
mov word [ebp - 0x1e], 0x3a
mov word [ebp - 0x1c], bx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x44c882
push edi
push ebx
lea eax, [ebp - 4]
push eax
push 0xc
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
push 0x2d1080
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp edi, ebx
pop edi
je 0x44c85e
mov eax, dword [ebp - 0x34]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp dword [ebp + 8], 0xffffffff
je 0x44c882
push ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call fcn.004433ac
add esp, 0xc
cmp eax, ebx
jne 0x44c88a
xor eax, eax
inc eax
jmp 0x44c929
push ebx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.SETUPAPI.DLL_CM_Get_Parent]
push ebx
push dword [ebp - 8]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.SETUPAPI.DLL_CM_Get_DevNode_Status]
mov eax, dword [ebp - 0x10]
shr eax, 0xe
and al, 1
mov byte [ebp + 0xb], al
mov dword [ebp - 4], 1
mov esi, 0x208
push ebx
push esi
cmp al, bl
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
mov word [ebp - 0x240], bx
je 0x44c8ee
call dword [sym.imp.SETUPAPI.DLL_CM_Request_Device_EjectW]
jmp 0x44c8f4
call dword [sym.imp.SETUPAPI.DLL_CM_Query_And_Remove_SubTreeW]
cmp eax, ebx
jne 0x44c8fd
cmp dword [ebp - 0xc], ebx
je 0x44c91c
push ebx
push ebx
push 0xc8
mov ecx, 0x4d80e8
call fcn.004159e8
inc dword [ebp - 4]
cmp dword [ebp - 4], 3
jg 0x44c91e
mov al, byte [ebp + 0xb]
jmp 0x44c8cb
mov bl, 1
neg bl
sbb ebx, ebx
and ebx, 0xfffffffe
inc ebx
inc ebx
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x44e2a7
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push 4
push 0x2001b
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
call fcn.0043ec4c
add esp, 0x14
cmp eax, esi
jne 0x44e3f5
test byte [ebp + 0x10], 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
je 0x44e2f4
push 0x4bca0c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegDeleteValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegQueryInfoKeyW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 8], eax
jae 0x44e322
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00443f79
cmp dword [ebp - 0xc], esi
jne 0x44e3e1
test byte [ebp + 0x10], 4
push ebx
push edi
mov edi, dword [ebp - 0x1c]
je 0x44e391
mov ebx, dword [ebp - 0x14]
dec ebx
cmp ebx, esi
jl 0x44e391
mov eax, dword [ebp - 8]
push esi
push esi
push esi
lea eax, [eax*4 + 1]
push esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push edi
push ebx
mov word [edi], si
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegEnumValueW]
cmp eax, esi
jne 0x44e38b
cmp word [edi], si
je 0x44e38e
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegDeleteValueW]
cmp eax, esi
je 0x44e38e
mov dword [ebp - 0xc], eax
dec ebx
jns 0x44e351
test byte [ebp + 0x10], 2
je 0x44e3df
mov ebx, dword [ebp - 0x18]
dec ebx
cmp ebx, esi
jl 0x44e3df
mov eax, dword [ebp - 8]
push esi
push esi
push esi
lea eax, [eax*4 + 1]
push esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push edi
push ebx
mov word [edi], si
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegEnumKeyExW]
cmp eax, esi
jne 0x44e3d9
cmp word [edi], si
je 0x44e3dc
push edi
push dword [ebp - 4]
call dword [0x4d825c]
cmp eax, esi
je 0x44e3dc
mov dword [ebp - 0xc], eax
dec ebx
jns 0x44e39f
pop edi
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
lea ecx, [ebp - 0x1c]
call fcn.0043db4f
mov eax, dword [ebp - 0xc]
pop esi
leave
ret
Function at 0x44e3f8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.0044cdaa
mov esi, dword [eax]
push 0xffffffffffffffff
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.0044cdaa
push dword [eax]
push esi
push 0x4c52fc
push 0x4d80e8
call fcn.00410a74
add esp, 0x10
lea ecx, [ebp - 4]
call fcn.0043db4f
lea ecx, [ebp - 8]
call fcn.0043db4f
mov esi, 0x4c52f0
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
push 4
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xc]
push eax
push 4
movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.DLL_RegSetValueExA]
push 0
push 0x4c52e4
push dword [ebx]
xor edi, edi
inc edi
mov dword [ebp - 0xc], edi
call esi
push 9
lea eax, [ebp - 0x18]
push eax
push 7
push 0
push 0x4c52d8
push dword [ebx]
call esi
push 9
lea eax, [ebp - 0x18]
push eax
push 7
push 0
push 0x4c52cc
push dword [ebx]
call esi
push edi
mov edi, 0x4bd7b2
push edi
push 7
push 0
push 0x4c52bc
push dword [ebx]
call esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x44e4d3
cmp byte [eax], 0x2d
jne 0x44e4b4
mov dword [ebp + 0xc], edi
cmp byte [eax], 0
je 0x44e4d3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
push dword [ebp + 0xc]
push 1
push 0
push 0x4c52b0
push dword [ebx]
call esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop esi
leave
ret
Function at 0x4504f5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp byte [0x4d8410], bl
jne 0x450673
push esi
push edi
push 0x1122
lea ecx, [ebp - 0x18]
call fcn.00443f79
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
mov dword [esi], ebx
push 0x4c5634
mov dword [esi + 4], ebx
mov word [esi], bx
push 0x4bdb60
push 0x80000002
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0xc], 0x1ffe
call fcn.0043ed07
add esp, 0x18
mov edi, eax
neg edi
sbb edi, edi
inc edi
jne 0x450568
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x45056b
mov eax, dword [ebp - 0xc]
shr eax, 1
mov word [esi + eax*2], bx
cmp word [esi], bx
jne 0x450657
lea eax, [esi + 0x2000]
push 0x104
push eax
push ebx
mov word [eax], bx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 0x4c561c
lea eax, [esi + 0x2000]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push ebx
push 0x80
push 3
push ebx
push 7
push 0x80000000
lea eax, [esi + 0x2000]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.0040569f
push ebx
lea eax, [ebp - 8]
push eax
push 0x1ffe
push esi
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
mov word [esi], bx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
shr dword [ebp - 8], 1
mov eax, 0xffe
cmp dword [ebp - 8], eax
jbe 0x4505ee
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov word [esi + eax*2], bx
cmp word [esi], 0xfeff
jne 0x450631
add esi, 2
mov dword [ebp - 4], esi
jmp 0x450631
lea eax, [ebp - 4]
push eax
call fcn.0043dae7
mov esi, dword [ebp - 4]
push 0xd
lea eax, [ebp - 4]
push 0xa
push eax
call fcn.0043e06b
push 0xa
push 0x4c5604
push esi
call fcn.0043da43
add esp, 0x1c
test al, al
jne 0x45063b
mov eax, dword [ebp - 4]
cmp word [eax], bx
jne 0x450604
jmp 0x45064f
mov eax, dword [ebp - 4]
add esi, 0x14
cmp word [eax], bx
je 0x450649
mov word [eax], bx
xor edi, edi
mov dword [ebp - 0x14], esi
inc edi
lea ecx, [ebp - 0x10]
call fcn.00402cb5
xor eax, eax
cmp edi, ebx
setne al
push eax
push dword [ebp - 0x14]
call fcn.0045046f
pop ecx
pop ecx
lea ecx, [ebp - 0x18]
call fcn.0043db4f
pop edi
pop esi
mov eax, dword [0x4d88ac]
pop ebx
leave
ret
Function at 0x450c3b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push edi
xor ebx, ebx
inc ebx
xor edi, edi
push 0x100000
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
mov word [ebp - 0x21c], di
call fcn.00443f79
cmp dword [ebp + 0x14], edi
jne 0x450c8f
lea eax, [ebp - 0x21c]
push eax
push 0x104
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov ebx, eax
cmp ebx, edi
lea eax, [ebp - 0x21c]
mov dword [ebp + 0x14], eax
je 0x450dc2
cmp dword [ebp - 4], edi
push esi
mov esi, 0xa0000000
mov dword [ebp - 0xc], edi
je 0x450ca2
mov esi, 0xe0000000
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 3
push esi
push dword [ebp + 0xc]
call dword [0x4d828c]
cmp eax, edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 8], eax
jne 0x450cf9
cmp dword [ebp - 4], 1
jne 0x450cef
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 3
and esi, 0xbfffffff
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], 2
call dword [0x4d828c]
test eax, eax
mov dword [ebp - 8], eax
je 0x450cc1
cmp dword [ebp - 8], 0
jne 0x450cf9
call edi
xor ebx, ebx
test ebx, ebx
je 0x450db2
push dword [ebp + 0x14]
push dword [ebp - 8]
call dword [0x4d8290]
mov ebx, eax
test ebx, ebx
jne 0x450d16
call edi
inc ebx
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [0x4d8294]
test eax, eax
mov dword [ebp + 0x14], eax
jne 0x450d2d
call edi
xor ebx, ebx
test ebx, ebx
je 0x450da3
cmp dword [ebp - 4], 0
mov esi, 0x400
jne 0x450d41
mov esi, 0x600
push esi
push dword [ebp + 8]
push dword [ebp + 0x14]
call dword [0x4d8298]
mov ebx, eax
call edi
test ebx, ebx
jne 0x450da3
test esi, 0x400
je 0x450d7e
cmp eax, 0x57
jne 0x450d7e
and esi, 0xfffffbff
push esi
push dword [ebp + 8]
push dword [ebp + 0x14]
call dword [0x4d8298]
mov ebx, eax
call edi
test ebx, ebx
je 0x450d56
test ebx, ebx
jne 0x450da3
cmp dword [ebp - 4], 2
jne 0x450da1
or esi, 0x200
push esi
push dword [ebp + 8]
push dword [ebp + 0x14]
call dword [0x4d8298]
mov ebx, eax
test ebx, ebx
jne 0x450da3
call edi
cmp dword [ebp + 0x14], 0
je 0x450db2
push dword [ebp + 0x14]
call dword [0x4d829c]
cmp dword [ebp - 8], 0
pop esi
je 0x450dc2
push dword [ebp - 8]
call dword [0x4d829c]
lea ecx, [ebp - 0x10]
call fcn.0043db4f
pop edi
mov eax, ebx
pop ebx
leave
ret
Function at 0x451310
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
push edi
jne 0x451342
mov ax, word [esi]
mov word [ebp - 0xc], ax
mov ax, word [esi + 2]
mov word [ebp - 0xa], ax
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x5c
mov word [ebp - 6], bx
mov dword [ebp + 0x10], eax
push 0x209
lea ecx, [ebp - 4]
call fcn.00443f79
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
push 8
push edi
push 0x4c56b0
mov word [eax], bx
call fcn.0043eeea
add esp, 0xc
test al, al
jne 0x45139b
push 0xc
push edi
push 0x4c56a0
call fcn.0043eeea
add esp, 0xc
test al, al
jne 0x45139b
cmp word [edi], bx
je 0x45139f
cmp word [edi + 2], bx
je 0x45139f
push 0x3a
lea eax, [edi + 4]
push eax
call dword [sym.imp.SHLWAPI.DLL_StrChrW]
test eax, eax
je 0x45139f
or dword [ebp + 0x14], 1
push 0xb
push edi
push 0x4c5694
call fcn.0043eeea
mov ebx, dword [sym.imp.KERNEL32.DLL_DefineDosDeviceW]
add esp, 0xc
test al, al
je 0x4513c3
and dword [ebp + 0x14], 0xfffffffe
cmp byte [ebp + 0x18], 0
jne 0x4513ea
cmp byte [ebp + 0x18], 0
je 0x4513d5
xor eax, eax
mov ax, word [esi]
push eax
call fcn.004411fd
pop ecx
push edi
push esi
push dword [ebp + 0x14]
call ebx
mov esi, eax
test esi, esi
jne 0x4513fb
cmp byte [ebp + 0x18], al
jl 0x451447
mov byte [ebp + 0x18], al
push 0x208
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_lstrcpynW]
jmp 0x451423
cmp byte [ebp + 0x18], 0
jle 0x451447
push 0x208
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x451447
mov eax, dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
or eax, 0xe
push eax
call ebx
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_SetVolumeMountPointW]
cmp byte [ebp + 0x18], 0
mov esi, eax
jl 0x451447
test esi, esi
jne 0x451447
mov esi, dword [ebp + 0xc]
mov byte [ebp + 0x18], 0xff
jmp 0x4513c3
lea ecx, [ebp - 4]
call fcn.0043db4f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x452355
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
mov esi, 0x200
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004aa130
and dword [ebp - 0xc], 0
push esi
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
call fcn.0044132f
cmp eax, esi
pop ecx
pop ecx
jl 0x452391
mov esi, eax
mov dword [ebp - 8], esi
jmp 0x452394
mov dword [ebp - 8], esi
lea eax, [esi + esi + 0x200]
push eax
lea ecx, [ebp - 4]
call fcn.00443e04
mov edi, dword [ebp - 4]
push 0
push dword [ebp + 0x10]
add edi, 0x200
push dword [ebp + 0xc]
and edi, 0xfffffe00
push dword [ebp + 8]
lea ebx, [edi + esi]
call fcn.0043edf6
add esp, 0x10
cmp eax, dword [ebp + 0xc]
jne 0x45246f
cmp edx, dword [ebp + 0x10]
jne 0x45246f
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x45246f
push esi
push ebx
push edi
call fcn.00413de4
mov esi, dword [ebp + 0x18]
add esp, 0xc
cmp esi, 1
jne 0x452417
push 0x10
push dword [ebp + 0x14]
lea eax, [ebx + 0x1ce]
push eax
call fcn.00413de4
add esp, 0xc
dec esi
push 0
push dword [ebp + 0x10]
neg esi
push dword [ebp + 0xc]
sbb esi, esi
push dword [ebp + 8]
and esi, 0xffff55ab
add esi, 0xaa55
mov word [ebx + 0x1fe], si
call fcn.0043edf6
add esp, 0x10
cmp eax, dword [ebp + 0xc]
jne 0x45246f
cmp edx, dword [ebp + 0x10]
jne 0x45246f
push dword [ebp - 8]
push ebx
push edi
call fcn.0044422d
add esp, 0xc
test eax, eax
jne 0x45246f
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea ecx, [ebp - 4]
call fcn.0043db4f
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret