joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d59e810
Capabilities:
Delete registry value

Disassembly:
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x6d59e81e
or eax, 0xffffffff
ret 0x10
push eax
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.6d592e60
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x6d59e83d
mov eax, dword [eax]
jmp 0x6d59e83f
xor eax, eax
mov edx, dword [esp + 0xc]
push esi
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, dword [esp + 0x18]
mov edi, eax
test esi, esi
je 0x6d59e88f
lea eax, [esi + 8]
push eax
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jne 0x6d59e88f
test esi, esi
je 0x6d59e88f
mov eax, dword [esi]
test eax, eax
je 0x6d59e876
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x6d59e886
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
pop edi
pop esi
ret 0x10

Function at 0x6d59ea00
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x200c
call fcn.6d5ca7f0
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x2008], eax
mov eax, dword [esp + 0x2018]
push ebx
xor ebx, ebx
push edi
mov edi, dword [esp + 0x2018]
mov dword [esp + 0xc], ebx
test eax, eax
je 0x6d59ea6b
push eax
lea eax, [esp + 0x10]
push edi
push eax
mov ebx, 1
call fcn.6d592e60
mov eax, dword [eax]
add esp, 0xc
test eax, eax
je 0x6d59ea50
mov eax, dword [eax]
jmp 0x6d59ea52
xor eax, eax
push 0x1000
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov byte [esp + 0xb], bl
test eax, eax
jne 0x6d59ea70
mov byte [esp + 0xb], 0
test bl, 1
je 0x6d59eab7
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x6d59eab6
lea edx, [esi + 8]
push edx
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jne 0x6d59eab6
test esi, esi
je 0x6d59eab6
mov eax, dword [esi]
test eax, eax
je 0x6d59ea9d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x6d59eaad
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
pop esi
cmp byte [esp + 0xb], 0
je 0x6d59eace
lea eax, [esp + 0x10]
push eax
push edi
call fcn.6d592b30
add esp, 8
jmp 0x6d59ead0
xor eax, eax
mov ecx, dword [esp + 0x2010]
pop edi
pop ebx
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x200c
ret 0xc
Function at 0x6d59eaf0
Capabilities:
Create directory

