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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0xff
push dword [ebp + 0xc]
lea esi, [edi + 0x108]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4116d6
push esi
call fcn.004179fe
pop ecx
test eax, eax
je 0x4116d6
lea eax, [ebp + 0xc]
push eax
push 1
xor ebx, ebx
push ebx
push 0x437138
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4116d6
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x988]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x437160
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x400
call esi
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x588]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x437170
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x400
call esi
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x208]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x437184
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x100
call esi
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x1408]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x437198
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x104
call esi
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x1008]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x4371a8
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x400
call esi
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0xd88]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x4371b4
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x100
call esi
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0xe88]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x4371c4
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x100
call esi
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x80
push eax
lea eax, [edi + 0xf88]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x4371d0
push dword [ebp + 0xc]
call esi
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x1560]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x4371dc
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x80
call esi
test eax, eax
jne 0x411686
cmp dword [ebp + 8], 3
jb 0x411686
mov dword [edi + 0x15e0], 1
mov dword [ebp + 8], 0x50
cmp dword [edi + 0x15e0], ebx
je 0x4116bf
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x1510]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x4371e8
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x4116b9
cmp dword [ebp + 8], 0x28
je 0x4116bf
mov dword [edi + 0x15e0], ebx
push dword [ebp + 0xc]
mov dword [edi + 0x150c], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4116db
mov eax, 0x80004005
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4117ae
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x2001f
xor ebx, ebx
push ebx
push 0x437248
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4117dd
mov eax, 0x80004005
jmp 0x4119af
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [edi + 0x108]
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4117ed
sub eax, ecx
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push ebx
push 0x437270
push dword [ebp - 4]
call esi
lea ecx, [edi + 0x988]
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp + 8], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x411819
sub eax, dword [ebp + 8]
push eax
push ecx
push 1
push ebx
push 0x437280
push dword [ebp - 4]
call esi
lea ecx, [edi + 0x588]
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp + 8], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x411840
sub eax, dword [ebp + 8]
push eax
push ecx
push 1
push ebx
push 0x437290
push dword [ebp - 4]
call esi
lea ecx, [edi + 0x208]
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp + 8], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x411867
sub eax, dword [ebp + 8]
push eax
push ecx
push 1
push ebx
push 0x4372a4
push dword [ebp - 4]
call esi
lea eax, [edi + 0x1408]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x4118b8
lea eax, [edi + 0x1408]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x41189a
sub eax, ecx
push eax
lea eax, [edi + 0x1408]
push eax
push 1
push ebx
push 0x4372b8
push dword [ebp - 4]
call esi
lea eax, [edi + 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x4118f0
lea eax, [edi + 0x1008]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4118d2
sub eax, ecx
push eax
lea eax, [edi + 0x1008]
push eax
push 1
push ebx
push 0x4372c8
push dword [ebp - 4]
call esi
lea eax, [edi + 0xd88]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x411928
lea eax, [edi + 0xd88]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x41190a
sub eax, ecx
push eax
lea eax, [edi + 0xd88]
push eax
push 1
push ebx
push 0x4372d4
push dword [ebp - 4]
call esi
lea eax, [edi + 0xf88]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x411960
lea eax, [edi + 0xf88]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x411942
sub eax, ecx
push eax
lea eax, [edi + 0xf88]
push eax
push 1
push ebx
push 0x4372e4
push dword [ebp - 4]
call esi
lea eax, [edi + 0xe88]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x411998
lea eax, [edi + 0xe88]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x41197a
sub eax, ecx
push eax
lea eax, [edi + 0xe88]
push eax
push 1
push ebx
push 0x4372f0
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov ecx, edi
call fcn.004116e2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret 4
Function at 0x411a73
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push 0x4000000
push edi
push 0x437322
mov esi, ecx
push 0x4376bc
lea eax, [esi + 0x960]
push eax
push dword [ebp + 8]
push dword [esi + 0x808]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [esi + 0x80c], eax
cmp eax, edi
jne 0x411af0
mov ecx, dword [esi + 0x810]
push 3
call fcn.004120ee
test eax, eax
je 0x411add
push str.Unable_to_perform_HttpOpenRequest
push 0x4376ec
push 0x58
push 0x437714
push dword [esi + 0x810]
call fcn.00416c41
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00411a0e
jmp 0x411b9e
push 0x437738
push dword [ebp + 8]
call fcn.0041d250
pop ecx
pop ecx
test eax, eax
je 0x411b54
push edi
push edi
push edi
push edi
push dword [esi + 0x80c]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x411b9c
mov ecx, dword [esi + 0x810]
push 3
call fcn.004120ee
test eax, eax
je 0x411add
push 0x60
push 0x437740
push str.Unable_to_perform_HttpGet_HeadRequest__s_line__d
push 0x437798
push 0x60
push 0x4377c0
push dword [esi + 0x810]
call fcn.00416c41
add esp, 0x1c
jmp 0x411add
push dword [esi + 0x800]
push esi
push edi
push edi
push dword [esi + 0x80c]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x411b9c
mov ecx, dword [esi + 0x810]
push 3
call fcn.004120ee
test eax, eax
je 0x411add
push 0x68
push 0x4377e4
push str.Unable_to_perform_HttpPostRequest__s_line__d
push str._SendRequest_HTMLwrappers__QAEHPBD_Z
push 0x68
push 0x437860
jmp 0x411b44
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x411ba4
Capabilities:
Check http status code
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
mov esi, ecx
push 0x20000013
push dword [esi + 0x80c]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x411c08
mov ecx, dword [esi + 0x810]
push 3
call fcn.004120ee
test eax, eax
je 0x411c94
push 0x79
push 0x437884
push str.Unable_to_get_header_information__s_line__d
push 0x4378d4
push 0x79
push 0x4378f8
jmp 0x411c86
cmp dword [ebp - 8], 0xc8
mov dword [ebp - 4], ebx
jne 0x411c5a
mov edi, dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
jmp 0x411c3d
mov eax, dword [ebp - 0xc]
add dword [ebp - 4], eax
lea ecx, [ebp - 0x14]
push ecx
push eax
push esi
push dword [esi + 0x80c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x411c94
cmp dword [ebp - 0x14], ebx
je 0x411c51
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x80c]
call edi
test eax, eax
jne 0x411c1c
jmp 0x411c94
mov eax, dword [ebp - 4]
mov byte [eax + esi], bl
push ebx
jmp 0x411c9b
mov ecx, dword [esi + 0x810]
push 3
call fcn.004120ee
test eax, eax
je 0x411c94
mov eax, 0x9f
push eax
push 0x43791c
push str.Error_getting_response__s_line__d
push str._GetResponse_HTMLwrappers__QAEHXZ
push eax
push 0x437988
push dword [esi + 0x810]
call fcn.00416c41
add esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00411a0e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411ca7
Capabilities:
Connect to http server
Create http request
Parse url

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
mov esi, ecx
call fcn.00411a0e
mov edi, dword [ebp + 8]
cmp dword [edi + 0x10], 0
jne 0x411cf6
mov ecx, dword [esi + 0x810]
push 3
call fcn.004120ee
test eax, eax
je 0x411cee
push str.URL_specified_is_empty
push 0x437450
push 0x29
push 0x43742c
push dword [esi + 0x810]
call fcn.00416c41
add esp, 0x14
xor eax, eax
inc eax
jmp 0x411e4b
push ebx
push 0x3c
lea ebx, [esi + 0x814]
push 0
push ebx
call fcn.0041b010
lea eax, [esi + 0x850]
mov dword [esi + 0x818], eax
add esp, 0xc
lea eax, [esi + 0x860]
mov dword [esi + 0x824], eax
push 0x10
mov eax, 0x100
pop ecx
lea edx, [esi + 0x960]
mov dword [ebx], 0x3c
mov dword [esi + 0x81c], ecx
mov dword [esi + 0x828], eax
mov dword [esi + 0x840], edx
mov dword [esi + 0x844], eax
mov eax, dword [edi + 0x10]
cmp dword [edi + 0x14], ecx
jb 0x411d58
mov edi, dword [edi]
push ebx
xor ebx, ebx
push ebx
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x411da7
mov ecx, dword [esi + 0x810]
push 3
call fcn.004120ee
test eax, eax
je 0x411d9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_Cracking_the_URL__d
push 0x4374f8
push 0x38
push 0x4374d4
push dword [esi + 0x810]
call fcn.00416c41
add esp, 0x18
xor eax, eax
inc eax
jmp 0x411e4a
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 0x804], eax
cmp eax, ebx
jne 0x411de2
mov ecx, dword [esi + 0x810]
push 3
call fcn.004120ee
test eax, eax
je 0x411e38
push str.Unable_to_perform_InternetOpen
push 0x437580
push 0x41
push 0x4375e8
jmp 0x411e2a
movzx ecx, word [esi + 0x82c]
push ebx
push ebx
push 3
push ebx
push ebx
push ecx
lea ecx, [esi + 0x860]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 0x808], eax
cmp eax, ebx
jne 0x411e48
mov ecx, dword [esi + 0x810]
push 3
call fcn.004120ee
test eax, eax
je 0x411e38
push str.Unable_to_perform_InternetConnect
push str._InitConnection_HTMLwrappers__QAEHABV__basic_string_DU__char_traits_D_std__V__allocator_D_2__std__PBD_Z
push 0x4a
push 0x437698
push dword [esi + 0x810]
call fcn.00416c41
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00411a0e
jmp 0x411e4a
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x4150ef
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4330d0
call fcn.0041b53c
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x4151e4
cmp byte [esi + 0x49], bl
je 0x4151e4
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x415127
xor al, al
jmp 0x4151e6
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.0041438b
mov dword [ebp - 4], ebx
push edi
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x415187
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x10]
push ebx
mov ebx, dword [ebp - 0x1c]
add ebx, eax
push ebx
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x41518c
dec eax
je 0x415190
dec eax
dec eax
je 0x4151e0
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040df61
mov al, bl
pop edi
jmp 0x4151e6
mov edx, dword [ebp - 0x2c]
jmp 0x415151
mov byte [esi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x41519c
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
sub edi, eax
je 0x4151c2
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4151af
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.0041dea0
add esp, 0x10
cmp edi, eax
jne 0x415174
cmp byte [esi + 0x49], 0
je 0x4151e0
test edi, edi
jne 0x415143
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00413e18
jmp 0x415143
mov bl, 1
jmp 0x415176
mov al, 1
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x415906
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x433098
call fcn.0041b53c
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x415912
xor eax, eax
jmp 0x41593a
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
push edi
xor edi, edi
cmp ecx, edi
je 0x41594a
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x41594a
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
cmp dword [esi + 0x54], edi
je 0x41596a
mov ecx, esi
call fcn.004121d5
cmp dword [esi + 0x44], edi
jne 0x41596f
push dword [esi + 0x54]
push ebx
call fcn.00413575
pop ecx
pop ecx
test al, al
jne 0x415937
or eax, 0xffffffff
jmp 0x415939
push edi
push 8
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x10], bl
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x34], 0
call fcn.0041438b
mov dword [ebp - 4], edi
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x415a22
lea eax, [ebp - 0x34]
mov edx, eax
add eax, dword [ebp - 0x24]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x14]
push ebx
push eax
push edx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xf]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
test eax, eax
js 0x415a40
cmp eax, 1
jg 0x415a2a
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x4159d6
lea eax, [ebp - 0x34]
mov edi, dword [ebp - 0x14]
sub edi, eax
je 0x4159fc
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x4159e9
lea eax, [ebp - 0x34]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.0041dea0
add esp, 0x10
cmp edi, eax
jne 0x415a40
lea eax, [ebp - 0x10]
mov byte [esi + 0x49], 1
cmp dword [ebp - 0x18], eax
jne 0x415a56
test edi, edi
jne 0x41598e
cmp dword [ebp - 0x24], 0x20
jae 0x415a40
push edi
push 8
lea ecx, [ebp - 0x34]
call fcn.00413e18
jmp 0x41598e
mov edx, dword [ebp - 0x34]
jmp 0x4159a0
cmp eax, 3
jne 0x415a40
push dword [esi + 0x54]
push dword [ebp - 0x10]
call fcn.00413575
pop ecx
pop ecx
test al, al
jne 0x415a56
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.0040df61
mov eax, esi
jmp 0x415939
mov esi, dword [ebp + 8]
jmp 0x415a43
Function at 0x417345
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
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp eax, edi
jne 0x417399
lea eax, [ebp - 4]
cmp ebx, edi
jne 0x417381
push eax
push 0x2001f
push edi
push 0x438e50
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x41738b
push 1
push eax
call fcn.004172ec
pop ecx
pop ecx
cmp dword [ebp - 4], edi
je 0x4173e0
mov dword [ebp - 8], 1
jmp 0x41739c
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
je 0x4173d2
cmp ebx, edi
jne 0x4173b3
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x4173cb
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 0x4173e0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x41744b
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 dword [ebp + 0x10]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x41747f
xor eax, eax
jmp 0x4174e2
push edi
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x38], bl
lea edi, [ebp - 0x37]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
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]
pop edi
test eax, eax
jne 0x4174b2
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]
neg eax
sbb esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 1]
pop esi
pop ebx
leave
ret

Function at 0x4174e5
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push 0x94
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.0041b010
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
jne 0x417546
cmp dword [ebp - 0x90], 6
jne 0x417532
xor eax, eax
inc eax
leave
ret
cmp dword [ebp - 0x90], 5
jne 0x417546
xor eax, eax
inc eax
cmp dword [ebp - 0x8c], eax
je 0x417548
xor eax, eax
leave
ret
Function at 0x417596
Capabilities:
Delete registry value
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push 0x439088
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4175bd
xor eax, eax
leave
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x4390b0
push dword [ebp - 4]
call esi
push str.InstallOptions
push dword [ebp - 4]
call esi
push str.UpdateDescription
push dword [ebp - 4]
call esi
push str.UpdateTitle1
push dword [ebp - 4]
call esi
push str.UpdateTitle2
push dword [ebp - 4]
call esi
push str.UpdateMoreInfoUrl
push dword [ebp - 4]
call esi
push str.BalloonTitle
push dword [ebp - 4]
call esi
push str.BalloonTip
push dword [ebp - 4]
call esi
push str.DlgCaption
push dword [ebp - 4]
call esi
push str.MoreInfoTxt
push dword [ebp - 4]
call esi
push str.PreDownld
push dword [ebp - 4]
call esi
push str.UrlInfo
push dword [ebp - 4]
call esi
push str.NumTries
push dword [ebp - 4]
call esi
push str.LastUDCheckTime
push dword [ebp - 4]
call esi
push str.VersionXmlChecksum
push dword [ebp - 4]
call esi
push 0x439190
push dword [ebp - 4]
call esi
call fcn.004174e5
test eax, eax
je 0x417677
push str.TransferJobID
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 0x4176e6
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x439244
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41776a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.NewJREVersion
push dword [ebp - 4]
call esi
push 0x43927c
push dword [ebp - 4]
call esi
push str.UpdateDetected
push dword [ebp - 4]
call esi
push str.UpdAvailNotifyCnt
push dword [ebp - 4]
call esi
push str.UpdAvailNotifyTime
push dword [ebp - 4]
call esi
push str.UpdAvailElapsed
push dword [ebp - 4]
call esi
push str.SendUDPing
push dword [ebp - 4]
call esi
push str.SendUAPing
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret
Function at 0x417b54
Capabilities:
Get common file path
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.0041ab5d
lea eax, [ebp - 0xc]
push eax
call fcn.0041ab36
xor edi, edi
pop ecx
pop ecx
mov byte [ebp - 0x210], 0
cmp eax, edi
je 0x417ba1
push eax
call fcn.0041ae29
pop ecx
cmp eax, edi
je 0x417ba1
push eax
lea eax, [ebp - 0x210]
push str._n_s::
push eax
call fcn.0041bbda
add esp, 0xc
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x110]
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 - 0x110]
jne 0x417bd3
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x417bdb
push 0x439b58
push eax
call esi
push str.jusched.log
lea eax, [ebp - 0x110]
push eax
call esi
push edi
push 0x80
push 4
push edi
push 2
push 0x40000000
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x417c56
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 - 0x210]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
lea eax, [ebp - 0x210]
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