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

Disassembly:
mov eax, dword fs:[0x2c]
sub esp, 0x28
mov ecx, dword [0x757724]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x7460c4]
cmp eax, dword [ecx + 8]
jg 0x4cacb7
mov ecx, dword [0x7460bc]
test ecx, ecx
je 0x4cab28
lea eax, [ecx - 1]
test eax, eax
jne 0x4caca5
lea eax, [esp]
push eax
push 0
push 0
push 0x694c98
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x4cac9f
push ebx
push esi
mov esi, dword [esp + 8]
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
push edi
test esi, esi
je 0x4cabbe
cmp word [esi], dx
je 0x4cabbe
mov ecx, esi
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cab70
sub ecx, edi
sar ecx, 1
lea edi, [ecx + 1]
test edi, edi
jle 0x4cab98
push edi
lea ecx, [esp + 0x20]
call fcn.0040ce40
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea eax, [edi + edx]
mov dword [esp + 0x20], eax
cmp eax, ebx
jle 0x4cabad
push edx
lea ecx, [esp + 0x20]
call fcn.0040cde0
lea eax, [edi + edi]
push eax
push esi
push dword [esp + 0x24]
call fcn.004263f0
add esp, 0xc
push 1
push 0x61bb6c
push 0x6112e4
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x2c]
call fcn.00412180
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 8]
mov dword [eax + 8], 0
mov eax, edx
neg eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
sbb eax, eax
add eax, 7
add eax, edx
cmp eax, ecx
jle 0x4cac19
push eax
lea ecx, [esp + 0x14]
call fcn.0040ce40
push 6
push str._Epic_
lea ecx, [esp + 0x18]
call fcn.0040edd0
mov eax, dword [0x7460b8]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
test eax, eax
je 0x4cac5f
push eax
call fcn.0043f8f0
add esp, 4
mov eax, dword [esp + 0x28]
mov dword [0x7460bc], edi
mov dword [0x7460b8], esi
mov dword [0x7460c0], ebx
pop edi
pop esi
pop ebx
test eax, eax
je 0x4cac85
push eax
call fcn.0043f8f0
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4cac96
push eax
call fcn.0043f8f0
add esp, 4
push dword [esp]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [0x7460bc]
test ecx, ecx
mov eax, 0x60f5ec
cmovne eax, dword [0x7460b8]
add esp, 0x28
ret
push 0x7460c4
call fcn.005f48b1
add esp, 4
cmp dword [0x7460c4], 0xffffffff
jne 0x4cab13
push 0x608720
call fcn.005f4769
push 0x7460c4
call fcn.005f4867
add esp, 8
jmp 0x4cab13
Function at 0x4cb3d0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
mov eax, dword [0x6b66bc]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.004cf9b0
cmp dword [ebp + 0x10], 0
je 0x4cb3f4
cmp dword [ebp + 0x14], 0
jne 0x4cb3fb
xor eax, eax
jmp 0x4cb4aa
mov eax, dword [ebp + 8]
push eax
push 0
push 0x1b
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x2dc], eax
cmp dword [ebp - 0x2dc], 0
jne 0x4cb41f
xor eax, eax
jmp 0x4cb4aa
mov ecx, dword [ebp - 0x2dc]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea ecx, [ebp - 0x2d8]
call fcn.004caa00
mov dword [ebp - 0x2d4], 0x10001
mov edx, dword [ebp - 0x2dc]
mov dword [ebp - 8], edx
mov dword [ebp - 0x2e0], 0
lea eax, [ebp - 0x2d4]
push eax
mov ecx, dword [ebp - 0x2dc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x4cb48a
lea edx, [ebp - 0x2e0]
push edx
lea eax, [ebp - 0x2d8]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.004cb1c0
add esp, 0x10
mov eax, dword [ebp - 0x2dc]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x2dc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2e0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005f4480
mov esp, ebp
pop ebp
ret
Function at 0x4cc240
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, 0x80
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
cmp eax, edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
jle 0x4cc27e
mov dword [esi + 4], eax
cmp eax, dword [esi + 8]
jle 0x4cc28e
push edi
mov ecx, esi
call fcn.0040cde0
jmp 0x4cc28e
jge 0x4cc28e
sub edi, eax
je 0x4cc28e
mov ecx, esi
mov dword [esi + 4], eax
call fcn.00412d40
push dword [esi]
push dword [esi + 4]
call ebx
test eax, eax
je 0x4cc2ed
mov edi, dword [esi + 4]
cmp eax, edi
jae 0x4cc26a
inc eax
cmp eax, edi
jle 0x4cc2d3
mov ebx, eax
mov dword [esi + 4], eax
sub ebx, edi
cmp eax, dword [esi + 8]
jle 0x4cc2b9
push edi
mov ecx, esi
call fcn.0040cde0
lea ecx, [ebx + ebx]
push ecx
mov ecx, dword [esi]
push 0
lea ecx, [ecx + edi*2]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
ret
jge 0x4cc30f
mov ecx, edi
sub ecx, eax
je 0x4cc30f
sub edi, ecx
mov ecx, esi
mov dword [esi + 4], edi
call fcn.00412d40
pop edi
mov eax, esi
pop esi
pop ebx
ret
mov eax, dword [esi + 8]
mov dword [esi + 4], 0
test eax, eax
jns 0x4cc304
push 0
mov ecx, esi
call fcn.0040ce40
mov eax, dword [esi]
test eax, eax
je 0x4cc30f
xor ecx, ecx
mov word [eax], cx
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4cf7f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x69c9c8
push 0x5f4451
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6b66bc]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov ecx, dword [edi + 0x18]
mov eax, ecx
and eax, dword [edi + 0x1c]
cmp eax, 0xffffffff
je 0x4cf843
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
cmp dword [edi + 8], 0
je 0x4cf84e
mov eax, dword [edi + 4]
jmp 0x4cf853
mov eax, 0x60f5ec
push eax
call fcn.004d3040
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call esi
push str.noexceptionhandler
call esi
push eax
call fcn.004a9300
add esp, 8
test al, al
jne 0x4cf98a
mov dword [ebp - 4], 0
mov ecx, edi
call fcn.004d2b30
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.004d2b30
mov esi, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d2040
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
xor bl, bl
xor ebp, ebp
mov ecx, 0x200
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esp + 0x1c], ebp
nop
test bl, bl
jne 0x4d21f5
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
test ebp, ebp
mov eax, 0x100
cmove eax, ecx
or eax, 0x20019
push eax
push 0
push dword [esp + 0x40]
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4d21e2
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x4d21d8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4d21d8
push eax
call fcn.0040cad0
add esp, 4
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x10]
push ecx
push eax
push 0
push 0
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x4d21cc
mov ebx, dword [esp + 0x10]
xor esi, esi
mov eax, dword [esp + 0x18]
xor edi, edi
shr ebx, 1
xor ebp, ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebp
lea ecx, [ebx - 1]
test eax, eax
je 0x4d2172
test ecx, ecx
jle 0x4d2172
cmp word [eax], si
je 0x4d2172
test ebx, ebx
je 0x4d2133
push ebx
lea ecx, [esp + 0x24]
call fcn.0040ce40
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov eax, edi
lea edi, [ebx + eax]
mov dword [esp + 0x24], edi
cmp edi, ebp
jle 0x4d2156
push eax
lea ecx, [esp + 0x24]
call fcn.0040cde0
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
lea eax, [ebx*2 - 2]
push eax
push dword [esp + 0x1c]
push esi
call fcn.004263f0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2 - 2], ax
mov ebx, dword [esp + 0x3c]
lea eax, [esp + 0x20]
cmp ebx, eax
je 0x4d21af
mov eax, dword [ebx]
test eax, eax
je 0x4d218d
push eax
call fcn.0043f8f0
add esp, 4
mov dword [ebx], esi
mov dword [esp + 0x20], 0
mov dword [ebx + 4], edi
mov dword [ebx + 8], ebp
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
jmp 0x4d21bc
test esi, esi
je 0x4d21bc
push esi
call fcn.0043f8f0
add esp, 4
mov ebp, dword [esp + 0x1c]
mov bl, 1
mov esi, dword [esp + 0x38]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0x18]
call fcn.0040caf0
add esp, 4
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebp
mov ecx, 0x200
mov dword [esp + 0x1c], ebp
cmp ebp, 2
jl 0x4d2060
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x1c
ret
Function at 0x4d2200
Capabilities:
Read file via mapping

Disassembly:
push ecx
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [esp + 0x28]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4d227f
push edi
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x4d2277
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esp + 0xc], eax
test eax, eax
je 0x4d2270
push dword [esp + 0x18]
push eax
call fcn.004d2290
add esp, 8
mov bl, al
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
pop ecx
ret
Function at 0x4d2290
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x28
mov eax, 0x5a4d
xor cl, cl
push ebp
mov ebp, dword [esp + 0x30]
cmp word [ebp], ax
jne 0x4d248c
push ebx
mov ebx, dword [ebp + 0x3c]
add ebx, ebp
mov dword [esp + 0xc], ebx
cmp dword [ebx], 0x4550
jne 0x4d2484
push dword [ebx + 0x80]
push ebx
push ebp
call fcn.004d11f0
add esp, 0xc
mov dword [esp + 0x14], 0
cmp dword [ebx + 0x84], 0
mov ecx, eax
mov dword [esp + 0x10], ecx
jbe 0x4d247c
push esi
mov esi, dword [esp + 0x3c]
xor eax, eax
push edi
cmp dword [eax + ecx], 0
jne 0x4d2318
cmp dword [eax + ecx + 4], 0
jne 0x4d2318
cmp dword [eax + ecx + 8], 0
jne 0x4d2318
cmp dword [eax + ecx + 0xc], 0
jne 0x4d2318
cmp dword [eax + ecx + 0x10], 0
je 0x4d247a
mov eax, dword [eax + ecx + 0xc]
test eax, eax
je 0x4d245f
push eax
push ebx
push ebp
call fcn.004d11f0
mov ebx, eax
mov dword [esp + 0x38], 0
xor edx, edx
xor ebp, ebp
add esp, 0xc
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebp
test ebx, ebx
je 0x4d239a
cmp byte [ebx], dl
je 0x4d239a
mov ecx, ebx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d2352
sub ecx, edi
lea edi, [ecx + 1]
test edi, edi
jle 0x4d2374
push edi
lea ecx, [esp + 0x30]
call fcn.0040ce40
mov ebp, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
lea eax, [edi + edx]
mov dword [esp + 0x30], eax
cmp eax, ebp
jle 0x4d2389
push edx
lea ecx, [esp + 0x30]
call fcn.0040cde0
push 0x3f
push edi
push ebx
push edi
push dword [esp + 0x3c]
call fcn.0040da10
add esp, 0x14
mov ecx, dword [esi]
lea eax, [esp + 0x2c]
mov dword [esp + 0x20], eax
cmp eax, ecx
jb 0x4d23d4
mov eax, dword [esi + 8]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
lea ecx, [esp + 0x2c]
cmp ecx, eax
jae 0x4d23d4
lea eax, [esp + 0x20]
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
call fcn.00609220
add esp, 4
nop
int3
mov edi, dword [esi + 4]
lea eax, [edi + 1]
mov dword [esi + 4], eax
cmp eax, dword [esi + 8]
jle 0x4d23ea
push edi
mov ecx, esi
call fcn.00412ba0
mov eax, dword [esi]
lea ecx, [edi + edi*2]
mov dword [eax + ecx*4], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x2c]
mov dword [ecx], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], 0
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 8], eax
mov eax, dword [ecx + 4]
cmp eax, dword [esp + 0x30]
je 0x4d2432
lea eax, [esp + 0x13]
mov byte [esp + 0x13], 0
push eax
call fcn.00609010
add esp, 4
nop
int3
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
test eax, eax
je 0x4d2453
push eax
call fcn.0043f8f0
add esp, 4
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
lea eax, [eax + eax*4]
shl eax, 2
cmp eax, dword [ebx + 0x84]
jb 0x4d22f2
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
add esp, 0x28
ret
pop ebx
mov al, cl
pop ebp
add esp, 0x28
ret
mov al, cl
pop ebp
add esp, 0x28
ret
Function at 0x4d24a0
Capabilities:
Read file on windows
Read pipe

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 8]
push 0
push eax
push 0
push 0
push 0
push edi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x4d259c
mov eax, dword [esp + 8]
test eax, eax
je 0x4d259c
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + 4]
cmp eax, ecx
jle 0x4d24f6
mov dword [esi + 4], eax
cmp eax, dword [esi + 8]
jle 0x4d250e
push ecx
mov ecx, esi
call fcn.00430ea0
jmp 0x4d250a
jge 0x4d250e
mov edx, ecx
sub edx, eax
je 0x4d250e
sub ecx, edx
mov dword [esi + 4], ecx
mov ecx, esi
call fcn.00482490
mov eax, dword [esp + 8]
push 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push eax
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d2586
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 8]
jae 0x4d257e
mov edi, dword [esi + 4]
cmp eax, edi
jle 0x4d256a
push ebx
mov ebx, eax
mov dword [esi + 4], eax
sub ebx, edi
cmp eax, dword [esi + 8]
jle 0x4d2551
push edi
mov ecx, esi
call fcn.00430ea0
mov eax, dword [esi]
push ebx
add eax, edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov al, 1
pop ebx
pop edi
pop esi
add esp, 8
ret
jge 0x4d257e
mov ecx, edi
sub ecx, eax
je 0x4d257e
sub edi, ecx
mov ecx, esi
mov dword [esi + 4], edi
call fcn.00482490
pop edi
mov al, 1
pop esi
add esp, 8
ret
cmp dword [esi + 8], 0
mov dword [esi + 4], 0
je 0x4d259c
push 0
mov ecx, esi
call fcn.004982a0
pop edi
xor al, al
pop esi
add esp, 8
ret

