joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002f2ab
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x714
mov eax, dword [0x10099bf8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
push edi
jb 0x1002f2cd
mov eax, dword [esi]
jmp 0x1002f2cf
mov eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
jne 0x1002f355
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1002f355
cmp eax, 5
jne 0x1002f313
push dword [ebp + 0xc]
push 0x80
push esi
call fcn.1002f367
cmp dword [esi + 0x14], 8
jb 0x1002f304
mov eax, dword [esi]
jmp 0x1002f306
mov eax, esi
push eax
call edi
test eax, eax
jne 0x1002f355
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1002f355
cmp byte [ebp + 0xc], 0
je 0x1002f351
push esi
push 0x10003b14
push eax
push 0xf
lea ecx, [ebp - 0x714]
call fcn.1002f3ea
mov esi, eax
push 0x10061eac
lea eax, [ebp - 0x38c]
mov ecx, 0xe2
lea edi, [ebp - 0x38c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.10044d60
xor al, al
jmp 0x1002f357
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10044d52
leave
ret 8

Function at 0x1002f367
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x714
mov eax, dword [0x10099bf8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x1002f388
mov eax, dword [esi]
jmp 0x1002f38a
mov eax, esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1002f3db
cmp byte [ebp + 0x10], al
je 0x1002f3db
lea eax, [ebp + 0xc]
push eax
push esi
push 0x10003b48
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x714]
call fcn.1002f48c
mov esi, eax
push 0x10061eac
lea eax, [ebp - 0x38c]
mov ecx, 0xe2
lea edi, [ebp - 0x38c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.10044d60
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10044d52
leave
ret 0xc

Function at 0x1002fa7d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.1002bdfd
test al, al
je 0x1002fae4
cmp dword [edi + 0x14], 8
jb 0x1002fa9d
mov eax, dword [edi]
jmp 0x1002fa9f
mov eax, edi
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jne 0x1002fab4
xor al, al
jmp 0x1002fae3
push esi
mov esi, dword [ebp + 0xc]
push ebx
mov ecx, esi
call fcn.1002e42b
mov eax, dword [esi + 4]
sub eax, dword [esi]
neg eax
sbb eax, eax
and eax, dword [esi]
cmp dword [edi + 0x14], 8
pop esi
jb 0x1002fad4
mov edi, dword [edi]
push eax
push ebx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
setne al
pop ebx
pop edi
leave
ret 8
Function at 0x1002fae9
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x714
mov eax, dword [0x10099bf8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x14], 8
push edi
mov edi, dword [ebp + 8]
jb 0x1002fb0f
mov eax, dword [esi]
jmp 0x1002fb11
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x1002fb1b
mov ecx, dword [edi]
jmp 0x1002fb1d
mov ecx, edi
xor ebx, ebx
cmp byte [ebp + 0x10], bl
sete bl
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1002fbaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1002fb6f
push 1
push 0x80
push esi
call fcn.1002f367
cmp dword [esi + 0x14], 8
jb 0x1002fb54
mov ecx, dword [esi]
jmp 0x1002fb56
mov ecx, esi
cmp dword [edi + 0x14], 8
jb 0x1002fb60
mov eax, dword [edi]
jmp 0x1002fb62
mov eax, edi
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1002fbaa
push esi
push edi
push 0x10003dd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x714]
call fcn.1002ff40
mov esi, eax
push 0x10061eac
lea eax, [ebp - 0x38c]
mov ecx, 0xe2
lea edi, [ebp - 0x38c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.10044d60
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10044d52
leave
ret 0xc

Function at 0x1003056a
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x718
mov eax, dword [0x10099bf8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x1003058b
mov eax, dword [esi]
jmp 0x1003058d
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x100305df
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x718]
push ecx
push esi
push 0x10003f50
push eax
push 0xf
lea ecx, [ebp - 0x714]
mov dword [ebp - 0x718], eax
call fcn.100305ee
mov esi, eax
push 0x10061eac
lea eax, [ebp - 0x38c]
mov ecx, 0xe2
lea edi, [ebp - 0x38c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.10044d60
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10044d52
leave
ret 4
Function at 0x100317a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x718
mov eax, dword [0x10099bf8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ecx + 0x24]
mov eax, dword [ebp + 8]
push esi
cmp edx, 0xffffffff
jne 0x100317f1
push 0x10004958
push 0x15
lea ecx, [ebp - 0x714]
call fcn.1002fdb2
mov esi, eax
push 0x10061eac
lea eax, [ebp - 0x38c]
mov ecx, 0xe2
lea edi, [ebp - 0x38c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.10044d60
and dword [ebp - 0x718], 0
cmp dword [eax + 0x14], 0x10
jb 0x10031802
mov ecx, dword [eax]
jmp 0x10031804
mov ecx, eax
push 0
lea esi, [ebp - 0x718]
push esi
push dword [eax + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10031840
cmp byte [ebp + 0xc], al
je 0x1003183c
push 0x1000492c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x714]
call fcn.1002f8cb
jmp 0x100317d1
xor al, al
jmp 0x10031842
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10044d52
leave
ret 8

Function at 0x10031934
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x71c
mov eax, dword [0x10099bf8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
cmp dword [ebx + 0x24], 0
push edi
mov edi, dword [ebp + 0xc]
jne 0x1003198b
push esi
push 0x10004a48
push 0x3a
lea ecx, [ebp - 0x714]
call fcn.10031de8
mov esi, eax
push 0x10061eac
lea eax, [ebp - 0x38c]
mov ecx, 0xe2
lea edi, [ebp - 0x38c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.10044d60
xor edx, edx
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x71c], 1
mov dword [ebp - 0x718], edx
jb 0x100319a7
mov eax, dword [esi]
jmp 0x100319a9
mov eax, esi
lea ecx, [ebp - 0x718]
push ecx
push edx
lea ecx, [ebp - 0x71c]
push ecx
push edx
push eax
push dword [ebx + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
cmp ecx, 2
je 0x10031a92
cmp dword [ebp - 0x71c], 1
je 0x100319e4
cmp dword [ebp - 0x71c], 2
jne 0x10031a92
test ecx, ecx
je 0x10031a05
push esi
lea eax, [ebx + 8]
push eax
push 0x100049c8
push ecx
push 0xf
lea ecx, [ebp - 0x714]
call fcn.10031d40
jmp 0x1003196b
and dword [edi + 0x10], 0
cmp dword [edi + 0x14], 8
jb 0x10031a13
mov eax, dword [edi]
jmp 0x10031a15
mov eax, edi
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0x718]
cmp ecx, 2
ja 0x10031a29
mov al, 1
jmp 0x10031a94
shr ecx, 1
dec ecx
push 0
push ecx
mov ecx, edi
call fcn.1002b429
cmp dword [edi + 0x14], 8
jb 0x10031a40
mov ecx, dword [edi]
jmp 0x10031a42
mov ecx, edi
cmp dword [esi + 0x14], 8
jb 0x10031a4c
mov eax, dword [esi]
jmp 0x10031a4e
mov eax, esi
lea edx, [ebp - 0x718]
push edx
push ecx
lea ecx, [ebp - 0x71c]
push ecx
push 0
push eax
push dword [ebx + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10031a7d
push esi
lea ecx, [ebx + 8]
push ecx
push 0x100049c8
push eax
jmp 0x100319f3
mov eax, dword [ebp - 0x718]
shr eax, 1
push 0
dec eax
push eax
mov ecx, edi
call fcn.1002b429
jmp 0x10031a25
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10044d52
leave
ret 8
Function at 0x10031aa5
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x74c
mov eax, 0x1005ef63
call fcn.10044e15
mov edi, ecx
cmp dword [edi + 0x24], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x758], eax
jne 0x10031afa
push 0x10004af8
push 0x3a
lea ecx, [ebp - 0x73c]
call fcn.10031e88
mov esi, eax
push 0x10061eac
lea eax, [ebp - 0x3b4]
mov ecx, 0xe2
lea edi, [ebp - 0x3b4]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.10044d60
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x744], 7
mov dword [ebp - 0x740], 1
jb 0x10031b18
mov eax, dword [esi]
jmp 0x10031b1a
mov eax, esi
lea ecx, [ebp - 0x740]
push ecx
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x744]
push ecx
push ebx
push eax
push dword [edi + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
cmp ecx, 2
je 0x10031c70
cmp dword [ebp - 0x744], 7
jne 0x10031c70
test ecx, ecx
je 0x10031b6f
push esi
lea eax, [edi + 8]
push eax
push 0x100049c8
push ecx
push 0xf
lea ecx, [ebp - 0x73c]
call fcn.10031d40
jmp 0x10031ada
mov eax, dword [ebp - 0x740]
add eax, 2
mov dword [ebp - 0x740], eax
mov dword [ebp - 0x754], ebx
mov dword [ebp - 0x750], ebx
mov dword [ebp - 0x74c], ebx
push eax
lea ecx, [ebp - 0x754]
mov dword [ebp - 4], ebx
call fcn.1002e42b
mov ebx, dword [ebp - 0x750]
sub ebx, dword [ebp - 0x754]
mov dword [ebp - 4], 1
mov eax, ebx
neg eax
sbb eax, eax
and eax, dword [ebp - 0x754]
cmp dword [esi + 0x14], 8
jb 0x10031bc8
mov ecx, dword [esi]
jmp 0x10031bca
mov ecx, esi
lea edx, [ebp - 0x740]
push edx
push eax
lea eax, [ebp - 0x744]
push eax
push 0
push ecx
push dword [edi + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10031bf9
push esi
lea ecx, [edi + 8]
push ecx
push 0x100049c8
push eax
jmp 0x10031b5d
mov edi, dword [ebp - 0x758]
xor esi, esi
mov eax, ebx
neg eax
sbb eax, eax
and eax, dword [ebp - 0x754]
and dword [ebp - 0x1c], 0
xor ecx, ecx
lea eax, [eax + esi*2]
mov word [ebp - 0x2c], cx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
call fcn.10029045
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.1002b717
mov eax, dword [ebp - 0x1c]
push 0
inc eax
push 1
lea ecx, [ebp - 0x2c]
add esi, eax
mov byte [ebp - 4], 1
call fcn.10029ad2
mov ecx, ebx
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x754]
cmp byte [ecx + esi*2], 0
jne 0x10031c01
lea ecx, [ebp - 0x754]
call fcn.1005e30d
mov al, 1
jmp 0x10031c72
xor al, al
call fcn.10044e98
ret 8
Function at 0x10032abe
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10099bf8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x214], 1
call fcn.1004562d
mov ecx, 0x1009b7bc
add esp, 0xc
mov dword [ebp - 0x210], 0x208
xor esi, esi
mov eax, ecx
cmp dword [eax], 0
je 0x10032b2a
add eax, 0x14
inc esi
cmp eax, 0x1009b7e4
jl 0x10032b15
jmp 0x10032c88
imul esi, esi, 0x14
add esi, ecx
je 0x10032c88
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10032c68
cmp dword [ebp - 0x214], 1
jne 0x10032c68
cmp word [ebp - 0x20c], ax
je 0x10032c68
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x10032c68
shr eax, 1
mov dword [ebp - 0x210], eax
cmp eax, 0x104
jae 0x10032bad
add eax, eax
cmp eax, 0x208
jae 0x10032ba8
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
jmp 0x10032bb3
call fcn.10045df9
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.10032cdc
mov dword [esi], eax
test eax, eax
je 0x10032c68
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10004fc4
push eax
call edi
test eax, eax
jne 0x10032be0
mov eax, dword [ebp + 0x10]
jmp 0x10032be2
call eax
mov dword [esi + 4], eax
cmp eax, 1
jne 0x10032c06
push 0x10004fe0
push dword [esi]
call edi
push 0x10004fec
push dword [esi]
mov dword [esi + 8], eax
call edi
push 0x10005000
jmp 0x10032c3a
cmp eax, 2
jne 0x10032c1b
push 0x10004fe0
push dword [esi]
call edi
push 0x10005010
jmp 0x10032bf8
cmp eax, 3
jne 0x10032c44
push 0x10005024
push dword [esi]
call edi
push 0x10005034
push dword [esi]
mov dword [esi + 8], eax
call edi
push 0x1000504c
push dword [esi]
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0xc], eax
cmp dword [esi + 8], 0
je 0x10032c68
cmp dword [esi + 0x10], 0
je 0x10032c68
cmp dword [esi + 0xc], 0
je 0x10032c68
push dword [0x1009b7e4]
push esi
call fcn.1003299e
test eax, eax
js 0x10032c68
xor esi, esi
test esi, esi
je 0x10032c88
cmp dword [esi], 0
je 0x10032c79
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [esi], 0
and dword [esi + 8], 0
and dword [esi + 0xc], 0
and dword [esi + 0x10], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10044d52
leave
ret 0xc

Function at 0x10032cef
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
xor edx, edx
push 0xa
pop ecx
div ecx
xor ebx, ebx
mov esi, 0x811c9dc5
lea edx, [eax + 1]
cmp dword [edi + 0x10], ebx
jbe 0x10032d30
cmp dword [edi + 0x14], 8
jb 0x10032d1b
mov eax, dword [edi]
jmp 0x10032d1d
mov eax, edi
movzx ecx, word [eax + ebx*2]
imul esi, esi, 0x1000193
add ebx, edx
xor esi, ecx
cmp ebx, dword [edi + 0x10]
jb 0x10032d11
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x1003ca27
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x1006075f
call fcn.10044dac
mov ebx, dword [ebp + 8]
xor edi, edi
or esi, 0xffffffff
test edi, edi
jne 0x1003ca50
cmp dword [0x1009b838], edi
je 0x1003cb3a
push 2
pop ebx
jmp 0x1003ca6a
cmp edi, 1
jne 0x1003cb3a
mov eax, ebx
call fcn.1003d8f8
test al, al
je 0x1003cb3a
xor ebx, ebx
lea ecx, [ebp - 0xd]
mov dword [ebp - 0x1c], ebx
call fcn.1003d91a
mov ecx, dword [ebp + 8]
xor eax, eax
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
movzx eax, word [ecx + 0xc]
shr eax, 1
and eax, 0x10
or eax, ebx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ecx + 8]
jmp 0x1003cb1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x1003cab1
mov eax, dword [ebx]
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push ecx
push 0
push dword [ebp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
call fcn.1003d111
test eax, eax
je 0x1003cb4e
push 0x1c049f
push 0
call fcn.1003f9d7
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
and eax, 0xf
imul eax, eax, 0xc
and dword [eax + 0x10069520], 0
push ebx
mov ecx, 0x1009b848
call fcn.1003c8a6
movzx eax, word [esi + 0xc]
and dword [ebp - 0x14], 0
shr eax, 1
and eax, 0x10
or eax, dword [ebp - 0x1c]
push 0
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 8]
call fcn.1003d228
mov esi, eax
test esi, esi
je 0x1003ca9d
mov ebx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.1003d93b
inc edi
cmp edi, 2
jl 0x1003ca38
mov eax, esi
call fcn.10044e84
ret 0x18
push ebx
mov ecx, 0x1009b848
call fcn.1003c80a
mov ebx, dword [ebp + 8]
test esi, esi
jne 0x1003cb2e
movzx ecx, word [ebx + 0xc]
mov eax, ecx
and eax, 0xf
cmp dword [ebp - 0x20], eax
je 0x1003cb89
cmp dword [ebp - 0x20], 3
jne 0x1003cb84
mov eax, dword [ebp + 0x14]
cmp dword [eax], 4
jne 0x1003cb84
and cl, 0xf
cmp cl, 4
je 0x1003cb89
push 2
pop esi
jmp 0x1003cb2e
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0xd]
mov dword [eax], 1
call fcn.1003d93b
xor eax, eax
jmp 0x1003cb46
Function at 0x1003d012
Capabilities:
Query or enumerate registry value

Disassembly:
push 4
mov eax, 0x100607d0
call fcn.10044dac
mov esi, dword [ebp + 8]
cmp esi, dword [0x1009b844]
jne 0x1003d030
xor al, al
jmp 0x1003d109
mov bl, byte [ebp + 0xc]
test bl, bl
je 0x1003d041
xor ecx, ecx
cmp dword [0x1009b838], ecx
jmp 0x1003d04c
mov eax, esi
call fcn.1003d8f8
xor ecx, ecx
test al, al
sete cl
test ecx, ecx
jne 0x1003d029
xor edi, edi
lea ecx, [ebp + 0xf]
mov dword [ebp + 8], edi
mov dword [ebp - 0x10], edi
call fcn.1003d91a
mov dword [ebp - 4], edi
movzx edi, bl
neg edi
sbb edi, edi
and edi, 2
xor ebx, ebx
jmp 0x1003d0ca
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x1003d080
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
call fcn.1003d111
test eax, eax
je 0x1003d0ef
push 0x1c04c2
xor ebx, ebx
push ebx
call fcn.1003f9d7
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
push dword [ebp + 8]
and eax, 0xf
imul eax, eax, 0xc
mov ecx, 0x1009b848
mov dword [eax + 0x10069520], ebx
call fcn.1003c8a6
mov dword [ebp + 8], ebx
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
push ebx
or eax, edi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
push dword [esi + 8]
call fcn.1003d228
mov ebx, eax
test ebx, ebx
je 0x1003d074
jmp 0x1003d0fc
push dword [ebp + 8]
mov ecx, 0x1009b848
call fcn.1003c80a
lea ecx, [ebp + 0xf]
call fcn.1003d93b
test ebx, ebx
sete al
call fcn.10044e84
ret 8

Function at 0x1003d84c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
test ecx, ecx
jne 0x1003d85e
mov ecx, dword [edi]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp + 0xc]
push eax
push 0xffff
push dword [ebp + 8]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp dword [ebp - 4], 2
mov esi, eax
jae 0x1003d88f
cmp dword [ebp + 0xc], 1
je 0x1003d88c
cmp dword [ebp + 0xc], 2
jne 0x1003d88f
push 2
pop esi
mov eax, esi
call fcn.1003d111
test eax, eax
je 0x1003d8b3
push 0x1c0491
push 0
call fcn.1003f9d7
push edi
mov ecx, 0x1009b848
call fcn.1003c8a6
jmp 0x1003d8f0
test esi, esi
jne 0x1003d8e5
mov ecx, dword [ebp + 0xc]
cmp ecx, 2
je 0x1003d8c4
cmp ecx, 1
jne 0x1003d8d3
mov eax, dword [ebp - 4]
shr eax, 1
xor ecx, ecx
mov word [ebx + eax*2 - 2], cx
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ebp + 0x10]
push eax
push ecx
call fcn.1003cfe8
test eax, eax
jne 0x1003d8e5
push 2
pop esi
push edi
mov ecx, 0x1009b848
call fcn.1003c80a
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1003d95c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x10060826
call fcn.10044dac
mov esi, dword [ebp + 8]
cmp esi, dword [0x1009b844]
jne 0x1003d97a
xor eax, eax
jmp 0x1003dadf
and dword [ebp - 0x1c], 0
xor ecx, ecx
mov dword [ebp - 0x18], ecx
xor ebx, ebx
or edi, 0xffffffff
test ebx, ebx
jne 0x1003d99d
cmp dword [0x1009b838], ebx
je 0x1003da9f
push 2
pop edi
jmp 0x1003d9b7
cmp ebx, 1
jne 0x1003da9f
mov eax, esi
call fcn.1003d8f8
test al, al
je 0x1003da9f
xor edi, edi
and dword [ebp - 0x10], 0
lea ecx, [ebp + 0xb]
mov dword [ebp - 0x20], edi
call fcn.1003d91a
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
push eax
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
or eax, edi
jmp 0x1003da62
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x1003d9eb
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x18], 2
mov edi, eax
jae 0x1003da17
cmp dword [ebp - 0x1c], 1
je 0x1003da14
cmp dword [ebp - 0x1c], 2
jne 0x1003da17
push 2
pop edi
mov eax, edi
call fcn.1003d111
test eax, eax
je 0x1003da7f
push 0x1c0496
xor edi, edi
push edi
call fcn.1003f9d7
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
push dword [ebp - 0x10]
and eax, 0xf
imul eax, eax, 0xc
mov ecx, 0x1009b848
mov dword [eax + 0x10069520], edi
call fcn.1003c8a6
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
or eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
push edi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
call fcn.1003d228
mov edi, eax
test edi, edi
je 0x1003d9df
jmp 0x1003da90
push dword [ebp - 0x10]
mov ecx, 0x1009b848
call fcn.1003c80a
test edi, edi
je 0x1003daab
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb]
call fcn.1003d93b
mov ecx, dword [ebp - 0x18]
inc ebx
cmp ebx, 2
jl 0x1003d985
jmp 0x1003daba
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb]
call fcn.1003d93b
mov ecx, dword [ebp - 0x18]
test edi, edi
jne 0x1003dad5
cmp dword [ebp - 0x1c], 2
je 0x1003dacd
mov al, byte [esi + 0xc]
and al, 0xf
cmp al, 2
jne 0x1003dadd
push ecx
call fcn.1003c1d2
jmp 0x1003dadb
push esi
call fcn.1003be90
mov ecx, eax
mov eax, ecx
call fcn.10044e84
ret 4
Function at 0x10040ae2
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x10099bf8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x23c], eax
mov edi, 0x104
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.10043691
pop ecx
pop ecx
test eax, eax
jne 0x10040b1f
or eax, 0xffffffff
jmp 0x10040c9b
push ebx
xor eax, eax
lea ebx, [ebp - 0x22c]
push esi
mov dword [ebp - 0x230], ebx
cmp word [ebp - 0x22c], ax
je 0x10040b46
add ebx, 2
cmp word [ebx], ax
jne 0x10040b38
mov dword [ebp - 0x230], ebx
push 1
call fcn.10043637
pop ecx
push dword [0x100695ac]
call fcn.1003bf31
mov esi, eax
mov dword [ebp - 0x238], esi
cmp esi, 0x64
jbe 0x10040b69
xor esi, esi
inc esi
lea eax, [ebp - 0x22c]
sub ebx, eax
sar ebx, 1
push esi
push 0x10009b08
lea eax, [ebp - 0x24]
push 0xffffffffffffffff
push eax
call fcn.10041aba
add esp, 0x10
test ebx, ebx
js 0x10040bfd
cmp ebx, edi
ja 0x10040bfd
mov eax, edi
sub eax, ebx
cmp eax, 0x7fffffff
ja 0x10040bfd
push eax
push dword [ebp - 0x230]
lea eax, [ebp - 0x24]
push eax
call fcn.10058f51
push 1
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x22c]
push eax
call fcn.1003bc8f
mov dword [ebp - 0x234], eax
cmp eax, 0xffffffff
jne 0x10040c53
cmp esi, 0x64
jb 0x10040bdc
xor esi, esi
inc esi
cmp esi, dword [ebp - 0x238]
jne 0x10040b73
push esi
push 0x10009b08
lea eax, [ebp - 0x24]
push 0xffffffffffffffff
push eax
call fcn.10041aba
add esp, 0x10
test ebx, ebx
jns 0x10040c02
call fcn.1004608d
cmp ebx, edi
ja 0x10040bfd
sub edi, ebx
cmp edi, 0x7fffffff
ja 0x10040bfd
push edi
push dword [ebp - 0x230]
lea eax, [ebp - 0x24]
push eax
call fcn.10058f51
mov ebx, 0x80
push ebx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
push 0
push ebx
push 2
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x22c]
push eax
call fcn.1003bc8f
mov edi, eax
jmp 0x10040c59
mov edi, dword [ebp - 0x234]
cmp esi, 0x64
jb 0x10040c60
xor esi, esi
cmp byte [ebp + 0x10], 0
je 0x10040c75
lea eax, [esi + 1]
push eax
push dword [0x100695ac]
call fcn.1003bf59
call fcn.10040976
mov eax, dword [ebp - 0x23c]
pop esi
pop ebx
test eax, eax
je 0x10040c99
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.1003fcec
add esp, 0xc
mov eax, edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10044d52
leave
ret