joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3c71f8
Capabilities:
Identify system language via api

Disassembly:
push 0x2c
mov eax, 0x3d608c
call fcn.003c39dd
lea ecx, [ebp - 0x34]
call fcn.003c6c55
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 0
call fcn.003c758b
test eax, eax
jl 0x3c722c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.003c72a7
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
mov eax, 0x409
mov edi, 0x3c7298
cmp ax, si
jne 0x3ce4b4
and esi, 0x3ff
push esi
push edi
lea eax, [ebp - 0x30]
push 8
push eax
call fcn.003c1451
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.003c758b
mov esi, eax
test esi, esi
jl 0x3c7280
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.003c72a7
mov esi, eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.003c760b
mov eax, esi
call fcn.003c2b9f
ret

Function at 0x3c791d
Capabilities:
Identify system language via api

Disassembly:
lea eax, [ebp - 0x30]
push eax
call esi
push 8
pop eax
push dword [ebp + 0x10]
mov word [ebp - 0x30], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x3cdc4f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0x82
lea edx, [ebp - 0x30]
push edx
push 0x3c7900
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call edi
cmp esi, ebx
jl 0x3c79a8
push 1
lea ecx, [ebp - 0x20]
call fcn.003c79e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x3c78ec
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.003c71e0
cmp esi, ebx
jl 0x3c79a8
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push 3
movzx eax, ax
pop ecx
mov word [ebp - 0x20], cx
mov dword [ebp - 0x18], eax
jmp 0x3c7992
push 0x24
mov eax, 0x3d5c85
call fcn.003c26dd
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x20]
push eax
call esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
mov dword [ebp - 0x10], ebx
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp + 0xc], ebx
je 0x3c7854
push 1
lea ecx, [ebp - 0x20]
call fcn.003c79e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x3c3984
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jl 0x3c79a6
push 3
pop eax
mov word [ebp - 0x20], ax
mov dword [ebp - 0x18], 0x409
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x20]
push edx
push 0x3c79d0
push eax
call dword [ecx + 0x10]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.003c7455
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.003c71e0
mov eax, esi
call fcn.003c1390
ret 0xc
Function at 0x3c7b05
Capabilities:
Identify system language via api

Disassembly:
push 0x50
mov eax, 0x3d5fc0
call fcn.003c39dd
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x5c], ecx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x54], esi
call fcn.003c7c2b
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x58]
mov ebx, eax
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x3c7b34
sub eax, ecx
sar eax, 1
mov edi, eax
je 0x3c7b63
movzx eax, word [ebx + esi*2]
push eax
call dword [sym.imp.msvcrt.dll_iswxdigit]
pop ecx
test eax, eax
je 0x3c7b5b
inc esi
cmp esi, edi
jb 0x3c7b46
cmp esi, edi
jb 0x3c7c0e
xor eax, eax
mov edx, ebx
test edi, edi
jbe 0x3c7c0e
cmp word [edx], 0x30
jne 0x3c7b7c
inc eax
inc edx
inc edx
cmp eax, edi
jb 0x3c7b6f
cmp eax, edi
jae 0x3c7c0e
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x3c7b89
sub eax, esi
sar eax, 1
cmp eax, 3
ja 0x3c7c0e
push 0x10
push 0
push edx
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp cx, si
jne 0x3c7c03
movzx eax, ax
movzx eax, ax
push eax
push 0x3c7c18
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.003c1451
mov ecx, dword [ebp - 0x5c]
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
call fcn.003c6c60
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.003c760b
mov eax, dword [ebp - 0x54]
call fcn.003c2b9f
ret 8
or esi, 0x400
movzx eax, si
jmp 0x3c7bc6
mov dword [ebp - 0x54], 0x80041001
jmp 0x3c7be9
Function at 0x3c7f3e
Capabilities:
Create directory

Disassembly:
push 0x10
mov eax, 0x3d6a7d
call fcn.003c1350
mov dword [ebp - 0x1c], ecx
xor esi, esi
mov ebx, 0x8007000e
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], esi
je 0x3c8046
push 1
call fcn.003c227c
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x3c803c
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.003c13e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x3c7fcd
push dword [ebp - 0x18]
inc edi
push edi
push eax
call fcn.003c21cb
mov ebx, eax
test ebx, ebx
jl 0x3c8024
push dword [ebp + 8]
push esi
push dword [ebp - 0x14]
call fcn.003c2436
mov ebx, eax
test ebx, ebx
jl 0x3c8024
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x3c8024
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x3c7ff6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x3cf33c
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x3c8024
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x44], eax
cmp eax, 0xffffffff
je 0x3cf353
cmp dword [ebp - 0x14], 0
je 0x3c8033
push dword [ebp - 0x14]
call fcn.003c13c0
pop ecx
push dword [ebp - 0x18]
call fcn.003c13c0
pop ecx
mov eax, ebx
call fcn.003c1390
ret 4
mov ebx, 0x80070057
jmp 0x3c803c

Function at 0x3c85f1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x3db004]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
test eax, eax
je 0x3c8684
cmp eax, 0xffffffff
je 0x3c8684
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x3c8684
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
and dword [ebp - 0xc], 0
push ebx
call esi
push ebx
mov dword [ebp - 0x10], eax
call esi
lea esi, [eax + eax + 2]
mov eax, esi
call fcn.003c85b5
mov eax, esp
push esi
push ebx
push eax
call fcn.003c8692
mov esi, dword [ebp - 0x10]
mov edi, dword [edi + 0x44]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x3cf2da
cmp esi, dword [ebp - 0xc]
jne 0x3cf2f6
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.003c20d4
leave
ret 4
mov dword [ebp - 8], 0x80070057
jmp 0x3c866d
Function at 0x3c88ef
Capabilities:
Get geographical location

Disassembly:
push 0x210
mov eax, 0x3d6be9
call fcn.003c20e6
xor eax, eax
push 0x1fe
mov word [ebp - 0x214], ax
xor ebx, ebx
lea eax, [ebp - 0x212]
push ebx
push eax
call sub.msvcrt.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
push 0x100
lea eax, [ebp - 0x214]
push eax
push 0x1001
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x214]
and esi, 0x3ff
push eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 7
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.003c13e0
mov edi, eax
pop ecx
cmp edi, ebx
je 0x3c8999
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x21c]
push 0x3c89a4
push esi
push edi
call fcn.003c1451
add esp, 0x14
mov eax, edi
call fcn.003c2126
ret 4
Function at 0x3c93ba
Capabilities:
Delete registry value

Disassembly:
push 0x2c
mov eax, 0x3d64bd
call fcn.003c1350
xor ebx, ebx
mov dword [ebp - 0x14], 0x8007000e
cmp dword [ebp + 8], ebx
je 0x3cecc6
mov eax, 0x3c17f4
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], eax
push dword [0x3db514]
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
push ebx
push 2
mov byte [ebp - 4], 1
call esi
push dword [0x3db518]
mov dword [ebp - 0x20], eax
push ebx
push 0x100000
call esi
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x20], ebx
je 0x3c9432
cmp eax, ebx
je 0x3c9432
push dword [ebp - 0x20]
xor esi, esi
inc esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp eax, esi
jne 0x3c970b
cmp dword [ebp + 0xc], ebx
je 0x3c969e
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
push ebx
push 0x10002
push dword [0x3db51c]
lea ecx, [ebp - 0x38]
push 0x80000002
mov byte [ebp - 4], 2
call fcn.003c2097
test eax, eax
jne 0x3c948e
mov edi, dword [ebp - 0x38]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x3c95b4
push edi
call esi
push 0x3c959c
push edi
call esi
push 0x3c9580
push edi
call esi
push 0x3c956c
push edi
call esi
lea ecx, [ebp - 0x38]
call fcn.003c1f10
push 1
call fcn.003c227c
mov dword [ebp + 0xc], eax
cmp eax, ebx
je 0x3c9516
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov byte [ebp - 4], 3
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea esi, [edi + eax + 8]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.003c13e0
mov edi, eax
pop ecx
cmp edi, ebx
je 0x3c950d
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0x3c9554
push esi
push edi
call fcn.003c1451
add esp, 0x14
push 1
push edi
call dword [0x3c1330]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x3cecd2
cmp edi, ebx
je 0x3c950d
push edi
call fcn.003c13c0
pop ecx
push dword [ebp + 0xc]
call fcn.003c13c0
pop ecx
lea ecx, [ebp - 0x38]
call fcn.003c1f10
cmp dword [ebp - 0x18], ebx
je 0x3c9539
push 0xbb8
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x3c970b
lea ecx, [ebp - 0x2c]
call fcn.003c187a
lea ecx, [ebp - 0x24]
call fcn.003c187a
mov eax, dword [ebp - 0x14]
call fcn.003c1390
ret 8
push dword [ebp + 8]
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 4
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.003c13e0
mov edi, eax
pop ecx
cmp edi, ebx
je 0x3c951e
push dword [ebp + 8]
push 0x3c9718
push esi
push edi
call fcn.003c1451
add esp, 0x10
push 1
push edi
call dword [0x3c132c]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x3cecf4
cmp edi, ebx
je 0x3c951e
push edi
call fcn.003c13c0
pop ecx
jmp 0x3c951e
mov dword [ebp - 0x14], 0x80004005
jmp 0x3c9539
Function at 0x3d0d7d
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [ecx + eax + 0x18]
test esi, esi
jbe 0x3d0dba
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x3d0db2
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x3d0dbc
inc edx
add eax, 0x28
cmp edx, esi
jb 0x3d0da2
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10003335
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x10071ef0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push 0x3e
lea eax, [ebp - 0x66]
push ebx
push eax
mov word [ebp - 0x68], bx
call sub.MSVCR80.dll_memset
push 0x10044d44
lea eax, [ebp - 0x68]
push 0x20
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov eax, dword [ebp + 8]
push dword [eax*4 + 0x1006d514]
lea eax, [ebp - 0x68]
push 0x20
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0x24
lea eax, [ebp - 0x6c]
push eax
push 0xf013f
push ebx
lea eax, [ebp - 0x68]
push eax
mov esi, SysReAllocStringLen
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x6c], ebx
jne 0x100033c4
push ebx
lea eax, [ebp - 0x6c]
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 0x6c], ebx
jne 0x100033c4
xor al, al
jmp 0x1000341d
push edi
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x26]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push 0x10044d40
push dword [ebp - 0x6c]
mov word [ebp - 0x28], bx
mov dword [ebp - 0x70], 0x24
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
pop edi
jne 0x10003412
lea eax, [ebp - 0x28]
push eax
push str.DAEMON.Tools.Lite
call dword [sym.imp.MSVCR80.dll_wcscmp]
mov ebx, eax
neg ebx
pop ecx
sbb bl, bl
pop ecx
inc bl
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1003e70b
leave
ret
Function at 0x10003673
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x10071ef0]
xor eax, ebp
mov dword [ebp + 0x398], eax
push ebx
push esi
push edi
xor edi, edi
push 0x206
lea eax, [ebp + 0x192]
push edi
push eax
mov word [ebp + 0x190], di
call sub.MSVCR80.dll_memset
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.
mov esi, 0x104
lea eax, [ebp + 0x190]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov eax, dword [ebp + 0x3a4]
push dword [eax*4 + 0x1006d514]
lea eax, [ebp + 0x190]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0x24
lea eax, [ebp - 0x7c]
push eax
push 0xf013f
push edi
lea eax, [ebp + 0x190]
push eax
mov ebx, SysReAllocStringLen
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x7c], edi
jne 0x10003729
push edi
lea eax, [ebp - 0x7c]
push eax
push edi
push 0xf013f
push edi
push edi
push edi
lea eax, [ebp + 0x190]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 0x7c], edi
je 0x100037d1
call fcn.100054fb
test eax, eax
je 0x100037ae
push str.UserChoice
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x206
lea eax, [ebp - 0x76]
push edi
push eax
mov word [ebp - 0x78], di
call sub.MSVCR80.dll_memset
lea eax, [ebp + 0x190]
push eax
lea eax, [ebp - 0x78]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
push str.OpenWithProgids
lea eax, [ebp - 0x78]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0x24
lea eax, [ebp - 0x80]
push eax
push 0xf013f
push edi
lea eax, [ebp - 0x78]
push eax
push ebx
mov dword [ebp - 0x80], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x80], edi
je 0x100037c8
push str.DAEMON.Tools.Lite
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100037c8
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.Progid
push dword [ebp - 0x7c]
call esi
push 0x10044d48
push dword [ebp - 0x7c]
call esi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003e70b
add ebp, 0x39c
leave
ret
Function at 0x10003a0b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x398
mov eax, dword [0x10071ef0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push 0x3e
lea eax, [ebp - 0x42]
push edi
push eax
mov word [ebp - 0x44], di
call sub.MSVCR80.dll_memset
mov ebx, dword [sym.imp.MSVCR80.dll_wcscpy_s]
push 0x10044d44
lea eax, [ebp - 0x44]
push 0x20
push eax
call ebx
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.MSVCR80.dll_wcscat_s]
lea eax, [eax*4 + 0x1006d514]
push dword [eax]
mov dword [ebp - 0x398], eax
lea eax, [ebp - 0x44]
push 0x20
push eax
call esi
add esp, 0x24
lea eax, [ebp - 0x390]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x44]
push eax
push SysReAllocStringLen
mov dword [ebp - 0x390], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x390], edi
jne 0x10003ac2
push edi
lea eax, [ebp - 0x390]
push eax
push edi
push 0x20019
push edi
push edi
push edi
lea eax, [ebp - 0x44]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 0x390], edi
jne 0x10003ac2
xor al, al
jmp 0x10003ba6
push 0x206
lea eax, [ebp - 0x38a]
push edi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x394]
push eax
lea eax, [ebp - 0x38c]
push eax
push edi
push edi
push 0x10044d40
push dword [ebp - 0x390]
mov word [ebp - 0x38c], di
mov dword [ebp - 0x394], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x3e
lea eax, [ebp - 0x82]
push edi
push eax
mov word [ebp - 0x84], di
call sub.MSVCR80.dll_memset
push 0x10044d44
lea eax, [ebp - 0x84]
push 0x20
push eax
call ebx
mov eax, dword [ebp - 0x398]
push dword [eax]
lea eax, [ebp - 0x84]
push 0x20
push eax
call esi
push 0x10044ef0
lea eax, [ebp - 0x184]
push 0x80
push eax
call ebx
push 0x10044eec
mov ebx, 0x80
lea eax, [ebp - 0x184]
push ebx
push eax
call esi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x184]
push ebx
push eax
call esi
add esp, 0x48
push edi
push 1
lea eax, [ebp - 0x38c]
push eax
lea eax, [ebp - 0x184]
push eax
push str.Type
call fcn.100048ef
add esp, 0x14
push dword [ebp - 0x390]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003e70b
leave
ret
Function at 0x10003bb5
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x10071ef0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor esi, esi
push 0x3e
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x42]
push esi
push eax
mov word [ebp - 0x44], si
call sub.MSVCR80.dll_memset
push 0x10044d44
lea eax, [ebp - 0x44]
push 0x20
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov eax, dword [ebp + 8]
push dword [eax*4 + 0x1006d514]
lea eax, [ebp - 0x44]
push 0x20
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0x24
lea eax, [ebp - 0x48]
push eax
mov ebx, 0xf013f
push ebx
push esi
lea eax, [ebp - 0x44]
push eax
mov edi, SysReAllocStringLen
push edi
mov dword [ebp - 0x48], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x48], esi
jne 0x10003c4e
push esi
lea eax, [ebp - 0x48]
push eax
push esi
push ebx
push esi
push esi
push esi
lea eax, [ebp - 0x44]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 0x48], esi
jne 0x10003c4e
xor al, al
jmp 0x10003cd5
mov eax, dword [ebp - 0x4c]
cmp word [eax], si
jne 0x10003ca6
push 0x10044d40
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x48]
push eax
push ebx
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x48], esi
jne 0x10003c97
push esi
lea eax, [ebp - 0x48]
push eax
push esi
push ebx
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 0x48], esi
je 0x10003cd3
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x10003cd3
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
add eax, eax
push eax
push dword [ebp - 0x4c]
push 1
push esi
push 0x10044d40
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x48], esi
je 0x10003cd3
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003e70b
leave
ret

