joyce8/EMBER2024-capa huggingface dataset:
Function at 0x77c94179
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x77d1a0c4]
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 0x77ccf114
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.77cc744e
leave
ret 8
mov ecx, dword [eax]
mov word [ecx], 0x3d
jmp 0x77c942a5
Function at 0x77c95f7f
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x10
pop ebx
push ebx
push 0x40
mov dword [ebp - 4], ebx
call edi
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp - 4]
add eax, eax
push eax
push 0x40
call edi
mov edi, dword [ebp + 0xc]
mov dword [edi], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x77c95fe2
test eax, eax
je 0x77c95fe2
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x77c95fe2
lea eax, [ebp - 4]
push eax
push dword [edi]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x77c95fe2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x77cda7bd
push dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp + 8], eax
call ebx
push dword [edi]
call ebx
and dword [esi], 0
and dword [edi], 0
mov eax, dword [ebp + 8]
jmp 0x77c95fdb
Function at 0x77c96d65
Capabilities:
Check for peb beingdebugged flag

Disassembly:
lea edx, [eax + 2]
jmp 0x77c86980
mov dword [ebp - 4], 0xe
jmp 0x77c96ded
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x77c86980
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 0x77c86974
push dword [ebx]
shr esi, 1
push esi
push eax
call fcn.77c9e187
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
add eax, 0x38
mov dword [eax], ecx
jmp 0x77c96da4
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 0x77c8696f
mov eax, dword [ebx + 4]
test eax, eax
je 0x77c96ded
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x77c96dae
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 0x77c86974
push dword [ebx + 4]
shr esi, 1
push esi
push edi
call fcn.77c9e187
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 0x77c970b1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push dword [ebp + 0x20]
lea eax, [ebp - 0x2c]
push dword [ebp + 0x1c]
xor ebx, ebx
push dword [ebp + 0x18]
mov dword [ebp - 4], ebx
push dword [ebp + 0x14]
push eax
call fcn.77c96dfc
mov esi, dword [ebp + 0x10]
test word [esi + 0x14], 0x100
je 0x77c97184
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.77c96e34
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x77c97184
mov esi, dword [esi + 0x198]
mov eax, dword [esi + 0x374]
inc dword [ebp - 0x2c]
cmp dword [esi + 0x10], 2
mov dword [ebp + 0x20], eax
je 0x77cd55f8
cmp dword [ebp - 0x2c], ebx
je 0x77c97184
push edi
mov edi, 0x4c7
push dword [ebp + 0x10]
call fcn.77c97433
test al, al
je 0x77c971aa
cmp byte [esi + 0x384], bl
jne 0x77c971aa
lea eax, [esi + 0x364]
push eax
lea eax, [esi + 0x380]
push eax
push 8
lea eax, [esi + 0x378]
push eax
push dword [esi + 0x21c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x77c97411
lea eax, [esi + 0x38]
push eax
push dword [esi + 0x378]
mov byte [esi + 0x384], bl
lea eax, [ebp - 0x2c]
push eax
call fcn.77c96fba
cmp eax, edi
je 0x77c97183
cmp dword [ebp - 0x2c], ebx
jne 0x77c97122
pop edi
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x198]
cmp eax, ebx
je 0x77c97198
push ebx
push eax
call fcn.77c9879b
lea eax, [ebp - 0x2c]
push eax
call fcn.77ccb8a2
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0x1c
push 0xffffffffffffffff
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x77cd560f
cmp byte [esi + 0x384], bl
je 0x77c97136
push ebx
lea eax, [esi + 0x380]
push eax
lea eax, [esi + 0x364]
push eax
push dword [esi + 0x21c]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0x77c97159
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x77ccb8d7
mov byte [esi + 0x384], 1
jmp 0x77c9717e
cmp eax, 0x3e4
je 0x77c97422
lea eax, [esi + 0x38]
push eax
push ebx
jmp 0x77c97171
cmp dword [esi + 0x21c], ebx
je 0x77c97117
push esi
call fcn.77cfdecb
jmp 0x77c97117
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x77c97183
Function at 0x77c9a420
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 0x77c9a4ee
mov eax, dword [eax]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x77c9a4ee
push edi
mov edi, 0x400
push edi
push 0xa7
push 0x77c9e5f8
mov dword [ebp - 0xc], edi
call fcn.77c9e393
mov esi, eax
cmp esi, ebx
je 0x77c9a4b5
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 0x77cdd929
test eax, eax
jge 0x77cdd970
mov dword [ebp - 8], eax
test esi, esi
je 0x77c9a4b3
push esi
push 0xce
push 0x77c9e5f8
call fcn.77c9e3db
xor ebx, ebx
mov eax, dword [ebp + 0x20]
cmp eax, ebx
pop edi
je 0x77cdd9a5
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
cmp dword [ebp - 0x10], ebx
je 0x77c9a4e5
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp + 0x10]
ja 0x77c9a542
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 0x77c9a550
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 0x77c9a451
jmp 0x77c9a4cb
mov dword [ebp - 8], 0xc0000023
jmp 0x77c9a4e5
push esi
push 0xb2
mov esi, 0x77c9e5f8
push esi
call fcn.77c9e3db
push dword [ebp - 0xc]
push 0xb3
push esi
call fcn.77c9e393
mov esi, eax
test esi, esi
je 0x77cdd966
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 0x77c9a48c
mov eax, 0xc0000017
jmp 0x77c9a494
mov eax, dword [esi + 4]
cmp eax, dword [ebp + 0xc]
jne 0x77c9a49f
mov eax, dword [esi + 8]
cmp eax, dword [ebp + 0x10]
ja 0x77c9a49f
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 0x77c9a49f
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x77c9a4c6
Function at 0x77c9b833
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 0x77c9b94d
cmp dword [ebp + 8], 0xffffffff
je 0x77c9b94d
cmp dword [ebp + 0xc], esi
je 0x77c9b94d
mov ecx, dword [ebp + 0x10]
cmp ecx, esi
je 0x77c9b94d
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x77c9b94d
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 0x77cdd408
add ebx, 0x10
cmp dword [ebp - 4], ebx
jae 0x77c9b910
push ebx
push 0x224
push 0x77cb4db8
call fcn.77c9e393
mov esi, eax
test esi, esi
je 0x77c9b910
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 0x77c9b93c
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 0x77c9b910
cmp dword [ebp + 0x18], 0
je 0x77c9b949
mov eax, dword [esi + 8]
cmp eax, dword [ebp - 4]
ja 0x77c9b949
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 0x77cb4db8
mov edi, eax
call fcn.77c9e3db
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 0x77c9b8dc
push edi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x77c9b910
mov edi, ecx
jmp 0x77c9b910
push 0x57
jmp 0x77cdd40a
push 0xe
pop edi
jmp 0x77c9b933
Function at 0x77c9d49c
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x77cd35c8
push edi
mov edi, 0x77c9d438
push edi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlDosPathNameToRelativeNtPathName_U]
test al, al
je 0x77cd35d2
mov eax, dword [ebp - 0x2c]
cmp ax, si
push ebx
mov ebx, dword [ebp - 4]
jne 0x77cd35dc
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x24]
push 0x40
mov dword [ebp - 0x40], eax
pop eax
push esi
push esi
push eax
push 1
push esi
push 0x80
push esi
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 8]
push 0xc0100080
push dword [ebp + 8]
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x44], 0x18
mov dword [ebp - 0x34], esi
mov byte [ebp - 0x14], 1
mov dword [ebp - 0x18], 2
mov byte [ebp - 0x13], 1
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x30], ecx
call dword [sym.imp.ntdll.dll_NtCreateFile]
mov edi, eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntdll.dll_RtlReleaseRelativeName]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4
mov eax, 0xc000000d
jmp 0x77c9d56a
mov eax, 0xc000003a
jmp 0x77c9d569
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
jmp 0x77c9d4ec
Function at 0x77c9e52f
Capabilities:
Query or enumerate registry value

Disassembly:
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeStringFromAsciiz]
jmp 0x77c9e56e
cmp ecx, 7
je 0x77c9a622
jmp 0x77c9c49d
mov edi, edx
jmp 0x77c9c4ba
mov edi, 0xc0000017
jmp 0x77c9e5de
mov edi, 0xc0000017
jmp 0x77c9e5e9
push 6
pop eax
jmp 0x77c9e5f0
mov ecx, dword [esi + 4]
cmp ecx, 1
jne 0x77cdda39
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 0x77c9e5ce
mov eax, dword [ebp - 4]
jmp 0x77c9c4bd
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x77c9c47c
mov ecx, dword [esi + 4]
mov dword [eax], ecx
test edi, edi
mov eax, dword [esi + 8]
mov dword [ebx], eax
jl 0x77c9e5ce
cmp dword [ebp + 0x18], 0
je 0x77c9e5ce
cmp dword [ebp + 0x20], 0
je 0x77c9a616
mov eax, dword [esi + 8]
cmp eax, dword [ebx]
ja 0x77c9a5f3
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 0x77c9e5ce
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 0x77c9a60e
cmp dword [ebp + 8], 0xffffffff
je 0x77c9a60e
cmp dword [ebp + 0x20], esi
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
je 0x77c9a5de
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeString]
movzx eax, al
cmp eax, esi
push edi
je 0x77c9a604
push ebx
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx]
add eax, 0x10
push eax
push 0x457
push 0x77c9e5f8
mov dword [ebp + 0xc], eax
mov edi, eax
call fcn.77c9e393
mov esi, eax
test esi, esi
je 0x77c9a5fa
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 0x77c9c470
cmp edi, edx
je 0x77c9c470
push esi
push 0x49a
push 0x77c9e5f8
call fcn.77c9e3db
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
pop ebx
push edi
call fcn.77c9e871
pop edi
pop esi
leave
ret 0x1c
cmp ecx, 2
jne 0x77c9a5e9
jmp 0x77c9a622
Function at 0x77c9fbc7
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x270], ecx
lea ecx, [ebp - 0x26c]
push ecx
push ebx
push eax
mov dword [ebp - 0x278], edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov dword [ebp - 0x274], eax
mov eax, dword [ebp + 0x18]
add eax, eax
push eax
push ebx
push dword [ebp - 0x270]
call sub.ntdll.dll_memset
add esp, 0xc
cmp dword [ebp - 0x274], 0xffffffff
je 0x77c9fc55
cmp byte [ebp + 0xc], bl
jne 0x77cde2cd
push edi
push dword [ebp + 0x18]
xor esi, esi
push dword [ebp - 0x270]
inc esi
call fcn.77c9e187
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, esi
neg eax
pop edi
sbb eax, eax
and eax, dword [ebp - 0x270]
pop esi
xor ecx, ebp
pop ebx
call fcn.77cc744e
leave
ret 0x14
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0xc
jne 0x77cde351
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x238]
push eax
push 5
lea eax, [ebp - 0x10]
push eax
call fcn.77c9e187
lea eax, [ebp - 0x10]
push eax
call fcn.77ca009d
cmp eax, ebx
je 0x77cde351
push 5
lea ecx, [ebp - 0x1c]
push ecx
push 1
and eax, 0x3ff
push eax
call fcn.77d155d3
push dword [ebp - 0x278]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp esi, 1
jne 0x77cde351
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x18]
push dword [ebp - 0x270]
call fcn.77c9e187
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x77c9fc49
jmp 0x77cde2cd
Function at 0x77ca00e5
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x77d1a0c4]
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 0x77ca01cc
push dword [0x77d1a138]
call esi
push dword [0x77d1a0f8]
mov ebx, eax
call esi
push edi
add ebx, eax
call esi
lea esi, [eax + ebx + 1]
cmp esi, 0xd
jae 0x77ca014e
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 0x77ca01f4
call fcn.77c9e393
test eax, eax
mov dword [ebp - 0x14], eax
je 0x77ca01cc
lea ecx, [ebx + 1]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x77ca01cc
cmp dword [ebp - 0x24], 4
push dword [0x77d1a138]
mov eax, dword [ebp - 0x14]
lea ebx, [eax + ebx*2 + 2]
push edi
je 0x77cde371
push dword [0x77d1a0e0]
push dword [ebp - 0x14]
push 0x77c9f8c4
push esi
push ebx
call fcn.77c9e2c6
add esp, 0x1c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push edi
push 0
push ebx
call fcn.77c9fbc7
test eax, eax
mov dword [ebp - 0x18], eax
je 0x77cde40a
push dword [ebp - 0x14]
push 0x23b
push 0x77ca01f4
call fcn.77c9e3db
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cc744e
leave
ret 0xc
push dword [0x77d1a0f8]
push eax
push 0x77c9f8c4
push esi
push ebx
call fcn.77c9e2c6
add esp, 0x1c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push edi
push 0
push ebx
call fcn.77c9fbc7
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x77ca01cc
push edi
call fcn.77ca009d
mov ecx, eax
test ecx, ecx
je 0x77ca01cc
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.77d155d3
lea eax, [esi + esi]
push eax
push 0
push ebx
call sub.ntdll.dll_memset
push dword [0x77d1a138]
lea eax, [ebp - 0x10]
push eax
push dword [0x77d1a0e0]
push dword [ebp - 0x14]
push 0x77c9f8c4
push esi
push ebx
call fcn.77c9e2c6
add esp, 0x28
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push dword [ebp - 0x1c]
push eax
push 0
jmp 0x77cde441
lea eax, [esi + esi]
push eax
push 0
push ebx
call sub.ntdll.dll_memset
push dword [0x77d1a138]
lea eax, [edi + 2]
push eax
push dword [0x77d1a0f8]
push dword [ebp - 0x14]
push 0x77cde450
push esi
push ebx
call fcn.77c9e2c6
add esp, 0x28
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push edi
push 1
push ebx
call fcn.77c9fbc7
mov dword [ebp - 0x18], eax
jmp 0x77ca01cc
Function at 0x77ca1ee9
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x20]
push ebx
push esi
mov esi, dword [ebp + 0x30]
push edi
lea ecx, [ebp + 0x20]
push ecx
push esi
push dword [ebp + 0x2c]
mov edi, eax
push dword [ebp + 0x28]
or eax, 4
push dword [ebp + 0x24]
shr edi, 2
push eax
push dword [ebp + 0x1c]
xor ebx, ebx
push dword [ebp + 0x18]
and edi, 1
push dword [ebp + 0x14]
mov dword [ebp + 0x20], ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessInternalW]
test eax, eax
je 0x77ccd8ec
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0xfffffffe
inc eax
inc eax
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffc
add ecx, 4
or eax, ecx
or edi, eax
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x77ca1fa7
mov ecx, dword [esi]
test cl, 2
mov dword [ebp + 0x30], ebx
jne 0x77ccd901
cmp dword [ebp + 0x20], 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
jne 0x77ca1fa2
push dword [ebp + 8]
push edi
call fcn.77ca221b
mov edi, eax
test edi, edi
je 0x77ca1f8f
mov ebx, dword [ebp + 0x30]
test ebx, ebx
jne 0x77ccd92d
cmp dword [ebp + 0x20], 0
jne 0x77ccd941
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0x2c
push dword [ebp + 0x20]
jmp 0x77ca1f78
xor edi, edi
inc edi
jmp 0x77ca1f8f
cmp dword [ebp + 0x20], ebx
je 0x77ccd8fa
push dword [ebp + 0x20]
call dword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
jmp 0x77ca1f9b
push eax
push ebx
mov ebx, 0x1fffff
push ebx
mov dword [ebp + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [esi], eax
jne 0x77ca1f68
push dword [esi + 8]
push eax
push ebx
call fcn.77ce42db
mov dword [esi], eax
jmp 0x77ca1f68
mov eax, dword [esi]
test eax, eax
je 0x77ccd93a
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [esi], ebx
jmp 0x77ca1f8f
push dword [ebp + 0x20]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x77ca1f99