joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443fd0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x474c08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0046d32b
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00443970
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0046d259
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00469b1d
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00469b1d
push 1
push 0
push 0
mov ecx, esi
call fcn.00469ac5
push 1
push 0
push 1
mov ecx, esi
call fcn.00469ac5
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046d39d
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x444150
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x474c28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0046d32b
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00443970
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0046d259
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x444214
cmp dword [esp + 0x40], 1
jne 0x444212
cmp ecx, eax
jge 0x444214
mov eax, ecx
cmp eax, 0xc8
jge 0x444220
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00443fd0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046d39d
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4449a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x474c93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00467f3b
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046d5d3
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046eb32
test eax, eax
je 0x444abc
mov ecx, dword [esp + 0x3c]
call fcn.0046d600
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x444a80
push edi
mov ecx, esi
call fcn.0046ac68
mov ecx, esi
call fcn.00444c20
cmp dword [esp + 0x38], 1
jne 0x444ab5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046ada3
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4474d0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x447503
push esi
call fcn.0044a5e0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4474fc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x447589
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x447572
mov eax, dword [esi + 8]
test eax, eax
je 0x447527
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44756e
cmp eax, 2
je 0x447572
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44751a
cmp eax, 3
je 0x44754d
cmp eax, 1
jne 0x44751a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44751a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44751a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004475b0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x447598
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004475b0
add esp, 4
pop esi
ret

Function at 0x453410
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4534b3
test eax, eax
jbe 0x4534b3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4534b3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45345e
xor esi, esi
jmp 0x453464
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45348f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00406380
add esi, eax
push esi
mov ebx, esi
call fcn.00406380
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x453470
pop ebp
test edi, edi
pop edi
jne 0x4534b3
test ebx, ebx
je 0x4534b3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00457950
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4535f5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45370d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45370d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046838d
mov esi, eax
test esi, esi
je 0x45370d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45370d
mov ecx, esi
call fcn.00453560
cmp edi, eax
jge 0x45370d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x453693
mov dword [esp + 0x34], 1
jmp 0x4536ee
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45370d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00452b00
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x468d30
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x468d68
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00466de7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00466dbf
jmp 0x468d74
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46a425
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46a467
call fcn.0046ff22
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46a467
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46a45e
xor eax, eax
jmp 0x46a46f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046a475
pop edi
pop esi
pop ebx
ret 4
Function at 0x470452
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 0x470480
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47049e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004703b8
jmp 0x47049e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47049e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004703b8
test edi, edi
mov eax, edi
jne 0x470488
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov eax, 0xff
push eax
call fcn.00404078
mov dword [ebp - 4], eax
mov cl, 0x20
xor eax, eax
mov bl, byte [ebp - 4]
and bl, 1
shl eax, 1
mov edx, dword [ebp - 4]
shr edx, 9
xor bl, dl
shr edx, 5
xor bl, dl
bt ebx, 1
rcr dword [ebp - 4], 1
setb bl
or al, bl
dec cl
jne 0x40101f
pop ecx
mul ecx
mov byte [0x403460], dl
popal
leave
ret

Function at 0x40104a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov eax, 0xff
push eax
call fcn.00404078
mov dword [ebp - 4], eax
mov cl, 0x20
xor eax, eax
mov bl, byte [ebp - 4]
and bl, 1
shl eax, 1
mov edx, dword [ebp - 4]
shr edx, 9
xor bl, dl
shr edx, 5
xor bl, dl
bt ebx, 1
rcr dword [ebp - 4], 1
setb bl
or al, bl
dec cl
jne 0x401069
pop ecx
mul ecx
mov byte [0x402fd7], dl
popal
leave
ret

Function at 0x401094
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 0xc]
push 0x80000001
call sub.advapi32.dll_RegCreateKeyExA
or eax, eax
jne 0x4010dc
push 4
push dword [ebp + 8]
push 4
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call sub.advapi32.dll_RegSetValueExA
push dword [ebp - 8]
call sub.advapi32.dll_RegCloseKey
leave
ret 0xc

Function at 0x4010e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 0xc], 4
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
or eax, eax
jne 0x401135
mov eax, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call sub.advapi32.dll_RegQueryValueExA
or eax, eax
jne 0x401135
push dword [ebp - 8]
call sub.advapi32.dll_RegCloseKey
leave
ret 0xc

Function at 0x401139
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 8]
push 0x80000001
call sub.advapi32.dll_RegCreateKeyExA
or eax, eax
jne 0x401182
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
call sub.advapi32.dll_RegSetValueExA
push dword [ebp - 8]
call sub.advapi32.dll_RegCloseKey
leave
ret 0x10

Function at 0x401186
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push dword [ebp + 8]
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
or eax, eax
jne 0x4011da
mov eax, 1
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
call sub.advapi32.dll_RegQueryValueExA
or eax, eax
jne 0x4011da
push dword [ebp - 8]
call sub.advapi32.dll_RegCloseKey
leave
ret 0x10
Function at 0x40160a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
pushal
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 8]
push 0x80000000
call sub.advapi32.dll_RegCreateKeyExA
or eax, eax
jne 0x401659
push dword [ebp + 0xc]
call fcn.004040b4
push eax
push dword [ebp + 0xc]
push 1
push 0
push 0
push dword [ebp - 4]
call sub.advapi32.dll_RegSetValueExA
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 0x10]
push 0x80000000
call sub.advapi32.dll_RegCreateKeyExA
or eax, eax
jne 0x4016a1
push dword [ebp + 0x14]
call fcn.004040b4
push eax
push dword [ebp + 0x14]
push 1
push 0
push 0
push dword [ebp - 4]
call sub.advapi32.dll_RegSetValueExA
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
popal
leave
ret 0x10

Function at 0x401da3
Capabilities:
Create thread
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
pushal
push 0x104
push 0x40779c
push dword [0x40706f]
call fcn.00403fe8
push 8
push 0x4078e8
push dword [0x407073]
call fcn.00403fe8
call entry0
call fcn.0040104a
lea eax, [0x401dfc]
push 0x4078bc
push 0
push 0
push eax
push 0
push 0
call fcn.0040404e
push eax
call fcn.0040403c
popal
leave
ret 4

Function at 0x402138
Capabilities:
Get file size
Read file via mapping

Disassembly:
pushal
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push 0x40779c
call fcn.00404042
mov dword [0x4078c0], eax
push 0
push dword [0x4078c0]
call fcn.00404060
mov dword [0x4078c8], eax
push 0
push 0
push 0
push 4
push 0
push dword [0x4078c0]
call fcn.00404048
mov dword [0x407409], eax
push 0
push 0
push 0
push 2
push dword [0x407409]
call fcn.0040407e
mov dword [0x40740d], eax
mov esi, dword [eax + 0x3c]
add esi, eax
lea eax, [esi + 0x58]
push eax
push 0x407411
push dword [0x4078c8]
push dword [0x40740d]
call sub.imagehlp.dll_CheckSumMappedFile
push dword [0x40740d]
call fcn.00404096
push dword [0x407409]
call fcn.0040403c
push dword [0x4078c0]
call fcn.0040403c
popal
ret

Function at 0x4021e0
Capabilities:
Move file

