joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101c323
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
xor esi, esi
xor eax, eax
cmp dword [ebp + 0x1c], esi
push edi
setne al
mov edi, 0x80
inc eax
mov dword [ebp + 0x1c], eax
add edi, edi
test esi, esi
je 0x101c356
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [edi + edi]
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x101c3a1
cmp dword [ebp + 0x18], 0
je 0x101c381
push dword [ebp + 8]
push edi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
jmp 0x101c3a3
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x101c38d
mov eax, 0x1002ff4
push dword [ebp + 8]
push edi
push esi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x101c3a3
xor eax, eax
mov ecx, edi
sub ecx, dword [ebp + 0x1c]
cmp eax, ecx
jae 0x101c344
cmp dword [ebp + 0x14], 0
jne 0x101c3cb
test esi, esi
je 0x101c3d8
test eax, eax
jne 0x101c3cb
push esi
push eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x101c3cb
xor esi, esi
test esi, esi
je 0x101c3d8
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x101c3d8
mov dword [eax], edi
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x1c
Function at 0x101ce1e
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1023018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x14], 0
push esi
push edi
mov esi, 0x1009fac
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
test eax, eax
jne 0x101ce4e
inc eax
jmp 0x101cff1
push eax
call fcn.01011186
movzx esi, ax
xor eax, eax
cmp ax, si
jne 0x101ce68
mov eax, 0x80070057
jmp 0x101cff1
lea eax, [ebp - 0x14]
push eax
call fcn.0101c8af
mov dword [ebp - 0x10], eax
test eax, eax
jl 0x101cfee
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
lea ecx, [esi - 0x61]
movzx edi, si
cmp cx, 0x19
lea ecx, [edi - 0x20]
jbe 0x101ce93
mov ecx, edi
mov edx, dword [ebp - 0x14]
cmp dword [edx + ecx*4 - 0x104], 0
jne 0x101cec4
push edi
push 0x1009f08
push 0x4000000
push 0x1023a14
call fcn.0100a7d5
add esp, 0x10
mov dword [ebp - 0x10], 1
jmp 0x101cfe6
lea ecx, [esi - 0x61]
cmp cx, 0x19
lea ecx, [edi - 0x20]
jbe 0x101ced2
mov ecx, edi
push ebx
xor ebx, ebx
inc ebx
add ecx, 0xffffffbf
mov edx, ebx
shl edx, cl
test eax, edx
jne 0x101cf1a
add esi, 0xffffff9f
lea eax, [edi - 0x20]
cmp si, 0x19
jbe 0x101ceef
mov eax, edi
mov ecx, dword [ebp - 0x14]
and dword [ecx + eax*4 - 0x104], 0
push edi
push 0x1009e20
push 0x3000000
push 0x1023a14
call fcn.0100a7d5
add esp, 0x10
mov dword [ebp - 0x10], ebx
jmp 0x101cfe5
lea eax, [esi - 0x61]
cmp ax, 0x19
lea eax, [edi - 0x20]
jbe 0x101cf28
mov eax, edi
mov ecx, dword [ebp - 0x14]
push edi
push 0x1009db0
mov ebx, 0x4000000
lea eax, [ecx + eax*4 - 0x104]
dec dword [eax]
push ebx
push 0x1023a14
call fcn.0100a7d5
lea eax, [esi - 0x61]
add esp, 0x10
cmp ax, 0x19
lea eax, [edi - 0x20]
jbe 0x101cf5b
mov eax, edi
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + eax*4 - 0x104], 0
jne 0x101cfe5
push 0
lea eax, [ebp - 0xc]
push eax
push 2
mov word [ebp - 0xc], si
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
je 0x101cf94
push edi
push 0x1009d40
push ebx
push 0x1023a14
call fcn.0100a7d5
add esp, 0x10
jmp 0x101cfe5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xffff
mov esi, 0x80070000
test eax, eax
jle 0x101cfae
and eax, ebx
or eax, esi
test eax, eax
jge 0x101cfc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101cfbe
and eax, ebx
or eax, esi
mov dword [ebp - 0x10], eax
jmp 0x101cfca
mov dword [ebp - 0x10], 0x80004005
push dword [ebp - 0x10]
push edi
push 0x1009cb0
push 0x2000000
push 0x1023a14
call fcn.0100a7d5
add esp, 0x14
pop ebx
push dword [ebp - 0x14]
call fcn.0101c9e5
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0100b8c5
leave
ret 4
Function at 0x101d0be
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], 0x208
mov dword [ebp - 0x18], esi
cmp eax, esi
jne 0x101d0ea
mov eax, 0x80070057
jmp 0x101d21e
push ebx
push edi
mov dword [eax], esi
mov ebx, 0xffff
mov edi, 0x80070000
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
push 8
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x101d141
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x101d129
and eax, ebx
or eax, edi
test eax, eax
jge 0x101d13a
call esi
test eax, eax
jle 0x101d135
and eax, ebx
or eax, edi
mov dword [ebp - 4], eax
jmp 0x101d141
mov dword [ebp - 4], 0x80004005
xor esi, esi
cmp dword [ebp - 4], esi
jl 0x101d1e6
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0xc]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov esi, eax
test esi, esi
jne 0x101d171
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x101d1ae
cmp esi, dword [ebp - 0x18]
jne 0x101d1ae
cmp dword [ebp - 0x14], 0
je 0x101d1ae
test esi, esi
jne 0x101d1b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101d190
and eax, ebx
or eax, edi
test eax, eax
jge 0x101d1a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101d1a0
and eax, ebx
or eax, edi
mov dword [ebp - 4], eax
jmp 0x101d1b5
mov dword [ebp - 4], 0x80004005
jmp 0x101d1b5
mov dword [ebp - 0x10], 1
cmp dword [ebp - 4], 0
mov dword [ebp - 0x18], esi
jl 0x101d1e6
cmp dword [ebp - 0x10], 0
je 0x101d1e6
xor esi, esi
cmp dword [ebp - 8], esi
je 0x101d1dc
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
add dword [ebp - 0xc], 0x208
mov dword [ebp - 8], esi
inc dword [ebp - 0x14]
xor esi, esi
cmp dword [ebp - 4], esi
jl 0x101d203
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x101d0f8
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ebp - 8], esi
pop edi
pop ebx
cmp dword [ebp - 8], esi
je 0x101d21b
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
pop esi
leave
ret 4
Function at 0x101e86e
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
push edi
push 0x63
call esi
mov ebx, eax
cmp ebx, 0xc0000023
je 0x101e89e
cmp ebx, edi
jl 0x101e912
mov ebx, 0xc0000001
jmp 0x101e912
mov eax, dword fs:[0x18]
push dword [ebp - 4]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
jne 0x101e8c1
mov ebx, 0xc000009a
jmp 0x101e8f9
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 0x63
call esi
mov ebx, eax
test ebx, ebx
jl 0x101e8f9
movzx eax, word [edi]
mov ecx, dword [ebp + 0x10]
add eax, 2
mov dword [ecx], eax
cmp eax, dword [ebp + 0xc]
jbe 0x101e8ea
mov ebx, 0xc0000023
jmp 0x101e8f9
push eax
push dword [edi + 4]
push dword [ebp + 8]
call sub.msvcrt.dll_memcpy
add esp, 0xc
test edi, edi
je 0x101e912
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x101e968
Capabilities:
Get process heap flags
Get storage device properties

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x1023018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x44], esi
call fcn.0101f772
test al, al
jne 0x101e993
xor eax, eax
jmp 0x101eade
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
push 1
push 0x10200a0
push 0x102007a
push esi
call fcn.0101ef66
mov ebx, dword [sym.imp.ntdll.dll_RtlFreeHeap]
test eax, eax
jl 0x101eac3
cmp dword [ebp - 0x40], 4
jb 0x101eac3
push dword [ebp - 0x3c]
shr dword [ebp - 0x40], 1
call sub.msvcrt.dll__wcslwr
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x1020044
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
call fcn.0100b930
add esp, 0x1c
cmp eax, 3
jne 0x101eac3
cmp dword [ebp - 0x54], esi
jne 0x101eac3
cmp dword [ebp - 0x4c], esi
jne 0x101eac3
cmp dword [ebp - 0x48], esi
jne 0x101eac3
lea eax, [ebp - 0x50]
push eax
push 0x1020002
call fcn.0101f0b2
test eax, eax
jl 0x101eac3
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [ebp - 0x3c]
push esi
push dword [eax + 0x18]
call ebx
mov edx, dword [ebp - 0x50]
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xa
stosd dword es:[edi], eax
pop ecx
xor eax, eax
push 0x28
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.0101f67e
cmp eax, esi
pop edi
jge 0x101ea7e
cmp eax, 0xc000003a
jmp 0x101ea82
cmp dword [ebp - 0x1c], 7
jne 0x101eac3
push 0x101ffc0
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x74]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x6c]
push eax
push 0x20001
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x6c], 0x18
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x60], 0x40
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
call dword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
cmp dword [ebp - 0x3c], esi
je 0x101eada
push dword [ebp - 0x3c]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call ebx
mov eax, dword [ebp - 0x44]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0100b8c5
leave
ret
Function at 0x101eb1c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push edi
push 0x1020002
lea eax, [ebp - 0x14]
xor edi, edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
push 0x20001
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
mov ebx, eax
cmp ebx, edi
jge 0x101eb98
cmp ebx, 0xc0000017
je 0x101ec2c
cmp ebx, 0xc000009a
je 0x101ec2c
mov ebx, 0xc0000452
jmp 0x101ec2c
push dword [ebp - 4]
call fcn.0101eaf0
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0xc], edi
call esi
mov esi, dword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov ebx, eax
cmp ebx, 0xc0000023
je 0x101ebd5
cmp ebx, edi
jl 0x101ec2c
mov ebx, 0xc0000001
jmp 0x101ec2c
mov eax, dword fs:[0x18]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
add ecx, 2
push ecx
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x101ebfd
mov ebx, 0xc000009a
jmp 0x101ec2c
mov dword [ebp - 0x10], eax
mov ax, word [ebp - 0xc]
mov word [ebp - 0x12], ax
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov ebx, eax
cmp ebx, edi
jl 0x101ec2c
movzx ecx, word [ebp - 0x14]
mov eax, dword [ebp - 8]
shr ecx, 1
xor edx, edx
mov word [eax + ecx*2], dx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp dword [ebp - 4], edi
je 0x101ec3a
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
cmp ebx, edi
jge 0x101ec59
cmp dword [ebp - 8], edi
je 0x101ec59
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x101ecf6
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword fs:[0x18]
push ebx
push esi
xor ebx, ebx
push 0x6a
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
mov byte [ebp - 1], bl
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
cmp eax, ebx
jne 0x101ed37
mov esi, 0xc0000017
jmp 0x101ee60
test byte [ebp + 0xc], 1
push edi
je 0x101ed55
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0101ec68
mov esi, eax
cmp esi, ebx
jge 0x101eea7
push ebx
push 0x18
lea eax, [ebp - 0x34]
push eax
push 7
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp esi, ebx
jl 0x101ee49
mov dword [ebp + 0xc], ebx
cmp dword [ebp - 0x34], ebx
jbe 0x101ee44
push ebx
push dword [ebp + 0xc]
push 0x102019c
push 0x35
push dword [ebp - 0x14]
call fcn.0100b9e5
add esp, 0x14
cmp dword [ebp - 8], ebx
je 0x101edae
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [ebp - 8], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
call fcn.0101f332
test eax, eax
jl 0x101ee30
mov eax, dword [ebp - 8]
cmp dword [eax], 1
jne 0x101ee30
mov dword [ebp - 0x1c], ebx
cmp dword [eax + 4], ebx
jbe 0x101ee30
add eax, 0x48
push 4
pop ecx
mov edi, 0x1001560
lea esi, [eax + 8]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x101edf6
cmp byte [ebp - 1], bl
jne 0x101ee0b
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax]
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], ecx
inc dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add eax, 0x90
cmp edx, dword [ecx + 4]
jb 0x101edd1
jmp 0x101ee30
lea eax, [ebp - 0x18]
push eax
call fcn.0101f7d2
test eax, eax
jl 0x101ee9e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call fcn.0101f21a
test eax, eax
jl 0x101ee9e
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x34]
jb 0x101ed7a
cmp byte [ebp - 1], bl
jne 0x101eea5
mov esi, 0xc0000452
push dword [ebp - 0x14]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
cmp dword [ebp - 8], ebx
je 0x101ee7b
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x18], ebx
je 0x101ee96
push dword [ebp - 0x18]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
mov esi, 0xc0000451
jmp 0x101ee49
xor esi, esi
cmp dword [ebp + 8], ebx
jne 0x101eeaf
mov dword [ebp - 0xc], ebx
push dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
push dword [ebp - 0x10]
push 0x102019c
push 0x35
push edi
call fcn.0100b9e5
mov eax, dword [ebp + 0x10]
add esp, 0x14
mov dword [eax], edi
jmp 0x101ee5f
Function at 0x101ef66
Capabilities:
Get process heap flags
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x18]
push ebx
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0x1c]
push edi
push dword [ebp + 0xc]
mov dword [eax], ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
cmp dword [ebp + 0x10], ebx
je 0x101efb4
lea eax, [ebp - 4]
push eax
push 0x20019
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0101eeee
mov edi, eax
cmp edi, ebx
jl 0x101f079
jmp 0x101efba
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.ntdll.dll_NtQueryValueKey]
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov edi, eax
cmp edi, 0xc0000023
je 0x101efee
cmp edi, ebx
jl 0x101f078
mov edi, 0xc0000001
jmp 0x101f078
mov eax, dword fs:[0x18]
push dword [ebp + 0xc]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
mov ebx, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
call ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x101f059
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0xc]
push eax
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov edi, eax
test edi, edi
jl 0x101f078
mov esi, dword [ebp - 8]
mov eax, dword [esi + 4]
cmp eax, dword [ebp + 0x14]
je 0x101f038
mov edi, 0xc0000024
jmp 0x101f078
sub dword [ebp + 0xc], 0xc
mov eax, dword fs:[0x18]
push dword [ebp + 0xc]
mov eax, dword [eax + 0x30]
xor edi, edi
push edi
push dword [eax + 0x18]
call ebx
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
cmp eax, edi
jne 0x101f060
mov edi, 0xc000009a
jmp 0x101f078
push dword [ebp + 0xc]
add esi, 0xc
push esi
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add esp, 0xc
mov dword [ecx], eax
pop esi
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
je 0x101f088
push eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp - 8], 0
je 0x101f0a5
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop ebx
leave
ret 0x18
Function at 0x101f0b2
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x18]
xor esi, esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call edi
mov ebx, dword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call ebx
cmp eax, esi
jl 0x101f20d
push esi
lea eax, [ebp - 0x10]
push eax
call edi
xor edi, edi
mov dword [ebp - 8], esi
jmp 0x101f159
cmp dword [ebp - 0xc], esi
je 0x101f134
push dword [ebp - 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 8]
lea edi, [eax + 2]
mov word [ebp - 0xe], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x101f1d2
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov dword [ebp + 8], eax
cmp eax, 0xc0000023
je 0x101f119
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp + 8], esi
mov dword [ebp - 4], esi
jl 0x101f1ef
movzx eax, word [ebp - 0x10]
mov edx, dword [ebp - 0xc]
shr eax, 1
xor ecx, ecx
mov word [edx + eax*2], cx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp - 4]
push eax
mov word [ebp - 0xe], di
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call ebx
test eax, eax
jge 0x101f159
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov dword [ebp + 8], esi
jmp 0x101f1d9
mov dword [ebp + 8], 0xc000009a
cmp dword [ebp - 4], esi
je 0x101f1ea
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
jge 0x101f20a
cmp dword [ebp - 0xc], esi
je 0x101f20a
push dword [ebp - 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x101f957
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0100b900
mov eax, dword [0x1023018]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x2008], 0
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x101f996
and dword [ebp - 0x2008], edi
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x101fab8
push esi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x2004]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push esi
lea eax, [ebp - 0x2004]
push eax
push 0x1008c08
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp eax, 0xffe
jne 0x101f9dd
and dword [ebp - 0x2008], 0
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x101fab7
xor eax, eax
xor ecx, ecx
lea esi, [ebp - 0x2004]
cmp word [ebp + ecx*2 - 0x2004], ax
jne 0x101f9ff
cmp word [ebp + ecx*2 - 0x2002], ax
je 0x101fab7
cmp ecx, 0xfff
jae 0x101fab7
cmp word [esi], ax
jne 0x101fa13
inc esi
inc esi
inc ecx
mov edi, esi
jmp 0x101fa1a
inc esi
inc esi
inc ecx
cmp word [esi], ax
jne 0x101fa17
cmp ebx, eax
je 0x101fa2e
mov edx, dword [ebp - 0x2008]
cmp edx, dword [ebp + 8]
je 0x101fa3a
cmp edi, esi
je 0x101f9e7
inc dword [ebp - 0x2008]
jmp 0x101f9e7
push 0x3d
push edi
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
mov dword [ebp - 0x200c], eax
test eax, eax
je 0x101fa50
mov esi, eax
sub esi, edi
sar esi, 1
cmp esi, dword [ebp + 0x10]
jb 0x101fa5d
push 0x7a
jmp 0x101faaa
push esi
push edi
push dword [ebp + 0x10]
push ebx
call fcn.0101946b
push 2
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call fcn.01019403
movzx eax, ax
test eax, eax
je 0x101faa3
cmp eax, 0x7f
je 0x101faa3
mov eax, dword [ebp - 0x200c]
test eax, eax
je 0x101fab7
add eax, 2
push eax
call sub.msvcrt.dll__wtoi
or eax, 0x10000000
pop ecx
mov dword [ebp - 0x2008], eax
jmp 0x101fab7
xor eax, eax
mov word [ebx], ax
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
and dword [ebp - 0x2008], 0
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2008]
pop edi
xor ecx, ebp
pop ebx
call fcn.0100b8c5
leave
ret 0x10

Function at 0x401396
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
push esi
mov esi, ecx
cmp dword [0x40b0c4], edx
jne 0x4013d5
push ebx
push edi
push 8
mov ecx, edx
pop edi
mov ebx, ecx
and bl, 1
movzx ebx, bl
neg ebx
sbb ebx, ebx
and ebx, 0xedb88320
shr ecx, 1
xor ecx, ebx
dec edi
jne 0x4013aa
mov dword [edx*4 + 0x40b0c0], ecx
inc edx
cmp edx, 0x100
jl 0x4013a5
pop edi
pop ebx
not esi
jmp 0x4013f3
movzx ecx, byte [eax]
dec dword [esp + 8]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x40b0c0]
inc eax
cmp dword [esp + 8], 0
ja 0x4013d9
mov eax, esi
not eax
pop esi
ret 4