joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102df7b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
mov edi, 0x100475c
push edi
push dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x102e06d
cmp dword [ebp - 0x10], 3
je 0x102dfc9
mov dword [ebp - 8], 0x3f1
jmp 0x102e06d
cmp dword [ebp - 4], ebx
je 0x102e06d
push dword [ebp - 4]
call fcn.01035a36
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x102dfed
mov dword [ebp - 8], 8
jmp 0x102e06d
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push dword [ebp + 8]
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x102e06d
mov esi, dword [ebp - 4]
shr esi, 2
mov dword [ebp - 0x14], 1
mov edi, ebx
je 0x102e06d
mov eax, dword [ebp - 0xc]
lea eax, [eax + edi*4]
push dword [eax]
mov dword [ebp - 0x1c], eax
call fcn.0102d54f
test eax, eax
je 0x102e03f
mov eax, dword [ebp - 0x1c]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.0102dc96
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x102e06d
jmp 0x102e042
mov dword [ebp - 0x14], ebx
inc edi
cmp edi, esi
jb 0x102e015
cmp dword [ebp - 0x14], ebx
jne 0x102e06d
push dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
call fcn.0102da30
push dword [ebp + 0xc]
push 0x80007d42
push 1
push 2
push 1
call sub.FXSEVENT.dll_FaxLog
add esp, 0x14
push dword [ebp - 0xc]
call fcn.01035abf
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1031ea9
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1004ac8
call fcn.01032098
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1031ee4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1031ee4
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1031efc
cmp eax, 0x20b
je 0x1031ee9
mov dword [ebp - 0x1c], edi
jmp 0x1031f10
cmp dword [ecx + 0x84], 0xe
jbe 0x1031ee4
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1031f0a
cmp dword [ecx + 0x74], 0xe
jbe 0x1031ee4
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 [0x1041980], 0xffffffff
or dword [0x1041984], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1041960]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x104195c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x104197c], eax
call fcn.0102bf74
cmp dword [0x103ff60], edi
jne 0x1031f6d
push fcn.0102bf74
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0103247d
push 0x103f050
push 0x103f04c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1041958]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1041954]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x103f048
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x1031fd3
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x103208d
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x1032021
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1031fef
cmp ax, 0x22
jne 0x1031fdc
cmp word [esi], 0x22
jne 0x1031ffa
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1032008
cmp ax, 0x20
jbe 0x1031ff5
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x103202e
movzx eax, word [ebp - 0x50]
jmp 0x1032031
cmp word [esi], 0x20
jbe 0x1031ffa
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x1032021
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 - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x1032052
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1032087
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010320d3
ret
Function at 0x103262e
Capabilities:
Encrypt data using dpapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01036d7e
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], eax
jne 0x1032656
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x103266a
cmp dword [ebp - 0x10], 1
jne 0x1032674
push eax
call fcn.01035abf
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 0x10]
call fcn.01035adb
jmp 0x10326d9
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], 0x1004b14
mov dword [ebp - 0x18], 0x14
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x10326ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 0x10]
call fcn.01035adb
mov esi, eax
jmp 0x10326cd
push dword [ebp - 4]
call fcn.01035adb
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0xc]
call fcn.01035abf
pop edi
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x1033374
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x103ff58]
and word [ebp - 0x204], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x7f
mov dword [ebp - 4], eax
pop ecx
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x202]
rep stosd dword es:[edi], eax
mov ebx, 0x1005010
push ebx
stosw word es:[edi], ax
lea eax, [ebp - 0x204]
push 0x1004ffc
push eax
mov dword [ebp - 0x208], 1
call sub.msvcrt.dll_swprintf
add esp, 0x10
mov edi, 0x20019
push edi
push 0
lea eax, [ebp - 0x204]
push eax
push 0x80000002
call fcn.01036aca
test eax, eax
mov dword [ebp - 0x20c], eax
jne 0x103340b
and dword [ebp - 0x208], eax
push edi
push eax
push ebx
push 0x80000002
call fcn.01036aca
test eax, eax
mov dword [ebp - 0x20c], eax
je 0x1033481
push 0x1001818
call fcn.01035adb
mov ebx, dword [ebp - 0x20c]
mov edi, 0x1001c70
push edi
push 0x1004c80
push ebx
mov dword [esi + 8], eax
call fcn.01036cdf
push edi
push 0x1004c74
push ebx
mov dword [esi], eax
call fcn.01036cdf
push 0x1004ca4
push ebx
mov dword [esi + 4], eax
call fcn.01036d1f
push 0x1004cb0
push ebx
mov dword [esi + 0xc], eax
call fcn.01036d1f
push ebx
mov dword [esi + 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x208], 1
jne 0x103347e
lea eax, [ebp - 0x204]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01031d91
leave
ret 8
Function at 0x1033fef
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
push dword [ebp + 0xc]
mov eax, dword [0x103ff58]
push dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x1005380
lea eax, [ebp - 0x20c]
push 0x103
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x14
test eax, eax
jge 0x103402a
push 0x6f
pop eax
jmp 0x103406b
push esi
push 0xf003f
push 0
push 0x10048a0
push 0x80000002
call fcn.01036aca
mov esi, eax
test esi, esi
jne 0x103404f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x103406a
push edi
lea eax, [ebp - 0x20c]
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
mov ecx, dword [ebp - 4]
call fcn.01031d91
leave
ret 8

