joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101181c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x2c
push 0x101fdf8
call fcn.01009b04
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
xor edi, edi
inc edi
or dword [ebp + 8], edi
mov dword [ebp - 0x3c], 0x10
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x24]
push eax
push 3
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_LdrFindResource_U]
mov dword [ebp - 0x1c], eax
push 0xfffffffffffffffe
pop esi
mov dword [ebp - 4], esi
jmp 0x1011886
cmp dword [ebp - 0x1c], ebx
jl 0x1011910
mov dword [ebp - 4], edi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_LdrAccessResource]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], esi
jmp 0x10118c4
cmp dword [ebp - 0x1c], ebx
jl 0x1011910
mov dword [ebp - 4], 2
cmp dword [ebp - 0x28], 0x5c
jb 0x10118fd
push 0x10041f4
mov eax, dword [ebp - 0x20]
add eax, 6
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x10118fd
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x2c], ecx
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], esi
jmp 0x1011910
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
call fcn.01009b49
ret 4
Function at 0x1011923
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 0x1011945
xor ebx, ebx
jmp 0x1011a45
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
cmp ebx, esi
je 0x101193e
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 0x1011a1c
push eax
push ebx
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
mov ebx, eax
test ebx, ebx
je 0x1011a1e
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 0x1011a1c
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x1011a1c
cmp dword [ebp - 0x10], ebx
je 0x1011a1c
push 0x208
push 8
call esi
push eax
call edi
mov edi, eax
mov dword [ebp - 0xc], edi
cmp edi, ebx
je 0x1011a1e
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.0100948b
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 0x1011a1e
cmp dword [ebp - 8], ebx
je 0x1011a1e
cmp dword [ebp - 0x14], ebx
je 0x1011a1e
push 0x1004214
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1011a1e
inc ebx
jmp 0x1011a1e
xor ebx, ebx
cmp dword [ebp + 0xc], 0
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x1011a34
push dword [ebp + 0xc]
push 0
call esi
push eax
call edi
cmp dword [ebp - 0xc], 0
je 0x1011a44
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 0x1011a52
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 0x1011ad2
push esi
mov esi, dword [ebp + 0xc]
cmp esi, eax
je 0x1011ad1
cmp dword [ebp + 0x10], eax
je 0x1011ad1
push ebx
push edi
lea ebx, [ecx + esi]
lea edi, [ecx + 0x10040]
cmp edi, ebx
jbe 0x1011a83
mov edi, ebx
mov esi, ecx
add ecx, 0x40
jmp 0x1011acb
mov ecx, dword [ecx - 4]
mov edx, 0x5a4d
add ecx, esi
cmp word [esi], dx
jne 0x1011ac5
lea edx, [ecx + 0xf8]
cmp edx, ebx
jae 0x1011ac5
cmp dword [ecx], 0x4550
jne 0x1011ac5
mov edx, 0x14c
cmp word [ecx + 4], dx
jne 0x1011ac5
push esi
call fcn.0101181c
mov ecx, eax
or ecx, edx
mov dword [ebp - 4], edx
jne 0x1011acf
add esi, dword [ebp + 0x10]
lea ecx, [esi + 0x40]
cmp ecx, edi
jb 0x1011a8a
pop edi
pop ebx
pop esi
mov edx, dword [ebp - 4]
leave
ret 0xc
Function at 0x101268b
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 0x10126c5
mov dword [ebp - 8], 8
jmp 0x101274f
cmp dword [ebp + 0xc], ebx
jne 0x10126ef
lea eax, [ebp - 4]
push eax
call fcn.01012586
mov ebx, eax
test ebx, ebx
jne 0x10126e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1012743
push dword [ebp - 4]
push dword [ebp - 4]
push dword [ebp - 4]
jmp 0x10126f7
mov eax, 0x1004750
push eax
push eax
push eax
push dword [ebp + 0x10]
push 0x200
push edi
call fcn.0100948b
add esp, 0x18
push edi
push dword [ebp + 8]
call fcn.01012275
mov ebx, eax
test ebx, ebx
jne 0x1012743
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp eax, 2
je 0x1012743
push eax
push dword [ebp + 8]
call fcn.01011513
push dword [ebp - 8]
push dword [ebp + 8]
push 0x10046e0
push 4
call fcn.01011772
add esp, 0x10
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], 0
je 0x101275e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
jne 0x101276b
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 0x10127b7
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 0x101284f
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x101284f
cmp dword [ebp + 0x10], 0
je 0x101284f
push ebx
lea eax, [edi + edx]
lea ebx, [edi + 0x10040]
cmp ebx, eax
jbe 0x10127ea
mov ebx, eax
lea ecx, [edi + 0x40]
push esi
mov esi, edi
cmp ecx, ebx
jae 0x101284d
jmp 0x10127f9
mov edx, dword [ebp + 0xc]
mov ecx, dword [ecx - 4]
mov eax, 0x5a4d
add ecx, esi
cmp word [esi], ax
jne 0x1012843
lea eax, [ecx + 0xf8]
mov dword [ebp + 8], eax
lea eax, [edi + edx]
mov edx, dword [ebp + 8]
cmp edx, eax
jae 0x1012843
cmp dword [ecx], 0x4550
jne 0x1012843
mov eax, 0x14c
cmp word [ecx + 4], ax
jne 0x1012843
mov eax, edi
sub eax, esi
add eax, dword [ebp + 0xc]
push eax
push esi
call fcn.01012779
mov dword [ebp - 4], eax
test eax, eax
jne 0x101284d
add esi, dword [ebp + 0x10]
lea ecx, [esi + 0x40]
cmp ecx, ebx
jb 0x10127f6
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret 0xc
Function at 0x1012e22
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.01013574
mov ebx, eax
cmp ebx, edi
je 0x1012f03
push esi
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1012ecf
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 0x1012ebe
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 0x1012eae
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp - 4], eax
jmp 0x1012eb5
mov dword [ebp - 8], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1012ef3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push 0x1004b58
jmp 0x1012ede
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push 0x1004ad0
push 0x3000000
push 0x10226f4
mov dword [ebp - 4], eax
call fcn.010128ef
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 0x1012f1a
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 0x1012f8b
xor ecx, ecx
cmp cx, word [eax]
je 0x1012f8b
push edi
push esi
push eax
call fcn.01013574
mov edi, eax
cmp edi, esi
je 0x1012f86
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1012f54
test al, 0x10
je 0x1012f54
inc ebx
jmp 0x1012f6f
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x1012f67
mov esi, 0x10b
cmp esi, 2
jne 0x1012f6f
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 0x1012f95
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebx
pop ebp
ret 4
Function at 0x1012fa0
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 0x1013074
xor ecx, ecx
cmp cx, word [eax]
je 0x1013074
push ebx
push eax
call fcn.01013574
mov edi, eax
cmp edi, ebx
je 0x101307c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101305c
test eax, 0x800
je 0x1013053
mov esi, 0x80
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x101305c
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 0x101305c
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 0x1013041
mov dword [ebp - 8], 1
jmp 0x101304a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1013065
mov dword [ebp - 8], 1
jmp 0x1013065
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 0x101307e
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop ebx
leave
ret 4
Function at 0x10130a1
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 0x10130ca
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1013228
xor eax, eax
inc eax
test dword [ebp + 0x1c], eax
je 0x10130d5
mov dword [ebp - 0x10], eax
push ebx
push dword [ebp + 8]
call fcn.01013574
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x1013225
push esi
push edi
push ebx
push dword [ebp + 0xc]
call fcn.01013574
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x1013200
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 0x1013185
test dword [ebp + 0x1c], 2
je 0x101317f
call ebx
inc dword [ebp - 0xc]
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp - 0xc]
call fcn.01012dc4
test eax, eax
je 0x101317f
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x1004cb8
push 0x4000000
push edi
call fcn.010128ef
add esp, 0x1c
cmp dword [ebp - 4], 0
jbe 0x101310d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x101310d
cmp dword [ebp - 8], 0
je 0x10131fe
test dword [ebp + 0x1c], 4
je 0x10131fe
push 0x80
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x10131fe
call ebx
mov dword [ebp + 0x1c], 0x1f
test eax, eax
je 0x10131b3
mov dword [ebp + 0x1c], eax
push dword [ebp + 0x1c]
mov esi, 0x2000000
push dword [ebp + 0xc]
push 0x1004c18
push esi
push edi
call fcn.010128ef
add esp, 0x14
push dword [ebp + 0xc]
call fcn.01013089
test eax, eax
jne 0x10131f5
call ebx
test eax, eax
jne 0x10131e2
push 0x1f
pop eax
push eax
push dword [ebp + 0xc]
push 0x1004bb8
push esi
push edi
call fcn.010128ef
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 0x1013223
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 0x1013232
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 0x10132ea
cmp dword [ebp + 0xc], ebx
je 0x10132ea
push esi
push edi
push ebx
push dword [ebp + 8]
call fcn.01013574
mov esi, eax
mov dword [ebp + 8], esi
cmp esi, ebx
je 0x10132aa
push ebx
push dword [ebp + 0xc]
call fcn.01013574
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x10132aa
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101328c
push dword [ebp - 4]
call fcn.01013089
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.010130a1
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 0x10132cc
push dword [ebp + 8]
push ebx
call edi
push eax
call esi
cmp dword [ebp - 4], ebx
je 0x10132da
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 0x10132f4
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
leave
ret 0x14
Function at 0x1013776
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 0x101390a
xor eax, eax
cmp ax, word [esi]
je 0x101390a
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.01013574
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x10138f3
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.01013556
cmp eax, ebx
jl 0x1013887
cmp dword [ebp - 0x1c], 1
jne 0x1013852
mov eax, dword [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10137ec
mov ecx, dword [ebp - 0x14]
sub eax, edx
sar eax, 1
lea esi, [ecx + eax*2]
cmp dword [ebp - 0xc], ebx
je 0x1013816
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 0x10138c7
xor eax, eax
mov word [esi], ax
call fcn.01012f1a
test eax, eax
jne 0x1013848
push ebx
push dword [ebp - 8]
call edi
push 0x5c
pop eax
mov word [esi], ax
inc esi
inc esi
jmp 0x101381c
mov esi, dword [ebp - 0x14]
movzx eax, word [esi]
cmp ax, 0x61
jb 0x1013864
cmp ax, 0x7a
jbe 0x1013870
cmp ax, 0x41
jb 0x1013816
cmp ax, 0x5a
ja 0x1013816
push 0x3a
pop eax
cmp ax, word [esi + 2]
jne 0x1013816
push 0x5c
pop eax
cmp ax, word [esi + 4]
jne 0x1013816
add esi, 8
jmp 0x1013816
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1004f50
push 0x3000000
push 0x10226f4
mov dword [ebp - 0x10], eax
call fcn.010128ef
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 0x10138fc
call fcn.01012f1a
xor esi, esi
inc esi
cmp eax, esi
je 0x10138ee
push ebx
push dword [ebp - 8]
call edi
cmp eax, esi
je 0x10138ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x20]
push 0x1004ef0
jmp 0x101389e
mov dword [ebp - 0x18], esi
jmp 0x10138b3
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 0x1013914
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.010090b9
leave
ret 4
Function at 0x1013f4e
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.010147b0
mov esi, eax
test esi, esi
jl 0x1013ffa
mov eax, dword [ebp + 0x10]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1013f7a
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 0x1013fba
mov esi, 0xc000009a
jmp 0x1013ff8
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 0x1014017
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 0x101447a
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ecx, 0x101f70a
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 0x1014494
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 0x1014620
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 0x1014620
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 0x1014507
mov dword [ebp - 8], 0xc000009a
jmp 0x10145dc
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 0x1014520
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 0x1014538
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 0x10144fb
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 0x1014586
push dword [ebp - 0xc]
sub eax, ecx
sar eax, 1
inc eax
push eax
lea eax, [esi + 0x18]
push eax
call fcn.0100952e
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 0x10145b0
push dword [ebp - 4]
sub eax, ecx
sar eax, 1
inc eax
push eax
add ebx, 0x14
push ebx
call fcn.0100952e
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 0x10145fb
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 0x1014616
test esi, esi
je 0x1014616
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 0x1014616