joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000f168
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xc
mov eax, 0x1006bc76
call fcn.100657fc
mov dword [ebp - 0x18], ecx
mov edi, dword [ebp + 0x10]
xor ebx, ebx
xor esi, esi
mov byte [ebp - 0x11], 0
inc ebx
mov byte [edi], 0
cmp esi, 0xa
jge 0x1000f201
call fcn.10014460
push eax
lea ecx, [ebp + 0x10]
call fcn.100122c3
and dword [ebp - 4], 0
lea ecx, [ebp + 0x10]
push dword [ebp + 8]
mov byte [ebp - 4], bl
call fcn.10011797
mov eax, dword [ebp + 0xc]
push dword [eax + esi*4]
lea eax, [ebp + 0x10]
push eax
call fcn.100130a3
and dword [ebp - 4], 0
pop ecx
pop ecx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp + 0x10]
cmp eax, 0xffffffff
jne 0x1000f1da
mov byte [edi], bl
call fcn.100122a8
jmp 0x1000f201
or dword [ebp - 4], 0xffffffff
call fcn.100122a8
inc esi
jmp 0x1000f186
mov al, bl
call fcn.1006575a
ret 0xc

Function at 0x1000f20b
Capabilities:
Write file on windows

Disassembly:
push 0x28
mov eax, 0x1006bcb9
call fcn.100657fc
mov edi, ecx
mov dword [ebp - 0x30], edi
xor ebx, ebx
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x18], ebx
call fcn.10014460
push eax
lea ecx, [ebp - 0x1c]
call fcn.100122c3
push ebx
push 0x80
push 2
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
push ebx
push ebx
push 2
push dword [eax]
mov dword [ebp - 0x20], 0xfeff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x34], esi
cmp esi, 0xffffffff
jne 0x1000f277
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1000f26f
movzx eax, ax
or eax, 0x80070000
mov dword [edi + 0x18], eax
jmp 0x1000f38e
push ebx
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1000f2a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1000f29f
movzx eax, ax
or eax, 0x80070000
mov dword [edi + 0x18], eax
jmp 0x1000f387
push ebx
lea eax, [ebp - 0x18]
push eax
push 0x124
push 0x10006908
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000f28d
push dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.100115c5
push 0x10006a38
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.10011624
push dword [ebp + 0xc]
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.10011680
push 0x10006a30
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp + 8]
call fcn.10011624
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.10011797
lea ecx, [ebp + 8]
call fcn.100122a8
lea ecx, [ebp - 0x24]
call fcn.100122a8
lea ecx, [ebp - 0x28]
call fcn.100122a8
lea ecx, [ebp - 0x2c]
call fcn.100122a8
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
push ebx
push edx
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000f28d
push ebx
lea eax, [ebp - 0x18]
push eax
push 0x48
push 0x10006ad0
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000f28d
mov bl, 1
jmp 0x1000f387
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1c]
call fcn.100122a8
mov al, bl
call fcn.1006575a
ret 8
Function at 0x1000f41d
Capabilities:
Move file

Disassembly:
push 0x28
mov eax, 0x1006bcff
call fcn.100657fc
mov esi, ecx
call fcn.10014460
push eax
lea ecx, [ebp - 0x14]
call fcn.100122c3
xor edi, edi
lea edx, [ebp - 0x14]
mov dword [ebp - 4], edi
mov eax, 0x614
mov ecx, dword [esi + 0x20]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov word [ebp - 0x24], ax
mov dword [ebp - 0x22], edi
mov dword [ebp - 0x1e], edi
mov dword [ebp - 0x1a], edi
call fcn.10018607
test eax, eax
js 0x1000f48c
push edi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.10012d42
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
lea ecx, [ebp - 0x14]
call fcn.100122a8
call fcn.1006575a
ret

Function at 0x1000f4a0
Capabilities:
Create directory

Disassembly:
push 0x20
mov eax, 0x1006bd52
call fcn.100657fc
mov esi, ecx
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x11], bl
call fcn.10014460
push eax
lea ecx, [ebp - 0x24]
call fcn.100122c3
mov byte [ebp - 4], 1
lea edx, [ebp - 0x24]
mov ecx, dword [esi + 0x20]
call fcn.100187e1
test eax, eax
jne 0x1000f5d1
mov byte [ebp - 4], 2
call fcn.10014460
push eax
lea ecx, [ebp - 0x20]
call fcn.100122c3
mov byte [ebp - 4], 3
call fcn.10014460
push eax
lea ecx, [ebp - 0x1c]
call fcn.100122c3
mov byte [ebp - 4], 4
call fcn.10014460
push eax
lea ecx, [ebp - 0x18]
call fcn.100122c3
push ecx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.1001171e
push eax
lea ecx, [ebp - 0x18]
call fcn.10011797
push ecx
lea ecx, [ebp - 0x18]
call fcn.10011778
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
call fcn.100116d7
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.10011797
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.100122a8
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10011778
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100116d7
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
call fcn.10011797
lea ecx, [ebp - 0x28]
call fcn.100122a8
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push dword [ebp - 0x20]
call esi
push ebx
push dword [ebp - 0x1c]
call esi
push ebx
push dword [ebp - 0x18]
call esi
push ebx
push dword [ebp - 0x24]
call esi
lea ecx, [ebp - 0x18]
call fcn.100122a8
lea ecx, [ebp - 0x1c]
call fcn.100122a8
lea ecx, [ebp - 0x20]
call fcn.100122a8
mov bl, 1
jmp 0x1000f5d1
lea ecx, [ebp - 0x24]
call fcn.100122a8
lea ecx, [ebp + 8]
call fcn.100122a8
mov al, bl
call fcn.1006575a
ret 4
Function at 0x100141f8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10014252
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10014244
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x10014240
cmp esi, ecx
jae 0x10014244
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x1001422e
cmp esi, ecx
jb 0x10014248
xor eax, eax
jmp 0x10014251
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x10015197
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test edx, edx
jne 0x100151aa
push 0xd
pop eax
jmp 0x100151ee
push esi
xor eax, eax
push edi
mov dword [ebp + 0xc], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp + 0xc]
jne 0x100151bd
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x100151b5
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1001581a
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x10077014]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
mov ebx, ecx
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
push esi
or eax, 0x2001f
mov dword [esp + 0x1c], ecx
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x18]
call fcn.100157bc
jmp 0x10015872
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.1001581a
mov esi, eax
test esi, esi
jne 0x100158c6
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x10015864
cmp dword [esp + 0xc], esi
je 0x100158b5
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
push dword [esp + 0x1c]
mov ecx, ebx
mov dword [esp + 0x14], esi
call fcn.10015997
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x100158d7
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.10055284
mov esp, ebp
pop ebp
ret 4
Function at 0x1001634c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1006c294
call fcn.10065833
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x100163c9
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x100163c9
call fcn.10014baf
mov esi, eax
jmp 0x100164cf
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x100163ec
call fcn.10014baf
jmp 0x100164c2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x100163e2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x1001641f
mov esi, 0x8007000e
jmp 0x100164c4
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x10016453
cmp eax, 0xffffffff
ja 0x10016453
cmp eax, 0x400
jbe 0x10016445
push eax
lea ecx, [ebp - 0x418]
call fcn.10014b8a
jmp 0x10016471
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x10016471
push 0x80070216
call fcn.10015671
mov eax, 0x10016463
ret
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x10016415
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x100163e2
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.100161f5
mov esi, eax
test edi, edi
je 0x100164cf
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100164e8
lea ecx, [ebp - 0x418]
call fcn.10014b75
mov eax, esi
call fcn.10065780
ret 0x10
Function at 0x10016760
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x10077014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x78], eax
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov esi, edx
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x68]
push eax
push 0x20019
push ebx
push 0x10007a98
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x60], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001693e
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x5c], 4
push eax
push ebx
push ebx
push 0x10007afc
push dword [ebp - 0x68]
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10016939
cmp dword [ebp - 0x60], 0
je 0x10016939
mov ebx, dword [ebp - 0x74]
lea ecx, [ebp - 0x58]
push 8
mov edx, dword [ebx]
call fcn.10016739
movzx edx, word [ebx + 4]
lea ecx, [ebp - 0x46]
push 0x2d
pop edi
push 4
mov word [ebp - 0x48], di
call fcn.10016739
movzx edx, word [ebx + 6]
lea ecx, [ebp - 0x3c]
push 4
mov word [ebp - 0x3e], di
call fcn.10016739
movzx ecx, byte [ebx + 8]
lea edx, [ebp - 0x26]
mov eax, ecx
mov word [ebp - 0x34], di
shr eax, 4
and ecx, 0xf
push 6
mov word [ebp - 0x2a], di
pop edi
mov ax, word [eax*2 + 0x10007a70]
mov word [ebp - 0x32], ax
mov ax, word [ecx*2 + 0x10007a70]
movzx ecx, byte [ebx + 9]
mov word [ebp - 0x30], ax
mov eax, ecx
shr eax, 4
and ecx, 0xf
add ebx, 0xa
mov ax, word [eax*2 + 0x10007a70]
mov word [ebp - 0x2e], ax
mov ax, word [ecx*2 + 0x10007a70]
mov word [ebp - 0x2c], ax
movzx ecx, byte [ebx]
mov eax, ecx
and ecx, 0xf
shr eax, 4
inc ebx
mov ax, word [eax*2 + 0x10007a70]
mov word [edx - 2], ax
mov ax, word [ecx*2 + 0x10007a70]
mov word [edx], ax
lea edx, [edx + 4]
sub edi, 1
jne 0x10016879
xor eax, eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x64]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10016939
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 4
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push 0x10007b08
push dword [ebp - 0x64]
call edi
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 4
push eax
lea eax, [ebp - 0x70]
push eax
push 0
push 0
push 0x10007b14
push dword [ebp - 0x64]
call edi
cmp dword [ebp - 0x60], 1
jne 0x10016934
call fcn.100166ce
mov dword [esi], eax
or eax, edx
mov dword [esi + 4], edx
je 0x10016934
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x6c]
and eax, 0x7fffffff
mov dword [ecx], eax
mov ecx, dword [ebp - 0x7c]
mov al, byte [ebp - 0x70]
mov byte [ecx], al
push dword [ebp - 0x64]
call ebx
push dword [ebp - 0x68]
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10055284
mov esp, ebp
pop ebp
ret 8
Function at 0x100186f3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xc
mov eax, 0x1006c587
call fcn.100657fc
mov edi, edx
mov ebx, ecx
call fcn.10014460
push eax
lea ecx, [ebp - 0x18]
call fcn.100122c3
and dword [ebp - 4], 0
lea edx, [ebp - 0x18]
mov ecx, ebx
call fcn.1001851b
mov esi, eax
test esi, esi
js 0x100187d1
mov byte [ebp - 4], 1
call fcn.10014460
push eax
lea ecx, [ebp - 0x14]
call fcn.100122c3
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
push 0x858
mov ecx, ebx
call fcn.1001787f
test al, al
jne 0x1001875f
mov esi, dword [ebx]
lea ecx, [ebp - 0x14]
call fcn.100122a8
jmp 0x100187d1
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.10011797
push dword [ebp - 0x14]
mov esi, 0x10008f64
push esi
push edi
call fcn.100130a3
add esp, 0xc
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100187b5
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
push 0x859
call fcn.1001787f
test al, al
je 0x10018753
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.10011797
push dword [ebp - 0x14]
push esi
push edi
call fcn.100130a3
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.100122a8
xor esi, esi
jmp 0x100187d1
lea ecx, [ebp - 0x18]
call fcn.100122a8
mov eax, esi
call fcn.1006575a
ret

