joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403309
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x403314
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x40392d
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push 0x460
push 0x41f9a8
call fcn.00412374
xor ebx, ebx
inc ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], 4
xor esi, esi
push esi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x403961
mov eax, ebx
jmp 0x403aaa
push str.http:__java.sun.com
push 0x41f91c
lea eax, [ebp - 0x170]
push eax
call fcn.0041304e
add esp, 0xc
mov dword [ebp - 4], esi
push esi
push esi
push esi
push esi
push 0x41f920
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x24], eax
cmp eax, esi
je 0x403a9e
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x70]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x70], 0x3c
lea eax, [ebp - 0x370]
mov dword [ebp - 0x60], eax
mov eax, pe_nt_image_headers32
mov dword [ebp - 0x5c], eax
mov word [ebp - 0x58], si
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x470]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x70]
push eax
push esi
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push esi
push esi
push 3
push 0x41f928
push 0x41f929
push dword [ebp - 0x58]
push dword [ebp - 0x60]
push dword [ebp - 0x24]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x2c], eax
cmp eax, esi
je 0x403a9e
push esi
push 0x4400000
push esi
push 0x41f92a
push 0x41f92c
lea ecx, [ebp - 0x270]
push ecx
push 0x41f938
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
mov dword [ebp - 0x28], edi
cmp edi, esi
je 0x403a9e
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x403a76
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
sub eax, 0x2ee2
je 0x403a73
sub eax, 5
je 0x403a73
sub eax, 0x16
jne 0x403a76
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
push esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x20000013
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x403a9e
cmp dword [ebp - 0x20], 0x197
jne 0x403a9e
mov dword [ebp - 0x1c], ebx
or dword [ebp - 4], 0xffffffff
call fcn.00403ab2
mov eax, dword [ebp - 0x1c]
call fcn.004123af
ret
Function at 0x404e02
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor esi, esi
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push esi
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], si
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x404e86
cmp dword [ebp + 0xc], esi
je 0x404e71
push dword [ebp - 0x14]
call fcn.004049c4
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 4], 0x669
jne 0x404e74
mov dword [ebp - 4], esi
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
jmp 0x404e8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x40af64
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
xor ebx, ebx
push ebx
push ebx
mov dword [esi + 0xc], 0xbc2
mov eax, dword [0x4288b0]
push 1
push ebx
mov dword [esi + 0x18], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x20], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x38], eax
call fcn.0040b5fc
mov dword [esi + 0x3c], eax
call fcn.0040e618
push dword [esi + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [esi + 0x40], eax
call edi
push dword [esi + 0x24]
call edi
push dword [esi + 0x38]
call edi
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x40ae8d
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x40afeb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x20]
call edi
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
mov ebx, 0x104
push ebx
lea eax, [esi + 0x58]
push eax
push 0x7b
push dword [esi + 0x18]
call edi
push ebx
lea eax, [ebp - 0x104]
push eax
push 0x7c
push dword [esi + 0x18]
call edi
lea eax, [ebp - 0x104]
push eax
mov ecx, esi
call fcn.0040a8d0
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4

