joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e758c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x14
mov eax, 0x10125a7d
call fcn.10004395
mov edi, ecx
mov ebx, dword [ebp + 0xc]
and dword [ebp - 4], 0
call fcn.10004f03
and dword [ebp - 0x18], 0
mov esi, eax
mov dword [ebp - 0x1c], esi
push 0xa
push ebx
mov byte [ebp - 4], 1
call fcn.1003a42b
test eax, eax
movzx eax, ax
jne 0x100e75c5
mov eax, dword [ebp - 0x18]
push eax
movzx eax, word [ebp + 8]
push eax
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x100e75e7
push 0x80070057
push 0x1e61a007
call fcn.100ba828
push ebx
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [edi + 0x1c], eax
mov esi, 0x80004005
test eax, eax
jne 0x100e7606
push esi
push 0x1e61a006
call fcn.100ba828
push dword [edi + 0x1c]
call dword [sym.imp.kernel32.dll_LockResource]
mov dword [edi + 0x20], eax
test eax, eax
jne 0x100e7621
push esi
push 0x1e61a005
call fcn.100ba828
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [edi + 0x24], eax
test eax, eax
jne 0x100e763d
push esi
push 0x1e61a004
call fcn.100ba828
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.100050ed
call fcn.100049a7
ret 8

Function at 0x100e93ab
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x414
mov eax, 0x10121369
call fcn.10003d4a
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x420]
push 0x200
call fcn.1003a42b
xor eax, eax
mov word [ebp - 0x40c], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x420]
push eax
push esi
call fcn.100a9586
lea eax, [ebp - 0x420]
push eax
call fcn.1003a42b
mov edx, 0x104
cmp eax, edx
jbe 0x100e941d
mov eax, dword [ebp - 0x420]
xor ecx, ecx
mov byte [ebp - 0x418], 1
push edx
mov word [eax + 0x208], cx
lea ecx, [ebp - 0x420]
call fcn.1003a42b
push dword [ebp - 0x420]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea ecx, [ebp - 0x420]
setne bl
call fcn.10006e62
mov al, bl
call fcn.1000401a
ret 4
Function at 0x100ea3b5
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x238
mov eax, 0x101261c1
call fcn.10003d4a
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x224], ebx
push eax
push 0x10132b4c
mov esi, str._s_s
mov byte [ebp - 4], 1
lea eax, [ebp - 0x224]
push esi
push eax
call fcn.1003a42b
add esp, 0x10
lea ecx, [ebp - 0x240]
push 0x20019
push dword [ebp - 0x224]
push SysReAllocString
call fcn.1003a42b
test eax, eax
jne 0x100ea539
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push str.Application
push dword [ebp - 0x240]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x100ea539
lea eax, [ebp - 0x218]
push eax
call fcn.1003a42b
test eax, eax
je 0x100ea539
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x21c]
call fcn.1003a42b
push dword [ebp - 0x21c]
lea eax, [ebp - 0x220]
push str.Applications
push esi
push eax
call fcn.1003a42b
add esp, 0x10
lea ecx, [ebp - 0x234]
push 0x20019
push dword [ebp - 0x220]
push SysReAllocString
call fcn.1003a42b
test eax, eax
jne 0x100ea50a
mov ecx, dword [ebp - 0x244]
mov esi, ebx
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
mov bl, 1
mov dword [ebp - 0x234], esi
mov dword [ecx], eax
jmp 0x100ea510
mov esi, dword [ebp - 0x234]
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 5
call fcn.100050ed
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 6
call fcn.100050ed
test esi, esi
je 0x100ea539
push esi
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 7
call fcn.100050ed
cmp dword [ebp - 0x240], 0
je 0x100ea55d
push dword [ebp - 0x240]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov al, bl
call fcn.1000401a
ret 8
Function at 0x100ea6c4
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x224
mov eax, 0x10126253
call fcn.10003d4a
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
mov esi, ebx
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x220], ebx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
push ecx
push eax
call fcn.100ea803
test al, al
je 0x100ea726
push edi
push dword [ebp - 0x220]
call fcn.100ea567
mov bl, al
jmp 0x100ea7df
push 0x20019
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x230]
push SysReAllocString
call fcn.1003a42b
mov esi, dword [ebp - 0x230]
test eax, eax
jne 0x100ea7df
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push dword [0x1019cd50]
push esi
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x100ea7c5
lea eax, [ebp - 0x218]
push eax
call fcn.1003a42b
test eax, eax
je 0x100ea7c5
mov dword [ebp - 0x21c], ebx
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x21c]
call fcn.1003a42b
push edi
push dword [ebp - 0x21c]
call fcn.100ea567
mov bl, al
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 3
call fcn.100050ed
jmp 0x100ea7df
mov eax, esi
mov dword [ebp - 0x22c], ebx
mov esi, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x230], esi
mov bl, 1
mov dword [edi], eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 4
call fcn.100050ed
test esi, esi
je 0x100ea7f9
push esi
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov al, bl
call fcn.1000401a
ret 8

Function at 0x100ea803
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x220
mov eax, 0x10126291
call fcn.10003d4a
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x21c], ebx
push eax
push 0x10132b24
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 1
push str._s_s
push eax
call fcn.1003a42b
add esp, 0x10
lea ecx, [ebp - 0x22c]
push 0x20019
push dword [ebp - 0x21c]
push SysReAllocString
call fcn.1003a42b
test eax, eax
jne 0x100ea8c2
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push dword [0x1019cd50]
push dword [ebp - 0x22c]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x100ea8c2
lea eax, [ebp - 0x218]
push eax
call fcn.1003a42b
test eax, eax
je 0x100ea8c2
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
mov bl, 1
call fcn.1003a42b
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.100050ed
cmp dword [ebp - 0x22c], 0
je 0x100ea8e6
push dword [ebp - 0x22c]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov al, bl
call fcn.1000401a
ret 8

Function at 0x100ebf91
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x101a55c4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
movzx ecx, ax
cmp ecx, 0x20
jne 0x100ebfab
mov eax, 0x2e6e6e6e
ret
cmp ecx, 2
jne 0x100ebfb6
mov eax, 0x2e746a6b
ret
xor eax, eax
cmp ecx, 5
setne al
add eax, 0x2e746a6c
ret
Function at 0x100ebfc4
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x101a55c4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
movzx ecx, ax
cmp ecx, 0x91
jne 0x100ebfe1
mov eax, 0x2e6e6e6d
ret
cmp ecx, 0x20
jne 0x100ebfec
mov eax, 0x2e746a6e
ret
cmp ecx, 2
jne 0x100ebff7
mov eax, 0x2e746a6f
ret
xor eax, eax
cmp ecx, 5
setne al
add eax, 0x2e746a70
ret

Function at 0x100ec48c
Capabilities:
Get file size

Disassembly:
push 0x428
mov eax, 0x10126549
call fcn.10003d4a
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x424]
mov esi, dword [ebp + 8]
xor edi, edi
push 0x200
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x14], edi
call fcn.1003a42b
xor eax, eax
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x424]
mov dword [ebp - 4], edi
push eax
push esi
call fcn.100a9586
push edi
push edi
push 3
push edi
push 3
push SysReAllocString
push dword [ebp - 0x424]
call dword [sym.imp.kernel32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100ec512
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.kernel32.dll_GetFileSize]
push ebx
mov esi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x428]
mov dword [eax], esi
jmp 0x100ec558
call fcn.100fbe8a
lea ecx, [ebp - 0x424]
call fcn.100bf951
push dword [ebp - 0x424]
lea eax, [ebp - 0x434]
push edi
push 0xffffffffffffffff
push 0x2c8e
push 1
push 0x10169a80
push 0x1e61979a
push eax
call fcn.1003a42b
add esp, 0x20
lea ecx, [ebp - 0x434]
mov edi, dword [eax]
call fcn.1003a42b
lea ecx, [ebp - 0x424]
call fcn.10006e62
mov eax, edi
call fcn.1000401a
ret 8

Function at 0x100f3e69
Capabilities:
Get common file path

Disassembly:
push 0x210
mov eax, 0x10126e9e
call fcn.10003d4a
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x21c], edi
mov ebx, 0x208
mov dword [ebp - 4], edi
push ebx
lea eax, [ebp - 0x218]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push dword [ebp + 0xc]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x100f3ec5
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.1003a42b
push dword [ebp - 0x21c]
call fcn.1003a42b
test al, al
je 0x100f3f09
cmp byte [ebp + 0x10], 0
je 0x100f3f09
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x21c]
cmp eax, ebx
jae 0x100f3eff
lea eax, [ebp - 0x218]
push eax
jmp 0x100f3f04
push 0x10132a90
call fcn.1003a42b
lea eax, [ebp - 0x21c]
push eax
call fcn.1003a42b
mov ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x21c], edi
mov dword [esi], ecx
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 1
call fcn.100050ed
mov eax, esi
call fcn.1000401a
ret 0xc
Function at 0x100fbeac
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x260
mov eax, 0x1012749a
call fcn.10003d4a
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x26c]
xor ebx, ebx
push ebx
push 0x10169a70
push 0x10169a60
push eax
call fcn.100aa450
mov eax, dword [eax]
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], ebx
mov esi, ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push SysReAllocString
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
test eax, eax
jne 0x100fc05f
cmp word [ebp - 0x218], 0x2e
jne 0x100fc059
lea eax, [ebp - 0x218]
push eax
push 0x1013f268
call fcn.1003a42b
test eax, eax
je 0x100fc059
push ebx
lea eax, [ebp - 0x218]
push eax
push SysReAllocString
lea ecx, [ebp - 0x248]
call fcn.1000500d
push 0x20019
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
call fcn.1003a42b
test eax, eax
jne 0x100fc04b
mov dword [ebp - 0x21c], ebx
push ebx
push ebx
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x248]
call fcn.1003a42b
test eax, eax
jne 0x100fc03c
push ebx
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x264]
push dword [ebp - 0x244]
call fcn.1000500d
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x224]
call fcn.1003a42b
push 0x20019
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 4
call fcn.1003a42b
test eax, eax
jne 0x100fbfea
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x264]
jmp 0x100fc000
push dword [ebp - 0x21c]
call fcn.1003a42b
test al, al
jne 0x100fc022
lea eax, [ebp - 0x248]
push eax
push eax
push dword [ebp - 0x224]
mov eax, dword [ebp - 0x220]
push ecx
mov ecx, esp
mov dword [ebp - 0x268], ecx
mov dword [ecx], eax
call fcn.100c1f2c
call fcn.100fc122
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 5
call fcn.100050ed
lea ecx, [ebp - 0x264]
call fcn.1003a42b
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 6
call fcn.100050ed
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], bl
call fcn.1003a42b
inc esi
jmp 0x100fbee4
push dword [ebp - 0x220]
lea ecx, [ebp - 0x228]
push 0x10169a60
call fcn.1003a42b
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x228], ebx
mov dword [edi], eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 7
call fcn.100935da
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 8
call fcn.100935da
call fcn.1000401a
ret 4
Function at 0x101046fe
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x220
mov eax, 0x10128749
call fcn.10003d4a
mov dword [ebp - 0x220], ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
cmp byte [ebp + 0x10], bl
je 0x10104773
push ebx
push ebx
push ebx
push ebx
push 0x100
lea eax, [ebp - 0x218]
push eax
push 3
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
xor eax, eax
add esp, 0x24
cmp ax, word [ebp - 0x18]
jne 0x10104751
cmp ax, word [ebp - 0x218]
je 0x10104773
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10104773
test al, 0x10
je 0x10104773
mov ecx, dword [ebp - 0x220]
push edi
push esi
call fcn.100dfa45
jmp 0x10104894
mov dword [ebp - 0x21c], ebx
lea eax, [ebp - 0x228]
mov dword [ebp - 4], ebx
push eax
push 0x5c
push esi
call fcn.1003a42b
test al, al
jne 0x101047b6
lea eax, [ebp - 0x228]
push eax
push 0x2f
push esi
call fcn.1003a42b
test al, al
jne 0x101047b6
push esi
lea ecx, [ebp - 0x21c]
call fcn.1003a42b
mov esi, dword [ebp - 0x21c]
jmp 0x101047e5
push esi
call fcn.1003a42b
or ecx, 0xffffffff
sub ecx, dword [ebp - 0x228]
add eax, ecx
push eax
push esi
lea eax, [ebp - 0x18]
push eax
call fcn.1003a42b
lea ecx, [ebp - 0x21c]
mov esi, dword [eax]
call fcn.100050ed
mov dword [ebp - 0x21c], esi
lea eax, [ebp - 0x224]
push eax
push esi
call fcn.1003a42b
test al, al
jne 0x101047fd
push 0x40
jmp 0x1010487f
test edi, edi
je 0x10104880
mov ecx, edi
call fcn.100c8456
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.1003a42b
cmp word [eax], bx
je 0x10104880
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x22c]
mov ecx, edi
push eax
call fcn.1003a42b
mov eax, dword [eax]
mov dword [ebp - 0x220], eax
push dword [ebp - 0x21c]
mov ecx, esi
mov byte [ebp - 4], 2
push eax
call fcn.1003a42b
test al, al
jne 0x1010486e
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 5
call fcn.100050ed
lea eax, [ebp - 0x14]
mov byte [ebp - 4], bl
push eax
mov ecx, edi
call fcn.1003a42b
cmp word [eax], bx
jne 0x1010481e
jmp 0x10104880
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.100050ed
push 4
pop ebx
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 6
call fcn.100050ed
mov eax, ebx
call fcn.1000401a
ret 0xc
Function at 0x10106270
Capabilities:
Get file size

Disassembly:
push 0x18
mov eax, 0x101289cb
call fcn.10004395
mov edi, ecx
mov eax, dword [ebp + 0x14]
lea ecx, [edi + 0x50]
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], ebx
call fcn.1003a42b
push esi
mov dword [edi + 0x48], 4
mov dword [edi + 0x4c], 2
call fcn.1003a42b
test al, al
je 0x10106329
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x101062ce
cmp esi, eax
jne 0x101062ce
push 0x80070057
push 0x1e61a050
call fcn.100ba828
push ebx
push str.GrvMap
lea eax, [ebp - 0x20]
push eax
call fcn.100b3c65
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
push ebx
push 0x4000000
push 2
push ebx
push 1
push 0xc0000000
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [edi + 0x44], eax
cmp eax, 0xffffffff
jne 0x1010630f
push 0x1e61a04f
call fcn.100ba7d4
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.100050ed
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x44]
mov byte [ebp - 4], bl
jmp 0x101063ee
mov eax, dword [ebp + 0x18]
mov esi, ebx
sub eax, 1
je 0x1010635c
sub eax, 1
je 0x10106355
sub eax, 1
je 0x1010634e
push 0x80004001
push 0x1e61a04e
call fcn.100ba828
jmp 0x1010636f
mov esi, 0xc0000000
jmp 0x1010636f
mov esi, 0x40000000
jmp 0x1010636f
mov esi, SysReAllocString
mov dword [edi + 0x48], 2
mov dword [edi + 0x4c], 4
mov eax, ebx
mov dword [ebp - 0x1c], ebx
lea ecx, [edi + 0x44]
cmp eax, 0xc
jge 0x101063e5
push ebx
push 0x80
push 4
push ebx
push 1
push esi
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [edi + 0x44], eax
cmp eax, 0xffffffff
jne 0x101063e2
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x20
jne 0x101063aa
cmp dword [ebp - 0x1c], 0xb
jne 0x101063b5
push eax
push 0x1e61a04d
call fcn.100ba8ab
push 0x1e61a04c
push str.___Sharing_violation_creating_memory_mapped_file_store_file._
push 0x1e6
push str.groovemiscMemoryMappedFileStore.cpp
call fcn.1003a42b
push 0xfa
call dword [sym.imp.kernel32.dll_Sleep]
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x10106374
lea ecx, [edi + 0x44]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x10106405
cmp esi, eax
jne 0x10106405
push ebx
push dword [ecx]
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
mov esi, ebx
push esi
push eax
mov ecx, edi
call fcn.1003a42b
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], esi
call fcn.100049a7
ret 0x14
Function at 0x10005bcf
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x3c4
mov eax, 0x1003132a
call fcn.10009696
mov edi, ecx
cmp dword [edi + 0x20], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x3cc], eax
je 0x10005d61
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 0x3bc], 7
mov dword [ebp - 0x3b8], 1
jb 0x10005c14
mov eax, dword [esi]
lea ecx, [ebp - 0x3b8]
xor ebx, ebx
push ecx
push ebx
lea ecx, [ebp - 0x3bc]
push ecx
push ebx
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
cmp ecx, 2
je 0x10005d57
cmp dword [ebp - 0x3bc], 7
jne 0x10005d57
test ecx, ecx
je 0x10005c64
push esi
lea eax, [edi + 8]
push eax
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x3b4]
call fcn.10006bf6
jmp 0x10005d6e
mov eax, dword [ebp - 0x3b8]
add eax, 2
mov dword [ebp - 0x3c8], ebx
mov dword [ebp - 0x3b8], eax
mov dword [ebp - 0x3c4], ebx
mov dword [ebp - 0x3c0], ebx
lea ecx, [ebp - 0x3c8]
mov dword [ebp - 4], ebx
push ecx
push eax
call fcn.10006bf6
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x3c4]
mov ecx, dword [ebp - 0x3c8]
sub eax, ecx
push 0
pop eax
cmove ecx, eax
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10005cba
mov eax, dword [esi]
lea edx, [ebp - 0x3b8]
push edx
push ecx
lea ecx, [ebp - 0x3bc]
push ecx
push ebx
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test ecx, ecx
jne 0x10005c4c
mov edx, dword [ebp - 0x3c4]
mov ecx, dword [ebp - 0x3c8]
sub edx, ecx
mov esi, dword [ebp - 0x3cc]
xor eax, eax
test edx, edx
cmove ecx, eax
lea eax, [ecx + ebx*2]
push eax
lea ecx, [ebp - 0x28]
call fcn.10006bf6
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.10006bf6
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
inc eax
mov byte [ebp - 4], 1
add ebx, eax
call fcn.100023a0
mov edx, dword [ebp - 0x3c4]
mov ecx, dword [ebp - 0x3c8]
sub edx, ecx
push 0
mov eax, ecx
pop edi
cmove eax, edi
cmp byte [eax + ebx*2], 0
jne 0x10005cf2
test ecx, ecx
je 0x10005d53
mov edx, dword [ebp - 0x3c0]
sub edx, ecx
call fcn.10002962
mov al, 1
jmp 0x10005d59
xor al, al
call fcn.10009655
ret 8
push ecx
push ecx
lea ecx, [ebp - 0x3b4]
call fcn.10005db1
push 0x100437bc
lea eax, [ebp - 0x3b4]
push eax
call fcn.10006bf6
int3

Function at 0x100063cd
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x10041bf0
call fcn.10009a30
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.kernel32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x10006443
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x10006443
mov esi, dword [edx + ecx + 0xd8]
lea eax, [ecx + esi]
cmp edi, eax
jb 0x10006443
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x10006443
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x1000644c
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006641
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov edx, dword [0x10047b00]
push ebx
push esi
mov esi, ecx
mov ebx, 0x10000
cmp esi, 0x7ff80000
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
mov eax, dword [0x10047af4]
test edx, edx
jne 0x10006682
test eax, eax
je 0x10006695
mov edx, eax
mov dword [0x10047b00], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x10006695
cmp ecx, ebx
jb 0x10006695
cmp ecx, edi
jbe 0x10006779
mov edx, eax
test eax, eax
jmp 0x100066b7
test edx, edx
je 0x100066b2
mov eax, dword [edx + 8]
test eax, eax
je 0x100066b2
cmp eax, ebx
jb 0x100066b2
cmp eax, edi
jbe 0x10006779
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x10047b00], edx
jne 0x1000669b
and esi, 0xffff0000
cmp esi, 0x40000000
jbe 0x100066f9
lea ecx, [esi - 0x40000000]
mov edx, esi
call fcn.10006bf6
mov edx, eax
test edx, edx
jne 0x1000673f
lea edx, [esi - 0x40000000]
mov ecx, ebx
call fcn.10006bf6
mov edx, eax
test edx, edx
jne 0x1000673f
cmp esi, 0x40000000
jae 0x10006721
lea edx, [esi + 0x40000000]
mov ecx, esi
call fcn.10006bf6
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, edi
lea ecx, [esi + 0x40000000]
call fcn.10006bf6
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, esi
mov ecx, ebx
call fcn.10006bf6
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, edi
mov ecx, esi
call fcn.10006bf6
mov edx, eax
test edx, edx
je 0x1000679e
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x10047af4]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x10047b00], edx
mov dword [0x10047af4], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x10006769
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x1000679e
cmp esi, edi
ja 0x1000679e
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.1000aff4
add esp, 0xc
mov eax, esi
jmp 0x100067a0
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x10006bf6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x10006c05
pop dword [ebp - 0x4c]
mov eax, 0x5e8e10c6
add eax, 0xb1725b3f
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x40af2
push 0
mov eax, 0x16479c8d
sub eax, 0x6446c39
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x86f937a0
sub ecx, 0x86f8fcab
mov ebx, eax
mov esi, 0xe347b785
sub esi, 0xd3430185
add esi, dword [ebp - 0x4c]
mov edi, 0xa052a4d9
add dword [ebp - 0x28], esi
mov edx, dword [esi]
xor dword [ebp - 0x24], 0x4adc0bd0
sub edx, edi
xor dword [ebp - 0x10], edx
mov dword [ebx], edx
add ebx, 4
add esi, 0xe248bf2a
sub esi, 0xe248bf26
loop 0x10006c5e
add eax, 0x670873e6
sub eax, 0x6707953f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xd01e1b61
sub ecx, 0xc01e1b61
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret