joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422ffc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x435130]
push ebx
push esi
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.00422fe5
cmp dword [esi], 0
mov ebx, eax
je 0x42305c
push edi
mov edi, dword [ebp + 0x18]
push 0x40
lea eax, [ebp - 0x44]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x44]
push eax
call fcn.0040f6af
add esp, 0xc
cmp eax, 1
pop edi
je 0x423079
push 0xffffffffffffffff
push 0
push dword [ebp + 0x14]
call fcn.00422e6c
mov ecx, esi
call fcn.00422f0d
jmp 0x423079
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x44]
push eax
call fcn.0040e3a7
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.00422266
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040edec
leave
ret

Function at 0x4230b4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x435130]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x423101
push dword [ebp + 8]
call fcn.00425a87
mov esi, eax
test esi, esi
je 0x423129
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x423129
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x42e128
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0040edec
leave
ret 0xc

Function at 0x424739
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x435130]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x424797
push 0x42a5cc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0040f658
add esp, 0x10
cmp eax, 0xffffffff
je 0x4247ab
cmp eax, esi
jae 0x4247ab
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x4247ad
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x424762
jmp 0x4247ae
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.0040edec
leave
ret
Function at 0x4247ce
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x435130]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x424870
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x424972
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x424920
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocStringLen
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x424973
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x424915
cmp dword [ebp - 0x24], 1
jne 0x424915
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x42a5dc
push eax
call fcn.0040f6af
add esp, 0xc
cmp eax, 1
jne 0x424915
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x424973
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x424973
lea ecx, [ebp - 0x18]
push ecx
push 0x4247b8
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x424973
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x424999
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.00424739
cmp eax, ebx
pop ecx
pop ecx
jne 0x42499b
inc edi
cmp edi, esi
jl 0x424982
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0040edec
leave
ret 4
Function at 0x4249aa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x4346c8
je 0x424a66
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x424a4e
mov esi, dword [ebx + 4]
jmp 0x424a48
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x424a38
cmp dword [ebp - 0xc], 4
jne 0x424a38
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x424a30
or dword [eax + 0x9c], ecx
jmp 0x424a38
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x4249fc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x4249df
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x424ebc
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x427d1d
call fcn.0040ed9c
sub esp, 0x11c
mov eax, dword [0x435130]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x424fb5
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x424f89
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.004061a3
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.00424ebc
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00404500
test bl, bl
jne 0x424f89
or dword [ebp - 4], 0xffffffff
jmp 0x424efa
cmp esi, 0x103
je 0x424f99
cmp esi, 0x3f2
jne 0x424fa9
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.0040edec
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x425499
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x4254ce
cmp edi, dword [esi + 0xc]
jge 0x4254ce
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4254ce
cmp edi, dword [eax + 8]
jge 0x4254ce
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x4254d0
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x4255d4
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x425608
jmp fcn.0041a4e7
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x425679
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x425772
cmp eax, dword [edi + 0xc]
jge 0x425772
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x4256ca
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x42575b
cmp dword [ebp + 0xc], ebx
je 0x42575b
jmp 0x4256f4
push 0x10
call fcn.00425365
cmp eax, ebx
je 0x4256e0
mov ecx, eax
call fcn.004255cb
mov esi, eax
jmp 0x4256e2
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x42570b
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x42571b
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x42572d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0041a4e7
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.0040e870
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x42576d
cmp ecx, dword [esi + 8]
jge 0x42576d
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x425773
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x425831
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42585f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42587d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042579b
jmp 0x42587d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42587d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042579b
test edi, edi
mov eax, edi
jne 0x425867
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x437ef0]
test ecx, ecx
je 0x425930
jmp 0x425830
ret 8
Function at 0x407aab
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x44a804], 2
push esi
push edi
mov edi, edx
mov esi, ecx
jl 0x407abf
call fcn.0040673f
call fcn.004080aa
xor edx, edx
mov ecx, dword [esi + 0xf4]
mov eax, dword [edx + 0x442330]
mov dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x407ac6
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov eax, dword [esi + 0xf4]
xor dword [eax + 8], edi
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0xc]
or eax, 0x2000
shl eax, 0x10
xor dword [ecx + 0xc], eax
pop edi
pop esi
ret 4
Function at 0x408d69
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, edx
test esi, esi
je 0x408d8d
movzx edx, byte [edi]
movzx eax, cl
xor edx, eax
shr ecx, 8
xor ecx, dword [edx*4 + 0x44b430]
inc edi
sub esi, 1
jne 0x408d75
pop edi
mov eax, ecx
pop esi
ret 4
Function at 0x40907a
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x1e0
mov eax, dword [0x449020]
xor eax, esp
mov dword [esp + 0x1dc], eax
push ebx
mov eax, ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x1e8]
mov ebx, edx
mov edx, dword [esp + 0x1f8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x1f0]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1fc]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x200]
mov dword [esp + 8], edx
mov dword [esp + 0x14], ecx
push ebp
push esi
push edi
mov edi, dword [esp + 0x200]
mov dword [esp + 0x24], edi
cmp ebx, 0x40
jbe 0x40911a
lea ecx, [esp + 0x100]
call fcn.00415c23
push ebx
mov edx, eax
call fcn.00415e24
lea edx, [esp + 0x1ac]
lea ecx, [esp + 0x100]
call fcn.00415e8d
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1ac]
push 0x20
mov dword [esp + 0x20], eax
pop ebx
xor ebp, ebp
test edi, edi
je 0x409136
cmp byte [edx], 0
je 0x409136
mov esi, edi
lea edi, [esp + 0x30]
push 0x1a
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x24]
jmp 0x40919a
mov edx, ebp
test ebx, ebx
je 0x40915c
mov esi, eax
lea eax, [esp + 0x168]
sub esi, eax
lea ecx, [esp + 0x168]
add ecx, edx
mov al, byte [esi + ecx]
xor al, 0x36
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x409147
cmp ebx, 0x40
jae 0x40917b
push 0x40
pop eax
sub eax, ebx
lea ecx, [esp + 0x168]
push eax
add ecx, ebx
push 0x36
push ecx
call fcn.00424db0
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.00415c23
push 0x40
lea edx, [esp + 0x16c]
call fcn.00415e24
test edi, edi
je 0x4091ab
mov edx, dword [esp + 0x14]
cmp byte [edx], 0
jne 0x4091ab
push 0x1a
pop ecx
lea esi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
mov byte [edx], 1
push dword [esp + 0x1f8]
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
call fcn.00415e24
lea edx, [esp + 0x1cc]
lea ecx, [esp + 0x30]
call fcn.00415e8d
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4091f4
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
je 0x4091f4
mov esi, edi
lea edi, [esp + 0x98]
push 0x1a
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x18]
jmp 0x40925b
test ebx, ebx
je 0x40921a
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x168]
sub edx, eax
lea ecx, [esp + 0x168]
add ecx, ebp
mov al, byte [edx + ecx]
xor al, 0x5c
inc ebp
mov byte [ecx], al
cmp ebp, ebx
jb 0x409205
cmp ebx, 0x40
jae 0x409239
push 0x40
pop eax
sub eax, ebx
lea ecx, [esp + 0x168]
push eax
add ecx, ebx
push 0x5c
push ecx
call fcn.00424db0
add esp, 0xc
lea ecx, [esp + 0x98]
call fcn.00415c23
push 0x40
lea edx, [esp + 0x16c]
call fcn.00415e24
test edi, edi
je 0x40926f
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
jne 0x40926f
push 0x1a
pop ecx
lea esi, [esp + 0x98]
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push 0x20
lea edx, [esp + 0x1d0]
lea ecx, [esp + 0x9c]
call fcn.00415e24
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x98]
call fcn.00415e8d
mov ecx, dword [esp + 0x1ec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00423145
add esp, 0x1e0
ret 0x1c
Function at 0x4092af
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ac
mov eax, dword [0x449020]
xor eax, esp
mov dword [esp + 0x1a8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push 0x10
push eax
lea eax, [esp + 0x150]
mov dword [esp + 0x1c], edx
push eax
mov dword [esp + 0x24], ecx
call fcn.00424830
mov edx, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x158], 0x1000000
push eax
push eax
push eax
push eax
lea eax, [esp + 0x118]
push eax
push 0x14
lea eax, [esp + 0x160]
push eax
call fcn.0040907a
push 0x20
lea eax, [esp + 0x10c]
push eax
lea eax, [esp + 0x130]
push eax
call fcn.00424830
mov eax, dword [ebp + 0x1c]
add esp, 0xc
dec eax
mov dword [esp + 0xfc], esi
mov dword [esp + 0xf0], eax
xor esi, esi
mov dword [esp + 0x104], ebx
push 0x10
pop eax
push 0x20
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], eax
mov dword [esp + 0x104], edi
mov byte [esp + 0x17], 0
mov byte [esp + 0x16], 0
mov dword [esp + 0x20], esi
pop ebx
mov edi, dword [esp + esi + 0xf0]
test edi, edi
je 0x4093fa
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x12]
push eax
lea eax, [esp + 0x24]
mov edx, esi
push eax
lea eax, [esp + 0x1b]
push eax
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x1a4]
push eax
push ebx
lea eax, [esp + 0x120]
push eax
call fcn.0040907a
push ebx
lea eax, [esp + 0x198]
push eax
lea eax, [esp + 0x110]
push eax
call fcn.00424830
add esp, 0xc
xor ecx, ecx
mov al, byte [esp + ecx + 0x108]
xor byte [esp + ecx + 0x128], al
inc ecx
cmp ecx, ebx
jb 0x4093de
sub edi, 1
jne 0x409390
mov esi, dword [esp + 0x1c]
push ebx
lea eax, [esp + 0x12c]
push eax
push dword [esp + esi + 0x104]
call fcn.00424830
add esi, 4
add esp, 0xc
mov dword [esp + 0x1c], esi
cmp esi, 0xc
jb 0x409381
push 0x44
pop edx
lea ecx, [esp + 0x148]
call fcn.00414eeb
mov edx, ebx
lea ecx, [esp + 0x128]
call fcn.00414eeb
mov edx, ebx
lea ecx, [esp + 0x108]
call fcn.00414eeb
mov edx, ebx
lea ecx, [esp + 0x194]
call fcn.00414eeb
mov ecx, dword [esp + 0x1b4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00423145
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4096f7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x449020]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, ecx
mov eax, edx
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], eax
cmp dword [ebx], 2
lea esi, [ebx + 4]
jne 0x409764
mov ecx, dword [esi]
lea edx, [esp + 0xc]
call fcn.004080a7
push edi
push edi
push edi
push edi
lea ecx, [esp + 0x24]
push ecx
push 4
mov ecx, edx
push ecx
push 0x20
pop edx
mov ecx, eax
call fcn.0040907a
xor edx, edx
movzx eax, byte [esp + edx + 0x14]
mov ecx, edx
and ecx, 3
shl ecx, 3
shl eax, cl
xor edi, eax
inc edx
cmp edx, 0x20
jb 0x409745
mov eax, dword [esp + 0x10]
mov dword [esi], edi
xor edi, edi
cmp dword [ebx], 3
jne 0x40978f
push edi
push edi
push edi
push edi
lea ecx, [esp + 0x24]
push ecx
push 0x20
push esi
push 0x20
pop edx
mov ecx, eax
call fcn.0040907a
push 0x20
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00424830
add esp, 0xc
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00423145
mov esp, ebp
pop ebp
ret
Function at 0x40e480
Capabilities:
Check if file exists

Disassembly:
push 0x8c
mov eax, 0x439dc6
call fcn.00438b46
mov edi, ecx
and dword [edi + 0x4c], 0
cmp byte [edi + 0x30], 0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x90], eax
jne 0x40e4b0
test bl, 4
jne 0x40e4b0
xor cl, cl
jmp 0x40e4b2
mov cl, 1
mov esi, ebx
shr esi, 1
not esi
and esi, 1
inc esi
shl esi, 0x1e
test bl, 1
je 0x40e4ca
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test cl, cl
je 0x40e4d9
or ebx, 2
lea ecx, [ebp - 0x88]
call fcn.0040a752
xor eax, eax
mov dword [ebp - 4], eax
cmp byte [edi + 0x24], al
je 0x40e4f4
or esi, 0x100
mov ecx, dword [ebp - 0x90]
push eax
push 0x8000000
push 3
push eax
push ebx
push esi
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x8c], eax
cmp eax, 0xffffffff
jne 0x40e591
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x94], eax
call fcn.004021e6
mov ecx, dword [ebp - 0x90]
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004117b2
test al, al
je 0x40e577
push 0
push 0x8000000
push 3
push 0
push ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x8c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40e577
push eax
pop ebx
jmp 0x40e57d
mov ebx, dword [ebp - 0x94]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00401e5c
mov eax, dword [ebp - 0x8c]
jmp 0x40e597
mov ebx, dword [ebp - 0x94]
cmp eax, 0xffffffff
jne 0x40e5a8
cmp ebx, 2
jne 0x40e5a8
mov dword [edi + 0x4c], 1
cmp byte [edi + 0x24], 0
je 0x40e5d9
cmp eax, 0xffffffff
je 0x40e5d9
or dword [ebp - 0x98], 0xffffffff
lea ecx, [ebp - 0x98]
or dword [ebp - 0x94], 0xffffffff
push 0
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov eax, dword [ebp - 0x8c]
xor ecx, ecx
cmp eax, 0xffffffff
mov byte [edi + 0x1c], cl
mov dword [edi + 0x10], ecx
setne bl
mov byte [edi + 0x15], cl
je 0x40e601
push dword [ebp - 0x90]
lea ecx, [edi + 0x34]
mov dword [edi + 8], eax
call fcn.0040335d
mov byte [edi + 0x25], 0
lea ecx, [ebp - 0x88]
call fcn.0040a776
mov al, bl
call fcn.00438af5
ret 8