joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b48fc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6cb06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x4b497e
cmp byte [esi + 0x3d], 0
je 0x4b497e
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4b4950
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4b4954
sub eax, 1
je 0x4b4958
dec eax
sub eax, 1
je 0x4b497e
xor al, al
jmp 0x4b4980
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4b4975
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005022b1
add esp, 0x10
cmp edi, eax
jne 0x4b4950
cmp byte [esi + 0x3d], 0
sete al
jmp 0x4b4980
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040e215
leave
ret

Function at 0x4b57b6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x6cb06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x4b57dc
xor eax, eax
jmp 0x4b589e
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x4b5805
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x4b5805
dec dword [edx]
mov eax, ebx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x4b589e
cmp dword [esi + 0x4c], 0
je 0x4b589c
mov ecx, esi
call fcn.004b4c88
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x4b5831
push dword [esi + 0x4c]
push eax
call fcn.004af881
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x4b589c
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x2c]
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x4b589c
cmp eax, 1
jle 0x4b586b
cmp eax, 3
jne 0x4b589c
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x4b5823
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x4b588e
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.005022b1
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x4b589c
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, ebx
jne 0x4b589e
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e215
leave
ret 4
Function at 0x4b6568
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x4b658a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b6646
jmp 0x4b6641
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x4b65ab
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x4b65ad
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x4b6635
jg 0x4b65c0
test esi, esi
je 0x4b6635
test ecx, ecx
jl 0x4b6602
jg 0x4b65ca
test eax, eax
je 0x4b6602
cmp ebx, ecx
jg 0x4b65dc
jl 0x4b65d4
cmp esi, eax
jae 0x4b65dc
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004ede50
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x4b6608
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x4b6635
jg 0x4b6612
test esi, esi
je 0x4b6635
cmp dword [edi + 0x4c], 0
je 0x4b6635
mov ecx, edi
call fcn.004b4c88
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.005009c4
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
leave
ret 0xc

Function at 0x4b6715
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4b6737
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b67e9
jmp 0x4b67e4
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x4b6758
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x4b675a
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x4b67d8
jg 0x4b676d
test esi, esi
je 0x4b67d8
test ecx, ecx
jl 0x4b67b1
jg 0x4b6777
test eax, eax
je 0x4b67b1
cmp edi, ecx
jg 0x4b6789
jl 0x4b6781
cmp esi, eax
jae 0x4b6789
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.004ede50
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x4b67b4
mov edx, dword [ebp + 8]
test edi, edi
jl 0x4b67d8
jg 0x4b67be
test esi, esi
je 0x4b67d8
cmp dword [ebx + 0x4c], 0
je 0x4b67d8
push dword [ebx + 0x4c]
push esi
push 1
push edx
call fcn.005022b1
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4b777e
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x6cb06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4b77ad
push 2
pop eax
jmp 0x4b7835
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.004b7591
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.004edc80
add esp, 0x14
mov dword [ebp - 0x58], edi
test ebx, ebx
mov dword [ebp - 0x48], esi
mov ecx, 0x64b438
mov dword [ebp - 0x54], 0x40
mov eax, 0x64bc70
mov dword [ebp - 0x3c], 5
cmove eax, ecx
cmp dword [ebp - 8], 8
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
and dword [ebp - 0x40], 0
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x20], 0
mov esi, eax
je 0x4b782b
cmp dword [ebp + 0x10], 0
je 0x4b782b
push dword [ebp + 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x1c]
call fcn.0040199e
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e215
leave
ret
Function at 0x4b8c45
Capabilities:
Check if file exists

Disassembly:
push 0x23c
mov eax, 0x637936
call fcn.0040eb77
mov edi, ecx
lea eax, [ebp - 0x230]
push eax
call fcn.004b8972
and dword [ebp - 4], 0
lea esi, [edi + 4]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4b8c77
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x64bcd8
call fcn.00401918
push 0x64bcdc
mov ecx, esi
call fcn.00401918
push 0x6b4c90
mov ecx, esi
call fcn.00401918
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.004018a7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4b8ccc
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4b8d64
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004edc80
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004b8952
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4b8d23
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00401918
push 0x6b4c90
mov ecx, esi
call fcn.00401918
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.004018a7
cmp dword [esi + 0x14], 8
jb 0x4b8d6c
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea esi, [edi + 0x1c]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4b8d84
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x64bcd8
call fcn.00401918
push 0x64bcdc
mov ecx, esi
call fcn.00401918
push 0x6b4c90
mov ecx, esi
call fcn.00401918
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.004b89d1
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040479d
lea ecx, [ebp - 0x248]
call fcn.0040199e
lea ecx, [ebp - 0x230]
call fcn.0040199e
call fcn.0040eb21
ret
Function at 0x4b9e0e
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x637af9
call fcn.0040eb77
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x4b9e2f
push dword [esi + 0x1c]
call fcn.00507d87
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004b936a
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0050264c
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x4b9eb3
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.004b936a
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004b936a
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.0040199e
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0040199e
sub edi, 1
jns 0x4b9e5d
mov ecx, esi
call fcn.004b9ced
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.0040199e
call fcn.0040eb21
ret

Function at 0x4b9ecc
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x637af9
call fcn.0040eb77
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x4b9eed
push dword [esi + 0x1c]
call fcn.00507d87
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004b936a
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0050264c
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x4b9f71
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.004b936a
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004b936a
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.0040199e
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0040199e
sub edi, 1
jns 0x4b9f1b
mov ecx, esi
call fcn.004b9d84
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.0040199e
call fcn.0040eb21
ret
Function at 0x4bab16
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3100
call fcn.0040f530
mov eax, dword [0x6cb06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x3100], edi
call fcn.004edc80
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004edc80
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x108]
push eax
push str.._c:
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040c77e
add esp, 0x10
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4babac
mov al, 1
jmp 0x4bacb5
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.004edc80
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.004edc80
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.004edc80
add esp, 0x24
mov dword [ebp - 0x30f0], ebx
lea eax, [ebp - 0x30fc]
mov dword [ebp - 0x30f8], ebx
mov dword [ebp - 0x30f4], ebx
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x30ec]
push eax
push 0xc
lea eax, [ebp - 0x30f8]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4bac2e
mov bl, 2
jmp 0x4bacac
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.004bacc4
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.004bacc4
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bac6f
sub ecx, edx
lea eax, [ebp - 0x5f4]
push ecx
push eax
mov ecx, edi
call fcn.004bc1d0
lea edx, [ebp - 0x9dc]
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4bac90
mov ecx, dword [ebp - 0x3100]
lea eax, [ebp - 0x9dc]
sub edx, edi
push edx
push eax
call fcn.004bc1d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e215
leave
ret
Function at 0x4baeb7
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x6cb06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x118
xor ebx, ebx
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.004edc80
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004bae6c
mov eax, dword [ebp - 0x11c]
add esp, 0xc
cmp eax, 5
jne 0x4baf36
cmp dword [ebp - 0x118], ebx
jbe 0x4baf7c
cmp dword [ebp - 0x118], 1
setne bl
inc ebx
jmp 0x4baf7c
cmp eax, 6
jne 0x4baf61
cmp byte [ebp - 6], 1
jne 0x4baf5c
mov eax, dword [ebp - 0x118]
sub eax, ebx
je 0x4baf58
sub eax, 1
je 0x4baf54
push 7
jmp 0x4baf5e
push 5
jmp 0x4baf5e
push 3
jmp 0x4baf5e
push 4
pop ebx
jmp 0x4baf7c
push 0xa
pop ecx
cmp eax, ecx
jne 0x4baf79
cmp dword [ebp - 0x114], 0x55f0
sbb ebx, ebx
add ebx, 9
jmp 0x4baf7c
cmova ebx, ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040e215
leave
ret

Function at 0x4bafa8
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 2
mov byte [ebp - 1], dl
pop ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, ebx
cmp ax, dx
jne 0x4bafbd
push dword [ebp + 8]
sub edi, ecx
sar edi, 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4bafdf
mov al, 1
jmp 0x4bb070
push esi
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056041b
push esi
mov ebx, eax
push 0
push ebx
call fcn.00409ded
push dword [ebp + 8]
push esi
push ebx
call fcn.004fbffb
add esp, 0x1c
xor esi, esi
movzx eax, word [ebx + esi*2]
cmp eax, 0x5c
je 0x4bb01e
cmp eax, 0x2f
jne 0x4bb05a
mov dword [ebp - 8], eax
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4bb053
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4bb061
mov eax, dword [ebp + 0xc]
mov byte [ebp - 1], 1
cmp dword [eax + 0x24], 0
je 0x4bb053
push ebx
mov ecx, eax
call fcn.004baf8b
mov eax, dword [ebp - 8]
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jbe 0x4bb010
jmp 0x4bb065
mov byte [ebp - 1], 0
push ebx
call fcn.0040ecb5
mov al, byte [ebp - 1]
pop ecx
pop esi
pop edi
pop ebx
leave
ret
Function at 0x4bb10a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6cb06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], esi
push edi
push eax
call fcn.004edc80
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0xc]
or eax, 0x8000
cmp byte [ebp + 0x10], 0
push edi
cmove eax, dword [ebp + 0xc]
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4bb175
xor eax, eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x4bb183
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004040a3
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0040e215
leave
ret

Function at 0x4bb1e6
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push ebx
push edi
je 0x4bb296
cmp dword [ebp + 0xc], 0
je 0x4bb296
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4bb22b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4bb299
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
je 0x4bb223
jb 0x4bb247
push 8
pop eax
jmp 0x4bb299
push esi
mov esi, eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4bb253
mov dword [eax], edi
inc esi
push esi
call fcn.0056041b
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
push esi
push eax
mov dword [ecx], eax
call fcn.004edc80
add esp, 0x10
mov dword [ebp + 8], esi
lea eax, [ebp + 8]
push esi
push eax
mov eax, dword [ebp + 0xc]
push edi
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
test eax, eax
je 0x4bb223
cmp dword [ebp + 8], edi
jne 0x4bb296
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4bb299
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
Function at 0x4bb29d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
push ebx
xor ebx, ebx
push edi
mov edi, ebx
cmp dword [eax + 0x10], ebx
je 0x4bb3ae
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], ebx
je 0x4bb3ad
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4bb2cc
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
test eax, eax
je 0x4bb3ad
push 0x6d86d8
push eax
call fcn.005608fa
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x4bb3ad
cmp dword [esi + 0x14], 0x10
jb 0x4bb301
mov esi, dword [esi]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
mov esi, dword [ebp - 4]
test eax, eax
je 0x4bb39b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4bb39b
mov eax, dword [ebp - 0x10]
push 0x6d86d8
push 0x80
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 8], ecx
call fcn.005608fa
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4bb39b
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x4bb364
mov eax, dword [eax]
push eax
push dword [ebp - 8]
push str.StringFileInfo_08lx_s
push 0x80
push edi
call fcn.0040c77e
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4bb399
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
call fcn.004038b3
mov bl, 1
push esi
call fcn.0040ecb5
pop ecx
test edi, edi
je 0x4bb3ad
push edi
call fcn.0040ecb5
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
leave
ret

Function at 0x4bb3b4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
test eax, eax
je 0x4bb417
xor edi, edi
cmp word [eax], di
je 0x4bb417
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4bb3ed
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4bb40c
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4bb41a
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x4bb9fd
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x4bd567
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push 0x3c
mov eax, 0x637d5b
call fcn.0040eb77
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x4bd58a
xor al, al
jmp 0x4bd64a
lea edi, [ecx + 4]
cmp dword [edi + 0x10], 0
ja 0x4bd5ad
lea eax, [ebp - 0x40]
push eax
call fcn.004bdc14
pop ecx
push eax
mov ecx, edi
call fcn.0040377a
lea ecx, [ebp - 0x40]
call fcn.0040199e
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
and dword [ebp - 0x14], 0
push edi
call fcn.00404e5b
xor edi, edi
lea ecx, [ebp - 0x28]
push str.Software_
mov dword [ebp - 4], edi
call fcn.00401918
push dword [ebp - 0x48]
lea ecx, [ebp - 0x28]
call fcn.00401918
test ebx, ebx
je 0x4bd5f5
push 0x6b4c90
lea ecx, [ebp - 0x28]
call fcn.00401918
push ebx
lea ecx, [ebp - 0x28]
call fcn.00401918
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x44]
push ecx
push 0xf003f
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], edi
cmovae eax, dword [ebp - 0x28]
push edi
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4bd640
test esi, esi
je 0x4bd62d
push esi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x4bd637
push edi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
call fcn.0040199e
mov al, 1
call fcn.0040eb21
ret 0xc