Function at 0x40b2b5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
push ebx
xor ebx, ebx
test eax, eax
push esi
jne 0x40b2ea
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x4207e8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 4], ebx
je 0x40b2ed
inc ebx
jmp 0x40b2ed
mov dword [ebp - 4], eax
push dword [ebp + 0x14]
lea eax, [ebp + 8]
push dword [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
test ebx, ebx
je 0x40b319
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40b341
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
lea eax, [ebp - 8]
push eax
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x420948
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40b374
xor eax, eax
jmp 0x40b3c8
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0x1e
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_InternetTimeFromSystemTime]
test eax, eax
jne 0x40b396
mov byte [ebp - 0x38], bl
push esi
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x38]
push eax
push 1
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40b3cb
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 0x40b45d
cmp dword [ebp - 0x20], 6
je 0x40b458
cmp dword [ebp - 0x20], 5
jne 0x40b45d
cmp dword [ebp - 0x1c], 1
jae 0x40b458
lea eax, [ebp - 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b415
sub eax, edx
mov dword [ebp + 0x70], eax
je 0x40b44c
lea eax, [ebp - 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b429
sub eax, edx
mov dword [ebp + 0x70], eax
je 0x40b44c
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp - 0x10]
push 0x4209a4
push eax
call fcn.004132f1
add esp, 0xc
cmp dword [ebp - 0x1c], 0
jne 0x40b45d
cmp dword [ebp + 0x74], 2
jb 0x40b45d
xor eax, eax
inc eax
jmp 0x40b45f
xor eax, eax
add ebp, 0x78
leave
ret

Function at 0x40b464
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 0x40b4ab
cmp dword [ebp - 0x18], 6
jne 0x40b49d
xor eax, eax
inc eax
jmp 0x40b4ad
cmp dword [ebp - 0x18], 5
jne 0x40b4ab
xor eax, eax
inc eax
cmp dword [ebp - 0x14], eax
je 0x40b4ad
xor eax, eax
add ebp, 0x78
leave
ret
Function at 0x40b52a
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push 0x420c44
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40b551
xor eax, eax
leave
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x420c6c
push dword [ebp - 4]
call esi
push 0x420c7c
push dword [ebp - 4]
call esi
push 0x420c8c
push dword [ebp - 4]
call esi
push 0x420ca0
push dword [ebp - 4]
call esi
push 0x420cb0
push dword [ebp - 4]
call esi
push 0x420cc0
push dword [ebp - 4]
call esi
push 0x420cd4
push dword [ebp - 4]
call esi
push 0x420ce4
push dword [ebp - 4]
call esi
push 0x420cf0
push dword [ebp - 4]
call esi
push 0x420cfc
push dword [ebp - 4]
call esi
push 0x420d08
push dword [ebp - 4]
call esi
push 0x420d14
push dword [ebp - 4]
call esi
push str.NumTries
push dword [ebp - 4]
call esi
call fcn.0040b464
test eax, eax
je 0x40b5ed
push 0x420d28
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 0x40b6df
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x420dd4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b74f
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x420dfc
push dword [ebp - 4]
call esi
push 0x420e0c
push dword [ebp - 4]
call esi
push 0x420e18
push dword [ebp - 4]
call esi
push 0x420e28
push dword [ebp - 4]
call esi
push 0x420e3c
push dword [ebp - 4]
call esi
push 0x420e50
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret
Function at 0x40b751
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 0x420e60
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 0x420e8c
push edi
mov dword [ebp - 8], eax
call esi
push 0x420ea0
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.00412cc0
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 0x40b83f
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 0x40b83f
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add dword [ebp - 0x10], 8
cmp eax, dword [esi]
jb 0x40b822
mov ecx, dword [ebp - 8]
xor eax, eax
cmp ecx, dword [esi]
push esi
setne al
mov dword [ebp - 0x1c], eax
call fcn.004124c9
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 0x40b86d
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b875
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 0x40b8b4
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x94
call esi
test eax, eax
je 0x40b8d0
cmp dword [ebp - 0x14], 2
jne 0x40b8cd
cmp dword [ebp - 0x20], 6
jae 0x40b8cd
cmp dword [ebp - 0x20], 4
jb 0x40b8cd
call fcn.0040b751
jmp 0x40b8d0
xor eax, eax
inc eax
pop edi
pop esi
add ebp, 0x78
leave
ret
Function at 0x40bc17
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.004132b8
lea eax, [ebp - 8]
push eax
call fcn.00413430
xor edi, edi
cmp eax, edi
pop ecx
pop ecx
mov byte [ebp - 0x20c], 0
je 0x40bc64
push eax
call fcn.00413325
cmp eax, edi
pop ecx
je 0x40bc64
push eax
lea eax, [ebp - 0x20c]
push str._n_s::
push eax
call fcn.0041304e
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 0x40bc96
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x40bc9e
push 0x421450
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 0x40bd19
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 0x40bd1e
Capabilities:
Check os version

Disassembly:
push 0xa4
push 0x421670
call fcn.00412374
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 0x40bda0
cmp dword [ebp - 0xb0], 5
jb 0x40bda0
mov dword [ebp - 4], esi
push 0x421460
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x40bd97
push 0x42146c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40bd97
mov dword [ebp - 0x20], 1
or dword [ebp - 4], 0xffffffff
call fcn.0040bda9
mov eax, dword [ebp - 0x20]
call fcn.004123af
ret

Function at 0x40be65
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
push 0x421550
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40be9c
push 0x421578
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 0x40be9e
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 0x421590
push SysReAllocString
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 0x40bf31
call fcn.0040bd1e
test eax, eax
je 0x40bf04
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 8]
push 4
push eax
call fcn.0040bdb9
add esp, 0x10
jmp 0x40bf0d
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 0x40c0ee
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 0x40c174
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x140]
push eax
push 0
lea eax, [ebp - 0x640]
push 0
push eax
call fcn.004135dd
lea eax, [ebp - 0x140]
push 0x421620
push eax
call fcn.004130b0
add esp, 0x1c
test eax, eax
je 0x40c194
push 1
push dword [ebp + 8]
call fcn.0040c0b7
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 0x40c1c4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push esi
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x94]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x94]
push eax
xor esi, esi
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
jne 0x40c208
cmp dword [ebp - 0x90], 6
jb 0x40c208
inc esi
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x40c20e
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 0x40c25d
cmp dword [ebp - 4], ebx
jbe 0x40c25a
cmp dword [ebp - 4], 2
jbe 0x40c264
cmp dword [ebp - 4], 7
jne 0x40c25a
mov ecx, dword [edi]
cmp ecx, 2
jb 0x40c25a
add ecx, esi
cmp byte [ecx - 1], bl
jne 0x40c25a
cmp byte [ecx - 2], bl
je 0x40c25d
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
mov ecx, dword [edi]
cmp byte [ecx + esi - 1], bl
jmp 0x40c258