Function at 0x10340e6
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
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 0x1005390
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x103421b
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 0x10341ef
push dword [ebp + 0xc]
push 0x1004b98
push dword [ebp - 4]
call fcn.01036ed3
test eax, eax
je 0x10341e3
push dword [ebp + 0x10]
push 0x1004b84
push dword [ebp - 4]
call fcn.01036ef3
test eax, eax
je 0x10341e3
push dword [ebp + 0x14]
push 0x1004b68
push dword [ebp - 4]
call fcn.01036ed3
test eax, eax
je 0x10341e3
push dword [ebp + 8]
push 0x1004b40
push dword [ebp - 4]
call fcn.01036ed3
test eax, eax
je 0x10341e3
push dword [ebp + 0x18]
push 0x1004bd4
push dword [ebp - 4]
call fcn.01036e2d
test eax, eax
je 0x10341e3
push dword [ebp + 0x1c]
push 0x1004b4c
push dword [ebp - 4]
call fcn.01036e2d
test eax, eax
je 0x10341e3
cmp dword [ebp + 0x18], 0x20000
jb 0x1034201
push edi
push dword [ebp - 8]
lea edi, [ebp + 0x18]
call fcn.0103407c
mov esi, eax
test esi, esi
pop edi
jne 0x10341ef
push dword [ebp + 0x18]
push 0x1004bb4
push dword [ebp - 4]
call fcn.01036e2d
test eax, eax
jne 0x1034201
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x1034201
cmp dword [ebp - 8], 0
je 0x103420c
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 8], 0
je 0x103420c
push dword [ebp - 8]
call ebx
cmp dword [ebp - 4], 0
je 0x1034217
push dword [ebp - 4]
call ebx
mov eax, esi
pop esi
pop ebx
leave
ret 0x18

