joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d0869
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov edx, 0x274d8e7b
btr cx, cx
jns 0x100d08b0
js 0x100d088f
aas
mov ecx, 0xdabb4829
pop ds
lcall 0xff73, 0xa59a6f08
outsd dx, dword [esi]
or bh, cl
sbb al, 0x52
push ebp
call fcn.100d0869
mov dl, byte [esp + 1]
call fcn.100d08cf
add esp, 4
jns 0x100d0949
js 0x100d0949
les ecx, [ebp - 0x23]
movsb byte es:[edi], byte [esi]
push edi
rcr byte [edi + ebp*4 - 0x4a], cl
mov dl, byte [esp + 1]
call fcn.100d08f2
xchg dl, bl
rdtsc
setne cl
push eax
lea edi, [edi + 0x1c]
jmp 0x100d091e
xchg bp, si
push dword [esp + 4]
ret 8
mov esi, 0xd4f8e21c
lea ebp, [eax + ecx]
xchg dword [esp + 4], edi
mov edx, edi
rdtsc
not bx
jmp 0x100d0908
mov esi, dword [esp]
lea esp, [esp + 4]
mov ch, byte [esp]
xchg dh, bh
jmp 0x100d09ce
mov ecx, edi
mov eax, edx
jmp 0x100d0933
not edx
mov dx, word [esp]
jmp 0x100d099c
jmp 0x100d096b
bsr ecx, esi
jp 0x100d09a9
mov edi, dword [esp]
jmp 0x100d09b5
pop edx
mov edi, dword [esp]
mov cl, 0x68
mov ah, 0x4f
xchg di, bx
jmp 0x100d0983
mov edi, dword [esp]
mov ch, byte [esp]
jmp 0x100d09f9
mov ch, byte [esp]
mov bx, 0x9fe
lea esp, [esp + 4]
jmp fcn.100c6af2
lea ebp, reloc.MSVCRT.dll___dllonexit
pop ebp
mov edx, edi
inc dh
jno 0x100d0981
not edx
mov dx, word [esp]
jmp 0x100d099c
mov bx, 0x9fe
lea esp, [esp + 4]
jmp fcn.100c6af2

Function at 0x100d179b
Capabilities:
Execute anti-debugging instructions

Disassembly:
bsr eax, ebx
jne 0x100d0849
lea ebx, reloc.MSVCRT.dll___dllonexit
stc
mov bx, si
jmp 0x100d0889
bswap eax
mov cx, 0xd05d
mov ecx, dword [esp]
xchg ebx, ecx
push edi
jmp 0x100d080f
mov bx, si
jmp 0x100d0889
lea ebx, reloc.MSVCRT.dll___dllonexit
stc
jmp 0x100d0833
bts dx, bx
mov ecx, ebx
push eax
jmp 0x100d0825
lea ecx, [esi + edi]
jmp 0x100d0860
jno 0x100d0ca8
jo 0x100d0ca8
push esi
dec edx
jbe 0x100d0963
lea ecx, [esi + edi]
bts dx, bx
mov ecx, ebx
jmp 0x100d0866
cmc
jmp 0x100d0abd
add ebp, 4
mov ebx, 0x8f5c3c41
bsr edx, edi
jg 0x100d13fc
jle 0x100d13fc
jle 0x100d17b4
jg 0x100d17b4
lea esp, [esp + 8]
sub bl, 0x35
call 0x100d179b
dec edi
pop cx
btc cx, bp
ja 0x100d17fe
pop cx
rol cx, 4
jmp 0x100d1800
call 0x100d17ca
push esi
aad 0x45
sub al, 0xdf
mov edi, 0xb3d446c0
dec esi
jns 0x100d183d
ja 0x100d1825
pop esi
test eax, 0xeb8a6bc8
mov cx, word [esp]
jmp 0x100d178e
shl cl, cl
jmp 0x100d178a
pop cx
rol cx, 4
jmp 0x100d1800
jmp 0x100d17e8
dec bl
setno cl
clc
jle 0x100d2193
jg 0x100d1925
in al, dx
bound eax, qword [0x587973f4]
mov ebx, 0x7d8b92
mov dx, word [esp]
mov bl, cl
mov ecx, dword [esp]
jmp 0x100d1502
jmp 0x100d1847
jecxz 0x100d17c5
jne 0x100d18bc
mul cl
dec ch
jmp 0x100d1876
lea ecx, [esp - 0xed]
dec ebp
mov bx, di
bts bx, bx
jmp 0x100d189c
bswap ebx
mov ecx, 0xc07f6403
call fcn.100d1886
out 0x66, eax
hlt
bswap ecx
dec ch
sub dl, bl
push esi
neg ecx
jnp 0x100d182d
lea ecx, [esp - 0xed]
jmp 0x100d184e
ja 0x100d185c
bswap ebx
mov ecx, 0xc07f6403
jmp 0x100d1863
inc bl
stc
jnp 0x100d1872
bswap ecx
jmp 0x100d1843
mov ch, byte [esp]
mov ch, al
sbb ecx, 0x4ad8d400
jmp 0x100d219e
mov ch, byte [esp]
mov ch, al
sbb ecx, 0x4ad8d400
jmp 0x100d18b9
Function at 0x100d17ca
Capabilities:
Execute anti-debugging instructions

