joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b626
Capabilities:
Get storage device properties

Disassembly:
push 0x28
mov eax, 0x6732e5
call fcn.00626979
mov si, cx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
call fcn.00424649
push eax
lea ecx, [ebp - 0x14]
call fcn.0041b814
mov dword [ebp - 4], ebx
lea edi, [ebp - 0x20]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
xor eax, eax
inc eax
mov byte [ebp - 4], al
movzx eax, si
push eax
lea eax, [ebp - 0x14]
push str.__c:
push eax
call fcn.0041c0ba
mov esi, dword [ebp - 0x14]
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
je 0x45b6e8
push 0x229
lea ecx, [ebp - 0x20]
call fcn.0041b592
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push ebx
push eax
mov ecx, 0x228
lea eax, [ebp - 0x30]
push ecx
push edi
push 0xc
push eax
push 0x2d1400
push dword [ebp - 0x34]
mov dword [edi + 4], ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x45b6df
cmp dword [edi + 0x1c], 7
push 1
pop eax
cmove ebx, eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x20]
call fcn.0041b94f
lea ecx, [esi - 0x10]
call fcn.0042470b
mov eax, ebx
call fcn.00626923
ret

Function at 0x45b700
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x67331a
call fcn.00626979
mov si, cx
xor edi, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x20], edi
call fcn.00424649
push eax
lea ecx, [ebp - 0x20]
call fcn.0041b814
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
movzx eax, si
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push str._c:_test.tmp
push eax
call fcn.0041c0ba
mov esi, dword [ebp - 0x20]
mov dword [esp], 0x4000000
push 2
push ecx
push 0xc0000000
push esi
lea ecx, [ebp - 0x1c]
call fcn.00419a90
test eax, eax
jne 0x45b7d4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
push 4
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x45b78c
call fcn.0042984c
jmp 0x45b78e
xor eax, eax
test eax, eax
jne 0x45b7d7
push eax
push ecx
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00436659
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00419ae0
test eax, eax
jne 0x45b7d4
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
jne 0x45b7d4
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], 1
je 0x45b7e2
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x45b7d7
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x45b7e2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.0042470b
mov eax, dword [ebp - 0x30]
call fcn.00626923
ret
Function at 0x45bf5f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x70b034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x3c]
push esi
push edi
push 0x38
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.0063e4e0
and dword [ebp - 0x38], 0
add esp, 0xc
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x34], str.open
jb 0x45bfa3
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x30], edi
jb 0x45bfae
mov esi, dword [esi]
xor ecx, ecx
mov dword [ebp - 0x2c], esi
cmp byte [ebp + 8], cl
push 5
pop eax
cmovne eax, ecx
mov dword [ebp - 0x3c], 0x540
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x45bfd8
xor al, al
jmp 0x45c002
cmp dword [ebp - 8], 0
je 0x45c000
test ebx, ebx
je 0x45c000
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00625788
mov esp, ebp
pop ebp
ret

Function at 0x45c4eb
Capabilities:
Get file version info

