joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41795c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b740]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00411ca2
and dword [ebp - 0x14], 0
cmp dword [0x523484], 0
mov dword [ebp - 0x18], eax
jne 0x417a0f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x417ab7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x417ab7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x523484], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x523488], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x52348c], eax
call edi
push eax
call esi
mov dword [0x523494], eax
test eax, eax
je 0x417a0f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x523490], eax
mov eax, dword [0x523490]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x417a68
cmp dword [0x523494], ecx
je 0x417a68
push eax
call esi
push dword [0x523494]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x417a68
test ebx, ebx
je 0x417a68
call edi
test eax, eax
je 0x417a5f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x417a5f
test byte [ebp - 8], 1
jne 0x417a68
or dword [ebp + 0x10], 0x200000
jmp 0x417a9b
mov eax, dword [0x523488]
cmp eax, dword [ebp - 0x18]
je 0x417a9b
push eax
call esi
test eax, eax
je 0x417a9b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x417a9b
mov eax, dword [0x52348c]
cmp eax, dword [ebp - 0x18]
je 0x417a9b
push eax
call esi
test eax, eax
je 0x417a9b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x523484]
call esi
test eax, eax
je 0x417ab7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x417ab9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c354
leave
ret
Function at 0x402019
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x42e040]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, dword [0x4864c8]
xor ebx, ebx
push edi
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x402080
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.00402631
lea ecx, [esp + 0x1c]
call fcn.00401e49
cmp eax, dword [esp + 0x14]
je 0x402098
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.004026be
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x402050
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00406d02
add esp, 0x2c
ret
mov edx, str.QwruxAA
call fcn.00402a1e
push eax
call fcn.00402c97
mov eax, dword [ebp + 0x24]
pop ecx
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.004026be
jmp 0x402082
Function at 0x416e62
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416b04

Function at 0x416e6d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416c93

Function at 0x417267
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407c60
mov eax, dword [0x42e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00415596
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4172a9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x417405
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004221f0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x486188]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418437
mov ecx, dword [esi*4 + 0x486188]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4173fe
cmp eax, dword [edi + ecx + 0x24]
jne 0x4173fe
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4173fe
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418437
add esp, 0x14
test edx, edx
jl 0x4173fe
jg 0x417374
test eax, eax
jb 0x4173fe
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4173fe
jl 0x41738e
cmp dword [ebp - 0x1008], eax
ja 0x4173fe
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4173ac
test ebx, ebx
je 0x4173e5
cmp ecx, edi
jae 0x4173e5
mov al, byte [ecx]
cmp al, 0xd
jne 0x4173c6
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4173d2
cmp byte [ecx + 1], 0xa
jne 0x4173d2
inc ecx
jmp 0x4173d2
movzx eax, al
movsx eax, byte [eax + 0x42e308]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4173ac
cmp edx, ebx
jne 0x4173ac
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x417403
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406d02
leave
ret
Function at 0x4178d5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x486188]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417915
cmp byte [ebx], 0xa
jne 0x417915
or byte [eax + edi + 0x28], 4
jmp 0x41791a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x417a18
mov al, byte [edx]
cmp al, 0x1a
je 0x4179fa
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x417949
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41796e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x417978
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41792b
jmp 0x417a18
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4179f5
cmp dword [ebp - 0xc], 0
je 0x4179f5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x486188]
test byte [eax + edi + 0x28], 0x48
je 0x4179cf
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4179ba
mov byte [esi], dl
jmp 0x4179cb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x486188]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x417a18
cmp byte [ebp - 1], 0xa
jne 0x4179de
cmp esi, ebx
jne 0x4179de
mov byte [esi], 0xa
jmp 0x417a17
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418455
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x417a18
mov byte [esi], 0xd
jmp 0x417a17
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x486188]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417a14
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417a18
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x417a21
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x486188]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417a64
cmp word [esi], dx
jne 0x417a64
or byte [edi + eax + 0x28], 4
jmp 0x417a69
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x417bbc
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x417b9c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x417aab
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x417ae1
cmp eax, edx
jae 0x417aed
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x417a83
jmp 0x417bbc
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417b98
cmp dword [ebp - 0x14], 0
je 0x417b98
mov eax, dword [ebx*4 + 0x486188]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x417b70
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x417b39
mov word [esi], cx
jmp 0x417b6c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x486188]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x486188]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x486188]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x417bbc
pop ebx
cmp word [ebp - 4], bx
jne 0x417b81
cmp esi, dword [ebp + 0xc]
jne 0x417b81
mov word [esi], bx
jmp 0x417bb9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418455
add esp, 0x10
cmp word [ebp - 4], bx
je 0x417bbc
push 0xd
jmp 0x417bb5
mov ecx, dword [ebx*4 + 0x486188]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417bb3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417bbc
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10215b6
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10de03c]
mov ecx, dword [ebp + 0xc]
push 0x10dfde8
push 0x14
lea edx, [ebp - 0x2c]
push edx
push 0x100205c
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jle 0x1021630
lea eax, [ebp - 0x2c]
push esi
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
mov esi, eax
jmp 0x10215fa
inc esi
inc esi
cmp word [esi], 0x20
je 0x10215f8
push 0x10041fc
push esi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
test eax, eax
pop ecx
lea eax, [ebp + 0x10]
push eax
je 0x1021620
push 0x10041f4
add esi, 4
jmp 0x1021625
push 0x10041ec
push esi
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
call fcn.01075bbb
leave
ret 0xc
Function at 0x1021b36
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077868
sub esp, 0x248
mov eax, dword [0x10de03c]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
mov edi, reloc.KERNEL32.dll_WaitForSingleObject
push 0x4000
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x234], 0x2000
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x24c], WaitForSingleObject
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x224], ebx
call fcn.010760ac
cmp eax, ebx
pop ecx
mov dword [ebp - 0x230], eax
je 0x1021d88
lea ecx, [esi + 0xba4]
mov dword [ebp - 0x238], ecx
call fcn.010766ac
lea ecx, [esi + 0xbc0]
mov dword [ebp - 0x240], ecx
call fcn.010766ac
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x220]
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
push 0x1004238
push edi
mov dword [ebp - 0x22c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1021d43
mov esi, dword [ebp - 0x230]
lea eax, [ebp - 0x234]
push eax
push esi
lea eax, [ebp - 0x244]
push eax
push ebx
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x22c]
mov dword [ebp - 0x23c], 0x208
push dword [ebp - 0x220]
mov dword [ebp - 0x234], 0x2000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc dword [ebp - 0x22c]
cmp eax, ebx
jne 0x1021d43
cmp dword [ebp - 0x244], 7
jne 0x1021bf3
lea ecx, [ebp - 0x21c]
call fcn.01075f2c
lea eax, [ebp - 0x218]
push 0x100421c
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
je 0x1021c8e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.01075ef0
jmp 0x1021bf3
cmp word [esi], bx
je 0x1021c7a
mov edi, 0x1004208
push 0x25
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x1021cf0
lea ecx, [ebp - 0x228]
call fcn.01075f2c
lea eax, [ebp - 0x228]
push eax
push esi
mov byte [ebp - 4], 1
call fcn.01021826
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x228]
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.01075f50
add esp, 0x10
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], bl
call fcn.01075ef0
jmp 0x1021d08
lea eax, [ebp - 0x218]
push eax
push esi
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.01075f50
add esp, 0x10
cmp dword [ebp - 0x224], 1
mov ecx, dword [ebp - 0x240]
lea eax, [ebp - 0x21c]
push eax
je 0x1021d24
mov ecx, dword [ebp - 0x238]
call fcn.010766a0
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
pop ecx
jne 0x1021c98
jmp 0x1021c7a
cmp dword [ebp - 0x220], ebx
je 0x1021d5d
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x220], ebx
inc dword [ebp - 0x224]
mov eax, dword [ebp - 0x224]
mov edi, dword [ebp + eax*4 - 0x250]
cmp edi, ebx
jne 0x1021bc2
push dword [ebp - 0x230]
call fcn.01075f8c
pop ecx
xor eax, eax
jmp 0x1021d8b
xor eax, eax
inc eax
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 4
Function at 0x1022b17
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
jne 0x1022bd2
push 0x1004a34
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 4], eax
je 0x1022bcc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1004a14
push eax
call edi
push 0x10049f4
push dword [esi + 4]
mov dword [esi + 8], eax
call edi
push 0x10049d4
push dword [esi + 4]
mov dword [esi + 0xc], eax
call edi
push 0x10049b4
push dword [esi + 4]
mov dword [esi + 0x10], eax
call edi
push 0x1004990
push dword [esi + 4]
mov dword [esi + 0x14], eax
call edi
push 0x1004968
push dword [esi + 4]
mov dword [esi + 0x18], eax
call edi
push 0x1004944
push dword [esi + 4]
mov dword [esi + 0x1c], eax
call edi
cmp dword [esi + 8], ebx
mov dword [esi + 0x20], eax
pop edi
je 0x1022bc0
cmp dword [esi + 0xc], ebx
je 0x1022bc0
cmp dword [esi + 0x10], ebx
je 0x1022bc0
cmp dword [esi + 0x14], ebx
je 0x1022bc0
cmp dword [esi + 0x18], ebx
je 0x1022bc0
cmp eax, ebx
je 0x1022bc0
cmp dword [esi + 0x1c], ebx
jne 0x1022bcc
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 4], ebx
mov dword [esi], 1
pop esi
pop ebx
ret

Function at 0x1023152
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x204
cmp dword [ebp + 0xc], 0
mov eax, dword [0x10de03c]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
mov edi, ecx
je 0x10231b8
push CompareStringW
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x1023199
lea eax, [ebp - 0x204]
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x204]
push eax
mov ecx, edi
call fcn.0102309e
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01075bbb
leave
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10231e0
test ah, 4
je 0x10231e0
push CompareStringW
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x1023199
xor eax, eax
jmp 0x10231aa
Function at 0x1023425
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x10de03c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [ebp - 0x834], eax
lea eax, [ebp - 0x828]
push eax
push dword [0x10dc6f0]
push reloc.KERNEL32.dll_WaitForSingleObject
call ebx
test eax, eax
je 0x1023467
xor eax, eax
jmp 0x10234f4
push esi
push edi
xor esi, esi
mov eax, dword [esi + 0x10046c0]
mov edi, dword [esi + 0x10046c4]
lea ecx, [ebp - 0x82c]
push ecx
push eax
push dword [ebp - 0x828]
mov dword [ebp - 0x830], 0x820
call ebx
test eax, eax
jne 0x10234db
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x838]
push eax
push 0
push edi
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10234cf
mov ecx, dword [ebp - 0x834]
lea eax, [ebp - 0x824]
push eax
call fcn.0102332e
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 8
cmp esi, 0x50
jb 0x102346b
push dword [ebp - 0x828]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01075bbb
leave
ret 4

Function at 0x1023506
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077868
sub esp, 0x22c
mov eax, dword [0x10de03c]
push ebx
push esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x220]
push eax
push dword [0x10dc6cc]
push reloc.KERNEL32.dll_WaitForSingleObject
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x102358b
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x238]
push eax
push 0
push 0x1004a58
push dword [ebp - 0x220]
mov dword [ebp - 0x22c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10235a6
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.01075bbb
pop edi
pop esi
pop ebx
leave
ret 4
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov dword [ebp - 0x230], eax
lea eax, [eax + eax + 0x1e]
push eax
mov dword [ebp - 0x224], eax
call fcn.010760ac
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 0x228], ebx
je 0x102358b
push 7
pop ecx
mov esi, 0x10dc6d0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x230]
lea esi, [ebp - 0x21c]
lea edi, [ebx + 0x1c]
rep movsw word es:[edi], word [esi]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x234]
and word [eax + ebx - 2], 0
and dword [ebp - 4], 0
push ebx
call fcn.0102332e
or dword [ebp - 4], 0xffffffff
push ebx
call fcn.01075f8c
xor eax, eax
pop ecx
inc eax
jmp 0x102358d
Function at 0x1023647
Capabilities:
Query environment variable

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077868
sub esp, 0x884
mov eax, dword [0x10de03c]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], eax
push 0x410
lea eax, [ebp - 0x834]
push eax
push 0x1004ad4
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1023696
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1004a78
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
pop ecx
jmp 0x10236ed
lea ecx, [ebp - 0x860]
call fcn.01022f85
xor edi, edi
lea eax, [ebp - 0x860]
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x83c], edi
mov byte [ebp - 4], 1
call fcn.01023506
cmp eax, edi
jne 0x10236ce
lea ecx, [ebp - 0x860]
jmp 0x10236e4
lea eax, [ebp - 0x860]
push eax
call fcn.01023425
cmp eax, edi
lea ecx, [ebp - 0x860]
jne 0x10236f4
or dword [ebp - 4], 0xffffffff
call fcn.01022fa6
xor eax, eax
jmp 0x10237f6
lea eax, [ebp - 0x834]
push eax
call fcn.0102332e
lea ecx, [ebp - 0x890]
call fcn.01022af0
lea ecx, [ebp - 0x890]
mov byte [ebp - 4], 2
call fcn.01022b17
lea ecx, [ebp - 0x890]
call fcn.010232d2
lea eax, [ebp - 0x838]
push eax
push 1
lea ecx, [ebp - 0x890]
call fcn.01022bfa
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x83c], ebx
jne 0x1023761
lea ecx, [ebp - 0x890]
call fcn.01022e66
lea ecx, [ebp - 0x890]
mov byte [ebp - 4], 1
call fcn.010232ad
jmp 0x10237d5
push ebx
lea ecx, [ebp - 0x860]
call fcn.0102332e
mov esi, dword [ebp - 0x838]
cmp word [esi], di
je 0x1023791
push esi
lea ecx, [ebp - 0x860]
call fcn.0102332e
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea esi, [esi + eax*2]
jmp 0x1023773
push ebx
call fcn.01075f8c
pop ecx
push dword [ebp - 0x838]
call fcn.01075f8c
pop ecx
mov dword [ebp - 0x83c], edi
mov dword [ebp - 0x838], edi
jmp 0x1023725
lea ecx, [ebp - 0x860]
mov dword [ebp - 4], edi
call fcn.010231e9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x860]
mov esi, eax
call fcn.01022fa6
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.01075bbb
pop edi
pop esi
pop ebx
leave
ret