joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c8f83
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x31c
push ebx
mov ebx, dword [ebp + 0x78]
push esi
mov esi, dword [ebp + 0x74]
xor edx, edx
push edi
xor edi, edi
cmp esi, 0xffffffff
mov dword [ebp + 0x64], edx
mov dword [ebp + 0x68], edx
jne 0x4c8fb7
cmp ebx, esi
jne 0x4c8fb7
mov eax, dword [ebp + 0x7c]
call fcn.004c8f64
jmp 0x4c9154
cmp dword [ebp + 0x7c], edx
jle 0x4c8fcc
mov edi, dword [ebp + 0x7c]
call fcn.004ca549
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x64], eax
xor edx, edx
xor eax, eax
or ecx, 0xffffffff
inc eax
cmp esi, ecx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x1ac], edx
je 0x4c8ffc
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], eax
mov ecx, esi
cmp ebx, 0xffffffff
mov dword [ebp - 0x2b0], edx
je 0x4c9053
mov dword [ebp - 0x2b0], eax
xor eax, eax
cmp dword [ebp - 0xa8], edx
mov dword [ebp - 0x2ac], ebx
jbe 0x4c902f
cmp dword [ebp + eax*4 - 0xa4], ebx
je 0x4c902f
inc eax
cmp eax, dword [ebp - 0xa8]
jb 0x4c901d
cmp eax, dword [ebp - 0xa8]
jne 0x4c904d
cmp dword [ebp - 0xa8], 0x40
jae 0x4c904d
mov dword [ebp + eax*4 - 0xa4], ebx
inc dword [ebp - 0xa8]
cmp ebx, ecx
jbe 0x4c9053
mov ecx, ebx
cmp dword [ebp + 0x7c], edx
jge 0x4c905c
xor ebx, ebx
jmp 0x4c905f
lea ebx, [ebp + 0x5c]
lea esi, [ecx + 1]
xor eax, eax
cmp dword [ebp + 0x7c], eax
jle 0x4c907e
mov eax, edi
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp + 0x60], edx
jmp 0x4c9083
jne 0x4c9086
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x5c], eax
push ebx
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x1ac]
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4c90df
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4c90b9
cmp eax, 0x2714
jne 0x4c90e3
cmp dword [ebp + 0x7c], 0
jle 0x4c9062
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call fcn.004ca549
push edx
push eax
call fcn.004ca55f
mov edi, dword [ebp + 0x7c]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x4c9062
jmp 0x4c90e3
test eax, eax
jge 0x4c90e8
or eax, 0xffffffff
jmp 0x4c9154
jne 0x4c90ee
xor eax, eax
jmp 0x4c9154
xor esi, esi
cmp dword [ebp + 0x74], 0xffffffff
je 0x4c9120
lea eax, [ebp - 0x1ac]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c910a
inc esi
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c9120
or esi, 4
cmp dword [ebp + 0x78], 0xffffffff
je 0x4c9152
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c913c
or esi, 2
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c9152
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x4cb0a1
Capabilities:
Parse pe header

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4cb0ae
jmp dword [eax*4 + 0x4cb109]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
mov al, byte [esp + 4]
ret

