joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d50
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x401d9b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401d94
test esi, esi
je 0x401d94
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401d70
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401f80
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401fd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4020a4
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x40200e
cmp eax, 4
jne 0x402030
test esi, esi
je 0x402022
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x402014
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x40206f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x402061
cmp ecx, 0x40
je 0x402022
cmp ecx, 4
je 0x402022
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401f80
lea esi, [esi]
Function at 0x401321
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0xfb8]
mov eax, 0x1038
call fcn.004105e0
mov eax, dword [0x43cddc]
xor eax, ebp
mov dword [ebp + 0xfb4], eax
push edi
mov edi, dword [ebp + 0xfc0]
lea eax, [ebp - 0x7c]
push eax
call fcn.0042d457
pop ecx
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
jne 0x401366
push 5
call fcn.00409a61
pop ecx
jmp 0x401452
push esi
call fcn.004082d1
push eax
push 0x5c
call fcn.00408c45
push eax
push 0x4360e8
mov esi, 0x400
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00408299
push dword [ebp - 0x7c]
lea eax, [ebp + 0x7ac]
push 0x4360f8
push esi
push eax
call fcn.00408299
and dword [ebp - 0x64], 0
lea eax, [ebp + 0x7ac]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
mov dword [ebp - 0x74], str.JavaWSSplashScreen
mov dword [ebp - 0x70], 0x436128
mov dword [ebp - 0x68], edi
call fcn.0042d457
add esp, 0x34
test eax, eax
jne 0x401449
mov word [ebp - 0x64], ax
lea edi, [ebp - 0x62]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x78]
mov dword [ebp - 0x80], 0x10
call dword [sym.imp.WSOCK32.dll_accept]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401401
push 6
jmp 0x40144b
push 0
push 6
lea eax, [ebp + 0xfac]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 6
je 0x40141c
push 7
jmp 0x40144b
lea eax, [ebp + 0xfac]
push eax
call fcn.0042d457
pop ecx
mov dword [0x4360e0], eax
test eax, eax
jg 0x401436
push 8
jmp 0x40144b
push esi
call fcn.00408098
push dword [ebp - 0x78]
call fcn.00408098
pop ecx
xor eax, eax
jmp 0x401450
push 0
call fcn.00409a61
pop ecx
pop esi
mov ecx, dword [ebp + 0xfb4]
xor ecx, ebp
pop edi
call fcn.0040ffe6
add ebp, 0xfb8
leave
ret
Function at 0x406f15
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1198]
mov eax, 0x1218
call fcn.004105e0
mov eax, dword [0x43cddc]
xor eax, ebp
mov dword [ebp + 0x1194], eax
push edi
push 0x437f38
push 0x437f68
push 0xffffffffffffffff
lea eax, [ebp - 0x74]
push 0x1000
push eax
call fcn.0042d457
add esp, 0x18
lea eax, [ebp - 0x78]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x74]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x406f77
xor eax, eax
jmp 0x406ffb
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0xf8c]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push str.Path
push dword [ebp - 0x78]
mov dword [ebp - 0x80], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x78]
test eax, eax
je 0x406fac
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406f70
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x7c], 1
jne 0x406f70
mov eax, dword [esi + 4]
test eax, eax
je 0x406fc6
push eax
call fcn.0042d457
pop ecx
push edi
call fcn.0042d457
lea ecx, [esi + 8]
push ecx
push eax
mov dword [esi + 4], eax
call fcn.00406c53
mov eax, dword [esi]
add esp, 0xc
test eax, eax
je 0x406fe9
push eax
call fcn.0042d457
pop ecx
lea eax, [ebp + 0xf8c]
push eax
call fcn.0042d457
mov dword [esi], eax
xor eax, eax
pop ecx
inc eax
mov ecx, dword [ebp + 0x1194]
xor ecx, ebp
call fcn.0040ffe6
add ebp, 0x1198
leave
ret
Function at 0x407010
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1c8]
sub esp, 0x248
mov eax, dword [0x43cddc]
xor eax, ebp
mov dword [ebp + 0x1c4], eax
mov eax, dword [ebp + 0x1d0]
push ebx
push esi
xor ebx, ebx
push str.FORCED_FX_ROOT
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x6c]
push ebx
push eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], 0x1fe
xor esi, esi
mov dword [ebp - 0x6c], ebx
call fcn.004107d9
add esp, 0xc
cmp dword [ebp - 0x6c], ebx
je 0x40709e
cmp eax, ebx
jne 0x40709e
push 0x34
push 1
call fcn.0042d457
push str.2.0
mov esi, eax
call fcn.0042d457
lea ecx, [esi + 8]
push ecx
push eax
mov dword [esi + 4], eax
call fcn.00406c53
push dword [ebp - 0x6c]
call fcn.0042d457
mov dword [esi], eax
push dword [ebp - 0x6c]
call fcn.0042d457
add esp, 0x1c
jmp 0x407159
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push ebx
push str.SoftwareOracleJavaFX
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4070c3
xor eax, eax
jmp 0x40715b
push edi
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x80], eax
cmp eax, ebx
jne 0x40713c
cmp dword [ebp - 0x78], ebx
je 0x4070f8
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x78]
call fcn.00406eb4
pop ecx
pop ecx
jmp 0x4070fb
xor eax, eax
inc eax
cmp eax, ebx
je 0x40713c
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00406c53
pop ecx
pop ecx
cmp esi, ebx
je 0x407127
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00406cf7
pop ecx
pop ecx
test eax, eax
je 0x40713c
jmp 0x407134
push 0x34
push 1
call fcn.0042d457
pop ecx
pop ecx
mov esi, eax
lea edi, [ebp - 0x3c]
call fcn.00406f15
inc dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x1fe
cmp dword [ebp - 0x80], ebx
je 0x4070c4
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
mov ecx, dword [ebp + 0x1c4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ffe6
add ebp, 0x1c8
leave
ret

Function at 0x4074b6
Capabilities:
Send data
Send data on socket

Disassembly:
cmp dword [esp + 8], 0
jne 0x4074c0
xor eax, eax
ret
mov eax, dword [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4074c7
sub eax, edx
sar eax, 1
push esi
lea esi, [eax + eax + 6]
lea eax, [esi + esi]
push edi
push eax
call fcn.0042d457
mov edi, eax
pop ecx
test edi, edi
je 0x407536
push dword [esp + 0x10]
push str._s_r_n
push esi
push edi
call fcn.00408299
mov eax, edi
add esp, 0x10
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x407504
sub eax, ecx
sar eax, 1
push 0
add eax, eax
push eax
push edi
push dword [esp + 0x18]
call dword [sym.imp.WSOCK32.dll_send]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
push edi
mov esi, ecx
call fcn.0042d457
pop ecx
mov eax, esi
pop edi
pop esi
ret
Function at 0x407539
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
push edi
mov edi, 0x44a698
xor ebx, ebx
mov esi, edi
push 0
push 2
push esi
push dword [esp + 0x1c]
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je 0x407580
test eax, eax
je 0x407584
movzx eax, word [esi]
cmp eax, 0xa
je 0x407584
cmp eax, 0xd
je 0x40756e
inc ebx
add esi, 2
cmp esi, 0x44ae96
jl 0x407545
xor eax, eax
mov word [0x44ae96], ax
jmp 0x40758e
xor eax, eax
jmp 0x407590
xor eax, eax
mov word [ebx*2 + 0x44a698], ax
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x407ff9
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x43cddc]
xor eax, esp
mov dword [esp + 0x190], eax
cmp dword [0x451730], 0
jne 0x408083
push esi
push edi
xor edi, edi
push str.ws2_32.dll
inc edi
call fcn.0042d457
mov esi, eax
pop ecx
test esi, esi
jne 0x40804d
push str.wsock32.dll
call fcn.0042d457
mov esi, eax
xor edi, edi
pop ecx
test esi, esi
jne 0x40804d
push 0xd
call fcn.00409a61
pop ecx
push eax
call fcn.00407f5a
lea eax, [esp + 8]
push eax
push 2
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x408062
push 0xe
jmp 0x408041
test edi, edi
je 0x408077
push str.WSASendDisconnect
push esi
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x45172c], eax
pop edi
mov dword [0x451730], 1
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0040ffe6
add esp, 0x194
ret
Function at 0x408418
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xf98]
mov eax, 0x1018
call fcn.004105e0
mov eax, dword [0x43cddc]
xor eax, ebp
mov dword [ebp + 0xf94], eax
mov eax, dword [ebp + 0xfa0]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
push eax
mov ebx, 0x20019
push ebx
push 0
push 0x439880
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
mov dword [ebp - 0x7c], 0x400
mov dword [ebp - 0x70], 1
call esi
test eax, eax
jne 0x408519
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x794]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push str.CurrentVersion
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40849f
and dword [ebp - 0x70], 0
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4084b0
and dword [ebp - 0x70], 0
lea eax, [ebp + 0x794]
push eax
push str.SoftwareJavaSoftJava_Runtime_Environment
push 0x439874
lea eax, [ebp - 0x6c]
push 0x400
push eax
call fcn.0042d457
add esp, 0x14
lea eax, [ebp - 0x74]
push eax
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x6c]
push eax
push edi
call esi
test eax, eax
jne 0x408519
lea eax, [ebp + 0xfa4]
push eax
push dword [ebp - 0x78]
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x439950
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x408509
mov dword [ebp - 0x70], ebx
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x408519
mov dword [ebp - 0x70], ebx
mov ecx, dword [ebp + 0xf94]
mov eax, dword [ebp - 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ffe6
add ebp, 0xf98
leave
ret
Function at 0x40af57
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x43cddc]
xor eax, ebp
mov dword [ebp + 0x94], eax
cmp dword [0x4530a8], 0
je 0x40af82
mov eax, dword [0x4530a4]
jmp 0x40afc6
push 0x114
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00410610
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.kernel32.dll_GetVersionExW]
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x70], 2
jne 0x40afb9
cmp dword [ebp - 0x7c], 6
jb 0x40afb9
mov eax, ecx
jmp 0x40afbb
xor eax, eax
mov dword [0x4530a4], eax
mov dword [0x4530a8], ecx
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0040ffe6
add ebp, 0x98
leave
ret

Function at 0x40b3a3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x40b3b0
xor eax, eax
pop ebp
ret
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateProcessW]
pop ebp
ret

Function at 0x40b6b6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xf8c]
mov eax, 0x100c
call fcn.004105e0
mov eax, dword [0x43cddc]
xor eax, ebp
mov dword [ebp + 0xf88], eax
push esi
mov esi, dword [ebp + 0xf9c]
push edi
mov edi, dword [ebp + 0xf94]
xor eax, eax
push 0x7fe
push eax
mov word [ebp + 0x788], ax
lea eax, [ebp + 0x78a]
push eax
call fcn.00410610
push edi
push str.SOFTWAREClassesCLSID_sInprocServer32
lea eax, [ebp + 0x788]
push 0x400
push eax
call fcn.0042d457
add esp, 0x1c
lea eax, [ebp - 0x7c]
push eax
push 0x20019
neg esi
push 0
lea eax, [ebp + 0x788]
sbb esi, esi
push eax
add esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop edi
pop esi
test eax, eax
je 0x40b74b
xor ecx, ecx
cmp eax, 2
sete cl
jmp 0x40b7ba
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x42f4d4
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push dword [ebp - 0x7c]
test eax, eax
je 0x40b779
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40b7bc
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xf98]
lea ecx, [ebp - 0x78]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b7ae
test dx, dx
je 0x40b7aa
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b7ae
add eax, 4
add ecx, 4
test dx, dx
jne 0x40b788
xor eax, eax
jmp 0x40b7b3
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [ebp + 0xf88]
xor ecx, ebp
call fcn.0040ffe6
add ebp, 0xf8c
leave
ret

Function at 0x40b9c3
Capabilities:
Query environment variable

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
je 0x40b9e4
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0x42f5ec
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x40b9e4
inc esi
mov eax, esi
pop esi
ret
Function at 0x40c913
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x43cddc]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x42d995
call fcn.00415253
push 0x42f684
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004107d9
add esp, 0xc
test eax, eax
jne 0x40c9ee
push dword [ebp - 0x18]
call fcn.0042d457
cmp dword [0x453088], 0
pop ecx
je 0x40c96e
xor eax, eax
inc eax
jmp 0x40c9f0
lea eax, [ebp]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.kernel32.dll_GetTempPathW]
cmp eax, esi
ja 0x40c9ee
test eax, eax
je 0x40c9ee
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040d1d7
and dword [ebp - 4], 0
push str.JavaDeployReg.log
lea ecx, [ebp - 0x14]
call fcn.0040d1d7
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040d3f0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40c9bf
call fcn.0040d3b2
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x40c9ca
mov eax, dword [esi]
jmp 0x40c9cc
xor eax, eax
push 0x42f730
push eax
push 0x453088
call fcn.0042d457
add esp, 0xc
test eax, eax
je 0x40ca13
test esi, esi
je 0x40c9ee
mov ecx, esi
call fcn.0040d3b2
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0040ffe6
add ebp, 0x20c
leave
ret
test esi, esi
je 0x40c966
mov ecx, esi
call fcn.0040d3b2
jmp 0x40c966

Function at 0x40ccc2
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x42d9bd
call fcn.00415286
mov esi, dword [ebp + 8]
xor eax, eax
xor edi, edi
xor ebx, ebx
mov word [esi], ax
mov dword [ebp - 4], edi
call fcn.0042d457
test eax, eax
je 0x40cced
call fcn.0040ccb3
mov ebx, eax
push 0x104
push esi
push ebx
push edi
push 0x42e30c
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
cmp esi, edi
jge 0x40cd48
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__hToken__pPath__MAX_PATH_
call fcn.0040d692
pop ecx
pop ecx
push edi
push esi
call fcn.0042d457
mov ecx, dword [ebp - 0x18]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x14], esi
call fcn.0040d30f
push eax
push esi
push 0x42e66c
call fcn.0040d692
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov eax, 0x40cd41
ret
cmp ebx, edi
je 0x40cd53
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x40ce04
push dword [ebp + 8]
mov dword [ebp - 4], 2
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x40cdb0
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x40cd0c
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x40ce04
push 1
push 0x1a
push dword [ebp + 8]
mov dword [ebp - 4], 4
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x40ce04
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x40cd0c
mov eax, esi
call fcn.004152bc
ret
Function at 0x40d10c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x43cddc]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1a8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.0042d457
mov ebx, eax
cmp ebx, esi
je 0x40d17f
lea ecx, [ebp - 0x74]
call fcn.0040ab9e
mov eax, ebx
mov ecx, dword [ebp + 0x19c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ffe6
add ebp, 0x1a0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40d197
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.0040d10c
cmp eax, esi
jne 0x40d1c9
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], 0x100
call ebx
test eax, eax
je 0x40d187
lea ecx, [ebp - 0x74]
call fcn.0040ab9e
push dword [ebp - 0x78]
mov ecx, edi
call fcn.0040ab2f
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.0040ab9e
mov eax, esi
jmp 0x40d165

Function at 0x40d6f0
Capabilities:
Create process on windows

Disassembly:
call fcn.0040e9b9
test eax, eax
jne 0x40d70e
push 1
push eax
push eax
push str.http:__java.com_inst_dl_redirect
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
Function at 0x40d70f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3f9c]
mov eax, 0x401c
call fcn.004105e0
mov eax, dword [0x43cddc]
xor eax, ebp
mov dword [ebp + 0x3f98], eax
mov eax, dword [ebp + 0x3fa4]
push ebx
push esi
push edi
mov dword [ebp - 0x74], eax
xor esi, esi
xor eax, eax
mov ebx, 0xffe
mov dword [ebp - 0x78], esi
push ebx
mov word [ebp + 0x2f98], ax
lea eax, [ebp + 0x2f9a]
push esi
push eax
mov dword [ebp - 0x70], esi
call fcn.00410610
xor eax, eax
push ebx
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x66]
push esi
push eax
call fcn.00410610
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
push 0x20019
push esi
push 0x42fc30
mov edi, 0x800
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x6c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d878
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x2f98]
push eax
push esi
jmp 0x40d867
lea eax, [ebp + 0x2f98]
push eax
push 0x42fc88
push 0x42fc24
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.0042d457
add esp, 0x14
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x68]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d84f
push ebx
mov word [ebp + 0xf98], ax
lea eax, [ebp + 0xf9a]
push esi
push eax
call fcn.00410610
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xf98]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push 0x42fce0
push dword [ebp - 0x7c]
mov dword [ebp - 0x6c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d84f
cmp dword [ebp - 0x6c], esi
jbe 0x40d84f
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x1f98]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push 0x42fcf8
push dword [ebp - 0x7c]
mov dword [ebp - 0x6c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
inc dword [ebp - 0x70]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x2f98]
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x6c], edi
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40d7b1
mov ecx, dword [ebp - 0x74]
lea eax, [ebp + 0x1f98]
push eax
call fcn.0040d1d7
mov ecx, dword [ebp + 0x3f98]
mov eax, dword [ebp - 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ffe6
add ebp, 0x3f9c
leave
ret