joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102bd16
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
mov eax, 0x1036179
call fcn.0102e9e0
sub esp, 0x11c
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
lea edi, [esi + 0x14]
push edi
push 0x1004830
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
call fcn.01032f5f
mov edx, eax
cmp edx, ebx
jne 0x102be69
cmp dword [edi], ebx
jne 0x102bd85
lea edi, [esi + 0x10]
push edi
push 0x100481c
push dword [ebp + 8]
call fcn.01032f5f
mov edx, eax
cmp edx, ebx
jne 0x102be69
cmp dword [edi], ebx
jne 0x102be0f
mov edx, 0x3f1
jmp 0x102be69
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x24]
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
mov edi, 0x1004808
push edi
push dword [ebp + 8]
call esi
mov edx, eax
cmp edx, ebx
jne 0x102be69
cmp dword [ebp - 0x1c], 1
jne 0x102bd7b
cmp dword [ebp - 0x24], 0x80
ja 0x102bd7b
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push edi
push dword [ebp + 8]
call esi
mov edx, eax
cmp edx, ebx
jne 0x102be69
mov ecx, dword [0x103d8dc]
lea eax, [ebp - 0x124]
push eax
call fcn.0102aba2
cmp eax, ebx
jne 0x102bdf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x102be69
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_unsigned_short_int_const__]
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
push 0x1004858
push dword [ebp + 8]
call fcn.01032f5f
mov edx, eax
cmp edx, ebx
jne 0x102be69
lea eax, [ebp - 0x20]
push eax
push 0x1004844
push dword [ebp + 8]
call fcn.01032f5f
mov edx, eax
cmp edx, ebx
jne 0x102be69
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
lea ecx, [esi + 0x18]
mov dword [ecx], eax
mov dword [ecx + 4], edi
call fcn.0102bbab
test eax, eax
jne 0x102be69
push 0x57
pop edx
jmp 0x102be69
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, edx
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x102e689
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1004aa0
call fcn.0102e874
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x102e6c4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x102e6c4
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x102e6dc
cmp eax, 0x20b
je 0x102e6c9
mov dword [ebp - 0x1c], edi
jmp 0x102e6f0
cmp dword [ecx + 0x84], 0xe
jbe 0x102e6c4
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x102e6ea
cmp dword [ecx + 0x74], 0xe
jbe 0x102e6c4
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x103d924], 0xffffffff
or dword [0x103d928], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x103d8f0]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x103d8ec]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x103d920], eax
call fcn.0102ebac
cmp dword [0x103bf00], edi
jne 0x102e74d
push fcn.0102ebac
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0102eb9a
push 0x10015f4
push 0x10015f0
call sub.msvcrt.dll__initterm
mov eax, dword [0x103d8e8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x103d8e4]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x10015ec
push 0x10015a8
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x102e7b3
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x102e86d
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x102e801
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x102e7cf
cmp ax, 0x22
jne 0x102e7bc
cmp word [esi], 0x22
jne 0x102e7da
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x102e7e8
cmp ax, 0x20
jbe 0x102e7d5
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x102e80e
movzx eax, word [ebp - 0x48]
jmp 0x102e811
cmp word [esi], 0x20
jbe 0x102e7da
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x102e801
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], edi
jne 0x102e832
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x102e867
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0102e8ad
ret
Function at 0x102ecc0
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01032c52
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], eax
jne 0x102ece6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x102ecfa
cmp dword [ebp - 0x10], 1
jne 0x102ed04
push eax
call fcn.01031b59
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 0x10]
call fcn.01031b6b
jmp 0x102ed69
push esi
push edi
xor eax, eax
mov dword [ebp - 8], ecx
lea edi, [ebp - 4]
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
push 1
push ecx
push ecx
lea eax, [ebp - 0x18]
push eax
push ecx
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x14], 0x1004aec
mov dword [ebp - 0x18], 0x14
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x102ed4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 0x10]
call fcn.01031b6b
mov esi, eax
jmp 0x102ed5d
push dword [ebp - 4]
call fcn.01031b6b
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0xc]
call fcn.01031b59
pop edi
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x102f974
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
and word [ebp - 0x204], 0
push ebx
push esi
push edi
push 0x7f
pop ecx
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x202]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x1004fe8
push edi
lea eax, [ebp - 0x204]
push 0x1004fd4
push eax
mov dword [ebp - 4], 1
call sub.msvcrt.dll_swprintf
add esp, 0x10
mov esi, 0x20019
push esi
push 0
lea eax, [ebp - 0x204]
push eax
push 0x80000002
call fcn.010329c3
mov ebx, eax
test ebx, ebx
jne 0x102f9f0
and dword [ebp - 4], eax
push esi
push eax
push edi
push 0x80000002
call fcn.010329c3
mov ebx, eax
test ebx, ebx
je 0x102fa60
push 0x1001848
call fcn.01031b6b
mov esi, dword [ebp + 0xc]
mov edi, 0x1001c50
push edi
push 0x1004c58
push ebx
mov dword [esi + 8], eax
call fcn.01032bca
push edi
push 0x1004c4c
push ebx
mov dword [esi], eax
call fcn.01032bca
push 0x1004c7c
push ebx
mov dword [esi + 4], eax
call fcn.01032bfa
push 0x1004c88
push ebx
mov dword [esi + 0xc], eax
call fcn.01032bfa
push ebx
mov dword [esi + 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 1
jne 0x102fa5d
lea eax, [ebp - 0x204]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10304e1
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push dword [ebp + 8]
push 0x1005358
push 0x103
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x14
test eax, eax
jge 0x1030512
push 0x6f
pop eax
jmp 0x1030553
push esi
push 0xf003f
push 0
push 0x1004878
push 0x80000002
call fcn.010329c3
mov esi, eax
test esi, esi
jne 0x1030537
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1030552
push edi
lea eax, [ebp - 0x208]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 8

Function at 0x10305ba
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push 0x1005368
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10306ed
push ebx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x10306c1
push dword [ebp + 0xc]
push 0x1004b70
push dword [ebp - 4]
call fcn.01032d8a
test eax, eax
je 0x10306b5
push dword [ebp + 0x10]
push 0x1004b5c
push dword [ebp - 4]
call fcn.01032da2
test eax, eax
je 0x10306b5
push dword [ebp + 0x14]
push 0x1004b40
push dword [ebp - 4]
call fcn.01032d8a
test eax, eax
je 0x10306b5
push dword [ebp + 8]
push 0x1004b18
push dword [ebp - 4]
call fcn.01032d8a
test eax, eax
je 0x10306b5
push dword [ebp + 0x18]
push 0x1004bac
push dword [ebp - 4]
call fcn.01032cfa
test eax, eax
je 0x10306b5
push dword [ebp + 0x1c]
push 0x1004b24
push dword [ebp - 4]
call fcn.01032cfa
test eax, eax
je 0x10306b5
cmp dword [ebp + 0x18], 0x20000
jb 0x10306d3
push edi
push dword [ebp - 8]
lea edi, [ebp + 0x18]
call fcn.01030557
mov esi, eax
test esi, esi
pop edi
jne 0x10306c1
push dword [ebp + 0x18]
push 0x1004b8c
push dword [ebp - 4]
call fcn.01032cfa
test eax, eax
jne 0x10306d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x10306d3
cmp dword [ebp - 8], 0
je 0x10306de
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 8], 0
je 0x10306de
push dword [ebp - 8]
call ebx
cmp dword [ebp - 4], 0
je 0x10306e9
push dword [ebp - 4]
call ebx
mov eax, esi
pop esi
pop ebx
leave
ret 0x18

Function at 0x10306f1
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x1005368
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x103072c
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 4
Function at 0x1031d81
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call esi
mov edi, eax
test edi, edi
je 0x1031dd8
cmp dword [ebp + 0x18], 0
jne 0x1031db8
lea eax, [edi + edi]
jmp 0x1031e15
test bl, 0x30
jne 0x1031e13
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1031ddc
xor eax, eax
jmp 0x1031e15
cmp dword [ebp - 0x104], 2
jne 0x1031e13
cmp dword [ebp - 0x110], 5
jb 0x1031e13
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.010335e4
test eax, eax
je 0x1031e13
push dword [ebp + 0x18]
or ebx, 0x20
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call esi
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x103202c
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x18
push 0x1006e70
call fcn.0102e874
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
push dword [ebp + 8]
call fcn.01031c8f
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, ebx
jne 0x103205c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
jmp 0x10321ce
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1032074
test al, 0x10
je 0x1032074
mov dword [ebp - 0x1c], ebx
jmp 0x10321ce
mov dword [ebp - 4], ebx
push esi
call sub.msvcrt.dll_wcslen
pop ecx
push 2
pop edi
cmp eax, edi
jbe 0x10320cb
push edi
push 0x1006e64
push esi
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x10320cb
add esi, 4
mov dword [ebp - 0x24], esi
push 0x5c
push esi
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, ebx
je 0x103212b
add esi, edi
mov dword [ebp - 0x24], esi
push 0x5c
push esi
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, ebx
je 0x103212b
jmp 0x10320eb
push esi
call sub.msvcrt.dll_wcslen
pop ecx
cmp eax, 1
jbe 0x10320ef
push 1
push 0x100452c
push esi
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x10320ef
add esi, edi
jmp 0x1032124
push esi
call sub.msvcrt.dll_wcslen
pop ecx
cmp eax, 3
jbe 0x1032127
xor eax, eax
mov ax, word [esi]
push eax
call sub.msvcrt.dll_iswalpha
pop ecx
test eax, eax
je 0x1032127
push edi
push 0x1006e5c
lea eax, [esi + 2]
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x1032127
add esi, 6
mov dword [ebp - 0x24], esi
cmp esi, ebx
jne 0x1032152
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1032152
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp eax, 0xb7
jne 0x103214c
mov dword [ebp - 0x1c], ebx
or dword [ebp - 4], 0xffffffff
jmp 0x10321ce
mov ebx, 0xb7
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
inc esi
inc esi
mov dword [ebp - 0x24], esi
cmp word [esi], 0
je 0x10321c8
push 0x5c
push esi
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
mov esi, eax
mov dword [ebp - 0x24], esi
xor eax, eax
push eax
push dword [ebp - 0x20]
cmp esi, eax
jne 0x1032193
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10321c8
call edi
cmp eax, ebx
je 0x10321c8
jmp 0x10321a6
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10321aa
call edi
cmp eax, ebx
je 0x10321aa
call edi
jmp 0x10321c5
mov word [esi], 0x5c
jmp 0x103215d
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
xor ebx, ebx
push dword [ebp - 0x20]
call fcn.01031b59
cmp dword [ebp - 0x1c], ebx
je 0x10321e4
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebp - 0x1c], ebx
sete al
call fcn.0102e8ad
ret 4
Function at 0x10328e6
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
push 0x47
pop ecx
xor eax, eax
lea edi, [ebp - 0x11c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 0x11c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
pop edi
je 0x1032973
cmp dword [ebp - 0x10c], 2
jne 0x1032973
cmp dword [ebp - 0x118], 5
jb 0x1032973
mov eax, dword [ebp - 4]
test al, 0x40
je 0x1032944
test al, 1
je 0x103293a
push 0x20
jmp 0x1032970
cmp byte [ebp - 2], 3
jne 0x1032944
push 0x40
jmp 0x1032970
test ah, 2
je 0x103294e
xor eax, eax
inc eax
leave
ret
test al, 2
je 0x1032956
push 8
jmp 0x1032970
test al, al
jns 0x103295e
push 0x10
jmp 0x1032970
cmp byte [ebp - 2], 1
jne 0x1032968
push 2
jmp 0x1032970
cmp byte [ebp - 2], 3
jne 0x1032973
push 4
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x1032a32
Capabilities:
Query environment variable
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
xor edi, edi
push dword [ebp + 8]
call esi
cmp eax, ebx
je 0x1032a8d
cmp eax, 2
jne 0x1032b44
cmp dword [ebp + 0x14], ebx
je 0x1032b44
cmp dword [ebp + 0xc], 7
push dword [ebp + 0x14]
jne 0x1032a81
call fcn.01031fc8
shl eax, 1
mov dword [ebp - 4], eax
jmp 0x1032a9c
call sub.msvcrt.dll_wcslen
pop ecx
lea eax, [eax + eax + 2]
jmp 0x1032a7c
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 8], eax
jne 0x1032bc6
mov eax, dword [ebp - 4]
cmp eax, ebx
jne 0x1032aa6
push 0x20
pop eax
mov dword [ebp - 4], eax
push eax
call fcn.01031ae1
mov edi, eax
cmp edi, ebx
je 0x1032b44
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
cmp eax, ebx
je 0x1032b06
cmp eax, 2
jne 0x1032b44
cmp dword [ebp + 0x14], ebx
je 0x1032b44
cmp dword [ebp + 0xc], 7
push dword [ebp + 0x14]
push edi
jne 0x1032ae7
call fcn.01031ff7
jmp 0x1032aee
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
push dword [ebp - 4]
push edi
push dword [ebp + 0xc]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1032b44
cmp dword [ebp + 0xc], 2
jne 0x1032b75
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
push ebx
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x1032b42
lea eax, [ebx + ebx + 2]
push eax
mov dword [ebp - 4], eax
call fcn.01031ae1
test eax, eax
mov dword [ebp + 0x10], eax
je 0x1032b42
push ebx
push eax
push edi
call esi
test eax, eax
jne 0x1032b6a
push dword [ebp + 0x10]
call fcn.01031b59
xor ebx, ebx
push edi
call fcn.01031b59
mov edi, dword [ebp + 0x18]
cmp edi, ebx
je 0x1032b53
mov dword [edi], ebx
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x1032bc6
cmp dword [ebp + 0xc], 7
push ebx
jne 0x1032b8a
call fcn.01031fc8
shl eax, 1
jmp 0x1032b94
push edi
call fcn.01031b59
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x1032b81
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14
call sub.msvcrt.dll_wcslen
pop ecx
lea eax, [eax + eax + 2]
push eax
mov dword [ebp - 4], eax
call fcn.01031ae1
mov esi, eax
test esi, esi
je 0x1032bc6
cmp dword [ebp + 0xc], 7
push ebx
push esi
jne 0x1032bb2
call fcn.01031ff7
jmp 0x1032bb9
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
test edi, edi
je 0x1032bc2
mov eax, dword [ebp - 4]
mov dword [edi], eax
mov eax, esi
jmp 0x1032b83
xor eax, eax
jmp 0x1032b83
Function at 0x1032c52
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
mov dword [ebp - 8], 3
xor ebx, ebx
call esi
cmp eax, edi
je 0x1032c93
cmp eax, 2
je 0x1032c9e
push ebx
call fcn.01031b59
xor eax, eax
jmp 0x1032cf3
cmp dword [ebp - 8], 3
jne 0x1032c8f
cmp dword [ebp - 4], edi
jne 0x1032ca5
mov dword [ebp - 4], 1
push dword [ebp - 4]
call fcn.01031ae1
mov ebx, eax
cmp ebx, edi
je 0x1032c89
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp eax, edi
je 0x1032ce5
cmp eax, 2
jne 0x1032c89
push dword [ebp - 4]
push ebx
push 3
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1032c89
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x1032cf1
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1032dba
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
neg esi
sbb esi, esi
push edi
and esi, 0xd0026
add esi, 0x20019
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.010329c3
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
je 0x1032ea5
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1032e9c
push dword [ebp + 0x18]
push dword [ebp - 0x10]
push ebx
push edi
call dword [ebp + 0x14]
test eax, eax
je 0x1032e9c
add dword [ebp + 0xc], 4
mov eax, dword [ebp + 0xc]
lea eax, [eax + eax + 2]
push eax
call fcn.01031ae1
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1032e9c
push dword [ebp + 0xc]
push eax
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x1032e8e
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.010329c3
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x1032e82
push dword [ebp + 0x18]
push dword [ebp - 8]
push dword [ebp - 4]
push eax
call dword [ebp + 0x14]
test eax, eax
push dword [ebp - 0xc]
je 0x1032e96
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call edi
cmp eax, ebx
je 0x1032e4f
jmp 0x1032e9c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call fcn.01031b59
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1032eb7
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, esi
je 0x1032ee5
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1032f5a
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1032f01
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call fcn.01032eb7
test eax, eax
je 0x1032f57
push esi
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
call edi
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x1032eee
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0x103
jne 0x1032f4e
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, esi
je 0x1032f49
push eax
jmp 0x1032f51
xor eax, eax
inc eax
jmp 0x1032f59
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
leave
ret 8

Function at 0x1032fb5
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, 0x1004ef8
push esi
lea eax, [ebp - 0x214]
push 0x10053f4
push eax
call sub.msvcrt.dll_swprintf
add esp, 0x10
push 0xf003f
xor edi, edi
push edi
lea eax, [ebp - 0x214]
push eax
mov ebx, 0x80000002
push ebx
call fcn.010329c3
cmp eax, edi
mov dword [ebp + 8], eax
je 0x1033065
push 0x1004c98
push eax
call fcn.01032eb7
push 0x1004ce8
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push edi
push edi
push edi
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push edi
lea eax, [ebp - 8]
push eax
push edi
push edi
push edi
push dword [ebp + 8]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, edi
push dword [ebp + 8]
mov dword [ebp - 4], eax
jne 0x1033088
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], edi
jne 0x103308e
cmp dword [ebp - 0xc], edi
jne 0x103308e
push 0xf003f
push edi
push esi
push ebx
call fcn.010329c3
mov ebx, eax
cmp ebx, edi
jne 0x103306d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1033091
push esi
call sub.msvcrt.dll_wcslen
inc eax
pop ecx
lea eax, [ebp + eax*2 - 0x214]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 4], eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4