joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102697d
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10de03c]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push 0x20
push 2
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp dword [ebp - 0x10], ebx
je 0x10269e6
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x10269dd
mov dword [ebp - 0x14], ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
pop ebx
call fcn.01075bbb
leave
ret 4

Function at 0x1026e9e
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x10cc80d
call fcn.01077868
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x1004f7c
cmp dword [esi + 0x11c], 0
mov dword [ebp - 4], 5
jne 0x1026ee0
push 0x3e8
push dword [esi + 0x168]
mov dword [esi + 0x118], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x168]
test eax, eax
je 0x1026efc
cmp dword [esi + 0x11c], 0
jne 0x1026efc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
push dword [esi + 0x108]
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
push dword [esi + 0x10c]
call edi
push dword [esi + 0x110]
call edi
add esp, 0xc
lea eax, [esi + 0xe8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 0x168]
test eax, eax
pop edi
je 0x1026f3d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi + 0x170]
call fcn.01026df0
lea ecx, [esi + 0x124]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CAnimateCtrl::CAnimateCtrl
lea ecx, [esi + 0xe4]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0xe0]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0xa0]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CButton::CButton
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CButton::CButton
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call sub.MFC42u.DLL_CDialog::CDialog
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x10281bd
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x10ccaa5
call fcn.01077868
sub esp, 0x688
mov eax, dword [0x10de03c]
push ebx
push esi
push edi
push 0xd
mov edx, ecx
pop ecx
xor ebx, ebx
push ebx
push 1
mov dword [ebp - 0x10], eax
xor eax, eax
push 0x2001
lea edi, [ebp - 0x694]
rep stosd dword es:[edi], eax
lea edi, [edx + 0x150]
push 0x10
lea eax, [ebp - 0x420]
mov esi, 0x104
push 0x10
mov ecx, edi
mov dword [ebp - 0x62c], edx
mov dword [ebp - 0x634], ebx
mov dword [ebp - 0x630], esi
mov dword [ebp - 0x680], eax
call sub.MFC42u.DLL_CImageList::Create
test eax, eax
je 0x102835b
mov ecx, dword [ebp - 0x62c]
push 1
add ecx, 0xe8
push edi
mov dword [ebp - 0x62c], ecx
call fcn.0102818d
lea eax, [ebp - 0x640]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
jmp 0x1028348
inc dword [ebp - 0x634]
cmp word [ebp - 0x218], 0x2e
mov dword [ebp - 0x694], 0xb
mov dword [ebp - 0x630], esi
jne 0x102832a
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x660]
call fcn.0103c267
push esi
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x660]
mov dword [ebp - 4], ebx
call fcn.0103bb4d
lea ecx, [ebp - 0x660]
mov dword [ebp - 0x68c], ebx
call fcn.0103bafe
push eax
mov ecx, edi
call fcn.01027b01
mov ecx, dword [ebp - 0x62c]
mov dword [ebp - 0x678], eax
lea eax, [ebp - 0x694]
push eax
call fcn.01027a5e
mov dword [ebp - 0x638], eax
push esi
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x660]
call fcn.0103bb7a
mov ecx, dword [ebp - 0x62c]
lea eax, [ebp - 0x628]
push eax
push 1
push dword [ebp - 0x638]
call sub.MFC42u.DLL_CListCtrl::SetItemText
inc dword [ebp - 0x690]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x660]
call fcn.0103ba7d
lea eax, [ebp - 0x640]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x634]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1028265
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01075bbb
leave
ret
Function at 0x102a57f
Capabilities:
Check if file exists
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x10de03c]
and word [ebp - 0x20c], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x20c]
push 0x10054a8
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x102a60c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.01087f4d
test ax, ax
je 0x102a607
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
dec eax
neg eax
sbb eax, eax
add eax, 7
mov dword [esi], eax
mov ax, 1
jmp 0x102a66a
xor ax, ax
jmp 0x102a66a
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 2
je 0x102a666
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
test eax, eax
je 0x102a65b
cmp eax, 2
je 0x102a64a
jbe 0x102a666
cmp eax, 4
ja 0x102a666
xor eax, eax
cmp ebx, 0x6f9
setne al
dec eax
and eax, 0xfffffffd
add eax, 5
mov dword [esi], eax
jmp 0x102a661
cmp ebx, 0x15
jne 0x102a657
mov dword [esi], 3
jmp 0x102a661
mov dword [esi], ecx
jmp 0x102a661
mov dword [esi], 4
mov ax, cx
jmp 0x102a669
xor ax, ax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01075bbb
leave
ret 8
Function at 0x102a79e
Capabilities:
Get disk information

Disassembly:
mov eax, 0x10ccec4
call fcn.01077868
sub esp, 0x20c
mov eax, dword [0x10de03c]
push ebx
push esi
mov dword [ebp - 0x10], eax
call fcn.0104e929
xor ebx, ebx
test eax, eax
je 0x102a87c
call fcn.0102150d
add eax, 0xa2
push eax
lea ecx, [ebp - 0x214]
call sub.MFC42u.DLL_CString::CString_5
mov esi, 0x1004204
push esi
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::Find_1
cmp eax, 0xffffffff
lea ecx, [ebp - 0x214]
je 0x102a82a
inc eax
push eax
lea eax, [ebp - 0x218]
push eax
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
jmp 0x102a830
push esi
call fcn.010762bc
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x102a85e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x214]
mov word [0x10e0110], 1
call sub.MFC42u.DLL_CString::CString
jmp 0x102a8fc
push dword [ebp - 0x214]
push edi
call dword [sym.imp.msvcrt.dll_wcscpy]
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x214]
call sub.MFC42u.DLL_CString::CString
call fcn.0102150d
cmp word [eax + 0xb88], 2
push 0xff
lea eax, [ebp - 0x210]
push eax
je 0x102a89e
push 0xfa3
jmp 0x102a8a3
push 0xe000
call fcn.01068091
push 1
push ebx
push 0x40
push 4
push 0xbd2
lea eax, [ebp - 0x210]
push eax
call fcn.01054b36
cmp eax, 6
jne 0x102a8f3
push edi
push 0xbc5
call fcn.010889b4
pop ecx
pop ecx
push 1
push ebx
push 0x30
push ebx
mov esi, eax
push esi
push 0xfa0
call fcn.01054b96
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov ax, 0x8008
jmp 0x102a900
mov word [0x10e0110], 1
mov ax, 0x8007
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01075bbb
leave
ret
Function at 0x103aac5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x10de03c]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, 0x104
push eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x414]
push eax
push 0x1005d9c
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x428], esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x103ab50
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.0108f3c7
test ax, ax
je 0x103ab59
mov ax, 1
jmp 0x103ac0c
cmp dword [ebp + 0x18], 0
jne 0x103ab71
and word [ebp - 0x20c], 0
mov dword [ebp - 0x41c], 2
cmp dword [ebp + 0x18], 2
mov esi, 0x10054a8
je 0x103aba4
push edi
push esi
push dword [ebp - 0x41c]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
push dword [ebp - 0x424]
push ebx
call fcn.0103a1c2
mov ebx, eax
test bx, bx
jne 0x103ac09
inc dword [edi + 4]
and dword [ebp - 0x418], 0
lea eax, [ebp - 0x418]
push eax
push 6
push 0
push dword [ebp - 0x428]
call fcn.010844f3
mov ebx, eax
test bx, bx
jne 0x103ac09
push edi
push esi
push 2
push 0x100205c
push dword [ebp - 0x418]
push dword [ebp - 0x424]
push dword [ebp - 0x420]
call fcn.0103a1c2
push dword [ebp - 0x418]
push dword [ebp - 0x420]
mov ebx, eax
call fcn.0108efdc
test eax, eax
je 0x103ac09
mov byte [eax + 0xcc], 0x23
mov ax, bx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret 0x14

Function at 0x103ac20
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
mov esi, 0x10e1990
xor ebx, ebx
push esi
mov dword [0x10e1bac], edi
mov dword [0x10e1ba8], edi
mov word [0x10e1ba4], di
mov dword [0x10e1ba0], edi
inc ebx
call dword [sym.imp.msvcrt.dll_wcscpy]
mov ax, word [ebp + 0xc]
pop ecx
mov word [0x10e1b98], ax
mov eax, dword [ebp + 0x10]
pop ecx
mov dword [0x10e1b9c], eax
call sub.MFC42u.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42u.DLL_CCmdTarget::BeginWaitCursor
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x103a632
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, edi
je 0x103acc0
call fcn.01075adf
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x103ac8f
lea eax, [ebp + 0xc]
push eax
push esi
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp + 0xc], edi
jne 0x103acb9
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call sub.MFC42u.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42u.DLL_CCmdTarget::EndWaitCursor
pop edi
pop esi
mov ax, bx
pop ebx
pop ebp
ret 0xc
Function at 0x1046329
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x10ce070
call fcn.01077868
sub esp, 0x2c0
mov eax, dword [0x10de03c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2cc], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
test eax, eax
mov eax, dword [esi]
mov ecx, esi
je 0x104636c
call dword [eax + 0x28]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
jmp 0x1046485
call dword [eax + 0x44]
test eax, eax
mov eax, dword [esi]
mov ecx, esi
je 0x1046387
push 0x23
call dword [eax + 0x2c]
mov eax, dword [esi]
push 0x22
mov ecx, esi
call dword [eax + 0x30]
jmp 0x104638c
push 0x26
call dword [eax + 0x2c]
push ebx
push edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x2c4], ebx
mov ecx, 0xac
lea edi, [ebp - 0x2c0]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x2c8]
call sub.MFC42u.DLL_CString::CString_4
mov eax, dword [esi]
lea ecx, [ebp - 0x2c8]
push ecx
mov ecx, esi
mov dword [ebp - 4], ebx
call dword [eax + 0x78]
test eax, eax
je 0x1046474
mov eax, dword [ebp - 0x2c8]
cmp dword [eax - 8], 0x104
jg 0x1046474
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0x4501
push 0x2b4
lea ecx, [ebp - 0x2c4]
push ecx
push ebx
push eax
call edi
cmp eax, ebx
je 0x1046474
push dword [ebp - 0x2c0]
mov ebx, dword [esi]
push eax
push dword [ebp - 0x2cc]
call fcn.010462ea
push eax
mov ecx, esi
call dword [ebx + 0x2c]
lea eax, [ebp - 0xb0]
push eax
lea ecx, [esi + 0x20]
call sub.MFC42u.DLL_CString::operator_1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
cmp eax, 0x22
jne 0x1046474
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x44]
test eax, eax
je 0x1046474
push 0x4003
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
push 0
push dword [ebp - 0x2c8]
call edi
test eax, eax
je 0x1046474
push dword [ebp - 0x2c0]
mov edi, dword [esi]
push eax
push dword [ebp - 0x2cc]
call fcn.010462ea
push eax
mov ecx, esi
call dword [edi + 0x30]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c8]
call sub.MFC42u.DLL_CString::CString
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.01075bbb
leave
ret 8
Function at 0x1048846
Capabilities:
Get disk information

