joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bfde
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.00413e08
lea eax, [ebp - 8]
push eax
call fcn.00413f80
xor edi, edi
cmp eax, edi
pop ecx
pop ecx
mov byte [ebp - 0x20c], 0
je 0x40c02b
push eax
call fcn.00413e75
cmp eax, edi
pop ecx
je 0x40c02b
push eax
lea eax, [ebp - 0x20c]
push str._n_s::
push eax
call fcn.00413b9e
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 0x40c05d
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x40c065
push 0x422bc0
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 0x40c0e0
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 0x40c0e5
Capabilities:
Check os version

Disassembly:
push 0xa4
push 0x422da0
call fcn.00412ebc
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 0x40c167
cmp dword [ebp - 0xb0], 5
jb 0x40c167
mov dword [ebp - 4], esi
push 0x422bd0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x40c15e
push 0x422bdc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c15e
mov dword [ebp - 0x20], 1
or dword [ebp - 4], 0xffffffff
call fcn.0040c170
mov eax, dword [ebp - 0x20]
call fcn.00412ef7
ret

Function at 0x40c22c
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
push 0x422cc0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c263
push 0x422ce8
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 0x40c265
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 0x422d00
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 0x40c2f8
call fcn.0040c0e5
test eax, eax
je 0x40c2cb
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 8]
push 4
push eax
call fcn.0040c180
add esp, 0x10
jmp 0x40c2d4
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 0x40c4b5
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 0x40c53b
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x140]
push eax
push 0
lea eax, [ebp - 0x640]
push 0
push eax
call fcn.0041412d
lea eax, [ebp - 0x140]
push 0x422d90
push eax
call fcn.00413c00
add esp, 0x1c
test eax, eax
je 0x40c55b
push 1
push dword [ebp + 8]
call fcn.0040c47e
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 0x40c58b
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 0x40c5da
cmp dword [ebp - 4], ebx
jbe 0x40c5d7
cmp dword [ebp - 4], 2
jbe 0x40c5e1
cmp dword [ebp - 4], 7
jne 0x40c5d7
mov ecx, dword [edi]
cmp ecx, 2
jb 0x40c5d7
add ecx, esi
cmp byte [ecx - 1], bl
jne 0x40c5d7
cmp byte [ecx - 2], bl
je 0x40c5da
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
mov ecx, dword [edi]
cmp byte [ecx + esi - 1], bl
jmp 0x40c5d5
Function at 0x40c7ca
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 0x40c80f
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x421bfc
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 4], ebx
je 0x40c812
mov dword [ebp - 8], edi
jmp 0x40c812
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 0x40c834
mov dword [ebp - 0xc], edi
jmp 0x40c87f
cmp esi, 2
je 0x40c87f
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.0040bfde
add esp, 0x18
cmp dword [ebp - 8], ebx
pop edi
pop esi
pop ebx
je 0x40c890
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x40ca3c
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 0x40ca90
cmp ebx, edi
lea eax, [ebp - 4]
jne 0x40ca78
push eax
push 0x2001f
push edi
push 0x421f40
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x40ca82
push 1
push eax
call fcn.0040c6f5
pop ecx
pop ecx
cmp dword [ebp - 4], edi
je 0x40cad7
mov dword [ebp - 8], 1
jmp 0x40ca93
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
je 0x40cac9
cmp ebx, edi
jne 0x40caaa
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40cac2
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 0x40cad7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

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

Disassembly:
call fcn.0040cade
test eax, eax
je 0x40cbb6
jmp fcn.0040bfde
ret
Function at 0x40cd54
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.0040c6f5
test eax, eax
pop ecx
pop ecx
je 0x40ce61
lea eax, [ebp - 0xc]
push eax
push 0x2001f
push edi
push 0x421b2c
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ce61
push esi
lea eax, [ebp - 8]
push eax
push 0x421b54
push dword [ebp - 4]
call fcn.0040c895
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
add esp, 0xc
test eax, eax
jne 0x40cded
lea eax, [ebp - 8]
push eax
push 0x421b60
push dword [ebp - 0xc]
call fcn.0040c895
add esp, 0xc
test eax, eax
je 0x40cded
push dword [ebp - 8]
push 0x421b6c
push dword [ebp - 4]
call fcn.0040b72d
add esp, 0xc
test eax, eax
je 0x40cded
push 0x421b78
push dword [ebp - 0xc]
call esi
inc edi
lea eax, [ebp - 8]
push eax
push 0x421b84
push dword [ebp - 4]
call fcn.0040c895
add esp, 0xc
test eax, eax
jne 0x40ce41
lea eax, [ebp - 8]
push eax
push 0x421b94
push dword [ebp - 0xc]
call fcn.0040c895
add esp, 0xc
test eax, eax
je 0x40ce41
push dword [ebp - 8]
push 0x421ba4
push dword [ebp - 4]
call fcn.0040b72d
add esp, 0xc
test eax, eax
je 0x40ce41
push 0x421bb4
push dword [ebp - 0xc]
call esi
xor edi, edi
inc edi
test edi, edi
jne 0x40ce50
push edi
push dword [ebp - 4]
call fcn.0040cb0a
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 0x40d1ab
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.00402e3b
test eax, eax
je 0x40d1ec
xor esi, esi
jmp 0x40d2c8
push esi
push 0x422078
push dword [ebp + 0x68]
lea ecx, [ebp + 0x6c]
call fcn.00402e3b
test eax, eax
jne 0x40d1e5
push esi
push str.Java_Runtime_Environment
push dword [ebp + 0x6c]
lea ecx, [ebp + 0x70]
call fcn.00402e3b
test eax, eax
jne 0x40d1e5
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 0x40d2c4
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 0x40d292
push 9
mov edi, 0x4220a0
lea esi, [ebp - 0x20]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40d290
lea eax, [ebp - 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d269
sub eax, edx
cmp eax, 3
jbe 0x40d290
xor eax, eax
mov cl, byte [ebp + eax - 0x20]
mov byte [ebp + eax - 0xa0], cl
inc eax
test cl, cl
jne 0x40d279
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 0x40d23a
cmp dword [ebp + 0x64], edi
je 0x40d2c4
lea eax, [ebp - 0xa0]
push eax
push 0x4220ac
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.00402e24
lea ecx, [ebp + 0x6c]
call fcn.00402e24
lea ecx, [ebp + 0x68]
call fcn.00402e24
pop edi
mov eax, esi
pop esi
add ebp, 0x74
leave
ret
Function at 0x40d2e9
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.0040cbb7
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ecx
pop ecx
jl 0x40d31c
lea eax, [ebp - 0x40c]
push eax
call esi
lea eax, [ebp - 0x40c]
push eax
call fcn.0040ce64
test eax, eax
pop ecx
je 0x40d345
lea eax, [ebp - 0x40c]
push eax
push eax
call fcn.0040c4b5
pop ecx
pop ecx
lea eax, [ebp - 0x40c]
push eax
call esi
call fcn.0040b960
xor esi, esi
push esi
push str.PreDownldStatus
push esi
call fcn.0040ca3c
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 0x40d3da
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.00402e3b
test eax, eax
lea ecx, [ebp - 8]
jne 0x40d3c2
push 0x2001f
push 0x42224c
push dword [ebp - 4]
call fcn.00402e3b
test eax, eax
jne 0x40d3bf
push str.VersionXmlURL
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [ebp - 8]
call fcn.00402e24
lea ecx, [ebp - 4]
call fcn.00402e24
push edi
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0xc]
push esi
call ebx
test eax, eax
je 0x40d374
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e84e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push esi
push edi
call dword [0x428060]
mov edi, eax
lea eax, [ebp - 8]
push eax
push 1
push 0
push 0x422ed8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e91c
mov byte [ebp - 0x40c], al
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x422f00
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
jbe 0x40e91c
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x40c]
push eax
call esi
test eax, eax
je 0x40e91c
lea eax, [ebp - 0x40c]
push eax
call esi
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.00413830
mov eax, esp
push edi
push esi
lea ecx, [ebp - 0x40c]
push ecx
push eax
call fcn.0040449f
mov esi, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
xor eax, eax
push 4
pop ecx
mov edi, 0x423ee8
repe cmpsd dword [esi], dword es:[edi]
setne al
dec eax
and eax, 0x80004005
jmp 0x40e921
mov eax, 0x80004005
lea esp, [ebp - 0x414]
pop edi
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call dword [0x428060]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0x2001f
push 0
push 0x422f10
mov esi, 0x80004005
push reloc.OLEAUT32.dll_SysReAllocString
mov ebx, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40e96a
mov eax, esi
jmp 0x40ea0d
mov esi, dword [ebp + 8]
push 4
pop ecx
mov edi, 0x423ee8
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x40e991
push 0x422f38
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x40ea02
xor ebx, ebx
jmp 0x40ea02
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov ebx, eax
test ebx, ebx
jl 0x40e9f3
mov edi, dword [ebp - 4]
test edi, edi
jne 0x40e9b3
xor eax, eax
jmp 0x40e9d8
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.00413830
mov eax, esp
push dword [ebp - 0xc]
push esi
push edi
push eax
call fcn.004044d6
push 4
push eax
push 1
push 0
push str.TransferJobID
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40e9f3
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x40ea02
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ef33
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.0040c6f5
pop ecx
xor ebx, ebx
test eax, eax
pop ecx
je 0x40f119
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x423230
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 0x423234
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 0x42323c
push dword [ebp + 0x6c]
mov byte [ebp - 0x1a4], bl
mov dword [ebp + 0x70], 0x100
call esi
push 0x42324c
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 0x423250
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], 0x80
call esi
push 0x423264
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 0x423268
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 0x423278
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], edi
call esi
test eax, eax
jne 0x40f075
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 0x423288
lea eax, [ebp - 0x1a4]
push 0x42328c
push eax
call fcn.0040d579
add esp, 0x34
test eax, eax
je 0x40f075
push 0x423290
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 0x4232a0
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], edi
mov dword [ebp + 0x60], ebx
call esi
test eax, eax
jne 0x40f10e
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x68]
push eax
push ebx
push 0x4232b0
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 0x4232c4
lea eax, [ebp - 0x1a4]
push 0x4232c8
push eax
call fcn.0040d579
add esp, 0x34
test eax, eax
je 0x40f10e
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x4232cc
push dword [ebp + 0x6c]
call esi
push 0x4232e0
push dword [ebp + 0x6c]
call esi
push 0x4232f4
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
Function at 0x40f129
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call fcn.0040cbec
test eax, eax
jne 0x40f13a
leave
ret
push ebx
push 4
pop eax
xor ebx, ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push ebx
push eax
mov dword [ebp - 8], ebx
call fcn.0040c6f5
test eax, eax
pop ecx
pop ecx
jne 0x40f15f
inc eax
jmp 0x40f1f8
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x423304
push dword [ebp - 4]
call edi
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x40f1a5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x423314
push dword [ebp - 4]
call edi
mov esi, eax
neg esi
sbb esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x40f1b7
xor eax, eax
inc eax
jmp 0x40f1f6
cmp dword [0x429854], ebx
jne 0x40f1b2
xor esi, esi
inc esi
cmp dword [ebp + 8], ebx
jne 0x40f1e8
push 0x429854
push ebx
push ebx
push fcn.0040ef33
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x40f1f4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40f1f4
push ebx
mov dword [0x429854], esi
call fcn.0040ef33
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40f2be
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x208
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push 0x423450
lea eax, [ebp + 0x6c]
push eax
mov dword [ebp + 0x70], 3
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x6c]
push eax
push str.Country
xor edi, edi
push edi
call fcn.0040c7ca
add esp, 0x10
push 0x42345c
lea eax, [ebp - 0x194]
push eax
mov dword [ebp + 0x70], 0x100
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x194]
push eax
push str.PostStatusUrl
push edi
call fcn.0040c7ca
add esp, 0x10
push 0x423470
lea eax, [ebp - 0x14]
push eax
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x14]
push eax
push str.InstalledJREVersion
push edi
mov dword [ebp + 0x70], 0x80
call fcn.0040c7ca
add esp, 0x10
push 0x423488
lea eax, [ebp - 0x94]
push eax
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x94]
push eax
push str.NewJREVersion
push edi
mov dword [ebp + 0x70], 0x80
call fcn.0040c7ca
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 0x7c]
lea eax, [ebp - 0x14]
push edi
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp + 0x6c]
push eax
push 0x42349c
lea eax, [ebp - 0x194]
push 0x4234a0
push eax
call fcn.0040d579
add esp, 0x44
pop edi
pop esi
add ebp, 0x74
leave
ret