Function at 0x4d25d0
Capabilities:
Terminate process

Disassembly:
cmp byte [0x700914], 5
push ebx
mov bl, byte [esp + 8]
jb 0x4d25fa
movzx eax, bl
push eax
push str.FPlatformMisc::RequestExit__i_
push 5
push 0x700918
push 0
push 0
call fcn.0047fa60
add esp, 0x18
push str.Win_RequestExit
call fcn.00497c40
add esp, 4
mov ecx, 0x6abd78
call fcn.00439d30
test bl, bl
pop ebx
je 0x4d2656
call fcn.004a5b60
test eax, eax
je 0x4d2637
call fcn.004a5b60
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x34]
call fcn.004a5b60
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
xor eax, eax
mov ecx, 3
cmp byte [0x70057a], al
cmovne eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
ret
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
ret
Function at 0x4d2b90
Capabilities:
Set current directory

Disassembly:
sub esp, 0x808
mov eax, dword [0x6b66bc]
xor eax, esp
mov dword [esp + 0x804], eax
call fcn.0041a750
call fcn.004cacf0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x4d2bce
lea eax, [esp + 4]
mov dword [esp], eax
lea eax, [esp]
push eax
call fcn.0060cfb0
add esp, 4
nop
int3
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.005f4480
add esp, 0x808
ret

Function at 0x4d2cb0
Capabilities:
Set environment variable

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x4d2ce9
cmp byte [0x700914], 3
jb 0x4d2ce9
push dword [esp + 8]
push dword [esp + 8]
push str.Failed_to_set_EnvironmentVariable:__s_to_:__s
push 3
push 0x700918
push eax
push eax
call fcn.0047fa60
add esp, 0x1c
ret

Function at 0x4d31e0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x10
lea eax, [esp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movss xmm0, dword [esp + 0x18]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x611498]
call fcn.005f4ae5
test eax, eax
jne 0x4d3211
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
jmp 0x4d3218
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x6a9090
sub esp, 8
mov byte [esp + 0x24], 0
mov eax, esp
lea ecx, [esp + 0x24]
mov dword [eax + 4], ecx
mov dword [eax], 0x41a840
call fcn.0043fe60
add esp, 0xc
mov esi, eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 4]
sub ecx, dword [esp + 0xc]
add dword [esi + 8], ecx
pop esi
add esp, 0x10
ret
Function at 0x4d3650
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0x2c]
sub esp, 0x28
mov ecx, dword [0x757724]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x746094]
cmp eax, dword [ecx + 8]
jg 0x4d3817
mov ecx, dword [0x74608c]
test ecx, ecx
je 0x4d3688
lea eax, [ecx - 1]
test eax, eax
jne 0x4d3805
lea eax, [esp]
push eax
push 0
push 0
push 0x694c88
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x4d37ff
push ebx
push esi
mov esi, dword [esp + 8]
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
push edi
test esi, esi
je 0x4d371e
cmp word [esi], dx
je 0x4d371e
mov ecx, esi
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d36d0
sub ecx, edi
sar ecx, 1
lea edi, [ecx + 1]
test edi, edi
jle 0x4d36f8
push edi
lea ecx, [esp + 0x20]
call fcn.0040ce40
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea eax, [edi + edx]
mov dword [esp + 0x20], eax
cmp eax, ebx
jle 0x4d370d
push edx
lea ecx, [esp + 0x20]
call fcn.0040cde0
lea eax, [edi + edi]
push eax
push esi
push dword [esp + 0x24]
call fcn.004263f0
add esp, 0xc
push 1
push 0x61bb6c
push 0x6112e4
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x2c]
call fcn.00412180
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 8]
mov dword [eax + 8], 0
mov eax, edx
neg eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
sbb eax, eax
add eax, 2
add eax, edx
cmp eax, ecx
jle 0x4d3779
push eax
lea ecx, [esp + 0x14]
call fcn.0040ce40
push 1
push 0x61bb6c
lea ecx, [esp + 0x18]
call fcn.0040edd0
mov eax, dword [0x746088]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
test eax, eax
je 0x4d37bf
push eax
call fcn.0043f8f0
add esp, 4
mov eax, dword [esp + 0x28]
mov dword [0x74608c], edi
mov dword [0x746088], esi
mov dword [0x746090], ebx
pop edi
pop esi
pop ebx
test eax, eax
je 0x4d37e5
push eax
call fcn.0043f8f0
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4d37f6
push eax
call fcn.0043f8f0
add esp, 4
push dword [esp]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [0x74608c]
test ecx, ecx
mov eax, 0x60f5ec
cmovne eax, dword [0x746088]
add esp, 0x28
ret
push 0x746094
call fcn.005f48b1
add esp, 4
cmp dword [0x746094], 0xffffffff
jne 0x4d3673
push 0x608740
call fcn.005f4769
push 0x746094
call fcn.005f4867
add esp, 8
jmp 0x4d3673
Function at 0x4d3850
Capabilities:
Get session user name