Function at 0x4ccdf4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
push ebx
xor ebx, ebx
cmp dword [eax + 4], 2
push edi
sete bl
test ebx, ebx
je 0x4cce18
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [esi + 0xc]
jmp 0x4cce49
cmp dword [esi + 8], 0
jne 0x4cce39
push 0x5319fc
push dword [eax + 8]
call fcn.0049ed6f
test eax, eax
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x4cce39
or eax, 0xffffffff
jmp 0x4cce6f
push dword [esi + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.0049c643
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4cce57
cmp edi, dword [ebp + 0xc]
jbe 0x4cce6d
test ebx, ebx
jne 0x4cce67
push dword [esi + 8]
call fcn.0049cc60
and dword [esi + 8], ebx
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret
Function at 0x4d11b0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0xffffffff
mov word [ebp - 0x218], 0
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.0049e730
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4d123c
jmp 0x4d12be
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x21c]
mov dword [ecx + 8], eax
push 0
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx + 8]
push eax
push 0
push 2
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edx, dword [ebp - 0x21c]
mov dword [edx], eax
cmp dword [ebp - 0xc], 0
jne 0x4d127f
jmp 0x4d12be
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 8]
push ecx
push 0
push 0
push 4
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 0x21c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x21c]
cmp dword [edx + 4], 0
jne 0x4d12b7
jmp 0x4d12be
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc], 0xffffffff
je 0x4d12ce
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4d16c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525ab4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x14]
call fcn.004070d0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.004d1460
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4d1735
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x1c], 1
jmp 0x4d1789
call fcn.005228f0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4d1745
jmp 0x4d1789
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ecx]
call eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4d1782
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov eax, dword [ebp - 0x2c]
jmp 0x4d17d3
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x14]
call fcn.0040b3b0
movzx ecx, al
test ecx, ecx
jne 0x4d17a7
lea ecx, [ebp - 0x14]
call fcn.00477060
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x20], 0
je 0x4d17bb
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4d4200
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524d31
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00406b50
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00406b50
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x24]
call fcn.00406b50
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.004d4070
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24]
call fcn.004070b0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x20]
call fcn.004070b0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1c]
call fcn.004070b0
lea ecx, [ebp - 0x10]
call fcn.0040b3b0
movzx ecx, al
test ecx, ecx
je 0x4d42b7
mov byte [ebp - 0x25], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004070b0
mov al, byte [ebp - 0x25]
jmp 0x4d436a
lea ecx, [ebp - 0x14]
call fcn.004070d0
mov byte [ebp - 4], 7
mov dword [ebp - 0x18], 0
jmp 0x4d42d5
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp + 0x14]
call fcn.0044ee50
cmp dword [ebp - 0x18], eax
jae 0x4d4348
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.00404380
lea ecx, [ebp - 0x14]
push ecx
call fcn.0050d660
add esp, 4
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.00474180
push eax
lea ecx, [ebp - 0x14]
call fcn.00408180
lea ecx, [ebp - 0x14]
call fcn.00477060
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4d4346
mov byte [ebp - 0x26], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004070b0
mov al, byte [ebp - 0x26]
jmp 0x4d436a
jmp 0x4d42cc
mov byte [ebp - 0x27], 1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004070b0
mov al, byte [ebp - 0x27]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4d4ac0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 1
push 0
push 0
push 0x5346d0
push 0x53472c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esp, ebp
pop ebp
ret

Function at 0x4d4af0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 1
push 0
push 0
push str.http:__www.xsso.net_dksq_userliscense.html
push 0x5346c0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esp, ebp
pop ebp
ret

Function at 0x4d4c70
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
mov ecx, dword [ebp - 4]
call fcn.00487070
cmp dword [ebp + 8], 0x61
je 0x4d4c8d
cmp dword [ebp + 8], 0x41
jne 0x4d4cb3
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
and eax, 0x80
je 0x4d4cb3
push 0
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x528
call fcn.00488cc0
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4d4d50
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call fcn.004d4b60
add esp, 4
test eax, eax
je 0x4d4df8
mov dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x18]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x4d4d97
jmp 0x4d4df8
push 0
push 0x100000
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.004b0a00
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
and dword [ebp - 0x24], 0x7fffffff
fild qword [ebp - 0x28]
and dword [ebp - 0x2c], 0x80000000
mov dword [ebp - 0x30], 0
fild qword [ebp - 0x30]
fchs
faddp st(1)
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fdiv qword [0x546988]
fstp qword [ebp - 0x20]
fld1
fcomp qword [ebp - 0x20]
fnstsw ax
test ah, 0x41
jp 0x4d4df8
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4d5240
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x558], 0
jne 0x4d5290
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp - 8]
call fcn.004d5180
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
call fcn.00477060
push eax
push 2
push 0x5336c8
push 0x5336d4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 8]
mov dword [edx + 0x558], eax
lea ecx, [ebp - 4]
call fcn.004070b0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x558]
mov esp, ebp
pop ebp
ret
Function at 0x4d57a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525430
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x964], 0
jne 0x4d57cc
jmp 0x4d5837
push 0
push str.drvmaster_9C20A70B_E65D_4ef5_9744_A0D0B52A1BEE
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
jne 0x4d5837
lea ecx, [ebp - 0x10]
push ecx
call fcn.0050d9a0
add esp, 4
mov dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call fcn.0050d660
add esp, 4
push str.wmtray.exe
lea ecx, [ebp - 0x10]
call fcn.00407250
push 1
push 0
push str._from:autorun
lea ecx, [ebp - 0x10]
call fcn.00477060
push eax
push 0x5348c0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004070b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4d5930
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [ebp + 8]
call fcn.00477060
push eax
lea eax, [ebp - 4]
push eax
call fcn.004dc3f0
add esp, 8
lea ecx, [ebp - 4]
call fcn.004070b0
mov ecx, dword [ebp + 8]
call fcn.00406ac0
cmp eax, 3
jl 0x4d5987
mov ecx, dword [ebp + 8]
call fcn.00477060
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4d5991
mov ecx, dword [ebp + 8]
call fcn.00477060
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 1
jne 0x4d5991
mov eax, 1
jmp 0x4d5a46
push 3
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004075c0
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
call fcn.00477060
push eax
call fcn.004d4b60
add esp, 4
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 5], al
lea ecx, [ebp - 0xc]
call fcn.004070b0
movzx edx, byte [ebp - 5]
test edx, edx
je 0x4d59d4
mov eax, 2
jmp 0x4d5a46
mov eax, dword [ebp + 8]
push eax
call fcn.004d4fb0
add esp, 4
test eax, eax
je 0x4d59eb
mov eax, 3
jmp 0x4d5a46
push 3
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004075c0
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
call fcn.00477060
push eax
call fcn.004d4d50
add esp, 4
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0xd], al
lea ecx, [ebp - 0x14]
call fcn.004070b0
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x4d5a2e
mov eax, 4
jmp 0x4d5a46
mov ecx, dword [ebp + 8]
call fcn.00406ac0
cmp eax, 0x96
jle 0x4d5a44
mov eax, 5
jmp 0x4d5a46
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4d6090
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525bdc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x454
mov dword [ebp - 0x458], ecx
mov word [ebp - 0x21c], 0
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.0049e730
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x10]
push edx
push 0x11
mov eax, dword [ebp - 0x458]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea ecx, [ebp - 0x224]
call fcn.004070d0
mov dword [ebp - 4], 0
push 0x105
lea ecx, [ebp - 0x224]
call fcn.00406830
push 0
lea ecx, [ebp - 0x224]
call fcn.004067e0
push 0x534130
lea ecx, [ebp - 0x224]
call fcn.00407020
mov edx, dword [ebp - 0x458]
mov eax, dword [edx + 4]
mov dword [ebp - 0x244], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x240], ecx
lea ecx, [ebp - 0x224]
call fcn.0040ed60
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], 0x53413c
mov dword [ebp - 0x234], 1
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
lea edx, [ebp - 0x244]
push edx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x4d62b4
mov word [ebp - 0x44c], 0
push 0x206
push 0
lea eax, [ebp - 0x44a]
push eax
call fcn.0049e730
add esp, 0xc
lea ecx, [ebp - 0x44c]
push ecx
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea ecx, [ebp - 0x450]
call fcn.004070d0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x44c]
push eax
lea ecx, [ebp - 0x454]
push ecx
call fcn.004dc3f0
add esp, 8
mov dword [ebp - 0x45c], eax
mov edx, dword [ebp - 0x45c]
mov dword [ebp - 0x460], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x460]
push eax
lea ecx, [ebp - 0x450]
call fcn.0040a960
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x454]
call fcn.004070b0
mov ecx, dword [ebp - 0x458]
add ecx, 0x968
push ecx
lea ecx, [ebp - 0x450]
call fcn.0040a960
lea ecx, [ebp - 0x450]
call fcn.00477060
push eax
mov ecx, dword [ebp - 0x458]
add ecx, 0x528
call fcn.004930a0
push 0
lea edx, [ebp - 0x450]
push edx
call fcn.004d5930
add esp, 4
push eax
push 0x46c
mov ecx, dword [ebp - 0x458]
add ecx, 4
call fcn.0045b2b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x450]
call fcn.004070b0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.004070b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4d75a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5263c4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00477060
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4d75ec
lea ecx, [ebp + 8]
call fcn.00477060
push eax
call fcn.0047bc40
add esp, 4
call fcn.0047c9d0
push 0x2710
call fcn.00486520
add esp, 4
push 0x2711
call fcn.00486920
add esp, 4
push 0x2712
call fcn.00486b80
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004070b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4d7ed0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527040
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x50]
mov dword [eax], vtable.KDetectorMainDlg.0
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x504], 0x54665c
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x4c], 0x1388
mov dword [ebp - 0x2c], 0
push 0x1388
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x958]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x2c], 0
jne 0x4d7f53
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x958]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x958], 0
jmp 0x4d7f65
push 0
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x958]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 0x50]
add ecx, 0x564
call fcn.004d12e0
mov ecx, 0x5645b0
call fcn.004e3140
mov ecx, dword [ebp - 0x50]
add ecx, 0x584
call fcn.0040ed60
push eax
lea ecx, [ebp - 0x48]
call fcn.0040ab60
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
call fcn.005201f0
push 1
lea ecx, [ebp - 0x28]
push ecx
call fcn.0051abb0
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.005201d0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x48]
call fcn.00407750
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x50]
add ecx, 0xadc
call fcn.004dad60
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x50]
add ecx, 0x96c
call fcn.0051b150
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x50]
add ecx, 0x968
call fcn.004070b0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x50]
add ecx, 0x95c
call fcn.004070b0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x50]
add ecx, 0x954
call fcn.004070b0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x50]
add ecx, 0x588
call fcn.0044c830
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x50]
add ecx, 0x584
call fcn.004070b0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x50]
add ecx, 0x564
call fcn.004d1330
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x50]
add ecx, 0x554
call fcn.004070b0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x50]
add ecx, 0x550
call fcn.004070b0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x50]
add ecx, 0x528
call fcn.00488bc0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x50], 0
je 0x4d80a4
mov edx, dword [ebp - 0x50]
add edx, 0x504
mov dword [ebp - 0x54], edx
jmp 0x4d80ab
mov dword [ebp - 0x54], 0
mov ecx, dword [ebp - 0x54]
call fcn.0044baa0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x50]
call fcn.0044b3b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4d81a0
Capabilities:
Get common file path
Get disk information
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5271c4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov dword [ebp - 0x2c], ecx
lea eax, [ebp - 0x24]
push eax
call fcn.004cfd90
mov ecx, eax
call fcn.004cf020
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x2c]
add ecx, 0x550
call fcn.00404380
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004070b0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x550
call fcn.0040b3b0
movzx eax, al
test eax, eax
je 0x4d8260
push 0
push 0x26
push 0x104
mov ecx, dword [ebp - 0x2c]
add ecx, 0x550
call fcn.00406830
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0x14], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x2c]
add ecx, 0x550
call fcn.0040d520
cmp dword [ebp - 0x14], 0
jne 0x4d8260
push 0x5341c4
mov ecx, dword [ebp - 0x2c]
add ecx, 0x550
call fcn.00407020
push 0x5341e8
mov ecx, dword [ebp - 0x2c]
add ecx, 0x550
call fcn.00407250
mov ecx, dword [ebp - 0x2c]
add ecx, 0x968
push ecx
mov ecx, dword [ebp - 0x2c]
add ecx, 0x550
call fcn.00408180
call fcn.004d2b00
mov ecx, eax
call fcn.004d1bd0
movzx edx, al
test edx, edx
je 0x4d82e8
mov eax, dword [ebp - 0x2c]
add eax, 0x550
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.004d2b00
mov ecx, eax
call fcn.004d1a20
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x550
call fcn.00404380
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004070b0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x550
push ecx
call fcn.004d5930
add esp, 4
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x10], eax
je 0x4d830b
jmp 0x4d83d1
mov dword [ebp - 0x18], 0
jmp 0x4d831d
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0x1a
je 0x4d83d1
mov eax, dword [ebp - 0x18]
add eax, 0x41
mov word [ebp - 0x20], ax
lea ecx, [ebp - 0x1c]
call fcn.004070d0
mov dword [ebp - 4], 2
movzx ecx, word [ebp - 0x20]
push ecx
push 0x5341ec
lea edx, [ebp - 0x1c]
push edx
call fcn.0040d910
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.00477060
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4d83bd
lea ecx, [ebp - 0x1c]
call fcn.004043a0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x968]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push str._sprogram_files_s
mov eax, dword [ebp - 0x2c]
add eax, 0x550
push eax
call fcn.00407e40
add esp, 0x10
mov ecx, dword [ebp - 0x2c]
add ecx, 0x550
push ecx
call fcn.004d5930
add esp, 4
test eax, eax
jne 0x4d83bd
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004070b0
jmp 0x4d83d1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004070b0
jmp 0x4d8314
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret