joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b1600
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7090f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x76e964]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov byte [edi], 0
mov byte [edi + 4], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [ebp - 4], 0
mov byte [edi + 0x34], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov byte [edi + 0x64], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0
lea eax, [edi + 0x94]
mov dword [ebp - 0x10], eax
lea ecx, [eax + 0x408]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
push 0x1000
mov byte [ebp - 4], 3
call fcn.005b5750
mov dword [edi + 0x4a8], 0
mov dword [edi + 0x4ac], 0
mov dword [edi + 0x4b0], 0
mov dword [edi + 0x4b4], 0
mov dword [edi + 0x4b8], 0
mov dword [edi + 0x4bc], 0
mov dword [edi + 0x4c0], 0
mov dword [edi + 0x4c4], 0
mov dword [edi + 0x4c8], 0
mov dword [edi + 0x4cc], 0
mov dword [edi + 0x4d0], 0
mov dword [edi + 0x4d4], 0
mov dword [edi + 0x4d8], 0
mov dword [edi + 0x4dc], 0
mov dword [edi + 0x4e0], 0
mov dword [edi + 0x4e4], 0
mov dword [edi + 0x4e8], 0
mov dword [edi + 0x4ec], 0
mov dword [edi + 0x4f0], 0
mov dword [edi + 0x4f4], 0
mov dword [edi + 0x4f8], 0
mov dword [edi + 0x4fc], 0
mov dword [edi + 0x500], 0
mov dword [edi + 0x504], 0
lea esi, [edi + 0x508]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x10], esi
push 0x2c
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.006dd216
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xor eax, eax
mov dword [edi + 0x524], 0
mov dword [edi + 0x528], 7
mov word [edi + 0x514], ax
mov dword [edi + 0x510], 0x560f64
mov dword [edi + 0x540], eax
mov dword [edi + 0x544], 7
mov word [edi + 0x530], ax
mov dword [edi + 0x52c], 0x560f64
lea esi, [edi + 0x548]
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x10], esi
push 0x14
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.006dd216
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea ecx, [edi + 0x550]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
push 0x400
mov byte [ebp - 4], 0x11
call fcn.005b5750
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5b8f70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x709ac8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x76e964]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov dword [edi], 0x561428
push 0x24
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.006dd216
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 8], eax
push 0x24
mov dword [ebp - 4], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.006dd216
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 0x10], eax
push 0x24
mov byte [ebp - 4], 1
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
call fcn.006dd216
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 0x18], eax
push 0x24
mov byte [ebp - 4], 2
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
call fcn.006dd216
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 0x20], eax
push 0x4c
mov byte [ebp - 4], 3
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.006dd216
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 0x28], eax
push 0x4c
mov byte [ebp - 4], 4
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
call fcn.006dd216
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 0x30], eax
lea esi, [edi + 0x38]
mov byte [ebp - 4], 5
push 0x54
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.006dd216
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x40]
mov byte [ebp - 4], 6
push 0x54
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.006dd216
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x48]
mov byte [ebp - 4], 7
push 0x2c
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.006dd216
add esp, 0x24
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov ecx, edi
mov byte [ebp - 4], 8
call fcn.005b8590
mov ecx, edi
mov byte [edi + 4], al
mov byte [edi + 5], 0
call fcn.005b8660
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5bcb90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x709f0d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x76e964]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
push 0x77f8f8
movlpd qword [ebp - 0x24], xmm0
call fcn.005dee80
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.005deeb0
test byte [0x7730f0], 1
jne 0x5bcd0a
push fcn.005bcb90
call fcn.005def10
mov ecx, eax
add esp, 4
mov dword [ebp - 0x28], ecx
test ecx, ecx
jne 0x5bcc14
push 6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x28]
mov esi, dword [0x773120]
xor ebx, ebx
add esi, ecx
cmp dword [0x773124], ebx
jbe 0x5bcc94
mov edi, dword [esi]
lea eax, [ebp - 0x14]
push eax
push 0x40
add edi, ecx
mov dword [ebp - 0x14], 0
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x5bcc53
push 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 5
lea eax, [esi + 4]
push eax
push edi
call fcn.006f3c10
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x5bcc85
push 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x28]
inc ebx
add esi, 9
cmp ebx, dword [0x773124]
jb 0x5bcc26
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x77f900], eax
push 1
push 0
push 1
mov byte [ebp - 4], 1
call fcn.005bb6e0
add esp, 0xc
lea ecx, [ebp - 0x24]
mov edi, eax
mov esi, edx
call fcn.005deef0
mov ecx, edi
or ecx, esi
je 0x5bcd00
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
call fcn.006ce970
push 0
push 1
push dword [ebp - 0x28]
mov ecx, edi
mov byte [ebp - 4], 2
call dword [0x76649c]
call edi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
call fcn.006cea30
mov dword [0x77f900], 0
lea ecx, [ebp - 0x24]
call fcn.005dee90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006dd760
mov esp, ebp
pop ebp
ret
Function at 0x5ccbe0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70b515
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x76e964]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], esi
mov eax, dword [ecx + 4]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ecx
cmp byte [eax + 0xd], bl
jne 0x5ccc80
mov esi, eax
cmp dword [edi + 0x1c], 0x10
lea edx, [edi + 8]
mov dword [ebp - 0x18], esi
jb 0x5ccc3f
mov edx, dword [edi + 8]
cmp dword [esi + 0x2c], 0x10
lea ecx, [esi + 0x18]
jb 0x5ccc4b
mov ecx, dword [esi + 0x18]
push dword [edi + 0x18]
push edx
push dword [esi + 0x28]
push ecx
call fcn.0059d260
shr eax, 0x1f
add esp, 0x10
test al, al
je 0x5ccc6a
mov esi, dword [esi + 8]
mov ecx, dword [ebp - 0x10]
jmp 0x5ccc71
mov ecx, esi
mov esi, dword [esi]
mov dword [ebp - 0x10], ecx
movzx ebx, al
xor ebx, 1
cmp byte [esi + 0xd], 0
je 0x5ccc30
mov esi, dword [ebp - 0x20]
cmp byte [ecx + 0xd], 0
jne 0x5cccd2
cmp dword [ecx + 0x2c], 0x10
lea eax, [edi + 8]
lea edx, [ecx + 0x18]
jb 0x5ccc95
mov edx, dword [ecx + 0x18]
cmp dword [edi + 0x1c], 0x10
jb 0x5ccc9d
mov eax, dword [eax]
push dword [ecx + 0x28]
push edx
push dword [edi + 0x18]
push eax
call fcn.0059d260
shr eax, 0x1f
add esp, 0x10
test al, al
jne 0x5cccd2
mov ecx, dword [ebp - 0x10]
mov byte [esi + 4], al
mov eax, esi
mov dword [esi], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0x4924924
je 0x5ccd77
mov dword [ebp - 0x2c], eax
push 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 0
call fcn.006dd216
mov edi, eax
add esp, 4
mov dword [ebp - 0x28], edi
mov ecx, dword [ebp - 0x14]
lea esi, [edi + 0x14]
add ecx, 8
mov dword [ebp - 4], 1
push ecx
lea ecx, [esi + 4]
mov dword [edi + 0x10], 0x561768
mov dword [ebp - 0x10], esi
call fcn.00590730
mov ecx, dword [ebp - 0x14]
mov dword [esi], 0x560c38
push edi
push ebx
mov eax, dword [ecx + 0x20]
push dword [ebp - 0x18]
mov dword [edi + 0x30], eax
mov eax, dword [ecx + 0x24]
mov ecx, dword [ebp - 0x1c]
mov dword [edi + 0x34], eax
mov eax, dword [ebp - 0x24]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov word [edi + 0xc], 0
call fcn.00599500
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, ecx
mov byte [ecx + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.0059a0b0
int3
Function at 0x5ddab0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70c80b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x76e964]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
lea esi, [ebx + 0x14]
mov dword [ebx], 0x5617d0
lea ecx, [esi + 4]
mov dword [ebp - 0x14], esi
mov al, byte [edi + 4]
mov byte [ebx + 4], al
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
lea eax, [edi + 0x18]
push eax
call fcn.00590730
mov dword [esi], 0x560c38
add ebx, 0x30
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], ebx
add edi, 0x30
mov dword [ebx], fcn.005958c0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov byte [ebx + 0x10], 1
mov dword [ebx + 0x14], 1
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x5ddc25
mov esi, dword [edi + 8]
test esi, esi
jne 0x5ddb78
xor edi, edi
jmp 0x5ddb7b
mov edi, dword [edi + 4]
mov eax, dword [ebx + 4]
test eax, eax
je 0x5ddba2
cmp dword [ebx + 0x14], 1
jne 0x5ddb99
push dword [ebx + 8]
push 0
push eax
call fcn.006f4190
mov eax, dword [ebx + 4]
add esp, 0xc
push eax
call fcn.006dd25d
add esp, 4
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0
mov byte [ebx + 0x10], 1
test esi, esi
je 0x5ddbf1
push esi
call fcn.006dd254
add esp, 4
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], esi
mov dword [ebx + 8], esi
test edi, edi
je 0x5ddbdf
push esi
push edi
push eax
call fcn.006f3c10
jmp 0x5ddbee
cmp dword [ebx + 0x14], 1
jne 0x5ddbf1
push esi
push 0
push eax
call fcn.006f4190
add esp, 0xc
mov esi, dword [ebx + 0x18]
cmp esi, dword [ebx + 0x1c]
je 0x5ddc25
nop dword [eax]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5ddc1d
mov eax, dword [eax]
push 1
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x76649c]
mov ecx, dword [ebp - 0x14]
call edi
add esi, 4
cmp esi, dword [ebx + 0x1c]
jne 0x5ddc00
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0x560c8c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5df420
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70ca7a
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x76e964]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x14c], 0
call fcn.00597410
push 0
push 2
mov esi, dword [eax + 0x224]
mov ecx, esi
call dword [0x76649c]
call esi
mov esi, eax
mov dword [ebp - 0x148], esi
test esi, esi
jne 0x5df499
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
jmp 0x5df5eb
lea eax, [ebp - 0x148]
mov dword [ebp - 0x158], eax
push 0x124
lea eax, [ebp - 0x140]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.006f4190
add esp, 0xc
mov dword [ebp - 0x144], 0x128
lea eax, [ebp - 0x144]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x5df4fb
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebp - 0x14c], 1
mov dword [ebp - 4], 2
jmp 0x5df5d0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 3
call fcn.006cbea0
mov ebx, eax
nop word [eax + eax]
cmp dword [ebp - 0x12c], ebx
jne 0x5df585
mov edi, dword [ebp - 0x18]
cmp edi, dword [ebp - 0x14]
je 0x5df575
mov esi, dword [ebp - 0x13c]
mov dword [edi], esi
mov dword [edi + 4], 0
call fcn.00597410
push esi
push 0
push 0x1fffff
mov esi, dword [eax + 0x238]
mov ecx, esi
call dword [0x76649c]
call esi
mov dword [edi + 4], eax
add dword [ebp - 0x18], 8
jmp 0x5df585
lea eax, [ebp - 0x13c]
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.005df0e0
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x148]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x5df530
mov ebx, dword [ebp - 0x150]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov dword [ebp - 0x14c], 1
mov dword [ebp - 4], 6
call fcn.00597410
push dword [ebp - 0x148]
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x76649c]
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006dd760
mov esp, ebp
pop ebp
ret
Function at 0x5e6860
Capabilities:
Create directory

Disassembly:
sub esp, 0x28
mov eax, dword [0x76e964]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x10]
push 1
push eax
mov byte [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x5e68bb
push 0
push 0
push 1
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x5e68bb
lea eax, [esp + 0x10]
mov dword [esp + 4], 0xc
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
mov byte [esp + 0x24], 1
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x28]
test eax, eax
pop esi
setne al
xor ecx, esp
call fcn.006dd760
add esp, 0x28
ret
Function at 0x5e71e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70d7bd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x76e964]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x24], edx
lea edx, [ebp - 0x1c]
push edx
push dword [0x76807c]
mov byte [ebp - 0x1d], 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5e7282
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], eax
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x18]
mov dword [edi], 0
push eax
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete bl
test eax, eax
jne 0x5e7270
mov eax, dword [ebp - 0x14]
mov dword [edi], eax
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x5e7285
mov al, byte [ebp - 0x1d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006dd760
mov esp, ebp
pop ebp
ret
Function at 0x5e7310
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70d7fd
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x76e964]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, edi
mov dword [edi + 0x10], 0
cmp dword [edi + 0x14], 0x10
jb 0x5e734f
mov eax, dword [edi]
mov byte [eax], 0
lea eax, [ebp - 0x1c]
push eax
push dword [0x76807c]
push 0
push 0x561fc0
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5e744a
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0x561fac
push esi
call ebx
mov ecx, dword [ebp - 0x18]
cmp ecx, 1
je 0x5e73aa
cmp ecx, 2
jne 0x5e7435
test eax, eax
jne 0x5e7435
push eax
push dword [ebp - 0x14]
mov ecx, edi
call fcn.0059c460
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x5e73c7
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x561fac
push dword [ebp - 0x1c]
call ebx
test eax, eax
jne 0x5e7435
mov ecx, dword [edi + 0x14]
mov eax, edi
cmp ecx, 0x10
jb 0x5e73ec
mov eax, dword [edi]
mov edx, dword [edi + 0x10]
lea ebx, [edx - 1]
add ebx, eax
mov eax, edi
cmp ecx, 0x10
jb 0x5e73fd
mov eax, dword [edi]
sub ebx, eax
mov ecx, 1
mov eax, edx
sub eax, ebx
cmp eax, ecx
cmovb ecx, eax
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x20], ecx
mov eax, edi
jb 0x5e741a
mov eax, dword [edi]
lea ecx, [eax + ebx]
mov eax, dword [ebp - 0x20]
sub edx, eax
add eax, ecx
mov dword [edi + 0x10], edx
sub edx, ebx
inc edx
push edx
push eax
push ecx
call fcn.006f3c10
add esp, 0xc
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x10], 0
je 0x5e747a
push 0x13
push 0x561e0c
mov ecx, edi
call fcn.0059a640
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006dd760
mov esp, ebp
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
push eax
lea ecx, [ebp - 0x24]
call fcn.005e8610
push 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x50]
call fcn.005e86f0
push 0x74f7ac
lea eax, [ebp - 0x50]
push eax
call fcn.006f37e7
int3
Function at 0x5ea5f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x2c]
xor edx, edx
xor eax, eax
mov dword [esp + 4], 0x310030
mov dword [esp + 8], 0x330032
mov dword [esp + 0xc], 0x350034
mov dword [esp + 0x10], 0x370036
mov dword [esp + 0x14], 0x390038
mov dword [esp + 0x18], 0x420041
mov dword [esp + 0x1c], 0x440043
mov dword [esp + 0x20], 0x460045
test ebx, ebx
je 0x5ea67c
push esi
mov esi, dword [esp + 0x34]
push edi
mov edi, dword [esp + 0x30]
nop word [eax + eax]
movzx ecx, byte [eax + edi]
lea edx, [edx + 2]
shr ecx, 4
movzx ecx, word [esp + ecx*2 + 0xc]
mov word [esi + edx*2 - 4], cx
movsx ecx, byte [eax + edi]
inc eax
and ecx, 0xf
movzx ecx, word [esp + ecx*2 + 0xc]
mov word [esi + edx*2 - 2], cx
cmp eax, ebx
jne 0x5ea650
pop edi
pop esi
pop ebx
add esp, 0x20
ret

Function at 0x5eba70
Capabilities:
Clear file content
Get file size
Write file on windows

Disassembly:
sub esp, 0x3c
mov eax, dword [0x76e964]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
mov ebx, dword [ecx]
lea eax, [esp + 0x30]
push ebp
push esi
mov esi, dword [esp + 0x4c]
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x5ebb31
mov ecx, dword [esp + 0x40]
xor edx, edx
cmp edx, ecx
jl 0x5ebb13
mov eax, dword [esp + 0x3c]
jg 0x5ebab0
cmp esi, eax
jbe 0x5ebb13
push 0
push 0
push ecx
push eax
push ebx
call fcn.005eb870
add esp, 0x14
test al, al
je 0x5ebb31
sub esi, dword [esp + 0x3c]
je 0x5ebafe
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 0x200
cmp esi, 0x200
mov edi, esi
push 0
cmova edi, eax
lea eax, [esp + 0x48]
push eax
push edi
push 0x77f9f8
push ebx
call ebp
cmp dword [esp + 0x44], edi
jne 0x5ebb31
mov eax, 0x200
sub esi, edi
jne 0x5ebad4
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.006dd760
add esp, 0x3c
ret 8
push 0
push 0
push edx
push esi
push ebx
call fcn.005eb870
add esp, 0x14
test al, al
je 0x5ebb31
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5ebafe
call sub.KERNEL32.dll_GetLastError
push eax
lea ecx, [esp + 0x40]
call fcn.005e8610
push 0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x18]
call fcn.005e86f0
push 0x74f7ac
lea eax, [esp + 0x14]
push eax
call fcn.006f37e7
int3