Disassembly:
pushal
lea esi, [0x40779c]
xor ecx, ecx
xor ebx, ebx
inc ecx
inc esi
cmp byte [esi], 0
jne 0x4021eb
mov ebx, ecx
push ecx
dec ecx
dec ecx
lea esi, [0x40779c]
add esi, ecx
cmp word [esi], 0x6c6c
je 0x40221b
cmp word [esi], 0x4c4c
je 0x40221b
cmp word [esi], 0x6378
je 0x40221b
cmp word [esi], 0x4358
jne 0x402227
mov dword [0x4031dd], 1
jmp 0x402231
mov dword [0x4031dd], 0
pop ecx
jmp 0x402234
dec ecx
lea esi, [0x40779c]
add esi, ecx
cmp byte [esi], 0x5c
jne 0x402234
inc ecx
lea esi, [0x40779c]
add esi, ecx
sub ebx, ecx
mov ecx, ebx
lea edi, [0x4078f0]
rep movsb byte es:[edi], byte [esi]
push edi
lea esi, [0x407970]
push 0x4078f0
push esi
call fcn.004040ae
lea esi, [0x407970]
cmp byte [esi], 0x2e
je 0x402277
inc esi
jmp 0x40226f
mov dword [esi], 0
pop edi
mov dword [edi], 0x4b41422e
push 0x4078f0
push 0x40779c
call fcn.00404084
popal
ret
Function at 0x402295
Capabilities:
Encode data using xor

Disassembly:
pushal
mov dword [0x407419], 0
mov eax, dword [0x4078d0]
mov ebx, dword [0x4078d8]
movzx ecx, word [eax + 6]
lea esi, [eax + 0xf8]
lea edi, [ebx + 0xf8]
call fcn.00402497
add esi, 0x28
add edi, 0x28
loop 0x4022bb
mov eax, dword [0x4078d0]
mov ebx, dword [0x4078d8]
movzx ecx, word [eax + 6]
inc ecx
mov word [ebx + 6], cx
lea esi, [ebx + 0xf8]
movzx eax, word [ebx + 6]
dec eax
mov ecx, 0x28
mul ecx
add esi, eax
push esi
mov edi, esi
lea esi, [0x4078e8]
mov ecx, 7
rep movsb byte es:[edi], byte [esi]
pop esi
mov dword [esi + 0x24], 0xc0000040
mov ebp, dword [0x4078d8]
mov eax, dword [esi - 0x20]
add eax, dword [esi - 0x1c]
mov ecx, dword [ebp + 0x38]
xor edx, edx
div ecx
test edx, edx
je 0x402322
inc eax
xor edx, edx
mul ecx
mov dword [esi + 0xc], eax
mov dword [0x403461], eax
mov ebx, dword [ebp + 0x28]
mov dword [ebp + 0x28], eax
mov dword [0x4031ed], ebx
xor edx, edx
mov ecx, dword [ebp + 0x3c]
mov eax, 0xa09
div ecx
test edx, edx
je 0x40234b
inc eax
xor edx, edx
mul ecx
mov dword [esi + 0x10], eax
mov ecx, dword [ebp + 0x38]
mov eax, 0xa09
xor edx, edx
div ecx
test edx, edx
je 0x402363
inc eax
xor edx, edx
mul ecx
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
add dword [ebp + 0x50], eax
mov eax, dword [0x4078d0]
mov ebx, dword [eax + 0x80]
mov dword [0x4031f1], ebx
mov ebx, dword [eax + 0x84]
mov dword [0x4031f5], ebx
mov eax, 0x7e0
add eax, dword [0x403461]
mov dword [ebp + 0x80], eax
mov dword [ebp + 0x84], 0xb8
mov dword [ebp + 0xd0], 0
mov dword [ebp + 0xd4], 0
mov dword [ebp + 0xd8], 0
mov dword [ebp + 0xdc], 0
add dword [0x4033a0], eax
add dword [0x4033ac], eax
add dword [0x4033b0], eax
add dword [0x4033c8], eax
add dword [0x4033cc], eax
add dword [0x4033d0], eax
add dword [0x4033d4], eax
add dword [0x4033d8], eax
add dword [0x4033e0], eax
add dword [0x4033e4], eax
add dword [0x4033e8], eax
add dword [0x4033ec], eax
add dword [0x4033f0], eax
mov eax, dword [ebp + 0xa0]
mov dword [0x4031e9], eax
cmp eax, 0
je 0x402447
mov eax, 0x898
add eax, dword [0x403461]
mov dword [ebp + 0xa0], eax
mov dword [ebp + 0xa4], 8
mov eax, dword [ebp + 0x34]
mov dword [0x4031e5], eax
push esi
lea esi, [0x4058d0]
lea edi, [0x40307d]
mov ecx, 0x140
rep movsb byte es:[edi], byte [esi]
lea ebx, [0x402c18]
mov dl, byte [0x403460]
mov ecx, 0x788
mov al, byte [ebx]
xor dl, al
mov byte [ebx], dl
inc ebx
loop 0x402474
pop esi
mov edi, dword [esi + 0x14]
mov eax, dword [0x4078d4]
add edi, eax
lea esi, [0x402bc0]
mov ecx, 0xa09
rep movsb byte es:[edi], byte [esi]
popal
ret
Function at 0x402497
Capabilities:
Encode data using xor

Disassembly:
pushal
cmp dword [esi], 0x7865742e
je 0x4024d9
cmp dword [esi], 0x7461642e
je 0x4024d9
cmp dword [esi], 0x45444f43
je 0x4024d9
cmp dword [esi], 0x41544144
je 0x4024d9
cmp dword [esi], 0x6164692e
je 0x4024d9
cmp dword [esi], 0x6c65722e
je 0x4024d9
cmp dword [esi], 0x7273722e
je 0x4025c9
jmp 0x4025d6
push 0
push 0
push 0x402
push dword [0x40706b]
call fcn.00404024
cmp dword [esi + 0x10], 0
je 0x4025d6
mov dword [edi + 0x24], 0xc0000040
mov edx, dword [0x407419]
mov eax, dword [esi + 0xc]
mov dword [edx + 0x403205], eax
inc byte [0x403201]
mov eax, 0xa0000
mov dword [0x40741d], eax
push 4
push 0x1000
push eax
push 0
call fcn.0040409c
mov dword [0x407421], eax
lea ebx, [0x402605]
mov eax, dword [esi + 0x10]
mov dword [0x407415], eax
push ebx
push dword [0x407421]
push dword [esi + 0x10]
mov edx, dword [edi + 0x14]
add edx, dword [0x4078d4]
push edx
mov ebx, dword [esi + 0x14]
add ebx, dword [0x4078cc]
push ebx
call fcn.00404ebd
mov edx, dword [0x407419]
mov dword [edx + 0x403209], eax
add dword [0x407419], 8
pushal
mov esi, dword [edi + 0x14]
add esi, dword [0x4078d4]
mov edi, esi
mov ecx, eax
xor eax, eax
lodsb al, byte [esi]
xor al, byte [0x402fd7]
stosb byte es:[edi], al
loop 0x402585
popal
xor edx, edx
mov ebp, dword [0x4078d8]
mov ecx, dword [ebp + 0x3c]
div ecx
test edx, edx
je 0x4025a2
inc eax
mul ecx
mov dword [edi + 0x10], eax
add eax, dword [edi + 0x14]
mov dword [edi + 0x3c], eax
pop eax
pop eax
pop eax
pop eax
pop eax
push 0x4000
push dword [0x40741d]
push 0x407421
call fcn.004040a2
jmp 0x402603
cmp dword [esi + 0x10], 0
je 0x4025d6
call fcn.00402634
jmp 0x402603
mov dword [edi + 0x24], 0xc0000040
push esi
push edi
mov ecx, dword [esi + 0x10]
mov dword [edi + 0x10], ecx
mov eax, ecx
add eax, dword [edi + 0x14]
mov dword [edi + 0x3c], eax
mov esi, dword [esi + 0x14]
add esi, dword [0x4078cc]
mov edi, dword [edi + 0x14]
add edi, dword [0x4078d4]
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
popal
ret