joyce8/EMBER2024-capa huggingface dataset:
Function at 0x11414
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push 5
mov dword [ebp - 4], eax
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [ebp - 8], eax
cmp eax, 0xc0000004
jne 0x114bb
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
push edi
mov edi, 0x6a6a6a6b
jmp 0x11474
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [ebp - 8], eax
cmp eax, 0xc0000004
jne 0x11489
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
add dword [ebp - 4], 0x5000
push edi
push dword [ebp - 4]
push 1
call esi
mov ebx, eax
test ebx, ebx
jne 0x1144b
mov dword [ebp - 8], 0xc000009a
cmp dword [ebp - 8], 0
jl 0x114ab
mov esi, ebx
mov eax, dword [esi + 0x44]
test eax, eax
je 0x114a1
push dword [esi + 0x48]
push eax
call fcn.00013269
mov eax, dword [esi]
test eax, eax
je 0x114ab
add esi, eax
jmp 0x11491
test ebx, ebx
je 0x114b8
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 8]
leave
ret

Function at 0x11d50
Capabilities:
Register minifilter driver
Start minifilter driver

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0x15118
push 0x13da4
push dword [ebp + 8]
call sub.FLTMGR.SYS_FltRegisterFilter
test eax, eax
jne 0x11d7a
push dword [0x15118]
call sub.FLTMGR.SYS_FltStartFiltering
test eax, eax
jne 0x11d7a
pop ebp
ret 4
Function at 0x121c2
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, 0x400
push eax
push 1
mov byte [ebp - 0x10], 1
mov dword [ebp - 8], eax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
xor ebx, ebx
mov edi, eax
push dword [ebp - 0x10]
mov esi, dword [ebp - 8]
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push edi
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_NtQueryDirectoryFile]
mov dword [ebp - 4], eax
cmp eax, 0x103
jne 0x12229
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwWaitForSingleObject]
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x12229
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, 0x80000005
je 0x1223a
cmp eax, 0xc0000004
jne 0x12253
push ebx
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea eax, [esi + esi]
push eax
push 1
mov dword [ebp - 8], eax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
jmp 0x121e4
cmp eax, 0x80000006
je 0x1228d
cmp eax, ebx
jl 0x12290
push dword [ebp + 0x1c]
mov dword [ebp - 0xc], ebx
mov esi, edi
push edi
jmp 0x1227c
mov esi, dword [esi]
cmp esi, ebx
je 0x12285
add dword [ebp - 0xc], esi
mov eax, dword [ebp - 0xc]
push dword [ebp + 0x1c]
lea esi, [eax + edi]
push esi
call dword [ebp + 0x18]
test al, al
jne 0x12269
jmp 0x12290
mov byte [ebp - 0x10], bl
jmp 0x121e6
mov dword [ebp - 4], ebx
push ebx
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x123d2
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor esi, esi
stosd dword es:[edi], eax
push 0x123b4
push esi
push esi
lea eax, [ebp - 0x20]
push eax
mov edi, 0x1f03ff
push edi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], 0x200
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
jl 0x12452
push esi
lea eax, [ebp - 8]
push eax
mov eax, dword [sym.imp.ntoskrnl.exe_PsThreadType]
push esi
push dword [eax]
push edi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
test eax, eax
jl 0x12452
push esi
push esi
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
pop edi
xor eax, eax
pop esi
leave
ret 4
Function at 0x125fc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x13dd4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xa
pop eax
push 0xc
mov word [ebp - 0x24], ax
pop eax
mov word [ebp - 0x22], ax
push 0x13de0
lea eax, [ebp - 0x44]
xor esi, esi
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], 0x138d6
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
push 0x20019
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], 0x40
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x12787
lea eax, [ebp - 0x1c]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, esi
jge 0x126ac
cmp eax, 0x80000005
je 0x126ac
cmp eax, 0xc0000023
je 0x126ac
push dword [ebp - 0x18]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x12787
push ebx
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ebx, 0x6a6a6a6b
push ebx
push dword [ebp - 0x1c]
push esi
call edi
mov esi, eax
test esi, esi
jne 0x126d4
push dword [ebp - 0x18]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x12785
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x24]
push esi
push 2
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jl 0x12773
mov eax, dword [esi + 8]
test eax, eax
je 0x12773
cmp eax, 0x12c
jae 0x12773
push ebx
push 0x400
push 1
call edi
mov dword [0x15120], eax
test eax, eax
je 0x12773
lea ecx, [eax + 8]
mov dword [eax + 4], ecx
mov ecx, dword [0x15120]
mov eax, 0x3e8
mov word [ecx + 2], ax
mov ecx, dword [0x15120]
xor eax, eax
push 0x138e2
mov word [ecx], ax
push dword [0x15120]
call dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
mov eax, dword [esi + 8]
dec eax
dec eax
push eax
lea eax, [esi + 0xc]
push eax
mov eax, dword [0x15120]
movzx ecx, word [eax]
add ecx, dword [eax + 4]
push ecx
call sub.ntoskrnl.exe_memcpy
mov cx, word [esi + 8]
mov eax, dword [0x15120]
sub cx, 2
add esp, 0xc
add word [eax], cx
push dword [ebp - 0x18]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00012b2f
leave
ret
Function at 0x12c5a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x13dd4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 4
mov dword [ebp - 0x28], eax
pop eax
push 6
mov word [ebp - 0x24], ax
pop eax
mov word [ebp - 0x22], ax
push 0x13de0
lea eax, [ebp - 0x48]
xor ebx, ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], 0x13adc
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
push 0x2001f
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x40], 0x18
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], 0x40
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, ebx
jl 0x12d6b
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
push edi
lea eax, [ebp - 0x1c]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x18]
call esi
cmp eax, ebx
jge 0x12d13
cmp eax, 0x80000005
je 0x12d13
cmp eax, 0xc0000023
je 0x12d13
mov esi, eax
push dword [ebp - 0x18]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x12d67
push 0x6a6a6a6b
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
cmp edi, ebx
jne 0x12d2f
mov esi, 0xc000009a
jmp 0x12d08
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x24]
push edi
push 2
push eax
push dword [ebp - 0x18]
call esi
mov esi, eax
cmp esi, ebx
jl 0x12d56
cmp dword [edi + 4], 4
jne 0x12d56
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
push dword [ebp - 0x18]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push ebx
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00012b2f
leave
ret 4

Function at 0x12d7f
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push 4
pop eax
push 6
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x13de0
lea eax, [ebp - 0x14]
xor esi, esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], 0x13adc
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
push 0x2001f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, esi
jl 0x12e17
push edi
push 4
lea eax, [ebp + 8]
push eax
push 4
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
push dword [ebp - 4]
mov edi, eax
cmp edi, esi
jl 0x12e0e
call dword [sym.imp.ntoskrnl.exe_ZwFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x12e77
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x6a6a6a6b
lea eax, [ebx + ebx]
push eax
xor esi, esi
push 1
mov dword [ebp - 4], esi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
test edi, edi
jne 0x12ea8
xor al, al
jmp 0x12fc6
lea eax, [ebx + ebx]
push eax
push 0
push edi
call sub.ntoskrnl.exe_memset
add esp, 0xc
test ebx, ebx
jle 0x12fab
mov eax, dword [ebp + 8]
mov dword [ebp - 8], 1
sub dword [ebp - 8], eax
mov dword [ebp - 0xc], 2
sub dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
add eax, ecx
movzx ecx, byte [eax]
shr ecx, 2
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 8]
mov byte [edi + esi], cl
mov cl, byte [eax]
and cl, 3
add edx, eax
inc esi
shl cl, 4
cmp edx, ebx
jge 0x12f91
mov ebx, dword [ebp - 4]
mov edx, dword [ebp + 8]
lea edx, [ebx + edx + 1]
movzx ebx, byte [edx]
movzx ecx, cl
shr ebx, 4
or ebx, ecx
mov ecx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov cl, byte [ebx + ecx]
mov ebx, dword [ebp + 0xc]
mov byte [edi + esi], cl
mov cl, byte [edx]
mov edx, dword [ebp - 0xc]
and cl, 0xf
add edx, eax
inc esi
shl cl, 2
cmp edx, ebx
jge 0x12f80
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
movzx edx, byte [edx + eax + 2]
movzx ecx, cl
shr edx, 6
or edx, ecx
mov ecx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov cl, byte [edx + ecx]
mov byte [edi + esi], cl
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + eax + 2]
mov edx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
add dword [ebp - 4], 3
and ecx, 0x3f
mov cl, byte [ecx + edx]
inc esi
mov byte [edi + esi], cl
inc esi
cmp dword [ebp - 4], ebx
jl 0x12ed6
jmp 0x12fab
movzx eax, cl
mov ecx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov al, byte [eax + ecx]
mov byte [edi + esi], al
jmp 0x12fa5
movzx eax, cl
mov ecx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov al, byte [eax + ecx]
mov byte [edi + esi], al
inc esi
mov byte [edi + esi], 0x3d
inc esi
mov byte [edi + esi], 0x3d
inc esi
xor eax, eax
test esi, esi
jle 0x12fba
add byte [edi + eax], 0x88
inc eax
cmp eax, esi
jl 0x12fb1
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1001b41
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
xor edi, edi
cmp esi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edi
je 0x1001bc2
cmp dword [ebp + 0xc], ebx
je 0x1001bc2
push esi
call dword [sym.imp.ntdll.dll_wcslen]
pop ecx
xor ecx, ecx
test eax, eax
mov dword [ebp - 0xc], eax
jbe 0x1001bb8
cmp word [esi + ecx*2], 0x25
jne 0x1001b18
inc ebx
inc ecx
cmp ecx, eax
jb 0x1001b10
test ebx, ebx
je 0x1001bb8
add ebx, eax
shl ebx, 1
lea eax, [ebx + 2]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
test eax, eax
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x1001bca
xor ecx, ecx
mov dword [ebp + 0xc], ecx
cmp word [esi + ecx*2], 0x25
jne 0x1001b89
mov edx, dword [ebp - 4]
cmp ecx, edx
jbe 0x1001b74
sub ecx, edx
mov dword [ebp - 4], ecx
lea esi, [esi + edx*2]
lea edi, [eax + edi*2]
rep movsw word es:[edi], word [esi]
mov ecx, dword [ebp - 4]
add dword [ebp - 8], ecx
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov word [eax + edi*2], 0x25
mov word [eax + edi*2 + 2], 0x25
inc edi
inc edi
inc dword [ebp - 4]
mov dword [ebp - 8], edi
inc ecx
cmp ecx, dword [ebp - 0xc]
mov dword [ebp + 0xc], ecx
jb 0x1001b46
mov edx, dword [ebp - 4]
cmp ecx, edx
jbe 0x1001bb1
sub ecx, edx
shl ecx, 1
lea esi, [esi + edx*2]
mov edx, ecx
shr ecx, 2
lea edi, [eax + edi*2]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
and word [ebx + eax], 0
jmp 0x1001bbe
mov eax, dword [ebp + 0xc]
and dword [eax], 0
mov al, 1
jmp 0x1001bcc
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
push 0x47
pop ecx
push 7
xor eax, eax
push 0x40
push eax
lea edi, [ebp - 0x11c]
rep stosd dword es:[edi], eax
push eax
mov dword [ebp - 0x11c], 0x11c
mov word [ebp - 4], 0x110
call fcn.01003180
push edx
push eax
push 0x40
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
pop edi
leave
ret

Function at 0x100210b
Capabilities:
Enumerate files on windows

Disassembly:
mov edx, dword [esp + 4]
movzx ecx, word [edx + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [edx + 0xc]
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
cmp dword [esp + 0x10], 0
rep stosb byte es:[edi], al
pop edi
pop esi
je 0x1002110
mov eax, dword [edx + 0xc]
mov byte [eax], 1
ret 8
Function at 0x9300dc
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x9300e2
pop ebp
sub ebp, 6
sub ebp, 0x5300dc
jmp 0x930140
jmp 0x930149
mov eax, 0x5300dc
add eax, ebp
add eax, 0x93
mov ecx, 0x627
mov edx, 0x6aa26599
xor byte [eax], dl
inc eax
dec ecx
jne 0x930160
jmp 0x930173
fyl2x
cdq
mov dword [ecx + 0x5599f199], ebx
int1
cdq
push ebp
mov ch, 0x99
stosb byte es:[edi], al
pop ecx
leave
or al, 0xe1
fcom st(0)
cdq
leave
adc dl, byte [edx + edx + 0x10]
movsd dword es:[edi], dword [esi]
cdq
cdq
cdq
sbb byte [eax + 0x61], bl
cdq
cdq
cdq
lcall 0x9999, 0x999f2154
and esi, dword [ecx + 0x6e999999]
jnp 0x930140
push ecx
adc bl, byte [eax]
xchg ebp, eax
cdq
cdq
cdq
lcall 0x90af, 0x8ff1c95c
cdq
int1
pop edi
push ebx
rcr byte [ecx - 0xe424a68], 1
cdq
cdq
cdq
cdq
jno 0x930160
cdq
cdq
cdq
jo 0x93017a
cdq
cdq
cdq
int3
Function at 0x40100b
Capabilities:
Execute shellcode via indirect call
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x4010ad
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x40102e
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011b8
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401048
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011b8
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x401134
mov word [ebx], 0x5c
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011b8
mov dword [ebp - 0x108], eax
push 0x401023
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x4011ad
push 0x3e8
call eax
test eax, eax
je 0x4011ad
push eax
push 0x40
push 0x3000
push 0x10000
push 0
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
je 0x40119a
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
lea eax, [0x4010a7]
jmp 0x4011be
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
lea eax, [0x40108c]
jmp 0x4011be
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
lea eax, [0x40104d]
push 0x10
push 0x4010a7
push eax
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x431002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43100c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x4013ca
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x4b1250], 1
mov dword [0x4b1254], 1
mov dword [0x4b1258], 1
mov dword [0x4b1244], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x401415
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x401438
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x40145a
cmp eax, 0x20b
je 0x40147f
jmp 0x4014aa
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x40146c
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014af
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x401497
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014af
mov eax, 0
leave
ret

Function at 0x4069a7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
call sym._nimErrorFlag_6
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._fread
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
je 0x406a0b
mov eax, dword [ebp - 0x1c]
mov ecx, eax
call sym._checkErr__stdZsyncio_u162_4
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
movzx eax, al
test eax, eax
jmp 0x406a0c
nop
mov eax, dword [ebp - 0x14]
leave
ret 4

Function at 0x407b18
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0xc], 0
je 0x407b3a
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._nimCStrLen_1
mov edx, eax
jmp 0x407b3f
mov edx, 0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fwrite
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fflush
mov dword [ebp - 0x10], eax
nop
leave
ret

Function at 0x410087
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fwrite
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fflush
mov dword [ebp - 0x10], eax
nop
leave
ret
Function at 0x412aaf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x30], str.echoBinSafe
mov dword [ebp - 0x28], 0x48f610
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x24], 0
lea eax, [ebp - 0x34]
mov dword [esp], eax
call sym._nimFrame_7
call sym._nimErrorFlag_7
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x2c], 0xad7
mov dword [esp], 0x4b1094
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call eax
sub esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x2c], 0x12
mov dword [ebp - 0x28], 0x48fdc4
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x2c], 0x13
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x40]
jge 0x412bd6
mov dword [ebp - 0x2c], 0xad8
mov dword [ebp - 0x28], 0x48f610
cmp dword [ebp - 0xc], 0
js 0x412b4c
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x40]
jl 0x412b66
mov eax, dword [ebp - 0x40]
sub eax, 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._raiseIndexError2
jmp 0x412c5f
mov eax, dword [ebp - 0xc]
lea edx, [eax*8]
mov eax, dword [ebp - 0x3c]
add eax, edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], 0xaef
mov dword [esp], 1
mov eax, dword [sym.___acrt_iob_func]
call eax
mov ecx, eax
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._writeWindows__system_u9003_16
sub esp, 0xc
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
movzx eax, al
test eax, eax
jne 0x412c5e
mov dword [ebp - 0x2c], 0xd
mov dword [ebp - 0x28], 0x48fdc4
add dword [ebp - 0xc], 1
jmp 0x412b24
nop
mov dword [ebp - 0x2c], 0xaf3
mov dword [ebp - 0x28], 0x48f610
mov dword [ebp - 0x18], 0
mov dword [esp], 1
mov eax, dword [sym.___acrt_iob_func]
call eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], 0x48f605
call sym._fwrite
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], 0xaf4
mov dword [ebp - 0x1c], 0
mov dword [esp], 1
mov eax, dword [sym.___acrt_iob_func]
call eax
mov dword [esp], eax
call sym._fflush
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xaf8
mov dword [esp], 0x4b1094
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call eax
sub esp, 4
jmp 0x412c5f
nop
call sym._popFrame_7
nop
leave
ret