joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1053edf
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
cmp eax, esi
jne 0x1053f00
xor eax, eax
jmp 0x1053f26
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x1053381
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, esi
jne 0x1053f23
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x1055b15
Capabilities:
Get user security identifier

Disassembly:
push 0xe0
mov eax, 0x11064ac
call fcn.0106f85e
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0xe0], eax
call fcn.01054526
test ebx, ebx
jne 0x1055b5a
push 0x10051d0
push 0x9c
push 0x1004b88
call fcn.0107b644
jmp 0x1055cde
and dword [ebp - 0xd8], 0
and dword [ebp - 4], 0
mov esi, 0x80
push esi
lea ecx, [ebp - 0xd8]
call fcn.0105473c
mov ecx, dword [ebp - 0xd8]
lea eax, [edi + 0x4c]
push eax
lea eax, [ebp - 0xe8]
push eax
push ecx
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push dword [ebp - 0xe0]
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xdc], 0x44
mov dword [ebp - 0xe8], esi
call ebx
test eax, eax
jne 0x1055c34
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1055cbe
cmp dword [ebp - 0xdc], 0x44
jbe 0x1055bde
push 0x80004005
call fcn.01015eac
mov eax, dword [ebp - 0xe8]
cmp eax, esi
jbe 0x1055c02
add eax, eax
push eax
lea ecx, [ebp - 0xd8]
call fcn.01054760
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xe4], eax
lea eax, [edi + 0x4c]
push eax
lea eax, [ebp - 0xe8]
push eax
push dword [ebp - 0xe4]
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0xec]
push dword [ebp - 0xe0]
call ebx
test eax, eax
je 0x1055cbe
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
cmp eax, 0x44
jb 0x1055c57
push 0x1005180
push 0xc4
push 0x1004b88
call fcn.0107b644
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
mov byte [edi + 0x48], 1
call fcn.010529ab
push eax
push dword [ebp - 0xdc]
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x1055cbe
push dword [ebp - 0xe4]
lea ecx, [edi + 0x54]
call fcn.01055a3e
push dword [ebp - 0xec]
lea ecx, [edi + 0x50]
call fcn.01055a3e
push dword [ebp - 0xe0]
lea ecx, [edi + 0x5c]
call fcn.01055a3e
lea eax, [ebp - 0xd4]
cmp dword [ebp - 0xd8], eax
je 0x1055cba
lea ecx, [ebp - 0xd8]
call fcn.01016b39
mov al, 1
jmp 0x1055ce0
mov ecx, edi
call fcn.01054526
lea eax, [ebp - 0xd4]
cmp dword [ebp - 0xd8], eax
je 0x1055cde
lea ecx, [ebp - 0xd8]
call fcn.01016b39
xor al, al
call fcn.0106f8f0
ret 8
Function at 0x106b8ee
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov eax, dword [0x111024c]
mov ebx, 0x111024c
cmp eax, ebx
je 0x106b929
test byte [eax + 0x1c], 1
je 0x106b929
cmp byte [eax + 0x19], 4
jb 0x106b929
push 0x1006b38
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [0x111024c]
xor edi, edi
mov dword [ebp - 4], edi
mov esi, 0x1006b98
cmp dword [ebp + 8], edi
jne 0x106b94d
push 0x1006b84
push 0x20e
push esi
call fcn.0107b644
mov eax, dword [0x111024c]
cmp dword [ebp + 0x10], edi
ja 0x106b967
push 0x1006b78
push 0x20f
push esi
call fcn.0107b644
mov eax, dword [0x111024c]
cmp dword [ebp + 0xc], edi
jne 0x106b981
push 0x1006b64
push 0x210
push esi
call fcn.0107b644
mov eax, dword [0x111024c]
cmp eax, ebx
je 0x106b9a6
test byte [eax + 0x1c], 1
je 0x106b9a6
cmp byte [eax + 0x19], 4
jb 0x106b9a6
push dword [ebp + 8]
push 0x1006b38
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
push edi
push 0x2000080
push 2
push edi
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x106ba18
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x106b9da
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x106babc
test byte [eax + 0x1c], 1
je 0x106ba97
cmp byte [eax + 0x19], 2
jb 0x106ba97
push esi
push dword [ebp + 8]
push 0x1006b38
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x106ba92
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x106ba71
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x106ba42
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x106ba8b
test byte [eax + 0x1c], 1
je 0x106ba8b
cmp byte [eax + 0x19], 2
jb 0x106ba8b
push esi
push 0x1006b38
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
jmp 0x106ba8b
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 4]
je 0x106ba89
push 0x1006b48
push 0x233
push esi
call fcn.0107b644
mov esi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x106babc
test byte [eax + 0x1c], 1
je 0x106babc
cmp byte [eax + 0x19], 4
jb 0x106babc
push 0x1006b38
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x106bbeb
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x106bc1d
test byte [eax + 0x1c], 1
je 0x106bc1d
cmp byte [eax + 0x19], 4
jb 0x106bc1d
push 0x1006b38
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
jne 0x106bc3e
push 0x1006c1c
push 0x263
push 0x1006b98
call fcn.0107b644
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jne 0x106bc59
push 0x1006c08
push 0x264
push 0x1006b98
call fcn.0107b644
mov esi, dword [ebp + 0x10]
cmp esi, ebx
jne 0x106bc74
push 0x1006bf4
push 0x265
push 0x1006b98
call fcn.0107b644
push ebx
push 0x2000080
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [edi], ebx
mov dword [esi], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
jne 0x106bcbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jg 0x106bcb1
mov dword [ebp + 0xc], eax
jmp 0x106bd8a
and eax, 0xffff
or eax, 0x80070000
jmp 0x106bca9
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x106bcea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jg 0x106bcde
mov dword [ebp + 0xc], eax
jmp 0x106bd81
and eax, 0xffff
or eax, 0x80070000
jmp 0x106bcd6
mov eax, dword [ebp - 0x14]
push 1
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
call fcn.0101ae15
cmp eax, ebx
mov dword [ebp + 0xc], eax
jge 0x106bd35
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x106bd73
test byte [eax + 0x1c], 1
je 0x106bd73
cmp byte [eax + 0x19], 2
jb 0x106bd73
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x1006b38
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x106bd73
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x106bd66
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x106bd61
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 0xc], eax
jmp 0x106bd73
mov eax, dword [ebp - 4]
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
je 0x106bd81
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], ebx
pop edi
pop esi
pop ebx
jge 0x106bdc2
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x106bdec
test byte [eax + 0x1c], 1
je 0x106bdc7
cmp byte [eax + 0x19], 2
jb 0x106bdc7
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x1006b38
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x106bdec
test byte [eax + 0x1c], 1
je 0x106bdec
cmp byte [eax + 0x19], 4
jb 0x106bdec
push 0x1006b38
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [ebp + 0xc]
leave
ret 0xc
Function at 0x106f02b
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0106ef6c
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x106f09e
cmp dword [ebp - 0x94], 5
jb 0x106f0bf
jmp 0x106f0bb
cmp dword [ebp - 0x88], 1
jne 0x106f0bf
cmp dword [ebp - 0x94], 4
ja 0x106f0bb
jne 0x106f0bf
cmp dword [ebp - 0x90], 0
jbe 0x106f0bf
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1007054
call fcn.01015f89
test eax, eax
jge 0x106f0e0
mov byte [0x11110a4], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0106f798
leave
ret

Function at 0x1070b9c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x1070c2f
movzx eax, word [ebx]
cmp ax, 2
jb 0x1070c2f
mov ecx, dword fs:[0x18]
movzx eax, ax
mov esi, eax
add eax, 2
push eax
mov eax, dword [ecx + 0x30]
push edi
push dword [eax + 0x18]
shr esi, 1
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
jne 0x1070be6
mov ebx, 0xc0000017
jmp 0x1070c34
xor eax, eax
mov word [edi + esi*2], ax
movzx eax, word [ebx]
push eax
push dword [ebx + 4]
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
call fcn.010762be
test eax, eax
mov eax, dword [ebp - 4]
jge 0x1070c0f
mov eax, edi
push eax
call fcn.010777bc
mov ebx, eax
test ebx, ebx
jl 0x1070c34
call fcn.01070a14
mov ebx, eax
test ebx, ebx
jge 0x1070c34
push 0
call fcn.010777bc
jmp 0x1070c34
mov ebx, 0xc000000d
mov esi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
test edi, edi
je 0x1070c4f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call esi
cmp dword [ebp - 4], 0
je 0x1070c68
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x1071a76
Capabilities:
Access peb ldr_data
Query or enumerate registry key

Disassembly:
push 0x14
push 0x110a808
call fcn.0106f710
xor ebx, ebx
mov dword [ebp - 0x24], ebx
xor esi, esi
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov edi, dword [sym.imp.ntdll.dll_NtQueryKey]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, 0xc0000023
je 0x1071ab9
cmp eax, ebx
jl 0x1071b32
mov dword [ebp - 0x1c], 0xc000000d
jmp 0x1071b32
mov eax, dword fs:[0x18]
push dword [ebp - 0x20]
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
cmp esi, ebx
jne 0x1071ade
mov dword [ebp - 0x1c], 0xc000009a
jmp 0x1071b32
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push esi
push ebx
push dword [ebp + 8]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jl 0x1071b32
mov eax, dword fs:[0x18]
mov ecx, dword [esi + 0xc]
inc ecx
inc ecx
push ecx
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
cmp edi, ebx
je 0x1071ad5
push dword [esi + 0xc]
lea eax, [esi + 0x10]
push eax
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0xc]
shr eax, 1
xor ecx, ecx
mov word [edi + eax*2], cx
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
cmp esi, ebx
je 0x1071b4a
mov eax, dword fs:[0x18]
push esi
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x1c], 0xc000017d
jne 0x1071b85
mov dword [ebp - 4], ebx
int3
mov eax, dword [ebp - 0x1c]
call fcn.0106f755
ret 8
Function at 0x1072308
Capabilities:
Get process heap flags
Query or enumerate registry value

Disassembly:
push 0x20
push 0x110a868
call fcn.0106f710
xor esi, esi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x24], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], esi
mov eax, dword [ebp + 0x1c]
mov dword [eax], esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
cmp dword [ebp + 0x10], esi
je 0x107235a
lea eax, [ebp - 0x24]
push eax
push 0x20019
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.01072162
mov dword [ebp - 0x1c], eax
cmp eax, esi
jl 0x1072415
jmp 0x1072360
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
push esi
push esi
push 2
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov dword [ebp - 0x1c], eax
cmp eax, 0xc0000023
jne 0x1072415
mov eax, dword fs:[0x18]
push dword [ebp - 0x20]
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
cmp edi, esi
jne 0x10723a8
mov dword [ebp - 0x1c], 0xc000009a
jmp 0x1072415
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x20]
push edi
push 2
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jl 0x1072415
mov eax, dword [edi + 4]
cmp eax, dword [ebp + 0x14]
je 0x10723d7
mov dword [ebp - 0x1c], 0xc0000024
jmp 0x1072415
sub dword [ebp - 0x20], 0xc
mov eax, dword fs:[0x18]
push dword [ebp - 0x20]
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
cmp eax, esi
je 0x107239f
push dword [ebp - 0x20]
lea ecx, [edi + 0xc]
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp + 8]
je 0x1072428
cmp eax, esi
je 0x1072428
push eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp edi, esi
je 0x1072440
mov eax, dword fs:[0x18]
push edi
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x1c], 0xc000017d
jne 0x1072474
mov dword [ebp - 4], esi
int3
mov eax, dword [ebp - 0x1c]
call fcn.0106f755
ret 0x18
Function at 0x107286e
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
xor esi, esi
push ebx
mov dword [ebp - 4], esi
call fcn.01071828
mov edi, dword [ebp - 4]
test eax, eax
jl 0x10728ca
cmp dword [ebp - 8], esi
jbe 0x10728ca
lea eax, [ebp + 8]
push eax
push 0xf003f
push dword [edi + esi*4]
push ebx
call fcn.01072162
test eax, eax
jl 0x10728c4
push dword [ebp + 8]
call fcn.0107286e
test eax, eax
jge 0x10728c4
push dword [ebp + 8]
call fcn.01071fa4
inc esi
cmp esi, dword [ebp - 8]
jb 0x107289a
test edi, edi
je 0x10728e3
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]
push ebx
call dword [sym.imp.ntdll.dll_NtDeleteKey]
mov esi, eax
test esi, esi
jl 0x10728f7
push ebx
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x1072b0e
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ebx
call fcn.010775b2
dec eax
je 0x1072b3d
dec eax
je 0x1072b36
mov dword [ebp - 8], 0xc00000bb
jmp 0x1072bfd
call fcn.0107785a
jmp 0x1072b42
call fcn.01077818
mov dword [ebp - 0xc], eax
push esi
lea eax, [ebp - 4]
push eax
call fcn.0107296e
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x1072bc6
mov eax, dword [ebp - 4]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1072b5c
sub eax, edx
sar eax, 1
mov esi, eax
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x1072b72
sub eax, ecx
sar eax, 1
add esi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea ecx, [esi + esi + 2]
push ecx
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
cmp edi, ebx
jne 0x1072ba9
mov dword [ebp - 8], 0xc0000017
jmp 0x1072bc6
push dword [ebp - 4]
inc esi
push esi
push edi
call sub.msvcrt.dll_wcscpy_s
push dword [ebp - 0xc]
push esi
push edi
call sub.msvcrt.dll_wcscat_s
mov eax, dword [ebp + 8]
add esp, 0x18
mov dword [eax], edi
mov esi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 4], ebx
je 0x1072be3
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call esi
cmp dword [ebp - 8], ebx
jge 0x1072bfc
cmp edi, ebx
je 0x1072bfc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push ebx
push dword [eax + 0x18]
call esi
pop esi
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret 4
Function at 0x107306e
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.010738d0
mov esi, eax
test esi, esi
jl 0x107311a
mov eax, dword [ebp + 0x10]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x107309a
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 0x10730da
mov esi, 0xc000009a
jmp 0x1073118
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 0x1073137
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 0x107359a
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ecx, 0x1105428
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 0x10735b4
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 0x1073740
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 0x1073740
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 0x1073627
mov dword [ebp - 8], 0xc000009a
jmp 0x10736fc
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 0x1073640
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 0x1073658
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 0x107361b
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 0x10736a6
push dword [ebp - 0xc]
sub eax, ecx
sar eax, 1
inc eax
push eax
lea eax, [esi + 0x18]
push eax
call sub.msvcrt.dll_wcscpy_s
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 0x10736d0
push dword [ebp - 4]
sub eax, ecx
sar eax, 1
inc eax
push eax
add ebx, 0x14
push ebx
call sub.msvcrt.dll_wcscpy_s
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 0x107371b
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 0x1073736
test esi, esi
je 0x1073736
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 0x1073736