Function at 0x40c3d9
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 0x40c42d
cmp ebx, edi
lea eax, [ebp - 4]
jne 0x40c415
push eax
push 0x2001f
push edi
push 0x420920
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x40c41f
push 1
push eax
call fcn.0040c2b6
pop ecx
pop ecx
cmp dword [ebp - 4], edi
je 0x40c474
mov dword [ebp - 8], 1
jmp 0x40c430
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
je 0x40c466
cmp ebx, edi
jne 0x40c447
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40c45f
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 0x40c474
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

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

Disassembly:
call fcn.0040b4fe
test eax, eax
je 0x40c4ed
jmp fcn.0040bc17
ret
Function at 0x40c767
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc18
push ebx
push edi
mov ebx, 0x20019
push ebx
xor edi, edi
push 0x4209c4
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], edi
call fcn.00402dfd
test eax, eax
jne 0x40c972
push ebx
push 0x4209d0
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
call fcn.00402dfd
test eax, eax
jne 0x40c972
push ebx
push 0x4209dc
push dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.00402dfd
test eax, eax
jne 0x40c972
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0x4209f8
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 4]
call fcn.0040c20e
test eax, eax
je 0x40c81e
lea ecx, [ebp - 8]
call fcn.00402de6
lea ecx, [ebp - 4]
call fcn.00402de6
lea ecx, [ebp - 0xc]
call fcn.00402de6
lea ecx, [ebp - 0x10]
call fcn.00402de6
mov eax, edi
jmp 0x40c994
push ebx
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00402dfd
test eax, eax
jne 0x40c863
lea eax, [ebp + 0x10]
push eax
push 0x420a08
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.0040c20e
test eax, eax
jne 0x40c863
push dword [ebp + 0xc]
call fcn.0040b4b2
test eax, eax
pop ecx
je 0x40c863
cmp dword [ebp + 8], edi
je 0x40c96a
push esi
mov esi, 0x400
push esi
lea eax, [ebp - 0x418]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov byte [ebp - 0x818], 0
jmp 0x40c921
push eax
lea eax, [ebp - 0x418]
push eax
mov dword [ebp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jle 0x40c916
push ebx
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00402dfd
test eax, eax
jne 0x40c913
lea eax, [ebp + 0x10]
push eax
push str.JavaHome
lea eax, [ebp - 0xc18]
push eax
lea ecx, [ebp - 8]
call fcn.0040c20e
test eax, eax
jne 0x40c913
cmp dword [ebp + 0x10], eax
jbe 0x40c913
lea eax, [ebp - 0xc18]
push eax
call fcn.0040b4b2
test eax, eax
pop ecx
je 0x40c913
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x818]
push 0x420a20
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0xc18]
push eax
push 0x420a24
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
inc dword [ebp - 0x14]
push esi
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x14]
push dword [ebp - 4]
call edi
test eax, eax
lea eax, [ebp - 0x818]
je 0x40c884
lea edx, [eax + 1]
pop esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c938
sub eax, edx
mov dword [ebp - 0x14], eax
je 0x40c972
lea eax, [ebp - 0x818]
push eax
push 0x420a28
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp + 0x10], eax
xor edi, edi
inc edi
jmp 0x40c7f7
lea ecx, [ebp - 8]
call fcn.00402de6
lea ecx, [ebp - 4]
call fcn.00402de6
lea ecx, [ebp - 0xc]
call fcn.00402de6
lea ecx, [ebp - 0x10]
call fcn.00402de6
xor eax, eax
pop edi
pop ebx
leave
ret