joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..retplne
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x66526ae4
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x101d642d
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x40b88b
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x9c
and dword [ebp + 0x74], 0
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x14], 2
pop edi
jne 0x40b91d
cmp dword [ebp - 0x20], 6
je 0x40b918
cmp dword [ebp - 0x20], 5
jne 0x40b91d
cmp dword [ebp - 0x1c], 1
jae 0x40b918
lea eax, [ebp - 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b8d5
sub eax, edx
mov dword [ebp + 0x70], eax
je 0x40b90c
lea eax, [ebp - 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b8e9
sub eax, edx
mov dword [ebp + 0x70], eax
je 0x40b90c
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp - 0x10]
push 0x422014
push eax
call fcn.00413f81
add esp, 0xc
cmp dword [ebp - 0x1c], 0
jne 0x40b91d
cmp dword [ebp + 0x74], 2
jb 0x40b91d
xor eax, eax
inc eax
jmp 0x40b91f
xor eax, eax
add ebp, 0x78
leave
ret

Function at 0x40b924
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xc], 2
pop edi
jne 0x40b96b
cmp dword [ebp - 0x18], 6
jne 0x40b95d
xor eax, eax
inc eax
jmp 0x40b96d
cmp dword [ebp - 0x18], 5
jne 0x40b96b
xor eax, eax
inc eax
cmp dword [ebp - 0x14], eax
je 0x40b96d
xor eax, eax
add ebp, 0x78
leave
ret

Function at 0x40b9be
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push 0x422350
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40b9e5
xor eax, eax
leave
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x422378
push dword [ebp - 4]
call esi
push 0x422388
push dword [ebp - 4]
call esi
push 0x422398
push dword [ebp - 4]
call esi
push 0x4223ac
push dword [ebp - 4]
call esi
push str.UpdateTitle2
push dword [ebp - 4]
call esi
push 0x4223cc
push dword [ebp - 4]
call esi
push 0x4223e0
push dword [ebp - 4]
call esi
push 0x4223f0
push dword [ebp - 4]
call esi
push 0x4223fc
push dword [ebp - 4]
call esi
push 0x422408
push dword [ebp - 4]
call esi
push 0x422414
push dword [ebp - 4]
call esi
push 0x422420
push dword [ebp - 4]
call esi
push str.NumTries
push dword [ebp - 4]
call esi
push 0x422434
push dword [ebp - 4]
call esi
push 0x422444
push dword [ebp - 4]
call esi
call fcn.0040b924
test eax, eax
je 0x40ba95
push 0x422458
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x40bb04
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x422504
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bb74
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x42252c
push dword [ebp - 4]
call esi
push 0x42253c
push dword [ebp - 4]
call esi
push 0x422548
push dword [ebp - 4]
call esi
push 0x422558
push dword [ebp - 4]
call esi
push 0x42256c
push dword [ebp - 4]
call esi
push 0x422580
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret

Function at 0x40bb76
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 0x422590
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.AllocateAndInitializeSid
push edi
call esi
push 0x4225bc
push edi
mov dword [ebp - 8], eax
call esi
push 0x4225d0
push edi
mov dword [ebp - 0x18], eax
call esi
push str.EqualSid
push edi
mov dword [ebp - 0x10], eax
call esi
push str.FreeSid
push edi
mov dword [ebp - 0x1c], eax
call esi
xor ebx, ebx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 0x28], bl
mov byte [ebp - 0x27], bl
mov byte [ebp - 0x26], bl
mov byte [ebp - 0x25], bl
mov byte [ebp - 0x24], bl
mov byte [ebp - 0x23], 5
mov dword [ebp - 0x14], ebx
call dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push 8
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x18]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
call dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.00413950
pop ecx
mov esi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 2
push dword [ebp - 0xc]
call dword [ebp - 0x10]
cmp dword [esi], ebx
mov dword [ebp - 8], ebx
jbe 0x40bc64
lea eax, [esi + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push dword [eax]
push dword [ebp - 0x14]
call dword [ebp - 0x1c]
test eax, eax
jne 0x40bc64
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add dword [ebp - 0x10], 8
cmp eax, dword [esi]
jb 0x40bc47
mov ecx, dword [ebp - 8]
xor eax, eax
cmp ecx, dword [esi]
push esi
setne al
mov dword [ebp - 0x1c], eax
call fcn.00413155
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [ebp - 0x20]
cmp edi, ebx
je 0x40bc92
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c059
Capabilities:
Get common file path
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
lea eax, [ebp - 8]
push edi
push eax
call fcn.00413f48
lea eax, [ebp - 8]
push eax
call fcn.004140c0
xor edi, edi
cmp eax, edi
pop ecx
pop ecx
mov byte [ebp - 0x20c], 0
je 0x40c0a6
push eax
call fcn.00413fb5
cmp eax, edi
pop ecx
je 0x40c0a6
push eax
lea eax, [ebp - 0x20c]
push str._n_s::
push eax
call fcn.00413cde
add esp, 0xc
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x10c]
push eax
push str.TMPDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test eax, eax
lea eax, [ebp - 0x10c]
jne 0x40c0d8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x40c0e0
push 0x422ca0
push eax
call esi
push str.jusched.log
lea eax, [ebp - 0x10c]
push eax
call esi
push edi
push 0x80
push 4
push edi
push 2
push 0x40000000
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40c15b
push 2
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call esi
push eax
push dword [ebp + 8]
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c160
Capabilities:
Check os version

Disassembly:
push 0xa4
push 0x422ec0
call fcn.00413000
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0xb4], 0x94
push 0x24
pop ecx
xor eax, eax
lea edi, [ebp - 0xb0]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa4], 2
jne 0x40c1e2
cmp dword [ebp - 0xb0], 5
jb 0x40c1e2
mov dword [ebp - 4], esi
push 0x422cec
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x40c1d9
push 0x422cf8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c1d9
mov dword [ebp - 0x20], 1
or dword [ebp - 4], 0xffffffff
call fcn.0040c1eb
mov eax, dword [ebp - 0x20]
call fcn.0041303b
ret

Function at 0x40c2a7
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
push 0x422ddc
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c2de
push 0x422e04
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x40c2e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
lea eax, [ebp - 0x10]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x422e1c
push 0x80000001
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], 0x64
mov dword [ebp - 0xc], 0x200
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40c373
call fcn.0040c160
test eax, eax
je 0x40c346
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 8]
push 4
push eax
call fcn.0040c1fb
add esp, 0x10
jmp 0x40c34f
mov eax, dword [ebp - 8]
mov dword [ebp - 0x210], eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x210]
push eax
push 3
push esi
push str.EnableAutoUpdateCheck
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret

Function at 0x40c530
Capabilities:
Get common file path
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x640
push edi
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x640]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push dword [ebp + 8]
mov byte [ebp - 0x240], 0
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0xc], 0x400
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
pop edi
je 0x40c5b6
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x140]
push eax
push 0
lea eax, [ebp - 0x640]
push 0
push eax
call fcn.0041426d
lea eax, [ebp - 0x140]
push 0x422eac
push eax
call fcn.00413d40
add esp, 0x1c
test eax, eax
je 0x40c5d6
push 1
push dword [ebp + 8]
call fcn.0040c4f9
push eax
lea eax, [ebp - 0x140]
push str.jupdate__x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push esi
push dword [ebp + 0xc]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 0xc]
call esi
lea eax, [ebp - 0x240]
push eax
push dword [ebp + 0xc]
call esi
pop esi
leave
ret

Function at 0x40c606
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, ebx
je 0x40c655
cmp dword [ebp - 4], ebx
jbe 0x40c652
cmp dword [ebp - 4], 2
jbe 0x40c65c
cmp dword [ebp - 4], 7
jne 0x40c652
mov ecx, dword [edi]
cmp ecx, 2
jb 0x40c652
add ecx, esi
cmp byte [ecx - 1], bl
jne 0x40c652
cmp byte [ecx - 2], bl
je 0x40c655
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
mov ecx, dword [edi]
cmp byte [ecx + esi - 1], bl
jmp 0x40c650
Function at 0x40c87a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
inc edi
cmp eax, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
jne 0x40c8bf
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x421c2c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 4], ebx
je 0x40c8c2
mov dword [ebp - 8], edi
jmp 0x40c8c2
mov dword [ebp - 4], eax
push dword [ebp + 0x14]
lea eax, [ebp + 8]
push dword [ebp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, ebx
jne 0x40c8e4
mov dword [ebp - 0xc], edi
jmp 0x40c92f
cmp esi, 2
je 0x40c92f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
xor eax, eax
mov byte [ebp - 0x40c], bl
mov ecx, 0xff
lea edi, [ebp - 0x40b]
rep stosd dword es:[edi], eax
push edx
stosw word es:[edi], ax
push esi
push dword [ebp + 0xc]
stosb byte es:[edi], al
lea eax, [ebp - 0x40c]
push str.RegQueryValueEx__s_:_Error:_d__ErrorCode:_d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x40c]
push eax
call fcn.0040c059
add esp, 0x18
cmp dword [ebp - 8], ebx
pop edi
pop esi
pop ebx
je 0x40c940
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x40caec
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
xor esi, esi
cmp eax, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
jne 0x40cb40
cmp ebx, edi
lea eax, [ebp - 4]
jne 0x40cb28
push eax
push 0x2001f
push edi
push 0x421f70
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x40cb32
push 1
push eax
call fcn.0040c7a5
pop ecx
pop ecx
cmp dword [ebp - 4], edi
je 0x40cb87
mov dword [ebp - 8], 1
jmp 0x40cb43
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
je 0x40cb79
cmp ebx, edi
jne 0x40cb5a
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40cb72
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
push 1
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp - 8], edi
je 0x40cb87
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40cc59
Capabilities:
Get common file path
Query environment variable
Write file on windows

Disassembly:
call fcn.0040cb8e
test eax, eax
je 0x40cc67
jmp fcn.0040c059
ret
Function at 0x40ce05
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 4]
push 1
push eax
xor edi, edi
call fcn.0040c7a5
test eax, eax
pop ecx
pop ecx
je 0x40cf12
lea eax, [ebp - 0xc]
push eax
push 0x2001f
push edi
push 0x421b5c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40cf12
push esi
lea eax, [ebp - 8]
push eax
push 0x421b84
push dword [ebp - 4]
call fcn.0040c945
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
add esp, 0xc
test eax, eax
jne 0x40ce9e
lea eax, [ebp - 8]
push eax
push 0x421b90
push dword [ebp - 0xc]
call fcn.0040c945
add esp, 0xc
test eax, eax
je 0x40ce9e
push dword [ebp - 8]
push 0x421b9c
push dword [ebp - 4]
call fcn.0040b78b
add esp, 0xc
test eax, eax
je 0x40ce9e
push 0x421ba8
push dword [ebp - 0xc]
call esi
inc edi
lea eax, [ebp - 8]
push eax
push 0x421bb4
push dword [ebp - 4]
call fcn.0040c945
add esp, 0xc
test eax, eax
jne 0x40cef2
lea eax, [ebp - 8]
push eax
push 0x421bc4
push dword [ebp - 0xc]
call fcn.0040c945
add esp, 0xc
test eax, eax
je 0x40cef2
push dword [ebp - 8]
push 0x421bd4
push dword [ebp - 4]
call fcn.0040b78b
add esp, 0xc
test eax, eax
je 0x40cef2
push 0x421be4
push dword [ebp - 0xc]
call esi
xor edi, edi
inc edi
test edi, edi
jne 0x40cf01
push edi
push dword [ebp - 4]
call fcn.0040cbba
pop ecx
pop ecx
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0xc]
call esi
pop esi
pop edi
leave
ret
Function at 0x40d25c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x114
push esi
push edi
mov esi, 0x20019
push esi
xor edi, edi
push str.SOFTWARE
push 0x80000002
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x68], edi
mov dword [ebp + 0x6c], edi
mov dword [ebp + 0x70], edi
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x64], edi
call fcn.00402e4b
test eax, eax
je 0x40d29d
xor esi, esi
jmp 0x40d379
push esi
push 0x4220a8
push dword [ebp + 0x68]
lea ecx, [ebp + 0x6c]
call fcn.00402e4b
test eax, eax
jne 0x40d296
push esi
push str.Java_Runtime_Environment
push dword [ebp + 0x6c]
lea ecx, [ebp + 0x70]
call fcn.00402e4b
test eax, eax
jne 0x40d296
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0x80
mov byte [ebp - 0xa0], al
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp + 0x70]
call ebx
test eax, eax
jne 0x40d375
inc dword [ebp + 0x60]
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jle 0x40d343
push 9
mov edi, 0x4220d0
lea esi, [ebp - 0x20]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40d341
lea eax, [ebp - 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d31a
sub eax, edx
cmp eax, 3
jbe 0x40d341
xor eax, eax
mov cl, byte [ebp + eax - 0x20]
mov byte [ebp + eax - 0xa0], cl
inc eax
test cl, cl
jne 0x40d32a
mov dword [ebp + 0x64], 1
xor edi, edi
push 0x80
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x60]
push dword [ebp + 0x70]
call ebx
test eax, eax
je 0x40d2eb
cmp dword [ebp + 0x64], edi
je 0x40d375
lea eax, [ebp - 0xa0]
push eax
push 0x4220dc
push dword [ebp + 0x7c]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov esi, dword [ebp + 0x64]
pop ebx
lea ecx, [ebp + 0x70]
call fcn.00402e34
lea ecx, [ebp + 0x6c]
call fcn.00402e34
lea ecx, [ebp + 0x68]
call fcn.00402e34
pop edi
mov eax, esi
pop esi
add ebp, 0x74
leave
ret
Function at 0x40d39a
Capabilities:
Delete file
Delete registry value
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
push edi
mov edi, 0x400
lea eax, [ebp - 0x40c]
push edi
push eax
call fcn.0040cc68
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ecx
pop ecx
jl 0x40d3cd
lea eax, [ebp - 0x40c]
push eax
call esi
lea eax, [ebp - 0x40c]
push eax
call fcn.0040cf15
test eax, eax
pop ecx
je 0x40d3f6
lea eax, [ebp - 0x40c]
push eax
push eax
call fcn.0040c530
pop ecx
pop ecx
lea eax, [ebp - 0x40c]
push eax
call esi
call fcn.0040b9be
xor esi, esi
push esi
push str.PreDownldStatus
push esi
call fcn.0040caec
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
add esp, 0xc
push edi
lea eax, [ebp - 0x40c]
push eax
mov dword [ebp - 0xc], esi
push esi
mov esi, 0x80000003
jmp 0x40d48b
inc dword [ebp - 0xc]
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push 0x20019
lea eax, [ebp - 0x40c]
push eax
push esi
lea ecx, [ebp - 4]
call fcn.00402e4b
test eax, eax
lea ecx, [ebp - 8]
jne 0x40d473
push 0x2001f
push 0x422318
push dword [ebp - 4]
call fcn.00402e4b
test eax, eax
jne 0x40d470
push str.VersionXmlURL
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [ebp - 8]
call fcn.00402e34
lea ecx, [ebp - 4]
call fcn.00402e34
push edi
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0xc]
push esi
call ebx
test eax, eax
je 0x40d425
pop edi
pop esi
pop ebx
leave
ret