Function at 0x10018941
Capabilities:
Write file on windows

Disassembly:
push 0xc
mov eax, 0x1006c600
call fcn.10065791
mov esi, ecx
call fcn.10014460
push eax
lea ecx, [ebp - 0x14]
call fcn.100122c3
xor ebx, ebx
lea edx, [ebp - 0x14]
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.10018891
mov esi, eax
test esi, esi
jne 0x100189e5
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100189d0
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push 1
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], 0xa
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100189b2
mov esi, ebx
jmp 0x100189c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100189c7
movzx esi, si
or esi, 0x80070000
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100189e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100189e5
movzx esi, si
or esi, 0x80070000
lea ecx, [ebp - 0x14]
call fcn.100122a8
mov eax, esi
call fcn.1006575a
ret
Function at 0x1001a585
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0x238
mov eax, 0x1006c814
call fcn.100657c5
lea eax, [ebp - 0x228]
xor esi, esi
push eax
push 0x20019
push esi
push 0x10008ff4
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x228], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001a76e
mov eax, esi
mov dword [ebp - 0x234], esi
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x238], 0x104
push ecx
lea ecx, [ebp - 0x21c]
push ecx
push eax
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1001a790
lea eax, [ebp - 0x21c]
push eax
call fcn.1006b5aa
fst qword [ebp - 0x244]
fldz
fucompp
fnstsw ax
pop ecx
test ah, 0x44
jnp 0x1001a755
lea ecx, [ebp - 0x21c]
call fcn.1001a559
push 0x10009030
mov eax, ecx
push 0x104
push eax
call fcn.10059050
add esp, 0xc
mov dword [ebp - 0x224], esi
lea eax, [ebp - 0x224]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001a740
push 0x402
call fcn.100554f8
mov dword [ebp - 0x22c], 0x400
jmp 0x1001a696
push edi
call fcn.100552eb
mov eax, dword [ebp - 0x22c]
add eax, 2
push eax
call fcn.100554f8
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 0x22c]
push eax
push edi
lea eax, [ebp - 0x230]
push eax
push esi
push 0x10009044
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp ebx, 0xea
je 0x1001a680
cmp dword [ebp - 0x224], 0
je 0x1001a6df
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x224], esi
cmp ebx, 2
jne 0x1001a6ed
push edi
call fcn.100552eb
pop ecx
jmp 0x1001a755
test ebx, ebx
jne 0x1001a767
cmp dword [ebp - 0x230], 1
jne 0x1001a767
mov ecx, edi
call fcn.1001a559
push edi
lea ecx, [ebp - 0x23c]
call fcn.1001753f
push eax
lea eax, [ebp - 0x244]
mov dword [ebp - 4], esi
push eax
call fcn.1001ac8d
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x23c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x244]
push eax
call fcn.1001ad71
push edi
call fcn.100552eb
pop ecx
cmp dword [ebp - 0x224], 0
je 0x1001a755
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x234]
inc eax
mov dword [ebp - 0x234], eax
jmp 0x1001a5c9
push edi
call fcn.100552eb
pop ecx
mov esi, 0x89721508
cmp dword [ebp - 0x228], 0
je 0x1001a788
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.1006576f
ret
cmp eax, 0x103
jne 0x1001a76e
mov al, byte [ebp - 0x220]
mov edx, dword [0x100788d8]
mov ecx, dword [0x100788d4]
mov byte [ebp - 0x220], al
lea eax, [ebp - 0x220]
push eax
mov eax, edx
sub eax, ecx
sar eax, 3
push eax
call fcn.1001ae9e
mov eax, dword [0x100788d8]
mov ecx, dword [0x100788d4]
jmp 0x1001a7e2
sub eax, 8
cmp ecx, eax
je 0x1001a773
fld qword [ecx]
fld qword [eax]
fstp qword [ecx]
add ecx, 8
fstp qword [eax]
cmp ecx, eax
jne 0x1001a7d0
jmp 0x1001a773
Function at 0x1001a7e8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x20
mov eax, 0x1006c85c
call fcn.100657fc
mov esi, edx
mov dword [ebp - 0x20], esi
mov ebx, ecx
cmp dword [0x1007892c], 0
jne 0x1001a81b
call fcn.1001a585
test eax, eax
jne 0x1001a8a8
mov dword [0x1007892c], 1
cmp dword [ebp + 8], 0
je 0x1001a8d3
fld qword [0x1000d968]
lea eax, [ebp - 0x24]
push eax
fstp qword [ebp - 0x24]
call fcn.1001ac28
cmp eax, 0xffffffff
jne 0x1001a843
mov eax, 0x89721508
jmp 0x1001a8a8
and dword [ebp + 8], 0
and dword [ebp - 4], 0
push eax
mov byte [ebp - 4], 1
call fcn.1001ac64
push eax
lea ecx, [ebp + 8]
call fcn.1001b381
push dword [esi]
lea ecx, [ebp - 0x18]
call fcn.1001753f
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
push dword [eax]
call fcn.1001b33c
test eax, eax
jns 0x1001a880
push eax
call fcn.10015671
push dword [ebp - 0x18]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebx]
call esi
mov eax, dword [ebp + 8]
push 0
mov dword [ebx], eax
call esi
mov eax, dword [ebx]
neg eax
sbb eax, eax
and eax, 0x7ff8fff2
add eax, 0x8007000e
call fcn.1006575a
ret 4
mov eax, dword [0x100788d8]
mov edx, dword [0x100788d4]
sub eax, edx
sar eax, 3
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
cmp ecx, eax
jae 0x1001a898
fld qword [edx + ecx*8]
lea eax, [ebp - 0x2c]
push eax
fstp qword [ebp - 0x2c]
call fcn.1001ac28
and dword [ebp + 8], 0
mov dword [ebp - 4], 4
push eax
mov byte [ebp - 4], 5
call fcn.1001ac64
push eax
lea ecx, [ebp + 8]
call fcn.1001b381
push dword [esi]
lea ecx, [ebp - 0x1c]
call fcn.1001753f
mov byte [ebp - 4], 6
lea ecx, [ebp + 8]
push dword [eax]
call fcn.1001b33c
test eax, eax
js 0x1001a87a
push dword [ebp - 0x1c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 4], 4
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1001a984
mov eax, dword [ebp - 0x18]
dec eax
cmp eax, dword [ebp - 0x14]
je 0x1001a984
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x14]
mov edx, dword [0x100788d4]
inc ecx
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x20]
jmp 0x1001a8e8
push dword [ebx]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0
mov dword [ebx], esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x1001a898

Function at 0x1001a9b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push 0x20019
push 0
push 0x10009060
push SysReAllocStringLen
mov dword [ebp - 8], 4
mov esi, 0x409
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001aa0f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x100090b8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001aa0f
cmp dword [ebp - 0xc], 4
jne 0x1001aa0f
mov esi, dword [ebp - 0x10]
cmp dword [ebp - 4], 0
je 0x1001aa1e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret