joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005080
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10005125
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push str.btc
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 4
cmp edi, eax
pop edi
jb 0x1000511e
xor eax, eax
push ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], al
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 8], 4
jne 0x1000511e
push str.btc
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1000511e
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.100d0738
add esp, 0x18
ret 4
Function at 0x100053e0
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
sub esp, 0x430
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x42c], eax
push ebx
xor ebx, ebx
push edi
push 0x3ff
lea eax, [esp + 0x39]
push ebx
push eax
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], bl
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bl
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], bl
mov byte [esp + 0x28], 1
mov byte [esp + 0x29], 1
mov byte [esp + 0x2a], 1
mov byte [esp + 0x2b], 1
mov byte [esp + 0x2c], 1
mov byte [esp + 0x2d], 1
mov byte [esp + 0x2e], 1
mov byte [esp + 0x2f], bl
mov byte [esp + 0x30], bl
mov byte [esp + 0x31], bl
mov byte [esp + 0x32], bl
mov byte [esp + 0x33], bl
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], bl
mov byte [esp + 0x36], bl
mov byte [esp + 0x37], bl
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], bl
mov byte [esp + 0x40], bl
call fcn.100d4cc0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x20019
push ebx
push 0x101285e0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000551e
mov ecx, dword [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x10]
push edx
push ebx
lea eax, [esp + 0x1c]
push eax
push ebx
push str.PassWord
push ecx
mov dword [esp + 0x28], ebx
call esi
mov edx, dword [esp + 0x10]
dec edx
cmp edx, 0x3fe
ja 0x1000550e
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push str.PassWord
push eax
call esi
lea edi, [ebx + 1]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
cmp edi, ebx
jne 0x10005541
push 0x400
lea edx, [esp + 0x38]
push ebx
push edx
call fcn.100d4cc0
add esp, 0xc
push str.Qq123456qa.
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov cl, byte [esp + 0x34]
xor eax, eax
cmp cl, bl
je 0x10005566
jmp 0x10005550
mov edx, eax
and edx, 7
xor byte [esp + edx + 0x14], cl
mov cl, byte [esp + eax + 0x35]
lea edx, [esp + edx + 0x14]
inc eax
cmp cl, bl
jne 0x10005550
push str.00__
push 1
lea eax, [esp + 0x1c]
push eax
call fcn.1006a671
mov ecx, dword [esp + 0x434]
pop edi
pop ebx
xor ecx, esp
mov eax, 0x101deb79
call fcn.100d0738
add esp, 0x430
ret
Function at 0x10005870
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov eax, 0x1804
call fcn.100d4920
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x1800], eax
mov eax, dword [esp + 0x1808]
push esi
push edi
push 0x10128660
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x1000594b
push 0
push 0x10
lea eax, [esp + 0x810]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1000594b
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x101286b4
lea ecx, [esp + 0x80c]
push ecx
lea edx, [esp + 0x10]
push 0x101286dc
push edx
call esi
push 0x101286e8
lea eax, [esp + 0x81c]
push eax
lea ecx, [esp + 0x1020]
push 0x101286dc
push ecx
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x20
lea edx, [esp + 8]
push edx
call esi
test eax, eax
je 0x1000594b
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x1000594b
lea ecx, [esp + 0x1008]
push ecx
call esi
test eax, eax
je 0x1000594b
lea edx, [esp + 0x1008]
push edx
call edi
test eax, eax
jne 0x1000594b
mov eax, 1
jmp 0x1000594d
xor eax, eax
mov ecx, dword [esp + 0x1808]
pop edi
pop esi
xor ecx, esp
call fcn.100d0738
add esp, 0x1804
ret 4
Function at 0x10005970
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1518
call fcn.100d4920
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x1514], eax
mov eax, dword [esp + 0x151c]
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push ebp
mov ebx, ecx
push 0x10
lea ecx, [esp + 0x528]
push ecx
push ebp
mov dword [esp + 0x28], eax
mov byte [esp + 0x23], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x10005ba7
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push str.sendBack_RSAkey.ckt
lea edx, [esp + 0x524]
push edx
lea eax, [esp + 0x928]
push 0x10128738
push eax
call esi
push str.secretAES_RSAed_base64ed.ckt
lea ecx, [esp + 0x534]
push ecx
lea edx, [esp + 0xd38]
push 0x10128738
push edx
call esi
add esp, 0x20
call fcn.1006d900
mov esi, eax
mov dword [esp + 0x24], esi
cmp esi, ebp
je 0x10005ba7
lea eax, [esp + 0x920]
push eax
push esi
call fcn.100055a0
test al, al
je 0x10005b9e
lea ecx, [esp + 0xd20]
push 0x10128760
push ecx
call fcn.100d1f9a
add esp, 8
mov dword [esp + 0x20], eax
cmp eax, ebp
je 0x10005b9e
push eax
push 0x400
lea edx, [esp + 0x128]
push 1
push edx
call fcn.100d0bd3
add esp, 0x10
push eax
lea ecx, [esp + 0x18]
lea edi, [esp + 0x1124]
lea edx, [esp + 0x124]
mov dword [esp + 0x18], eax
call fcn.10008be0
mov edx, dword [esp + 0x14]
push 1
push esi
lea eax, [esp + 0x128]
push eax
mov ecx, edi
push ecx
push edx
call fcn.1006d950
add esp, 0x14
cmp eax, 0xffffffff
je 0x10005b9e
lea ecx, [esp + 0x28]
push ecx
lea edx, [eax*8]
push edx
lea eax, [esp + 0x128]
push eax
call fcn.1006c040
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 0xc
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocString
push ebx
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x10005b8d
mov ecx, dword [esp + 0x18]
push ebp
push 0x80
push 2
push ebp
push 1
push 0x40000000
push ecx
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x10005b86
lea edx, [esp + 0x18]
push edx
push edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
push 0x40
mov dword [esp + 0x1c], eax
call ebx
mov ebp, eax
mov eax, dword [esp + 0x14]
push eax
push 0x40
call ebx
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push ebp
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x124]
push eax
lea ecx, [esp + 0x30]
push ecx
push edx
push ebx
push ebp
call fcn.1006c050
mov ecx, dword [esp + 0x2c]
add esp, 0x18
push 0
lea eax, [esp + 0x18]
push eax
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x13], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x20]
push edx
call fcn.100d11ec
mov esi, dword [esp + 0x28]
add esp, 4
push esi
call fcn.1006d7b0
add esp, 4
mov ecx, dword [esp + 0x1524]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100d0738
add esp, 0x1518
ret 4
Function at 0x10005bd0
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
cmp ebp, dword [esp + 0x20]
jbe 0x10005cb3
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push str..id.
push ebx
call edi
mov esi, eax
test esi, esi
je 0x10005cb3
push str..id.
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
push 0x10128780
push esi
call edi
xor edi, edi
cmp eax, edi
je 0x10005cb3
cmp esi, eax
jae 0x10005c47
mov cl, byte [esi]
cmp cl, 0x30
jb 0x10005c2c
cmp cl, 0x39
jbe 0x10005c40
cmp cl, 0x41
jb 0x10005c36
cmp cl, 0x46
jbe 0x10005c40
cmp cl, 0x61
jb 0x10005cb3
cmp cl, 0x66
ja 0x10005cb3
add esi, 2
cmp esi, eax
jb 0x10005c20
sub ebp, dword [esp + 0x20]
push 0x10128764
lea eax, [ebx + ebp*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10005cb3
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10005c97
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], edi
jl 0x10005cb3
jg 0x10005ca5
cmp dword [esp + 0x10], edi
jbe 0x10005cb3
mov eax, 1
pop edi
pop esi
pop ebp
add esp, 0x10
ret 8
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10
ret 8
Function at 0x10005fa0
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
push esi
mov esi, eax
push edi
test esi, esi
je 0x1000601f
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push esi
call edi
test eax, eax
je 0x1000601f
push 0x10128508
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1000601f
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10006004
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xc], 0
jl 0x1000601f
jg 0x10006014
cmp dword [esp + 8], 3
jb 0x1000601f
mov eax, 1
pop edi
pop esi
add esp, 0xc
ret
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret

Function at 0x10006030
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push edi
push 1
lea edx, [esp + 0x1c]
push edx
xor ecx, ecx
xor eax, eax
push ecx
push eax
push esi
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0x1c]
push ecx
push esi
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bl
mov dword [esp + 0x28], ebx
xor ebp, ebp
call edi
test eax, eax
je 0x100060d8
lea esp, [esp]
cmp dword [esp + 0x14], 1
jne 0x100060d8
mov al, byte [esp + 0x10]
cmp al, 0xd
je 0x10006093
cmp al, 0xa
jne 0x100060c3
mov ecx, dword [esp + 0x24]
push 0
lea edx, [esp + 0x18]
push edx
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0x18]
push edx
push 1
lea eax, [esp + 0x1c]
push eax
push esi
call edi
test eax, eax
jne 0x10006080
jmp 0x100060d8
push 1
or eax, 0xffffffff
lea edx, [esp + 0x1c]
push edx
or ecx, eax
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0x1c]
push ecx
push esi
call edi
test eax, eax
je 0x1000611e
lea ecx, [ecx]
cmp dword [esp + 0x14], 1
jne 0x1000611e
mov al, byte [esp + 0x10]
cmp al, 0xd
je 0x1000611e
cmp al, 0xa
je 0x1000611e
push 0
lea edx, [esp + 0x18]
push edx
push 1
lea eax, [esp + 0x1c]
push eax
add ebp, 1
push esi
adc ebx, 0
call edi
test eax, eax
jne 0x100060f0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
pop edi
mov eax, ebp
pop ebp
mov edx, ebx
pop ebx
add esp, 0x14
ret
Function at 0x100066a0
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebp
call edi
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x100067a0
push ebp
call edi
lea ecx, [eax + eax + 2]
shr ecx, 1
je 0x100066e7
cmp ecx, 0x7fffffff
ja 0x100066e7
mov eax, ebp
mov edx, esi
call fcn.10003cf0
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push esi
call edi
test eax, eax
je 0x10006799
push str..cryptoNar
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push eax
call ebx
test eax, eax
jne 0x10006799
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push esi
call edi
test eax, eax
je 0x10006799
push str..partially
push esi
call edi
push eax
call ebx
test eax, eax
je 0x1000673d
push str..fully
push esi
call edi
push eax
call ebx
test eax, eax
jne 0x10006799
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10006778
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], ebx
jl 0x10006799
jg 0x10006786
cmp dword [esp + 0x10], ebx
jbe 0x10006799
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret 4
Function at 0x100067b0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x100f2478
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10139d00]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [esp + 0x50]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
xor bl, bl
push eax
mov dword [esp + 0x38], ecx
mov byte [esp + 0x33], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10006905
push 0xa00002
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x100068ff
push 0
lea edx, [esp + 0x1c]
push edx
push 0xa00000
push ebx
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0
call ebp
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.100cf8cb
add esp, 4
push 0
push 0
push esi
mov edi, eax
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
call ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push str.Your_ID:
push edi
call ebp
test eax, eax
je 0x100068ef
push str.Your_ID:
push edi
call ebp
push str.Your_ID:
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add esi, eax
push 0x101289a0
push esi
call ebp
test eax, eax
je 0x100068ef
push 0x101289a0
push esi
call ebp
push esi
lea ecx, [esp + 0x24]
mov byte [eax], 0
call fcn.10002670
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x54], 0
call fcn.10002a30
lea ecx, [esp + 0x20]
mov byte [esp + 0x17], 1
call fcn.10002cc0
push edi
call fcn.100d072d
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, byte [esp + 0x17]
jmp 0x10006907
mov al, bl
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.100d0738
add esp, 0x38
ret 4
Function at 0x100073f0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push esi
mov esi, ecx
push str..CRYPTOPOKEMON
xor ecx, ecx
push esi
mov word [eax], cx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10007479
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000744f
lea edx, [esp + 8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xc]
test ecx, ecx
jl 0x10007479
mov eax, dword [esp + 8]
jg 0x10007461
test eax, eax
jbe 0x10007479
push 0
push 0x10
push ecx
push eax
call fcn.100d7510
or eax, edx
jne 0x10007479
mov al, 1
pop esi
add esp, 0xc
ret 4
xor al, al
pop esi
add esp, 0xc
ret 4
Function at 0x100077b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov edx, dword [0x101d32e8]
push ebx
imul edx, edx, 0x9e3779b9
push ebp
push esi
mov ebx, eax
push edi
mov edi, ecx
mov eax, dword [edi]
mov ecx, eax
mov esi, eax
shr eax, 8
and esi, 0xff00
shl ecx, 0x10
or ecx, esi
mov esi, dword [edi + 4]
and eax, 0xff00
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 3]
or ecx, eax
mov eax, esi
mov ebp, esi
shl eax, 0x10
and ebp, 0xff00
or eax, ebp
shr esi, 8
shl eax, 8
and esi, 0xff00
or eax, esi
movzx esi, byte [edi + 7]
or eax, esi
test edx, edx
je 0x100078a6
mov edi, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x10], edi
mov edi, dword [ebx + 4]
mov ebx, dword [ebx]
mov dword [esp + 0x14], ebx
lea esp, [esp]
mov ebx, ecx
shl ebx, 4
add ebx, dword [esp + 0x10]
mov ebp, ecx
shr ebp, 5
add ebp, esi
xor ebx, ebp
lea ebp, [ecx + edx]
xor ebx, ebp
sub eax, ebx
mov ebx, eax
shl ebx, 4
add ebx, dword [esp + 0x14]
mov ebp, eax
shr ebp, 5
add ebp, edi
xor ebx, ebp
lea ebp, [eax + edx]
xor ebx, ebp
sub ecx, ebx
mov ebx, ecx
shl ebx, 4
add ebx, dword [esp + 0x10]
mov ebp, ecx
shr ebp, 5
add ebp, esi
xor ebx, ebp
lea ebp, [edx + ecx + 0x61c88647]
xor ebx, ebp
sub eax, ebx
mov ebx, eax
shl ebx, 4
add ebx, dword [esp + 0x14]
mov ebp, eax
shr ebp, 5
add ebp, edi
xor ebx, ebp
lea ebp, [edx + eax + 0x61c88647]
xor ebx, ebp
add edx, 0xc3910c8e
sub ecx, ebx
test edx, edx
jne 0x10007830
mov edx, ecx
and edx, 0xff0000
mov esi, ecx
shr esi, 0x10
or edx, esi
mov esi, ecx
and esi, 0xff00
shl ecx, 0x10
or esi, ecx
mov ecx, dword [esp + 0x1c]
shl esi, 8
shr edx, 8
or edx, esi
mov dword [ecx], edx
mov edx, eax
mov esi, eax
shr esi, 0x10
and edx, 0xff0000
or edx, esi
mov esi, eax
and esi, 0xff00
shl eax, 0x10
or esi, eax
shl esi, 8
pop edi
shr edx, 8
or edx, esi
pop esi
pop ebp
mov dword [ecx + 4], edx
pop ebx
add esp, 8
ret 4
Function at 0x10008590
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100085a7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100085d8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x100085d4
cmp esi, eax
jae 0x100085d8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x100085c4
cmp esi, eax
jb 0x100085de
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x100085f0
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov esi, eax
push esi
call edi
test eax, eax
je 0x10008669
push str..eoeo
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10008669
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10008652
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xc], edi
jl 0x10008669
jg 0x10008661
cmp dword [esp + 8], 0x10
jb 0x10008669
mov al, 1
pop edi
pop esi
add esp, 0xc
ret
pop edi
xor al, al
pop esi
add esp, 0xc
ret
Function at 0x10009460
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push ebp
push esi
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
test esi, esi
je 0x10009503
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
push str.._fileslocker_pm.me_
mov ebp, eax
call edi
cmp ebp, eax
jle 0x10009503
push str.._fileslocker_pm.me_
push esi
call edi
push str.._fileslocker_pm.me_
mov ebp, eax
call edi
sub ebp, eax
lea eax, [esi + ebp*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10009503
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100094e9
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], edi
jl 0x10009503
jg 0x100094f7
cmp dword [esp + 0x10], edi
jbe 0x10009503
mov eax, 1
pop edi
pop esi
pop ebp
add esp, 0x10
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10
ret
Function at 0x10009f70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101e0668]
mov ecx, dword [0x101e066c]
mov edx, dword [0x101e0664]
push ebx
mov dword [ebp - 0x14], eax
mov eax, dword [0x101e0660]
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
push edi
push esi
push ebx
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov ebx, 0x9e3779b9
imul ebx, dword [ebp - 0x18]
bswap eax
bswap edx
mov ecx, eax
shl ecx, 4
mov edi, eax
lea esi, [ebx + eax]
add ecx, dword [ebp - 0x14]
shr edi, 5
xor ecx, esi
add edi, dword [ebp - 0x10]
xor ecx, edi
sub edx, ecx
mov ecx, edx
shl ecx, 4
mov edi, edx
lea esi, [ebx + edx]
add ecx, dword [ebp - 0xc]
shr edi, 5
xor ecx, esi
add edi, dword [ebp - 8]
xor ecx, edi
sub eax, ecx
sub ebx, 0x9e3779b9
mov ecx, eax
shl ecx, 4
mov edi, eax
lea esi, [ebx + eax]
add ecx, dword [ebp - 0x14]
shr edi, 5
xor ecx, esi
add edi, dword [ebp - 0x10]
xor ecx, edi
sub edx, ecx
mov ecx, edx
shl ecx, 4
mov edi, edx
lea esi, [ebx + edx]
add ecx, dword [ebp - 0xc]
shr edi, 5
xor ecx, esi
add edi, dword [ebp - 8]
xor ecx, edi
sub eax, ecx
sub ebx, 0x9e3779b9
jne 0x10009fc1
bswap eax
bswap edx
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], edx
pop ebx
pop esi
pop edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8