Disassembly:
sub esp, 0x414
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x410], eax
mov eax, dword [esp + 0x418]
push eax
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
cmp word [esp], 0
lea eax, [esp]
je 0x6d59eb47
lea esp, [esp]
cmp word [eax], 0x5c
jne 0x6d59eb3e
mov ecx, 0x2f
mov word [eax], cx
add eax, 2
cmp word [eax], 0
jne 0x6d59eb30
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_wcschr]
push edi
lea edx, [esp + 8]
push 0x2f
push edx
call ebx
mov edi, eax
add esp, 8
test edi, edi
je 0x6d59ebb8
push ebp
mov ebp, dword [sym.imp.MSVCR100.dll_wcsncpy_s]
push esi
lea esp, [esp]
lea eax, [esp + 0x10]
mov esi, edi
sub esi, eax
sar esi, 1
push esi
mov ecx, eax
push ecx
lea edx, [esp + 0x220]
push 0x104
push edx
call ebp
lea ecx, [esp + 0x228]
xor eax, eax
push ecx
mov word [esp + esi*2 + 0x22c], ax
call dword [sym.imp.MSVCR100.dll__wmkdir]
push 0x2f
add edi, 2
push edi
call ebx
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x6d59eb70
pop esi
pop ebp
mov ecx, dword [esp + 0x418]
pop edi
pop ebx
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x414
ret
Function at 0x6d59ebd0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x234
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x230], eax
mov eax, dword [esp + 0x238]
push esi
mov esi, dword [esp + 0x240]
push 0x6d5cff0c
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x6d59ed8a
push esi
call dword [sym.imp.MSVCR100.dll__wchdir]
add esp, 4
test eax, eax
jne 0x6d59ed8a
mov ecx, dword [esp + 4]
push edi
mov edi, dword [sym.imp.MSVCR100.dll_fread]
push ecx
push 1
lea edx, [esp + 0x18]
push 0x1e
push edx
call edi
add esp, 0x10
cmp eax, 1
jne 0x6d59ed7b
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_fseek]
push ebp
mov ebp, dword [sym.imp.MSVCR100.dll_fwrite]
cmp dword [esp + 0x18], 0x4034b50
jne 0x6d59ed79
cmp word [esp + 0x20], 0
jne 0x6d59ed79
mov ax, word [esp + 0x32]
mov ecx, dword [esp + 0x10]
movzx edx, ax
push ecx
push edx
movzx esi, ax
lea eax, [esp + 0x40]
push 1
push eax
call edi
add esp, 0x10
cmp eax, esi
jne 0x6d59ed79
lea edx, [esp + 0x38]
xor ecx, ecx
push edx
mov word [esp + esi*2 + 0x3c], cx
call fcn.6d59eaf0
mov ax, word [esp + 0x38]
add esp, 4
test ax, ax
je 0x6d59ecc7
mov ecx, dword [esp + 0x10]
movzx eax, ax
push 1
push eax
push ecx
call ebx
add esp, 0xc
test eax, eax
jne 0x6d59ed79
movzx edx, word [esp + 0x32]
cmp word [esp + edx*2 + 0x36], 0x2f
je 0x6d59ed52
push 0x6d5cff04
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x6d59ed79
mov eax, dword [esp + 0x2e]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
mov ecx, dword [esp + 0x32]
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
push ecx
push 1
push esi
call edi
mov ecx, dword [esp + 0x42]
add esp, 0x14
cmp eax, ecx
jne 0x6d59ed70
mov edx, dword [esp + 0x14]
push edx
push ecx
push 1
push esi
call ebp
add esp, 0x10
push esi
cmp eax, dword [esp + 0x32]
jne 0x6d59ed71
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 8
mov ecx, dword [esp + 0x10]
push ecx
push 1
lea edx, [esp + 0x20]
push 0x1e
push edx
call edi
add esp, 0x10
cmp eax, 1
je 0x6d59ec52
jmp 0x6d59ed79
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
pop ebp
pop ebx
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
pop edi
mov ecx, dword [esp + 0x234]
pop esi
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x234
ret
Function at 0x6d59f100
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov eax, 0x2254
call fcn.6d5ca7f0
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x2250], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x2264]
push 0x250
lea eax, [esp + 0x10]
push 0
push eax
call sub.MSVCR100.dll_memset
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edi
lea ecx, [esp + 0x126c]
push 0x6d5d0008
push ecx
call esi
add esp, 0x18
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x1260]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x6d59f2a3
push ebp
mov ebp, dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov ecx, 0x6d5d0004
lea eax, [esp + 0x3c]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x6d59f1a6
test dx, dx
je 0x6d59f1a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x6d59f1a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x6d59f180
xor eax, eax
jmp 0x6d59f1ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x6d59f255
mov ecx, 0x6d5cfffc
lea eax, [esp + 0x3c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x6d59f1e6
test dx, dx
je 0x6d59f1e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x6d59f1e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x6d59f1c0
xor eax, eax
jmp 0x6d59f1eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x6d59f255
lea ecx, [esp + 0x3c]
push ecx
push edi
lea edx, [esp + 0x268]
push str._s_s
push edx
call esi
mov eax, dword [esp + 0x20]
add esp, 0x10
and eax, 0xfffffffe
push eax
lea ecx, [esp + 0x264]
push ecx
call ebp
test byte [esp + 0x10], 0x10
jne 0x6d59f245
lea edx, [esp + 0x260]
push edx
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
jne 0x6d59f255
push eax
lea eax, [esp + 0x264]
push eax
call fcn.6d5a1c80
add esp, 8
jmp 0x6d59f255
lea ecx, [esp + 0x260]
push ecx
call fcn.6d59f100
add esp, 4
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
jne 0x6d59f171
push ebx
call dword [sym.imp.kernel32.dll_FindClose]
push edi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
mov esi, eax
pop ebp
test esi, esi
jne 0x6d59f289
push 0
push edi
call fcn.6d5a1c80
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x2250]
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x2254
ret
mov ecx, dword [esp + 0x225c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.6d5ca6ac
add esp, 0x2254
ret
Function at 0x6d59f440
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
lea eax, [esp]
push eax
push 0x20019
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6d59f499
mov eax, dword [esp + 0x14]
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 4]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push str.JavaHome
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x6d59f49f
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0xc
ret
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0xc
ret

Function at 0x6d59f4c0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x628
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x624], eax
push ebx
mov ebx, dword [esp + 0x63c]
push esi
mov esi, dword [esp + 0x634]
mov eax, dword [esi]
mov ecx, dword [eax + 0x7c]
push edi
mov edi, dword [esp + 0x63c]
push ebx
push esi
call ecx
mov edx, dword [esi]
push str._Ljava_lang_Object__V
push str.addElement
push eax
mov eax, dword [edx + 0x84]
push esi
call eax
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6d59f630
push ebp
xor ebp, ebp
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x30]
push eax
push ebp
push ecx
mov dword [esp + 0x38], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x6d59f624
mov ecx, dword [esp + 0x644]
lea eax, [esp + 0x1c]
jmp 0x6d59f570
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x6d59f596
test dx, dx
je 0x6d59f592
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x6d59f596
add eax, 4
add ecx, 4
test dx, dx
jne 0x6d59f570
xor eax, eax
jmp 0x6d59f59b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
js 0x6d59f61e
lea edx, [esp + 0x1c]
push edx
push edi
lea eax, [esp + 0x434]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x208
lea ecx, [esp + 0x238]
push 0
push ecx
call sub.MSVCR100.dll_memset
lea edx, [esp + 0x240]
push edx
lea eax, [esp + 0x44c]
push eax
call fcn.6d59f440
add esp, 0x24
test eax, eax
je 0x6d59f61e
lea ecx, [esp + 0x1c]
push ecx
push esi
call fcn.6d592b30
mov edx, dword [esp + 0x18]
push eax
push edx
push ebx
push esi
call fcn.6d59c9b0
lea eax, [esp + 0x23c]
push eax
push esi
call fcn.6d592b30
mov ecx, dword [esp + 0x30]
push eax
push ecx
push ebx
push esi
call fcn.6d59c9b0
add esp, 0x30
inc ebp
jmp 0x6d59f532
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov ecx, dword [esp + 0x630]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x628
ret
Function at 0x6d5a0260
Capabilities:
Initialize iwebbrowser2

Disassembly:
sub esp, 0x20
push edi
mov edi, dword [esp + 0x30]
test edi, edi
jne 0x6d5a0275
xor al, al
pop edi
add esp, 0x20
ret 0xc
push ebx
push ebp
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x38]
push eax
push 0x6d5d0374
push 0x17
push 0
push 0x6d5d92d0
mov dword [esp + 0x4c], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebp, eax
test ebp, ebp
js 0x6d5a0344
push esi
mov esi, dword [esp + 0x34]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x64]
push edi
push esi
call edx
mov edi, eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x2a4]
push 0
push edi
push esi
call ecx
lea edx, [esp + 0x10]
push edx
mov ebx, eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
xor eax, eax
push ebx
lea ecx, [esp + 0x24]
mov word [esp + 0x24], ax
call fcn.6d5ca1c9
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa4]
push 0xffffffffffffffff
push eax
call edx
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push edx
push edx
push edx
lea edx, [esp + 0x30]
push edx
push eax
mov eax, dword [ecx + 0xd0]
call eax
mov ecx, dword [esi]
mov edx, dword [ecx + 0x2a8]
push ebx
push edi
push esi
mov ebp, eax
call edx
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x20]
push eax
call ebx
lea ecx, [esp + 0x10]
push ecx
call ebx
test edi, edi
je 0x6d5a0343
mov edx, dword [esi]
mov eax, dword [edx + 0x5c]
push edi
push esi
call eax
pop esi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x38]
test ebp, ebp
setns bl
test eax, eax
je 0x6d5a035f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop ebp
mov al, bl
pop ebx
pop edi
add esp, 0x20
ret 0xc

Function at 0x6d5a0fc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
jne 0x6d5a0fd9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x6d5a1012
push edi
push ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x6d5a100e
lea ebx, [ebx]
cmp esi, eax
jae 0x6d5a1012
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x6d5a1000
cmp esi, eax
jb 0x6d5a1018
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x6d5a1430
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x1254]
mov eax, 0x1254
call fcn.6d5ca7f0
push 0xfffffffffffffffe
push 0x6d5db1f0
push 0x6d5ca792
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x6d5e2a5c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x1250], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x1260]
mov ecx, dword [ebp + 0x1264]
xor edx, edx
mov word [ebp + 0x250], dx
push ecx
push eax
push str._s_s
lea eax, [ebp + 0x250]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp]
push ecx
lea edx, [ebp + 0x250]
push edx
call dword [sym.imp.kernel32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x6d5a1595
push eax
call dword [sym.imp.kernel32.dll_FindClose]
xor ebx, ebx
push ebx
lea eax, [ebp + 0x250]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x6d5a1595
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, ebx
je 0x6d5a1595
mov dword [ebp - 4], ebx
push edi
push esi
push ebx
lea eax, [ebp + 0x250]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x6d5a1589
mov dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x20]
push edx
push str.StringFileInfo040904e4ProductVersion
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x6d5a1589
mov ecx, dword [ebp + 0x125c]
mov eax, dword [ebp - 0x20]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x6d5a1566
cmp dx, bx
je 0x6d5a1562
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x6d5a1566
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x6d5a1540
xor eax, eax
jmp 0x6d5a156b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x6d5a1589
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x6d5e2a5c
call sub.MSVCR100.dll__local_unwind4
add esp, 0xc
mov eax, 1
jmp 0x6d5a1597
mov dword [ebp - 4], 0xfffffffe
call fcn.6d5a15bd
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1250]
xor ecx, ebp
call fcn.6d5ca6ac
lea esp, [ebp + 0x1254]
pop ebp
ret
Function at 0x6d5a1a80
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x1028
call fcn.6d5ca7f0
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x1024], eax
push ebx
push esi
mov esi, dword [esp + 0x1034]
xor ebx, ebx
push 0x20019
push str.SOFTWARE
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x14], ebx
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
call fcn.6d593190
test eax, eax
je 0x6d5a1b0b
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x6d5a1af2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1024]
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x1028
ret
push ebp
mov ebp, dword [esp + 0x24]
push 0x2001f
push str.JavaSoft
push ebp
lea ecx, [esp + 0x18]
call fcn.6d593190
test eax, eax
je 0x6d5a1b5a
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x6d5a1b39
push eax
call esi
cmp ebp, ebx
je 0x6d5a1b40
push ebp
call esi
pop ebp
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1024]
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x1028
ret
push edi
push 0x2001f
lea ecx, [esp + 0x20]
cmp dword [esp + 0x1044], ebx
jne 0x6d5a1ba6
mov edi, dword [esp + 0x14]
push str.Java_Runtime_Environment
push edi
call fcn.6d593190
test eax, eax
je 0x6d5a1be3
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x6d5a1b91
push eax
call esi
cmp edi, ebx
je 0x6d5a1b98
push edi
call esi
cmp ebp, ebx
je 0x6d5a1bdc
push ebp
call esi
xor eax, eax
jmp 0x6d5a1c61
mov eax, dword [esp + 0x14]
push str.Java_Development_Kit
push eax
call fcn.6d593190
test eax, eax
je 0x6d5a1be3
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x6d5a1bca
push eax
call esi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x6d5a1bd5
push eax
call esi
cmp ebp, ebx
je 0x6d5a1bdc
push ebp
call esi
xor eax, eax
jmp 0x6d5a1c61
mov edi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push 0x400
lea edx, [esp + 0x38]
push edx
push ebx
xor ecx, ecx
push edi
mov word [esi], cx
call ebp
test eax, eax
jne 0x6d5a1c39
lea eax, [esp + 0x34]
push esi
push eax
inc ebx
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
jle 0x6d5a1c27
lea ecx, [esp + 0x34]
push ecx
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
push 0x400
lea edx, [esp + 0x38]
push edx
push ebx
push edi
call ebp
test eax, eax
je 0x6d5a1c04
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x6d5a1c46
push edi
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x6d5a1c51
push eax
call esi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x6d5a1c5c
push eax
call esi
mov eax, 1
mov ecx, dword [esp + 0x1034]
pop edi
pop ebp
pop esi
pop ebx
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x1028
ret
Function at 0x6d5a24a0
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x624
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x620], eax
push esi
mov esi, dword [esp + 0x630]
push edi
mov edi, dword [esp + 0x630]
push esi
lea eax, [esp + 0x218]
push str._s..
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
test esi, esi
je 0x6d5a2500
push 0
lea ecx, [esp + 0x420]
push ecx
push 0x105
lea edx, [esp + 0x220]
push edx
call dword [sym.imp.kernel32.dll_GetFullPathNameW]
test eax, eax
jne 0x6d5a2519
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x624
ret
lea eax, [esp + 8]
push eax
push 0
push 0x6d5d0c2c
lea ecx, [esp + 0x428]
push ecx
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
test eax, eax
je 0x6d5a2500
push 0
lea edx, [esp + 0xc]
push edx
push edi
call dword [sym.imp.kernel32.dll_CopyFileW]
test eax, eax
je 0x6d5a2500
lea eax, [esp + 8]
push esi
push eax
call fcn.6d5a1c80
mov ecx, dword [esp + 0x630]
add esp, 8
pop edi
pop esi
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x624
ret
Function at 0x6d5a2570
Capabilities:
Copy file
Enumerate files on windows

Disassembly:
mov eax, 0x425c
call fcn.6d5ca7f0
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x4258], eax
mov eax, dword [esp + 0x4260]
push ebx
mov ebx, dword [esp + 0x4268]
push ebp
push esi
push edi
push eax
lea eax, [esp + 0x326c]
push str._s_bin_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.MSVCR100.dll_wcscat_s]
lea edx, [esp + 0x3274]
push edx
lea eax, [esp + 0x278]
xor ecx, ecx
push 0x800
push eax
mov word [esp + 0x280], cx
call esi
push ebx
lea edx, [esp + 0x1284]
xor ecx, ecx
push 0x800
push edx
mov word [esp + 0x128c], cx
call esi
add esp, 0x24
cmp dword [esp + 0x4278], 0
mov dword [esp + 0x10], 3
je 0x6d5a260c
mov dword [esp + 0x10], 1
cmp dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
jle 0x6d5a275d
mov ebp, str.npoji.dll
jmp 0x6d5a2630
lea ecx, [esp + 0x3268]
push ecx
lea edx, [esp + 0x226c]
xor eax, eax
push 0x800
push edx
mov word [esp + 0x2274], ax
call esi
push ebp
lea eax, [esp + 0x2278]
push 0x800
push eax
call esi
add esp, 0x18
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x226c]
push edx
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x6d5a2740
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x26c]
push 0x800
push ecx
call esi
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x1278]
push 0x800
push eax
call esi
add esp, 0x18
push 0
lea ecx, [esp + 0x126c]
push ecx
lea edx, [esp + 0x270]
push edx
call dword [sym.imp.kernel32.dll_CopyFileW]
test eax, eax
jne 0x6d5a26ee
cmp dword [esp + 0x4278], eax
jne 0x6d5a277b
lea eax, [esp + 0x1268]
push eax
lea ecx, [esp + 0x26c]
push ecx
call fcn.6d5a24a0
add esp, 8
lea eax, [esp + 0x3268]
push eax
lea ecx, [esp + 0x26c]
xor edx, edx
push 0x800
push ecx
mov word [esp + 0x274], dx
call esi
push ebx
lea eax, [esp + 0x1278]
xor edx, edx
push 0x800
push eax
mov word [esp + 0x1280], dx
call esi
add esp, 0x18
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
jne 0x6d5a2682
push edi
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, dword [esp + 0x14]
inc eax
add ebp, 0x1e
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x10]
jl 0x6d5a2630
mov eax, 1
mov ecx, dword [esp + 0x4268]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x425c
ret
push edi
call dword [sym.imp.kernel32.dll_FindClose]
xor eax, eax
jmp 0x6d5a2762