joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003408f
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x238]
sub esp, 0x2b8
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x234], eax
push esi
push 0x208
xor esi, esi
lea eax, [ebp + 0x2c]
push esi
push eax
call fcn.1003c260
add esp, 0xc
lea eax, [ebp + 0x2c]
push eax
push esi
push esi
push 0x2c
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x100340ea
xor eax, eax
mov ecx, dword [ebp + 0x234]
xor ecx, ebp
pop esi
call fcn.1003c09c
add ebp, 0x238
leave
ret
xor eax, eax
push ebx
mov word [ebp + 0x10], ax
push edi
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x24], 7
mov dword [ebp + 0x20], esi
call fcn.1000faa0
push str.JavaJava_Updatejucheck.exe
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100374fc
add esp, 0xc
xor ebx, ebx
push esi
inc ebx
push ebx
lea ecx, [ebp + 0x10]
call fcn.1000cddd
push 0x22
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x10]
push 0x22
push eax
call fcn.10033fad
add esp, 0xc
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.100374fc
add esp, 0xc
push esi
push ebx
lea ecx, [ebp + 0x10]
call fcn.1000cddd
push 0x40
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.1003c260
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword [ebp - 0x3c], esi
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
cmp dword [ebp + 8], 8
stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0x44
mov eax, ecx
jae 0x10034184
lea eax, [ebp - 0xc]
cmp dword [ebp + 8], 8
mov edx, dword [ebp + 4]
lea eax, [eax + edx*2]
jae 0x10034193
lea ecx, [ebp - 0xc]
push dword [ebp - 0x2c]
mov dword [ebp + 0x1c], esi
push eax
push ecx
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x24], esi
call fcn.1003402c
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 0x1c]
mov dword [ebp - 0x2c], esi
call fcn.10033da9
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x100341c4
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push esi
push esi
push 0x8000000
push ebx
push esi
push esi
push dword [ebp + 0x1c]
push eax
call fcn.10030fc5
add esp, 0x28
test eax, eax
jne 0x1003420d
xor edi, edi
lea ecx, [ebp + 0x1c]
call fcn.10033797
push esi
push ebx
lea ecx, [ebp - 0xc]
call fcn.1000cddd
push esi
push ebx
lea ecx, [ebp - 0x28]
call fcn.1000cddd
mov eax, edi
pop edi
pop ebx
jmp 0x100340d4
mov edi, ebx
jmp 0x100341e8
Function at 0x1003427d
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3f9c]
mov eax, 0x401c
call fcn.1003c230
mov eax, dword [0x10095dec]
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.1003c260
xor eax, eax
push ebx
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x66]
push esi
push eax
call fcn.1003c260
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
push 0x20019
push esi
push 0x10082480
mov edi, 0x800
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x6c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100343e6
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x2f98]
push eax
push esi
jmp 0x100343d5
lea eax, [ebp + 0x2f98]
push eax
push 0x100824d8
push 0x10082474
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.100374fc
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 0x100343bd
push ebx
mov word [ebp + 0xf98], ax
lea eax, [ebp + 0xf9a]
push esi
push eax
call fcn.1003c260
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xf98]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push str.RuntimeLib
push dword [ebp - 0x7c]
mov dword [ebp - 0x6c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100343bd
cmp dword [ebp - 0x6c], esi
jbe 0x100343bd
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x1f98]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push 0x10082548
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 0x1003431f
mov ecx, dword [ebp - 0x74]
lea eax, [ebp + 0x1f98]
push eax
call fcn.100010b1
mov ecx, dword [ebp + 0x3f98]
mov eax, dword [ebp - 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c09c
add ebp, 0x3f9c
leave
ret
Function at 0x10036b31
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x88], eax
push edi
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push 0
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
xor edi, edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80], pe_nt_image_headers32
inc edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10036bcd
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push str.identifier
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10036bcd
mov edx, str.ia64
lea eax, [ebp - 0x78]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x10036bc2
test cx, cx
je 0x10036bbe
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x10036bc2
add eax, 4
add edx, 4
test cx, cx
jne 0x10036b9c
xor eax, eax
jmp 0x10036bc7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10036bcd
xor edi, edi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x88]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.1003c09c
add ebp, 0x8c
leave
ret

Function at 0x10036c53
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x94], eax
cmp dword [0x10097558], 0
je 0x10036c7e
mov eax, dword [0x10097554]
jmp 0x10036cc2
push 0x114
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.1003c260
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 0x10036cb5
cmp dword [ebp - 0x7c], 6
jb 0x10036cb5
mov eax, ecx
jmp 0x10036cb7
xor eax, eax
mov dword [0x10097554], eax
mov dword [0x10097558], ecx
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.1003c09c
add ebp, 0x98
leave
ret

Function at 0x100376f9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x188], eax
lea eax, [ebp - 0x7c]
push eax
push 1
push 0
push 0x10084ef0
push SysReAllocStringLen
mov dword [ebp - 0x80], 0x200
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10037766
push edi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push 0x10084f3c
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x7c]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x10037766
xor al, al
jmp 0x10037768
mov al, 1
mov ecx, dword [ebp + 0x188]
xor ecx, ebp
call fcn.1003c09c
add ebp, 0x18c
leave
ret
Function at 0x100377b8
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3fc4]
mov eax, 0x4044
call fcn.1003c230
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x3fc0], eax
push ebx
push esi
push edi
xor eax, eax
mov edi, 0xffe
push edi
mov word [ebp + 0x2fc0], ax
xor ebx, ebx
lea eax, [ebp + 0x2fc2]
push ebx
push eax
call fcn.1003c260
push ebx
push 1
mov esi, 0x800
lea eax, [ebp + 0x2fc0]
push esi
push eax
call fcn.10024d7d
add esp, 0x1c
test eax, eax
jne 0x1003781c
xor eax, eax
inc eax
jmp 0x10037972
lea eax, [ebp + 0x2fc0]
push eax
push str.11.241.2
call fcn.100374fc
pop ecx
pop ecx
test eax, eax
jg 0x10037814
xor eax, eax
push edi
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x3e]
push ebx
push eax
call fcn.1003c260
push ebx
lea eax, [ebp + 0x2fc0]
push eax
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.1001befb
add esp, 0x1c
test eax, eax
je 0x10037814
xor eax, eax
push edi
mov word [ebp + 0xfc0], ax
lea eax, [ebp + 0xfc2]
push ebx
push eax
call fcn.1003c260
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp + 0xfc0]
push esi
push eax
call fcn.100374fc
push str._bin_ssvagent.exe
lea eax, [ebp + 0xfc0]
push esi
push eax
call fcn.100374fc
push 0x3c
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.1003c260
xor eax, eax
push edi
mov word [ebp + 0x1fc0], ax
lea eax, [ebp + 0x1fc2]
push ebx
push eax
mov dword [ebp - 0x80], 0x3c
call fcn.1003c260
push str._high__jpisetup__register
lea eax, [ebp + 0x1fc0]
push esi
push eax
call fcn.100374fc
add esp, 0x48
call fcn.10030b79
mov dword [ebp - 0x74], str.runas
test eax, eax
jne 0x100378ed
mov dword [ebp - 0x74], str.open
lea eax, [ebp + 0xfc0]
mov dword [ebp - 0x70], eax
xor edi, edi
lea eax, [ebp + 0x2fc0]
inc edi
push eax
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x7c], 0x40
call fcn.100319af
test eax, eax
pop ecx
lea eax, [ebp + 0x1fc0]
je 0x10037921
push str.__new
jmp 0x10037926
push str.__old
push esi
push eax
call fcn.100374fc
lea eax, [ebp + 0x1fc0]
mov dword [ebp - 0x6c], eax
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x10037970
mov dword [ebp - 0x44], edi
cmp dword [ebp - 0x48], ebx
je 0x10037970
push 0xffffffffffffffff
push dword [ebp - 0x48]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x48]
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
push dword [ebp - 0x48]
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp + 0x3fc0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c09c
add ebp, 0x3fc4
leave
ret
Function at 0x10037a39
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2f98]
mov eax, 0x3018
call fcn.1003c230
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x2f94], eax
push ebx
push esi
mov esi, dword [ebp + 0x2fa0]
push edi
xor eax, eax
mov edi, 0xffe
xor ebx, ebx
push edi
mov word [ebp - 0x6c], ax
lea eax, [ebp - 0x6a]
push ebx
push eax
mov byte [ebp - 0x6d], bl
call fcn.1003c260
push esi
push str.SOFTWAREJavaSoftJava_Runtime_Environment
push 0x10084e40
lea esi, [edi + 2]
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.1000b9fb
add esp, 0x20
lea eax, [ebp - 0x78]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x6c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10037bc2
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0xf94]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x10084e4c
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x78]
mov dword [ebp - 0x74], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x74], ebx
jne 0x10037bc2
cmp dword [ebp - 0x80], 1
jne 0x10037bc2
mov eax, dword [ebp - 0x7c]
shr eax, 1
cmp eax, 0x800
jb 0x10037b09
mov eax, 0x7ff
xor ecx, ecx
mov word [ebp + eax*2 + 0xf94], cx
xor eax, eax
push edi
mov word [ebp + 0x1f94], ax
lea eax, [ebp + 0x1f96]
push ebx
push eax
call fcn.1003c260
push str.binjava.exe
lea eax, [ebp + 0xf94]
push eax
push 0x10084e7c
lea eax, [ebp + 0x1f94]
push esi
push eax
call fcn.1000b9fb
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x20
lea eax, [ebp + 0x1f94]
push eax
call edi
test eax, eax
je 0x10037bc2
push str.binclientjvm.dll
lea eax, [ebp + 0xf94]
push eax
push 0x10084eb0
lea eax, [ebp + 0x1f94]
push esi
push eax
call fcn.1000b9fb
add esp, 0x14
lea eax, [ebp + 0x1f94]
push eax
call edi
mov dword [ebp - 0x74], eax
push str.bin_serverjvm.dll
lea eax, [ebp + 0xf94]
push eax
push str._s_s
lea eax, [ebp + 0x1f94]
push esi
push eax
call fcn.1000b9fb
add esp, 0x14
lea eax, [ebp + 0x1f94]
push eax
call edi
cmp dword [ebp - 0x74], ebx
jne 0x10037bbe
cmp eax, ebx
je 0x10037bc2
mov byte [ebp - 0x6d], 1
mov ecx, dword [ebp + 0x2f94]
mov al, byte [ebp - 0x6d]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c09c
add ebp, 0x2f98
leave
ret
Function at 0x10037c8b
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xf94]
mov eax, 0x1014
call fcn.1003c230
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0xf90], eax
mov eax, dword [ebp + 0xf9c]
push esi
xor ecx, ecx
mov dword [ebp - 0x80], eax
mov word [eax], cx
lea eax, [ebp - 0x78]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10084d90
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x78], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10037d8b
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x7c], esi
push esi
jmp 0x10037d76
xor ecx, ecx
xor eax, eax
cmp dword [ebp - 0x74], esi
jbe 0x10037d64
cmp word [ebp + eax*2 - 0x70], 0x2e
jne 0x10037d10
inc ecx
cmp ecx, 1
jg 0x10037d1b
inc eax
cmp eax, dword [ebp - 0x74]
jb 0x10037d02
cmp ecx, 1
jle 0x10037d64
lea eax, [ebp - 0x70]
push 0x10084d84
push eax
call fcn.100374fc
pop ecx
pop ecx
test eax, eax
js 0x10037d64
lea eax, [ebp - 0x70]
push eax
call fcn.10037a39
pop ecx
test al, al
je 0x10037d64
push dword [ebp - 0x80]
lea eax, [ebp - 0x70]
push eax
call fcn.100374fc
pop ecx
pop ecx
test eax, eax
jle 0x10037d64
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0xfa0]
push dword [ebp - 0x80]
call fcn.100374fc
add esp, 0xc
inc dword [ebp - 0x7c]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
mov dword [ebp - 0x74], 0x800
call edi
test eax, eax
je 0x10037cf9
pop edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xf90]
xor ecx, ebp
pop esi
call fcn.1003c09c
add ebp, 0xf94
leave
ret
Function at 0x10038056
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push 0x10
mov eax, 0x10071801
call fcn.1003c0ab
and dword [ebp - 0x10], 0
push dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.100010b1
mov edi, dword [ebp - 0x14]
xor eax, eax
mov byte [ebp - 4], 1
test edi, edi
je 0x10038089
cmp dword [edi], eax
sete al
jmp 0x1003808a
inc eax
test al, al
je 0x10038095
push 0x10084c91
jmp 0x100380ba
test edi, edi
je 0x1003809d
mov eax, dword [edi]
jmp 0x1003809f
xor eax, eax
push eax
call fcn.100374fc
pop ecx
test eax, eax
jne 0x100380f5
test edi, edi
je 0x100380b7
mov ecx, edi
call fcn.1001ae2b
jmp 0x100380b9
xor eax, eax
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x10038197
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x18]
call fcn.1000b23a
push eax
lea ecx, [ebp - 0x10]
call fcn.10001289
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1003810a
call fcn.10001238
jmp 0x1003810a
cmp eax, 1
jne 0x10038197
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.10001289
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10038118
call fcn.1001ae2b
jmp 0x1003811a
xor eax, eax
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 2
mov dword [ebp - 0x1c], eax
push 4
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyaddr]
mov esi, eax
test esi, esi
jne 0x1003814c
test edi, edi
je 0x10038143
mov ecx, edi
call fcn.10001238
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x100381a2
jmp 0x1003819d
mov ecx, dword [esi]
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10038153
sub eax, edi
push eax
push ecx
call fcn.100374fc
pop ecx
pop ecx
push dword [esi]
lea ecx, [ebp - 0x18]
call fcn.1000b23a
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1003817b
call fcn.10001238
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10038187
call fcn.10001238
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10038193
call fcn.10001238
mov al, 1
jmp 0x100381a4
test edi, edi
je 0x100381a2
mov ecx, edi
call fcn.10001238
xor al, al
call fcn.1003c183
ret
Function at 0x100389cd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xf90]
mov eax, 0x1010
call fcn.1003c230
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0xf8c], eax
and dword [ebp - 0x80], 0
push esi
mov esi, dword [ebp + 0xf98]
lea eax, [ebp - 0x78]
push eax
push 1
push 0
push str.SoftwareJavaSoftJava_Web_Start_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10038a70
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push str.CurrentVersion
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10038a67
cmp dword [ebp - 0x80], 1
jne 0x10038a67
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x7c]
shr eax, 1
cmp eax, 0x800
jb 0x10038a5a
mov eax, 0x7ff
xor ecx, ecx
mov word [ebp + eax*2 - 0x74], cx
lea eax, [ebp - 0x74]
push eax
jmp 0x10038a75
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x100852dc
mov ecx, esi
call fcn.100010b1
mov ecx, dword [ebp + 0xf8c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1003c09c
add ebp, 0xf90
leave
ret
Function at 0x10038a94
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.1003c230
push 0xffffffffffffffff
push 0x1007197f
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x100c]
xor edi, edi
mov dword [ebp - 0x18], edi
xor eax, eax
push 0xffe
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
mov dword [ebp - 4], edi
call fcn.1003c260
mov eax, dword [ebp + 0x1010]
add esp, 0xc
cmp eax, edi
je 0x10038b05
mov esi, dword [eax]
jmp 0x10038b07
xor esi, esi
movzx eax, word [esi]
xor edx, edx
xor ecx, ecx
cmp ax, di
je 0x10038c2c
cmp ax, 0x2e
jne 0x10038b23
inc edx
cmp edx, 1
jg 0x10038b36
inc ecx
movzx eax, word [esi + ecx*2]
cmp ax, di
jne 0x10038b17
cmp edx, 1
jle 0x10038c2c
push 0x10085344
push esi
call fcn.100374fc
pop ecx
pop ecx
test eax, eax
js 0x10038c2c
push esi
call fcn.10037a39
pop ecx
test al, al
je 0x10038c2c
push 0x10085360
lea ecx, [ebp - 0x14]
call fcn.100010b1
push 0x1008535c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.1000b23a
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.1000132e
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp ecx, edi
je 0x10038b98
call fcn.10001238
push esi
lea ecx, [ebp - 0x10]
call fcn.100010b1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.1000132e
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp ecx, edi
je 0x10038bc1
call fcn.10001238
mov esi, dword [ebp - 0x14]
cmp esi, edi
je 0x10038bcc
mov eax, dword [esi]
jmp 0x10038bce
xor eax, eax
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10038c14
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push 0x100853b8
push dword [ebp - 0x18]
mov dword [ebp - 0x10], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10038c14
xor eax, eax
mov word [ebp], ax
lea eax, [ebp]
push eax
mov ecx, ebx
call fcn.100010b1
cmp esi, edi
je 0x10038c4c
mov ecx, esi
call fcn.10001238
jmp 0x10038c4c
push str.1.3.1
push esi
call fcn.100374fc
push esi
call fcn.10037a39
add esp, 0xc
push 0x10084c96
mov ecx, ebx
call fcn.1000b23a
mov ecx, dword [ebp + 0x1010]
cmp ecx, edi
je 0x10038c5b
call fcn.10001238
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.1003c09c
add ebp, 0x1004
leave
ret
Function at 0x1003c09c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10095dec]
jne 0x1003c0a6
repz ret
jmp fcn.1004712c

