joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43dd01
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x88
push ebx
push esi
push edi
mov esi, ecx
push 0x4ad684
mov dword [ebp + 0x60], esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov bl, byte [esi + 9]
xor edi, edi
cmp dword [ebp + 0x7c], edi
setl byte [ebp + 0x6b]
and bl, 0x11
cmp byte [ebp + 0x6b], 0
jne 0x43dd3a
test byte [ebp + 0x7c], 0x40
je 0x43dd3c
xor bl, bl
mov esi, dword [ebp + 0x74]
push str.RANDOM
push esi
mov dword [ebp + 0x74], esi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x43dd90
mov word [ebp - 0x1c], di
call fcn.00432a01
and edx, 0x7fffffff
push edx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004752ea
mov esi, dword [ebp + 0x78]
add esp, 0xc
push 3
mov ecx, esi
mov word [ebp + 0x22], di
call fcn.00435da9
mov esi, dword [esi]
mov ax, word [ebp - 0x1c]
mov word [esi], ax
lea eax, [esi + 2]
jmp 0x43dec3
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp byte [ebp + 0x6b], 0
mov edi, dword [ebp + 0x78]
movsx eax, bl
mov byte [ebp + 0x7f], 0
mov dword [ebp + 0x64], eax
jne 0x43ddbc
cmp word [esi], 0x26
je 0x43de6e
test bl, bl
jne 0x43de47
push 0x52
mov ecx, edi
call fcn.00435da9
mov esi, dword [edi]
and word [esi], 0
push 0
mov dword [ebp + 0x78], esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, dword [edi]
push 0x50
push eax
push dword [ebp + 0x74]
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
jle 0x43de26
cmp word [esi], 0
jne 0x43de1e
lea eax, [ebx + 0xc]
push eax
mov ecx, edi
call fcn.00435da9
mov esi, dword [edi]
and word [esi], 0
push 0
mov dword [ebp + 0x78], esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, dword [edi]
add ebx, 0xa
push ebx
push eax
push dword [ebp + 0x74]
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
jg 0x43dec0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xcb
jne 0x43debc
cmp byte [ebp + 0x7f], 0
jne 0x43deba
cmp byte [ebp + 0x6b], 0
mov byte [ebp + 0x7f], 1
jne 0x43deba
mov ecx, dword [ebp + 0x60]
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push dword [ebp + 0x74]
call fcn.0041083d
cmp eax, ebx
jne 0x43de7d
cmp dword [ebp + 0x64], ebx
jne 0x43de8b
cmp byte [ebp + 0x7f], bl
jne 0x43de8b
mov byte [ebp + 0x7f], 1
jmp 0x43ddbc
add esi, 2
mov dword [ebp + 0x74], esi
mov dword [ebp + 0x64], 1
jmp 0x43de47
mov eax, dword [eax]
push eax
mov dword [ebp + 0x74], eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ebx, eax
lea eax, [ebx + 2]
push eax
mov ecx, edi
call fcn.00435da9
dec ebx
mov esi, dword [edi]
mov dword [ebp + 0x78], esi
js 0x43dec6
lea eax, [ebx + 1]
mov ecx, dword [ebp + 0x74]
mov edx, dword [ebp + 0x78]
mov cx, word [ecx]
add dword [ebp + 0x78], 2
add dword [ebp + 0x74], 2
dec eax
mov word [edx], cx
jne 0x43dea1
jmp 0x43dec6
xor ebx, ebx
test ebx, ebx
jle 0x43dec6
lea eax, [esi + ebx*2]
mov dword [ebp + 0x78], eax
mov eax, dword [ebp + 0x78]
and word [eax], 0
mov eax, 0x4ad684
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc
Function at 0x43eec1
Capabilities:
Delete file
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e4
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 4], esi
mov dword [ebp - 4], esi
jg 0x43eee0
xor eax, eax
jmp 0x43f0a4
push 0x4ad684
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
call fcn.00434f2e
lea ecx, [ebp - 0xc]
call fcn.00402aec
push dword [edi + 4]
push dword [edi]
call fcn.00434fb6
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
je 0x43ef1f
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push edi
call dword [eax + 0xc]
cmp dword [ebp - 4], esi
jne 0x43ef24
mov eax, dword [edi]
push edi
call dword [eax + 8]
cmp dword [ebp - 4], esi
je 0x43ef3e
mov eax, dword [0x4ad270]
cmp eax, esi
mov edi, dword [ebp - 4]
je 0x43ef37
cmp dword [ebp - 0xc], esi
jne 0x43ef37
call eax
mov esi, edi
jmp 0x43f097
mov edi, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
push ebx
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x2e4]
push eax
push 0x494ec4
mov word [ebp - 0x2e4], si
call edi
cmp eax, esi
jg 0x43ef94
push ebx
lea eax, [ebp - 0x2e4]
push eax
push 0x494eb8
call edi
cmp eax, esi
jg 0x43ef94
mov eax, dword [0x4ad270]
cmp eax, esi
je 0x43f096
cmp dword [ebp - 0xc], esi
jne 0x43f096
call eax
jmp 0x43f096
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], 0x63
lea edi, [ebp + eax*2 - 0x2e4]
call fcn.00432a01
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
add ebx, eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
push str.pecmd_bmp._lu._lu.tmp
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push esi
push 0x80
push 1
push esi
push 5
push 0x40000000
lea eax, [ebp - 0x2e4]
push eax
lea ecx, [ebp - 8]
call fcn.004045f9
cmp dword [ebp - 8], esi
jne 0x43f009
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
dec dword [ebp - 0x10]
jns 0x43efa5
lea ecx, [ebp - 8]
call fcn.00402b27
jmp 0x43ef77
push esi
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
mov dword [ebp - 0x14], esi
push dword [eax]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea ecx, [ebp - 8]
call fcn.00402b27
push 0x10
push esi
push esi
push esi
lea eax, [ebp - 0x2e4]
push eax
push esi
call dword [sym.imp.USER32.dll_LoadImageW]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x43f06c
lea eax, [ebp - 0x2e4]
push eax
call fcn.0043ea8e
mov edi, eax
cmp edi, esi
pop ecx
je 0x43f06c
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push edi
call dword [eax + 0xc]
cmp dword [ebp - 4], esi
jne 0x43f06c
mov eax, dword [edi]
push edi
call dword [eax + 8]
lea eax, [ebp - 0x2e4]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov edi, dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00402b27
mov eax, dword [0x4ad270]
cmp eax, esi
je 0x43f094
cmp dword [ebp - 0xc], esi
jne 0x43f094
call eax
mov esi, edi
pop ebx
push 0x4ad684
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x43f2f4
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, 0x104
push edi
mov ecx, esi
call fcn.00435da9
mov eax, dword [esi]
and word [eax], 0
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
push eax
push dword [esp + 0x18]
call edi
mov ebx, eax
test ebx, ebx
jle 0x43f341
mov eax, dword [esi]
cmp word [eax], 0
jne 0x43f341
lea eax, [ebx + 2]
push eax
mov ecx, esi
call fcn.00435da9
inc ebx
push ebx
push dword [esi]
push dword [esp + 0x18]
call edi
pop edi
pop esi
pop ebx
ret

Function at 0x43f403
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push ebx
push esi
xor ebx, ebx
cmp dword [ebp + 8], ebx
push 3
pop eax
jge 0x43f4b7
cmp cx, 0x61
jb 0x43f42e
cmp cx, 0x7a
ja 0x43f42e
and ecx, 0xffdf
push 0x5c
pop eax
push ebx
push ebx
push 3
push ebx
push 3
mov word [ebp - 0x14], ax
mov word [ebp - 0x28], ax
mov word [ebp - 0x26], ax
mov word [ebp - 0x22], ax
push ebx
lea eax, [ebp - 0x28]
push eax
mov word [ebp - 0x18], cx
mov word [ebp - 0x16], 0x3a
mov word [ebp - 0x12], bx
mov word [ebp - 0x24], 0x2e
mov word [ebp - 0x20], cx
mov word [ebp - 0x1e], 0x3a
mov word [ebp - 0x1c], bx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43f4d1
push edi
push ebx
lea eax, [ebp - 4]
push eax
push 0xc
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
push 0x2d1080
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp edi, ebx
pop edi
je 0x43f4ad
mov eax, dword [ebp - 0x34]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp dword [ebp + 8], 0xffffffff
je 0x43f4d1
push ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call fcn.0043541b
add esp, 0xc
cmp eax, ebx
jne 0x43f4d9
xor eax, eax
inc eax
jmp 0x43f577
push ebx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
push ebx
push dword [ebp - 8]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Status]
mov eax, dword [ebp - 0x10]
shr eax, 0xe
and al, 1
mov byte [ebp + 0xb], al
mov dword [ebp - 4], 1
mov esi, 0x208
push ebx
push esi
cmp al, bl
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
mov word [ebp - 0x240], bx
je 0x43f53d
call dword [sym.imp.SETUPAPI.dll_CM_Request_Device_EjectW]
jmp 0x43f543
call dword [sym.imp.SETUPAPI.dll_CM_Query_And_Remove_SubTreeW]
cmp eax, ebx
jne 0x43f54c
cmp dword [ebp - 0xc], ebx
je 0x43f56a
push ebx
push 0xc8
mov ecx, 0x4acf10
call fcn.0040d358
inc dword [ebp - 4]
cmp dword [ebp - 4], 3
jg 0x43f56c
mov al, byte [ebp + 0xb]
jmp 0x43f51a
mov bl, 1
neg bl
sbb ebx, ebx
and ebx, 0xfffffffe
inc ebx
inc ebx
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x43ff81
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
jne 0x440015
cmp dword [ebp + 0xc], esi
jne 0x43ffa0
mov eax, 0x80070057
jmp 0x44003f
cmp dword [0x4ad288], esi
jle 0x44003d
push esi
push 0x8000080
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0xc]
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43ffda
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, esi
jne 0x44003f
jmp 0x440024
push esi
lea eax, [ebp + 8]
push eax
push dword [0x4ad288]
push dword [0x4ad668]
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [0x4ad668]
cmp eax, esi
mov dword [0x4ad288], esi
je 0x44000d
call fcn.00430918
mov dword [0x4ad668], esi
jmp 0x44003d
push dword [ebp + 8]
call fcn.004357ba
mov edi, eax
cmp edi, esi
pop ecx
jne 0x440029
xor eax, eax
inc eax
jmp 0x44003f
push dword [ebp + 0xc]
push edi
call fcn.0043fc50
pop ecx
pop ecx
push edi
mov esi, eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x44196a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.004403f9
mov esi, dword [eax]
push 0xffffffffffffffff
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.004403f9
push dword [eax]
push esi
push str._r_nRegSetDHCP__s__s__r_n
push 0x4acf10
call fcn.0040cde2
add esp, 0x10
lea ecx, [ebp - 4]
call fcn.0043092f
lea ecx, [ebp - 8]
call fcn.0043092f
mov esi, str.0.0.0.0
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
push 4
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xc]
push eax
push 4
movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0
push str.EnableDHCP
push dword [ebx]
xor edi, edi
inc edi
mov dword [ebp - 0xc], edi
call esi
push 9
lea eax, [ebp - 0x18]
push eax
push 7
push 0
push str.IPAddress
push dword [ebx]
call esi
push 9
lea eax, [ebp - 0x18]
push eax
push 7
push 0
push str.SubnetMask
push dword [ebx]
call esi
push edi
mov edi, 0x4958ae
push edi
push 7
push 0
push str.DefaultGateway
push dword [ebx]
call esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x441a45
cmp byte [eax], 0x2d
jne 0x441a26
mov dword [ebp + 0xc], edi
cmp byte [eax], 0
je 0x441a45
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
push dword [ebp + 0xc]
push 1
push 0
push str.NameServer
push dword [ebx]
call esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop esi
leave
ret
Function at 0x4478f0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push ecx
lea ecx, [ebp - 0x20]
call fcn.00437de1
lea eax, [ebp + 8]
push eax
call fcn.00430961
pop ecx
push 5
lea ecx, [ebp - 0xc]
call fcn.00435d80
push 0x14
lea ecx, [ebp - 4]
call fcn.00435d80
push 2
lea eax, [ebp + 8]
push eax
xor edi, edi
push 0x49bdcc
mov dword [ebp - 8], edi
call fcn.00437ad0
add esp, 0xc
xor ebx, ebx
inc ebx
push ebx
movzx eax, al
push 0x2c
pop esi
mov dword [ebp - 0x10], eax
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0044212f
push edi
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.004386e6
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
jne 0x447988
add dword [ebp + 8], 2
push ebx
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0044212f
push edi
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.004386e6
add esp, 0xc
mov eax, dword [ebp + 8]
cmp word [eax], si
jne 0x4479b0
add dword [ebp + 8], 2
push esi
lea eax, [ebp - 8]
push eax
push ebx
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0044212f
push eax
call fcn.00438933
add esp, 0xc
mov eax, dword [ebp - 0xc]
cmp word [eax], di
jne 0x4479c2
mov ebx, 0x80070057
jmp 0x447ac0
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 4]
jne 0x4479d4
cmp dword [ebp - 0x10], edi
jne 0x4479d4
cmp word [eax], di
je 0x4479b8
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov esi, eax
lea eax, [esi + 0x214]
push eax
lea ecx, [ebp - 4]
call fcn.00435da9
mov eax, dword [ebp - 4]
push eax
lea esi, [eax + esi*2 + 8]
mov dword [ebp - 0x14], edi
call fcn.0040eec0
push dword [ebp - 0xc]
mov edi, eax
call fcn.0040eec0
pop ecx
pop ecx
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
mov dword [ebp + 8], eax
jne 0x447a22
cmp dword [ebp - 8], ecx
jne 0x447a22
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateHardLinkW]
jmp 0x447a64
cmp dword [ebp - 8], 2
je 0x447a6c
cmp dword [ebp - 0x10], ecx
jne 0x447a6c
push edi
call fcn.0047f62b
push 0
mov esi, eax
push 0x4ad22c
neg esi
sbb esi, esi
push 0x49bdbc
push str.CreateSymbolicLinkW
neg esi
call fcn.00431911
mov eax, dword [0x4ad22c]
add esp, 0x14
test eax, eax
je 0x447ac0
push esi
push edi
push dword [ebp + 8]
call eax
test eax, eax
je 0x447ab8
xor ebx, ebx
jmp 0x447ac0
cmp word [edi], cx
jne 0x447a7a
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
jmp 0x447ab0
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 8]
push eax
push 0x208
push edi
call fcn.0043649f
push esi
push dword [ebp + 8]
mov word [esi], 0x5c
mov word [esi + 2], 0x3f
mov word [esi + 4], 0x3f
mov word [esi + 6], 0x5c
call fcn.0043428a
add esp, 0x18
test eax, eax
je 0x447ab8
xor eax, eax
jmp 0x447abe
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
lea ecx, [ebp - 4]
call fcn.0043092f
lea ecx, [ebp - 0xc]
call fcn.0043092f
lea ecx, [ebp - 0x20]
call fcn.0043092f
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x447b9f
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi]
and word [eax], 0
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x447be2
push esi
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x447bdb
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push eax
mov ecx, edi
call fcn.0044042b
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, edi
pop edi
ret
Function at 0x45990f
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
cmp ebx, esi
jne 0x459a38
mov eax, dword [ebp - 0x10]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00435d80
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
jle 0x459a30
push edi
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
push esi
push esi
push esi
shl eax, 2
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 0xc]
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov word [edi], si
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
cmp ebx, esi
jne 0x459a20
cmp word [edi], si
je 0x459a20
mov eax, dword [ebp + 0x10]
push dword [eax]
lea ecx, [ebp - 4]
call fcn.004403c3
push 0x494cb0
lea ecx, [ebp - 4]
call fcn.00435dd0
push edi
lea ecx, [ebp - 4]
call fcn.00435dd0
push esi
push dword [ebp + 0xc]
push esi
push esi
push 4
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
lea eax, [ebp - 8]
push eax
movzx eax, word [0x4acb6c]
or eax, 0xf003f
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x459a18
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.0045990f
add esp, 0xc
cmp dword [ebp - 8], esi
mov ebx, eax
je 0x459a18
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 4]
call fcn.0043092f
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x459966
pop edi
lea ecx, [ebp - 0x18]
call fcn.0043092f
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4617fa
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e8
push ebx
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov esi, eax
mov eax, 0xb4
cmp esi, eax
jle 0x46181c
mov esi, eax
and dword [ebp - 0x2e8], 0
xor eax, eax
mov ecx, 0xb9
lea edi, [ebp - 0x2e4]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x2d0], eax
lea eax, [esi + esi]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x248]
push eax
mov byte [ebp - 0x274], 0x40
mov dword [ebp - 0x24c], edi
call fcn.004102e0
and word [ebp + esi*2 - 0x248], 0
add esp, 0xc
mov ebx, 0x4ad69c
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 0x4acb70
push 0x10000
lea eax, [ebp - 0x2e8]
push eax
push 0x460f02
push 0x20000
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
mov dword [ebp + 0x18], eax
je 0x4618ed
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
mov dword [ebp + 0x1c], 0x270f
cmp dword [ebp - 0x24c], edi
jne 0x4618e4
push 0
call esi
dec dword [ebp + 0x1c]
jns 0x4618c5
jmp 0x4618dc
push 1
call esi
cmp dword [ebp - 0x24c], edi
je 0x4618d8
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x473f6a
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
push 0xf0000000
push 1
xor edi, edi
push edi
push edi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x473f95
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x474081
push esi
lea eax, [ebp - 8]
push eax
push edi
push edi
push dword [ebp + 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x473fc5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
jmp 0x474080
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x473fec
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x473fb4
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push ebx
push 4
pop eax
push edi
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp - 8]
mov dword [ebp - 4], eax
call esi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.00435c56
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ebx
push 2
push dword [ebp - 8]
call esi
mov esi, dword [ebp + 0x18]
push 0x4958ae
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov dword [ebp - 0x10], esi
xor esi, esi
cmp dword [ebp - 4], edi
jbe 0x474062
movzx eax, byte [esi + ebx]
push eax
push str._02X
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_wsprintfA]
add dword [ebp - 0x10], 2
add esp, 0xc
inc esi
cmp esi, dword [ebp - 4]
jb 0x474042
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea ecx, [ebp - 0x18]
call fcn.0043092f
xor eax, eax
pop ebx
pop esi
pop edi
leave
ret

Function at 0x4745dc
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, dword [esp + 0x10]
mov esi, eax
lea eax, [esi + 2]
push eax
mov ecx, edi
call fcn.00435da9
mov eax, dword [edi]
and word [eax], 0
inc esi
push esi
push dword [edi]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextW]
pop edi
pop esi
ret
Function at 0x4753f8
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x475455
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x47544c
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
pop ebx
leave
ret