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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x128
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.00420d10
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [edi + 4]
cmp eax, dword [0x444758]
je 0x435a4c
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4359b5
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x4359bc
cmp ebx, ebx
jne 0x4359bc
xor eax, eax
jmp 0x435a4f
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x4359c9
mov byte [esi + 0x20], bl
jmp 0x4359dd
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0041df09
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.0041df09
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.0041df09
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x435a38
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x435a4c
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4367d8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x451330]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x436827
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x436827
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x436833
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0041e059
leave
ret 8
Function at 0x437182
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x451330]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x4371cf
push dword [ebp + 8]
call fcn.00438fa4
mov esi, eax
test esi, esi
je 0x4371f7
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 0x4371f7
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x440f8c
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.0041e059
leave
ret 0xc

Function at 0x438fea
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, 0x43de41
call fcn.00420d70
mov eax, 0x1014
call fcn.0041f750
mov eax, dword [0x451330]
push ebx
push edi
xor edi, edi
mov dword [ebp - 0x101c], edi
cmp dword [ecx + 0x50], edi
mov dword [ebp - 0x10], eax
je 0x4390e5
push dword [ebp + 0xc]
call fcn.00438fa4
cmp eax, edi
mov dword [ebp - 0x1014], eax
jne 0x439033
push dword [ebp + 0x14]
jmp 0x439116
push esi
call fcn.00433b2e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp + 0xc], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x1020]
push eax
push edi
lea eax, [ebp - 0x101c]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp - 0x1014]
call esi
cmp eax, edi
mov dword [ebp - 0x1018], eax
jne 0x4390b0
lea eax, [ebp - 0x1020]
push eax
push dword [ebp - 0x1020]
lea ecx, [ebp + 0xc]
call fcn.004019f0
push eax
lea eax, [ebp - 0x101c]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x1014]
call esi
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x1018], eax
call fcn.00404160
mov ebx, dword [ebp + 0xc]
push dword [ebp - 0x1014]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1018], edi
mov ecx, dword [ebp + 8]
pop esi
jne 0x4390d3
lea eax, [ebp + 0xc]
push eax
call fcn.004019d0
jmp 0x4390db
push dword [ebp + 0x14]
call fcn.00401f20
lea ecx, [ebx - 0x10]
call fcn.004011c0
jmp 0x43911e
cmp dword [ebp + 0x14], edi
jne 0x4390f1
mov dword [ebp + 0x14], 0x43f89f
push dword [ecx + 0x64]
lea eax, [ebp - 0x1010]
push 0x1000
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401f20
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0041e059
leave
ret 0x10
Function at 0x4391b5
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x451330]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x439213
push 0x443f6c
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.004213f9
add esp, 0x10
cmp eax, 0xffffffff
je 0x439227
cmp eax, esi
jae 0x439227
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x439229
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4391de
jmp 0x43922a
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.0041e059
leave
ret
Function at 0x43924a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x451330]
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 0x4392ec
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 0x4393ee
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x43939c
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 0x4393ef
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 0x439391
cmp dword [ebp - 0x24], 1
jne 0x439391
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x443f7c
push eax
call fcn.00421218
add esp, 0xc
cmp eax, 1
jne 0x439391
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 0x4393ef
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x4393ef
lea ecx, [ebp - 0x18]
push ecx
push 0x439234
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x4393ef
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 0x439415
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.004391b5
cmp eax, ebx
pop ecx
pop ecx
jne 0x439417
inc edi
cmp edi, esi
jl 0x4393fe
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0041e059
leave
ret 4
Function at 0x439426
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, 0x450930
je 0x4394e2
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 0x4394ca
mov esi, dword [ebx + 4]
jmp 0x4394c4
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 0x4394b4
cmp dword [ebp - 0xc], 4
jne 0x4394b4
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x4394ac
or dword [eax + 0x9c], ecx
jmp 0x4394b4
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 0x439478
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x43945b
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x43989c
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x43ded5
call fcn.00420d70
sub esp, 0x11c
mov eax, dword [0x451330]
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 0x439995
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 0x439969
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00401f20
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.0043989c
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004011c0
test bl, bl
jne 0x439969
or dword [ebp - 4], 0xffffffff
jmp 0x4398da
cmp esi, 0x103
je 0x439979
cmp esi, 0x3f2
jne 0x439989
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.0041e059
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x439f3a
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 0x439f6f
cmp edi, dword [esi + 0xc]
jge 0x439f6f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x439f6f
cmp edi, dword [eax + 8]
jge 0x439f6f
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x439f71
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 0x43a075
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 0x43a0a9
jmp fcn.0042d2ef
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x43a11a
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 0x43a213
cmp eax, dword [edi + 0xc]
jge 0x43a213
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x43a16b
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x43a1fc
cmp dword [ebp + 0xc], ebx
je 0x43a1fc
jmp 0x43a195
push 0x10
call fcn.00439e06
cmp eax, ebx
je 0x43a181
mov ecx, eax
call fcn.0043a06c
mov esi, eax
jmp 0x43a183
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 0x43a1ac
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x43a1bc
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 0x43a1ce
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0042d2ef
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.00420d10
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 0x43a20e
cmp ecx, dword [esi + 8]
jge 0x43a20e
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x43a214
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43a2d2
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 0x43a300
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43a31e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043a23c
jmp 0x43a31e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43a31e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0043a23c
test edi, edi
mov eax, edi
jne 0x43a308
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x454454]
test ecx, ecx
je 0x43a3d1
jmp 0x43a2d1
ret 8
Function at 0x867a3d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp byte [ecx], bl
push edi
mov dword [ebp - 4], ebx
mov edx, ecx
je 0x867a57
inc edx
cmp byte [edx], bl
jne 0x867a52
mov esi, dword [ebp + 0x10]
dec edx
mov edi, esi
cmp edx, ecx
jb 0x867a69
mov al, byte [edx]
dec edx
mov byte [edi], al
inc edi
jmp 0x867a5d
mov byte [edi], bl
cmp byte [esi], bl
mov edx, esi
je 0x867a76
inc edx
cmp byte [edx], bl
jne 0x867a71
dec edx
cmp byte [ecx], bl
mov dword [ebp + 8], edx
mov edi, ecx
je 0x867a85
inc edi
cmp byte [edi], bl
jne 0x867a80
dec edi
cmp ecx, edi
jae 0x867aa4
mov edx, esi
sub edx, ecx
mov al, byte [ecx]
xor byte [ecx + edx], al
movsx eax, byte [ecx + edx]
add dword [ebp - 4], eax
inc ecx
cmp ecx, edi
jb 0x867a8e
mov edx, dword [ebp + 8]
xor ebx, ebx
cmp esi, edx
mov ecx, esi
jae 0x867ab0
inc ecx
dec edx
cmp ecx, edx
jb 0x867aaa
mov eax, dword [ebp - 4]
push 0xa
lea edi, [ecx - 1]
xor edx, edx
pop ecx
div ecx
mov eax, dword [ebp + 0xc]
add dl, 0x61
cmp esi, edi
ja 0x867ade
mov cl, byte [esi]
and cl, 0xf
add cl, dl
mov byte [eax], cl
mov cl, byte [esi]
sar cl, 4
inc eax
add cl, dl
mov byte [eax], cl
inc eax
inc esi
jmp 0x867ac3
pop edi
mov byte [eax], bl
pop esi
pop ebx
leave
ret
Function at 0x886c8c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebx
mov edx, dword [esp + 0x1c]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ecx, 8
push edi
mov ebp, dword [esi + 0x4834]
mov edi, dword [eax + 0x2c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x78]
mov dword [esp + 0x14], ebp
dec ecx
mov dword [esp + 0x18], edi
cmp edx, ecx
mov edx, dword [esp + 0x2c]
jne 0x886ce6
mov ecx, dword [esi + 0x24]
and ecx, 7
je 0x886cd5
mov dword [esp + 0x20], ecx
mov ebx, dword [esi + 0x3c]
lea ecx, [edx + 1]
imul ebx, ecx
mov ecx, dword [esi + 0x20]
lea ecx, [ecx + ebx*8]
jmp 0x886cec
mov ecx, dword [esi + 0x30]
lea ecx, [edi + ecx*8]
mov dword [eax + 0x2c], ecx
mov eax, dword [esi + 0x7c]
dec eax
cmp edx, eax
jne 0x886d11
mov eax, dword [esi + 0x28]
cdq
xor eax, edx
sub eax, edx
and eax, 0x80000007
jns 0x886d0b
dec eax
or eax, 0xfffffff8
inc eax
je 0x886d11
mov dword [esp + 0x24], eax
mov ecx, dword [esi + 0x54]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x28], eax
jle 0x886e53
lea ecx, [edi + 2]
mov dword [esp + 0x2c], ecx
jmp 0x886d2f
mov edi, dword [esp + 0x18]
cmp dword [esi + 0x34], 2
jne 0x886d41
cmp dword [esi + 0x58], 1
jne 0x886d41
mov edi, dword [esp + 0x2c]
jmp 0x886d43
add edi, eax
mov eax, dword [esp + 0x24]
xor edx, edx
test eax, eax
jle 0x886dec
mov eax, dword [esp + 0x20]
lea ebx, [ebp + eax*2]
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x20]
xor eax, eax
test ecx, ecx
jle 0x886dad
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x886d87
cmp dword [esi + 0x34], 4
jne 0x886d87
cmp dword [esi + 0x58], 3
jne 0x886d87
lea ecx, [eax + edx*8]
mov word [ebp + ecx*2], 0
jmp 0x886da4
mov ecx, dword [esi + 0x30]
lea ebx, [eax + edx*8]
imul ecx, eax
movzx cx, byte [ecx + edi]
sub ecx, 0x80
mov word [ebp + ebx*2], cx
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
jl 0x886d67
mov ecx, dword [esp + 0x20]
mov eax, 8
cmp ecx, eax
jge 0x886dd3
mov ebp, dword [esp + 0x20]
mov ecx, ebx
sub eax, ebp
mov bp, word [ebx - 2]
mov word [ecx], bp
add ecx, 2
dec eax
jne 0x886dc2
mov ebp, dword [esp + 0x14]
mov ecx, dword [esi + 0x3c]
mov eax, dword [esp + 0x24]
add edi, ecx
inc edx
add ebx, 0x10
cmp edx, eax
mov dword [esp + 0x10], ebx
jl 0x886d5d
mov edx, dword [esp + 0x24]
lea ecx, [edx*8]
cmp ecx, 0x40
jge 0x886e2c
mov edi, 0x47
lea eax, [ebp + ecx*2]
sub edi, ecx
shr edi, 3
mov ecx, dword [esp + 0x24]
mov edx, 8
shl ecx, 4
lea ecx, [ecx + ebp - 0x10]
mov bx, word [ecx]
add ecx, 2
mov word [eax], bx
add eax, 2
dec edx
jne 0x886e1a
dec edi
jne 0x886e0a
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esi + 0x54]
add ebp, 0x80
inc eax
dec edx
cmp eax, ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
jl 0x886d2b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x949a3d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp byte [ecx], bl
push edi
mov dword [ebp - 4], ebx
mov edx, ecx
je 0x949a57
inc edx
cmp byte [edx], bl
jne 0x949a52
mov esi, dword [ebp + 0x10]
dec edx
mov edi, esi
cmp edx, ecx
jb 0x949a69
mov al, byte [edx]
dec edx
mov byte [edi], al
inc edi
jmp 0x949a5d
mov byte [edi], bl
cmp byte [esi], bl
mov edx, esi
je 0x949a76
inc edx
cmp byte [edx], bl
jne 0x949a71
dec edx
cmp byte [ecx], bl
mov dword [ebp + 8], edx
mov edi, ecx
je 0x949a85
inc edi
cmp byte [edi], bl
jne 0x949a80
dec edi
cmp ecx, edi
jae 0x949aa4
mov edx, esi
sub edx, ecx
mov al, byte [ecx]
xor byte [ecx + edx], al
movsx eax, byte [ecx + edx]
add dword [ebp - 4], eax
inc ecx
cmp ecx, edi
jb 0x949a8e
mov edx, dword [ebp + 8]
xor ebx, ebx
cmp esi, edx
mov ecx, esi
jae 0x949ab0
inc ecx
dec edx
cmp ecx, edx
jb 0x949aaa
mov eax, dword [ebp - 4]
push 0xa
lea edi, [ecx - 1]
xor edx, edx
pop ecx
div ecx
mov eax, dword [ebp + 0xc]
add dl, 0x61
cmp esi, edi
ja 0x949ade
mov cl, byte [esi]
and cl, 0xf
add cl, dl
mov byte [eax], cl
mov cl, byte [esi]
sar cl, 4
inc eax
add cl, dl
mov byte [eax], cl
inc eax
inc esi
jmp 0x949ac3
pop edi
mov byte [eax], bl
pop esi
pop ebx
leave
ret