joyce8/EMBER2024-capa huggingface dataset:
Function at 0x103aa7f
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 0x103ab0a
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.0108f239
test ax, ax
je 0x103ab13
mov ax, 1
jmp 0x103abc6
cmp dword [ebp + 0x18], 0
jne 0x103ab2b
and word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0
mov dword [ebp - 0x41c], 2
cmp dword [ebp + 0x18], 2
mov esi, 0x10054a8
je 0x103ab5e
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.0103a17c
mov ebx, eax
test bx, bx
jne 0x103abc3
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.01084401
mov ebx, eax
test bx, bx
jne 0x103abc3
push edi
push esi
push 2
push 0x100205c
push dword [ebp - 0x418]
push dword [ebp - 0x424]
push dword [ebp - 0x420]
call fcn.0103a17c
push dword [ebp - 0x418]
push dword [ebp - 0x420]
mov ebx, eax
call fcn.0108ee4e
test eax, eax
je 0x103abc3
mov byte [eax + 0xcc], CloseServiceHandle
mov ax, bx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret 0x14

Function at 0x103abda
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 [reloc.ADVAPI32.dll_RegDeleteValueW], di
mov dword [0x10e1ba0], edi
inc ebx
call dword [sym.imp.msvcrt.dll_wcscpy]
mov ax, word [ebp + 0xc]
pop ecx
mov word [reloc.ADVAPI32.dll_RegDeleteValueW], ax
mov eax, dword [ebp + 0x10]
pop ecx
mov dword [0x10e1b9c], eax
call fcn.01075ed8
mov ecx, dword [eax + 4]
call fcn.01075fd4
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x103a5ec
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, edi
je 0x103ac7a
call fcn.01075a13
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x103ac49
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 0x103ac73
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.01075ed8
mov ecx, dword [eax + 4]
call fcn.01075fc8
pop edi
pop esi
mov ax, bx
pop ebx
pop ebp
ret 0xc
Function at 0x1046347
Capabilities:
Get file system object information

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077798
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 0x104638a
call dword [eax + 0x28]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
jmp 0x10464a3
call dword [eax + 0x44]
test eax, eax
mov eax, dword [esi]
mov ecx, esi
je 0x10463a5
push CloseServiceHandle
call dword [eax + 0x2c]
mov eax, dword [esi]
push 0x22
mov ecx, esi
call dword [eax + 0x30]
jmp 0x10463aa
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 fcn.01075e60
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 0x1046492
mov eax, dword [ebp - 0x2c8]
cmp dword [eax - 8], 0x104
jg 0x1046492
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 0x1046492
push dword [ebp - 0x2c0]
mov ebx, dword [esi]
push eax
push dword [ebp - 0x2cc]
call fcn.01046308
push eax
mov ecx, esi
call dword [ebx + 0x2c]
lea eax, [ebp - 0xb0]
push eax
lea ecx, [esi + 0x20]
call fcn.01075e54
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
cmp eax, 0x22
jne 0x1046492
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x44]
test eax, eax
je 0x1046492
push 0x4003
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
push 0
push dword [ebp - 0x2c8]
call edi
test eax, eax
je 0x1046492
push dword [ebp - 0x2c0]
mov edi, dword [esi]
push eax
push dword [ebp - 0x2cc]
call fcn.01046308
push eax
mov ecx, esi
call dword [edi + 0x30]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c8]
call fcn.01075e24
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.01075aef
leave
ret 8
Function at 0x1048851
Capabilities:
Get disk information

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077798
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 0x104894d
cmp word [esi + 2], 0x3a
jne 0x104894d
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
cmp eax, 3
pop ecx
jbe 0x10488c8
lea ecx, [ebp - 0x10]
call fcn.01075e60
and dword [ebp - 4], 0
push 0x13
lea eax, [ebp - 0x10]
push eax
call fcn.0104689d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x10488c1
push eax
push esi
push ecx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10488c1
push 0x25
jmp 0x10488c3
push 6
lea ecx, [ebp - 0x10]
jmp 0x104892f
lea ecx, [ebp + 8]
call fcn.01075e60
push esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 1
call fcn.01075e54
push 2
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.01076220
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.01075e30
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.01075e24
push 0x1004204
lea ecx, [ebp + 8]
call fcn.010761f0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
dec eax
je 0x1048949
dec eax
je 0x1048945
dec eax
je 0x1048941
dec eax
je 0x104893d
push 0x29
lea ecx, [ebp + 8]
or dword [ebp - 4], 0xffffffff
pop esi
call fcn.01075e24
mov eax, esi
jmp 0x1048976
push 4
jmp 0x104892c
push 5
jmp 0x104892c
push 3
jmp 0x104892c
push 2
jmp 0x104892c
cmp word [esi], 0x5c
jne 0x1048973
cmp word [esi + 2], 0x5c
jne 0x1048973
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 0x1048976
push 0x29
pop eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x1048dbe
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 0x1047034
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 0x104bd5b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x20e0
call fcn.01077950
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 0x104be57
cmp eax, 0xffffffff
je 0x104be57
push esi
mov esi, dword [ebp + 8]
cmp esi, 2
je 0x104bda5
cmp esi, 1
jne 0x104be56
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 0x104bdcb
mov eax, 0x100982c
jmp 0x104bdda
cmp esi, 1
mov eax, 0x10097fc
je 0x104bdda
mov eax, 0x100205c
push ebx
push eax
movzx eax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
push eax
movzx eax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
push eax
movzx eax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
push eax
movzx eax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
push eax
movzx eax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
push eax
movzx eax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
push eax
movzx eax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
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.01075aef
leave
ret 8

Function at 0x104c87c
Capabilities:
Query environment variable

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077798
sub esp, 0x214
mov eax, dword [0x10de03c]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x10], eax
call fcn.01075e60
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 0x104c8d2
push 0xd4e
lea ecx, [ebp - 0x21c]
call fcn.01075e90
jmp 0x104c91c
lea ecx, [ebp - 0x220]
call fcn.01075e60
push 0xd4d
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.01075e90
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
lea eax, [ebp - 0x21c]
push eax
call fcn.01075e84
add esp, 0xc
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0
call fcn.01075e24
call fcn.0104bcd7
push dword [ebp - 0x21c]
push 2
call fcn.0104bd5b
call fcn.0104bd39
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.01075e24
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.01075aef
leave
ret 4
Function at 0x104ef53
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push esi
push edi
call fcn.0104e918
mov edi, 0x10e2a1c
jmp 0x104ef77
push esi
push edi
call fcn.0108e726
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
call fcn.0104e918
mov esi, eax
test esi, esi
jne 0x104ef63
push edi
call fcn.0108e5c0
pop edi
pop esi
jmp 0x107cbab
mov edi, edi
push ebx
or ebx, 0xffffffff
cmp dword [0x10de044], ebx
jne 0x107cbbe
xor eax, eax
inc eax
pop ebx
ret
mov eax, dword [0x10e6c18]
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x107cc07
add dword [0x10e6b80], 1
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, reloc.KERNEL32.dll_CompareStringW
jne 0x107cbf8
push ebx
push dword [0x10e6c18]
call esi
push dword [0x10e6c18]
call edi
and dword [0x10e6c18], 0
mov eax, dword [0x10e6c20]
cmp eax, ebx
je 0x107cc1c
push eax
call fcn.010cb34c
mov dword [0x10e6c20], ebx
push 0x10e6b9c
call fcn.01077c3f
test ax, ax
jne 0x107cc30
call fcn.0107aece
mov eax, dword [0x10e6c1c]
test eax, eax
je 0x107cc49
cmp eax, ebx
je 0x107cc49
push eax
call fcn.010cb2b0
mov dword [0x10e6c1c], ebx
mov eax, dword [0x10e6c14]
test eax, eax
je 0x107cc65
push ebx
push eax
call esi
push dword [0x10e6c14]
call edi
and dword [0x10e6c14], 0
call fcn.01078c11
call fcn.01077cb4
mov esi, dword [sym.imp.msvcrt.dll_free]
jmp 0x107cca5
push ebx
lea eax, [edi + 0x14]
push eax
call fcn.0108e726
push ebx
call esi
pop ecx
push edi
call fcn.01077ce2
mov ebx, eax
test ebx, ebx
jne 0x107cc77
push edi
push 0x10e6b40
call fcn.0108e726
push edi
call esi
pop ecx
call fcn.01077cb4
mov edi, eax
test edi, edi
jne 0x107cc85
jmp 0x107ccd6
push ebx
lea eax, [edi + 0x14]
push eax
call fcn.0108e726
push ebx
call esi
pop ecx
push edi
call fcn.01077ce2
mov ebx, eax
test ebx, ebx
jne 0x107ccad
push edi
push 0x10e6b6c
call fcn.0108e726
push edi
call esi
pop ecx
call fcn.01077be3
mov edi, eax
test edi, edi
jne 0x107ccbb
jmp 0x107cd0c
push ebx
lea eax, [edi + 0x14]
push eax
call fcn.0108e726
push ebx
call esi
pop ecx
push edi
call fcn.01077ce2
mov ebx, eax
test ebx, ebx
jne 0x107cce3
push edi
push 0x10e6bd4
call fcn.0108e726
push edi
call esi
pop ecx
call fcn.01077bf9
mov edi, eax
test edi, edi
jne 0x107ccf1
jmp 0x107cd42
push ebx
lea eax, [edi + 0x14]
push eax
call fcn.0108e726
push ebx
call esi
pop ecx
push edi
call fcn.01077ce2
mov ebx, eax
test ebx, ebx
jne 0x107cd19
push edi
push 0x10e6b54
call fcn.0108e726
push edi
call esi
pop ecx
call fcn.01077c0f
mov edi, eax
test edi, edi
jne 0x107cd27
call fcn.01078c20
mov eax, dword [0x10de048]
cmp eax, 0xffffffff
je 0x107cd68
push eax
push dword [0x10de044]
call fcn.010cb3b8
push dword [0x10de044]
call fcn.010cb2b0
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 0x104f1a1
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 reloc.KERNEL32.dll_WaitForSingleObject
mov dword [ebp - 0xa70], edi
mov dword [ebp - 0xa6c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x104f1e8
xor eax, eax
inc eax
jmp 0x104f393
push ebx
mov ebx, dword [sym.imp.msvcrt.dll__wcsicmp]
push esi
mov esi, dword [sym.imp.msvcrt.dll_wcscpy]
mov word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], di
mov word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 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], reloc.KERNEL32.dll_GetProcessHeap
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, edi
mov dword [ebp - 0xa78], eax
jne 0x104f30b
shr dword [ebp - 0xa60], 1
mov eax, dword [ebp - 0xa60]
mov word [ebp + eax*2 - 0xcc], di
lea eax, [ebp - 0x194]
push 0x1009f9c
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x104f2bf
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x25c]
push eax
call esi
push 0x1009f90
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp + eax*2 - 0xcc]
push eax
call fcn.01082763
add esp, 0x10
mov dword [ebp - 0xa70], eax
mov dword [ebp - 0xa6c], 1
lea eax, [ebp - 0x194]
push 0x1009f7c
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x104f2e5
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x65c]
push eax
call esi
pop ecx
pop ecx
lea eax, [ebp - 0x194]
push 0x1009f64
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x104f30b
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 0x104f20a
cmp dword [ebp - 0xa6c], edi
je 0x104f383
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], di
jne 0x104f340
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 0x1009f5c
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.0104ea08
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.01075aef
leave
ret 8
Function at 0x104f3a5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5b4
mov eax, dword [0x10de03c]
push ebx
push edi
lea ecx, [ebp - 0x5a8]
push ecx
xor ebx, ebx
xor edi, edi
inc ebx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push edi
push eax
push reloc.KERNEL32.dll_WaitForSingleObject
mov dword [ebp - 0x59c], edi
mov dword [ebp - 0x5a0], edi
mov dword [ebp - 0x5a4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x104f3f4
mov eax, ebx
jmp 0x104f57a
push esi
mov esi, dword [sym.imp.msvcrt.dll_swprintf]
mov dword [ebp - 0x598], edi
lea eax, [ebp - 0x5ac]
push eax
lea eax, [ebp - 0xcc]
push eax
push edi
push edi
lea eax, [ebp - 0x5b4]
push eax
lea eax, [ebp - 0x194]
push eax
push dword [ebp - 0x598]
mov dword [ebp - 0x5b4], 0x64
push dword [ebp - 0x5a8]
mov dword [ebp - 0x5ac], reloc.KERNEL32.dll_GetProcessHeap
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, edi
mov dword [ebp - 0x5b0], eax
jne 0x104f52a
lea eax, [ebp - 0x194]
push 0x100a030
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x104f490
lea eax, [ebp - 0xcc]
push 0x100a010
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x104f490
mov word [reloc.ADVAPI32.dll_RegDeleteValueW], bx
mov dword [ebp - 0x5a0], ebx
lea eax, [ebp - 0x194]
push 0x1009f9c
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x104f4d5
push 0x1009f90
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp + eax*2 - 0xcc]
push eax
call fcn.01082763
pop ecx
pop ecx
mov dword [ebp - 0x59c], eax
mov word [reloc.ADVAPI32.dll_RegDeleteValueW], bx
mov dword [ebp - 0x5a4], ebx
lea eax, [ebp - 0x194]
push 0x1009f64
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x104f52a
cmp word [reloc.ADVAPI32.dll_RegDeleteValueW], di
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x594]
je 0x104f513
push dword [ebp + 0x10]
push 0x1009ffc
push eax
call esi
add esp, 0x10
jmp 0x104f52a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x1009fb8
push eax
call esi
add esp, 0x1c
inc dword [ebp - 0x598]
cmp dword [ebp - 0x5b0], edi
je 0x104f401
cmp dword [ebp - 0x5a0], edi
pop esi
je 0x104f56c
cmp dword [ebp - 0x5a4], edi
je 0x104f56c
lea eax, [ebp - 0x594]
push eax
push edi
push dword [ebp - 0x59c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0104ea08
push dword [ebp - 0x5a8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.01075aef
leave
ret 0x14
Function at 0x104f644
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4e8
mov eax, dword [0x10de03c]
push edi
lea ecx, [ebp - 0x4d8]
push ecx
push 0x20019
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edi, edi
push edi
push eax
push reloc.KERNEL32.dll_WaitForSingleObject
mov dword [ebp - 0x4e0], eax
mov dword [ebp - 0x4d4], 0x64
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x104f692
xor eax, eax
inc eax
jmp 0x104f756
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
mov dword [ebp - 0x4d0], edi
lea eax, [ebp - 0x4e8]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x4dc]
push eax
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0x4d0]
mov dword [ebp - 0x4dc], 0x64
push dword [ebp - 0x4d8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
cmp ebx, edi
jne 0x104f738
push dword [ebp - 0x4e0]
lea eax, [ebp - 0x4cc]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x4cc]
push 0x1004204
push eax
call esi
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x4cc]
push eax
call esi
add esp, 0x18
push dword [ebp - 0x4d4]
lea eax, [ebp - 0x4cc]
push eax
mov word [reloc.ADVAPI32.dll_RegDeleteValueW], 1
mov word [reloc.ADVAPI32.dll_RegDeleteValueW], 1
call fcn.0104f1a1
inc dword [ebp - 0x4d4]
inc dword [ebp - 0x4d0]
cmp ebx, edi
je 0x104f6a0
push dword [ebp - 0x4d8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.01075aef
leave
ret 4
Function at 0x104f768
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4e8
mov eax, dword [0x10de03c]
push ebx
lea ecx, [ebp - 0x4d4]
push ecx
push 0x20019
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
xor ebx, ebx
push ebx
push eax
push reloc.KERNEL32.dll_WaitForSingleObject
mov dword [ebp - 0x4d8], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x104f7ac
xor eax, eax
inc eax
jmp 0x104f8a3
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcscat]
mov dword [ebp - 0x4d0], ebx
lea eax, [ebp - 0x4e8]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x4dc]
push eax
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0x4d0]
mov dword [ebp - 0x4dc], 0x64
push dword [ebp - 0x4d4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
mov dword [ebp - 0x4e0], eax
jne 0x104f881
push dword [ebp - 0x4d8]
lea eax, [ebp - 0x4cc]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x4cc]
push 0x1004204
push eax
call edi
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x4cc]
push eax
call edi
add esp, 0x18
cmp word [ebp - 0xcc], bx
lea esi, [ebp - 0xcc]
je 0x104f864
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
jne 0x104f85d
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
jne 0x104f864
inc esi
inc esi
cmp word [esi], bx
jne 0x104f83f
push esi
call fcn.01082763
pop ecx
lea ecx, [ebp - 0x4cc]
push ecx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0104f3a5
inc dword [ebp - 0x4d0]
cmp dword [ebp - 0x4e0], ebx
je 0x104f7ba
push dword [ebp - 0x4d4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01075aef
leave
ret 0x10
Function at 0x104fa54
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4e8
mov eax, dword [0x10de03c]
push ebx
lea ecx, [ebp - 0x4d4]
push ecx
push 0x20019
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
push ebx
push eax
push reloc.KERNEL32.dll_WaitForSingleObject
mov dword [ebp - 0x4d8], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x104fa98
xor eax, eax
inc eax
jmp 0x104fb8c
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcscat]
mov dword [ebp - 0x4d0], ebx
lea eax, [ebp - 0x4e8]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x4dc]
push eax
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0x4d0]
mov dword [ebp - 0x4dc], 0x64
push dword [ebp - 0x4d4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
mov dword [ebp - 0x4e0], eax
jne 0x104fb6a
push dword [ebp - 0x4d8]
lea eax, [ebp - 0x4cc]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x4cc]
push 0x1004204
push eax
call edi
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x4cc]
push eax
call edi
add esp, 0x18
cmp word [ebp - 0xcc], bx
lea esi, [ebp - 0xcc]
je 0x104fb50
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
jne 0x104fb49
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
jne 0x104fb50
inc esi
inc esi
cmp word [esi], bx
jne 0x104fb2b
push esi
call fcn.01082763
pop ecx
lea ecx, [ebp - 0x4cc]
push ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0104f768
inc dword [ebp - 0x4d0]
cmp dword [ebp - 0x4e0], ebx
je 0x104faa6
push dword [ebp - 0x4d4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01075aef
leave
ret 0xc