joyce8/EMBER2024-capa huggingface dataset:
Function at 0x762368
Capabilities:
Access peb ldr_data
Get number of processors
Get process heap force flags

Disassembly:
mov eax, 0x802eef
call fcn.007a83c4
push ecx
push ecx
push ebx
push esi
mov esi, ecx
lea eax, [esi + 4]
mov ecx, eax
neg ecx
lea edx, [eax - 4]
sbb ecx, ecx
and ecx, edx
push edi
mov dword [ebp - 0x14], esi
mov dword [0x882844], ecx
xor edi, edi
mov dword [ebp - 4], edi
mov dword [eax], edi
push 0x64
pop ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 0x1f
mov dword [esi + 0x28], edi
mov dword [esi + 0x1c], 0x8116f0
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], 0x18
lea eax, [ebp - 0xd]
push eax
lea ecx, [esi + 0x44]
mov dword [esi + 0x3c], 0x10
mov dword [esi + 0x40], edi
push edi
mov byte [ebp - 4], 4
mov dword [ecx], edi
call fcn.00762af3
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x34], 0x8116ec
mov dword [esi + 0x48], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x54], 0x1f
mov dword [esi + 0x4c], 0x8116e8
mov dword [esi + 0x60], 0x18
pop edi
mov dword [esi], 0x8116e4
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x79104c
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x80715e
call fcn.007a83c4
push ecx
xor eax, eax
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 4], 0x811e30
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x24], 0x811e2c
push eax
mov byte [ebp - 4], 1
mov dword [esi], 0x811e28
call fcn.007914a6
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x1c], eax
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x794ccf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
test ebx, ebx
mov dword [ebp - 4], 0xc65053f2
jne 0x794ce5
lea ebx, [ebp - 4]
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x794d34
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub edi, esi
mov dword [ebp + 0x14], eax
mov cl, byte [edi + esi]
mov al, cl
mov byte [ebp + 0x10], cl
push dword [ebp + 0x10]
shl cl, 4
shr al, 4
or al, cl
mov cl, al
and cl, 0xd5
shr al, 1
shl cl, 1
and al, 0x55
or cl, al
movzx eax, byte [ebx]
xor cl, byte [eax + 0x87764c]
push ebx
mov byte [esi], cl
call fcn.00794c72
pop ecx
inc esi
dec dword [ebp + 0x14]
pop ecx
jne 0x794cf9
pop edi
pop esi
pop ebx
leave
ret

Function at 0x794d37
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
test ebx, ebx
mov dword [ebp - 4], 0xc65053f2
jne 0x794d4d
lea ebx, [ebp - 4]
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x794d9c
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub edi, esi
mov dword [ebp + 0x14], eax
movzx eax, byte [ebx]
mov al, byte [eax + 0x87764c]
xor al, byte [edi + esi]
mov cl, al
shr al, 1
and cl, 0xd5
and al, 0x55
shl cl, 1
or cl, al
mov al, cl
shr al, 4
shl cl, 4
or al, cl
mov byte [ebp + 0x10], al
push dword [ebp + 0x10]
mov byte [esi], al
push ebx
call fcn.00794c72
pop ecx
inc esi
dec dword [ebp + 0x14]
pop ecx
jne 0x794d61
pop edi
pop esi
pop ebx
leave
ret
Function at 0x795786
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push edi
push dword [ebp + 8]
mov edi, ecx
call fcn.00798f20
pop ecx
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x104], 2
jne 0x795855
push ebx
push esi
lea eax, [ebp - 0x80]
push eax
push 0x875f7c
call fcn.0079561d
pop ecx
pop ecx
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov ebx, eax
lea eax, [ebp - 0x80]
push eax
push 0x8777ac
call fcn.0079561d
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
pop ecx
pop ecx
push eax
push ebx
call esi
mov dword [edi + 0x40], eax
lea eax, [ebp - 0x80]
push eax
push 0x877798
call fcn.0079561d
pop ecx
pop ecx
push eax
push ebx
call esi
mov dword [edi + 0x44], eax
lea eax, [ebp - 0x80]
push eax
push 0x877784
call fcn.0079561d
pop ecx
pop ecx
push eax
push ebx
call esi
mov dword [edi + 0x48], eax
lea eax, [ebp - 0x80]
push eax
push 0x877770
call fcn.0079561d
pop ecx
pop ecx
push eax
push ebx
call esi
mov dword [edi + 0x4c], eax
lea eax, [ebp - 0x80]
push eax
push 0x87775c
call fcn.0079561d
pop ecx
pop ecx
push eax
push ebx
call esi
pop esi
mov dword [edi + 0x50], eax
pop ebx
pop edi
leave
ret 4
Function at 0x798f90
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x88896c]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x798fa0
xor eax, eax
pop ebx
ret
push ebp
mov ebp, dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push esi
push edi
push 0x79d440
call ebp
push 0x2b98
mov edi, eax
call fcn.004025a5
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x799072
lea eax, [esi + 0x28]
mov byte [esi], bl
mov byte [esi + 1], bl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov byte [esi + 0x20], bl
mov byte [esi + 0x21], bl
mov byte [esi + 0x22], bl
mov byte [esi + 0x23], bl
push eax
mov dword [esi + 0x24], 0xffffffff
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
lea ecx, [esi + 0x1468]
mov dword [esi + 0x1464], ebx
call fcn.007a28d0
lea ecx, [esi + 0x2ac4]
call fcn.007a1aa0
mov dword [esi + 0x2b0c], ebx
mov dword [esi + 0x2b30], ebx
mov dword [esi + 0x2b34], ebx
mov byte [esi + 0x2b78], bl
mov byte [esi + 0x2b79], bl
mov dword [esi + 0x2b7c], 0x3e8
mov dword [esi + 0x2b80], ebx
mov dword [esi + 0x2b84], ebx
mov dword [esi + 0x2b88], ebx
mov byte [esi + 0x2b8c], bl
mov dword [esi + 0x2b90], ebx
mov dword [esi + 0x2b94], ebx
mov byte [esi + 0x2b38], bl
mov ecx, esi
jmp 0x799074
xor ecx, ecx
mov edx, dword [esp + 0x14]
mov dword [0x88896c], ecx
nop
mov eax, 0x755
mov ecx, dword [0x88896c]
mov dword [ecx + 0x10], eax
mov edx, dword [0x88896c]
mov eax, dword [edx + 0x18]
cmp eax, ebx
je 0x7990a1
push eax
call dword [sym.imp.kernel32.dll_SetEvent]
mov eax, dword [0x88896c]
mov eax, dword [eax + 0x1c]
cmp eax, ebx
je 0x7990b5
push ebx
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
cmp edi, ebx
je 0x7990bc
push edi
call ebp
mov ecx, dword [0x88896c]
pop edi
pop esi
pop ebp
mov eax, dword [ecx + 0x10]
pop ebx
ret
Function at 0x7992a0
Capabilities:
Clear file content
Encode data using xor
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x807614
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0x2ac4]
mov dword [esp + 0x14], 1
call fcn.007a1af0
lea ecx, [esi + 0x1468]
mov byte [esp + 0x14], 0
call fcn.007a2950
add esi, 0x24
mov dword [esp + 4], esi
mov eax, dword [esi]
mov dword [esp + 0x14], 2
cmp eax, 0xffffffff
je 0x799419
push ebx
push edi
lea edi, [esi + 0x101c]
push edi
call dword [sym.imp.kernel32.dll_GetLocalTime]
mov eax, dword [esi + 0x143c]
test eax, eax
je 0x799324
mov ecx, dword [esi + 0x1440]
cmp ecx, eax
mov eax, 0x8780f8
ja 0x799329
mov eax, 0x882970
push eax
xor eax, eax
mov ax, word [esi + 0x102a]
xor ecx, ecx
mov cx, word [esi + 0x1028]
push eax
xor edx, edx
xor eax, eax
mov dx, word [esi + 0x1026]
mov ax, word [esi + 0x1024]
push ecx
push edx
xor ecx, ecx
push eax
mov cx, word [esi + 0x1022]
xor edx, edx
mov dx, word [esi + 0x101e]
xor eax, eax
mov ax, word [edi]
push ecx
push edx
push eax
push 0x8780a0
lea ebx, [esi + 0x1c]
call fcn.007a3820
add esp, 4
push eax
push ebx
call fcn.007a8755
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 0x28
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x1438]
not ecx
dec ecx
test eax, eax
mov edi, ecx
je 0x7993cf
test edi, edi
jle 0x7993e1
push ebp
mov ebp, 0xffffffe4
mov eax, ebx
sub ebp, esi
mov ecx, dword [esi + 0x1438]
add ecx, 2
mov dword [esi + 0x1438], ecx
mov dl, byte [eax]
add cl, 0x43
xor dl, cl
mov byte [eax], dl
inc eax
lea edx, [eax + ebp]
cmp edx, edi
jl 0x7993ac
pop ebp
jmp 0x7993e1
push ebx
push ebx
lea eax, [esi + 0x1030]
push edi
push eax
call fcn.007a31d0
add esp, 0x10
cmp dword [esi + 0x143c], 0x3e7
je 0x7993ff
mov edx, dword [esi]
lea ecx, [esp + 0x10]
push 0
push ecx
push edi
push ebx
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
mov eax, dword [esi]
push eax
call dword [sym.imp.kernel32.dll_SetEndOfFile]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
mov dword [esi], 0xffffffff
pop ebx
add esi, 4
push esi
call dword [sym.imp.kernel32.dll_DeleteCriticalSection]
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x79b800
Capabilities:
Check for software breakpoints
Encode data using xor
Write file on windows

Disassembly:
mov eax, 0x1008
call fcn.007a88c0
push ebp
push esi
mov esi, dword [esp + 0x1014]
cmp dword [esi], 0xffffffff
je 0x79b96f
mov eax, dword [esi + 0x143c]
test eax, eax
je 0x79b847
mov ecx, dword [esp + 0x1018]
cmp byte [ecx], 0x21
je 0x79b847
mov ecx, dword [esi + 0x1440]
cmp ecx, eax
ja 0x79b96f
inc ecx
mov dword [esi + 0x1440], ecx
lea ebp, [esi + 4]
push ebp
mov dword [esp + 0xc], ebp
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x1018]
lea edx, [esp + 0x101c]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.007ab669
add esp, 0xc
lea edx, [esi + 0x101c]
push edx
call dword [sym.imp.kernel32.dll_GetLocalTime]
mov eax, fcn.007a8755
cmp byte [eax], 0xcc
je 0x79b968
mov ecx, dword [sym.imp.kernel32.dll_WriteFile]
cmp byte [ecx], 0xcc
je 0x79b968
xor eax, eax
push ebx
mov ax, word [esi + 0x102a]
lea edx, [esp + 0x14]
push edi
push edx
xor ecx, ecx
push eax
mov cx, word [esi + 0x1028]
xor edx, edx
mov dx, word [esi + 0x1026]
xor eax, eax
mov ax, word [esi + 0x1024]
push ecx
push edx
push eax
push 0x878880
lea ebx, [esi + 0x1c]
call fcn.007a3820
add esp, 4
push eax
push ebx
call fcn.007a8755
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x1438]
not ecx
dec ecx
test eax, eax
mov edi, ecx
je 0x79b930
test edi, edi
jle 0x79b942
mov ebp, 0xffffffe4
mov eax, ebx
sub ebp, esi
mov ecx, 2
mov edx, dword [esi + 0x1438]
add edx, ecx
mov dword [esi + 0x1438], edx
add dl, 0x43
xor byte [eax], dl
inc eax
lea edx, [eax + ebp]
cmp edx, edi
jl 0x79b90f
mov ebp, dword [esp + 0x10]
jmp 0x79b942
push ebx
push ebx
lea eax, [esi + 0x1030]
push edi
push eax
call fcn.007a31d0
add esp, 0x10
mov edx, dword [esi]
lea ecx, [esp + 0x14]
push 0
push ecx
push edi
push ebx
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
push ebp
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop edi
pop ebx
pop esi
mov al, 1
pop ebp
add esp, 0x1008
ret
push ebp
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop esi
xor al, al
pop ebp
add esp, 0x1008
ret
Function at 0x79ba30
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push ebp
push esi
lea eax, [esp + 8]
push edi
mov ebp, ecx
push eax
mov dword [esp + 0x10], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
push 0x878940
call fcn.007a3890
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push 0x87892c
mov esi, eax
call fcn.007a3890
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
add esp, 4
push eax
push esi
call edi
test eax, eax
je 0x79bab9
push 0x878914
call fcn.007a3890
add esp, 4
push eax
push esi
call edi
test eax, eax
je 0x79bab9
mov eax, dword [esp + 0x10]
cmp eax, 5
jb 0x79baa6
jne 0x79babd
cmp dword [esp + 0x14], 1
jae 0x79babd
pop edi
mov byte [ebp + 0x2b8c], 1
pop esi
mov al, 1
pop ebp
add esp, 0x94
ret
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x1c], 2
jne 0x79baf3
cmp eax, 5
mov byte [0x888866], 1
jne 0x79bae7
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x79bae7
mov ecx, dword [0x878088]
lea edx, [ecx + ecx]
mov dword [0x878088], edx
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x94
ret
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x94
ret
Function at 0x79c290
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov al, byte [esi + 0x20]
test al, al
jne 0x79c29e
mov al, 1
pop esi
ret
push edi
push 0x878bf4
lea edi, [esi + 0x24]
call fcn.007a3890
add esp, 4
push eax
push edi
call fcn.0079b800
mov ecx, dword [esi + 0x2b0c]
lea eax, [esi + 0x2b38]
push eax
push ecx
call dword [esi + 0x2b94]
mov eax, dword [esi + 0x14]
add esp, 0x10
test eax, eax
mov byte [esi + 0x20], 0
je 0x79c2df
push eax
call dword [sym.imp.kernel32.dll_SetEvent]
mov edx, dword [esi + 0x2b34]
push 0x7d0
push edx
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x79c31e
push 0x878bdc
call fcn.007a3890
add esp, 4
push eax
push edi
call fcn.0079b800
mov eax, dword [esi + 0x2b34]
add esp, 8
push 0
push eax
call dword [sym.imp.kernel32.dll_TerminateThread]
mov ecx, dword [esi + 0x2b34]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esi + 0x2b30]
test eax, eax
je 0x79c33c
push eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
push 0x878bc8
mov dword [esi + 0x2b90], 0
mov dword [esi + 0x2b94], 0
call fcn.007a3890
add esp, 4
push eax
push edi
call fcn.0079b800
add esp, 8
mov al, 1
pop edi
pop esi
ret

Function at 0x79c370
Capabilities:
Create udp socket
Initialize winsock library
Resolve dns
Send data
Send data on socket

Disassembly:
sub esp, 0x1a0
lea eax, [esp + 0x10]
push ebx
push ebp
push eax
mov ebp, ecx
push 0x202
call dword [sym.imp.ws2_32.dll_WSAStartup]
test eax, eax
je 0x79c399
pop ebp
xor eax, eax
pop ebx
add esp, 0x1a0
ret
push 0
push 2
push 2
call dword [sym.imp.ws2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x79c3b7
pop ebp
xor eax, eax
pop ebx
add esp, 0x1a0
ret
push 0x3a98
mov word [esp + 0xc], 2
call dword [sym.imp.ws2_32.dll_htons]
push 0x888868
mov word [esp + 0xe], ax
call dword [sym.imp.ws2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x79c422
push 0x888868
call dword [sym.imp.ws2_32.dll_gethostbyname]
test eax, eax
jne 0x79c403
push ebx
call dword [sym.imp.ws2_32.dll_closesocket]
pop ebp
xor eax, eax
pop ebx
add esp, 0x1a0
ret
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
push esi
mov eax, ecx
push edi
mov esi, dword [edx]
lea edi, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
lea ecx, [ebp + 0x1468]
call fcn.007a2600
test eax, eax
jne 0x79c443
push ebx
call dword [sym.imp.ws2_32.dll_closesocket]
pop ebp
xor eax, eax
pop ebx
add esp, 0x1a0
ret
mov ecx, dword [eax]
lea edx, [esp + 8]
push 0x10
push edx
add ecx, 4
push 0
push ecx
push eax
push ebx
call dword [sym.imp.ws2_32.dll_sendto]
test eax, eax
jne 0x79c470
push ebx
call dword [sym.imp.ws2_32.dll_closesocket]
pop ebp
xor eax, eax
pop ebx
add esp, 0x1a0
ret
cmp eax, 0xffffffff
push ebx
jne 0x79c487
call dword [sym.imp.ws2_32.dll_closesocket]
pop ebp
xor eax, eax
pop ebx
add esp, 0x1a0
ret
call dword [sym.imp.ws2_32.dll_closesocket]
pop ebp
mov eax, 1
pop ebx
add esp, 0x1a0
ret
Function at 0x79c590
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x1c]
push 1
push ecx
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
xor edi, edi
call dword [sym.imp.advapi32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x79c5db
push edi
push edi
lea edx, [esp + 0x24]
push 1
push edx
call dword [sym.imp.advapi32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x79c5db
lea edi, [esp + 0x10]
push 0x878c4c
call fcn.007a3890
mov ebx, dword [sym.imp.kernel32.dll_CreateMutexA]
add esp, 4
push eax
push 0
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x79c643
push 0x878c40
call fcn.007a3890
add esp, 4
push eax
push esi
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x79c643
mov esi, dword [sym.imp.kernel32.dll_GetLastError]
call esi
call esi
push eax
push 0x878c1c
call fcn.007a3890
add esp, 4
add ebp, 0x24
push eax
push ebp
call fcn.0079b800
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
jne 0x79c663
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 8
mov eax, dword [esp + 0x38]
test eax, eax
je 0x79c691
mov eax, dword [esp + 0x34]
push eax
push esi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x79c698
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 8
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret 8
Function at 0x79c6b0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x1c]
push 1
push ecx
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
xor edi, edi
call dword [sym.imp.advapi32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x79c6fb
push edi
push edi
lea edx, [esp + 0x24]
push 1
push edx
call dword [sym.imp.advapi32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x79c6fb
lea edi, [esp + 0x10]
push 0x8789bc
call fcn.007a3890
mov ebx, dword [sym.imp.kernel32.dll_CreateMutexA]
add esp, 4
push eax
push 0
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x79c763
push 0x8789b0
call fcn.007a3890
add esp, 4
push eax
push esi
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x79c763
mov esi, dword [sym.imp.kernel32.dll_GetLastError]
call esi
call esi
push eax
push 0x878c7c
call fcn.007a3890
add esp, 4
add ebp, 0x24
push eax
push ebp
call fcn.0079b800
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
jne 0x79c7b0
mov eax, dword [esp + 0x34]
push eax
push esi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x79c7b0
push 0x878c60
call fcn.007a3890
add esp, 4
add ebp, 0x24
push eax
push ebp
call fcn.0079b800
add esp, 8
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 4
push esi
call dword [sym.imp.kernel32.dll_ReleaseMutex]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret 4

Function at 0x79c7d0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
mov al, byte [0x888865]
test al, al
je 0x79c7e3
xor eax, eax
mov esp, ebp
pop ebp
ret
mov al, byte [ecx + 0x2b79]
mov dword [ebp - 4], 0
test al, al
je 0x79c80b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov al, byte fs:[0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x79db10
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x80764b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
push ebx
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
call fcn.007a7180
mov ebx, dword [esp + 0x430]
lea eax, [esp + 8]
push eax
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x430], 0
call fcn.007a7250
test al, al
jne 0x79dbb2
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
call edi
mov eax, dword [0x88896c]
test eax, eax
je 0x79dbb2
push esi
mov esi, dword [esp + 0x420]
call edi
push eax
push esi
push ebx
push 0x879378
call fcn.007a3890
mov ecx, dword [0x88896c]
add esp, 4
add ecx, 0x24
push eax
push ecx
call fcn.0079b800
add esp, 0x14
pop esi
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x879344
call fcn.007a3890
add esp, 4
push eax
push 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
pop edi
pop ebx
test eax, eax
jne 0x79dc59
cmp dword [esp + 0xc], 2
jne 0x79dc19
mov eax, dword [esp + 0x42c]
lea ecx, [esp + 0x10]
lea edx, [esp + 4]
push ecx
push edx
push 0
push 0
push eax
call fcn.007a3890
mov ecx, dword [esp + 0x1c]
add esp, 4
push eax
push ecx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [esp]
mov ecx, dword [esp + 4]
cmp eax, ecx
je 0x79dc88
mov edx, dword [0x88896c]
test edx, edx
je 0x79dcbf
push ecx
push eax
push 0x87932c
call fcn.007a3890
add esp, 4
push eax
mov eax, dword [0x88896c]
add eax, 0x24
push eax
jmp 0x79dcb7
mov ecx, dword [0x88896c]
test ecx, ecx
je 0x79dc84
push eax
push 0x879314
call fcn.007a3890
mov ecx, dword [0x88896c]
add esp, 4
add ecx, 0x24
push eax
push ecx
call fcn.0079b800
add esp, 0xc
mov eax, dword [esp]
mov ecx, dword [esp + 0x430]
cmp eax, ecx
je 0x79dcea
mov edx, dword [0x88896c]
test edx, edx
je 0x79dcbf
push ecx
push eax
push 0x8792fc
call fcn.007a3890
mov edx, dword [0x88896c]
add esp, 4
add edx, 0x24
push eax
push edx
call fcn.0079b800
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x420], 0xffffffff
call fcn.007a71c0
xor al, al
mov ecx, dword [esp + 0x418]
mov dword fs:[0], ecx
add esp, 0x424
ret
lea ecx, [esp + 0x14]
mov dword [esp + 0x420], 0xffffffff
call fcn.007a71c0
mov ecx, dword [esp + 0x418]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x424
ret
Function at 0x79ed50
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x540
push ebx
lea eax, [esp + 0x33c]
push 0x104
xor bl, bl
push eax
push 0
mov byte [esp + 0x13], bl
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
push 0
push 0
lea ecx, [esp + 0x13c]
push 0x104
lea edx, [esp + 0x348]
push ecx
push edx
call fcn.007a8807
add esp, 4
inc eax
push eax
lea eax, [esp + 0x350]
push eax
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
lea ecx, [esp + 0x134]
push 0x5c
push ecx
call fcn.007ab5b1
add esp, 8
test eax, eax
je 0x79edbf
mov byte [eax], bl
lea edx, [esp + 8]
push edx
push 3
push 0
push 0x879608
call fcn.007a3890
add esp, 4
push eax
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x79ef34
push ebp
mov edx, dword [esp + 0xc]
push eax
push eax
mov ebx, dword [sym.imp.advapi32.dll_RegEnumValueA]
push eax
push eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x44]
push eax
push ecx
push 0
push edx
mov dword [esp + 0x30], 0x104
mov ebp, 1
call ebx
cmp eax, 0x103
je 0x79ef1c
push esi
push edi
test eax, eax
jne 0x79eeea
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x244]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x5c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x248]
push ecx
call fcn.007ab5b1
add esp, 8
test eax, eax
je 0x79ee68
mov byte [eax], 0
lea edx, [esp + 0x140]
lea eax, [esp + 0x244]
push edx
push eax
call fcn.007ab392
add esp, 8
test eax, eax
jne 0x79eeea
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push eax
lea eax, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x79eeea
mov eax, dword [0x88896c]
test eax, eax
je 0x79eed1
lea edx, [esp + 0x1c]
push edx
push 0x8795f0
call fcn.007a3890
add esp, 4
push eax
mov eax, dword [0x88896c]
add eax, 0x24
push eax
call fcn.0079b800
add esp, 0xc
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.advapi32.dll_RegDeleteValueA]
test eax, eax
jne 0x79eeea
mov byte [esp + 0x13], 1
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push 0
lea edx, [esp + 0x4c]
mov eax, ebp
push ecx
push edx
push eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x34], 0x104
push eax
inc ebp
call ebx
cmp eax, 0x103
jne 0x79ee21
pop edi
pop esi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov al, byte [esp + 0xb]
pop ebp
pop ebx
add esp, 0x540
ret
mov al, bl
pop ebx
add esp, 0x540
ret