joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1011a13
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0xc], 2
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
je 0x1011a35
xor ebx, ebx
jmp 0x1011b35
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
cmp ebx, esi
je 0x1011a2e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push ebx
push 8
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
mov dword [ebp + 0xc], eax
test eax, eax
je 0x1011b0c
push eax
push ebx
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
mov ebx, eax
test ebx, ebx
je 0x1011b0e
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push 0x100427c
push dword [ebp + 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1011b0c
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x1011b0c
cmp dword [ebp - 0x10], ebx
je 0x1011b0c
push 0x208
push 8
call esi
push eax
call edi
mov edi, eax
mov dword [ebp - 0xc], edi
cmp edi, ebx
je 0x1011b0e
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push 0x1004230
push 0x104
push edi
call fcn.0100956b
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1011b0e
cmp dword [ebp - 8], ebx
je 0x1011b0e
cmp dword [ebp - 0x14], ebx
je 0x1011b0e
push 0x1004214
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1011b0e
inc ebx
jmp 0x1011b0e
xor ebx, ebx
cmp dword [ebp + 0xc], 0
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x1011b24
push dword [ebp + 0xc]
push 0
call esi
push eax
call edi
cmp dword [ebp - 0xc], 0
je 0x1011b34
push dword [ebp - 0xc]
push 0
call esi
push eax
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x1011b42
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
cmp ecx, eax
je 0x1011bc2
push esi
mov esi, dword [ebp + 0xc]
cmp esi, eax
je 0x1011bc1
cmp dword [ebp + 0x10], eax
je 0x1011bc1
push ebx
push edi
lea ebx, [ecx + esi]
lea edi, [ecx + 0x10040]
cmp edi, ebx
jbe 0x1011b73
mov edi, ebx
mov esi, ecx
add ecx, 0x40
jmp 0x1011bbb
mov ecx, dword [ecx - 4]
mov edx, 0x5a4d
add ecx, esi
cmp word [esi], dx
jne 0x1011bb5
lea edx, [ecx + 0xf8]
cmp edx, ebx
jae 0x1011bb5
cmp dword [ecx], 0x4550
jne 0x1011bb5
mov edx, 0x14c
cmp word [ecx + 4], dx
jne 0x1011bb5
push esi
call fcn.0101190c
mov ecx, eax
or ecx, edx
mov dword [ebp - 4], edx
jne 0x1011bbf
add esi, dword [ebp + 0x10]
lea ecx, [esi + 0x40]
cmp ecx, edi
jb 0x1011b7a
pop edi
pop ebx
pop esi
mov edx, dword [ebp - 4]
leave
ret 0xc
Function at 0x101277b
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0x400
xor ebx, ebx
push 8
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
jne 0x10127b5
mov dword [ebp - 8], 8
jmp 0x101283f
cmp dword [ebp + 0xc], ebx
jne 0x10127df
lea eax, [ebp - 4]
push eax
call fcn.01012676
mov ebx, eax
test ebx, ebx
jne 0x10127d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1012833
push dword [ebp - 4]
push dword [ebp - 4]
push dword [ebp - 4]
jmp 0x10127e7
mov eax, 0x1004750
push eax
push eax
push eax
push dword [ebp + 0x10]
push 0x200
push edi
call fcn.0100956b
add esp, 0x18
push edi
push dword [ebp + 8]
call fcn.01012365
mov ebx, eax
test ebx, ebx
jne 0x1012833
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp eax, 2
je 0x1012833
push eax
push dword [ebp + 8]
call fcn.01011603
push dword [ebp - 8]
push dword [ebp + 8]
push 0x10046e0
push 4
call fcn.01011862
add esp, 0x10
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], 0
je 0x101284e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
jne 0x101285b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0x10128a7
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x101293f
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x101293f
cmp dword [ebp + 0x10], 0
je 0x101293f
push ebx
lea eax, [edi + edx]
lea ebx, [edi + 0x10040]
cmp ebx, eax
jbe 0x10128da
mov ebx, eax
lea ecx, [edi + 0x40]
push esi
mov esi, edi
cmp ecx, ebx
jae 0x101293d
jmp 0x10128e9
mov edx, dword [ebp + 0xc]
mov ecx, dword [ecx - 4]
mov eax, 0x5a4d
add ecx, esi
cmp word [esi], ax
jne 0x1012933
lea eax, [ecx + 0xf8]
mov dword [ebp + 8], eax
lea eax, [edi + edx]
mov edx, dword [ebp + 8]
cmp edx, eax
jae 0x1012933
cmp dword [ecx], 0x4550
jne 0x1012933
mov eax, 0x14c
cmp word [ecx + 4], ax
jne 0x1012933
mov eax, edi
sub eax, esi
add eax, dword [ebp + 0xc]
push eax
push esi
call fcn.01012869
mov dword [ebp - 4], eax
test eax, eax
jne 0x101293d
add esi, dword [ebp + 0x10]
lea ecx, [esi + 0x40]
cmp ecx, ebx
jb 0x10128e6
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret 0xc
Function at 0x1012f12
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
xor edi, edi
push edi
push dword [ebp + 8]
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call fcn.01013664
mov ebx, eax
cmp ebx, edi
je 0x1012ff3
push esi
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1012fbf
mov eax, dword [ebp + 0xc]
and al, 1
movsx eax, al
push edi
push 0x2200000
neg eax
push 3
sbb eax, eax
push edi
and eax, 0xfffffff9
add eax, 7
push eax
push 0x10000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1012fae
push 0xd
push 1
lea eax, [ebp + 0xb]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
mov byte [ebp + 0xb], 1
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
cmp eax, edi
jge 0x1012f9e
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp - 4], eax
jmp 0x1012fa5
mov dword [ebp - 8], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1012fe3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push 0x1004b98
jmp 0x1012fce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push 0x1004b10
push 0x3000000
push 0x10226f4
mov dword [ebp - 4], eax
call fcn.010129df
add esp, 0x14
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret 8

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp eax, esi
je 0x101307b
xor ecx, ecx
cmp cx, word [eax]
je 0x101307b
push edi
push esi
push eax
call fcn.01013664
mov edi, eax
cmp edi, esi
je 0x1013076
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1013044
test al, 0x10
je 0x1013044
inc ebx
jmp 0x101305f
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x1013057
mov esi, 0x10b
cmp esi, 2
jne 0x101305f
push 3
pop esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
pop edi
jmp 0x1013085
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebx
pop ebp
ret 4
Function at 0x1013090
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x1013164
xor ecx, ecx
cmp cx, word [eax]
je 0x1013164
push ebx
push eax
call fcn.01013664
mov edi, eax
cmp edi, ebx
je 0x101316c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101314c
test eax, 0x800
je 0x1013143
mov esi, 0x80
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x101314c
push ebx
push esi
push 3
push ebx
push 7
push 0xc0010000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x101314c
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 2
lea eax, [ebp + 8]
push eax
push 0x9c040
push esi
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1013131
mov dword [ebp - 8], 1
jmp 0x101313a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1013155
mov dword [ebp - 8], 1
jmp 0x1013155
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
pop esi
jmp 0x101316e
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop ebx
leave
ret 4
Function at 0x1013191
Capabilities:
Copy file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
test dword [ebp + 0x1c], 0xfffffff8
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
je 0x10131ba
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1013318
xor eax, eax
inc eax
test dword [ebp + 0x1c], eax
je 0x10131c5
mov dword [ebp - 0x10], eax
push ebx
push dword [ebp + 8]
call fcn.01013664
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x1013315
push esi
push edi
push ebx
push dword [ebp + 0xc]
call fcn.01013664
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x10132f0
mov dword [ebp - 0xc], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x10226f4
push dword [ebp - 0x10]
and dword [ebp - 4], 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x1013275
test dword [ebp + 0x1c], 2
je 0x101326f
call ebx
inc dword [ebp - 0xc]
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp - 0xc]
call fcn.01012eb4
test eax, eax
je 0x101326f
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x1004cf8
push 0x4000000
push edi
call fcn.010129df
add esp, 0x1c
cmp dword [ebp - 4], 0
jbe 0x10131fd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10131fd
cmp dword [ebp - 8], 0
je 0x10132ee
test dword [ebp + 0x1c], 4
je 0x10132ee
push 0x80
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x10132ee
call ebx
mov dword [ebp + 0x1c], 0x1f
test eax, eax
je 0x10132a3
mov dword [ebp + 0x1c], eax
push dword [ebp + 0x1c]
mov esi, 0x2000000
push dword [ebp + 0xc]
push 0x1004c58
push esi
push edi
call fcn.010129df
add esp, 0x14
push dword [ebp + 0xc]
call fcn.01013179
test eax, eax
jne 0x10132e5
call ebx
test eax, eax
jne 0x10132d2
push 0x1f
pop eax
push eax
push dword [ebp + 0xc]
push 0x1004bf8
push esi
push edi
call fcn.010129df
add esp, 0x14
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call edi
cmp dword [ebp - 0x14], ebx
je 0x1013313
push dword [ebp - 0x14]
push ebx
call esi
push eax
call edi
pop edi
pop esi
mov eax, dword [ebp - 8]
pop ebx
leave
ret 0x18
Function at 0x1013322
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x10133da
cmp dword [ebp + 0xc], ebx
je 0x10133da
push esi
push edi
push ebx
push dword [ebp + 8]
call fcn.01013664
mov esi, eax
mov dword [ebp + 8], esi
cmp esi, ebx
je 0x101339a
push ebx
push dword [ebp + 0xc]
call fcn.01013664
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x101339a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101337c
push dword [ebp - 4]
call fcn.01013179
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 2
push eax
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 4]
push esi
call fcn.01013191
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp esi, ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp + 0xc], eax
je 0x10133bc
push dword [ebp + 8]
push ebx
call edi
push eax
call esi
cmp dword [ebp - 4], ebx
je 0x10133ca
push dword [ebp - 4]
push ebx
call edi
push eax
call esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
pop edi
pop esi
jmp 0x10133e4
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
leave
ret 0x14
Function at 0x1013866
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
cmp esi, ebx
je 0x10139fa
xor eax, eax
cmp ax, word [esi]
je 0x10139fa
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.01013664
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x10139e3
push edi
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x1c], ebx
call fcn.01013646
cmp eax, ebx
jl 0x1013977
cmp dword [ebp - 0x1c], 1
jne 0x1013942
mov eax, dword [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10138dc
mov ecx, dword [ebp - 0x14]
sub eax, edx
sar eax, 1
lea esi, [ecx + eax*2]
cmp dword [ebp - 0xc], ebx
je 0x1013906
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x5c
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
mov esi, eax
pop ecx
push dword [ebp - 8]
cmp esi, ebx
je 0x10139b7
xor eax, eax
mov word [esi], ax
call fcn.0101300a
test eax, eax
jne 0x1013938
push ebx
push dword [ebp - 8]
call edi
push 0x5c
pop eax
mov word [esi], ax
inc esi
inc esi
jmp 0x101390c
mov esi, dword [ebp - 0x14]
movzx eax, word [esi]
cmp ax, 0x61
jb 0x1013954
cmp ax, 0x7a
jbe 0x1013960
cmp ax, 0x41
jb 0x1013906
cmp ax, 0x5a
ja 0x1013906
push 0x3a
pop eax
cmp ax, word [esi + 2]
jne 0x1013906
push 0x5c
pop eax
cmp ax, word [esi + 4]
jne 0x1013906
add esi, 8
jmp 0x1013906
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1004fb0
push 0x3000000
push 0x10226f4
mov dword [ebp - 0x10], eax
call fcn.010129df
add esp, 0x14
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
jmp 0x10139ec
call fcn.0101300a
xor esi, esi
inc esi
cmp eax, esi
je 0x10139de
push ebx
push dword [ebp - 8]
call edi
cmp eax, esi
je 0x10139de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x20]
push 0x1004f50
jmp 0x101398e
mov dword [ebp - 0x18], esi
jmp 0x10139a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x18]
jmp 0x1013a04
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01009199
leave
ret 4
Function at 0x101403e
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010148a0
mov esi, eax
test esi, esi
jl 0x10140ea
mov eax, dword [ebp + 0x10]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x101406a
sub eax, ecx
push ebx
sar eax, 1
push edi
lea edi, [eax + eax + 2]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
lea ebx, [eax + edi + 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
jne 0x10140aa
mov esi, 0xc000009a
jmp 0x10140e8
mov dword [esi], 1
mov dword [esi + 8], 5
mov dword [esi + 4], ebx
mov eax, dword [ebp - 4]
push dword [eax + 8]
push eax
lea eax, [esi + 0xc]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push edi
push dword [ebp + 0x10]
lea eax, [eax + esi + 0xc]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [eax], esi
xor esi, esi
pop edi
pop ebx
cmp dword [ebp - 4], 0
je 0x1014107
push dword [ebp - 4]
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, esi
pop esi
leave
ret 0x10
Function at 0x101456a
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ecx, 0x101f81e
xor esi, esi
mov eax, ecx
push edi
mov dword [ebp - 8], esi
lea edx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
cmp di, si
jne 0x1014584
mov edi, dword [ebp + 8]
sub eax, edx
sar eax, 1
mov ebx, eax
push ebx
push ecx
push edi
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x1014710
lea eax, [edi + ebx*2]
push 0x5c
push eax
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1014710
mov ecx, dword fs:[0x18]
mov ebx, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
sub eax, edi
sar eax, 1
lea edi, [eax + eax]
lea eax, [edi + 2]
push eax
mov eax, dword [ecx + 0x30]
push 0
push dword [eax + 0x18]
call ebx
mov dword [ebp - 4], eax
test eax, eax
jne 0x10145f7
mov dword [ebp - 8], 0xc000009a
jmp 0x10146cc
push edi
push dword [ebp + 8]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax], cx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1014610
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 0x16]
mov eax, dword [ebp - 0xc]
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x1014628
sub eax, edx
sar eax, 1
lea edi, [eax + eax + 0x2e]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
add ecx, edi
push ecx
push 0
push dword [eax + 0x18]
mov dword [ebp + 8], ecx
call ebx
mov esi, eax
test esi, esi
je 0x10145eb
push dword [ebp + 8]
push 0
push esi
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0xc]
add esp, 0xc
lea ebx, [edi + esi]
mov dword [esi], 3
mov dword [esi + 0x14], edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1014676
push dword [ebp - 0xc]
sub eax, ecx
sar eax, 1
inc eax
push eax
lea eax, [esi + 0x18]
push eax
call fcn.0100960e
mov eax, dword [ebp - 4]
add esp, 0xc
push 2
pop edx
mov dword [ebx], edx
lea ecx, [eax + 2]
mov di, word [eax]
add eax, edx
test di, di
jne 0x10146a0
push dword [ebp - 4]
sub eax, ecx
sar eax, 1
inc eax
push eax
add ebx, 0x14
push ebx
call fcn.0100960e
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [eax], ecx
cmp dword [ebp - 4], 0
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
je 0x10146eb
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call edi
cmp dword [ebp - 8], 0
jge 0x1014706
test esi, esi
je 0x1014706
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call edi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
mov dword [ebp - 8], 0xc000000d
jmp 0x1014706
Function at 0x101585a
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
push esi
push edi
push 2
xor esi, esi
pop edi
xor edx, edx
xor ebx, ebx
mov dword [ebp - 4], esi
cmp ecx, edi
jne 0x1015885
lea ecx, [eax + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ecx
jmp 0x1015893
cmp ecx, 6
jne 0x10158a8
lea ecx, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ecx
add ecx, 0x10
mov dword [ebp + 8], ecx
mov ecx, dword [ecx]
cmp ecx, esi
je 0x101598f
cmp ecx, 6
je 0x10158b2
mov esi, 0xc000000d
jmp 0x10159e2
push 0x38
lea ecx, [eax + 0x38]
mov eax, dword [eax + 8]
pop edx
mov dword [ebp - 0x18], edx
cmp eax, 0x5c
jb 0x10158a8
mov ebx, dword [ecx + 8]
add ebx, edx
cmp eax, ebx
jb 0x10158a8
cmp dword [ecx], esi
jne 0x10158a8
cmp dword [ecx + 0x10], 5
jne 0x10158a8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push ecx
call fcn.0101539e
mov esi, eax
test esi, esi
jl 0x10159c5
cmp dword [ebp - 8], 0x2e
jb 0x10159eb
mov ebx, dword [ebp - 4]
cmp dword [ebx], 3
jne 0x10159eb
mov eax, dword [ebx + 0x14]
add eax, ebx
cmp dword [eax], edi
jne 0x10159eb
add eax, 0x14
mov dword [ebp - 0x14], eax
lea edx, [eax + 2]
mov cx, word [eax]
add eax, edi
test cx, cx
jne 0x101591c
sub eax, edx
sar eax, 1
add ebx, 0x18
lea esi, [eax + eax]
mov eax, ebx
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, edi
test dx, dx
jne 0x1015935
sub eax, ecx
sar eax, 1
lea edi, [eax + eax + 2]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea ecx, [edi + esi]
push ecx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 8], eax
test eax, eax
jne 0x101596d
mov esi, 0xc0000017
jmp 0x10159c5
push esi
push dword [ebp - 0x14]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 8]
push edi
add esi, eax
push ebx
push esi
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 8]
add esp, 0x18
xor esi, esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x101599b
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10159a7
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10159b3
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x10159bc
mov dword [eax], edx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x10159c5
mov dword [eax], ebx
cmp dword [ebp - 4], 0
je 0x10159e2
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18
mov esi, 0xc000000d
jmp 0x10159c5