joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ce200
Capabilities:
Create process on windows
Get explorer pid
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x654b34]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x70], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.004cde63
pop ecx
test eax, eax
je 0x4ce365
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
xor esi, esi
push 0x44
push esi
mov dword [ebp - 0x60], esi
stosd dword es:[edi], eax
mov dword [ebp - 0x5c], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
push eax
call fcn.0056dc10
add esp, 0xc
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_GetShellWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x64]
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4ce328
lea eax, [ebp - 0x60]
mov edi, 0x2000000
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4ce328
lea eax, [ebp - 0x5c]
push eax
push 1
push 1
push esi
push edi
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x4ce2c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DuplicateTokenEx_err_d
call fcn.004ce607
pop ecx
pop ecx
jmp 0x4ce33d
push 0x44
pop edi
push edi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.0056dc10
add esp, 0xc
mov dword [ebp - 0x58], edi
call fcn.004cde1b
test eax, eax
mov edx, 0x1000000
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
lea eax, [ebp - 0x58]
cmovne ecx, edx
push eax
push esi
push esi
push ecx
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
push esi
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
jne 0x4ce31b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcessWithTokenW_err_d
jmp 0x4ce2c0
mov ecx, dword [ebp - 0x70]
xor esi, esi
mov eax, dword [ebp - 0xc]
inc esi
mov dword [ecx], eax
jmp 0x4ce33d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.OpenProcessToken_fail_process__d__err_d
call fcn.004ce607
add esp, 0xc
cmp dword [ebp - 0x5c], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4ce34e
push dword [ebp - 0x5c]
call edi
cmp dword [ebp - 0x60], 0
je 0x4ce359
push dword [ebp - 0x60]
call edi
test ebx, ebx
je 0x4ce360
push ebx
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056ac5f
leave
ret
Function at 0x4ce65e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x1c]
push edi
xor edi, edi
call fcn.004cde1b
test eax, eax
je 0x4ce678
or esi, 0x1000000
inc edi
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push esi
push dword [ebp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
je 0x4ce6a5
xor eax, eax
inc eax
jmp 0x4ce6d8
test edi, edi
jne 0x4ce6ad
xor eax, eax
jmp 0x4ce6d8
push str.CGPCSystemUtil::WebexCreateProcess.has_CREATE_BREAKAWAY_FROM_JOB_and_create_failed_and_use_no_CREATE_BREAKAWAY_FROM_JOB
call fcn.004ce624
pop ecx
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebp
ret

Function at 0x4cf238
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
push edi
cmp dword [esi + 0x14], 8
jb 0x4cf24b
mov eax, dword [esi]
mov edi, dword [ebp + 8]
mov ecx, edi
cmp dword [edi + 0x14], 8
jb 0x4cf258
mov ecx, dword [edi]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
test ebx, ebx
jne 0x4cf292
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4cf272
mov ecx, dword [esi]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4cf27c
mov eax, dword [edi]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.filesystem__CopyFile_failed_error_d_from_s__target_s
call fcn.004d157e
add esp, 0x10
cmp dword [esi + 0x14], 8
jb 0x4cf29a
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x4cf2a2
mov edi, dword [edi]
push esi
push edi
push str.filesystem__CopyFile__from_s__to_s__success
call fcn.004d159b
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4cf3f6
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
cmp dword [esi + 0x14], 8
jb 0x4cf408
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
test edi, edi
jne 0x4cf432
cmp dword [esi + 0x14], 8
jb 0x4cf41d
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.filesystem__DeleteFile_failed_error_d_target_s
call fcn.004d157e
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x4cfe33
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x654b34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x210]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push 0x20a
push 0
push eax
call fcn.0056dc10
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x4cfe70
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x4cfe78
mov esi, dword [esi]
lea eax, [ebp - 0x210]
push eax
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x210]
mov ecx, ebx
push eax
call fcn.00417c00
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056ac5f
leave
ret

Function at 0x4cfea8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x654b34]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x20a
push 0
push eax
call fcn.0056dc10
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.00417c00
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0056ac5f
leave
ret
Function at 0x4d16a9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x654b34]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x4d172b
cmp byte [esi + 0x3d], 0
je 0x4d172b
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4d16fd
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4d1701
sub eax, 1
je 0x4d1705
dec eax
sub eax, 1
je 0x4d172b
xor al, al
jmp 0x4d172d
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4d1722
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0057e9fe
add esp, 0x10
cmp edi, eax
jne 0x4d16fd
cmp byte [esi + 0x3d], 0
sete al
jmp 0x4d172d
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0056ac5f
leave
ret

Function at 0x4d1af1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x654b34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x4d1b17
xor eax, eax
jmp 0x4d1bd9
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x4d1b40
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x4d1b40
dec dword [edx]
mov eax, ebx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x4d1bd9
cmp dword [esi + 0x4c], 0
je 0x4d1bd7
mov ecx, esi
call fcn.004d1863
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x4d1b6c
push dword [esi + 0x4c]
push eax
call fcn.004ce885
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x4d1bd7
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x2c]
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x4d1bd7
cmp eax, 1
jle 0x4d1ba6
cmp eax, 3
jne 0x4d1bd7
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x4d1b5e
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x34], eax
je 0x4d1bc9
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.0057e9fe
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x4d1bd7
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
mov eax, ebx
jne 0x4d1bd9
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056ac5f
leave
ret 4
Function at 0x4d2008
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x4d202a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00414ba9
jmp 0x4d20e1
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x4d204b
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x4d204d
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x4d20d5
jg 0x4d2060
test esi, esi
je 0x4d20d5
test ecx, ecx
jl 0x4d20a2
jg 0x4d206a
test eax, eax
je 0x4d20a2
cmp ebx, ecx
jg 0x4d207c
jl 0x4d2074
cmp esi, eax
jae 0x4d207c
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0056c670
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x4d20a8
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x4d20d5
jg 0x4d20b2
test esi, esi
je 0x4d20d5
cmp dword [edi + 0x4c], 0
je 0x4d20d5
mov ecx, edi
call fcn.004d1863
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.0057e5cd
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
leave
ret 0xc

Function at 0x4d20e6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4d2108
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00414ae2
jmp 0x4d21b5
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x4d2129
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x4d212b
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x4d21a9
jg 0x4d213e
test esi, esi
je 0x4d21a9
test ecx, ecx
jl 0x4d2182
jg 0x4d2148
test eax, eax
je 0x4d2182
cmp edi, ecx
jg 0x4d215a
jl 0x4d2152
cmp esi, eax
jae 0x4d215a
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.0056c670
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x4d2185
mov edx, dword [ebp + 8]
test edi, edi
jl 0x4d21a9
jg 0x4d218f
test esi, esi
je 0x4d21a9
cmp dword [ebx + 0x4c], 0
je 0x4d21a9
push dword [ebx + 0x4c]
push esi
push 1
push edx
call fcn.0057e9fe
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4d3823
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetFileAttributesA]

Function at 0x4d382d
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetFileAttributesW]

Function at 0x4d39b3
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.WININET.dll_InternetCrackUrlA]

Function at 0x4d39bd
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.WININET.dll_InternetCrackUrlW]

Function at 0x4d3c22
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesA]

Function at 0x4d3c2c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]

Function at 0x4d3c66
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExA]

Function at 0x4d3c70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExW]
Function at 0x4d78eb
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x654b34]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0xf0000000
mov dword [ebp - 0x10], eax
xor eax, eax
push 0x18
push eax
push eax
mov dword [ebp - 0xc], eax
mov esi, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4d7945
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.securityUtil__CryptAcquireContext_fail_err__d_
call fcn.004d8b60
pop ecx
pop ecx
xor eax, eax
jmp 0x4d79cc
lea eax, [ebp - 8]
push eax
push 0
push 0
push dword [ebp + 0x18]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4d79a3
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4d7995
push 0
push ebx
push edi
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov esi, eax
test esi, esi
jne 0x4d79b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.securityUtil__CryptGetHashParam_fail__err__d_
jmp 0x4d79af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.securityUtil__CryptHashData_fail__err__d_
jmp 0x4d79af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.securityUtil__CryptCreateHash_fail_err__d_
call fcn.004d8b60
pop ecx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056ac5f
leave
ret 0x14
Function at 0x4d7ee9
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d78eb

Function at 0x4d9294
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
sub esp, 0x18
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
and dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov eax, 0xffff
cmp cx, ax
jne 0x4d92c5
call fcn.004d9206
movzx ecx, ax
mov ebx, dword [ebp + 0x10]
test ebx, ebx
mov edi, dword [ebp + 0xc]
mov eax, edi
cmove ebx, dword [0x668ecc]
sar eax, 4
inc eax
push ecx
movzx eax, ax
push eax
push 6
push ebx
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x4d9304
push 0x409
push dword [ebp + 8]
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x4d9350
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4d9350
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
test ecx, ecx
je 0x4d9350
and edi, 0xf
jbe 0x4d9330
movzx eax, word [ecx]
lea ecx, [ecx + eax*2]
add ecx, 2
sub edi, 1
jne 0x4d9322
movzx eax, word [ecx]
push eax
lea eax, [ecx + 2]
push eax
lea ecx, [ebp - 0x18]
call fcn.004d47e7
push eax
mov ecx, esi
call fcn.0041cf57
lea ecx, [ebp - 0x18]
call fcn.00417a51
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4de883
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x654b34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov edx, dword [ebp + 8]
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4de8f8
cmp dword [ebp - 8], 1
je 0x4de8cd
cmp dword [ebp - 8], 2
jne 0x4de8e8
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x4de8f2
test ecx, ecx
je 0x4de8ed
test cl, 1
jne 0x4de8e8
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x4de8f2
push 0xd
pop eax
jmp 0x4de8f8
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056ac5f
leave
ret 0xc

Function at 0x4e3a60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
test ebx, ebx
jne 0x4e3a80
push ebx
push ebx
push ebx
push 2
call fcn.004e6520
pop esi
xor al, al
pop ebx
pop ebp
ret 8
push edi
call fcn.004e2a00
push 2
push 0
push ebx
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
call fcn.00588684
push ebx
call fcn.005898b2
push 0
mov edi, eax
push 0
push ebx
mov dword [ebp + 8], edi
call fcn.00588684
add esp, 0x1c
test edi, edi
jg 0x4e3ad2
push 0
push 0
push 0
push 0xc
mov ecx, esi
call fcn.004e6520
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
lea eax, [edi + 1]
push eax
call fcn.0056b24c
push ebx
mov ebx, dword [ebp + 8]
mov edi, eax
push 1
push ebx
push edi
mov byte [edi], 0
call fcn.0057e5cd
add esp, 0x14
cmp eax, 1
je 0x4e3b16
push edi
call fcn.0056b239
add esp, 4
mov ecx, esi
push 0
push 0
push 0
push 2
call fcn.004e6520
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
mov byte [edi + ebx], 0
mov eax, edi
mov cl, byte [edi]
mov edx, edi
test cl, cl
je 0x4e3b47
mov dword [ebp + 8], eax
lea ebx, [edx + 1]
inc eax
cmp cl, 0xd
jne 0x4e3b3d
mov byte [edx], 0xa
cmp byte [eax], 0xa
cmovne eax, dword [ebp + 8]
inc eax
jmp 0x4e3b3f
mov byte [edx], cl
mov cl, byte [eax]
mov edx, ebx
test cl, cl
jne 0x4e3b24
push dword [ebp + 0xc]
mov byte [edx], 0
mov ecx, esi
mov eax, dword [esi]
push 0
push edi
call dword [eax + 8]
push edi
call fcn.0056b239
add esp, 4
cmp byte [esi + 0x40], 0
sete al
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4e7f16
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, ecx
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
cmp dword [eax + 0x50], ebx
je 0x4e7f30
xor eax, eax
inc eax
jmp 0x4e8101
push esi
lea esi, [eax + 4]
cmp dword [esi + 0x14], 8
mov eax, esi
push edi
mov edi, ebx
jb 0x4e7f41
mov eax, dword [esi]
push eax
push ebx
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 8], eax
test eax, eax
je 0x4e7f86
push ebx
push ebx
push ebx
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4e8046
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.jmtLog__init_shared_memory_failed_err_d
call fcn.004e82c3
pop ecx
pop ecx
jmp 0x4e80ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4e80d7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4e7f9f
mov eax, dword [esi]
push eax
push 0x8011c
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 8], eax
test eax, eax
je 0x4e80fd
push ebx
push ebx
push ebx
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x4e7f6e
xor ecx, ecx
mov dword [edi + 8], 0x80000
mov eax, 0x11c
mov dword [edi + 0x114], ebx
inc ecx
mov dword [edi], eax
mov dword [edi + 0x110], eax
mov eax, esi
mov dword [edi + 0x118], ecx
mov dword [edi + 4], ecx
cmp dword [esi + 0x14], 8
jb 0x4e8001
mov eax, dword [esi]
push eax
push str._s_1
lea eax, [edi + 0x90]
push 0x80
push eax
call fcn.00458bd7
add esp, 0x10
cmp dword [esi + 0x14], 8
jb 0x4e8023
mov esi, dword [esi]
push esi
push str._s_2
lea eax, [edi + 0x10]
push 0x80
push eax
call fcn.00458bd7
mov ecx, dword [ebp - 4]
add esp, 0x10
mov dword [ecx + 0x68], 1
jmp 0x4e8049
mov ecx, dword [ebp - 4]
mov eax, 0x11c
cmp dword [edi], eax
jb 0x4e80c5
mov dword [ecx + 0x54], edi
lea esi, [edi + 0x90]
mov eax, dword [edi + 0x110]
add eax, edi
mov dword [ecx + 0x58], eax
mov eax, dword [ebp - 8]
mov dword [ecx + 0x50], eax
mov eax, dword [edi + 8]
push esi
mov dword [ecx + 0x64], eax
call fcn.005765bd
pop ecx
mov ecx, dword [ebp - 4]
push eax
push esi
add ecx, 0x1c
call fcn.00417bb2
lea esi, [edi + 0x10]
push esi
call fcn.005765bd
pop ecx
push eax
push esi
mov esi, dword [ebp - 4]
lea ecx, [esi + 0x34]
call fcn.00417bb2
cmp dword [esi + 0x68], ebx
jne 0x4e80c0
mov eax, 0x11c
cmp dword [edi], eax
je 0x4e80c0
push dword [edi + 4]
push 1
push dword [edi]
push eax
push str.jmtLog__compatible_mode_cbSize_d__d_version_d__d
call fcn.004e82e0
add esp, 0x14
xor ebx, ebx
inc ebx
jmp 0x4e80fd
push dword [edi]
push eax
push str.jmtLog__init_shared_memory_incompatible_expected_d_but_d
call fcn.004e82c3
add esp, 0xc
jmp 0x4e80e4
push eax
push str.jmtLog__init_shared_memory_failed_err_d
call fcn.004e82c3
pop ecx
pop ecx
test edi, edi
je 0x4e80ef
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 8]
test eax, eax
je 0x4e80fd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret