joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406443
Capabilities:
Query environment variable

Disassembly:
push 0x28
mov eax, 0x40b33c
call fcn.00409f2d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x34]
push eax
call fcn.00404db5
mov esi, dword [ebp - 0x34]
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
pop ebx
jmp 0x4064c7
cmp dword [esi + 0x14], ebx
jb 0x406477
mov eax, dword [esi]
jmp 0x406479
mov eax, esi
push eax
push str._Dsun.java2d.noddraw
call fcn.00405b27
pop ecx
pop ecx
cmp eax, 1
je 0x4064ce
cmp dword [esi + 0x14], ebx
jb 0x406494
mov eax, dword [esi]
jmp 0x406496
mov eax, esi
push eax
push str._Dsun.java2d.d3d
call fcn.00405b27
pop ecx
pop ecx
test eax, eax
je 0x4064ce
cmp dword [esi + 0x14], ebx
jb 0x4064b0
mov eax, dword [esi]
jmp 0x4064b2
mov eax, esi
push eax
push str._Dsun.java2d.opengl
call fcn.00405b27
pop ecx
pop ecx
cmp eax, 1
je 0x4064ce
add esi, 0x1c
cmp esi, dword [ebp - 0x30]
jne 0x40646e
jmp 0x4064d4
mov dword [0x410c04], edi
cmp dword [0x410c04], edi
je 0x406556
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
xor eax, eax
mov byte [ebp - 0x20], 0
lea edi, [ebp - 0x1f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x20]
push eax
push str.J2D_D3D
call esi
mov edi, dword [sym.imp.MSVCR100.dll__mbsicmp]
test eax, eax
je 0x406522
cmp eax, ebx
jae 0x406522
lea eax, [ebp - 0x20]
push 0x40d05c
push eax
call edi
pop ecx
pop ecx
test eax, eax
jne 0x406522
and dword [0x410c04], eax
push ebx
lea eax, [ebp - 0x20]
push eax
push str.J2D_D3D_PRELOAD
call esi
test eax, eax
je 0x40654d
cmp eax, ebx
jae 0x40654d
lea eax, [ebp - 0x20]
push 0x40d074
push eax
call edi
pop ecx
pop ecx
test eax, eax
jne 0x40654d
and dword [0x410c04], eax
cmp dword [0x410c04], 0
jne 0x406568
xor esi, esi
lea ecx, [ebp - 0x34]
call fcn.00403de4
mov eax, esi
call fcn.00409f77
ret
push dword [ebp - 0x24]
push str.preloadD3D
call fcn.0040623b
pop ecx
pop ecx
mov esi, eax
jmp 0x406558
Function at 0x40681d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x411100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x207
lea eax, [ebp - 0x30f]
push 0
push eax
mov byte [ebp - 0x310], 0
call sub.MSVCR100.dll_memset
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call sub.MSVCR100.dll_memset
add esp, 0x18
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
push 0x40cdcc
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4068bc
cmp eax, esi
jae 0x4068bc
lea eax, [ebp - 0x108]
push eax
push str.javaplugin.user.profile
push str._D_s_s
lea eax, [ebp - 0x310]
push 0x208
push eax
call dword [sym.imp.MSVCR100.dll__snprintf]
add esp, 0x14
lea eax, [ebp - 0x310]
push eax
mov ecx, edi
call fcn.00406bca
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00409df2
leave
ret

Function at 0x406ef6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406f50
cmp dword [ebp + 0x10], 1
je 0x406f35
cmp dword [ebp + 0x10], 2
je 0x406f35
push 0xd
pop eax
jmp 0x406f50
mov eax, dword [ebp - 4]
test edi, edi
je 0x406f4c
test eax, eax
je 0x406f49
cmp byte [eax + edi - 1], 0
je 0x406f4c
jmp 0x406f30
mov byte [edi], 0
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x40736d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x411100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x103
push esi
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edi, [esi + 1]
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4073ff
cmp eax, edi
ja 0x4073ff
push esi
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call sub.MSVCR100.dll_memset
push ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push 0x40d5fc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x407401
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409df2
leave
ret

Function at 0x407410
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x40741d
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_CreateProcessA]
pop ebp
ret
Function at 0x407479
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x44
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
call sub.MSVCR100.dll_memset
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
add esp, 0xc
mov word [ebp - 0x28], ax
lea eax, [ebp - 4]
xor edi, edi
push eax
inc edi
push 0x2000000
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4074f2
cmp dword [ebp + 8], esi
je 0x4074f2
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push 0x8000008
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
cmp eax, esi
jne 0x4074f6
xor eax, eax
jmp 0x407514
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x407720
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78c]
sub esp, 0x80c
mov eax, dword [0x411100]
xor eax, ebp
mov dword [ebp + 0x788], eax
push ebx
mov ebx, dword [ebp + 0x798]
push esi
mov esi, dword [ebp + 0x79c]
push edi
mov edi, dword [ebp + 0x794]
push 0x3ff
lea eax, [ebp + 0x389]
push 0
push eax
mov byte [ebp + 0x388], 0
call sub.MSVCR100.dll_memset
push edi
push str.SOFTWAREClassesCLSID_sInprocServer32
mov edi, 0x400
lea eax, [ebp + 0x388]
push edi
push eax
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x1c
lea eax, [ebp - 0x7c]
push eax
push 0x20019
neg esi
push 0
lea eax, [ebp + 0x388]
sbb esi, esi
push eax
add esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4077b9
xor ecx, ecx
cmp eax, 2
sete cl
mov eax, ecx
jmp 0x4077fc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x40d0fa
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp - 0x7c]
test eax, eax
je 0x4077e3
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4077fc
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x78]
push eax
push ebx
call dword [sym.imp.MSVCR100.dll__mbscmp]
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
mov ecx, dword [ebp + 0x788]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409df2
add ebp, 0x78c
leave
ret

Function at 0x4079f8
Capabilities:
Query environment variable

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
je 0x407a19
push dword [esp + 0xc]
push dword [esp + 0xc]
push str.USER_JPI_PROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x407a19
inc esi
mov eax, esi
pop esi
ret
Function at 0x407a4f
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x40b437
call fcn.00409ef7
mov eax, dword [ebp + 8]
push 0x104
push eax
xor edi, edi
push edi
push edi
xor ecx, ecx
push 0x40c6a4
mov word [eax], cx
mov dword [ebp - 4], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
cmp esi, edi
jge 0x407ac3
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__NULL__pPath__MAX_PATH_
call fcn.004091fb
pop ecx
pop ecx
push edi
push esi
call fcn.0040ab70
mov ecx, dword [ebp - 0x18]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x14], esi
call fcn.00408ecc
push eax
push esi
push 0x40d2cc
call fcn.004091fb
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov eax, 0x407abc
ret
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x407b74
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 0x407b20
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x407a87
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x407b74
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 0x407b74
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x407a87
mov eax, esi
call fcn.00409f63
ret

Function at 0x408644
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x411100]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x40b4ba
call fcn.00409ef7
mov esi, dword [ebp + 0x214]
xor ebx, ebx
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x1a
push ebx
mov byte [esi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, ebx
jge 0x40869e
push edi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.004091fb
pop ecx
pop ecx
push ebx
push edi
call fcn.0040ab70
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.00408d94
mov ecx, dword [eax]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x4086bb
call fcn.00408c26
jmp 0x4086bd
xor eax, eax
push 0x104
push eax
push dword [ebp + 0x218]
push esi
call dword [sym.imp.MSVCR100.dll__mbsnbcpy_s]
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp ecx, ebx
je 0x408709
call fcn.00408f68
jmp 0x408709
xor eax, eax
cmp edi, ebx
setge al
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.00409df2
add ebp, 0x20c
leave
ret
Function at 0x408733
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x411100]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x40b4ea
call fcn.00409ef7
mov esi, dword [ebp + 0x214]
xor ebx, ebx
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x23
push ebx
mov byte [esi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, ebx
jge 0x40878d
push edi
push str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.004091fb
pop ecx
pop ecx
push ebx
push edi
call fcn.0040ab70
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.00408d94
mov ecx, dword [eax]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x4087aa
call fcn.00408c26
jmp 0x4087ac
xor eax, eax
push 0x104
push eax
push dword [ebp + 0x218]
push esi
call dword [sym.imp.MSVCR100.dll__mbsnbcpy_s]
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp ecx, ebx
je 0x4087f8
call fcn.00408f68
jmp 0x4087f8
xor eax, eax
cmp edi, ebx
setge al
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.00409df2
add ebp, 0x20c
leave
ret

Function at 0x408c7c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x411100]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
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.00406e6f
mov ebx, eax
cmp ebx, esi
je 0x408cef
lea ecx, [ebp - 0x74]
call fcn.00406e54
mov eax, ebx
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409df2
add ebp, 0xa0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x408d07
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.00408c7c
cmp eax, esi
jne 0x408d39
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 0x408cf7
lea ecx, [ebp - 0x74]
call fcn.00406e54
push dword [ebp - 0x78]
mov ecx, edi
call fcn.00406de5
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.00406e54
mov eax, esi
jmp 0x408cd5
Function at 0x409089
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x411100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x823]
push 0
push eax
mov byte [ebp - 0x824], 0
call sub.MSVCR100.dll_memset
push edi
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x824]
push 0x400
push eax
call dword [sym.imp.MSVCR100.dll__vsnprintf_s]
add esp, 0x20
test eax, eax
jns 0x4090e4
mov byte [ebp - 0x425], 0
push 7
xor eax, eax
mov byte [ebp - 0x24], 0
pop ecx
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.0040900a
push 0x40da08
lea eax, [ebp - 0x24]
push 0x20
push eax
call dword [sym.imp.MSVCR100.dll_strcat_s]
push esi
lea eax, [ebp - 0x423]
push 0
push eax
mov byte [ebp - 0x424], 0
call sub.MSVCR100.dll_memset
mov eax, ebx
add esp, 0x20
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40912f
sub eax, edi
cmp eax, 6
jbe 0x409158
lea eax, [ebx + eax - 6]
push str.__08x_
push eax
call dword [sym.imp.MSVCR100.dll__mbscmp]
pop ecx
pop ecx
test eax, eax
jne 0x409158
xor ebx, ebx
inc ebx
jmp 0x40915a
xor ebx, ebx
lea eax, [ebp - 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409160
sub eax, edx
mov edi, eax
mov eax, str.Error:
test ebx, ebx
jne 0x409179
mov eax, 0x40d91e
lea ecx, [ebp - 0x824]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.P:_04d_T:_04d__s_s
push 0xffffffffffffffff
sub esi, edi
lea eax, [ebp + edi - 0x424]
push esi
push eax
call dword [sym.imp.MSVCR100.dll__snprintf_s]
add esp, 0x20
test eax, eax
jns 0x4091b5
mov dword [ebp - 0x29], 0x2e2e2e
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x424]
push eax
call sub.MSVCR100.dll_memcpy
lea edi, [ebp - 0x424]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4091d0
lea eax, [ebp - 0x424]
mov esi, 0x40da34
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409df2
leave
ret

Function at 0x40923b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x411100]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x412c74], 0
je 0x40925e
mov eax, dword [0x412c70]
jmp 0x4092b1
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x88], 2
jne 0x4092a4
cmp dword [ebp - 0x94], 6
jb 0x4092a4
mov eax, ecx
jmp 0x4092a6
xor eax, eax
mov dword [0x412c70], eax
mov dword [0x412c74], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409df2
leave
ret
Function at 0x4092bd
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x179c]
mov eax, 0x181c
call fcn.00409e10
mov eax, dword [0x411100]
xor eax, ebp
mov dword [ebp + 0x1798], eax
mov eax, dword [ebp + 0x17a4]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x7ff
push edi
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0xf99]
push ebx
push eax
mov dword [ebp - 0x70], ebx
mov byte [ebp + 0xf98], bl
call sub.MSVCR100.dll_memset
push edi
lea eax, [ebp - 0x67]
push ebx
push eax
mov byte [ebp - 0x68], bl
call sub.MSVCR100.dll_memset
add esp, 0x18
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push ebx
push 0x40dc3c
lea esi, [edi + 1]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x6c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40941d
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xf98]
push eax
push ebx
jmp 0x40940c
lea eax, [ebp + 0xf98]
push eax
push str.SOFTWAREJavaSoftJava_Runtime_Environment
push str._s_s
lea eax, [ebp - 0x68]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x14
lea eax, [ebp - 0x78]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x68]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4093f4
push edi
lea eax, [ebp + 0x799]
push ebx
push eax
mov byte [ebp + 0x798], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x798]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push str.RuntimeLib
push dword [ebp - 0x78]
mov dword [ebp - 0x6c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4093f4
cmp dword [ebp - 0x6c], ebx
jbe 0x4093f4
mov eax, dword [ebp + 0x17a8]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x80]
push eax
push ebx
push str.JavaHome
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
inc dword [ebp - 0x70]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xf98]
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x6c], esi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x409354
mov eax, dword [ebp - 0x74]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x409423
sub eax, edx
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [ebp + 0x1798]
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
neg eax
pop ebx
call fcn.00409df2
add ebp, 0x179c
leave
ret
Function at 0x40944c
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
push dword [ebp + 8]
xor esi, esi
inc esi
mov dword [ebp - 8], esi
call dword [sym.imp.MSVCR100.dll_getenv]
pop ecx
test eax, eax
je 0x409481
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
neg eax
sbb eax, eax
inc eax
jmp 0x4094dd
call fcn.0040923b
test eax, eax
mov eax, dword [str.SOFTWAREAppDataLowSOFTWAREJavaSoftDeploymentPropertiespending]
jne 0x409494
mov eax, dword [str.SOFTWAREJavaSoftDeploymentPropertiespending]
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4094b3
xor eax, eax
jmp 0x4094dd
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4094d2
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x409633
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
call fcn.004094e0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
call fcn.0040923b
test eax, eax
mov eax, dword [str.SOFTWAREAppDataLowSOFTWAREJavaSoftDeploymentPropertiespending]
jne 0x409662
mov eax, dword [str.SOFTWAREJavaSoftDeploymentPropertiespending]
lea ecx, [ebp - 4]
push ecx
push 0x20006
push edi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x409682
xor eax, eax
pop edi
pop esi
leave
ret
push esi
push dword [ebp + 0xc]
push 1
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4096a6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40967e
xor edi, edi
inc edi
jmp 0x409699
Function at 0x10008860
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x100088ac
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x1000888f
cmp edi, 2
jb 0x1000888f
cmp byte [esi], cl
jne 0x1000888f
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1015ce28]
test edi, edi
jne 0x10008875
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x100088db
cmp cl, 0x23
jne 0x100088c2
cmp byte [esi], cl
jne 0x100088c2
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x1015ce28]
test cl, cl
jne 0x100088b3
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x10008a80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10008a93
mov dword [edi], 0
mov edx, 0x1015cc9c
call fcn.100088f0
mov esi, eax
test esi, esi
je 0x10008b7c
push esi
call fcn.10111c83
add esp, 4
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x10008b73
push 2
push 0
push esi
call fcn.1011292f
add esp, 0xc
test eax, eax
jne 0x10008b73
push esi
call fcn.10111c83
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x10008b73
push 0
push dword [ebp + 8]
push esi
call fcn.1011292f
add esp, 0xc
test eax, eax
jne 0x10008b73
mov eax, dword [0x101e1d00]
test eax, eax
je 0x10008b06
inc dword [eax + 0x374]
push dword [0x101e1cf8]
push ebx
call fcn.10008000
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
je 0x10008b73
push esi
push ebx
push 1
push eax
call fcn.101157d6
add esp, 0x10
push esi
cmp eax, ebx
je 0x10008b5d
call fcn.101125dc
mov eax, dword [0x101e1d00]
add esp, 4
test eax, eax
je 0x10008b45
dec dword [eax + 0x374]
push dword [0x101e1cf8]
push dword [ebp + 8]
call fcn.10008010
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.101125dc
add esp, 4
test edi, edi
je 0x10008b6b
mov dword [edi], ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call fcn.101125dc
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret