joyce8/EMBER2024-capa huggingface dataset:
Function at 0x77c98166
Capabilities:
Hash data with md5

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

Function at 0x77c98bb3
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x77d260c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov byte [ebp - 0xc], 0xa2
mov byte [ebp - 0xb], 0x17
mov byte [ebp - 0xa], 0x9c
mov byte [ebp - 9], 0x98
mov byte [ebp - 8], 0xca
xor eax, eax
mov cl, byte [ebp + 0x10]
xor byte [ebp + eax - 0xc], cl
inc eax
cmp eax, 5
jb 0x77c98be2
lea eax, [ebp - 0xc]
push eax
push 5
lea eax, [ebp - 0x110]
push eax
call fcn.77cc82df
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push eax
call fcn.77cc027c
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.77cd6011
leave
ret 0xc

Function at 0x77c9b239
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x14], esi
push edi
je 0x77c9b32a
cmp dword [ebp + 0x14], 0xffffffff
je 0x77c9b32a
cmp dword [ebp + 0x18], esi
je 0x77c9b32a
mov ecx, dword [ebp + 0x1c]
cmp ecx, esi
je 0x77c9b32a
mov eax, dword [ebp + 0x24]
cmp eax, esi
je 0x77c9b32a
mov ebx, dword [eax]
push dword [ebp + 0x18]
lea eax, [ebp - 0x10]
push eax
mov word [ebp - 0x10], si
mov word [ebp - 0xe], si
mov dword [ebp - 0xc], esi
xor edi, edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
mov dword [ecx], esi
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeString]
test al, al
je 0x77ce2375
add ebx, 0x10
cmp dword [ebp - 4], ebx
jae 0x77c9b2f8
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
push 0x68
push 0x77c9b334
call fcn.77c9b835
mov esi, eax
test esi, esi
je 0x77c9b2f8
lea eax, [ebp - 8]
push eax
push ebx
push esi
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov edi, eax
test edi, edi
mov ecx, 0x80000005
jge 0x77ce2331
cmp edi, ecx
je 0x77ce2331
push edi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push edi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push esi
push dword [ebp + 0x10]
mov edi, eax
push dword [ebp + 0xc]
push 0x88
push 0x77c9b334
call fcn.77c9b988
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x20
push 0x57
jmp 0x77ce2377
test edi, edi
mov eax, dword [esi + 8]
mov edx, dword [ebp + 0x24]
mov dword [edx], eax
mov eax, dword [esi + 4]
mov edx, dword [ebp + 0x1c]
mov dword [edx], eax
jl 0x77c9b2f8
cmp dword [ebp + 0x20], 0
je 0x77ce236e
mov eax, dword [esi + 8]
cmp eax, dword [ebp - 4]
ja 0x77ce236e
push eax
lea eax, [esi + 0xc]
push eax
push dword [ebp + 0x20]
call sub.ntdll.dll_memcpy
add esp, 0xc
xor edi, edi
jmp 0x77c9b2f8
mov edi, ecx
jmp 0x77c9b2f8
push 0xe
pop edi
jmp 0x77c9b321
Function at 0x77c9ceb1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
and dword [ebp - 8], 0
push esi
mov esi, dword [eax + 0x198]
test esi, esi
je 0x77ce3ce3
push edi
lea eax, [esi + 0x238]
push eax
call fcn.77c9ce32
mov edi, eax
test edi, edi
je 0x77ce3cf3
push ebx
push edi
push esi
call fcn.77c9ce50
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0xc], ebx
je 0x77ce3d02
cmp dword [ebp + 0xc], 0
je 0x77c9cf14
lea eax, [edi + 0x18]
push eax
push dword [ebp + 8]
call fcn.77cb1b72
test eax, eax
mov dword [ebp - 8], eax
jne 0x77c9cf90
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [edi + 8]
push ebx
call fcn.77cb13f0
test eax, eax
je 0x77c9cf51
mov ecx, dword [ebp - 4]
test ecx, ecx
jbe 0x77c9cf51
cmp eax, 7
je 0x77ce3d0a
lea ecx, [edi + 0x18]
push ecx
push eax
push dword [edi + 8]
push ebx
push esi
call fcn.77cb164c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
add dword [edi + 8], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
mov dword [edi + 0x10], eax
cmp dword [ebp - 4], ecx
jbe 0x77c9cf97
cmp dword [ebp - 8], ecx
jne 0x77c9cf97
push edi
lea eax, [esi + 0x238]
push eax
push esi
call fcn.77c9c68c
mov eax, dword [esi + 0x238]
test eax, eax
je 0x77c9d125
mov edx, dword [eax + 0x28]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0x2c]
mov dword [ecx + 0xc], eax
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 8
mov eax, dword [ebp + 8]
cmp dword [eax + 0x180], ecx
je 0x77c9cfbc
mov ecx, dword [ebx + 0x30]
inc dword [eax + 0x10]
push esi
mov dword [eax + 0x188], ecx
call fcn.77ca0db6
test eax, eax
jne 0x77ce3d12
cmp dword [esi + 0x1f8], 0xffffffff
jne 0x77c9d043
mov edi, dword [edi + 4]
add edi, 0x1d
cmp edi, dword [esi + 0x228]
jae 0x77c9cf71
mov ebx, dword [esi + 0x224]
push dword [esi + 0x20c]
imul ebx, edi
call dword [sym.imp.ntdll.dll_NtClearEvent]
xor eax, eax
mov dword [esi + 0x208], eax
lea eax, [esi + 0x1fc]
push eax
push 0
push dword [esi + 0x224]
mov dword [esi + 0x204], ebx
push dword [ebp - 0xc]
push dword [esi + 0x21c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x77c9d029
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x77ce3d1c
mov eax, edi
push 0x1d
cdq
pop ecx
idiv ecx
mov dword [esi + 0x1f8], edi
mov dword [esi + edx*8 + 0x240], edi
jmp 0x77c9cf71
push 0
lea eax, [ebp + 0xc]
push eax
lea eax, [esi + 0x1fc]
push eax
push dword [esi + 0x21c]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x77c9cfc5
jmp 0x77c9cf71
mov dword [esi + 0x220], 1
jmp 0x77c9cf8e
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
push 0x57
pop eax
jmp 0x77c9cf92
mov dword [esi + 0x220], 1
jmp 0x77c9cf91
push 0x20
pop eax
jmp 0x77c9cf90
add dword [edi + 8], ecx
jmp 0x77c9cf14
mov eax, 0x4c7
jmp 0x77c9cf90
push 0
push dword [esi + 0x20c]
call dword [sym.imp.ntdll.dll_NtSetEvent]
or dword [esi + 0x1f8], 0xffffffff
jmp 0x77c9cf71
Function at 0x77c9f352
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x77d260c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x3f
mov eax, dword [ebp + 8]
mov byte [ebp - 0x44], 0x41
mov byte [ebp - 0x43], 0x42
mov byte [ebp - 0x42], 0x43
mov byte [ebp - 0x41], 0x44
mov byte [ebp - 0x40], 0x45
mov byte [ebp - 0x3f], 0x46
mov byte [ebp - 0x3e], 0x47
mov byte [ebp - 0x3d], 0x48
mov byte [ebp - 0x3c], 0x49
mov byte [ebp - 0x3b], 0x4a
mov byte [ebp - 0x3a], 0x4b
mov byte [ebp - 0x39], 0x4c
mov byte [ebp - 0x38], 0x4d
mov byte [ebp - 0x37], 0x4e
mov byte [ebp - 0x36], 0x4f
mov byte [ebp - 0x35], 0x50
mov byte [ebp - 0x34], 0x51
mov byte [ebp - 0x33], 0x52
mov byte [ebp - 0x32], 0x53
mov byte [ebp - 0x31], 0x54
mov byte [ebp - 0x30], 0x55
mov byte [ebp - 0x2f], 0x56
mov byte [ebp - 0x2e], 0x57
mov byte [ebp - 0x2d], 0x58
mov byte [ebp - 0x2c], 0x59
mov byte [ebp - 0x2b], 0x5a
mov byte [ebp - 0x2a], 0x61
mov byte [ebp - 0x29], 0x62
mov byte [ebp - 0x28], 0x63
mov byte [ebp - 0x27], 0x64
mov byte [ebp - 0x26], 0x65
mov byte [ebp - 0x25], 0x66
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x68
mov byte [ebp - 0x22], 0x69
mov byte [ebp - 0x21], 0x6a
mov byte [ebp - 0x20], 0x6b
mov byte [ebp - 0x1f], 0x6c
mov byte [ebp - 0x1e], 0x6d
mov byte [ebp - 0x1d], 0x6e
mov byte [ebp - 0x1c], 0x6f
mov byte [ebp - 0x1b], 0x70
mov byte [ebp - 0x1a], 0x71
mov byte [ebp - 0x19], 0x72
mov byte [ebp - 0x18], 0x73
mov byte [ebp - 0x17], 0x74
mov byte [ebp - 0x16], 0x75
mov byte [ebp - 0x15], 0x76
mov byte [ebp - 0x14], 0x77
mov byte [ebp - 0x13], 0x78
mov byte [ebp - 0x12], 0x79
mov byte [ebp - 0x11], 0x7a
mov byte [ebp - 0x10], 0x30
mov byte [ebp - 0xf], 0x31
mov byte [ebp - 0xe], 0x32
mov byte [ebp - 0xd], 0x33
mov byte [ebp - 0xc], 0x34
mov byte [ebp - 0xb], 0x35
mov byte [ebp - 0xa], 0x36
mov byte [ebp - 9], 0x37
mov byte [ebp - 8], 0x38
mov byte [ebp - 7], 0x39
mov byte [ebp - 6], 0x23
mov byte [ebp - 5], 0x2d
ja 0x77cddba6
movzx cx, byte [ebp + ecx - 0x44]
mov edx, dword [eax]
mov word [edx], cx
mov ecx, dword [ebp - 4]
add dword [eax], 2
xor ecx, ebp
call fcn.77cd6011
leave
ret 8
mov ecx, dword [eax]
mov word [ecx], 0x3d
jmp 0x77c9f47e
Function at 0x77ca0210
Capabilities:
Check for peb beingdebugged flag

Disassembly:
lea edx, [eax + 2]
jmp 0x77c9ba76
mov dword [ebp - 4], 0xe
jmp 0x77ca0298
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x77c9ba76
sub eax, edx
sar eax, 1
lea esi, [eax + eax + 2]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 8
push dword [eax + 0x18]
call edi
test eax, eax
mov dword [ebp + 0xc], eax
je 0x77c9ba6a
push dword [ebx]
shr esi, 1
push esi
push eax
call fcn.77cac425
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
add eax, 0x38
mov dword [eax], ecx
jmp 0x77ca024f
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
lea edx, [eax + 0x38]
push 0x68
pop ecx
mov esi, ebx
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x178]
and dword [edx], 0
and dword [eax + 0x3c], 0
mov edi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [eax + 0x14], ecx
mov eax, dword [ebx]
test eax, eax
jne 0x77c9ba65
mov eax, dword [ebx + 4]
test eax, eax
je 0x77ca0298
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x77ca0259
sub eax, edx
sar eax, 1
lea esi, [eax + eax + 2]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 8
push dword [eax + 0x18]
call edi
mov edi, eax
test edi, edi
je 0x77c9ba6a
push dword [ebx + 4]
shr esi, 1
push esi
push edi
call fcn.77cac425
mov eax, dword [ebp + 8]
mov dword [eax + 0x3c], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x77ca2b1d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0x20]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], ebx
je 0x77ca2beb
mov eax, dword [eax]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x77ca2beb
push edi
mov edi, 0x400
push edi
push 0xa7
push 0x77ca9840
mov dword [ebp - 0xc], edi
call fcn.77ca96e5
mov esi, eax
cmp esi, ebx
je 0x77ca2bb2
lea eax, [ebp - 0xc]
push eax
push edi
mov edi, dword [sym.imp.ntdll.dll_NtQueryValueKey]
push esi
push 2
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
call edi
mov ebx, 0x80000005
cmp eax, ebx
je 0x77cec189
test eax, eax
jge 0x77cec1d0
mov dword [ebp - 8], eax
test esi, esi
je 0x77ca2bb0
push esi
push 0xce
push 0x77ca9840
call fcn.77ca972d
xor ebx, ebx
mov eax, dword [ebp + 0x20]
cmp eax, ebx
pop edi
je 0x77cec205
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
cmp dword [ebp - 0x10], ebx
je 0x77ca2be2
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp + 0x10]
ja 0x77ca2c3f
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
call sub.ntdll.dll_memcpy
add esp, 0xc
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret 0x1c
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0x77ca12e8
lea eax, [ebp - 0x20]
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call esi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
push eax
push 0x20019
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x38], 0x18
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], 0x40
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ntdll.dll_NtOpenKey]
cmp eax, ebx
jge 0x77ca2b4e
jmp 0x77ca2bc8
mov dword [ebp - 8], 0xc0000023
jmp 0x77ca2be2
push esi
push 0xb2
mov esi, 0x77ca9840
push esi
call fcn.77ca972d
push dword [ebp - 0xc]
push 0xb3
push esi
call fcn.77ca96e5
mov esi, eax
test esi, esi
je 0x77cec1c6
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x18]
push esi
push 2
push eax
push dword [ebp - 4]
call edi
jmp 0x77ca2b89
mov eax, 0xc0000017
jmp 0x77ca2b91
mov eax, dword [esi + 4]
cmp eax, dword [ebp + 0xc]
jne 0x77ca2b9c
mov eax, dword [esi + 8]
cmp eax, dword [ebp + 0x10]
ja 0x77ca2b9c
push eax
lea eax, [esi + 0xc]
push eax
push dword [ebp + 0x14]
call sub.ntdll.dll_memcpy
and dword [ebp - 0x10], 0
add esp, 0xc
and dword [ebp - 8], 0
jmp 0x77ca2b9c
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x77ca2bc3
Function at 0x77ca3c5b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
je 0x77ca3d75
cmp dword [ebp + 8], 0xffffffff
je 0x77ca3d75
cmp dword [ebp + 0xc], esi
je 0x77ca3d75
mov ecx, dword [ebp + 0x10]
cmp ecx, esi
je 0x77ca3d75
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x77ca3d75
mov ebx, dword [eax]
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
mov word [ebp - 0x10], si
mov word [ebp - 0xe], si
mov dword [ebp - 0xc], esi
xor edi, edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
mov dword [ecx], esi
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeString]
test al, al
je 0x77cebca0
add ebx, 0x10
cmp dword [ebp - 4], ebx
jae 0x77ca3d38
push ebx
push 0x224
push 0x77cceba4
call fcn.77ca96e5
mov esi, eax
test esi, esi
je 0x77ca3d38
lea eax, [ebp - 8]
push eax
push ebx
push esi
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov edi, eax
test edi, edi
mov ecx, 0x80000005
jl 0x77ca3d64
test edi, edi
mov eax, dword [esi + 8]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov eax, dword [esi + 4]
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
jl 0x77ca3d38
cmp dword [ebp + 0x18], 0
je 0x77ca3d71
mov eax, dword [esi + 8]
cmp eax, dword [ebp - 4]
ja 0x77ca3d71
push eax
lea eax, [esi + 0xc]
push eax
push dword [ebp + 0x18]
call sub.ntdll.dll_memcpy
add esp, 0xc
xor edi, edi
push edi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push esi
push 0x244
push 0x77cceba4
mov edi, eax
call fcn.77ca972d
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14
cmp edi, ecx
je 0x77ca3d04
push edi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x77ca3d38
mov edi, ecx
jmp 0x77ca3d38
push 0x57
jmp 0x77cebca2
push 0xe
pop edi
jmp 0x77ca3d5b
Function at 0x77ca8812
Capabilities:
Query environment variable

Disassembly:
push 0x77ca860c
push esi
push dword [ebp - 4]
call fcn.77cac425
lea eax, [edi + 0x18]
push eax
jmp 0x77ca897f
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push esi
push edi
push 0x410
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
mov dword [ebp - 4], esi
je 0x77ca8a7f
mov ebx, dword [ebp + 0xc]
mov eax, ebx
lea edi, [esi + 0x208]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x77ca8851
sub eax, edx
sar eax, 1
je 0x77ca8a69
lea ebx, [ebx + eax*2]
dec ebx
dec ebx
cmp word [ebx], 0x5c
je 0x77ca8873
dec eax
jne 0x77ca8868
test eax, eax
je 0x77ca8a4e
push 0x77ca8a08
mov esi, 0x104
inc ebx
push esi
inc ebx
push edi
mov dword [ebp - 0x14], ebx
call fcn.77cac425
push ebx
push esi
push edi
call fcn.77cac786
lea eax, [ebp - 0xc]
push eax
push edi
push 0x80000002
mov byte [ebp + 0xf], 1
call sym.ADVAPI32.dll_RegOpenKeyW
test eax, eax
mov edi, dword [ebp + 8]
jne 0x77ce17e1
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push 0
push 0x77ca89e8
push dword [ebp - 0xc]
mov ebx, 0x208
mov dword [ebp - 8], ebx
call sym.ADVAPI32.dll_RegQueryValueExW
test eax, eax
je 0x77ca88fa
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push 0
push 0x77ca89d4
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
call sym.ADVAPI32.dll_RegQueryValueExW
test eax, eax
jne 0x77ca88fe
mov byte [ebp + 0xf], 0
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_NtClose]
cmp byte [ebp + 0xf], 0
jne 0x77ca8a77
cmp dword [ebp - 0x10], 2
jne 0x77ce17c0
cmp dword [ebp - 8], 4
jb 0x77ca8a77
mov ebx, dword [sym.imp.ntdll.dll__wcsnicmp]
push 0xc
push 0x77ca89b8
push edi
call ebx
add esp, 0xc
test eax, eax
je 0x77ca87f6
cmp word [edi], 0x25
je 0x77ca8a71
cmp dword [ebp - 8], 6
jbe 0x77ca895b
cmp word [edi + 2], 0x3a
je 0x77ca8a71
push 4
push 0x77cb821c
push edi
call ebx
add esp, 0xc
test eax, eax
je 0x77ce17cf
push 0x77ca860c
push esi
push dword [ebp - 4]
call fcn.77cac425
push edi
push esi
push dword [ebp - 4]
call fcn.77cac786
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
push esi
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
jmp 0x77ca89af
mov ebx, dword [ebp - 0x14]
jmp 0x77ca8873
push edi
jmp 0x77ce17d3
mov ebx, dword [ebp - 0x14]
jmp 0x77ce17e1
xor edi, edi
jmp 0x77ca89ad
cmp dword [ebp - 0x10], 1
je 0x77ca891b
jmp 0x77ca8a77
lea eax, [edi + 8]
push eax
push esi
push dword [ebp - 4]
call fcn.77cac425
jmp 0x77ca8988
push 0x77ce1810
push esi
push dword [ebp - 4]
call fcn.77cac425
push ebx
push esi
push dword [ebp - 4]
call fcn.77cac786
push 0x77ce1804
jmp 0x77ca897f
Function at 0x77ca8d24
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 8
mov dword [esi], eax
pop ebx
mov dword [edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword fs:[0x18]
push 0x20
mov dword [ebp - 8], ebx
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
test eax, eax
mov dword [ebp - 4], eax
je 0x77ca8d92
lea eax, [ebp - 0xc]
push eax
push 0x18
push 0x77ca8da0
call dword [sym.imp.KERNEL32.dll_EnumUILanguagesW]
test eax, eax
je 0x77ce18e7
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
mov eax, dword [ebp - 4]
xor ebx, ebx
mov dword [esi], eax
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], 0
jne 0x77ce18f4
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x77ca8d88
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x77ca8d92
Function at 0x77ca9780
Capabilities:
Query or enumerate registry value

Disassembly:
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeStringFromAsciiz]
jmp 0x77ca97bf
cmp ecx, 7
je 0x77ca284f
jmp 0x77ca98a9
mov edi, edx
jmp 0x77ca98c6
mov edi, 0xc0000017
jmp 0x77ca9827
mov edi, 0xc0000017
jmp 0x77ca9832
push 6
pop eax
jmp 0x77ca9839
mov ecx, dword [esi + 4]
cmp ecx, 1
jne 0x77cec298
push dword [ebp + 0xc]
and dword [ebp - 4], 0
lea ecx, [esi + 0xc]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x18]
call dword [sym.imp.ntdll.dll_RtlUnicodeToMultiByteN]
mov edi, eax
test edi, edi
jl 0x77ca9817
mov eax, dword [ebp - 4]
jmp 0x77ca98c9
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov word [ebp - 0xc], si
mov word [ebp - 0xa], si
mov dword [ebp - 8], esi
je 0x77ca283b
cmp dword [ebp + 8], 0xffffffff
je 0x77ca283b
cmp dword [ebp + 0x20], esi
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
je 0x77ca280b
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeString]
movzx eax, al
cmp eax, esi
push edi
je 0x77ca2831
push ebx
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx]
add eax, 0x10
push eax
push 0x457
push 0x77ca9840
mov dword [ebp + 0xc], eax
mov edi, eax
call fcn.77ca96e5
mov esi, eax
test esi, esi
je 0x77ca2827
lea eax, [ebp + 0xc]
push eax
push edi
push esi
push 2
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov edi, eax
test edi, edi
mov edx, 0x80000005
jge 0x77ca9880
cmp edi, edx
je 0x77ca9880
push esi
push 0x49a
push 0x77ca9840
call fcn.77ca972d
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
pop ebx
push edi
call fcn.77ca96ca
pop edi
pop esi
leave
ret 0x1c
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x77ca988c
mov ecx, dword [esi + 4]
mov dword [eax], ecx
test edi, edi
mov eax, dword [esi + 8]
mov dword [ebx], eax
jl 0x77ca9817
cmp dword [ebp + 0x18], 0
je 0x77ca9817
cmp dword [ebp + 0x20], 0
je 0x77ca2843
mov eax, dword [esi + 8]
cmp eax, dword [ebx]
ja 0x77ca2820
push eax
lea eax, [esi + 0xc]
push eax
push dword [ebp + 0x18]
call sub.ntdll.dll_memcpy
add esp, 0xc
xor edi, edi
mov eax, dword [esi + 8]
mov dword [ebx], eax
jmp 0x77ca9817
cmp ecx, 2
jne 0x77ca2816
jmp 0x77ca284f
Function at 0x77caa30f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x77d260c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
mov dword [ebp - 0x20], eax
call esi
cmp dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
je 0x77caa3f6
push dword [0x77d26138]
call esi
push dword [0x77d260f8]
mov ebx, eax
call esi
push edi
add ebx, eax
call esi
lea esi, [eax + ebx + 1]
cmp esi, 0xd
jae 0x77caa378
push 0xd
pop esi
mov ebx, dword [ebp - 0x20]
lea esi, [esi + ebx + 1]
lea eax, [ebx + esi]
lea eax, [eax + eax + 2]
push eax
push 0x216
push 0x77ca9f78
call fcn.77ca96e5
test eax, eax
mov dword [ebp - 0x14], eax
je 0x77caa3f6
lea ecx, [ebx + 1]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x77caa3f6
cmp dword [ebp - 0x24], 4
push dword [0x77d26138]
mov eax, dword [ebp - 0x14]
lea ebx, [eax + ebx*2 + 2]
push edi
je 0x77cecb61
push dword [0x77d260e0]
push dword [ebp - 0x14]
push 0x77ca9fc4
push esi
push ebx
call fcn.77cac57c
add esp, 0x1c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push edi
push 0
push ebx
call fcn.77caa421
test eax, eax
mov dword [ebp - 0x18], eax
je 0x77cecbfa
push dword [ebp - 0x14]
push 0x23b
push 0x77ca9f78
call fcn.77ca972d
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cd6011
leave
ret 0xc
push dword [0x77d260f8]
push eax
push 0x77ca9fc4
push esi
push ebx
call fcn.77cac57c
add esp, 0x1c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push edi
push 0
push ebx
call fcn.77caa421
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x77caa3f6
push edi
call fcn.77caa2c7
mov ecx, eax
test ecx, ecx
je 0x77caa3f6
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 5
stosw word es:[edi], ax
lea eax, [ebp - 0x10]
push eax
push 1
and ecx, 0x3ff
push ecx
call fcn.77d21071
lea eax, [esi + esi]
push eax
push 0
push ebx
call sub.ntdll.dll_memset
push dword [0x77d26138]
lea eax, [ebp - 0x10]
push eax
push dword [0x77d260e0]
push dword [ebp - 0x14]
push 0x77ca9fc4
push esi
push ebx
call fcn.77cac57c
add esp, 0x28
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push dword [ebp - 0x1c]
push eax
push 0
jmp 0x77cecc31
lea eax, [esi + esi]
push eax
push 0
push ebx
call sub.ntdll.dll_memset
push dword [0x77d26138]
lea eax, [edi + 2]
push eax
push dword [0x77d260f8]
push dword [ebp - 0x14]
push 0x77cecc40
push esi
push ebx
call fcn.77cac57c
add esp, 0x28
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push edi
push 1
push ebx
call fcn.77caa421
mov dword [ebp - 0x18], eax
jmp 0x77caa3f6