joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c3c40
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5777c1
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x5c8910]
xor eax, esp
mov dword [esp + 0x26c], eax
push esi
push edi
mov eax, dword [0x5c8910]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [esp + 0x6c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
cmp word [esp + 0x6c], ax
jne 0x4c3cb4
xor ecx, ecx
jmp 0x4c3ccf
lea ecx, [esp + 0x6c]
lea edx, [ecx + 2]
jmp 0x4c3cc0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c3cc0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x14]
call fcn.00408679
mov dword [esp + 0x288], 0
lea ecx, [esp + 0x3c]
push 0xc
xor eax, eax
mov dword [esp + 0x54], 7
push str.regsvr32.exe
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
call fcn.00408679
lea eax, [esp + 0x3c]
mov byte [esp + 0x288], 1
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.004bcba0
mov esi, eax
add esp, 0xc
lea eax, [esp + 0xc]
cmp eax, esi
je 0x4c3d6d
cmp dword [esp + 0x20], 8
jb 0x4c3d4c
push dword [esp + 0xc]
call fcn.005363a4
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
call fcn.00440913
cmp dword [esp + 0x68], 8
jb 0x4c3d80
push dword [esp + 0x54]
call fcn.005363a4
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
mov byte [esp + 0x288], al
cmp dword [esp + 0x50], 8
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
jb 0x4c3db1
push dword [esp + 0x3c]
call fcn.005363a4
add esp, 4
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c3e7f
xor eax, eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
push 3
push 0x5aaf70
lea ecx, [esp + 0x2c]
mov byte [esp + 0x290], 2
call fcn.00408679
cmp dword [ebp + 0xc], 0
jne 0x4c3e13
push 4
push str.__u
lea ecx, [esp + 0x2c]
call fcn.00409102
push 2
push 0x5a2318
lea ecx, [esp + 0x2c]
call fcn.00409102
push 0xffffffffffffffff
push 0
push edi
lea ecx, [esp + 0x30]
call fcn.00409252
push 1
push 0x5a0f3c
lea ecx, [esp + 0x2c]
call fcn.00409102
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004c1810
add esp, 0xc
cmp dword [esp + 0x38], 8
jb 0x4c3e68
push dword [esp + 0x24]
call fcn.005363a4
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
cmp dword [esp + 0x20], 8
jb 0x4c3e92
push dword [esp + 0xc]
call fcn.005363a4
add esp, 4
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret
Function at 0x4c53d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test esi, esi
je 0x4c548f
cmp word [esi], 0
jne 0x4c53ec
xor edx, edx
jmp 0x4c5400
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4c53f1
sub edx, ecx
sar edx, 1
push edi
push edx
lea edi, [ebx + 0x1c]
push esi
mov ecx, edi
call fcn.00408679
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4c5486
cmp dword [ebp + 0x10], 0
je 0x4c5486
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c5486
cmp dword [ebx], 0
jne 0x4c5435
mov ecx, ebx
call fcn.004c54a0
test al, al
je 0x4c5486
cmp dword [edi + 0x14], 8
mov ecx, dword [ebx]
jb 0x4c543f
mov edi, dword [edi]
mov eax, dword [ecx]
add ebx, 0x34
push ebx
push 0x59215c
push 0x59218c
push edi
push ecx
call dword [eax + 0x20]
test eax, eax
js 0x4c5486
mov ecx, dword [ebx]
test ecx, ecx
je 0x4c5486
mov eax, dword [ecx]
push esi
push ecx
call dword [eax + 0x80]
test eax, eax
js 0x4c5486
mov eax, dword [ebx]
push dword [ebp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x88]
pop edi
test eax, eax
pop esi
setns al
pop ebx
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 0xc
pop esi
xor al, al
pop ebx
pop ebp
ret 0xc

Function at 0x4c5c00
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 8], edx
push eax
push 0
mov dword [ebp - 0xc], ecx
xor bl, bl
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x4c5ca2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4c5ca2
mov eax, dword [ebp - 4]
add eax, eax
push eax
call fcn.0053b140
mov esi, eax
add esp, 4
test esi, esi
jne 0x4c5c4e
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x4c5c99
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x4c5c7c
push esi
xor bl, bl
call fcn.005363a4
add esp, 4
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004c5a20
add esp, 0xc
mov bl, al
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call fcn.005363a4
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cb6e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578250
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5c8910]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov ebx, dword [ebp + 0x20]
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
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 - 0x64], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x58]
cmp eax, ecx
je 0x4cb77a
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.0040759d
lea eax, [ebp - 0x40]
cmp eax, ebx
je 0x4cb78d
push 0xffffffffffffffff
push 0
push ebx
mov ecx, eax
call fcn.0040759d
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x4cb7a0
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.0040759d
push 0x5d22a8
mov dword [ebp - 0x70], 0x5d22a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call fcn.004cc4f0
cmp dword [esi + 0xc], 0
jne 0x4cb7f1
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push esi
push 0x4ca0c0
push 0
push 0
mov dword [esi + 0x10], eax
call fcn.00537b86
add esp, 0x18
mov dword [esi + 0xc], eax
push 0x5d22a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x6c]
call fcn.004cb660
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret 0x20
Function at 0x4e61df
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, edx
mov dword [ebp - 8], ecx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4e626f
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4e626f
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4e6268
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4e6261
push ebx
push edi
push eax
call fcn.005382c0
and dword [ebp - 4], 0
lea eax, [ebp - 4]
add esp, 0xc
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4e625a
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.004e5b4e
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e6276
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, ecx
cmp dword [edi + 4], 0
je 0x4e6301
push ebx
xor ebx, ebx
cmp dword [edi + 0xc], ebx
jle 0x4e6300
mov eax, dword [edi + 0x10]
mov dword [ebp - 8], 0xff
push esi
and dword [ebp - 4], 0
test eax, eax
jle 0x4e62f9
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
imul ecx, dword [ebp - 4]
imul eax, ebx
cdq
and edx, 7
lea esi, [edx + eax]
sar esi, 3
add esi, ecx
add esi, dword [edi + 8]
movzx ecx, byte [esi + 3]
movzx eax, byte [esi]
imul eax, ecx
cdq
idiv dword [ebp - 8]
mov byte [esi], al
movzx eax, byte [esi + 1]
imul eax, ecx
cdq
idiv dword [ebp - 8]
mov byte [esi + 1], al
movzx eax, byte [esi + 2]
imul eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov ecx, dword [ebp - 4]
inc ecx
mov byte [esi + 2], al
mov eax, dword [edi + 0x10]
mov dword [ebp - 4], ecx
cmp ecx, eax
jl 0x4e629f
inc ebx
cmp ebx, dword [edi + 0xc]
jl 0x4e6297
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4e6c4d
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 8]
push esi
movzx eax, dx
mov esi, ecx
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
shr edx, 0x10
mov dword [ebp - 4], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.004e6d90
mov edi, eax
test edi, edi
jne 0x4e6c94
push esi
push 0x4e6fce
call dword [sym.imp.USER32.dll_EnumWindows]
jmp case.default.0x4e6ca5
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [edi - 1]
cmp eax, 7
ja case.default.0x4e6ca5
jmp dword [eax*4 + 0x4e6d31]
push dword [esi + 0x98]
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
cmp edi, 2
setne al
add eax, 0xf001
jmp 0x4e6d13
push dword [esi + 0x9c]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 0xf006
cmp edi, 1
lea ecx, [eax - 3]
jmp 0x4e6d10
push dword [esi + 0xa0]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 0xf008
cmp edi, 5
lea ecx, [eax - 4]
jmp 0x4e6d10
push dword [esi + 0xa4]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 0xf007
cmp edi, 6
lea ecx, [eax - 2]
cmove eax, ecx
push 0
push eax
push 0x112
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4e7735
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push 0x3c
mov eax, 0x579ddf
call fcn.0053fca0
mov edi, ecx
xor dl, dl
lea ecx, [ebp - 0x44]
xor bl, bl
call fcn.004e7973
xor ecx, ecx
lea eax, [ebp - 0x44]
push ecx
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x30], 8
push 3
cmovae eax, dword [ebp - 0x44]
push ecx
inc ecx
push ecx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4e7808
mov dl, 1
lea ecx, [ebp - 0x2c]
call fcn.004e7973
lea ecx, [ebp - 0x44]
call fcn.004e7df6
test al, al
jne 0x4e77d5
lea ecx, [ebp - 0x2c]
call fcn.004e7df6
test al, al
je 0x4e77d5
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
push 0
cmovae ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4e77d5
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 1
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00403256
cmp esi, 0xffffffff
je 0x4e7842
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10
jb 0x4e783b
and dword [ebp - 0x48], 0
lea eax, [ebp - 0x48]
push 0
push eax
push 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e783b
cmp dword [ebp - 0x48], 0x10
push 1
movzx ebx, bl
pop eax
cmove ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea ecx, [ebp - 0x44]
push 0
inc eax
push eax
call fcn.00403256
mov al, bl
call fcn.0053fc4f
ret

Function at 0x4e7858
Capabilities:
Write file on windows

Disassembly:
push 0x3c
mov eax, 0x579e0c
call fcn.0053fca0
mov edi, ecx
xor dl, dl
lea ecx, [ebp - 0x44]
xor bl, bl
call fcn.004e7973
xor ecx, ecx
lea eax, [ebp - 0x44]
push ecx
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x30], 8
push 2
cmovae eax, dword [ebp - 0x44]
push ecx
inc ecx
push ecx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4e78d9
mov dl, 1
lea ecx, [ebp - 0x2c]
call fcn.004e7973
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
push ecx
push ecx
push 2
push ecx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 1
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00403256
cmp esi, 0xffffffff
je 0x4e7901
push 0
lea eax, [ebp - 0x48]
push eax
push 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4e78fa
cmp dword [ebp - 0x48], 0x10
push 1
movzx ebx, bl
pop eax
cmove ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea ecx, [ebp - 0x44]
push 0
inc eax
push eax
call fcn.00403256
mov al, bl
call fcn.0053fc4f
ret
Function at 0x4e7973
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x22c
mov eax, 0x579e5e
call fcn.0053fca0
mov bl, dl
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x234], ecx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ecx
mov word [esi], ax
push 0x208
xor edi, edi
mov dword [ebp - 4], ecx
push ecx
lea eax, [ebp - 0x218]
inc edi
push eax
mov dword [ebp - 0x234], edi
call fcn.00538910
add esp, 0xc
test bl, bl
push edi
push 0x23
pop eax
push 0x1a
pop ecx
cmovne eax, ecx
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4e7a5c
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00408738
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.00409252
push 0
push edi
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.00403256
mov edi, str.TencentDeskUpdate
test bl, bl
jne 0x4e7a25
mov edi, str.TencentDesktop
push edi
call fcn.004086f2
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00409102
mov ecx, esi
call fcn.004e7a64
test al, al
jne 0x4e7a47
mov ecx, esi
call fcn.004e7b2f
mov edi, str.Global.db
push edi
call fcn.004086f2
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00409102
mov eax, esi
call fcn.0053fc4f
ret
Function at 0x4e9ccb
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x5bff50
call fcn.005470c0
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x4e9d32
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x4e9d32
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x4e9d32
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x4e9d32
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x4e9d3b
mov dword [ebp - 4], 0xfffffffe
xor al, al
call fcn.00547105
ret

Function at 0x4e9e02
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [0x5d0c18]
jmp 0x4e9e24
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
test esi, esi
jne 0x4e9e0f
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4e9e58
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [0x5d0c10]
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
mov ebx, 0x10000
cmp esi, 0x7ff80000
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
mov eax, dword [0x5d0c18]
test edx, edx
jne 0x4e9ea6
test eax, eax
je 0x4e9eb9
mov edx, eax
mov dword [0x5d0c10], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x4e9eb9
cmp ecx, ebx
jb 0x4e9eb9
cmp ecx, edi
jbe 0x4e9f91
mov edx, eax
test eax, eax
jmp 0x4e9edb
test edx, edx
je 0x4e9ed6
mov eax, dword [edx + 8]
test eax, eax
je 0x4e9ed6
cmp eax, ebx
jb 0x4e9ed6
cmp eax, edi
jbe 0x4e9f91
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x5d0c10], edx
jne 0x4e9ebf
movzx eax, si
sub esi, eax
mov ecx, esi
cmp esi, ebx
jbe 0x4ea031
lea eax, [ecx - 0x70000000]
mov edx, 0x6fff0000
cmp eax, 0x10000000
lea eax, [ebp - 0x3c]
push 0x1c
cmovbe ecx, edx
push eax
push ecx
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4ea031
mov eax, 0x10000
cmp dword [ebp - 0x2c], eax
jne 0x4e9f2c
cmp dword [ebp - 0x30], eax
jae 0x4e9f3e
mov ecx, dword [ebp - 0x38]
add ecx, 0xffff0000
cmp ecx, ebx
ja 0x4e9ef2
jmp 0x4ea031
push 0x40
push 0x3000
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
mov dword [0x5d0c10], edx
test edx, edx
je 0x4ea031
mov eax, dword [0x5d0c18]
xor ecx, ecx
mov dword [edx + 4], eax
mov esi, 0x7fd
mov dword [edx], 0x52727464
lea eax, [edx + 0xffe0]
mov dword [edx + 8], ecx
mov dword [0x5d0c18], edx
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
dec esi
jne 0x4e9f83
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x4ea035
cmp esi, edi
ja 0x4ea035
mov ecx, dword [esi + 0x18]
mov eax, 0xcccccccc
mov dword [edx + 8], ecx
mov edi, esi
push 8
pop ecx
rep stosd dword es:[edi], eax
mov eax, esi
jmp 0x4ea037
lea eax, [esi - 0x70000000]
mov ecx, 0x80010000
cmp eax, 0x10000000
lea eax, [ebp - 0x20]
push 0x1c
cmovbe esi, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4ea035
mov eax, 0x10000
cmp dword [ebp - 0x10], eax
jne 0x4ea029
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
jb 0x4ea02c
movzx edx, si
test edx, edx
je 0x4ea00a
mov esi, dword [ebp - 0x20]
sub eax, edx
sub ecx, eax
add esi, eax
mov dword [ebp - 0x14], ecx
mov eax, 0x10000
mov dword [ebp - 0x20], esi
push 0x40
push 0x3000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
mov dword [0x5d0c10], edx
test edx, edx
jne 0x4e9f5f
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
add esi, ecx
cmp esi, edi
jb 0x4e9fba
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ea123
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x5d0c20], eax
je 0x4ea13f
mov eax, 0x10dd
jmp 0x4ea1c7
push ebx
push esi
push edi
mov edi, dword [0x5d0c14]
xor ebx, ebx
test edi, edi
je 0x4ea189
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [edi + 4], ebx
jne 0x4ea17a
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4ea17a
call fcn.004ea03e
mov dword [edi + 0x10], ebx
mov esi, dword [edi]
push edi
call fcn.005363a4
mov edi, esi
pop ecx
test esi, esi
jne 0x4ea14e
mov dword [0x5d0c14], ebx
call fcn.004e9e2d
mov edi, dword [0x5d0c0c]
test edi, edi
je 0x4ea1b6
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [edi]
push edi
call fcn.005363a4
mov edi, esi
pop ecx
test esi, esi
jne 0x4ea19e
pop edi
pop esi
mov dword [0x5d0c0c], ebx
xor eax, eax
mov dword [0x5d0c20], ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ea6be
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov dword [ebp - 8], edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x5d0c20], eax
je 0x4ea6e1
mov eax, 0x10dd
jmp 0x4ea7be
mov eax, dword [0x5d0c1c]
test eax, eax
jne 0x4ea7be
test ebx, ebx
jne 0x4ea6fa
push 6
pop eax
jmp 0x4ea7be
cmp dword [ebx], 0
jne 0x4ea712
push 6
pop eax
mov dword [0x5d0c1c], eax
mov dword [0x5d0c08], ebx
jmp 0x4ea7be
push esi
push edi
push 0x18
call fcn.0041286d
mov esi, eax
pop ecx
test esi, esi
jne 0x4ea727
push 8
pop edi
jmp 0x4ea7a3
mov ecx, dword [ebp - 8]
mov edi, dword [ebx]
call fcn.004e9d71
movzx ecx, byte [edi + 0x17]
mov edx, eax
mov eax, dword [edi + 0x18]
sub eax, ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x4ea797
cmp ecx, 0x17
ja 0x4ea797
cmp dword [edi + 0x1c], edx
jne 0x4ea797
and dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push 0x40
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4ea76d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4ea7a3
mov eax, dword [ebp - 8]
mov dword [esi + 0xc], eax
mov dword [esi + 4], 1
mov dword [esi + 8], ebx
mov dword [esi + 0x10], edi
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x5d0c14]
mov dword [esi], eax
xor eax, eax
mov dword [0x5d0c14], esi
jmp 0x4ea7bc
cmp dword [0x5d0c24], 0
push 9
pop edi
jne 0x4ea7a9
mov dword [0x5d0c1c], edi
test esi, esi
je 0x4ea7b4
push esi
call fcn.005363a4
pop ecx
mov dword [0x5d0c08], ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ea7ff
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5c8910]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor eax, eax
push 3
pop esi
inc eax
mov dword [ebp - 0x118], 0x104
mov dword [ebp - 0x114], eax
mov ebx, ecx
lea eax, [ebp - 0x11c]
xor ecx, ecx
push eax
push 0x20019
push ecx
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x10c], ecx
call edi
test eax, eax
jne 0x4ea9ad
push ebx
push str._sConnection
lea eax, [ebp - 0x108]
push 0x103
push eax
call fcn.004eae4a
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x11c]
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4ea9a5
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
pop eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push str.MediaSubType
push dword [ebp - 0x110]
call ebx
test eax, eax
jne 0x4ea99d
push 0x104
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x114], 1
push eax
mov dword [ebp - 0x118], 0x103
call fcn.00538910
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push str.PnpInstanceID
push dword [ebp - 0x110]
call ebx
test eax, eax
jne 0x4ea99d
mov eax, dword [ebp - 0x10c]
xor ebx, ebx
inc ebx
cmp eax, ebx
jne 0x4ea997
push esi
lea eax, [ebp - 0x108]
push 0x5ab848
push eax
call fcn.0053b290
add esp, 0xc
test eax, eax
jne 0x4ea969
xor esi, esi
jmp 0x4ea99d
mov eax, dword [ebp - 0x10c]
cmp eax, ebx
jne 0x4ea997
push esi
lea eax, [ebp - 0x108]
push 0x5ab848
push eax
call fcn.0053b290
add esp, 0xc
test eax, eax
je 0x4ea991
push 2
pop esi
jmp 0x4ea99d
mov eax, dword [ebp - 0x10c]
cmp eax, 2
cmove esi, ebx
push dword [ebp - 0x110]
call edi
push dword [ebp - 0x11c]
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret