joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485060
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x54e038]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esi + 0x158]
push ebp
mov ebp, dword [esi]
push edi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
or edi, 0xffffffff
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4850b4
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebx
push esi
call fcn.00477b10
add esp, 8
cmp edi, 0xffffffff
jne 0x4850e8
push str.Error_accept__ing_server_connect
push ebp
call fcn.00475040
add esp, 8
pop edi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004a9181
add esp, 0x18
ret
push str.Connection_accepted_from_server_n
push ebp
call fcn.00474fb0
push 1
push edi
mov dword [esi + 0x158], edi
call fcn.00493e00
mov dword [esi + 0x168], 1
mov eax, dword [ebp + 0x1b0]
add esp, 0x10
test eax, eax
je 0x485156
mov ecx, dword [ebp + 0x1b4]
push 1
push edi
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x485156
push edi
push esi
call fcn.00477b10
add esp, 8
pop edi
pop ebp
mov dword [esi + 0x158], 0xffffffff
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004a9181
add esp, 0x18
ret
mov ecx, dword [esp + 0x20]
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004a9181
add esp, 0x18
ret
Function at 0x48f500
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x48f50f
jmp dword [ecx*4 + 0x48f564]
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

Function at 0x48f6f0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x54e038]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004b35b4
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x48f755
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x48f755
lea edx, [esp]
push edx
call dword [0x5286ec]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004a9181
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004a9181
add esp, 0x108
ret
jmp 0x48f6f0

Function at 0x48f770
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x54e038]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004b35b4
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x48f755
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x48f755
lea edx, [esp]
push edx
call dword [0x5286ec]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004a9181
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004a9181
add esp, 0x108
ret
jmp 0x48f6f0
Function at 0x493e30
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1ec]
test esi, esi
jne 0x493e49
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.00474b90
push edx
push eax
call fcn.00474bc0
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x1e0], 0
je 0x493e96
mov eax, dword [ebx + 0x148]
mov ecx, dword [ebx + 0x144]
push eax
push ecx
call fcn.00474b90
push edx
push eax
call fcn.00474bc0
mov ecx, dword [edi + 0x1e0]
sub ecx, eax
add esp, 0x10
cmp esi, ecx
mov eax, ecx
jge 0x493e98
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x4961d0
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x496202
push 0x2e
push esi
call fcn.004b2150
add esp, 8
test eax, eax
je 0x496200
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret

Function at 0x496370
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x54e038]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
mov ebp, dword [esp + 0x30]
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x49641a
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea esi, [esp + 0x20]
mov eax, ebp
mov byte [esp + 0x14], 8
mov byte [esp + 0x15], 2
mov dword [esp + 0x18], 0x6601
mov dword [esp + 0x1c], 8
call fcn.004962e0
mov ecx, esi
push 8
push ecx
call fcn.00498cb0
mov ecx, dword [esp + 0x10]
add esp, 8
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop esi
test eax, eax
jne 0x49642c
mov edx, dword [esp + 4]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004a9181
add esp, 0x24
ret
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0xc]
push ecx
push edi
push 0
push 0
mov dword [edi + 4], edx
mov edx, dword [esp + 0x20]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [esp + 4]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x24]
pop ebp
xor ecx, esp
mov eax, 1
call fcn.004a9181
add esp, 0x24
ret
Function at 0x4965b0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4965c0
sub eax, edx
mov esi, eax
lea ebp, [esi + esi]
push ebp
call dword [0x5286e0]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4965e9
pop edi
pop esi
pop ebp
lea eax, [ebx + 0x1b]
pop ebx
add esp, 0xc
ret
mov ecx, ebx
call fcn.00498470
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [esp + 0x28]
test eax, eax
je 0x49666f
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x8002
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x496662
mov eax, dword [esp + 0x10]
push 0
push ebp
push ebx
push eax
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x1c]
push ecx
push esi
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 0x14]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov dword [esi + 0x10], eax
push ebx
mov byte [esi + 0x14], al
call dword [0x5286e4]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret

Function at 0x496960
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0xf0000000
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x496991
mov ecx, dword [esi]
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
ret

Function at 0x4969a0
Capabilities:
Hash data via wincrypt

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
mov eax, dword [edx + 4]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
ret
Function at 0x498b40
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x5286e0]
mov edi, eax
add esp, 4
test edi, edi
jne 0x498b65
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x498bac
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x498bb0
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
jbe 0x498c0e
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
sub ebp, 1
jne 0x498bd3
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x498c51
lea esp, [esp]
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x4ed5df
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x4ed5e0
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x498c20
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x4997a0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x40
push edi
xor edi, edi
cmp dword [0x550aac], 0x40
jae 0x4998ba
mov ecx, dword [esp + 0x48]
push esi
lea esi, [ecx + eax]
cmp esi, 0x80000000
jae 0x4997c8
lea esi, [edi + 1]
jmp 0x4997ce
sub esi, 0x7fff0000
mov edx, dword [esp + 0x54]
push ebp
lea ebp, [edx + eax]
cmp ebp, 0x80000000
jae 0x4997e6
add ebp, 0x7ff80000
jmp 0x4997eb
mov ebp, 0xfff80000
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, ebp
jae 0x4998b8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
jmp 0x499830
push 0x1c
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x499889
cmp dword [esp + 0x20], 0x10000
jne 0x49987a
mov eax, dword [esp + 0x1c]
cmp eax, 0x6c
jb 0x49987e
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jb 0x49987e
lea eax, [ecx + esi - 1]
xor edx, edx
div ecx
push 0x20
push 0x3000
push 0x6c
imul eax, ecx
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x49988d
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
lea esi, [edx + eax]
cmp esi, ebp
jb 0x499830
test edi, edi
je 0x4998b7
xor eax, eax
nop
cmp dword [eax*4 + 0x5509a8], 0
je 0x4998aa
inc eax
cmp eax, 0x40
jb 0x499890
pop ebx
pop ebp
pop esi
mov eax, edi
pop edi
add esp, 0x40
ret
inc dword [0x550aac]
mov dword [eax*4 + 0x5509a8], edi
pop ebx
pop ebp
pop esi
mov eax, edi
pop edi
add esp, 0x40
ret
Function at 0x499bc0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 8
push ebx
push ebp
xor ebp, ebp
mov dword [esp + 0xc], ebp
cmp dword [0x550aa8], ebp
jne 0x499bfb
push 0x550990
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x100
push ebp
push 0x5509a8
call fcn.004a99e0
add esp, 0xc
mov dword [0x550aa8], 1
push 0x550990
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esp + 0x14]
xor eax, eax
lea esp, [esp]
mov ecx, dword [eax*4 + 0x5509a8]
cmp ecx, ebp
je 0x499c22
add ecx, 0x2c
cmp ecx, dword [ebx]
je 0x499c3d
inc eax
cmp eax, 0x40
jb 0x499c10
push 0x550990
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
add esp, 8
ret
push esi
mov esi, dword [eax*4 + 0x5509a8]
cmp esi, ebp
je 0x499ce4
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov edi, eax
lea eax, [esp + 0x10]
push eax
push 0x40
push ecx
push edx
mov dword [esp + 0x20], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push edi
call ebp
test eax, eax
je 0x499ce3
mov ecx, dword [esi]
xor eax, eax
cmp dword [esi + 4], eax
jbe 0x499c8d
mov edi, edi
mov dl, byte [esi + eax + 0x4c]
mov byte [eax + ecx], dl
inc eax
cmp eax, dword [esi + 4]
jb 0x499c80
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 4]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esi]
push eax
push ecx
push edx
push edi
call ebp
mov eax, dword [esi]
mov ecx, 1
mov dword [ebx], eax
mov dword [esp + 0x14], ecx
xor eax, eax
mov edi, edi
cmp dword [eax*4 + 0x5509a8], esi
je 0x499cd2
add eax, ecx
cmp eax, 0x40
jb 0x499cc0
jmp 0x499ce3
sub dword [0x550aac], ecx
mov dword [eax*4 + 0x5509a8], 0
pop edi
pop esi
push 0x550990
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
add esp, 8
ret

Function at 0x4a9181
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x54e038]
jne 0x4a918b
repz ret
jmp fcn.004b543c
Function at 0x4c3bc8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004b4d83
and dword [ebp - 4], 0
cmp dword [0x551738], 0
mov ebx, eax
jne 0x4c3c79
push 0x4f60e4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4c3d2a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4f60d8
push edi
call esi
test eax, eax
je 0x4c3d2a
push eax
call fcn.004b4d11
mov dword [esp], 0x4f60c8
push edi
mov dword [0x551738], eax
call esi
push eax
call fcn.004b4d11
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x55173c], eax
call esi
push eax
call fcn.004b4d11
mov dword [esp], str.GetUserObjectInformationW
push edi
mov dword [0x551740], eax
call esi
push eax
call fcn.004b4d11
pop ecx
mov dword [0x551748], eax
test eax, eax
je 0x4c3c79
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004b4d11
pop ecx
mov dword [0x551744], eax
mov eax, dword [0x551744]
cmp eax, ebx
je 0x4c3cd1
cmp dword [0x551748], ebx
je 0x4c3cd1
push eax
call fcn.004b4d8c
push dword [0x551748]
mov esi, eax
call fcn.004b4d8c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4c3cd1
test edi, edi
je 0x4c3cd1
call esi
test eax, eax
je 0x4c3cc8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4c3cc8
test byte [ebp - 0xc], 1
jne 0x4c3cd1
or dword [ebp + 0x10], 0x200000
jmp 0x4c3d0a
mov eax, dword [0x55173c]
cmp eax, ebx
je 0x4c3d0a
push eax
call fcn.004b4d8c
pop ecx
test eax, eax
je 0x4c3d0a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4c3d0a
mov eax, dword [0x551740]
cmp eax, ebx
je 0x4c3d0a
push eax
call fcn.004b4d8c
pop ecx
test eax, eax
je 0x4c3d0a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x551738]
call fcn.004b4d8c
pop ecx
test eax, eax
je 0x4c3d2a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4c3d2c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c4227
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004b4d83
and dword [ebp - 4], 0
cmp dword [0x551788], 0
mov ebx, eax
jne 0x4c42d8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4c4389
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4c4389
push eax
call fcn.004b4d11
mov dword [esp], 0x4f60c8
push edi
mov dword [0x551788], eax
call esi
push eax
call fcn.004b4d11
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x55178c], eax
call esi
push eax
call fcn.004b4d11
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x551790], eax
call esi
push eax
call fcn.004b4d11
pop ecx
mov dword [0x551798], eax
test eax, eax
je 0x4c42d8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004b4d11
pop ecx
mov dword [0x551794], eax
mov eax, dword [0x551794]
cmp eax, ebx
je 0x4c4330
cmp dword [0x551798], ebx
je 0x4c4330
push eax
call fcn.004b4d8c
push dword [0x551798]
mov esi, eax
call fcn.004b4d8c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4c4330
test edi, edi
je 0x4c4330
call esi
test eax, eax
je 0x4c4327
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4c4327
test byte [ebp - 0xc], 1
jne 0x4c4330
or dword [ebp + 0x10], 0x200000
jmp 0x4c4369
mov eax, dword [0x55178c]
cmp eax, ebx
je 0x4c4369
push eax
call fcn.004b4d8c
pop ecx
test eax, eax
je 0x4c4369
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4c4369
mov eax, dword [0x551790]
cmp eax, ebx
je 0x4c4369
push eax
call fcn.004b4d8c
pop ecx
test eax, eax
je 0x4c4369
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x551788]
call fcn.004b4d8c
pop ecx
test eax, eax
je 0x4c4389
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4c438b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4cd810
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0x68], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 4]
mov dword [eax], 0x67452301
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x10325476
mov esp, ebp
pop ebp
ret

Function at 0x4cdc50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0xc]
test eax, eax
jne 0x4cdc93
mov ecx, dword [ebp - 4]
mov byte [ecx + 0xc], 1
mov edx, dword [ebp - 4]
add edx, 8
push edx
push 0
mov eax, dword [ebp - 4]
push eax
push 0x4cdba0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x4ce000
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c8
mov eax, dword [0x54e038]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x4ce01f
cmp dword [ebp + 0xc], 0
jne 0x4ce026
xor eax, eax
jmp 0x4ce143
lea eax, [ebp - 0x400]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4ce133
mov dword [ebp - 8], 0
jmp 0x4ce052
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
movzx eax, word [ebp + edx*2 - 0x400]
test eax, eax
je 0x4ce133
push 0x4f76bc
mov ecx, dword [ebp - 8]
lea edx, [ebp + ecx*2 - 0x400]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4ce099
push 0x4f76c4
mov eax, dword [ebp - 8]
lea ecx, [ebp + eax*2 - 0x400]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4ce09b
jmp 0x4ce049
mov edx, dword [ebp - 8]
mov ax, word [ebp + edx*2 - 0x400]
mov word [ebp - 0x14], ax
mov ecx, dword [ebp - 8]
mov dx, word [ebp + ecx*2 - 0x3fe]
mov word [ebp - 0x12], dx
xor eax, eax
mov word [ebp - 0x10], ax
push 0x64
lea ecx, [ebp - 0x4c8]
push ecx
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x4ce0da
xor eax, eax
jmp 0x4ce143
lea eax, [ebp - 0x4c8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x4c8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004aeb62
add esp, 0xc
test eax, eax
jne 0x4ce12e
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax*2]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, 1
jmp 0x4ce143
jmp 0x4ce049
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004a9181
mov esp, ebp
pop ebp
ret

Function at 0x4ce240
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4ce267
xor al, al
jmp 0x4ce28d
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 4], 0
sete al
mov esp, ebp
pop ebp
ret
Function at 0x4ce310
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4ce36c
mov ecx, dword [ebp + 0x14]
call fcn.004011a0
push eax
mov ecx, dword [ebp + 0x14]
call fcn.00401180
push eax
push 1
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x4ce3d0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x54e038]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x424], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004a99e0
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x4ce486
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.004a99e0
add esp, 0xc
push 0x208
lea edx, [ebp - 0x420]
push edx
mov eax, dword [ebp - 0x214]
push eax
call sub.PSAPI.DLL_GetProcessImageFileNameW
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x420]
push edx
call fcn.004ce000
add esp, 8
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004012d0
mov edx, dword [ebp - 0x424]
or edx, 1
mov dword [ebp - 0x424], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a9181
mov esp, ebp
pop ebp
ret