joyce8/EMBER2024-capa huggingface dataset:
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 reloc.OLEAUT32.dll_SysReAllocString
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 reloc.OLEAUT32.dll_SysReAllocString
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 0x40bc9a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
push 0x27
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], 0x9c
call esi
test eax, eax
jne 0x40bcd9
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x94
call esi
test eax, eax
je 0x40bcf5
cmp dword [ebp - 0x14], 2
jne 0x40bcf2
cmp dword [ebp - 0x20], 6
jae 0x40bcf2
cmp dword [ebp - 0x20], 4
jb 0x40bcf2
call fcn.0040bb76
jmp 0x40bcf5
xor eax, eax
inc eax
pop edi
pop esi
add ebp, 0x78
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 SysReAllocStringLen
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 SysReAllocStringLen
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 reloc.OLEAUT32.dll_SysReAllocString
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 reloc.OLEAUT32.dll_SysReAllocString
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 SysReAllocStringLen
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 reloc.OLEAUT32.dll_SysReAllocString
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, SysReAllocStringLen
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
Function at 0x40f06b
Capabilities:
Delete registry value
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x218
push ebx
lea eax, [ebp + 0x6c]
push 1
push eax
call fcn.0040c7a5
pop ecx
xor ebx, ebx
test eax, eax
pop ecx
je 0x40f249
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x423354
lea eax, [ebp + 0x64]
push eax
mov dword [ebp + 0x70], 4
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x68]
push eax
push ebx
push 0x423358
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], 3
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp + 0x68]
push eax
push ebx
push 0x423360
push dword [ebp + 0x6c]
mov byte [ebp - 0x1a4], bl
mov dword [ebp + 0x70], 0x100
call esi
push 0x423370
lea eax, [ebp - 0x24]
push eax
call edi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x68]
push eax
push ebx
push 0x423374
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], 0x80
call esi
push 0x423388
lea eax, [ebp - 0xa4]
push eax
call edi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp + 0x68]
push eax
push ebx
push 0x42338c
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], 0x80
call esi
push 4
pop edi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x68]
push eax
push ebx
push 0x42339c
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], edi
call esi
test eax, eax
jne 0x40f1a9
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp + 0x64]
push eax
push 0x4233ac
lea eax, [ebp - 0x1a4]
push ebx
push eax
call fcn.0040d683
add esp, 0x34
test eax, eax
je 0x40f1a9
push 0x4233b0
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x68]
push eax
push ebx
push 0x4233c0
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], edi
mov dword [ebp + 0x60], ebx
call esi
test eax, eax
jne 0x40f23e
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x68]
push eax
push ebx
push 0x4233d0
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], edi
mov dword [ebp + 0x5c], ebx
call esi
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0x5c]
lea eax, [ebp - 0x24]
push dword [ebp + 0x60]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp + 0x64]
push eax
push 0x4233e4
lea eax, [ebp - 0x1a4]
push ebx
push eax
call fcn.0040d683
add esp, 0x34
test eax, eax
je 0x40f23e
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x4233e8
push dword [ebp + 0x6c]
call esi
push 0x4233fc
push dword [ebp + 0x6c]
call esi
push 0x423410
push dword [ebp + 0x6c]
call esi
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov dword [0x429854], ebx
xor eax, eax
pop ebx
add ebp, 0x74
leave
ret 4