Disassembly:
mov eax, 0x10ce3f8
call fcn.01077868
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
movzx eax, word [esi]
push eax
call dword [sym.imp.msvcrt.dll_isalpha]
test eax, eax
pop ecx
je 0x1048942
cmp word [esi + 2], 0x3a
jne 0x1048942
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
cmp eax, 3
pop ecx
jbe 0x10488bd
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_4
and dword [ebp - 4], 0
push 0x13
lea eax, [ebp - 0x10]
push eax
call fcn.0104687f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x10488b6
push eax
push esi
push ecx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10488b6
push 0x25
jmp 0x10488b8
push 6
lea ecx, [ebp - 0x10]
jmp 0x1048924
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString_4
push esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 1
call sub.MFC42u.DLL_CString::operator_1
push 2
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
push 0x1004204
lea ecx, [ebp + 8]
call fcn.010762bc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
dec eax
je 0x104893e
dec eax
je 0x104893a
dec eax
je 0x1048936
dec eax
je 0x1048932
push 0x29
lea ecx, [ebp + 8]
or dword [ebp - 4], 0xffffffff
pop esi
call sub.MFC42u.DLL_CString::CString
mov eax, esi
jmp 0x104896b
push 4
jmp 0x1048921
push 5
jmp 0x1048921
push 3
jmp 0x1048921
push 2
jmp 0x1048921
cmp word [esi], 0x5c
jne 0x1048968
cmp word [esi + 2], 0x5c
jne 0x1048968
push 0x5c
add esi, 4
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
neg eax
sbb eax, eax
pop ecx
neg eax
pop ecx
add eax, 0x10
jmp 0x104896b
push 0x29
pop eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x1048db3
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push edi
push 0x31
mov esi, ecx
pop ecx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
xor edi, edi
push edi
push edi
push edi
push edi
call ebx
push edi
push edi
push edi
push edi
mov dword [esi], eax
call ebx
mov dword [esi + 4], eax
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x1047016
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x104bd5a
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x20e0
call fcn.01077a20
mov eax, dword [0x10de03c]
and dword [ebp - 0x20e0], 0
mov dword [ebp - 4], eax
mov eax, dword [0x10e25d8]
test eax, eax
push ebx
mov ebx, dword [ebp + 0xc]
je 0x104be56
cmp eax, 0xffffffff
je 0x104be56
push esi
mov esi, dword [ebp + 8]
cmp esi, 2
je 0x104bda4
cmp esi, 1
jne 0x104be55
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x20dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
cmp esi, 2
jne 0x104bdca
mov eax, 0x100982c
jmp 0x104bdd9
cmp esi, 1
mov eax, 0x10097fc
je 0x104bdd9
mov eax, 0x100205c
push ebx
push eax
movzx eax, word [ebp - 0x20ce]
push eax
movzx eax, word [ebp - 0x20d0]
push eax
movzx eax, word [ebp - 0x20d2]
push eax
movzx eax, word [ebp - 0x20d4]
push eax
movzx eax, word [ebp - 0x20d6]
push eax
movzx eax, word [ebp - 0x20da]
push eax
movzx eax, word [ebp - 0x20dc]
push eax
lea eax, [ebp - 0x20cc]
push 0x1009790
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x2c
push 0
lea eax, [ebp - 0x20e0]
push eax
lea eax, [ebp - 0x20cc]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
lea eax, [ebp - 0x20cc]
push eax
push dword [0x10e25d8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01075bbb
leave
ret 8

Function at 0x104c87b
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10ce7d3
call fcn.01077868
sub esp, 0x214
mov eax, dword [0x10de03c]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x10], eax
call sub.MFC42u.DLL_CString::CString_4
and dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x10099d8
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp dword [ebp + 8], 0
je 0x104c8d1
push 0xd4e
lea ecx, [ebp - 0x21c]
call sub.MFC42u.DLL_CString::LoadStringW
jmp 0x104c91b
lea ecx, [ebp - 0x220]
call sub.MFC42u.DLL_CString::CString_4
push 0xd4d
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::LoadStringW
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
lea eax, [ebp - 0x21c]
push eax
call sub.MFC42u.DLL_CString::Format_1
add esp, 0xc
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
call fcn.0104bcd6
push dword [ebp - 0x21c]
push 2
call fcn.0104bd5a
call fcn.0104bd38
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.01075bbb
leave
ret 4
Function at 0x104ef94
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push esi
push edi
call fcn.0104e959
mov edi, 0x10e2a1c
jmp 0x104efb8
push esi
push edi
call fcn.0108e8b4
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
call fcn.0104e959
mov esi, eax
test esi, esi
jne 0x104efa4
push edi
call fcn.0108e74e
pop edi
pop esi
jmp 0x107cc84
mov edi, edi
push ebx
or ebx, 0xffffffff
cmp dword [0x10de044], ebx
jne 0x107cc97
xor eax, eax
inc eax
pop ebx
ret
mov eax, dword [0x10e6c1c]
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x107cce0
add dword [0x10e6b80], 1
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x107ccd1
push ebx
push dword [0x10e6c1c]
call esi
push dword [0x10e6c1c]
call edi
and dword [0x10e6c1c], 0
mov eax, dword [0x10e6c24]
cmp eax, ebx
je 0x107ccf5
push eax
call sub.NTMSAPI.dll_CloseNtmsNotification
mov dword [0x10e6c24], ebx
push 0x10e6b9c
call fcn.01077d0f
test ax, ax
jne 0x107cd09
call fcn.0107af9e
mov eax, dword [0x10e6c20]
test eax, eax
je 0x107cd22
cmp eax, ebx
je 0x107cd22
push eax
call sub.NTMSAPI.dll_CloseNtmsSession
mov dword [0x10e6c20], ebx
mov eax, dword [0x10e6c18]
test eax, eax
je 0x107cd3e
push ebx
push eax
call esi
push dword [0x10e6c18]
call edi
and dword [0x10e6c18], 0
call fcn.01078ce1
call fcn.01077d84
mov esi, dword [sym.imp.msvcrt.dll_free]
jmp 0x107cd7e
push ebx
lea eax, [edi + 0x14]
push eax
call fcn.0108e8b4
push ebx
call esi
pop ecx
push edi
call fcn.01077db2
mov ebx, eax
test ebx, ebx
jne 0x107cd50
push edi
push 0x10e6b40
call fcn.0108e8b4
push edi
call esi
pop ecx
call fcn.01077d84
mov edi, eax
test edi, edi
jne 0x107cd5e
jmp 0x107cdaf
push ebx
lea eax, [edi + 0x14]
push eax
call fcn.0108e8b4
push ebx
call esi
pop ecx
push edi
call fcn.01077db2
mov ebx, eax
test ebx, ebx
jne 0x107cd86
push edi
push 0x10e6b6c
call fcn.0108e8b4
push edi
call esi
pop ecx
call fcn.01077cb3
mov edi, eax
test edi, edi
jne 0x107cd94
jmp 0x107cde5
push ebx
lea eax, [edi + 0x14]
push eax
call fcn.0108e8b4
push ebx
call esi
pop ecx
push edi
call fcn.01077db2
mov ebx, eax
test ebx, ebx
jne 0x107cdbc
push edi
push 0x10e6bd4
call fcn.0108e8b4
push edi
call esi
pop ecx
call fcn.01077cc9
mov edi, eax
test edi, edi
jne 0x107cdca
jmp 0x107ce1b
push ebx
lea eax, [edi + 0x14]
push eax
call fcn.0108e8b4
push ebx
call esi
pop ecx
push edi
call fcn.01077db2
mov ebx, eax
test ebx, ebx
jne 0x107cdf2
push edi
push 0x10e6b54
call fcn.0108e8b4
push edi
call esi
pop ecx
call fcn.01077cdf
mov edi, eax
test edi, edi
jne 0x107ce00
call fcn.01078cf0
mov eax, dword [0x10de048]
cmp eax, 0xffffffff
je 0x107ce41
push eax
push dword [0x10de044]
call sub.NTMSAPI.dll_EndNtmsDeviceChangeDetection
push dword [0x10de044]
call sub.NTMSAPI.dll_CloseNtmsSession
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
or dword [0x10de044], 0xffffffff
push 0x10e6b84
call esi
push 0x10e6bec
call esi
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x104f1e2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa78
mov eax, dword [0x10de03c]
push edi
lea ecx, [ebp - 0xa68]
push ecx
push 1
xor edi, edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push eax
push 0x80000002
mov dword [ebp - 0xa70], edi
mov dword [ebp - 0xa6c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x104f229
xor eax, eax
inc eax
jmp 0x104f3d4
push ebx
mov ebx, dword [sym.imp.msvcrt.dll__wcsicmp]
push esi
mov esi, dword [sym.imp.msvcrt.dll_wcscpy]
mov word [ebp - 0x65c], di
mov word [ebp - 0xa5c], di
mov dword [ebp - 0xa64], edi
lea eax, [ebp - 0xa60]
push eax
lea eax, [ebp - 0xcc]
push eax
push edi
push edi
lea eax, [ebp - 0xa74]
push eax
lea eax, [ebp - 0x194]
push eax
push dword [ebp - 0xa64]
mov dword [ebp - 0xa74], 0x64
push dword [ebp - 0xa68]
mov dword [ebp - 0xa60], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, edi
mov dword [ebp - 0xa78], eax
jne 0x104f34c
shr dword [ebp - 0xa60], 1
mov eax, dword [ebp - 0xa60]
mov word [ebp + eax*2 - 0xcc], di
lea eax, [ebp - 0x194]
push 0x1009fa4
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x104f300
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x25c]
push eax
call esi
push 0x1009f98
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp + eax*2 - 0xcc]
push eax
call fcn.01082855
add esp, 0x10
mov dword [ebp - 0xa70], eax
mov dword [ebp - 0xa6c], 1
lea eax, [ebp - 0x194]
push 0x1009f84
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x104f326
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x65c]
push eax
call esi
pop ecx
pop ecx
lea eax, [ebp - 0x194]
push 0x1009f6c
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x104f34c
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0xa5c]
push eax
call esi
pop ecx
pop ecx
inc dword [ebp - 0xa64]
cmp dword [ebp - 0xa78], edi
je 0x104f24b
cmp dword [ebp - 0xa6c], edi
je 0x104f3c4
cmp word [ebp - 0x65c], di
jne 0x104f381
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x65c]
push eax
call esi
pop ecx
pop ecx
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x65c]
push 0x1009f64
push eax
call esi
lea eax, [ebp - 0xa5c]
push eax
lea eax, [ebp - 0x65c]
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x65c]
push eax
push edi
push dword [ebp - 0xa70]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.0104ea49
push dword [ebp - 0xa68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.01075bbb
leave
ret 8