joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417267
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.0041eb20
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x18]
dec eax
push eax
call fcn.0041f608
cmp al, 0x5c
je 0x41729c
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.0041ed24
lea ecx, [ebp - 0xc]
call fcn.0041eab0
push 0x432428
lea ecx, [ebp - 0xc]
call fcn.0041ec53
push esi
lea ecx, [ebp - 0x18]
call fcn.0041fa6a
push eax
lea eax, [ebp - 0xc]
push str._s_d.tmp
push eax
call fcn.0041f193
add esp, 0x10
lea ecx, [ebp - 0xc]
inc esi
call fcn.0041fa6a
push eax
call fcn.0040f25b
test al, al
pop ecx
jne 0x4172a4
xor esi, esi
lea ecx, [ebp - 0xc]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
call fcn.0041fa6a
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x417362
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x417378
lea ecx, [ebp - 0x24]
call fcn.0041eab0
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push str.You_dont_have_write_privilege_to_directory__s._Please_have_your_system_administrator__or_other_user_with_higher_privileges__install_this_software.
push eax
call fcn.0041f193
add esp, 0xc
lea ecx, [ebp - 0x24]
push esi
call fcn.0041fa6a
push eax
mov ecx, 0x482320
push dword [0x4824f0]
call fcn.0041df67
lea ecx, [ebp - 0x24]
call fcn.0041ebe6
lea ecx, [ebp - 0xc]
call fcn.0041ebe6
lea ecx, [ebp - 0x18]
call fcn.0041ebe6
xor al, al
jmp 0x41738a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xc]
call fcn.0041fa6a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0xc]
call fcn.0041ebe6
lea ecx, [ebp - 0x18]
call fcn.0041ebe6
mov al, 1
pop esi
leave
ret 4
Function at 0x41807d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov ebx, ecx
cmp dword [0x482934], esi
jne 0x41809b
cmp dword [0x482940], esi
je 0x418126
test byte [0x482504], 0x40
je 0x4180ad
mov ecx, ebx
call fcn.0041e371
jmp 0x4180f2
lea eax, [ebp - 4]
mov ecx, 0x482934
push eax
mov eax, dword [0x483658]
or eax, 0x20019
push eax
push esi
call fcn.0041fa6a
push eax
push dword [0x482930]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41811f
cmp dword [0x482940], esi
jne 0x4180f6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push esi
mov ecx, ebx
call fcn.00417d6d
pop esi
pop ebx
leave
ret
push edi
push esi
push esi
push esi
push esi
mov ecx, 0x482940
call fcn.0041fa6a
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
je 0x4180e9
mov ecx, ebx
call fcn.004185d1
mov al, 1
jmp 0x4180f2
Function at 0x41bb70
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
mov ebx, 0x94
push 0x482554
mov dword [0x482a08], esi
mov dword [0x482a0c], esi
mov dword [0x482a14], 2
mov dword [0x482838], esi
mov byte [0x4828ec], 1
mov dword [0x4824f4], eax
mov dword [0x4824fc], esi
mov dword [0x4824f8], esi
mov dword [0x4824f0], esi
mov dword [0x482554], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x38
push esi
push 0x482610
mov dword [0x482c34], esi
call fcn.00427c50
push 0x4c
push esi
push 0x482490
call fcn.00427c50
push 0x28
push esi
push 0x482b48
call fcn.00427c50
push 0x38
push esi
push 0x482678
call fcn.00427c50
mov edi, 0x104
mov dword [0x48268c], 0x4279b9
push edi
mov dword [0x482678], 0x42798d
mov dword [0x48267c], 0x4279e5
mov dword [0x482684], 0x427a66
mov dword [0x482680], 0x427b00
mov dword [0x482688], 0x427ba0
mov dword [0x4826a4], 0x4206d1
mov dword [0x4826ac], 0x4205d4
mov dword [0x4826a0], 0x4202db
mov dword [0x4826a8], 0x41ff63
mov dword [0x48269c], 0x482508
call fcn.00428529
add esp, 0x34
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x41bc9f
mov ecx, 0x482cfc
call fcn.0041fa6a
push eax
call fcn.00420722
pop ecx
push edi
push esi
push dword [ebp + 8]
call fcn.00427c50
add esp, 0xc
push edi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push dword [ebp + 8]
mov ecx, 0x482a88
call fcn.0041ec53
push dword [ebp + 8]
call fcn.0042851e
cmp dword [0x482ab8], esi
pop ecx
jne 0x41bce4
push 0x482a88
mov ecx, 0x482ab8
call fcn.0041ecc1
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0xc]
call fcn.0041eb20
lea ecx, [ebp - 0xc]
call fcn.0041fab4
push 1
push esi
push str._SILENT
lea ecx, [ebp - 0xc]
call fcn.0041f3fc
or edi, 0xffffffff
cmp eax, edi
je 0x41bd19
mov byte [0x483654], 1
push 1
push esi
push str._REVERT
lea ecx, [ebp - 0xc]
call fcn.0041f3fc
cmp eax, edi
je 0x41bd34
mov byte [0x4836ad], 1
push 1
push esi
push str._ACCEPTLICENSE
lea ecx, [ebp - 0xc]
call fcn.0041f3fc
cmp eax, edi
je 0x41bd4f
mov byte [0x483655], 1
push ebx
lea eax, [ebp - 0xa0]
push esi
push eax
mov dword [0x482a98], edi
mov dword [0x482a9c], edi
mov dword [0x482aa0], edi
mov dword [0x482aa4], edi
mov dword [0x482aa8], edi
mov dword [0x482aac], edi
mov dword [0x482ab0], edi
mov dword [0x482ab4], edi
call fcn.00427c50
add esp, 0xc
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 2
jne 0x41bdb8
mov dword [0x482514], 1
jmp 0x41bdd7
mov eax, dword [ebp - 0x94]
mov dword [0x482514], esi
and eax, 0xffff
cmp eax, 0x3e8
ja 0x41bdd7
mov byte [0x482611], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push str._InstallerCommandLine_
call fcn.0041ff63
lea ecx, [ebp - 0xc]
call fcn.0041ebe6
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41c6fc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
mov esi, 0x482668
push edi
push 0x2c
mov ecx, esi
call fcn.0041f63e
push 0x28
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.0041f63e
xor edi, edi
mov dword [ebp - 0x18], eax
cmp eax, edi
mov dword [ebp - 8], edi
jle 0x41c869
mov esi, 0x482918
mov ebx, 0x42fa2c
lea ecx, [ebp - 0x14]
call fcn.0041eab0
push 4
mov ecx, 0x482ab8
push dword [ebp - 4]
call fcn.0041fa6a
push eax
lea ecx, [ebp - 0x14]
call fcn.0041f806
add dword [ebp - 4], 4
lea eax, [ebp - 0x11c]
push str..TTF
push eax
call fcn.00420a59
pop ecx
pop ecx
push 1
pop eax
mov dword [0x4835f4], eax
mov dword [0x482608], eax
mov eax, dword [0x483668]
cmp eax, edi
je 0x41c790
push eax
call fcn.0042851e
pop ecx
push 4
call fcn.00428529
pop ecx
mov dword [0x483668], eax
push edi
lea ecx, [ebp - 0x14]
call fcn.0041f63e
add eax, dword [ebp - 4]
mov ecx, dword [0x483668]
push edi
mov dword [ecx], eax
lea ecx, [ebp - 0x14]
call fcn.0041f63e
push eax
lea eax, [ebp - 0x11c]
push dword [ebp - 4]
mov ecx, 0x482ab8
push eax
call fcn.0041fa6a
push eax
call fcn.00401ac0
add esp, 0x10
test eax, eax
jne 0x41c870
push edi
lea ecx, [ebp - 0x14]
call fcn.0041f63e
add dword [ebp - 4], eax
lea eax, [ebp - 0x220]
push str..FOT
push eax
call fcn.00420a59
pop ecx
lea eax, [ebp - 0x11c]
pop ecx
push edi
push eax
lea eax, [ebp - 0x220]
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateScalableFontResourceA]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceA]
lea eax, [ebp - 0x220]
push edi
push eax
mov ecx, esi
call fcn.0041ed73
push edi
push ebx
mov ecx, esi
call fcn.0041ed73
lea eax, [ebp - 0x11c]
push edi
push eax
mov ecx, esi
call fcn.0041ed73
push edi
push ebx
mov ecx, esi
call fcn.0041ed73
lea ecx, [ebp - 0x14]
call fcn.0041ebe6
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jl 0x41c73c
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x14]
call fcn.0041ebe6
xor al, al
jmp 0x41c86b

Function at 0x41c889
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0x4826e0
lea ecx, [ebp - 0xc]
call fcn.0041eb84
xor ebx, ebx
lea ecx, [ebp - 0xc]
push ebx
push str._inst_m
call fcn.0041ed73
lea ecx, [ebp - 0xc]
call fcn.0041fa6a
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41c906
mov ecx, 0x482c38
call fcn.0041fa6a
push eax
push str.AstrumInstaller
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
cmp esi, ebx
je 0x41c904
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x41c8fd
push 3
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov bl, 1
lea ecx, [ebp - 0xc]
call fcn.0041ebe6
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x41c9cb
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push ebx
xor ebx, ebx
cmp dword [0x4829cc], ebx
push esi
je 0x41ca53
lea eax, [ebp - 4]
mov ecx, 0x482934
push eax
mov eax, dword [0x483658]
or eax, 0x20019
mov dword [ebp - 4], ebx
push eax
push ebx
call fcn.0041fa6a
push eax
push dword [0x482930]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41ca53
push edi
push 0x4d
pop ecx
lea edi, [ebp - 0x19f]
mov byte [ebp - 0x1a0], bl
mov dword [ebp - 0x14], 0x136
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1a0]
push eax
push ebx
push ebx
push str.AutorunCommand
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
pop edi
je 0x41ca5a
xor al, al
jmp 0x41cae6
lea eax, [ebp - 0x1a0]
lea ecx, [ebp - 0x10]
push eax
call fcn.0041eb20
push ebx
lea ecx, [ebp - 0x10]
call fcn.0041f608
cmp al, 0x22
je 0x41ca8b
push ebx
push 0x22
lea ecx, [ebp - 0x10]
call fcn.0041f742
push 0x22
lea ecx, [ebp - 0x10]
call fcn.0041ed24
push 0x44
lea eax, [ebp - 0x68]
pop esi
push esi
push ebx
push eax
call fcn.00427c50
push 0x10
lea eax, [ebp - 0x24]
push ebx
push eax
mov dword [ebp - 0x68], esi
call fcn.00427c50
add esp, 0x18
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
call fcn.0041fa6a
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x41cadc
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea ecx, [ebp - 0x10]
call fcn.0041ebe6
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x41dd5b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x4829c8], edi
mov esi, ecx
mov ebx, 0x42fb7c
je 0x41ddd3
and byte [ebp - 0x110], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x110]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
add esi, 0x124
lea eax, [ebp - 0x110]
push eax
mov ecx, esi
call fcn.0041ec53
mov eax, dword [esi]
mov ecx, esi
dec eax
push eax
call fcn.0041f608
cmp al, 0x5c
jne 0x41de01
mov eax, dword [esi]
push 1
dec eax
mov ecx, esi
push eax
call fcn.0041f0d5
jmp 0x41de01
add esi, 0x124
push 0x482a88
mov ecx, esi
call fcn.0041ecc1
push 1
push edi
push ebx
mov ecx, esi
call fcn.0041f507
push eax
push edi
mov ecx, esi
call fcn.0041f9d6
push eax
mov ecx, esi
call fcn.0041ecc1
cmp dword [0x4829c8], 0
je 0x41de9f
and byte [ebp - 0x110], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x110]
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x110]
lea ecx, [ebp - 0xc]
push eax
call fcn.0041eb20
push 1
push esi
push ebx
lea ecx, [ebp - 0xc]
call fcn.0041f507
cmp eax, 0xffffffff
je 0x41de97
mov ecx, dword [ebp - 0xc]
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0xc]
call fcn.0041f0d5
push 1
push esi
push ebx
lea ecx, [ebp - 0xc]
call fcn.0041f507
cmp eax, 0xffffffff
je 0x41de97
mov ecx, dword [ebp - 0xc]
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0xc]
call fcn.0041f0d5
lea eax, [ebp - 0xc]
mov ecx, 0x4829e0
push eax
call fcn.0041ecc1
lea ecx, [ebp - 0xc]
jmp 0x41df5d
and byte [ebp - 0x110], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x110]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp byte [ebp - 0x110], 0
je 0x41df62
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x111], 0x5c
je 0x41defa
lea eax, [ebp - 0x110]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
lea ecx, [ebp - 0xc]
and esi, 0x7fffffff
call fcn.0041eab0
push 0x432428
lea ecx, [ebp - 0xc]
call fcn.0041ec53
mov eax, esi
inc esi
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xc]
push str._sinst_d
push eax
call fcn.0041f193
add esp, 0x10
lea ecx, [ebp - 0xc]
call fcn.0041fa6a
push eax
call fcn.0040f25b
test al, al
pop ecx
jne 0x41df10
lea eax, [ebp - 0xc]
mov ecx, 0x4829e0
push eax
call fcn.0041ecc1
lea ecx, [ebp - 0xc]
call fcn.0041ebe6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41e1b3
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea esi, [ecx + 0x164]
xor ebx, ebx
push edi
mov ecx, dword [esi]
cmp ecx, ebx
je 0x41e1d0
push ebx
call fcn.00407e40
mov dword [esi], ebx
push dword [0x4824fc]
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [0x482b38], ebx
je 0x41e213
cmp byte [0x483665], 0
je 0x41e1f7
push ebx
call dword [0x482adc]
pop ecx
cmp byte [0x483664], 0
je 0x41e209
push 1
call dword [0x482adc]
pop ecx
mov ecx, 0x482ad8
call fcn.00421983
mov ecx, 0x482648
call fcn.0041ea18
cmp byte [ebp + 8], 0
je 0x41e239
mov eax, dword [0x483644]
cmp eax, ebx
je 0x41e239
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x483644], ebx
cmp dword [0x482b4c], ebx
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp + 8], ebx
jle 0x41e272
xor edi, edi
mov eax, dword [0x482b48]
cmp dword [edi + eax], ebx
lea ecx, [edi + eax]
jbe 0x41e261
call fcn.0041fa6a
push eax
call esi
inc dword [ebp + 8]
add edi, 0xc
mov eax, dword [ebp + 8]
cmp eax, dword [0x482b4c]
jl 0x41e24c
cmp dword [0x4828d4], ebx
mov dword [ebp + 8], ebx
mov edi, 0x4828c8
jle 0x41e2bc
push dword [ebp + 8]
mov ecx, edi
call fcn.00421b62
mov ebx, eax
lea ecx, [ebx + 4]
call fcn.0041fa6a
push eax
call esi
test ebx, ebx
je 0x41e2ac
lea ecx, [ebx + 4]
call fcn.0041ebe6
push ebx
call fcn.0042851e
pop ecx
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [0x4828d4]
jl 0x41e282
xor ebx, ebx
mov ecx, edi
call fcn.00421c23
lea ecx, [ebp - 0x10]
call fcn.0041eab0
mov dword [ebp - 4], ebx
push ebx
mov edi, 0x482918
mov ecx, edi
call fcn.0041f713
test al, al
je 0x41e313
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
inc ebx
call fcn.0041f670
test bl, 1
je 0x41e303
lea ecx, [ebp - 0x10]
call fcn.0041fa6a
push eax
call dword [sym.imp.GDI32.dll_RemoveFontResourceA]
lea ecx, [ebp - 0x10]
call fcn.0041fa6a
push eax
call esi
push dword [ebp - 4]
jmp 0x41e2d4
push 0x432428
mov ecx, edi
call fcn.0041ec53
mov ecx, 0x482304
call fcn.0041fa6a
push eax
call esi
mov ecx, 0x482310
call fcn.0041fa6a
push eax
call esi
mov ecx, 0x4822f8
call fcn.0041fa6a
push eax
call esi
mov ecx, 0x482b70
call fcn.0041fa6a
push eax
call esi
push dword [0x4824f8]
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [ebp - 0x10]
call fcn.0041ebe6
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41e371
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x14]
call fcn.0041eab0
push str.___Internal_InstallationNotFound___
call fcn.004202db
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x41e39e
mov esi, str.The__s_installation_couldnt_be_found._Try_re_installing_the_application_before_running_the_update.
mov ecx, 0x4826d4
call fcn.0041fa6a
push eax
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0041f193
add esp, 0xc
lea eax, [ebp - 4]
mov ecx, 0x482934
push eax
mov eax, dword [0x483658]
or eax, 0x20019
push eax
push ebx
call fcn.0041fa6a
push eax
push dword [0x482930]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41e448
cmp dword [0x482940], ebx
jne 0x41e3ff
cmp dword [0x48294c], ebx
jne 0x41e3ff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41e48a
mov eax, 0x104
mov dword [ebp - 8], eax
push eax
lea eax, [ebp - 0x118]
push ebx
push eax
call fcn.00427c50
add esp, 0xc
lea eax, [ebp - 8]
mov ecx, 0x482940
push eax
lea eax, [ebp - 0x118]
push eax
push ebx
push ebx
call fcn.0041fa6a
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x41e482
cmp dword [0x482a74], ebx
je 0x41e46b
and dword [0x482504], 0xffffffbf
push ebx
push str._IsUpdate_
call fcn.004205d4
mov ecx, edi
call fcn.004185d1
jmp 0x41e48a
push ebx
lea ecx, [ebp - 0x14]
call fcn.0041fa6a
push eax
push ebx
mov ecx, 0x482320
call fcn.0041df67
jmp 0x41e4ae
cmp dword [0x48294c], ebx
jne 0x41e48e
mov bl, 1
jmp 0x41e4ae
test byte [0x482509], 0x20
lea eax, [ebp - 0x118]
mov ecx, edi
push eax
je 0x41e4a7
call fcn.0041e4bd
jmp 0x41e4ac
call fcn.0041e5d5
mov bl, al
lea ecx, [ebp - 0x14]
call fcn.0041ebe6
pop edi
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x41f806
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x41f83c
push 0xfffffffffffffffd
pop eax
jmp 0x41f903
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 4]
push 2
push ecx
push ebx
push eax
mov dword [ebp - 4], ebx
call edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push ebx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp + 0xc], ecx
jbe 0x41f86d
mov dword [ebp + 0xc], ecx
sub ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
cmp ecx, eax
jb 0x41f87d
cmp eax, ebx
ja 0x41f87f
mov dword [esi], ecx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esi]
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [esi], ebx
mov dword [esi + 8], eax
jne 0x41f8b9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41f903
cmp dword [esi + 4], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x41f8da
push dword [ebp + 8]
call edi
mov ecx, 0x482cfc
call fcn.0041fa6a
push eax
call fcn.00420722
pop ecx
lea eax, [ebp - 8]
push ebx
push eax
mov dword [ebp - 8], ebx
push dword [esi]
push dword [esi + 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 8]
call edi
mov ecx, dword [ebp - 8]
xor eax, eax
cmp ecx, dword [esi]
sete al
dec eax
and al, 0xfe
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41fb5a
Capabilities:
Check if file exists
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41fb77
xor ebx, ebx
xor esi, esi
test bl, 2
je 0x41fb81
push 2
pop esi
test bl, 0x20
je 0x41fb89
or esi, 0x20
test esi, esi
jne 0x41fb92
mov esi, 0x80
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test bl, 1
je 0x41fba7
mov eax, ebx
and al, 0xfe
push eax
push dword [ebp + 8]
call edi
xor eax, eax
push eax
push esi
push 2
push eax
push eax
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41fbc8
push 0xfffffffffffffffd
jmp 0x41fc02
lea eax, [ebp - 4]
push 0
push eax
mov eax, dword [ebp - 8]
and dword [ebp - 4], 0
push dword [eax]
push dword [eax + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp eax, dword [ecx]
je 0x41fbf6
push 0xfffffffffffffffe
jmp 0x41fc02
test ebx, ebx
je 0x41fc00
push ebx
push dword [ebp + 8]
call edi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4207b2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
push 0x432428
call fcn.0041ec53
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, 0xfffffc00
mov ecx, edx
and eax, esi
test ecx, ecx
ja 0x420805
jb 0x4207e4
cmp eax, 0x100000
jae 0x420805
mov eax, dword [ebp + 8]
push 0xa
pop ecx
call fcn.00428920
push eax
push str._d_KB
push dword [ebp + 0x10]
call fcn.0041f193
add esp, 0xc
jmp 0x420936
mov eax, dword [ebp + 8]
push 0xa
pop ecx
call fcn.00428920
and byte [ebp - 0xc], 0
mov ebx, eax
xor eax, eax
lea edi, [ebp - 0xb]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0xc]
push 0xa
push eax
push 0xe
push 0x400
mov dword [ebp + 0xc], edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x420847
lea eax, [ebp - 0xc]
push 0x42ff58
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [ebp + 0xc]
mov eax, ebx
mov ecx, edi
and eax, esi
test ecx, ecx
ja 0x420896
jb 0x42085d
cmp eax, 0x100000
jae 0x420896
push 0xa
mov eax, ebx
pop ecx
mov edx, edi
call fcn.00428920
mov esi, eax
xor ecx, ecx
shl eax, 0xa
sub ebx, eax
push ecx
sbb edi, ecx
push 0x64
push edi
push ebx
call fcn.00428c80
cmp eax, 0xa
jb 0x420886
push 9
pop eax
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push str._d_s_d_MB
jmp 0x42092b
push 0xa
mov eax, ebx
pop ecx
mov edx, edi
call fcn.00428920
mov edi, eax
mov ebx, edx
and eax, esi
test ebx, ebx
ja 0x4208eb
jb 0x4208b5
cmp eax, 0x100000
jae 0x4208eb
push 0xa
mov eax, edi
pop ecx
mov edx, ebx
call fcn.00428920
mov esi, eax
xor ecx, ecx
shl eax, 0xa
sub edi, eax
push ecx
sbb ebx, ecx
push 0x64
push ebx
push edi
call fcn.00428c80
cmp eax, 0xa
jb 0x4208de
push 9
pop eax
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push str._d_s_d_GB
jmp 0x42092b
push 0xa
mov eax, edi
pop ecx
mov edx, ebx
call fcn.00428920
push 0xa
mov esi, eax
pop ecx
mov edi, edx
call fcn.00428920
mov ebx, eax
xor ecx, ecx
shl eax, 0xa
sub esi, eax
push ecx
sbb edi, ecx
push 0x64
push edi
push esi
call fcn.00428c80
cmp eax, 0xa
jb 0x420920
push 9
pop eax
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str._d_s_d_TB
push dword [ebp + 0x10]
call fcn.0041f193
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret