joyce8/EMBER2024-capa huggingface dataset:
Function at 0x105e045
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor ebx, ebx
inc ebx
push ebx
push 0x8c
push 0x100fd74
lea ecx, [ebp - 0x28]
call fcn.01055826
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], ebx
mov eax, 0x8f
cmp esi, edi
jne 0x105e087
mov dword [ebp - 0x28], 0x80070057
mov word [ebp - 0x22], ax
jmp 0x105e169
mov dword [ebp - 0x28], edi
mov word [ebp - 0x24], ax
call fcn.0105df8d
mov dword [ebp - 0x28], eax
cmp eax, edi
mov eax, 0x92
jl 0x105e07e
mov word [ebp - 0x24], ax
cmp dword [ebp - 0x28], ebx
jne 0x105e0b7
add eax, 4
mov dword [ebp - 0x28], edi
mov word [ebp - 0x24], ax
jmp 0x105e169
mov eax, dword [esi]
test al, 0xb
jne 0x105e0c1
or eax, ebx
mov dword [esi], eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001009
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x105e0ea
call fcn.0105d3b8
mov dword [ebp - 0x28], eax
mov eax, 0xa0
jmp 0x105e07e
push dword [ebp - 4]
mov eax, 0xa0
mov dword [ebp - 0x28], edi
mov word [ebp - 0x24], ax
call fcn.0105dfdb
mov dword [ebp - 0x28], eax
cmp eax, edi
mov eax, 0xa3
jl 0x105e07e
mov word [ebp - 0x24], ax
cmp dword [ebp - 0x28], edi
jne 0x105e15f
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
and eax, 0x3ff
cmp ax, 0xd
jne 0x105e14b
mov eax, dword [esi]
test bl, al
je 0x105e143
cmp dword [ebp - 4], 8
je 0x105e143
and eax, 0xffffffcf
mov dword [esi], eax
mov eax, 0xb4
jmp 0x105e0ab
and eax, 0xffffffef
or eax, 0x20
mov dword [esi], eax
mov eax, dword [esi]
and eax, 0xffffffef
or eax, 0x20
mov dword [esi], eax
mov eax, 0xba
jmp 0x105e0ab
mov eax, dword [esi]
and eax, 0xffffffdf
or eax, 0x10
mov dword [esi], eax
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.01055a3c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x105f361
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
xor edi, edi
inc edi
push edi
push 0x11a
push 0x100fe80
lea ecx, [ebp - 0x38]
call fcn.01055826
xor esi, esi
push 0x40
lea eax, [ebp - 0x78]
push esi
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], esi
call sub.msvcrt.dll_memset
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], edi
mov edi, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x14], 0x48
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov eax, 0x123
cmp edi, esi
jne 0x105f3d1
mov dword [ebp - 0x38], 0x80070057
mov word [ebp - 0x32], ax
jmp 0x105f502
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x38], esi
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x105f3fd
call fcn.0105d3b8
mov dword [ebp - 0x38], eax
mov eax, 0x125
jmp 0x105f3c8
mov eax, 0x125
mov word [ebp - 0x34], ax
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push 8
push edi
mov dword [ebp - 0x38], esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x105f42f
call fcn.0105d3b8
mov dword [ebp - 0x38], eax
mov eax, 0x126
jmp 0x105f3c8
mov eax, 0x126
mov word [ebp - 0x34], ax
inc eax
cmp dword [ebp - 0xc], 4
je 0x105f448
mov dword [ebp - 0x38], 0x80004005
jmp 0x105f3c8
cmp dword [ebp - 0x10], 2
mov dword [ebp - 0x38], esi
mov word [ebp - 0x34], ax
je 0x105f4c9
cmp dword [ebp - 4], esi
je 0x105f468
cmp dword [ebp - 4], 0xffffffff
je 0x105f468
push dword [ebp - 4]
call ebx
mov dword [ebp - 4], esi
lea eax, [ebp - 4]
push eax
push 2
push 2
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x105f48f
call fcn.0105d3b8
mov dword [ebp - 0x38], eax
mov eax, 0x12a
jmp 0x105f3c8
mov eax, 0x12a
mov word [ebp - 0x34], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x38], esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x105f4c2
call fcn.0105d3b8
mov dword [ebp - 0x38], eax
mov eax, 0x12b
jmp 0x105f3c8
mov eax, 0x12b
jmp 0x105f4f3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x105f4ee
call fcn.0105d3b8
mov dword [ebp - 0x38], eax
mov eax, 0x12f
jmp 0x105f3c8
mov eax, 0x12f
mov ecx, dword [ebp - 8]
mov word [ebp - 0x34], ax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], esi
mov dword [eax], ecx
mov edi, dword [ebp - 0x38]
cmp dword [ebp - 4], esi
je 0x105f518
cmp dword [ebp - 4], 0xffffffff
je 0x105f518
push dword [ebp - 4]
call ebx
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x38]
call fcn.01055a3c
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x105f6ca
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x1075318]
mov ebx, 0x1075318
cmp eax, ebx
je 0x105f6fe
test dword [eax + 0x1c], 0x20000000
je 0x105f6fe
push 0x100fea0
push 0x30
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01016edb
push 1
push 0x615
push 0x100ff0c
lea ecx, [ebp - 0x38]
call fcn.01055826
or dword [ebp - 4], 0xffffffff
xor esi, esi
xor eax, eax
lea edi, [ebp - 8]
mov dword [ebp - 0xc], esi
stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], esi
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x105f731
mov dword [eax], esi
cmp dword [ebp + 8], esi
je 0x105f73d
mov eax, dword [ebp + 0xc]
cmp eax, esi
jne 0x105f752
mov dword [ebp - 0x38], 0x80070057
mov eax, 0x61d
mov word [ebp - 0x32], ax
jmp 0x105f84b
or dword [eax], 0xffffffff
push esi
push 0x2200000
push 3
push esi
push 7
push 0x80
push dword [ebp + 8]
mov ecx, 0x61d
mov dword [ebp - 0x38], esi
mov word [ebp - 0x34], cx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], esi
je 0x105f79c
cmp eax, 0xffffffff
je 0x105f78b
cmp eax, esi
jne 0x105f79c
mov dword [ebp - 0x38], 1
mov eax, 0x62f
jmp 0x105f847
cmp eax, 0xffffffff
je 0x105f7a5
cmp eax, esi
jne 0x105f7eb
call fcn.0105d3b8
mov dword [ebp - 0x38], eax
mov eax, 0x632
mov word [ebp - 0x32], ax
mov eax, dword [0x1075318]
cmp eax, ebx
je 0x105f84b
test dword [eax + 0x1c], 0x2000000
je 0x105f84b
push dword [ebp - 0x38]
push dword [ebp + 8]
push 0x100fefc
push 0x100fea0
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101707f
jmp 0x105f84b
mov eax, 0x632
mov word [ebp - 0x34], ax
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
push 0x23
stosd dword es:[edi], eax
push 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x38], esi
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov ecx, eax
call fcn.0105d4af
cmp eax, esi
mov dword [ebp - 0x38], eax
jge 0x105f82b
mov eax, 0x636
jmp 0x105f749
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x105f83f
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov dword [ebp - 0x38], esi
mov eax, 0x63e
mov word [ebp - 0x34], ax
cmp dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x38]
je 0x105f862
cmp dword [ebp - 4], esi
je 0x105f862
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x38]
call fcn.01055a3c
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x105f896
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x1075318]
cmp eax, 0x1075318
je 0x105f8c5
test dword [eax + 0x1c], 0x20000000
je 0x105f8c5
push 0x100fea0
push 0x43
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01016edb
push ebx
push esi
push edi
push 1
push 0x939
push 0x100ff24
lea ecx, [ebp - 0x2c]
call fcn.01055826
xor ebx, ebx
xor eax, eax
push 9
pop ecx
lea edi, [ebp - 0x50]
mov dword [ebp - 0x54], ebx
rep stosd dword es:[edi], eax
lea edi, [ebp - 4]
or esi, 0xffffffff
mov dword [ebp - 8], ebx
stosd dword es:[edi], eax
mov eax, 0x93f
cmp dword [ebp + 8], ebx
jne 0x105f90f
mov dword [ebp - 0x2c], 0x80070057
mov word [ebp - 0x26], ax
jmp 0x105fa04
push ebx
push 0x2200000
push 3
push ebx
push 7
push 0x180
push dword [ebp + 8]
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x28], ax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x105f93a
cmp esi, ebx
jne 0x105f987
call fcn.0105d3b8
mov dword [ebp - 0x2c], eax
mov eax, 0x948
mov word [ebp - 0x26], ax
mov eax, dword [0x1075318]
cmp eax, 0x1075318
je 0x105fa04
test dword [eax + 0x1c], 0x2000000
je 0x105fa04
push dword [ebp - 0x2c]
push dword [ebp + 8]
push 0x100fefc
push 0x100fea0
push 0x44
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101707f
jmp 0x105fa04
push 0xa
pop ecx
mov eax, 0x948
mov word [ebp - 0x28], ax
xor eax, eax
push 4
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
push 0x28
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 8]
push eax
push esi
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov ecx, eax
call fcn.0105d4af
mov dword [ebp - 0x2c], eax
cmp eax, ebx
mov eax, 0x94c
jl 0x105f906
mov word [ebp - 0x28], ax
mov eax, dword [ebp + 0xc]
or eax, 0x80
push 4
mov dword [ebp - 0x34], eax
push 0x28
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov ecx, eax
call fcn.0105d4af
mov dword [ebp - 0x2c], eax
cmp eax, ebx
mov eax, 0x952
jl 0x105f906
mov word [ebp - 0x28], ax
mov edi, dword [ebp - 0x2c]
cmp esi, 0xffffffff
je 0x105fa17
cmp esi, ebx
je 0x105fa17
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.01055a3c
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x105fd99
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x1075318]
mov esi, 0x1075318
mov edi, 0x100fea0
cmp eax, esi
je 0x105fdce
test dword [eax + 0x1c], 0x20000000
je 0x105fdce
push edi
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01016edb
push 1
push 0x519
push 0x100ff68
lea ecx, [ebp - 0x28]
call fcn.01055826
or dword [ebp - 4], 0xffffffff
mov eax, dword [0x1075318]
mov ebx, dword [ebp + 8]
cmp eax, esi
je 0x105fe0a
test dword [eax + 0x1c], 0x10000000
je 0x105fe0a
push ebx
push edi
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01016f01
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call esi
test eax, eax
je 0x105fe26
and dword [ebp - 0x28], 0
mov eax, 0x521
mov word [ebp - 0x24], ax
jmp 0x105fe7c
lea eax, [ebp - 4]
push eax
push ebx
call fcn.0105fcc5
mov dword [ebp - 0x28], eax
test eax, eax
mov eax, 0x527
jge 0x105fe42
mov word [ebp - 0x22], ax
jmp 0x105fe6d
push ebx
mov word [ebp - 0x24], ax
call esi
test eax, eax
jne 0x105fe5c
call fcn.0105d3b8
mov dword [ebp - 0x28], eax
mov eax, 0x52c
jmp 0x105fe3c
and dword [ebp - 0x28], 0
or dword [ebp - 4], 0xffffffff
mov eax, 0x52c
mov word [ebp - 0x24], ax
cmp dword [ebp - 4], 0xffffffff
je 0x105fe7c
push dword [ebp - 4]
push ebx
call fcn.0105f896
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.01055a3c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x105febb
Capabilities:
Check if file exists
Delete directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x1075318]
mov esi, 0x1075318
mov edi, 0x100fea0
cmp eax, esi
je 0x105fef0
test dword [eax + 0x1c], 0x20000000
je 0x105fef0
push edi
push 0x34
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01016edb
push 1
push 0x761
push 0x100ff78
lea ecx, [ebp - 0x28]
call fcn.01055826
or ebx, 0xffffffff
cmp dword [ebp + 8], 0
mov dword [ebp - 4], ebx
mov eax, 0x766
jne 0x105ff25
mov dword [ebp - 0x28], 0x80070057
mov word [ebp - 0x22], ax
jmp 0x106004f
and dword [ebp - 0x28], 0
mov word [ebp - 0x24], ax
mov eax, dword [0x1075318]
cmp eax, esi
je 0x105ff50
test dword [eax + 0x1c], 0x10000000
je 0x105ff50
push dword [ebp + 8]
push edi
push 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01016f01
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call edi
test eax, eax
je 0x105ff71
mov eax, 0x76c
and dword [ebp - 0x28], 0
mov word [ebp - 0x24], ax
jmp 0x106004f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x1060031
call esi
cmp eax, 3
je 0x1060031
call esi
cmp eax, 5
jne 0x105ffe2
push 0
push 0x2000000
push 3
push 0
push 7
push 0x100000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x105ffba
test ebx, ebx
jne 0x105ffcf
call esi
cmp eax, 2
je 0x105ffc8
call esi
cmp eax, 3
jne 0x105ffcf
mov eax, 0x77f
jmp 0x105ff64
cmp ebx, 0xffffffff
je 0x105ffe2
test ebx, ebx
je 0x105ffe2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or ebx, 0xffffffff
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0105fcc5
mov dword [ebp - 0x28], eax
test eax, eax
mov eax, 0x788
jge 0x1060000
mov word [ebp - 0x22], ax
jmp 0x106003e
push dword [ebp + 8]
mov word [ebp - 0x24], ax
call edi
test eax, eax
jne 0x1060027
call fcn.0105d3b8
mov dword [ebp - 0x28], eax
mov eax, 0x78d
mov word [ebp - 0x22], ax
mov dword [ebp - 0x20], 1
jmp 0x106003e
mov eax, 0x78d
jmp 0x105ff64
and dword [ebp - 0x28], 0
mov eax, 0x771
mov word [ebp - 0x24], ax
cmp dword [ebp - 4], 0xffffffff
je 0x106004f
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0105f896
mov esi, dword [ebp - 0x28]
cmp ebx, 0xffffffff
je 0x1060062
test ebx, ebx
je 0x1060062
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
call fcn.01055a3c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x106248c
Capabilities:
Enumerate gui resources

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push 1
push 0x23e
push 0x10102a4
lea ecx, [ebp - 0x38]
call fcn.01055826
xor eax, eax
xor esi, esi
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 0x18]
cmp edi, esi
je 0x10624c2
mov dword [edi], esi
mov ebx, dword [ebp + 8]
mov eax, 0x246
cmp ebx, esi
jne 0x10624de
mov dword [ebp - 0x38], 0x80070057
mov word [ebp - 0x32], ax
jmp 0x1062592
mov word [ebp - 0x34], ax
mov eax, 0x247
cmp dword [ebp + 0xc], esi
je 0x10624ce
mov word [ebp - 0x34], ax
inc eax
cmp edi, esi
je 0x10624ce
push dword [ebp + 0xc]
mov dword [ebp - 0x38], esi
mov word [ebp - 0x34], ax
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
cmp eax, esi
jne 0x1062518
call fcn.0105d3b8
mov dword [ebp - 0x38], eax
mov eax, 0x24b
jmp 0x10624d5
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x24b
push 0x1062332
mov dword [ebp - 0x38], esi
mov word [ebp - 0x34], cx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 4]
cmp eax, esi
jne 0x1062584
mov eax, dword [0x1075318]
cmp eax, 0x1075318
je 0x1062576
test dword [eax + 0x1c], 0x4000000
je 0x1062576
push 0x1010180
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01016edb
mov dword [ebp - 0x38], 1
mov eax, 0x258
jmp 0x106258e
mov dword [edi], eax
mov dword [ebp - 0x38], esi
mov eax, 0x25c
mov word [ebp - 0x34], ax
mov esi, dword [ebp - 0x38]
lea ecx, [ebp - 0x38]
call fcn.01055a3c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1066a28
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
push 1
push 0xb9
push 0x101092c
lea ecx, [ebp - 0x24]
call fcn.01055826
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
mov eax, 0xbb
jne 0x1066a69
mov dword [ebp - 0x24], 0x80070057
mov word [ebp - 0x1e], ax
jmp 0x1066b19
mov esi, dword [ebp + 8]
push ebx
push dword [esi + 8]
mov dword [esi + 4], edi
push 2
push 0x46f
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], ax
call edi
push 0x1e
push 1
push 0x46b
push dword [esi + 4]
call edi
push ebx
push ebx
push esi
push 0x10667ea
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x1066ac3
cmp eax, 0xffffffff
je 0x1066ac3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x20], ebx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
cmp eax, ebx
je 0x1066ad2
cmp eax, 0xffffffff
jne 0x1066ae5
call fcn.0105d3b8
mov dword [ebp - 0x24], eax
mov eax, 0xce
mov word [ebp - 0x1e], ax
jmp 0x1066b18
mov eax, 0xce
mov word [ebp - 0x20], ax
mov eax, dword [esi + 0x20]
push 0xc8
push eax
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1066b18
push ebx
push 2
push 0x466
push dword [esi + 4]
mov dword [esi + 0x18], 1
call edi
pop ebx
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
call fcn.01055a3c
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x106737a
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.01067854
mov esi, eax
test esi, esi
jl 0x1067426
mov eax, dword [ebp + 0x10]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x10673a6
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 0x10673e6
mov esi, 0xc000009a
jmp 0x1067424
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 0x1067443
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 0x106751e
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ecx, 0x1070ee8
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 0x1067538
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 0x10676c4
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 0x10676c4
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 0x10675ab
mov dword [ebp - 8], 0xc000009a
jmp 0x1067680
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 0x10675c4
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 0x10675dc
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 0x106759f
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 0x106762a
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 0x1067654
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 0x106769f
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 0x10676ba
test esi, esi
je 0x10676ba
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 0x10676ba
Function at 0x106880e
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 0x1068839
lea ecx, [eax + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ecx
jmp 0x1068847
cmp ecx, 6
jne 0x106885c
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 0x1068943
cmp ecx, 6
je 0x1068866
mov esi, 0xc000000d
jmp 0x1068996
push 0x38
lea ecx, [eax + 0x38]
mov eax, dword [eax + 8]
pop edx
mov dword [ebp - 0x18], edx
cmp eax, 0x5c
jb 0x106885c
mov ebx, dword [ecx + 8]
add ebx, edx
cmp eax, ebx
jb 0x106885c
cmp dword [ecx], esi
jne 0x106885c
cmp dword [ecx + 0x10], 5
jne 0x106885c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push ecx
call fcn.01068352
mov esi, eax
test esi, esi
jl 0x1068979
cmp dword [ebp - 8], 0x2e
jb 0x106899f
mov ebx, dword [ebp - 4]
cmp dword [ebx], 3
jne 0x106899f
mov eax, dword [ebx + 0x14]
add eax, ebx
cmp dword [eax], edi
jne 0x106899f
add eax, 0x14
mov dword [ebp - 0x14], eax
lea edx, [eax + 2]
mov cx, word [eax]
add eax, edi
test cx, cx
jne 0x10688d0
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 0x10688e9
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 0x1068921
mov esi, 0xc0000017
jmp 0x1068979
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 0x106894f
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x106895b
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1068967
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x1068970
mov dword [eax], edx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1068979
mov dword [eax], ebx
cmp dword [ebp - 4], 0
je 0x1068996
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 0x1068979