joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42093b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
push esi
xor esi, esi
cmp eax, esi
push edi
jne 0x420952
or eax, 0xffffffff
jmp 0x4209f9
mov dword [eax], esi
lea eax, [ebp + 8]
push eax
mov eax, dword [0x483658]
or al, 1
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4209f6
lea eax, [ebp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push esi
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp + 0xc], esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x4209f2
mov eax, dword [ebp + 0xc]
inc eax
push eax
call fcn.00428529
mov ebx, eax
pop ecx
cmp ebx, esi
jne 0x4209b3
mov ecx, 0x482cfc
call fcn.0041fa6a
push eax
call fcn.00420722
pop ecx
mov eax, dword [ebp + 0xc]
inc eax
push eax
push esi
push ebx
call fcn.00427c50
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x4209e7
mov eax, dword [ebp + 0x14]
push dword [ebp + 8]
mov dword [eax], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
jmp 0x4209f8
push ebx
call fcn.0042851e
pop ecx
push 0xfffffffffffffffe
jmp 0x4209f8
push 0xfffffffffffffffd
jmp 0x4209f8
push 0xfffffffffffffffc
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x420a59
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, 0x104
push edi
push esi
push 0
push dword [ebp + 8]
call fcn.00427c50
push esi
call fcn.00428529
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x420a92
mov ecx, 0x482cfc
call fcn.0041fa6a
push eax
call fcn.00420722
pop ecx
push esi
push 0
push edi
call fcn.00427c50
add esp, 0xc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test eax, eax
jne 0x420aba
push 0x43174c
push edi
call esi
jmp 0x420ac9
add eax, edi
cmp byte [eax - 1], 0x5c
je 0x420ac9
mov byte [eax], 0x5c
and byte [eax + 1], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
lea ebx, [eax + edi]
mov eax, dword [ebp - 4]
and byte [ebx], 0
inc dword [ebp - 4]
lea ecx, [ebp - 0x14]
push 0xa
push ecx
push eax
call fcn.00429bd5
add esp, 0xc
push 0x431748
push edi
call esi
lea eax, [ebp - 0x14]
push eax
push edi
call esi
push dword [ebp + 0xc]
push edi
call esi
push edi
call fcn.0040f25b
test al, al
pop ecx
jne 0x420add
push edi
push dword [ebp + 8]
call esi
push edi
call fcn.0042851e
mov eax, dword [ebp + 8]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421484
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push esi
push str.GetSystemWindowsDirectoryA
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4214b3
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x421511
push edi
push 0x24
pop ecx
xor eax, eax
lea edi, [ebp - 0x90]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
pop edi
push dword [ebp + 0xc]
push dword [ebp + 8]
jne 0x42150b
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, eax
test esi, esi
je 0x421511
push 0x5c
push dword [ebp + 8]
call fcn.00428470
pop ecx
test eax, eax
pop ecx
je 0x421507
and byte [eax], 0
mov eax, esi
jmp 0x421511
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
pop esi
leave
ret
Function at 0x4219ab
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x60], ebx
jne 0x421b0b
push dword [esp + 0xc]
lea ecx, [esi + 0x64]
call fcn.0041ec53
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 0x60], eax
je 0x421b0f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MP3Close
push eax
call edi
push str.MP3DeInit
mov dword [esi], eax
push dword [esi + 0x60]
call edi
push str.MP3GetCurrentPos
mov dword [esi + 4], eax
push dword [esi + 0x60]
call edi
push str.MP3GetLength
mov dword [esi + 8], eax
push dword [esi + 0x60]
call edi
push str.MP3GetMPEG_Args
mov dword [esi + 0xc], eax
push dword [esi + 0x60]
call edi
push str.MP3GetPlayer
mov dword [esi + 0x10], eax
push dword [esi + 0x60]
call edi
push str.MP3GetPlayerMode
mov dword [esi + 0x14], eax
push dword [esi + 0x60]
call edi
push str.MP3Init
mov dword [esi + 0x18], eax
push dword [esi + 0x60]
call edi
push str.MP3Open
mov dword [esi + 0x1c], eax
push dword [esi + 0x60]
call edi
push str.MP3Pause
mov dword [esi + 0x20], eax
push dword [esi + 0x60]
call edi
push str.MP3Play
mov dword [esi + 0x24], eax
push dword [esi + 0x60]
call edi
push str.MP3SetDevice
mov dword [esi + 0x28], eax
push dword [esi + 0x60]
call edi
push str.MP3SetExternalValues
mov dword [esi + 0x2c], eax
push dword [esi + 0x60]
call edi
push str.MP3SetPriority
mov dword [esi + 0x30], eax
push dword [esi + 0x60]
call edi
push str.MP3Stop
mov dword [esi + 0x34], eax
push dword [esi + 0x60]
call edi
push str.MP3Resume
mov dword [esi + 0x38], eax
push dword [esi + 0x60]
call edi
push str.MP3Suspend
mov dword [esi + 0x40], eax
push dword [esi + 0x60]
call edi
cmp dword [esi + 0x2c], ebx
mov dword [esi + 0x3c], eax
pop edi
je 0x421b0f
cmp dword [esi + 0x20], ebx
je 0x421b0f
cmp dword [esi + 0x34], ebx
je 0x421b0f
cmp dword [esi + 0x28], ebx
je 0x421b0f
cmp dword [esi], ebx
je 0x421b0f
cmp dword [esi + 0x10], ebx
je 0x421b0f
cmp dword [esi + 0x14], ebx
je 0x421b0f
cmp dword [esi + 8], ebx
je 0x421b0f
cmp dword [esi + 0xc], ebx
je 0x421b0f
cmp dword [esi + 0x18], ebx
je 0x421b0f
cmp dword [esi + 4], ebx
je 0x421b0f
cmp dword [esi + 0x1c], ebx
je 0x421b0f
cmp dword [esi + 0x30], ebx
je 0x421b0f
cmp dword [esi + 0x24], ebx
je 0x421b0f
cmp eax, ebx
je 0x421b0f
cmp dword [esi + 0x40], ebx
je 0x421b0f
mov al, 1
jmp 0x421b11
xor al, al
pop esi
pop ebx
ret 4
Function at 0x422679
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov edi, ecx
push str.RAM:_t
lea ecx, [ebp - 0xc]
call fcn.0041eb20
push str.GlobalMemoryStatusEx
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4226cd
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x40
push ecx
call eax
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
push 0x14
pop ecx
call fcn.00428920
mov ebx, eax
test ebx, ebx
jne 0x4226e4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ebx, dword [ebp - 0x24]
shr ebx, 0x14
test bl, 1
je 0x4226ea
inc ebx
mov esi, str._d_MB_t
push ebx
lea eax, [ebp - 0xc]
push esi
push eax
mov dword [0x482ab0], ebx
call fcn.0041f193
mov eax, dword [0x4824b4]
add esp, 0xc
test eax, eax
jne 0x42271c
push eax
push 0x4318bc
lea ecx, [ebp - 0xc]
call fcn.0041ed73
jmp 0x422732
push eax
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0041f193
add esp, 0xc
cmp ebx, dword [0x4824b4]
jb 0x422739
push 0x482ccc
jmp 0x422744
inc dword [0x482638]
push 0x482cb4
lea ecx, [ebp - 0xc]
call fcn.0041edf1
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
call fcn.004221e9
lea ecx, [ebp - 0xc]
mov dword [0x48263c], ebx
call fcn.0041ebe6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x422da3
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push esi
push edi
je 0x422e39
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x422e39
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp + 0xc], eax
jbe 0x422e32
push eax
call fcn.00428529
mov esi, eax
pop ecx
test esi, esi
jne 0x422de1
mov eax, 0x8007000e
jmp 0x422e3e
push esi
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x422e2b
and dword [ebp + 8], 0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push 0x42fb7c
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x422e2b
mov eax, dword [ebp + 8]
test eax, eax
je 0x422e2b
mov ecx, dword [eax + 8]
push esi
mov dword [edi + 4], ecx
mov eax, dword [eax + 0xc]
mov dword [edi], eax
call fcn.0042851e
pop ecx
xor eax, eax
jmp 0x422e3e
push esi
call fcn.0042851e
pop ecx
mov eax, 0x80004005
jmp 0x422e3e
mov eax, 0x80070057
pop edi
pop esi
leave
ret
Function at 0x423284
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
and byte [ebp - 0x408], 0
push esi
push edi
push 0x7f
pop ecx
xor eax, eax
lea edi, [ebp - 0x407]
and byte [ebp - 0x208], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
mov esi, dword [ebp + 8]
push 0x104
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x408]
mov dword [ebp + 8], esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4232e0
mov eax, esi
jmp 0x42346b
lea eax, [ebp - 0x408]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
lea eax, [ebp - 0x208]
push eax
call ebx
lea eax, [ebp - 0x208]
push str.d3d8.dll
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00422da3
pop ecx
pop ecx
push 4
test eax, eax
pop edi
jl 0x423389
mov eax, dword [ebp - 4]
mov esi, 0x371
mov ecx, eax
shr ecx, 0x10
cmp cx, di
jne 0x423356
push esi
push 1
push 8
push edi
call fcn.00422e42
push edx
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00422e61
add esp, 0x20
test eax, eax
jge 0x423382
mov eax, dword [ebp - 4]
shr eax, 0x10
cmp ax, 5
jne 0x423389
push esi
push 0xa28
push 1
push 5
call fcn.00422e42
push edx
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00422e61
add esp, 0x20
test eax, eax
jl 0x423389
mov dword [ebp + 8], 0x10008
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x208]
push eax
call ebx
lea eax, [ebp - 0x208]
push str.dpnet.dll
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00422da3
pop ecx
test eax, eax
pop ecx
jl 0x423428
mov eax, dword [ebp - 4]
mov esi, 0x86
mov ecx, eax
shr ecx, 0x10
cmp cx, di
jne 0x4233f5
push esi
push 0
push 9
push edi
call fcn.00422e42
push edx
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00422e61
add esp, 0x20
test eax, eax
jge 0x423421
mov eax, dword [ebp - 4]
shr eax, 0x10
cmp ax, 5
jne 0x423428
push esi
push 0xe5d
push 2
push 5
call fcn.00422e42
push edx
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00422e61
add esp, 0x20
test eax, eax
jl 0x423428
mov dword [ebp + 8], 0x20008
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x208]
push eax
call ebx
lea eax, [ebp - 0x208]
push str.d3d9.dll
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00422da3
pop ecx
pop ecx
pop ebx
test eax, eax
jl 0x423468
mov dword [ebp + 8], 9
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret
Function at 0x4236b2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov dword [ebp - 0x14], ecx
xor esi, esi
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call fcn.0041eab0
push 0x13c
call fcn.00428529
cmp eax, esi
pop ecx
je 0x4236fd
push 0x1a
lea esi, [eax + 4]
pop ecx
mov edi, esi
mov dword [eax], ecx
mov ebx, ecx
mov ecx, edi
call fcn.0041eab0
add edi, 0xc
dec ebx
jne 0x4236e9
mov dword [ebp - 8], esi
xor esi, esi
jmp 0x423700
mov dword [ebp - 8], esi
cmp dword [ebp - 8], esi
je 0x42371e
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
call esi
mov ebx, eax
push ebx
call fcn.00428529
mov edi, eax
pop ecx
test edi, edi
jne 0x423729
inc dword [0x482640]
jmp 0x4238cf
push edi
push ebx
call esi
push str._HD_space_placeholder_
lea ecx, [ebp - 0x4c]
mov esi, edi
call fcn.0041eb20
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x4c]
push eax
call fcn.004221e9
cmp byte [edi], 0
je 0x42381b
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push esi
call fcn.0041ec53
mov ecx, dword [ebp - 4]
call fcn.0041fa6a
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x423801
inc dword [ebp - 0xc]
push str.
lea ecx, [ebp - 0x28]
call fcn.0041ec53
push dword [ebp - 4]
lea ecx, [ebp - 0x28]
call fcn.0041edf1
push 9
lea ecx, [ebp - 0x28]
call fcn.0041ed24
mov ecx, dword [ebp - 4]
push 1
call fcn.0041fa6a
push eax
call fcn.0040f156
mov ebx, edx
pop ecx
cmp ebx, dword [0x482a0c]
pop ecx
mov dword [ebp - 0x1c], eax
ja 0x4237c9
jb 0x4237c6
cmp eax, dword [0x482a08]
jae 0x4237c9
inc dword [ebp - 0x10]
lea ecx, [ebp - 0x34]
call fcn.0041eab0
lea eax, [ebp - 0x34]
push eax
push ebx
push dword [ebp - 0x1c]
call fcn.004207b2
add esp, 0xc
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x28]
push eax
call fcn.0041edf1
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push eax
call fcn.004221e9
lea ecx, [ebp - 0x34]
call fcn.0041ebe6
add dword [ebp - 4], 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x423757
push edi
call fcn.0042851e
pop ecx
mov ecx, dword [ebp - 8]
push 3
call fcn.0041bb16
push 0x482e1c
lea ecx, [ebp - 0x28]
call fcn.0041ecc1
xor esi, esi
lea ecx, [ebp - 0x28]
push esi
push 0x431c88
call fcn.0041ed73
lea ecx, [ebp - 0x40]
call fcn.0041eab0
lea eax, [ebp - 0x40]
push eax
push dword [0x482a0c]
push dword [0x482a08]
call fcn.004207b2
add esp, 0xc
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.0041edf1
push 9
lea ecx, [ebp - 0x28]
call fcn.0041ed24
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x10], eax
jne 0x423894
inc dword [0x482638]
push 0x482cb4
jmp 0x423899
push 0x482ccc
lea ecx, [ebp - 0x28]
call fcn.0041edf1
push 1
push esi
push esi
lea ecx, [ebp - 0x28]
call fcn.0041fa6a
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041fa6a
mov ecx, dword [ebp - 0x14]
push eax
call fcn.0041f93a
lea ecx, [ebp - 0x40]
call fcn.0041ebe6
lea ecx, [ebp - 0x4c]
call fcn.0041ebe6
lea ecx, [ebp - 0x28]
call fcn.0041ebe6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4238dc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push 0x24
lea eax, [ebp - 0x30]
push 0
mov esi, ecx
push eax
call fcn.00427c50
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x482eb8
lea ecx, [ebp - 0xc]
call fcn.0041eb84
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
push 0x431cac
push eax
call fcn.0041f193
add esp, 0xc
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.004221e9
lea ecx, [ebp - 0xc]
call fcn.0041ebe6
pop esi
leave
ret
Function at 0x4257fb
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov edx, ecx
xor cl, cl
cmp byte [edx + 0x93], cl
lea eax, [edx + 0x93]
je 0x42584b
push edi
push 0x40
mov byte [eax], cl
mov byte [ebp - 0x104], cl
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
mov ecx, edx
push eax
call fcn.0042619a
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp dword [0x4828e8], ebx
push edi
mov edi, dword [eax + 0x34]
jle 0x425bca
mov esi, 0x4828dc
push ebx
mov ecx, esi
call fcn.00421b62
cmp eax, edi
je 0x425bbf
inc ebx
inc ebx
cmp ebx, dword [0x4828e8]
jl 0x425ba7
jmp 0x425bca
inc ebx
mov ecx, esi
push ebx
call fcn.00421b62
mov edi, eax
xor esi, esi
cmp dword [0x4828d4], esi
jle 0x425c6b
push esi
mov ecx, 0x4828c8
call fcn.00421b62
cmp dword [eax], edi
je 0x425bf2
inc esi
cmp esi, dword [0x4828d4]
jl 0x425bd8
jmp 0x425c6b
add eax, 4
xor esi, esi
cmp eax, esi
je 0x425c6b
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
mov ecx, eax
call fcn.0041fa6a
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x425c6b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0xc
mov dword [ebp + 8], eax
call fcn.00428529
cmp eax, esi
pop ecx
je 0x425c42
mov ecx, eax
call fcn.0041eab0
mov ebx, eax
jmp 0x425c44
xor ebx, ebx
push dword [ebp + 8]
mov ecx, ebx
call fcn.0041f388
cmp eax, esi
jne 0x425c74
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
je 0x425c6b
mov ecx, ebx
call fcn.0041ebe6
push ebx
call fcn.0042851e
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
lea ecx, [ebp - 4]
push esi
push ecx
mov dword [ebp - 4], esi
push dword [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
je 0x425c59
mov eax, dword [ebp + 8]
cmp dword [ebp - 4], eax
jne 0x425c59
mov eax, ebx
jmp 0x425c6d
Function at 0x4260f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
cmp dword [0x482934], 0
push edi
mov edi, ecx
jbe 0x42618b
lea eax, [ebp - 4]
mov ecx, 0x482934
push eax
mov eax, dword [0x483658]
or eax, 0x20019
push eax
push 0
call fcn.0041fa6a
push eax
push dword [0x482930]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42618b
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
push str.Uninstaller
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x426182
lea eax, [ebp - 0x10c]
push eax
call fcn.0040f25b
test al, al
pop ecx
je 0x426182
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov al, 1
jmp 0x426195
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 8]
mov ecx, edi
call fcn.0042619a
pop edi
leave
ret 4
Function at 0x4263ec
Capabilities:
Copy file
Delete directory
Delete file
Get file size
Set current directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
mov esi, ecx
push 0x431f40
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test byte [0x482504], 0x40
jne 0x426579
test byte [0x48250a], 2
jne 0x426579
xor ebx, ebx
cmp byte [esi + 0x90], bl
je 0x42645c
lea eax, [ebp - 0x11c]
mov ecx, esi
push eax
call fcn.0042619a
lea eax, [ebp - 0x11c]
mov ecx, 0x482320
push eax
push 1
call fcn.00417d6d
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x42651d
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
mov ecx, esi
call fcn.0041fa6a
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push ebx
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp edi, 0xffffffff
mov dword [ebp - 8], eax
je 0x426570
cmp eax, ebx
je 0x426570
lea ecx, [ebp - 0x18]
mov byte [esi + 0x92], 1
call fcn.0041eab0
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.0042584d
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc]
push ebx
push eax
lea ecx, [ebp - 0x18]
push dword [ebp - 0x18]
call fcn.0041fa6a
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 8]
push 4
push eax
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0041fa6a
push eax
push 1
mov ecx, 0x482320
call fcn.00417d6d
mov ecx, esi
call fcn.0041fa6a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x18]
call fcn.0041ebe6
cmp dword [0x482a40], ebx
jbe 0x426568
lea eax, [ebp - 0x11c]
mov ecx, esi
push eax
call fcn.004260f0
lea eax, [ebp - 0x11c]
mov esi, 0x482a40
push ebx
push eax
mov ecx, esi
call fcn.0041fa6a
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, esi
call fcn.0041fa6a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x432428
mov ecx, esi
call fcn.0041ec53
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x426568
xor ebx, ebx
push 1
cmp byte [esi + 0x90], bl
jne 0x42656a
pop edi
push ebx
push dword [esi + 0x20]
call fcn.0040f228
pop ecx
pop ecx
cmp eax, ebx
je 0x4265ac
push eax
call fcn.0040eb3e
mov eax, edi
inc edi
push eax
push dword [esi + 0x20]
call fcn.0040f228
add esp, 0xc
jmp 0x426591
push 1
pop edi
push ebx
push dword [esi + 0x38]
call fcn.0040f228
pop ecx
cmp eax, ebx
pop ecx
je 0x426568
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, edi
inc edi
push eax
jmp 0x4265b0
Function at 0x4265cb
Capabilities:
Copy file
Delete file
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
test byte [0x48250a], 2
push esi
mov esi, ecx
mov dword [ebp - 4], esi
je 0x4265f3
test byte [0x482504], 0x40
jne 0x4265f3
mov al, 1
jmp 0x426730
lea eax, [ebp - 0x11c]
mov ecx, esi
push eax
call fcn.0042619a
lea eax, [ebp - 0x11c]
push eax
call fcn.0040f25b
test al, al
pop ecx
je 0x426622
lea eax, [ebp - 0x11c]
mov ecx, esi
push eax
call fcn.00425617
jmp 0x42662b
test byte [0x482504], 0x40
je 0x426637
mov ecx, esi
call fcn.00426735
jmp 0x426730
push ebx
push edi
lea ecx, [ebp - 0x18]
call fcn.0041eab0
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.0042584d
xor ebx, ebx
lea eax, [ebp - 0x11c]
push ebx
push eax
mov ecx, esi
call fcn.0041fa6a
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, esi
call fcn.0041fa6a
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x11c]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp edi, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x4266fb
cmp eax, ebx
je 0x4266fb
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 8]
push ebx
push eax
lea ecx, [ebp - 0x18]
push dword [ebp - 0x18]
call fcn.0041fa6a
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push edi
call esi
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0xc]
push 4
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x11c]
push eax
mov byte [ecx + 0x90], 1
call fcn.00425617
mov bl, 1
jmp 0x426724
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x11c]
push eax
call esi
push ebx
mov ecx, 0x483308
call fcn.0041fa6a
push eax
mov ecx, 0x482320
push dword [ebp + 8]
call fcn.0041df67
lea ecx, [ebp - 0x18]
call fcn.0041ebe6
mov al, bl
pop edi
pop ebx
pop esi
leave
ret 4