Disassembly:
cmp byte [esp + 4], 0
je 0x4d38c6
cmp word [0x7462c8], 0
jne 0x4d38c0
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x100
push eax
push 0x7462c8
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov ax, word [0x7462c8]
mov esi, 0x7462c8
mov edi, esi
test ax, ax
je 0x4d38b9
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswalnum]
movzx ecx, ax
push ecx
call ebx
add esp, 4
test eax, eax
je 0x4d38aa
mov ax, word [esi]
mov word [edi], ax
add edi, 2
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x4d3897
pop ebx
xor eax, eax
mov word [edi], ax
pop edi
pop esi
mov eax, 0x7462c8
ret
cmp word [0x7460c8], 0
jne 0x4d38e8
lea eax, [esp + 4]
mov dword [esp + 4], 0x100
push eax
push 0x7460c8
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, 0x7460c8
ret
Function at 0x4d38f0
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0x2c]
sub esp, 0x28
mov ecx, dword [0x757724]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x7460b4]
cmp eax, dword [ecx + 8]
jg 0x4d3ab7
mov ecx, dword [0x7460ac]
test ecx, ecx
je 0x4d3928
lea eax, [ecx - 1]
test eax, eax
jne 0x4d3aa5
lea eax, [esp]
push eax
push 0
push 0
push 0x694ca8
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x4d3a9f
push ebx
push esi
mov esi, dword [esp + 8]
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
push edi
test esi, esi
je 0x4d39be
cmp word [esi], dx
je 0x4d39be
mov ecx, esi
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d3970
sub ecx, edi
sar ecx, 1
lea edi, [ecx + 1]
test edi, edi
jle 0x4d3998
push edi
lea ecx, [esp + 0x20]
call fcn.0040ce40
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea eax, [edi + edx]
mov dword [esp + 0x20], eax
cmp eax, ebx
jle 0x4d39ad
push edx
lea ecx, [esp + 0x20]
call fcn.0040cde0
lea eax, [edi + edi]
push eax
push esi
push dword [esp + 0x24]
call fcn.004263f0
add esp, 0xc
push 1
push 0x61bb6c
push 0x6112e4
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x2c]
call fcn.00412180
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 8]
mov dword [eax + 8], 0
mov eax, edx
neg eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
sbb eax, eax
add eax, 2
add eax, edx
cmp eax, ecx
jle 0x4d3a19
push eax
lea ecx, [esp + 0x14]
call fcn.0040ce40
push 1
push 0x61bb6c
lea ecx, [esp + 0x18]
call fcn.0040edd0
mov eax, dword [0x7460a8]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
test eax, eax
je 0x4d3a5f
push eax
call fcn.0043f8f0
add esp, 4
mov eax, dword [esp + 0x28]
mov dword [0x7460ac], edi
mov dword [0x7460a8], esi
mov dword [0x7460b0], ebx
pop edi
pop esi
pop ebx
test eax, eax
je 0x4d3a85
push eax
call fcn.0043f8f0
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4d3a96
push eax
call fcn.0043f8f0
add esp, 4
push dword [esp]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [0x7460ac]
test ecx, ecx
mov eax, 0x60f5ec
cmovne eax, dword [0x7460a8]
add esp, 0x28
ret
push 0x7460b4
call fcn.005f48b1
add esp, 4
cmp dword [0x7460b4], 0xffffffff
jne 0x4d3913
push 0x608760
call fcn.005f4769
push 0x7460b4
call fcn.005f4867
add esp, 8
jmp 0x4d3913