Function at 0x100048ef
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push 1
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.10004807
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1000492d
cmp byte [ebp + 0x18], 0
jne 0x1000492d
push dword [ebp + 0x10]
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
add eax, eax
push eax
push dword [ebp + 0x10]
push 1
push 0
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x14]
push esi
call fcn.10004899
pop ecx
xor eax, eax
test esi, esi
pop ecx
setne al
pop esi
pop ebp
ret
Function at 0x10004942
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push 1
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.10004807
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10004970
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x14]
push esi
call fcn.10004899
pop ecx
xor eax, eax
test esi, esi
pop ecx
setne al
pop esi
pop ebp
ret

Function at 0x10004985
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call fcn.10004807
mov esi, eax
add esp, 0xc
test esi, esi
je 0x100049c9
mov ebx, dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
push ebx
push 0
push 0
push dword [ebp + 8]
mov dword [ebp - 4], 4
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100049d1
mov eax, dword [ebp + 0x10]
mov dword [ebx], eax
jmp 0x100049d1
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
push dword [ebp + 0x18]
push esi
call fcn.10004899
pop ecx
pop ecx
xor eax, eax
test esi, esi
pop esi
setne al
pop ebx
leave
ret

Function at 0x10004a42
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x1003fdc3
call fcn.1003e7e6
xor edi, edi
push edi
push dword [ebp + 0x18]
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
mov dword [ebp - 0x18], edi
call fcn.10004807
push 0x800
mov dword [ebp - 0x10], eax
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
push 0x400
mov esi, eax
push edi
push esi
call sub.MSVCR80.dll_memset
add esp, 0x1c
cmp dword [ebp - 0x10], edi
je 0x10004aa6
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], 0x800
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov word [esi + 0x7fe], di
cmp word [esi], di
jne 0x10004abd
push dword [ebp + 0x14]
push 0x400
push esi
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
push dword [ebp + 0x18]
push dword [ebp - 0x10]
call fcn.10004899
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
push esi
call fcn.10002bd2
push esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], 1
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp + 8]
pop ecx
call fcn.1003e8be
ret