Disassembly:
push 0x14
mov eax, 0x673496
call fcn.00626979
mov esi, ecx
xor ecx, ecx
xorps xmm0, xmm0
cmp dword [esi + 0x14], 8
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
jb 0x45c513
mov eax, dword [esi]
jmp 0x45c515
mov eax, esi
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x45c587
push edi
call fcn.0064388e
mov ebx, eax
pop ecx
test ebx, ebx
je 0x45c587
push edi
push 0
push ebx
call fcn.0063e4e0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x45c544
mov esi, dword [esi]
push ebx
push edi
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x45c578
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x6d4cb8
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x45c578
mov eax, dword [ebp - 0x18]
xor esi, esi
mov edi, dword [eax + 8]
or esi, dword [eax + 0xc]
jmp 0x45c57e
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
push ebx
call fcn.00643448
pop ecx
jmp 0x45c58d
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov eax, esi
mov edx, edi
call fcn.00626923
ret
Function at 0x45c628
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x70b034]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
xor ebx, ebx
xor esi, esi
push 0xc
push ebx
push eax
mov dword [ebp - 0xc], ebx
inc esi
call fcn.0063e4e0
push 0xc
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], ebx
push ebx
push eax
mov dword [ebp - 0x18], 8
mov dword [ebp - 0xc], ebx
call fcn.0063e4e0
add esp, 0x18
lea eax, [ebp - 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push eax
push 0xc
lea eax, [ebp - 0x30]
push eax
push 0xc
lea eax, [ebp - 0x18]
push eax
push 0x2d1400
push edi
call ebx
test eax, eax
je 0x45c6a0
cmp dword [ebp - 0xc], 0xc
jne 0x45c6a0
movzx eax, byte [ebp - 0x28]
and esi, eax
push 0xc
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.0063e4e0
xor eax, eax
mov dword [ebp - 0x24], 7
push 0xc
push eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0063e4e0
add esp, 0x18
lea eax, [ebp - 0xc]
push 0
push eax
push 0xc
lea eax, [ebp - 0x3c]
push eax
push 0xc
lea eax, [ebp - 0x24]
push eax
push 0x2d1400
push edi
call ebx
test eax, eax
je 0x45c6f9
cmp dword [ebp - 0xc], 0xc
jne 0x45c6f9
xor eax, eax
cmp byte [ebp - 0x34], al
sete al
and esi, eax
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x264]
push 0x228
push 0
push eax
call fcn.0063e4e0
add esp, 0xc
mov dword [ebp - 0x258], 5
mov dword [ebp - 0x25c], 0x200
mov byte [ebp - 0x23e], 0xec
push 0x28
pop eax
push 2
pop ecx
push 0
mov word [ebp - 0x264], ax
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0x262], cx
lea eax, [ebp - 0x264]
mov ecx, 0x228
push ecx
push eax
push ecx
push eax
push 0x4d02c
push edi
call ebx
test eax, eax
je 0x45c782
cmp dword [ebp - 0xc], 0x228
jne 0x45c782
push 2
pop eax
cmp word [ebp - 0x8a], ax
sbb ecx, ecx
neg ecx
and esi, ecx
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00625788
mov esp, ebp
pop ebp
ret 4
Function at 0x45c797
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x70b034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6d9efc]
and dword [ebp - 0x1c], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ax, word [0x6d9f00]
mov word [ebp - 8], ax
xor eax, eax
and dword [ebx + 4], eax
push esi
mov word [ebx], ax
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0045d025
mov edi, dword [ebp - 0x24]
mov esi, dword [edi + 0xc]
mov edi, dword [edi + 0x10]
jmp 0x45c834
movzx eax, word [esi]
push 8
mov dword [ebp - 0x20], eax
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.0063e4e0
add esp, 0xc
lea eax, [ebp - 0x18]
push 0
push 0
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x45c831
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
shrd ecx, eax, 0x1e
shr eax, 0x1e
cmp dword [ebp - 0x1c], ecx
jae 0x45c831
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
mov word [ebx], ax
mov dword [ebx + 4], ecx
add esi, 2
cmp esi, edi
jne 0x45c7e3
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00625788
mov esp, ebp
pop ebp
ret 8

Function at 0x45c95e
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x70b034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
movzx eax, cx
xor esi, esi
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], esi
push str.._c:
push eax
call fcn.0045cdcb
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push esi
push 3
push esi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x45ca0b
push 0xc
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.0063e4e0
add esp, 0xc
lea eax, [ebp - 0x210]
push esi
push eax
push 0xc
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push 0x2d1080
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x45ca0b
cmp dword [ebp - 0x210], 0xc
jne 0x45ca0b
mov eax, dword [ebp - 0x218]
mov dword [ebx], eax
xor eax, eax
inc eax
jmp 0x45ca0d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00625788
mov esp, ebp
pop ebp
ret 4
Function at 0x45ca20
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x70b034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6d9efc]
push ebx
push esi
mov dword [ebp - 0xc], eax
xor esi, esi
mov ax, word [0x6d9f00]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], esi
mov word [ebp - 8], ax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
test ebx, ebx
je 0x45cabf
push edi
xor edi, edi
mov ecx, esi
inc edi
shl edi, cl
test edi, ebx
je 0x45cab5
lea eax, [esi + 0x41]
movzx eax, ax
mov dword [ebp - 0x14], eax
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x45ca86
not edi
and ebx, edi
jmp 0x45cab5
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.0045c95e
test eax, eax
je 0x45cab5
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0045d025
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ecx + 0xc]
call fcn.0045cacf
inc esi
cmp esi, 0x20
jb 0x45ca59
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00625788
mov esp, ebp
pop ebp
ret

Function at 0x45eea7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x45eeb2
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x45ef6e
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6c9eb0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6c9eb0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6c9eb0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6c9eb0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6c9eb0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6c9eb0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6c9eb0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6c9eb0]
sub edi, 1
jne 0x45eec7
pop edi
test esi, esi
je 0x45ef8a
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6c9eb0]
inc edx
sub esi, 1
jne 0x45ef72
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x45ef91
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x6c9eb0]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6c9eb0]
mov dword [edi + 8], ecx
pop edi
pop esi
ret
Function at 0x45f71c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x70b034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp byte [edi], 0
je 0x45f761
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45f75c
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x45f788
mov edx, dword [edi + 0x1c]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x18]
jbe 0x45f771
mov esi, dword [edi + 0x18]
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.0063d9e0
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
mov ecx, dword [ebp - 4]
xor edx, edx
pop edi
div ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00625788
mov esp, ebp
pop ebp
ret
Function at 0x460b30
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x70b034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x460b62
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x460b62
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x460c12
push esi
mov esi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x460b7f
cmp ax, 0x5c
jne 0x460b81
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x460b73
cmp esi, ebx
je 0x460bc5
sub esi, ebx
lea eax, [ebp - 0x414]
and esi, 0xfffffffe
push esi
push ebx
push eax
call fcn.0063d9e0
add esp, 0xc
cmp esi, 0x208
jae 0x460c22
xor eax, eax
lea edx, [ebp - 0x414]
mov ecx, edi
mov word [ebp + esi - 0x414], ax
call fcn.00460b30
xor eax, eax
mov word [ebp - 0x20c], ax
pop esi
test edi, edi
je 0x460be2
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00650cf7
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00650d19
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x460c12
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00625788
mov esp, ebp
pop ebp
ret
call fcn.00625df4
int3
Function at 0x463d7c
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
ret
Function at 0x464178
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push 0x144
mov eax, 0x673b00
call fcn.00626979
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov esi, dword [ebp + 0x14]
or ebx, 0xffffffff
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x120], 0xf
mov dword [ebp - 0x124], ecx
mov byte [ebp - 0x134], cl
push 0x104
push ecx
mov edi, 0x105
mov dword [ebp - 4], ecx
push edi
push eax
mov dword [esi], ecx
call fcn.00653ce5
push edi
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.0063e4e0
add esp, 0x1c
lea eax, [ebp - 0x11c]
push eax
push 0
push 0
push 0x801a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x4641fe
mov dword [esi], 3
jmp 0x4643eb
cmp byte [ebp - 0x11c], 0
jne 0x46420b
xor eax, eax
jmp 0x464218
lea eax, [ebp - 0x11c]
push eax
call fcn.00641cc0
pop ecx
push eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x134]
call fcn.00429336
push 0x6da44c
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x14c]
push eax
call fcn.00465af1
add esp, 0xc
lea ecx, [ebp - 0x134]
push eax
call fcn.00428b23
push 0
push 1
lea ecx, [ebp - 0x14c]
call fcn.00429656
cmp dword [ebp - 0x120], 0x10
lea eax, [ebp - 0x134]
push 0
cmovae eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46429c
call edi
cmp eax, 0xb7
je 0x46429c
call edi
cmp eax, 5
jne 0x4641f3
push str.DeskUpdate
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x14c]
push eax
call fcn.00465af1
add esp, 0xc
lea ecx, [ebp - 0x134]
push eax
call fcn.00428b23
push 0
push 1
lea ecx, [ebp - 0x14c]
call fcn.00429656
cmp dword [ebp - 0x120], 0x10
lea eax, [ebp - 0x134]
push 0
cmovae eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x464307
call edi
cmp eax, 0xb7
je 0x464307
call edi
cmp eax, 5
jne 0x4641f3
push str.GlobalMgr.db
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x14c]
push eax
call fcn.00465af1
add esp, 0xc
lea ecx, [ebp - 0x134]
push eax
call fcn.00428b23
xor ebx, ebx
lea ecx, [ebp - 0x14c]
push ebx
push 1
call fcn.00429656
cmp dword [ebp - 0x120], 0x10
lea eax, [ebp - 0x134]
push ebx
cmovae eax, dword [ebp - 0x134]
push 0x80
push 3
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x464378
mov dword [esi], 0x50
jmp 0x4643b9
call edi
cmp eax, 2
jne 0x4643b3
cmp dword [ebp - 0x120], 0x10
lea eax, [ebp - 0x134]
push 0
cmovae eax, dword [ebp - 0x134]
push 0x80
push 2
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4643be
mov dword [esi], 0x65f
cmp ebx, 0xffffffff
je 0x4643eb
cmp dword [ebp - 0x120], 0x10
lea eax, [ebp - 0x134]
push 0x104
cmovae eax, dword [ebp - 0x134]
push eax
push 0x105
push dword [ebp - 0x150]
call fcn.00653cda
add esp, 0x10
push 0
push 1
lea ecx, [ebp - 0x134]
call fcn.00429656
mov eax, ebx
call fcn.00626923
ret 0x10
Function at 0x46511e
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push 0x38
mov eax, 0x673d19
call fcn.00626979
xor dl, dl
lea ecx, [ebp - 0x40]
xor bl, bl
call fcn.00465368
xor ecx, ecx
lea eax, [ebp - 0x40]
push ecx
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x2c], 8
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
cmovae eax, dword [ebp - 0x40]
push 3
push ecx
inc ecx
push ecx
push closesocket
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x4651f1
mov dl, 1
lea ecx, [ebp - 0x28]
call fcn.00465368
lea ecx, [ebp - 0x40]
call fcn.00465915
test al, al
jne 0x4651be
lea ecx, [ebp - 0x28]
call fcn.00465915
test al, al
je 0x4651be
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push 0
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4651be
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0
push 3
push 0
push 1
push closesocket
push eax
call edi
xor edi, edi
lea ecx, [ebp - 0x28]
push edi
push 1
mov esi, eax
call fcn.00428ecb
cmp esi, 0xffffffff
je 0x46522e
jmp 0x4651f3
xor edi, edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10
jb 0x465227
push edi
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], edi
push eax
push 0x10
push section..QMGuid
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x465227
cmp dword [ebp - 0x44], 0x10
push 1
movzx ebx, bl
pop eax
cmove ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea ecx, [ebp - 0x40]
push edi
inc eax
push eax
call fcn.00428ecb
mov al, bl
call fcn.00626923
ret 4

Function at 0x465245
Capabilities:
Write file on windows

Disassembly:
push 0x38
mov eax, 0x673d19
call fcn.00626979
xor dl, dl
lea ecx, [ebp - 0x40]
xor bl, bl
call fcn.00465368
xor ecx, ecx
lea eax, [ebp - 0x40]
push ecx
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x2c], 8
push 2
cmovae eax, dword [ebp - 0x40]
push ecx
inc ecx
push ecx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4652c4
mov dl, 1
lea ecx, [ebp - 0x28]
call fcn.00465368
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
push ecx
push ecx
push 2
push ecx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 1
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00428ecb
cmp esi, 0xffffffff
je 0x4652f0
push 0
lea eax, [ebp - 0x44]
push eax
push 0x10
push section..QMGuid
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4652e9
cmp dword [ebp - 0x44], 0x10
push 1
movzx ebx, bl
pop eax
cmove ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea ecx, [ebp - 0x40]
push 0
inc eax
push eax
call fcn.00428ecb
mov al, bl
call fcn.00626923
ret 4
Function at 0x465368
Capabilities:
Get common file path

Disassembly:
push 0x234
mov eax, 0x673d6b
call fcn.00626979
mov bl, dl
mov esi, ecx
mov dword [ebp - 0x23c], esi
xor edx, edx
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x238], edx
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], edx
jb 0x4653a3
mov eax, dword [esi]
jmp 0x4653a5
mov eax, esi
xor ecx, ecx
mov word [eax], cx
push 0x208
xor edi, edi
mov dword [ebp - 4], edx
push edx
lea eax, [ebp - 0x21c]
inc edi
push eax
mov dword [ebp - 0x238], edi
call fcn.0063e4e0
add esp, 0xc
test bl, bl
push edi
push 0x23
pop eax
push 0x1a
pop ecx
cmovne eax, ecx
xor edi, edi
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4654a2
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], ax
cmp word [ebp - 0x21c], ax
je 0x46541f
lea eax, [ebp - 0x21c]
push eax
call fcn.00643278
pop ecx
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.004284f9
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.004253e9
push 0
push 1
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0
call fcn.00428ecb
mov edi, 0x6da4d0
test bl, bl
jne 0x46546b
mov edi, 0x6da4f8
push edi
call fcn.00643278
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00425488
mov ecx, esi
call fcn.004654aa
test al, al
jne 0x46548d
mov ecx, esi
call fcn.00465574
mov edi, 0x6da51c
push edi
call fcn.00643278
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00425488
mov eax, esi
call fcn.00626923
ret