Function at 0x1034224
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x1005390
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1034261
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 0x1035d2f
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x103ff58]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push edi
push dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
push edi
push 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x120], eax
call esi
test eax, eax
mov dword [ebp - 0x11c], eax
je 0x1035d9b
cmp dword [ebp + 0x18], 0
jne 0x1035d7b
add eax, eax
jmp 0x1035ddf
test bl, 0x30
jne 0x1035ddf
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1035d9f
xor eax, eax
jmp 0x1035ddf
cmp dword [ebp - 0x108], 2
jne 0x1035dd9
cmp dword [ebp - 0x114], 5
jb 0x1035dd9
push edi
push dword [ebp + 8]
call fcn.010378b8
test eax, eax
je 0x1035dd9
push dword [ebp + 0x18]
or ebx, 0x20
push edi
push 0
push dword [ebp - 0x120]
push ebx
push dword [ebp + 8]
call esi
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01031d91
leave
ret 0x14
Function at 0x1036052
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x18
push 0x1006eb8
call fcn.01032098
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
push dword [ebp + 8]
call fcn.01035c22
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, ebx
jne 0x1036082
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
jmp 0x10361f4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x103609a
test al, 0x10
je 0x103609a
mov dword [ebp - 0x1c], ebx
jmp 0x10361f4
mov dword [ebp - 4], ebx
push esi
call sub.msvcrt.dll_wcslen
pop ecx
push 2
pop edi
cmp eax, edi
jbe 0x10360f1
push edi
push 0x1006eac
push esi
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x10360f1
add esi, 4
mov dword [ebp - 0x20], esi
push 0x5c
push esi
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x1036151
add esi, edi
mov dword [ebp - 0x20], esi
push 0x5c
push esi
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x1036151
jmp 0x1036111
push esi
call sub.msvcrt.dll_wcslen
pop ecx
cmp eax, 1
jbe 0x1036115
push 1
push 0x1004554
push esi
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x1036115
add esi, edi
jmp 0x103614a
push esi
call sub.msvcrt.dll_wcslen
pop ecx
cmp eax, 3
jbe 0x103614d
xor eax, eax
mov ax, word [esi]
push eax
call sub.msvcrt.dll_iswalpha
pop ecx
test eax, eax
je 0x103614d
push edi
push 0x1006ea4
lea eax, [esi + 2]
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x103614d
add esi, 6
mov dword [ebp - 0x20], esi
cmp esi, ebx
jne 0x1036178
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1036178
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp eax, 0xb7
jne 0x1036172
mov dword [ebp - 0x1c], ebx
or dword [ebp - 4], 0xffffffff
jmp 0x10361f4
mov ebx, 0xb7
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
inc esi
inc esi
mov dword [ebp - 0x20], esi
cmp word [esi], 0
je 0x10361ee
push 0x5c
push esi
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
mov esi, eax
mov dword [ebp - 0x20], esi
xor eax, eax
push eax
push dword [ebp - 0x24]
cmp esi, eax
jne 0x10361b9
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10361ee
call edi
cmp eax, ebx
je 0x10361ee
jmp 0x10361cc
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10361d0
call edi
cmp eax, ebx
je 0x10361d0
call edi
jmp 0x10361eb
mov word [esi], 0x5c
jmp 0x1036183
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
xor ebx, ebx
push dword [ebp - 0x24]
call fcn.01035abf
cmp dword [ebp - 0x1c], ebx
je 0x103620a
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebp - 0x1c], ebx
sete al
call fcn.010320d3
ret 4
Function at 0x10369ca
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x103ff58]
push edi
push 0x47
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x120]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
pop edi
je 0x1036a61
cmp dword [ebp - 0x110], 2
jne 0x1036a61
cmp dword [ebp - 0x11c], 5
jb 0x1036a61
mov eax, dword [ebp - 8]
test al, 0x40
je 0x1036a32
test al, 1
je 0x1036a28
push 0x20
jmp 0x1036a5e
cmp byte [ebp - 6], 3
jne 0x1036a32
push 0x40
jmp 0x1036a5e
test ah, 2
je 0x1036a3c
xor eax, eax
inc eax
jmp 0x1036a63
test al, 2
je 0x1036a44
push 8
jmp 0x1036a5e
test al, al
jns 0x1036a4c
push 0x10
jmp 0x1036a5e
cmp byte [ebp - 6], 1
jne 0x1036a56
push 2
jmp 0x1036a5e
cmp byte [ebp - 6], 3
jne 0x1036a61
push 4
pop eax
jmp 0x1036a63
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.01031d91
leave
ret
Function at 0x1036b40
Capabilities:
Query environment variable
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
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 0x1036b9d
cmp eax, 2
jne 0x1036c54
cmp dword [ebp + 0x14], ebx
je 0x1036c54
cmp dword [ebp + 0xc], 7
push dword [ebp + 0x14]
jne 0x1036b91
call fcn.01035fdc
shl eax, 1
mov dword [ebp - 4], eax
jmp 0x1036bac
call sub.msvcrt.dll_wcslen
pop ecx
lea eax, [eax + eax + 2]
jmp 0x1036b8c
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 8], eax
jne 0x1036cd6
mov eax, dword [ebp - 4]
cmp eax, ebx
jne 0x1036bb6
push 0x20
pop eax
mov dword [ebp - 4], eax
push eax
call fcn.01035a36
mov edi, eax
cmp edi, ebx
je 0x1036c54
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 0x1036c16
cmp eax, 2
jne 0x1036c54
cmp dword [ebp + 0x14], ebx
je 0x1036c54
cmp dword [ebp + 0xc], 7
push dword [ebp + 0x14]
push edi
jne 0x1036bf7
call fcn.01036015
jmp 0x1036bfe
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 0x1036c54
cmp dword [ebp + 0xc], 2
jne 0x1036c85
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
push ebx
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x1036c52
lea eax, [ebx + ebx + 2]
push eax
mov dword [ebp - 4], eax
call fcn.01035a36
test eax, eax
mov dword [ebp + 0x10], eax
je 0x1036c52
push ebx
push eax
push edi
call esi
test eax, eax
jne 0x1036c7a
push dword [ebp + 0x10]
call fcn.01035abf
xor ebx, ebx
push edi
call fcn.01035abf
mov edi, dword [ebp + 0x18]
cmp edi, ebx
je 0x1036c63
mov dword [edi], ebx
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x1036cd6
cmp dword [ebp + 0xc], 7
push ebx
jne 0x1036c9a
call fcn.01035fdc
shl eax, 1
jmp 0x1036ca4
push edi
call fcn.01035abf
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x1036c91
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.01035a36
mov esi, eax
test esi, esi
je 0x1036cd6
cmp dword [ebp + 0xc], 7
push ebx
push esi
jne 0x1036cc2
call fcn.01036015
jmp 0x1036cc9
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
test edi, edi
je 0x1036cd2
mov eax, dword [ebp - 4]
mov dword [edi], eax
mov eax, esi
jmp 0x1036c93
xor eax, eax
jmp 0x1036c93
Function at 0x1036d7e
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
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 0x1036dc1
cmp eax, 2
je 0x1036dcc
push ebx
call fcn.01035abf
xor eax, eax
jmp 0x1036e21
cmp dword [ebp - 8], 3
jne 0x1036dbd
cmp dword [ebp - 4], edi
jne 0x1036dd3
mov dword [ebp - 4], 1
push dword [ebp - 4]
call fcn.01035a36
mov ebx, eax
cmp ebx, edi
je 0x1036db7
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 0x1036e13
cmp eax, 2
jne 0x1036db7
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 0x1036db7
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x1036e1f
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1036f13
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
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.01036aca
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
je 0x1037000
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 0x1036ff7
push dword [ebp + 0x18]
push dword [ebp - 0x10]
push ebx
push edi
call dword [ebp + 0x14]
test eax, eax
je 0x1036ff7
add dword [ebp + 0xc], 4
mov eax, dword [ebp + 0xc]
lea eax, [eax + eax + 2]
push eax
call fcn.01035a36
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1036ff7
push dword [ebp + 0xc]
push eax
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x1036fe9
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.01036aca
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x1036fdd
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 0x1036ff1
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 0x1036faa
jmp 0x1036ff7
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call fcn.01035abf
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1037017
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x103ff58]
mov ecx, dword [ebp + 0xc]
push esi
lea edx, [ebp - 0x210]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
xor esi, esi
push eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, esi
je 0x1037066
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10370f9
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1037085
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call fcn.01037017
test eax, eax
je 0x10370f6
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 0x104
call edi
cmp eax, esi
mov dword [ebp - 0x214], eax
je 0x103706f
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], 0x103
jne 0x10370ea
push dword [ebp - 0x220]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, esi
je 0x10370e5
push eax
jmp 0x10370f0
xor eax, eax
inc eax
jmp 0x10370f8
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.01031d91
leave
ret 8

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x103ff58]
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, 0x1004f20
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push 0x100541c
push eax
call sub.msvcrt.dll_swprintf
add esp, 0x10
push 0xf003f
xor edi, edi
push edi
lea eax, [ebp - 0x20c]
push eax
mov ebx, 0x80000002
push ebx
call fcn.01036aca
cmp eax, edi
mov dword [ebp - 0x210], eax
je 0x1037247
push 0x1004cc0
push eax
call fcn.01037017
push 0x1004d10
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x21c]
push eax
push edi
push edi
lea eax, [ebp - 0x218]
push eax
push edi
push edi
push edi
push dword [ebp - 0x210]
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x21c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, edi
push dword [ebp - 0x210]
mov dword [ebp - 0x214], eax
jne 0x103726d
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], edi
jne 0x1037273
cmp dword [ebp - 0x21c], edi
jne 0x1037273
push 0xf003f
push edi
push esi
push ebx
call fcn.01036aca
mov ebx, eax
cmp ebx, edi
jne 0x103724f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1037279
push esi
call sub.msvcrt.dll_wcslen
inc eax
pop ecx
lea eax, [ebp + eax*2 - 0x20c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x214], eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01031d91
leave
ret 4