Function at 0x1006c4ef
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x100985ac], 0
push esi
push edi
jne 0x1006c460
call fcn.1006c3ba
test eax, eax
je 0x1006c4a5
mov eax, dword [0x100985ac]
cmp eax, 1
jne 0x1006c481
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x1006c4a5
jmp 0x1006c4e7
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x1006c4e7
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1006c4a9
xor eax, eax
jmp 0x1006c4e7
mov eax, dword [esi]
push dword [0x100985ac]
call edi
mov edi, eax
test edi, edi
je 0x1006c4cb
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x1006c4e7
lea edi, [esi + 0xff0]
push esi
push dword [0x100985ac]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1006c4d1
mov eax, esi
pop edi
pop esi
ret
jmp 0x1006c44c
Function at 0x402768
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403808
test esi, esi
jne 0x40279e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004038f8
jmp 0x4027bc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040267c
mov edi, eax
test esi, esi
je 0x4027bc
cmp dword [ebx], 0
je 0x4027bc
dec esi
jmp 0x4027a5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40b014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402d38
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402d18
xor eax, eax
push ebp
push 0x402d11
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402d54
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402d18
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40b014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40b014], ax
mov esp, ebp
pop ebp
ret

Function at 0x40368c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40c044], 0
je 0x4036ed
cmp word [0x40c218], 0xd7b2
jne 0x4036b5
cmp dword [0x40c220], 0
jbe 0x4036b5
mov eax, 0x40c214
call dword [0x40c230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40b05c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403714
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40b020], 0
jne 0x403709
push 0
push 0x40b054
push 0x40b05c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret