joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ab10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10055b98
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x1007e930]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 0
lea ecx, [esp + 0x14]
call fcn.10054404
mov dword [esp + 0x28], 0
mov edi, dword [0x100800fc]
mov ecx, 0x1008112c
mov dword [esp + 0xc], edi
call fcn.10007600
mov esi, eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
cmp esi, dword [eax + 0xc]
jae 0x1000ab8b
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + esi*4]
test ecx, ecx
jne 0x1000ab8f
cmp byte [eax + 0x14], 0
je 0x1000ab8f
call fcn.10054492
cmp esi, dword [eax + 0xc]
jae 0x1000ab95
mov edx, dword [eax + 8]
mov esi, dword [edx + esi*4]
jmp 0x1000ab91
xor ecx, ecx
jmp 0x1000ab73
mov esi, ecx
test esi, esi
jne 0x1000abe6
test edi, edi
je 0x1000ab9d
mov esi, edi
jmp 0x1000abe6
lea eax, [esp + 0xc]
push eax
call fcn.1000a870
add esp, 4
cmp eax, 0xffffffff
jne 0x1000abcc
push str.bad_cast
lea ecx, [esp + 0x18]
call fcn.10040156
push 0x10075e58
lea ecx, [esp + 0x18]
push ecx
call fcn.100402a6
mov esi, dword [esp + 0xc]
mov ecx, esi
mov dword [0x100800fc], esi
call fcn.10007680
push esi
call fcn.10054560
add esp, 4
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.10054425
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret

Function at 0x1000bea0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10055b98
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x1007e930]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 0
lea ecx, [esp + 0x14]
call fcn.10054404
mov dword [esp + 0x28], 0
mov edi, dword [0x10080100]
mov ecx, 0x1008010c
mov dword [esp + 0xc], edi
call fcn.10007600
mov esi, eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
cmp esi, dword [eax + 0xc]
jae 0x1000bf1b
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + esi*4]
test ecx, ecx
jne 0x1000bf1f
cmp byte [eax + 0x14], 0
je 0x1000bf1f
call fcn.10054492
cmp esi, dword [eax + 0xc]
jae 0x1000bf25
mov edx, dword [eax + 8]
mov esi, dword [edx + esi*4]
jmp 0x1000bf21
xor ecx, ecx
jmp 0x1000bf03
mov esi, ecx
test esi, esi
jne 0x1000bf76
test edi, edi
je 0x1000bf2d
mov esi, edi
jmp 0x1000bf76
lea eax, [esp + 0xc]
push eax
call fcn.1000bc40
add esp, 4
cmp eax, 0xffffffff
jne 0x1000bf5c
push str.bad_cast
lea ecx, [esp + 0x18]
call fcn.10040156
push 0x10075e58
lea ecx, [esp + 0x18]
push ecx
call fcn.100402a6
mov esi, dword [esp + 0xc]
mov ecx, esi
mov dword [0x10080100], esi
call fcn.10007680
push esi
call fcn.10054560
add esp, 4
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.10054425
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
Function at 0x1000bfa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10055b98
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x1007e930]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 0
lea ecx, [esp + 0x14]
call fcn.10054404
mov dword [esp + 0x28], 0
mov edi, dword [0x10080104]
mov ecx, 0x10080108
mov dword [esp + 0xc], edi
call fcn.10007600
mov esi, eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
cmp esi, dword [eax + 0xc]
jae 0x1000c01b
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + esi*4]
test ecx, ecx
jne 0x1000c01f
cmp byte [eax + 0x14], 0
je 0x1000c01f
call fcn.10054492
cmp esi, dword [eax + 0xc]
jae 0x1000c025
mov edx, dword [eax + 8]
mov esi, dword [edx + esi*4]
jmp 0x1000c021
xor ecx, ecx
jmp 0x1000c003
mov esi, ecx
test esi, esi
jne 0x1000c076
test edi, edi
je 0x1000c02d
mov esi, edi
jmp 0x1000c076
lea eax, [esp + 0xc]
push eax
call fcn.1000bcc0
add esp, 4
cmp eax, 0xffffffff
jne 0x1000c05c
push str.bad_cast
lea ecx, [esp + 0x18]
call fcn.10040156
push 0x10075e58
lea ecx, [esp + 0x18]
push ecx
call fcn.100402a6
mov esi, dword [esp + 0xc]
mov ecx, esi
mov dword [0x10080104], esi
call fcn.10007680
push esi
call fcn.10054560
add esp, 4
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.10054425
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
Function at 0x1003dab0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x2038
call fcn.1003f540
mov eax, dword [0x1007e930]
xor eax, esp
mov dword [esp + 0x2034], eax
push esi
mov esi, dword [esp + 0x2040]
cmp dword [esi + 0x1c], 0xffffffff
je 0x1003dba7
push edi
push 0x1002
lea eax, [esp + 0x103c]
push 0
push eax
call fcn.1003f8e0
lea ecx, [esp + 0x18]
push ecx
call fcn.10040972
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.10040bf1
mov ecx, dword [esp + 0x2060]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x50]
push edx
add eax, 1
push eax
add ecx, 0x76c
push ecx
push str.__0.4d__0.2d__0.2d__0.2d:_0.2d:_0.2d___s_r_n
lea edx, [esp + 0x70]
push 0x800
push edx
call fcn.10041159
add esp, 0x40
lea eax, [esp + 0x204c]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x1040]
push edx
call dword [sym.imp.USER32.dll_wvsprintfW]
push esi
mov edi, eax
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [esi + 0x18], 1
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x1c]
lea ecx, [edi + edi]
push ecx
lea edx, [esp + 0x1044]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
add dword [esi + 0x18], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov ecx, dword [esp + 0x2038]
pop esi
xor ecx, esp
call fcn.1003f522
add esp, 0x2038
ret
Function at 0x1003dbd0
Capabilities:
Create directory
Get file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1005b3ab
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1007e930]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1007e930]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x48]
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebp, ebp
cmp eax, 0x10
je 0x1003dc22
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [esi + 0x18], 1
push ebp
push 0x80
push 2
push ebp
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or ebx, 0xffffffff
cmp eax, ebx
mov dword [esi + 0x1c], eax
je 0x1003dccc
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebp
mov word [esp + 0x1c], bp
mov dword [esp + 0x40], ebp
push 0xfeff
push 1
push ebp
lea ecx, [esp + 0x24]
call fcn.1003de30
mov eax, dword [esp + 0x1c]
mov edi, 8
cmp dword [esp + 0x30], edi
mov dword [esp + 0x14], ebp
jae 0x1003dc8b
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x2c]
push ebp
lea ecx, [esp + 0x18]
push ecx
lea ecx, [edx + edx]
mov edx, dword [esi + 0x1c]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x40], ebx
cmp dword [esp + 0x30], edi
jb 0x1003dcbb
mov eax, dword [esp + 0x1c]
push eax
call fcn.1003ff26
add esp, 4
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebp
mov word [esp + 0x1c], bp
add dword [esi + 0x18], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1003f522
add esp, 0x30
ret 8
Function at 0x1003f522
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1007e930]
jne 0x1003f52c
repz ret
jmp fcn.1004166e

Function at 0x1005039f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100426d6
xor ebx, ebx
cmp dword [0x1008108c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x10050474
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x100503df
xor eax, eax
jmp 0x10050538
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x100503d8
push eax
call fcn.10042673
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1008108c], eax
call esi
push eax
call fcn.10042673
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10081090], eax
call esi
push eax
call fcn.10042673
mov dword [0x10081094], eax
lea eax, [ebp - 8]
push eax
call fcn.10048364
test eax, eax
pop ecx
pop ecx
je 0x10050442
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100402fa
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x10050474
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10042673
cmp eax, ebx
pop ecx
mov dword [0x1008109c], eax
je 0x10050474
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10042673
pop ecx
mov dword [0x10081098], eax
mov eax, dword [0x10081098]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x100504ed
cmp dword [0x1008109c], esi
je 0x100504ed
push eax
call fcn.100426df
pop ecx
call eax
cmp eax, ebx
je 0x100504ba
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1008109c]
call fcn.100426df
pop ecx
call eax
test eax, eax
je 0x100504ba
test byte [ebp - 0x18], 1
jne 0x100504ed
lea eax, [ebp - 0xc]
push eax
call fcn.1004839b
test eax, eax
pop ecx
je 0x100504d5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100402fa
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x100504e4
or dword [ebp + 0x10], 0x200000
jmp 0x1005051e
or dword [ebp + 0x10], 0x40000
jmp 0x1005051e
mov eax, dword [0x10081090]
cmp eax, esi
je 0x1005051e
push eax
call fcn.100426df
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1005051e
mov eax, dword [0x10081094]
cmp eax, esi
je 0x1005051e
push dword [ebp - 4]
push eax
call fcn.100426df
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1008108c]
call fcn.100426df
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x5e634f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5e636a
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124ab58f]
pop edx
test eax, eax
je 0x5e643c
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5e642b
test dword [ebp - 0x2a8], 1
jne 0x5e642b
and dword [ebp - 0x2a8], 0x100
jne 0x5e642b
push esi
push edx
push 4
push esi
call dword [edx + 0x122d2bc8]
pop edx
pop esi
test eax, eax
je 0x5e63ce
jmp 0x5e642b
cmp word [esi], 0x5a4d
jne 0x5e642b
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5e642b
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d2ac0]
pop edx
test eax, eax
je 0x5e642b
lea eax, [ebp - 0x28c]
push eax
call fcn.005e62ab
test eax, eax
jne 0x5e6424
jmp 0x5e642b
mov eax, esi
jmp 0x5e643c
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5e636a
pop esi
leave
ret 4
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x47b62a02
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..rsrc
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x47dc3c73
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x404b05
Capabilities:
Hash data using sha256

Disassembly:
push esi
push edi
mov edi, eax
mov esi, ecx
call fcn.00404ae2
xor eax, eax
mov edx, dword [eax + 0x42a478]
mov ecx, dword [esi + 0xf4]
mov dword [eax + ecx], edx
add eax, 4
cmp eax, 0x20
jl 0x404b12
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov eax, dword [esi + 0xf4]
mov ecx, dword [esp + 0xc]
xor dword [eax + 8], ecx
mov esi, dword [esi + 0xf4]
or edi, 0x2000
shl edi, 0x10
xor dword [esi + 0xc], edi
pop edi
pop esi
ret 4
Function at 0x4057c8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
jbe 0x4057f5
test cl, 7
je 0x4057f5
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4305a8]
dec esi
inc ecx
jmp 0x4057d6
cmp esi, 8
jb 0x405898
mov edx, esi
shr edx, 3
mov dword [ebp + 8], edx
push ebx
mov edx, dword [ecx + 4]
xor eax, dword [ecx]
mov ebx, edx
shr ebx, 0x10
movzx edi, bl
mov edi, dword [edi*4 + 0x4309a8]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4305a8]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x430da8]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4315a8]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x4319a8]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x431da8]
movzx edx, dl
xor edi, dword [edx*4 + 0x4311a8]
movzx eax, al
xor edi, dword [eax*4 + 0x4321a8]
sub esi, 8
add ecx, 8
dec dword [ebp + 8]
mov eax, edi
jne 0x405807
pop ebx
jmp 0x405898
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4305a8]
dec esi
inc ecx
test esi, esi
ja 0x405884
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x405bbf
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push 0x40
pop ebx
cmp esi, ebx
jbe 0x405c09
lea eax, [ebp - 0x1d0]
push eax
call fcn.00410460
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1d0]
push eax
call fcn.00410762
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.004107db
lea eax, [ebp - 0x80]
push 0x20
mov dword [ebp + 8], eax
pop esi
xor ecx, ecx
push edi
test esi, esi
jbe 0x405c29
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
sub edi, eax
lea eax, [ebp + ecx - 0x40]
mov dl, byte [edi + eax]
xor dl, 0x36
inc ecx
mov byte [eax], dl
cmp ecx, esi
jb 0x405c18
cmp esi, ebx
jae 0x405c41
mov ecx, ebx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x40]
push 0x36
push eax
call fcn.0041a270
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
call fcn.00410460
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.00410762
push dword [ebp + 0x14]
lea eax, [ebp - 0xf0]
push dword [ebp + 0x10]
push eax
call fcn.00410762
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.004107db
lea eax, [ebp - 0x160]
push eax
call fcn.00410460
xor ecx, ecx
test esi, esi
jbe 0x405cab
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
sub edi, eax
lea eax, [ebp + ecx - 0x40]
mov dl, byte [edi + eax]
xor dl, 0x5c
inc ecx
mov byte [eax], dl
cmp ecx, esi
jb 0x405c9a
pop edi
cmp esi, ebx
jae 0x405cc4
mov ecx, ebx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x40]
push 0x5c
push eax
call fcn.0041a270
add esp, 0xc
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.00410762
push 0x20
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.00410762
push dword [ebp + 0x18]
lea eax, [ebp - 0x160]
push eax
call fcn.004107db
pop esi
pop ebx
leave
ret 0x14
Function at 0x405cfc
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0xbc
push esi
mov esi, dword [ebp + 0x6c]
push edi
push 0x40
pop eax
cmp esi, eax
jae 0x405d15
mov eax, esi
push eax
push dword [ebp + 0x68]
lea eax, [ebp - 0x44]
push eax
call fcn.0041bce0
add esp, 0xc
lea eax, [ebp + 0x20]
push eax
mov byte [ebp + esi - 0x44], 0
mov byte [ebp + esi - 0x43], 0
mov byte [ebp + esi - 0x42], 0
mov byte [ebp + esi - 0x41], 1
add esi, 4
push esi
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.00405bbf
push 0x20
pop esi
push esi
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp]
push eax
call fcn.0041bce0
mov eax, dword [ebp + 0x7c]
add esp, 0xc
dec eax
mov dword [ebp + 0x4c], eax
push 0x10
pop eax
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp + 0x44], eax
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x48], eax
xor edi, edi
mov eax, dword [ebp + edi + 0x4c]
test eax, eax
jbe 0x405dcc
mov dword [ebp + 0x6c], eax
lea eax, [ebp - 0x64]
push eax
push esi
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.00405bbf
push esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.0041bce0
add esp, 0xc
xor eax, eax
mov cl, byte [ebp + eax + 0x20]
xor byte [ebp + eax], cl
inc eax
cmp eax, esi
jb 0x405dba
dec dword [ebp + 0x6c]
jne 0x405d93
push esi
lea eax, [ebp]
push eax
push dword [ebp + edi + 0x40]
call fcn.0041bce0
add edi, 4
add esp, 0xc
cmp edi, 0xc
jb 0x405d88
push 0x44
lea eax, [ebp - 0x44]
push eax
call fcn.0040ce13
push esi
lea eax, [ebp]
push eax
call fcn.0040ce13
push esi
lea eax, [ebp + 0x20]
push eax
call fcn.0040ce13
push esi
lea eax, [ebp - 0x64]
push eax
call fcn.0040ce13
pop edi
pop esi
add ebp, 0x58
leave
ret 0x20
Function at 0x405e17
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
push ebx
push edi
mov edi, dword [ebp + 0x1c]
mov ebx, ecx
mov dword [ebp - 4], ebx
cmp edi, 0x18
ja 0x405fc0
and dword [ebp + 0x1c], 0
push esi
lea esi, [ebx + 0x102]
cmp dword [esi + 0x12], edi
jne 0x405e67
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.0040cee2
test al, al
je 0x405e67
push 0x10
push dword [ebp + 0x14]
push esi
call fcn.0041a654
add esp, 0xc
test eax, eax
je 0x405fc6
inc dword [ebp + 0x1c]
add ebx, 0x178
cmp dword [ebp + 0x1c], 4
jb 0x405e38
mov esi, 0x200
push esi
lea eax, [ebp - 0x264]
push eax
push dword [ebp + 0x10]
call fcn.00411893
xor eax, eax
inc eax
mov ecx, edi
shl eax, cl
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x10
push dword [ebp + 0x14]
lea eax, [ebp - 0x264]
push eax
call fcn.0041a4b0
pop ecx
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.00405cfc
push esi
lea eax, [ebp - 0x264]
push eax
call fcn.0040ce13
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
lea eax, [edx + 0x5e0]
mov ecx, dword [eax]
mov ebx, ecx
and ebx, 3
imul ebx, ebx, 0x178
add ebx, edx
inc ecx
mov dword [eax], ecx
push 0x40
mov dword [ebx + 0x114], edi
pop ecx
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push 0x10
push dword [ebp + 0x14]
lea eax, [ebx + 0x102]
push eax
movsw word es:[edi], word [esi]
call fcn.0041bce0
push 0x20
pop esi
push esi
lea eax, [ebp - 0x24]
push eax
lea edi, [ebx + 0x118]
push edi
call fcn.0041bce0
push esi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.0041bce0
push esi
lea eax, [ebp - 0x64]
push eax
add ebx, 0x158
push ebx
call fcn.0041bce0
add esp, 0x30
push 1
push esi
push edi
call fcn.0040cd6d
xor ebx, ebx
cmp dword [ebp + 0x20], ebx
je 0x405f62
push esi
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0x20]
call fcn.0041bce0
add esp, 0xc
mov edi, dword [ebp + 0x24]
cmp edi, ebx
je 0x405f93
push 8
push ebx
push edi
call fcn.0041a270
add esp, 0xc
xor ecx, ecx
mov dl, byte [ebp + ecx - 0x44]
mov eax, ecx
and eax, 7
add eax, edi
xor byte [eax], dl
inc ecx
cmp ecx, esi
jb 0x405f77
push esi
lea eax, [ebp - 0x44]
push eax
call fcn.0040ce13
cmp dword [ebp + 0x18], ebx
je 0x405fb5
push dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
push 0x100
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
add ecx, 0x5e8
call fcn.0040c8ca
push esi
lea eax, [ebp - 0x24]
push eax
call fcn.0040ce13
pop esi
pop edi
pop ebx
leave
ret 0x20
push 0
push 0x20
pop esi
push esi
lea edi, [ebx + 0x118]
push edi
call fcn.0040cd6d
push esi
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.0041bce0
add esp, 0xc
push 1
push esi
push edi
call fcn.0040cd6d
push esi
lea eax, [ebx + 0x138]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0041bce0
push esi
add ebx, 0x158
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.0041bce0
add esp, 0x18
jmp 0x405f4b
Function at 0x406093
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 2
jne 0x4060df
mov eax, dword [esi + 4]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp + 8]
push eax
push 0x20
push dword [ebp + 0xc]
call fcn.00405bbf
xor edx, edx
mov dword [esi + 4], edx
xor eax, eax
push ebx
movzx ebx, byte [ebp + eax - 0x20]
mov ecx, eax
and ecx, 3
shl ecx, 3
shl ebx, cl
xor edx, ebx
inc eax
cmp eax, 0x20
jb 0x4060c4
mov dword [esi + 4], edx
pop ebx
cmp dword [esi], 3
jne 0x406107
lea eax, [ebp - 0x20]
push eax
push 0x20
add esi, 4
push esi
push 0x20
push dword [ebp + 0xc]
call fcn.00405bbf
push 0x20
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.0041bce0
add esp, 0xc
pop esi
leave
ret 8