Disassembly:
bsr eax, ebx
jne 0x100d0849
lea ebx, reloc.MSVCRT.dll___dllonexit
stc
mov bx, si
jmp 0x100d0889
bswap eax
mov cx, 0xd05d
mov ecx, dword [esp]
xchg ebx, ecx
push edi
jmp 0x100d080f
mov bx, si
jmp 0x100d0889
lea ebx, reloc.MSVCRT.dll___dllonexit
stc
jmp 0x100d0833
bts dx, bx
mov ecx, ebx
push eax
jmp 0x100d0825
lea ecx, [esi + edi]
jmp 0x100d0860
jno 0x100d0ca8
jo 0x100d0ca8
push esi
dec edx
jbe 0x100d0963
lea ecx, [esi + edi]
bts dx, bx
mov ecx, ebx
jmp 0x100d0866
cmc
jmp 0x100d0abd
add ebp, 4
mov ebx, 0x8f5c3c41
bsr edx, edi
jg 0x100d13fc
jle 0x100d13fc
jle 0x100d17b4
jg 0x100d17b4
lea esp, [esp + 8]
sub bl, 0x35
call 0x100d179b
dec edi
pop cx
btc cx, bp
ja 0x100d17fe
pop cx
rol cx, 4
jmp 0x100d1800
call 0x100d17ca
push esi
aad 0x45
sub al, 0xdf
mov edi, 0xb3d446c0
dec esi
jns 0x100d183d
ja 0x100d1825
pop esi
test eax, 0xeb8a6bc8
mov cx, word [esp]
jmp 0x100d178e
shl cl, cl
jmp 0x100d178a
pop cx
rol cx, 4
jmp 0x100d1800
jmp 0x100d17e8
dec bl
setno cl
clc
jle 0x100d2193
jg 0x100d1925
in al, dx
bound eax, qword [0x587973f4]
mov ebx, 0x7d8b92
mov dx, word [esp]
mov bl, cl
mov ecx, dword [esp]
jmp 0x100d1502
jmp 0x100d1847
jecxz 0x100d17c5
jne 0x100d18bc
mul cl
dec ch
jmp 0x100d1876
lea ecx, [esp - 0xed]
dec ebp
mov bx, di
bts bx, bx
jmp 0x100d189c
bswap ebx
mov ecx, 0xc07f6403
call fcn.100d1886
out 0x66, eax
hlt
bswap ecx
dec ch
sub dl, bl
push esi
neg ecx
jnp 0x100d182d
lea ecx, [esp - 0xed]
jmp 0x100d184e
ja 0x100d185c
bswap ebx
mov ecx, 0xc07f6403
jmp 0x100d1863
inc bl
stc
jnp 0x100d1872
bswap ecx
jmp 0x100d1843
mov ch, byte [esp]
mov ch, al
sbb ecx, 0x4ad8d400
jmp 0x100d219e
mov ch, byte [esp]
mov ch, al
sbb ecx, 0x4ad8d400
jmp 0x100d18b9
Function at 0x100d17e4
Capabilities:
Execute anti-debugging instructions

Disassembly:
bsr eax, ebx
jne 0x100d0849
lea ebx, reloc.MSVCRT.dll___dllonexit
stc
mov bx, si
jmp 0x100d0889
bswap eax
mov cx, 0xd05d
mov ecx, dword [esp]
xchg ebx, ecx
push edi
jmp 0x100d080f
mov bx, si
jmp 0x100d0889
lea ebx, reloc.MSVCRT.dll___dllonexit
stc
jmp 0x100d0833
bts dx, bx
mov ecx, ebx
push eax
jmp 0x100d0825
lea ecx, [esi + edi]
jmp 0x100d0860
jno 0x100d0ca8
jo 0x100d0ca8
push esi
dec edx
jbe 0x100d0963
lea ecx, [esi + edi]
bts dx, bx
mov ecx, ebx
jmp 0x100d0866
cmc
jmp 0x100d0abd
add ebp, 4
mov ebx, 0x8f5c3c41
bsr edx, edi
jg 0x100d13fc
jle 0x100d13fc
jle 0x100d17b4
jg 0x100d17b4
lea esp, [esp + 8]
sub bl, 0x35
call 0x100d179b
dec edi
pop cx
btc cx, bp
ja 0x100d17fe
pop cx
rol cx, 4
jmp 0x100d1800
call 0x100d17ca
push esi
aad 0x45
sub al, 0xdf
mov edi, 0xb3d446c0
dec esi
jns 0x100d183d
ja 0x100d1825
pop esi
test eax, 0xeb8a6bc8
mov cx, word [esp]
jmp 0x100d178e
shl cl, cl
jmp 0x100d178a
pop cx
rol cx, 4
jmp 0x100d1800
jmp 0x100d17e8
dec bl
setno cl
clc
jle 0x100d2193
jg 0x100d1925
in al, dx
bound eax, qword [0x587973f4]
mov ebx, 0x7d8b92
mov dx, word [esp]
mov bl, cl
mov ecx, dword [esp]
jmp 0x100d1502
jmp 0x100d1847
jecxz 0x100d17c5
jne 0x100d18bc
mul cl
dec ch
jmp 0x100d1876
lea ecx, [esp - 0xed]
dec ebp
mov bx, di
bts bx, bx
jmp 0x100d189c
bswap ebx
mov ecx, 0xc07f6403
call fcn.100d1886
out 0x66, eax
hlt
bswap ecx
dec ch
sub dl, bl
push esi
neg ecx
jnp 0x100d182d
lea ecx, [esp - 0xed]
jmp 0x100d184e
ja 0x100d185c
bswap ebx
mov ecx, 0xc07f6403
jmp 0x100d1863
inc bl
stc
jnp 0x100d1872
bswap ecx
jmp 0x100d1843
mov ch, byte [esp]
mov ch, al
sbb ecx, 0x4ad8d400
jmp 0x100d219e
mov ch, byte [esp]
mov ch, al
sbb ecx, 0x4ad8d400
jmp 0x100d18b9
Function at 0x401016
Capabilities:
Identify system language via api

Disassembly:
push esi
push edi
mov edi, 0x409
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esi, eax
mov eax, 0x804
cmp si, ax
je 0x401077
and esi, 0xff
call fcn.00401000
test eax, eax
je 0x401051
movzx eax, si
cmp eax, dword [0x406050]
jne 0x401074
mov edi, dword [0x406054]
jmp 0x401074
xor edx, edx
mov eax, 0x406018
movzx ecx, si
cmp ecx, dword [eax]
je 0x40106c
add eax, 8
inc edx
cmp eax, 0x406068
jl 0x40105b
jmp 0x401074
mov di, word [edx*8 + 0x40601c]
mov ax, di
pop edi
pop esi
ret
Function at 0x40150e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
mov edi, eax
push esi
lea eax, [ebp - 4]
push esi
push eax
push 0x400
push edi
push esi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp - 4]
call sub.MSVCRT.dll_strlen
push dword [ebp + 8]
mov ebx, eax
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [ebx + eax + 0x28]
pop ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp - 4]
mov ebx, eax
push edi
push dword [ebp + 8]
push str._s_failed_with_error__d:__s
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push esi
push str.Error
push ebx
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push ebx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401598
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
xor esi, esi
cmp edi, esi
jne 0x4015bb
xor eax, eax
jmp 0x40165d
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov dword [ebp + 0xc], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0x14]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401606
push str.Installer_:_Wrapper.CreateFile
call fcn.0040150e
pop ecx
cmp dword [ebp + 0xc], esi
mov dword [ebp + 0x10], esi
jbe 0x401643
lea eax, [ebp + 8]
push esi
push eax
push 0x2000
push edi
push ebx
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401632
push str.Installer_:_Wrapper.WriteFile__In_small_chunks_
call fcn.0040150e
pop ecx
mov eax, dword [ebp + 0x10]
add edi, dword [ebp + 8]
add eax, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
jb 0x40160e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
pop ebx
jne 0x40165a
push str.Installer_:_Wrapper.CloseHandle
call fcn.0040150e
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebp
ret
Function at 0x401661
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
xor esi, esi
push 0x10
lea eax, [ebp - 0x14]
push esi
push eax
mov dword [ebp - 4], 1
call sub.MSVCRT.dll_memset
push 0x44
lea eax, [ebp - 0x58]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
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]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop esi
je 0x4016ca
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x4016cf
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push esi
mov esi, 0x400
push edi
lea eax, [ebp - 0x408]
push esi
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x408]
push str.msi.dll
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x808]
push eax
push esi
lea eax, [ebp - 0x408]
push edi
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x401754
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x808]
push 0x4061d4
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x401754
mov edx, dword [ebp - 4]
mov eax, 0x20000
mov ecx, dword [edx + 8]
cmp ecx, eax
ja 0x401751
jne 0x401754
cmp dword [edx + 0xc], 0xa280000
jb 0x401754
push 1
pop edi
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40175a
Capabilities:
Check os version
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x494
push ebx
push esi
mov esi, 0x94
push edi
push esi
lea eax, [ebp - 0x94]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jne 0x4017ac
cmp dword [ebp - 0x8c], 2
jne 0x4017ac
mov dword [0x4077c8], 1
mov esi, dword [ebp + 0xc]
push esi
push 0x400
call fcn.004010bd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
pop ecx
push str.instmsi.exe
push esi
call ebx
cmp dword [ebp - 0x84], 1
push esi
jne 0x4017dd
push str.WI_WIN32_INSTALLER
push 0x66
jmp 0x4017e4
push str.WI_WINNT_INSTALLER
push 0x67
push dword [ebp + 8]
call fcn.00401598
mov edi, eax
add esp, 0x10
test edi, edi
je 0x401849
push esi
lea eax, [ebp - 0x494]
push str.__s___C:_msiinst.exe__delayreboot_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x494]
push eax
call fcn.00401661
add esp, 0x10
mov ecx, 0xbc2
test eax, eax
je 0x401824
cmp eax, ecx
jne 0x401849
push 1
cmp eax, ecx
pop edi
jne 0x401849
push str.REBOOT
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
jne 0x401849
push str._REBOOTFORCE_JAVAREBOOT1
push dword [ebp + 0x10]
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401857
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp dword [0x4077c8], esi
je 0x401878
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 1
pop esi
jmp 0x4018c6
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionInstaller
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4018d4
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push dword [ebp + 8]
push eax
push 0
push str.InstallerLocation
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4018b9
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4018d4
push str.msiexec.exe
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, esi
pop esi
leave
ret

Function at 0x4019d6
Capabilities:
Create directory

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
call fcn.00401909
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push str._sSun_
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0x10
push 0
push esi
call ebx
push esi
push str._sJava_
push esi
call edi
add esp, 0xc
push 0
push esi
call ebx
mov ebp, 0x406068
push str.1.5.0_10
push ebp
push esi
push str._s_s_s
push esi
call edi
add esp, 0x14
push 0
push esi
call ebx
push str.1.5.0_10
push ebp
push esi
push str._s_s_s.msi
push esi
call edi
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4029ed
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x404830
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x14
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x20]
mov edi, 0x20019
push eax
push edi
push ebx
push str.Software
push 0x80000002
mov byte [ebp - 4], 3
mov dword [ebp - 0x20], ebx
call esi
cmp eax, ebx
jne 0x402a96
lea ecx, [ebp - 0x1c]
call fcn.004023f1
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x1c], ecx
jne 0x402a96
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
push ebx
push str.JavaSoft
push ecx
call esi
cmp eax, ebx
jne 0x402a96
lea ecx, [ebp - 0x10]
call fcn.004023f1
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
jne 0x402a96
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
push ebx
push str.Java_Update
push ecx
call esi
cmp eax, ebx
jne 0x402a96
lea ecx, [ebp - 0x18]
call fcn.004023f1
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x18], ecx
je 0x402aca
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004023f1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004023f1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004023f1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004023f1
jmp 0x402b67
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
push ebx
push str.Policy
push ecx
call esi
cmp eax, ebx
jne 0x402af1
lea ecx, [ebp - 0x14]
call fcn.004023f1
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
je 0x402b14
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004023f1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004023f1
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402b53
push dword [ebp + 0x10]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push dword [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402b6b
cmp dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x402b43
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
je 0x402b50
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x10], ebx
je 0x402b5d
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x1c], ebx
je 0x402b67
push dword [ebp - 0x1c]
call esi
xor eax, eax
jmp 0x402ba5
cmp dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x402b7e
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
je 0x402b8b
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x10], ebx
je 0x402b98
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x1c], ebx
je 0x402ba2
push dword [ebp - 0x1c]
call esi
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x402f8a
Capabilities:
Set registry value

Disassembly:
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x402fa9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 0x10], 0
je 0x402fc8
lea eax, [ebp - 0x20]
push 0x1e
push eax
push 0
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetTimeFromSystemTime]
jmp 0x402fcc
and byte [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x20]
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
leave
ret

Function at 0x402ff2
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
and dword [ebp - 4], 0
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x4030a0
cmp dword [ebp - 0x94], 5
jne 0x4030a0
cmp dword [ebp - 0x90], 1
jae 0x40309b
lea eax, [ebp - 0x84]
test eax, eax
je 0x40308c
lea eax, [ebp - 0x84]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x40308c
lea eax, [ebp - 0x84]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x40308c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x84]
push str.Service_Pack__d
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
cmp dword [ebp - 0x90], 0
jne 0x4030a0
cmp dword [ebp - 4], 2
jb 0x4030a0
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x4030a4
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x404854
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x114
push esi
xor esi, esi
push edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x1c]
mov edi, 0x20019
push eax
push edi
push esi
push str.SOFTWARE
push 0x80000002
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x4030ff
lea ecx, [ebp - 0x18]
call fcn.004023f1
mov ecx, dword [ebp - 0x1c]
cmp eax, esi
mov dword [ebp - 0x18], ecx
je 0x40311f
lea ecx, [ebp - 0x10]
call fcn.004023f1
lea ecx, [ebp - 0x14]
call fcn.004023f1
cmp dword [ebp - 0x18], esi
je 0x403171
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403171
push edi
push str.JavaSoft
push ecx
lea ecx, [ebp - 0x14]
call fcn.00403284
test eax, eax
jne 0x403147
push edi
push str.Java_Runtime_Environment
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.00403284
test eax, eax
je 0x403178
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40315a
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
cmp dword [ebp - 0x14], esi
je 0x403167
push dword [ebp - 0x14]
call edi
mov dword [ebp - 0x14], esi
cmp dword [ebp - 0x18], esi
je 0x403171
push dword [ebp - 0x18]
call edi
xor eax, eax
jmp 0x403276
push ebx
lea eax, [ebp - 0x120]
push 0x4077cc
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
pop ecx
mov ebx, 0x80
lea eax, [ebp - 0xa0]
push ebx
push eax
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], 1
call edi
test eax, eax
jne 0x403248
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.MSVCRT.dll__strcmpi]
pop ecx
test eax, eax
pop ecx
jle 0x403213
lea eax, [ebp - 0xa0]
push str.1.5.0_10
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x403213
lea eax, [ebp - 0xa0]
push eax
call sub.MSVCRT.dll_strlen
cmp eax, 3
pop ecx
jbe 0x403213
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x120]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
mov dword [ebp - 0x20], 1
pop ecx
mov eax, dword [ebp - 0x1c]
inc dword [ebp - 0x1c]
lea ecx, [ebp - 0xa0]
push ebx
push ecx
push eax
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x4031b4
cmp dword [ebp - 0x20], esi
je 0x403248
lea eax, [ebp - 0x120]
push eax
push 0x4060f0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
je 0x40325c
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
cmp dword [ebp - 0x14], esi
je 0x403269
push dword [ebp - 0x14]
call edi
mov dword [ebp - 0x14], esi
cmp dword [ebp - 0x18], esi
je 0x403273
push dword [ebp - 0x18]
call edi
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret