joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50a300
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov byte [ebp - 0x14], 0
xor eax, eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + 1]
cmp ecx, 0x3a
jne 0x50a34c
mov eax, dword [ebp + 8]
mov cl, byte [eax]
mov byte [ebp - 0x14], cl
mov byte [ebp - 0x13], 0x3a
mov byte [ebp - 0x12], 0x5c
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], eax
jmp 0x50a355
xor eax, eax
xor edx, edx
jmp 0x50a3e9
push 0x677f18
push 0x64a79c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x50a397
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [ebp - 4]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x50a395
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x50a3e9
jmp 0x50a3e5
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x50a3e5
mov eax, dword [ebp - 0x24]
imul eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x20]
xor edx, edx
jmp 0x50a3e9
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x515aa0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.00515620
mov ecx, dword [ebp - 4]
call fcn.00515570
movzx eax, al
test eax, eax
jne 0x515aca
xor al, al
jmp 0x515b5e
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x515af2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x515af2
xor al, al
jmp 0x515b5e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp - 8]
mov dword [eax + 0x1c], edx
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x29]
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 4
push eax
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], 0xffffffff
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 4]
call fcn.00515660
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5179b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
jmp 0x5179d5
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, 0x7dc
call fcn.00508370
cmp dword [ebp - 0xc], eax
jge 0x517a27
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x7dc
call fcn.005083b0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x517a10
mov ecx, dword [ebp - 8]
call fcn.0050b7d0
cmp eax, 8
jne 0x517a14
jmp 0x5179cc
mov eax, dword [ebp - 4]
mov dword [eax + 0x103c], 0
xor al, al
jmp 0x517a60
mov eax, dword [ebp - 4]
cmp dword [eax + 0x103c], 0
jne 0x517a44
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x103c], eax
jmp 0x517a5e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
sub eax, dword [ecx + 0x103c]
cmp eax, 0xea60
jbe 0x517a5e
mov al, 1
jmp 0x517a60
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x518890
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b121c
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x6aae20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00523580
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004117a0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.004117a0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.004117a0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x84
call fcn.004117a0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0xa0
call fcn.004117a0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0xbc
call fcn.004117a0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0xd8
call fcn.004117a0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0xf4
call fcn.004117a0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x110
call fcn.004117a0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
add ecx, 0x12c
call fcn.00510b80
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x14c
call fcn.00510b80
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x10]
add ecx, 0x16c
call fcn.00510b80
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 2], 0
mov ecx, dword [ebp - 0x10]
mov byte [ecx], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 1], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
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 0x519e90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
call fcn.005122b0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
sub ecx, dword [eax + 0x1014]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x6d4]
test ecx, ecx
jne 0x519ecb
cmp dword [ebp - 0xc], 0x14
jle 0x519f8b
mov eax, dword [ebp - 4]
mov byte [eax + 0x6d4], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xff8]
cdq
sub eax, edx
sar eax, 1
add eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xff8], eax
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0xff2]
test ecx, ecx
jne 0x519f19
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc80]
call fcn.00551d10
push 0
push 0
mov ecx, dword [ebp - 4]
call fcn.005177a0
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0xff2]
test ecx, ecx
je 0x519f39
push 1
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc80]
call fcn.00552570
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0xff2]
neg ecx
sbb ecx, ecx
add ecx, 1
mov byte [ebp - 0xd], cl
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x519f68
mov eax, dword [ebp - 4]
add eax, 0x710
push eax
mov ecx, dword [ebp - 4]
call fcn.00515fb0
jmp 0x519f7d
mov ecx, dword [ebp - 4]
add ecx, 0x710
call fcn.00411070
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.005122b0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1014], eax
mov ecx, dword [ebp - 4]
call fcn.00517b60
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
sub ecx, dword [eax + 0x1048]
mov edx, dword [ebp - 0x14]
sbb edx, dword [eax + 0x104c]
push edx
push ecx
call fcn.005149a0
add esp, 8
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
cmp dword [ebp - 0x5c], 0
jl 0x519ff6
jg 0x519fcc
cmp dword [ebp - 0x60], 6
jb 0x519ff6
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 4]
call fcn.0051a000
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xff8]
cdq
sub eax, edx
sar eax, 1
add eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xff8], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51b7c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2048
call fcn.00589140
mov eax, dword [0x6aae20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
cmp dword [0x6b144c], 0
je 0x51b802
push 2
push 2
push str.Download_Restarted..
mov eax, dword [0x6b144c]
mov ecx, dword [eax]
mov edx, dword [0x6b144c]
push edx
mov eax, dword [ecx + 8]
call eax
push 1
mov ecx, dword [ebp - 8]
call fcn.00506b80
movzx eax, al
test eax, eax
jne 0x51b81d
mov eax, 0xffffff95
jmp 0x51b9ae
mov byte [ebp - 0x1008], 0
push 0xfff
push 0
lea eax, [ebp - 0x1007]
push eax
call fcn.00588eb0
add esp, 0xc
mov byte [ebp - 0x2008], 0
push 0xfff
push 0
lea eax, [ebp - 0x2007]
push eax
call fcn.00588eb0
add esp, 0xc
push 0x1000
push 0
lea eax, [ebp - 0x1008]
push eax
call fcn.00588eb0
add esp, 0xc
push 0x1000
push 0
lea eax, [ebp - 0x2008]
push eax
call fcn.00588eb0
add esp, 0xc
lea eax, [ebp - 0x1008]
push eax
push 3
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x58]
call eax
movsx eax, byte [ebp - 0x1008]
test eax, eax
je 0x51b95c
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x1008]
push eax
lea ecx, [ebp - 0x2008]
push ecx
call fcn.00589170
add esp, 8
push 0x623f6c
lea eax, [ebp - 0x2008]
push eax
call fcn.00589180
add esp, 8
lea eax, [ebp - 0x2008]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x1000
push 0
lea eax, [ebp - 0x2008]
push eax
call fcn.00588eb0
add esp, 0xc
lea eax, [ebp - 0x1008]
push eax
lea ecx, [ebp - 0x2008]
push ecx
call fcn.00589170
add esp, 8
push str..ssinfo
lea eax, [ebp - 0x2008]
push eax
call fcn.00589180
add esp, 8
lea eax, [ebp - 0x2008]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x677ee0
lea eax, [ebp - 0x2008]
push eax
call fcn.00589180
add esp, 8
lea eax, [ebp - 0x2008]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 8]
add ecx, 0x710
call fcn.00411070
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 8]
add ecx, 0x178
call fcn.00512990
mov ecx, dword [ebp - 8]
add ecx, 0x318
call fcn.00512990
push 1
push 1
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x80]
call eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x24]
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005884bd
mov esp, ebp
pop ebp
ret
Function at 0x51e290
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b121c
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x6aae20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0xb
mov ecx, dword [ebp - 0x10]
add ecx, 0x16c
call fcn.0054b6b0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x14c
call fcn.0054b6b0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
add ecx, 0x12c
call fcn.0054b6b0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x110
call fcn.004116c0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0xf4
call fcn.004116c0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0xd8
call fcn.004116c0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0xbc
call fcn.004116c0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0xa0
call fcn.004116c0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x84
call fcn.004116c0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.004116c0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.004116c0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004116c0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.0052ee70
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 0x522a30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x6aae20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
push 0x23
push 1
push 1
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 8]
call fcn.0051e4c0
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x522a91
push 0x14
mov eax, dword [ebp + 8]
add eax, 0x24
push eax
mov ecx, dword [ebp - 0x54]
add ecx, 0x38
push ecx
call fcn.0058c7e0
add esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
jne 0x522b5e
push 0x10
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.00588eb0
add esp, 0xc
mov eax, 2
mov word [ebp - 0x18], ax
mov eax, dword [0x6b1648]
mov dword [ebp - 0x14], eax
movzx eax, word [0x6aa908]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
push 0x38
push 0
lea eax, [ebp - 0x50]
push eax
call fcn.00588eb0
add esp, 0xc
mov eax, dword [0x6b2658]
mov dword [ebp - 0x4c], eax
movzx eax, word [0x6b2654]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x48], ax
mov dword [ebp - 0x44], 1
push 0x14
mov eax, dword [ebp - 8]
add eax, 0xb24
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.0058c7e0
add esp, 0xc
push 0x14
mov eax, dword [ebp - 8]
add eax, 0xb38
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0058c7e0
add esp, 0xc
push 0x10
lea eax, [ebp - 0x18]
push eax
push 0
push 0x38
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [0x6b1640]
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x522b5e
call fcn.00514f60
call fcn.00509030
xor al, al
jmp 0x522b60
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005884bd
mov esp, ebp
pop ebp
ret 4
Function at 0x5240b0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0
push 0x1080
push 0
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
call fcn.00588eb0
add esp, 0xc
push 0x10
push 0
mov eax, dword [ebp - 4]
add eax, 4
push eax
call fcn.00588eb0
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x52410e
push 0x1000
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x14
push ecx
call fcn.0051bd70
add esp, 0xc
jmp 0x524171
push 0x1000
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + 0x14]
test ecx, ecx
je 0x52415d
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
call fcn.00588520
add esp, 4
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + eax + 0x13]
cmp edx, 0x5c
je 0x52415d
push str.drivers_tcpip.sys
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
call fcn.00589180
add esp, 8
jmp 0x524171
push 0x67a5bc
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
call fcn.00589180
add esp, 8
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x524289
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x14
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x524289
mov eax, dword [ebp - 0x10]
add eax, 0xa
push eax
call fcn.0044fb5b
add esp, 4
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x10]
add eax, 0xa
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00588eb0
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 2
push ecx
push 0
mov edx, dword [ebp - 4]
add edx, 0x14
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x524277
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0x624118
mov edx, dword [ebp - 0x14]
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x524277
cmp dword [ebp - 0x18], 0
je 0x524277
cmp dword [ebp - 0xc], 0x34
jb 0x524277
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp - 4]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
and ecx, 0xffff
mov edx, dword [ebp - 4]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
and ecx, 0xffff
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], ecx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.0044fb50
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5246c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x524763
mov eax, dword [ebp - 8]
and eax, 0x40
je 0x52473e
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
or ecx, 0x80000000
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0xffffffff
je 0x52473c
mov dword [ebp - 0x10], 0
jmp 0x524763
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x526ea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b18e8
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x6aae20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x3c], 0
je 0x526ee5
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0x41]
test ecx, ecx
jne 0x526ef1
mov al, 1
jmp 0x5270b8
mov dword [ebp - 0x18], 8
call fcn.00424210
push eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0xa8], eax
call fcn.00424210
mov dword [ebp - 0xa4], eax
lea ecx, [ebp - 0xa8]
push ecx
lea edx, [ebp - 0xa4]
push edx
call fcn.00424330
add esp, 8
movzx eax, al
test eax, eax
je 0x526f40
xor al, al
jmp 0x5270b8
push 0
push 8
lea ecx, [ebp - 0x38]
call fcn.0042c040
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xa0]
push ecx
lea ecx, [ebp - 0x38]
call fcn.0040cf10
mov ecx, eax
call fcn.00527210
mov esi, eax
lea ecx, [ebp - 0x38]
call fcn.0040c0c0
add esi, eax
push esi
lea edx, [ebp - 0x98]
push edx
lea ecx, [ebp - 0x38]
call fcn.0040cf10
mov ecx, eax
call fcn.00527210
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x44
push eax
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x3c]
call fcn.005275d0
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
je 0x526fcd
cmp dword [ebp - 0xac], 1
je 0x526fd4
cmp dword [ebp - 0xac], 3
je 0x527074
jmp 0x52708c
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x41], 0
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040cf10
mov ecx, eax
call fcn.00527210
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
mov dword [ebp - 0x3c], ecx
je 0x52703d
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
push 1
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040cf10
mov ecx, eax
call fcn.00527210
push eax
call fcn.0058fae0
add esp, 0x10
cmp dword [ebp - 0x3c], eax
je 0x52703d
mov byte [ebp - 0x80], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004116c0
mov al, byte [ebp - 0x80]
jmp 0x5270b8
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0x41]
test ecx, ecx
jne 0x527060
mov byte [ebp - 0x7f], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004116c0
mov al, byte [ebp - 0x7f]
jmp 0x5270b8
cmp dword [ebp - 0x3c], 0
jne 0x527072
push 0
push 8
lea ecx, [ebp - 0x38]
call fcn.00423070
jmp 0x5270a4
mov byte [ebp - 0x7e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004116c0
mov al, byte [ebp - 0x7e]
jmp 0x5270b8
mov byte [ebp - 0x7d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004116c0
mov al, byte [ebp - 0x7d]
jmp 0x5270b8
jmp 0x526f53
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005884bd
mov esp, ebp
pop ebp
ret