joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4212d0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.00421390
mov eax, dword [0x566a10]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x4212f4
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x566a0c], 1
mov byte [0x566a08], bl
jne 0x42134e
mov ecx, dword [0x5680ec]
test ecx, ecx
je 0x42133c
mov esi, dword [0x5680e8]
sub esi, 4
cmp esi, ecx
jb 0x42133c
mov eax, dword [esi]
test eax, eax
je 0x421335
call eax
mov ecx, dword [0x5680ec]
sub esi, 4
cmp esi, ecx
jae 0x421327
push 0x43a0c0
push 0x43a0b8
call fcn.004213b0
add esp, 8
push 0x43a0cc
push 0x43a0c4
call fcn.004213b0
add esp, 8
test ebx, ebx
je 0x42136d
call fcn.004213a0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x566a10], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4229f0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.00424440
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x45eec0], eax
je 0x422a48
push 0x74
push 1
call fcn.00422cc0
mov esi, eax
add esp, 8
test esi, esi
je 0x422a48
mov eax, dword [0x45eec0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x422a48
push esi
call fcn.00422a50
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

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

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x45eec0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x422ade
push 0x74
push 1
call fcn.00422cc0
mov esi, eax
add esp, 8
test esi, esi
je 0x422ad4
mov ecx, dword [0x45eec0]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x422ad4
push esi
call fcn.00422a50
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.00420a00
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x422af0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x45eec0]
cmp eax, 0xffffffff
je 0x422b9f
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x422b14
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x422b90
mov eax, dword [esi + 0x24]
test eax, eax
je 0x422b24
push eax
call fcn.00420730
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x422b34
push eax
call fcn.00420730
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x422b44
push eax
call fcn.00420730
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x422b54
push eax
call fcn.00420730
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x422b64
push eax
call fcn.00420730
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x422b74
push eax
call fcn.00420730
add esp, 4
mov eax, dword [esi + 0x50]
cmp eax, 0x45eec8
je 0x422b87
push eax
call fcn.00420730
add esp, 4
push esi
call fcn.00420730
add esp, 4
mov eax, dword [0x45eec0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
Function at 0x425680
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x566e30]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x4256c2
call edi
mov esi, eax
test esi, esi
je 0x4256ac
mov eax, 1
jmp 0x4256bd
call ebp
mov ebx, eax
test ebx, ebx
je 0x4257cf
mov eax, 2
mov dword [0x566e30], eax
cmp eax, 1
jne 0x425762
test esi, esi
jne 0x4256db
call edi
mov esi, eax
test esi, esi
je 0x4257cf
cmp word [esi], 0
mov eax, esi
je 0x4256f5
add eax, 2
cmp word [eax], 0
jne 0x4256e3
add eax, 2
cmp word [eax], 0
jne 0x4256e3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x425754
push edi
call fcn.00420660
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x425754
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x425746
push ebx
call fcn.00420730
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x4257cf
test ebx, ebx
jne 0x425773
call ebp
mov ebx, eax
test ebx, ebx
je 0x4257cf
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x42578b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x42577b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x42577b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00420660
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4257ad
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x425a30
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x461468
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x425a54
add eax, 8
inc ebp
cmp eax, 0x4614f8
jb 0x425a45
cmp ecx, dword [ebp*8 + 0x461468]
jne 0x425bfb
mov eax, dword [0x5669cc]
cmp eax, 1
je 0x425bbd
test eax, eax
jne 0x425a80
cmp dword [0x45eb74], 1
je 0x425bbd
cmp ecx, 0xfc
je 0x425bfb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x425abb
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x425b04
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x436600
add ebx, ecx
push ebx
call fcn.00427610
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4365e0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x46146c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004286b0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x566fc0]
test eax, eax
je 0x425bce
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x425bd8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x46146c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x427060
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x42708c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x566fc0]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x4270c7
push 2
push ebp
push ecx
call fcn.00426f60
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x427229
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x427171
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x427122
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x42710f
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x4270f2
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42721a
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x42716d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x4270ee
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x427209
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4271c5
cmp eax, 5
jne 0x4271ae
call fcn.00421700
mov dword [eax], 9
call fcn.00421710
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00421680
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x4271e5
cmp byte [ebp], 0x1a
jne 0x4271e5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.00421700
mov dword [eax], 0x1c
call fcn.00421710
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x42716d
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42725a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x427171
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x427171
Function at 0x42a210
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x566f98]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x42a258
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42a23c
mov eax, 1
jmp 0x42a253
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x42a338
mov eax, 2
mov dword [0x566f98], eax
cmp eax, 2
jne 0x42a278
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x42a34a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x42a293
mov ecx, dword [0x566d18]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x42a2b2
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.00420660
mov esi, eax
add esp, 4
test esi, esi
jne 0x42a2c9
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42a32f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x42a310
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x42a32f
push esi
call fcn.00420730
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x42a33f
push esi
call fcn.00420730
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00420730
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x42ebaf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x42ebcc
cmp dword [0x56698c], edi
jne 0x42ed1e
cmp word [0x566998], di
mov dword [0x56698c], 1
jne 0x42ebfe
push str.MSH_SCROLL_LINES_MSG
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
xor ecx, ecx
cmp eax, edi
setne cl
inc ecx
mov dword [0x566994], eax
mov word [0x566998], cx
cmp word [0x566998], 2
jne 0x42ec3a
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x42ec3a
mov ecx, dword [0x566994]
cmp ecx, edi
je 0x42ec3a
push edi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x566990], eax
jmp 0x42ed23
push 0x94
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.00420b20
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
mov dword [0x566990], 3
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x42ed1e
cmp dword [ebp - 0x8c], 1
je 0x42ec8e
cmp dword [ebp - 0x8c], 2
jne 0x42ed1e
cmp dword [ebp - 0x98], 4
jae 0x42ecfd
lea eax, [ebp + 8]
push eax
push 1
push edi
push str.Control_PanelDesktop
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42ed1e
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 8]
push eax
push edi
push str.WheelScrollLines
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42ecf2
push 0xa
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.00421660
add esp, 0xc
mov dword [0x566990], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42ed1e
cmp dword [ebp - 0x8c], 2
jne 0x42ed1e
cmp dword [ebp - 0x98], 4
jb 0x42ed1e
push edi
push 0x566990
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x566990]
pop edi
leave
ret

Function at 0x431b59
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x432bd6
call fcn.00420b00
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CNoTrackObject.0
xor eax, eax
push 0xa
lea ecx, [esi + 0x30]
mov dword [ebp - 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.0042a58a
push 0xa
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.0042a58a
push 0xa
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.0042a407
mov ecx, dword [ebp - 0xc]
mov dword [esi], vtable.AFX_MODULE_THREAD_STATE.0
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x42a83d
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x432026
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x432054
mov eax, dword [esp + 0xc]
cmp eax, dword [esi + 8]
jl 0x4320f6
cmp dword [esp + 0x10], 0
je 0x4320f6
test esi, esi
jne 0x432090
push 0x10
call fcn.00431e43
test eax, eax
je 0x432069
mov dword [eax], vtable.CThreadData.0
mov esi, eax
jmp 0x43206b
xor esi, esi
and dword [esi + 8], 0
and dword [esi + 0xc], 0
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
lea ecx, [edi + 0x14]
call fcn.00431de5
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4320a8
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4320b8
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x4320c4
call fcn.0042a3ec
mov eax, dword [esi + 8]
mov ecx, eax
imul ecx, ecx, 0x3fffffff
add ecx, dword [edi + 0xc]
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
push 0
lea eax, [ecx + eax*4]
push eax
call fcn.00420b20
mov eax, dword [edi + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
pop edi
mov dword [eax + edx*4], ecx
pop esi
ret 8
Function at 0x100047e3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x100047f5
xor eax, eax
jmp 0x100048b6
push ebx
push edi
call fcn.100048b9
mov edx, dword [ebp + 0x10]
cmp edx, 8
mov edi, dword [ebp + 8]
not edi
mov ecx, 0xff
jb 0x1000489a
mov ebx, edx
shr ebx, 3
mov dword [ebp + 0xc], ebx
xor ebx, ebx
mov bl, byte [esi]
sub edx, 8
xor ebx, edi
and ebx, ecx
shr edi, 8
xor edi, dword [eax + ebx*4]
xor ebx, ebx
inc esi
mov bl, byte [esi]
xor ebx, edi
and ebx, ecx
shr edi, 8
xor edi, dword [eax + ebx*4]
xor ebx, ebx
inc esi
mov bl, byte [esi]
xor ebx, edi
and ebx, ecx
shr edi, 8
xor edi, dword [eax + ebx*4]
xor ebx, ebx
inc esi
mov bl, byte [esi]
xor ebx, edi
and ebx, ecx
shr edi, 8
xor edi, dword [eax + ebx*4]
xor ebx, ebx
inc esi
mov bl, byte [esi]
xor ebx, edi
and ebx, ecx
shr edi, 8
xor edi, dword [eax + ebx*4]
xor ebx, ebx
inc esi
mov bl, byte [esi]
xor ebx, edi
and ebx, ecx
shr edi, 8
xor edi, dword [eax + ebx*4]
xor ebx, ebx
inc esi
mov bl, byte [esi]
xor ebx, edi
and ebx, ecx
shr edi, 8
xor edi, dword [eax + ebx*4]
xor ebx, ebx
inc esi
mov bl, byte [esi]
xor ebx, edi
and ebx, ecx
shr edi, 8
xor edi, dword [eax + ebx*4]
inc esi
dec dword [ebp + 0xc]
jne 0x1000481a
test edx, edx
je 0x100048b0
xor ebx, ebx
mov bl, byte [esi]
xor ebx, edi
and ebx, ecx
shr edi, 8
xor edi, dword [eax + ebx*4]
inc esi
dec edx
jne 0x1000489e
mov eax, edi
pop edi
not eax
pop ebx
pop esi
pop ebp
ret

Function at 0x100049b9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push dword [ebp + 0xc]
push esi
call fcn.10004979
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.10010260
add esp, 0x14
xor edi, edi
push esi
lea edx, [ebp + edi - 0xc]
call fcn.100048f9
xor byte [edx], al
movzx eax, byte [edx]
push eax
push esi
call fcn.10004917
add esp, 0xc
inc edi
cmp edi, 0xc
jl 0x100049dc
mov eax, dword [esi + 0x8d8]
test byte [eax + 0x18], 2
movzx cx, byte [ebp - 1]
je 0x10004a15
movzx eax, byte [esi + 0x10929]
jmp 0x10004a1c
movzx eax, byte [esi + 0x1092f]
movzx ecx, cx
cmp ecx, eax
je 0x10004a28
or eax, 0xffffffff
jmp 0x10004a63
mov eax, dword [esi + 0x108ec]
mov ecx, dword [esi + 0x90]
cmp eax, ecx
jle 0x10004a3a
mov eax, ecx
test eax, eax
mov edi, dword [esi + 0x108e8]
je 0x10004a61
push ebx
mov ebx, eax
push esi
call fcn.100048f9
xor byte [edi], al
movzx eax, byte [edi]
push eax
push esi
call fcn.10004917
add esp, 0xc
inc edi
dec ebx
jne 0x10004a47
pop ebx
xor eax, eax
pop edi
leave
ret
Function at 0x100081f2
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
cmp dword [esi + 0x109a0], ebx
jne 0x10008217
lea eax, [esi + 0x90]
mov ecx, dword [eax]
cmp ecx, ebx
jg 0x1000821f
dec ecx
mov dword [eax], ecx
mov dword [esi + 0x108ec], ebx
or eax, 0xffffffff
jmp 0x100082e9
cmp dword [esi + 0x108ec], ebx
push edi
jg 0x1000829b
mov edi, 0x2000
push edi
push dword [esi + 0x108e4]
push dword [esi + 0x10908]
call 0x10018f41
add esp, 0xc
cmp eax, ebx
mov dword [esi + 0x108ec], eax
jne 0x1000825a
mov dword [esi + 0x108ec], ebx
or eax, 0xffffffff
jmp 0x100082e8
jge 0x10008282
push 0x401
mov edi, 0x1001d694
push edi
call fcn.10010080
pop ecx
push eax
push edi
push esi
call dword [esi + 0x10b44]
push 1
push 0x100247e0
call fcn.10011a28
mov eax, dword [esi + 0x108e4]
add dword [esi + 0x10910], edi
push esi
mov dword [esi + 0x108e8], eax
call fcn.100080e4
pop ecx
mov eax, dword [esi + 0x8d8]
test byte [eax + 0x18], 1
je 0x100082d2
mov eax, dword [esi + 0x108ec]
cmp eax, ebx
mov edi, dword [esi + 0x108e8]
je 0x100082d2
mov ebx, eax
push esi
call fcn.100048f9
xor byte [edi], al
movzx eax, byte [edi]
push eax
push esi
call fcn.10004917
add esp, 0xc
inc edi
dec ebx
jne 0x100082b9
dec dword [esi + 0x108ec]
lea eax, [esi + 0x108e8]
mov ecx, dword [eax]
mov dl, byte [ecx]
inc ecx
mov dword [eax], ecx
movzx eax, dl
pop edi
pop esi
pop ebx
ret