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

Disassembly:
push 0x18
push 0x77cb60c0
call fcn.77cd5e30
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
cmp dword [ebp + 8], 0x80000004
je 0x77ce6085
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call fcn.77cd5e99
mov ebx, eax
cmp ebx, esi
je 0x77ce608d
mov eax, dword [ebp + 0xc]
cmp eax, esi
jne 0x77cb611a
mov dword [ebp - 0x1c], ebx
mov edi, dword [ebp + 0x14]
cmp edi, esi
je 0x77cd7716
mov eax, dword [edi]
mov dword [ebp + 0xc], eax
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push eax
push esi
push esi
push dword [ebp - 0x1c]
call sym.ADVAPI32.dll_RegQueryValueExA
mov dword [ebp + 8], eax
cmp dword [ebp - 0x1c], ebx
jne 0x77cb6141
cmp dword [ebp + 8], esi
jne 0x77cb6087
cmp dword [ebp - 0x20], 1
jne 0x77ce60d5
cmp dword [ebp + 8], 2
je 0x77cd76f9
cmp dword [ebp + 8], esi
jne 0x77cb60a0
cmp dword [ebp - 0x20], 2
je 0x77ce60f3
cmp dword [ebp - 0x24], esi
jne 0x77ce6178
cmp dword [ebp - 0x28], esi
jne 0x77cb6159
mov eax, dword [ebp + 8]
call fcn.77cd5e80
ret 0x10
cmp byte [eax], 0
je 0x77cb6047
lea ecx, [ebp - 0x1c]
push ecx
push 1
push esi
push eax
push ebx
call sym.ADVAPI32.dll_RegOpenKeyExA
mov dword [ebp + 8], eax
cmp eax, esi
je 0x77cb604a
jmp 0x77cb60a0
test byte [ebp - 0x1c], 1
jne 0x77ce6099
lea eax, [ebp - 0x1c]
push eax
call fcn.77cd6449
jmp 0x77cb6078
mov esi, 0x77d26580
push esi
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
push dword [ebp - 0x28]
call fcn.77cbf2f9
push esi
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
jmp 0x77cb60b2
cmp edi, esi
je 0x77cd7703
mov dword [edi], 1
mov eax, dword [ebp + 0x10]
cmp eax, esi
jne 0x77ce60eb
mov dword [ebp + 8], esi
jmp 0x77cb6091
mov dword [ebp + 0xc], esi
jmp 0x77cb605a
push 6
pop eax
jmp 0x77cb60b5
mov dword [ebp + 8], 6
jmp 0x77cb60a0
push 0xfffffffffffffffe
pop ebx
and dword [ebp - 0x1c], ebx
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1c]
push eax
call fcn.77d12668
mov dword [ebp - 4], ebx
jmp 0x77cb6078
cmp dword [ebp - 0x20], 2
je 0x77cb6087
mov dword [ebp + 8], 0xd
jmp 0x77cb6087
mov byte [eax], 0
jmp 0x77cd770e
cmp edi, esi
je 0x77ce616c
cmp dword [ebp + 0x10], esi
je 0x77ce616c
mov ebx, dword [edi]
cmp dword [ebp + 0xc], ebx
jle 0x77ce6106
mov ebx, dword [ebp + 0xc]
mov eax, dword fs:[0x18]
push ebx
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
jne 0x77ce612e
mov dword [ebp + 8], 8
xor esi, esi
jmp 0x77cb60a0
push dword [edi]
push dword [ebp + 0x10]
push esi
call sub.ntdll.dll_memcpy
add esp, 0xc
push ebx
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp eax, dword [ebp + 0xc]
jle 0x77ce6153
mov dword [ebp + 8], 0xea
mov dword [edi], eax
push esi
push 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x77ce6127
mov dword [ebp + 8], 0xd
jmp 0x77cb60a0
lea eax, [ebp - 0x24]
push eax
call fcn.77cd6449
jmp 0x77cb60a9
Function at 0x77cb6715
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.ntdll.dll_NtEnumerateKey]
push esi
mov esi, dword [ebp + 0xc]
push edi
lea edi, [esi + 4]
push edi
push 0x120
lea eax, [esi + 0x10]
push eax
push 1
push dword [esi + 8]
mov dword [ebp + 0xc], eax
push dword [ebp + 8]
call ebx
cmp eax, 0x80000005
je 0x77cea550
test eax, eax
jl 0x77cb6756
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword fs:[0x18]
push dword [edi]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x77cea577
mov eax, 0xc0000017
jmp 0x77cb6756
push edi
push dword [edi]
push eax
push 1
push dword [esi + 8]
push dword [ebp + 8]
call ebx
jmp 0x77cb674b
Function at 0x77cb834c
Capabilities:
Get file attributes

Disassembly:
movzx eax, ax
lea ecx, [eax + 2]
cmp ecx, ebx
ja 0x77ce10c1
push eax
push edx
add edx, 2
push edx
call sub.ntdll.dll_memmove
add esp, 0xc
add word [ebp - 0x10], 2
jmp 0x77cb8448
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
mov word [ebp - 0x10], bx
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov esi, 0x210
push esi
push ebx
push dword [eax + 0x18]
mov dword [ebp - 4], ebx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 8], edi
je 0x77ce10b7
push 9
push esi
push edi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov ebx, eax
test ebx, ebx
jl 0x77cb84ab
mov ecx, dword [ebp + 0xc]
test cx, cx
lea edx, [edi + 4]
mov dword [ebp - 0xc], edx
mov ax, word [edi]
mov ebx, 0x208
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], bx
je 0x77cb5c30
cmp cx, 0x41
jb 0x77ce10cb
cmp cx, 0x5a
ja 0x77ce10cb
mov ecx, dword [ebp + 0x10]
mov eax, ecx
lea edi, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x77cb83e7
sub eax, edi
sar eax, 1
movzx edi, ax
movzx esi, di
add esi, esi
cmp word [esi + ecx - 2], 0x5c
jne 0x77cb8415
add edi, 0xffff
movzx esi, di
add esi, esi
and word [esi + ecx], 0
movzx eax, word [ebp - 0x10]
lea ecx, [esi + eax]
cmp ecx, ebx
ja 0x77ce10da
push eax
push edx
lea eax, [esi + edx]
push eax
call sub.ntdll.dll_memmove
push esi
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call sub.ntdll.dll_memmove
lea eax, [edi + edi]
mov edi, dword [ebp - 8]
add esp, 0x18
add word [ebp - 0x10], ax
movzx eax, word [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
shr eax, 1
and word [ecx + eax*2], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
mov dword [ebp - 4], esi
je 0x77ce10e7
and word [esi], 0
push 0x104
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x77cb849a
push esi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push dword [ebp + 0x14]
lea eax, [ebp - 0x10]
push eax
push 1
call dword [sym.imp.ntdll.dll_RtlDuplicateUnicodeString]
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov esi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
push edi
push 0
push dword [eax + 0x18]
call esi
cmp dword [ebp - 4], 0
je 0x77cb84db
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10
mov eax, 0xc0000017
jmp 0x77cb84dd
mov ebx, 0x80000005
jmp 0x77cb84ab
add ecx, 0xffffff9f
cmp cx, 0x19
jbe 0x77cb83df
jmp 0x77ce10f1
mov edi, dword [ebp - 8]
mov ebx, 0x80000005
jmp 0x77cb84ab
mov ebx, 0xc0000017
jmp 0x77cb84ab
mov ebx, 0xc000000d
jmp 0x77cb84ab
Function at 0x77cb85af
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x77cb5a44
push 3
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jge 0x77cdeddd
and dword [0x77d2a3a0], 0
jmp 0x77cb85da
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x77d260c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x77d2a3a0]
push edi
xor edi, edi
inc edi
cmp eax, edi
je 0x77cdedd6
test eax, eax
jne 0x77cb5a1c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.77cd6011
leave
ret
mov eax, edi
jmp 0x77cb85dc
push esi
lea eax, [ebp - 0x20]
push eax
push 0x14
lea eax, [ebp - 0x18]
push eax
push 2
push 0x77cdee34
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
push dword [ebp - 0x1c]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
pop esi
jl 0x77cb5a35
cmp dword [ebp - 0x14], 4
jne 0x77cb5a35
cmp dword [ebp - 0x10], 4
jne 0x77cb5a35
cmp dword [ebp - 0xc], 0
jbe 0x77cb5a35
mov dword [0x77d2a3a0], edi
jmp 0x77cdedd6

Function at 0x77cb8c90
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x77d260c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
lea ecx, [ebp - 0x210]
push ecx
xor edi, edi
push 0x20019
push edi
push 0x77cb8d60
push eax
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], edi
mov dword [esi], edi
call sym.ADVAPI32.dll_RegOpenKeyExW
cmp eax, 2
je 0x77cb8d46
cmp eax, 0x3fa
je 0x77cb8d46
cmp eax, 0x490
je 0x77cb8d46
cmp eax, 3
je 0x77cb8d46
cmp eax, edi
jne 0x77ce00f6
lea eax, [ebp - 0x214]
push eax
push 0x208
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x210]
call dword [sym.imp.ntdll.dll_NtQueryKey]
push dword [ebp - 0x210]
mov ebx, eax
call sym.ADVAPI32.dll_RegCloseKey
cmp ebx, edi
jl 0x77ce010e
lea eax, [ebp - 0x20c]
push eax
push 0x77d2a348
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 0xffffffff
je 0x77ce0115
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cd6011
leave
ret 8
call dword [sym.imp.ntdll.dll_RtlGetLastNtStatus]
cmp eax, edi
jl 0x77cb8d48
mov eax, 0xc0000001
jmp 0x77cb8d48
mov eax, ebx
jmp 0x77cb8d48
mov dword [esi], 1
jmp 0x77cb8d46
Function at 0x77cb91ff
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x77d260c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 0xc]
or ebx, 0xffffffff
cmp byte [0x77d260a8], 0
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x218], eax
je 0x77ce0ee1
push 0x77d26480
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov eax, dword [0x77d2a6ec]
test eax, eax
jne 0x77ce0eeb
cmp dword [ebp + 8], 1
jne 0x77ce0ef4
lea ecx, [ebp - 0x214]
push ecx
push 0
push 0x20019
push 0x77cb6eb4
push eax
push dword [ebp + 8]
call fcn.77cb6edb
test eax, eax
jl 0x77cb932a
push esi
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x21c]
push eax
push 0x20c
lea eax, [ebp - 0x210]
push eax
push 1
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
test esi, esi
jl 0x77cb92d7
cmp dword [ebp - 0x20c], 4
jne 0x77cb9323
cmp dword [ebp - 0x204], 4
jne 0x77cb9323
mov eax, dword [ebp - 0x208]
mov ebx, dword [ebp + eax - 0x210]
push dword [ebp - 0x214]
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
jl 0x77cb932a
test edi, edi
je 0x77cb932e
cmp dword [ebp + 0x10], 4
jb 0x77cb932e
mov dword [edi], ebx
xor esi, esi
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x77cb9305
mov dword [eax], 4
push 0x77d26480
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cd6011
leave
ret 0x14
mov esi, 0xc0000225
jmp 0x77cb92d7
xor ebx, ebx
jmp 0x77cb92e7
mov esi, 0xc0000023
jmp 0x77cb92f5
mov esi, 0xc0000001
jmp 0x77cb9310
cmp dword [ebp + 8], 3
jmp 0x77cb9252
mov esi, 0xc0000030
jmp 0x77cb9305
Function at 0x77cb9cc5
Capabilities:
Check if file exists

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x77cb9d12
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], edi
call fcn.77c917e3
cmp eax, edi
jne 0x77cb9d12
mov eax, dword [ebp - 4]
push esi
push edi
mov dword [ebp - 0x10], eax
push 1
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
jne 0x77cb9cef
jmp 0x77ce653e
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenEventW]
push esi
push edi
mov esi, 0x77cb9d18
push esi
push 0
push 0x100000
call ebx
mov edi, eax
test edi, edi
je 0x77c9177c
push 0x2bf20
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0x102
je 0x77ce656a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 8]
cmp eax, 0xb7
jne 0x77cb9d12
push esi
push edi
push 0x100000
call ebx
mov edi, eax
test edi, edi
jne 0x77cb9cef
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x77cb9d12
mov eax, 0x5b4
jmp 0x77cb9d12
Function at 0x77cbb2ee
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x77cd92ef
movzx eax, word [edi]
cmp ax, 2
jb 0x77cd92ef
test al, 1
jne 0x77cd92ef
mov esi, dword [ebp + 8]
add eax, 0xfffffffe
mov word [edi], ax
mov eax, dword [0x77d2b2b0]
test eax, eax
jne 0x77ce9f26
mov ebx, esi
and ebx, 2
jne 0x77cd92bd
cmp dword [ebp - 8], 0
jne 0x77ce9f35
push edi
push esi
mov esi, dword [sym.imp.ntdll.dll_NtDeleteValueKey]
call esi
test ebx, ebx
mov dword [ebp + 0xc], eax
jne 0x77cd92df
mov eax, dword [ebp - 8]
test eax, eax
jne 0x77ce9f69
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
pop edi
pop esi
pop ebx
leave
ret 8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x2000000
push esi
push 0
call fcn.77cd7150
test eax, eax
jge 0x77cbb341
jmp 0x77ce9f2f
cmp eax, 0xc0000034
jne 0x77cbb360
jmp 0x77ce9f47
push 0x57
pop eax
jmp 0x77cbb374
push edi
push esi
call eax
jmp 0x77cbb336
push eax
jmp 0x77cbb36e
cmp dword [ebp - 4], 0
je 0x77cbb34b
mov esi, dword [ebp - 8]
jmp 0x77cbb34b
cmp dword [ebp - 8], 0
je 0x77cbb36b
cmp dword [ebp - 4], 0
je 0x77cbb360
push edi
push dword [ebp - 4]
call esi
mov dword [ebp + 0xc], eax
jmp 0x77cbb360
cmp dword [ebp - 4], 0
je 0x77cbb36b
cmp eax, dword [ebp + 8]
je 0x77ce9f7b
push eax
jmp 0x77ce9f7e
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x77cbb36b

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

Disassembly:
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.77cb3fb2
test eax, eax
je 0x77cbc35d
cmp eax, 0xea
je 0x77cbc35d
jmp 0x77cbc324
push 2
pop edi
jmp 0x77cbc35b
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
push 1
call esi
mov edi, dword [ebp + 8]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
push ebx
mov dword [ebp + 8], ecx
call esi
cmp dword [ebp + 8], 0
je 0x77ce5a00
call fcn.77cbc369
cmp al, 1
mov byte [ebp + 8], al
je 0x77cb3f78
push 0x22
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x77cb3fa5
push edi
push dword [ebp + 8]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.77cbc3e1
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
push 2
pop eax
jmp 0x77cbc35d
Function at 0x77cbc369
Capabilities:
Identify system language via api

Disassembly:
push ebx
push edi
call sym.ADVAPI32.dll_RegDeleteKeyW
test eax, eax
jne 0x77cbc3bc
push esi
lea eax, [ebp - 4]
push eax
push esi
push 2
push 1
push esi
push esi
push ebx
push edi
call sym.ADVAPI32.dll_RegCreateKeyExW
test eax, eax
jne 0x77cbc3bc
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push esi
push 0x77cb4084
push dword [ebp - 4]
call sym.ADVAPI32.dll_RegSetValueExW
test eax, eax
je 0x77cb407c
jmp 0x77cbc3bc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x18
push 0x77cb4084
push esi
push dword [ebp - 4]
mov dword [ebp - 0x10], 4
call sym.ADVAPI32.dll_RegGetValueW
push dword [ebp - 4]
call sym.ADVAPI32.dll_RegCloseKey
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jne 0x77c97849
mov al, 1
jmp 0x77cbc3be
mov eax, dword fs:[0x18]
cmp dword [eax + 0xf9c], 0
je 0x77cbc37b
xor al, al
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
push esi
movzx eax, ax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push esi
push 1
push 1
push esi
push esi
mov ebx, 0x77cbc3c4
push ebx
mov edi, 0x80000007
push edi
call sym.ADVAPI32.dll_RegCreateKeyExW
test eax, eax
je 0x77cb4045
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x77cbef91
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [sym.imp.ntdll.dll_NtQueryKey]
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x14]
push dword [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
cmp eax, 0x80000005
je 0x77cea69b
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
cmp dword [ebp + 0x18], 0
je 0x77cea6b4
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x10]
movzx edx, word [ebp + 0x1c]
inc ecx
inc ecx
cmp edx, ecx
jb 0x77cbefbe
mov eax, dword fs:[0x18]
push dword [ebp + 0x14]
mov eax, dword [eax + 0x30]
mov ebx, dword [ebp + 0x14]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
test eax, eax
mov dword [esi], eax
jne 0x77cea6de
mov eax, 0xc0000017
jmp 0x77cbefbe
lea ecx, [ebp + 0x14]
push ecx
push ebx
push eax
push 2
push dword [ebp + 8]
call edi
jmp 0x77cbefbe
Function at 0x77cbf92e
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret 4
Function at 0x77cc027c
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor edx, edx
xor ecx, ecx
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
push edi
mov edi, eax
mov ebx, dword [esp + 0x14]
push ebp
mov cl, byte [esi + 0x100]
mov ebp, ebx
mov dl, byte [esi + 0x101]
test ebx, ebx
je 0x77cc038d
shr ebx, 2
and eax, 3
test ebx, ebx
je 0x77cda537
test eax, eax
jne 0x77cda537
mov eax, edi
lea edi, [edi + ebx*4]
mov dword [esp + 0x1c], edi
sub eax, 4
mov ebp, ebx
mov edi, dword [eax + 4]
inc ecx
xor eax, eax
and ecx, 0xff
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 8
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 0x10
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 0x18
lea ebx, [ebp*4]
xor edi, eax
mov eax, dword [esp + 0x1c]
sub eax, ebx
mov dword [eax], edi
dec ebp
jne 0x77cc02cc
mov ebp, dword [esp + 0x18]
and ebp, 3
test ebp, ebp
jne 0x77cda534
pop ebp
pop edi
lea eax, [esi + 0x100]
pop esi
mov byte [eax], cl
pop ebx
mov byte [eax + 1], dl
ret 0xc
lea edi, [eax + 4]
inc ecx
mov ebx, 0xff
and ecx, ebx
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, ebx
xor ebx, ebx
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov bl, byte [edi]
mov al, byte [esi + eax]
xor bl, al
mov byte [edi], bl
inc edi
dec ebp
je 0x77cc038d
jmp 0x77cda537

Function at 0x77cc0a73
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push 0xe
pop esi
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.77cc0ae1
mov edi, eax
test edi, edi
je 0x77cc0ad4
cmp byte [ebp + 0x14], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
jne 0x77ce576d
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov ecx, eax
test ecx, ecx
jbe 0x77ce5778
cmp dword [ebp + 0xc], ecx
sbb esi, esi
and esi, 0xea
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
jmp 0x77cc0aa5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x77cc0abf
Function at 0x77cc6fbd
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0x10
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
test eax, eax
je 0x77cc6fed
mov ecx, dword [ebp + 8]
and dword [eax], 0
and dword [eax + 4], 0
and dword [eax + 0xc], 0
mov dword [eax + 8], ecx
pop ebp
ret 4

Function at 0x77cc71c3
Capabilities:
Access pe header

Disassembly:
xor eax, eax
ret
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 8]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x77cb30ee
test word [eax + 0x5e], 0x8000
je 0x77cb30ee
xor eax, eax
inc eax
ret

Function at 0x77cc72ba
Capabilities:
Delete file
Move file
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x77d260c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x418]
push eax
push 0x20019
xor edi, edi
push edi
push 0x77cc7468
push 0x80000002
mov dword [0x77d2a66c], edi
mov dword [0x77d2a670], edi
call sym.ADVAPI32.dll_RegOpenKeyExW
cmp eax, edi
mov dword [ebp - 0x420], edi
jne 0x77cc73b5
push 4
pop esi
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x424]
push eax
push edi
push 0x77cc7410
push dword [ebp - 0x418]
mov dword [ebp - 0x41c], esi
call sym.ADVAPI32.dll_RegQueryValueExW
test eax, eax
je 0x77cdea64
lea eax, [ebp - 0x41c]
push eax
push 0x77d2a66c
push edi
push edi
push 0x77cc73e8
push dword [ebp - 0x418]
mov dword [ebp - 0x41c], esi
call sym.ADVAPI32.dll_RegQueryValueExW
test eax, eax
jne 0x77cdea7b
lea eax, [ebp - 0x41c]
push eax
push 0x77d2a670
push edi
push edi
push 0x77cc73c4
push dword [ebp - 0x418]
mov dword [ebp - 0x41c], esi
call sym.ADVAPI32.dll_RegQueryValueExW
push dword [ebp - 0x418]
mov esi, eax
call sym.ADVAPI32.dll_RegCloseKey
cmp esi, edi
je 0x77cdea8b
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.77cd6011
leave
ret 4
test byte [0x77d2a66c], 8
je 0x77cc73a5
jmp 0x77cdeaa3
cmp dword [ebp - 0x424], esi
je 0x77cc7340
mov dword [ebp - 0x420], edi
jmp 0x77cc7340
push dword [ebp - 0x418]
call sym.ADVAPI32.dll_RegCloseKey
jmp 0x77cc73a5
cmp dword [ebp - 0x420], edi
je 0x77cc73b5
or dword [0x77d2a66c], 6
jmp 0x77cc73b5
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.77cfd339
test eax, eax
je 0x77cc73a5
cmp dword [ebp + 8], 1
jne 0x77cc73a5
lea eax, [ebp - 0x448]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x77cc73a5
cmp dword [ebp - 0x428], 0x19000
jb 0x77cc73a5
push esi
lea eax, [ebp - 0x414]
push eax
push 0x77cdeb40
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, edi
je 0x77cc73a5
cmp eax, esi
ja 0x77cc73a5
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x77cc73a5