joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d591e20
Capabilities:
Check for sandbox and av modules

Disassembly:
push str.pstorec.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
jne 0x6d591e41
push str.pstorec.dll
call fcn.6d594550
add esp, 4
test eax, eax
jne 0x6d591e41
ret
push str.PStoreCreateInstance
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
ret

Function at 0x6d592150
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xfffffffffffffffe
push 0x6d5dab58
push 0x6d5ca792
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x6d5e2a5c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x3c], 0xff
or ebx, 0xffffffff
push str.Secur32.dll
call fcn.6d594550
add esp, 4
mov dword [ebp - 0x1c], eax
push str.LsaEnumerateLogonSessions
push eax
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call esi
mov edi, eax
push str.LsaGetLogonSessionData
mov eax, dword [ebp - 0x1c]
push eax
call esi
mov dword [ebp - 0x40], eax
push str.LsaFreeReturnBuffer
mov ecx, dword [ebp - 0x1c]
push ecx
call esi
mov dword [ebp - 0x30], eax
xor esi, esi
cmp edi, esi
je 0x6d5921fa
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x24]
push eax
call edi
mov ebx, eax
cmp ebx, esi
je 0x6d592205
mov dword [ebp - 0x24], 1
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
cmp ebx, dword [ebp - 0x24]
jge 0x6d5922a2
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x40]
cmp eax, esi
je 0x6d5922a2
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x28]
lea ecx, [edx + ebx*8]
push ecx
call eax
cmp eax, esi
jne 0x6d5922a2
mov edi, dword [ebp - 0x20]
cmp dword [edi + 0x20], esi
je 0x6d592298
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea ecx, [ebp]
mov edi, dword [ebp - 0x20]
mov eax, dword [edi + 0x10]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x6d592277
cmp dx, si
je 0x6d592273
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x6d592277
add eax, 4
add ecx, 4
cmp dx, si
jne 0x6d592251
xor eax, eax
jmp 0x6d59227c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x6d592298
mov eax, dword [edi + 4]
mov dword [ebp - 0x48], eax
mov ecx, dword [edi + 8]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], esi
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ebx
push edi
call dword [ebp - 0x30]
inc ebx
jmp 0x6d592207
mov eax, dword [ebp - 0x30]
cmp eax, esi
je 0x6d5922af
mov edx, dword [ebp - 0x28]
push edx
call eax
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x6d5922bd
push eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
jmp 0x6d5922ee
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.6d5ca6ac
lea esp, [ebp + 0x204]
pop ebp
ret 8
Function at 0x6d592f60
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
xor esi, esi
push edi
cmp dword [0x6d5e2dac], esi
jne 0x6d592f9c
call dword [sym.imp.kernel32.dll_GetVersion]
test eax, eax
jns 0x6d592f92
push str.___.___
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
push 0x6d5cda60
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x6d5e2da8], eax
mov dword [0x6d5e2dac], 1
mov eax, dword [0x6d5e2da8]
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x6d592fb9
push edi
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x6d592ff5
push ebp
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp]
test eax, eax
jne 0x6d592fea
call dword [sym.imp.kernel32.dll_GetVersion]
test eax, eax
mov eax, dword [esp + 0x14]
jns 0x6d592fdb
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
jmp 0x6d592fe0
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
call edx
test eax, eax
je 0x6d592ffd
mov dword [ebp], eax
push edi
push eax
call ebx
pop ebp
pop edi
pop esi
pop ebx
ret 0xc
pop edi
mov eax, esi
pop esi
pop ebx
ret 0xc
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
ret 0xc

Function at 0x6d593080
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x6d5930c0
push str.Advapi32.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
je 0x6d5930cd
push str.RegDeleteKeyTransactedW
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x6d5930cd
mov ecx, dword [esi]
mov edx, dword [esp + 0xc]
push 0
push ecx
mov ecx, dword [esp + 0x10]
push 0
push 0
push edx
push ecx
call eax
pop esi
ret 8
cmp dword [esi + 4], 0
je 0x6d5930cd
pop esi
jmp dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
pop esi
ret 8

Function at 0x6d593210
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
lea eax, [esp]
push eax
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x6d593249
mov eax, dword [esp + 0xc]
sub eax, 4
neg eax
sbb eax, eax
and eax, 0xd
pop ecx
ret 8

Function at 0x6d593250
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x6d5932c6
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x6d593295
cmp eax, 2
jne 0x6d5932b1
mov eax, dword [esp + 0x14]
test esi, esi
je 0x6d5932c0
test eax, eax
je 0x6d5932bb
test al, 1
jne 0x6d5932b1
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x6d5932c0
pop edi
mov eax, 0xd
pop esi
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc
Function at 0x6d593390
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x114], eax
cmp dword [0x6d5e2dc0], 0
jne 0x6d593400
push 0x114
lea eax, [esp + 4]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.kernel32.dll_GetVersionExW]
mov eax, dword [esp + 0x10]
mov ecx, 1
cmp eax, 2
ja 0x6d5933f4
jne 0x6d5933fa
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x6d5933f4
jne 0x6d5933fa
cmp dword [esp + 8], ecx
jb 0x6d5933fa
mov dword [0x6d5e2dbc], ecx
mov dword [0x6d5e2dc0], ecx
mov ecx, dword [esp + 0x114]
mov eax, dword [0x6d5e2dbc]
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x118
ret

Function at 0x6d5934e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x114], eax
cmp dword [0x6d5e2dd0], 0
je 0x6d593517
mov eax, dword [0x6d5e2dcc]
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x118
ret
push 0x114
lea eax, [esp + 4]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.kernel32.dll_GetVersionExW]
cmp dword [esp + 0x10], 2
jne 0x6d593552
cmp dword [esp + 4], 6
jb 0x6d593552
mov eax, 1
jmp 0x6d593554
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
mov dword [0x6d5e2dcc], eax
mov dword [0x6d5e2dd0], 1
call fcn.6d5ca6ac
add esp, 0x118
ret

Function at 0x6d5935c0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp]
push eax
call dword [sym.imp.kernel32.dll_GetNativeSystemInfo]
xor eax, eax
cmp word [esp], 9
sete al
add esp, 0x24
ret

Function at 0x6d593740
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x6d593749
ret
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push ecx
push eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
ret
Function at 0x6d593780
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x58
push 0x44
lea eax, [esp + 0x18]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
lea edx, [esp]
push edx
xor ecx, ecx
push 0x2000000
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x44
mov dword [esp + 0x48], 1
mov word [esp + 0x4c], cx
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x6d59380d
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x6d59380d
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 8]
push 0
push 0
push 0x8000008
push 0
push 0
push 0
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x6d593813
xor eax, eax
add esp, 0x58
ret
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 4]
push esi
push eax
push ecx
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
mov eax, 1
pop esi
add esp, 0x58
ret

Function at 0x6d593c30
Capabilities:
Print debug messages

Disassembly:
push edi
xor edi, edi
cmp dword [0x6d5e2d70], edi
je 0x6d593c46
push str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp dword [0x6d5e2d68], edi
je 0x6d593c57
mov eax, 1
pop edi
ret 4
push esi
cmp dword [0x6d5e2d70], edi
jne 0x6d593c69
call fcn.6d593a30
test eax, eax
je 0x6d593cab
mov eax, dword [0x6d5e2ddc]
mov esi, dword [0x6d5e2094]
test eax, eax
jne 0x6d593c95
push str.ActivateActCtx
push 0x6d5e2db0
push str.P_Ym
call fcn.6d592f60
test eax, eax
je 0x6d593cab
mov dword [0x6d5e2ddc], eax
mov ecx, dword [esp + 0xc]
push ecx
push esi
call eax
test eax, eax
je 0x6d593cab
pop esi
mov eax, 1
pop edi
ret 4
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7f
je 0x6d593cc0
cmp eax, 0x7e
je 0x6d593cc0
cmp eax, 0x78
jne 0x6d593ccf
mov eax, 1
pop esi
mov dword [0x6d5e2d68], eax
pop edi
ret 4
pop esi
mov eax, edi
pop edi
ret 4
Function at 0x6d593d00
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x220
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [esp + 0x224]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
or ecx, 0x2001f
push ecx
xor esi, esi
push eax
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.6d593190
mov ebx, eax
cmp ebx, esi
je 0x6d593d65
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x6d593d5e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x6d593e01
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x14]
push esi
push esi
push esi
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x40]
push edx
push esi
push eax
mov dword [esp + 0x3c], 0x100
call ebp
test eax, eax
jne 0x6d593dcc
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x14]
call fcn.6d593d00
mov ebx, eax
cmp ebx, esi
jne 0x6d593e1b
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x14]
push esi
push esi
push esi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x40]
push ecx
push esi
push edx
mov dword [esp + 0x3c], 0x100
call ebp
test eax, eax
je 0x6d593d92
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x6d593de1
push eax
call ebx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x20]
push eax
mov ecx, edi
mov dword [esp + 0x18], esi
call fcn.6d5930e0
mov edi, eax
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x6d593dfe
push eax
call ebx
mov eax, edi
pop ebp
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x220
ret 4
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x6d593e2a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x6d593e00
Function at 0x6d594550
Capabilities:
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
mov esi, dword [esp + 0x41c]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea edx, [esp + 8]
push edx
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
test eax, eax
je 0x6d5945fd
cmp eax, 0x104
ja 0x6d5945fd
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x216]
push ecx
mov word [esp + 0x218], ax
call sub.MSVCR100.dll_memset
push esi
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x220]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea ecx, [esp + 0x20c]
push ecx
call fcn.6d5ca1c9
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x414
ret
mov ecx, dword [esp + 0x414]
pop esi
xor ecx, esp
xor eax, eax
call fcn.6d5ca6ac
add esp, 0x414
ret
Function at 0x6d5947e0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1040
call fcn.6d5ca7f0
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x103c], eax
push ebx
push esi
push edi
xor eax, eax
push 0xffe
push eax
lea ecx, [esp + 0x52]
push ecx
mov word [esp + 0x54], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x800
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x1c], 0
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x7fe
ja 0x6d59499a
mov esi, dword [sym.imp.kernel32.dll_GetModuleHandleW]
push str.IsWow64Process
push str.kernel32
mov dword [esp + 0x14], 0
call esi
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push eax
call edi
mov ebx, eax
test ebx, ebx
je 0x6d594870
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call ebx
cmp dword [esp + 0xc], 0
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x10]
je 0x6d594946
call fcn.6d592e00
push str._system32javaws.exe
lea ecx, [esp + 0x14]
call fcn.6d592e00
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
call fcn.6d594760
lea ecx, [esp + 0x10]
call fcn.6d592330
push str.Wow64DisableWow64FsRedirection
push str.kernel32
call esi
push eax
call edi
push str.Wow64RevertWow64FsRedirection
push str.kernel32
mov ebx, eax
call esi
push eax
call edi
mov esi, eax
test ebx, ebx
je 0x6d594991
test esi, esi
je 0x6d594991
lea eax, [esp + 0x14]
push eax
call ebx
test eax, eax
je 0x6d594991
mov eax, dword [esp + 0xc]
test eax, eax
je 0x6d5948fb
mov eax, dword [eax]
jmp 0x6d5948fd
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.MSVCR100.dll__wstat64i32]
add esp, 8
test eax, eax
jne 0x6d59493d
mov edx, dword [esp + 0x14]
push edx
call esi
lea ecx, [esp + 0xc]
call fcn.6d592330
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x103c]
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x1040
ret
mov eax, dword [esp + 0x14]
push eax
call esi
jmp 0x6d594991
call fcn.6d592e00
push str._sysWow64javaws.exe
lea ecx, [esp + 0x14]
call fcn.6d592e00
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
call fcn.6d594760
lea ecx, [esp + 0x10]
call fcn.6d592330
mov eax, dword [esp + 0xc]
test eax, eax
je 0x6d59497c
mov eax, dword [eax]
jmp 0x6d59497e
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.MSVCR100.dll__wstat64i32]
add esp, 8
test eax, eax
je 0x6d594917
lea ecx, [esp + 0xc]
call fcn.6d592330
mov ecx, dword [esp + 0x1048]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.6d5ca6ac
add esp, 0x1040
ret
Function at 0x6d5949c0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x6d5cc710
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x6d5e2a5c]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x214]
xor eax, eax
mov word [edi], ax
mov dword [ebp - 4], eax
lea ecx, [ebp]
push ecx
push eax
push eax
push 0x1a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jns 0x6d594a38
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.6d595ce0
add esp, 8
push 0
push esi
call fcn.6d5ca1c9
lea edx, [ebp]
push edx
lea ecx, [ebp - 0x18]
call fcn.6d592e00
cmp dword [eax], 0
je 0x6d594a4f
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x6d594a51
xor eax, eax
push 0x104
push eax
mov eax, dword [ebp + 0x218]
push eax
push edi
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
add esp, 0x10
lea ecx, [ebp - 0x18]
call fcn.6d592330
mov dword [ebp - 4], 0xffffffff
jmp 0x6d594aa6
xor eax, eax
test esi, esi
setns al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.6d5ca6ac
lea esp, [ebp + 0x20c]
pop ebp
ret

Function at 0x6d594ad0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x6d5cc740
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x6d5e2a5c]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x214]
xor eax, eax
mov word [edi], ax
mov dword [ebp - 4], eax
lea ecx, [ebp]
push ecx
push eax
push eax
push 0x23
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jns 0x6d594b48
push esi
push str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.6d595ce0
add esp, 8
push 0
push esi
call fcn.6d5ca1c9
lea edx, [ebp]
push edx
lea ecx, [ebp - 0x18]
call fcn.6d592e00
cmp dword [eax], 0
je 0x6d594b5f
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x6d594b61
xor eax, eax
push 0x104
push eax
mov eax, dword [ebp + 0x218]
push eax
push edi
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
add esp, 0x10
lea ecx, [ebp - 0x18]
call fcn.6d592330
mov dword [ebp - 4], 0xffffffff
jmp 0x6d594bb6
xor eax, eax
test esi, esi
setns al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.6d5ca6ac
lea esp, [ebp + 0x20c]
pop ebp
ret
Function at 0x6d5950a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x21c
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x218], eax
push str.JAVA_REGDEPLOY_DEBUG
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.MSVCR100.dll__wdupenv_s]
add esp, 0xc
test eax, eax
jne 0x6d59516a
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
cmp dword [0x6d5e2da4], 0
jne 0x6d595186
lea eax, [esp + 0x10]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
cmp eax, 0x104
ja 0x6d59516a
test eax, eax
je 0x6d59516a
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 4]
call fcn.6d592e00
push str.JavaDeployReg.log
lea ecx, [esp + 8]
call fcn.6d592e00
lea edx, [esp + 4]
push edx
lea ecx, [esp + 4]
call fcn.6d594760
lea ecx, [esp + 4]
call fcn.6d592330
mov eax, dword [esp]
test eax, eax
je 0x6d595148
mov eax, dword [eax]
jmp 0x6d59514a
xor eax, eax
push 0x6d5ce240
push eax
push 0x6d5e2da4
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
lea ecx, [esp]
test eax, eax
je 0x6d595181
call fcn.6d592330
xor eax, eax
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x21c
ret
call fcn.6d592330
mov ecx, dword [esp + 0x218]
xor ecx, esp
mov eax, 1
call fcn.6d5ca6ac
add esp, 0x21c
ret
Function at 0x6d595af0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1044
call fcn.6d5ca7f0
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x1040], eax
push esi
mov esi, dword [esp + 0x104c]
push edi
mov edi, dword [esp + 0x1054]
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x852]
push ecx
mov word [esp + 0x854], ax
call sub.MSVCR100.dll_memset
push edi
push esi
push 0xffffffffffffffff
lea edx, [esp + 0x860]
push 0x400
push edx
call dword [sym.imp.MSVCR100.dll__vsnwprintf_s]
add esp, 0x20
test eax, eax
jns 0x6d595b5d
xor eax, eax
mov word [esp + 0x1046], ax
xor ecx, ecx
push 0x3e
push ecx
lea edx, [esp + 0x12]
push edx
mov word [esp + 0x14], cx
call sub.MSVCR100.dll_memset
lea eax, [esp + 0x14]
push 0x20
push eax
call fcn.6d595a50
push 0x6d5ceac8
lea ecx, [esp + 0x20]
push 0x20
push ecx
call dword [sym.imp.MSVCR100.dll_wcscat_s]
xor edx, edx
push 0x7fe
push edx
lea eax, [esp + 0x72]
push eax
mov word [esp + 0x74], dx
call sub.MSVCR100.dll_memset
mov eax, esi
add esp, 0x2c
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x6d595bb0
sub eax, edx
sar eax, 1
cmp eax, 6
jbe 0x6d595c04
mov ecx, str.__08x_
lea eax, [esi + eax*2 - 0xc]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x6d595bf6
test dx, dx
je 0x6d595bf2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x6d595bf6
add eax, 4
add ecx, 4
test dx, dx
jne 0x6d595bd0
xor eax, eax
jmp 0x6d595bfb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x6d595c04
lea edi, [eax + 1]
jmp 0x6d595c06
xor edi, edi
lea eax, [esp + 8]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x6d595c10
sub eax, edx
sar eax, 1
mov esi, eax
mov eax, str.Error:
test edi, edi
jne 0x6d595c2f
mov eax, 0x6d5cda3c
lea ecx, [esp + 0x848]
push ecx
push eax
lea edi, [esi + esi]
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
push 0x6d5cea80
mov edx, 0x3ff
push 0xffffffffffffffff
sub edx, esi
push edx
lea eax, [esp + edi + 0x64]
push eax
call dword [sym.imp.MSVCR100.dll__snwprintf_s]
add esp, 0x20
test eax, eax
jns 0x6d595c87
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x6d5cea78]
mov word [esp + eax + 0x83e], cx
add eax, 2
test cx, cx
jne 0x6d595c70
push edi
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x50]
push edx
call sub.MSVCR100.dll_memcpy
lea edi, [esp + 0x54]
add esp, 0xc
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x6d595ca1
mov eax, dword [0x6d5cea74]
lea ecx, [esp + 0x48]
push ecx
mov dword [edi], eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x1048]
pop edi
pop esi
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x1044
ret

Function at 0x6d595e60
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8