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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d718
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a8068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00405280
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x418abe
lea ecx, [ebp - 0x28]
call fcn.004053e0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.004193a0
test al, al
je 0x418aad
lea ecx, [ebp - 0x28]
call fcn.00405280
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455137
mov esp, ebp
pop ebp
ret

Function at 0x418bf0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ebb8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4a8068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push 0xb
mov ecx, esi
call fcn.00405280
push eax
mov ecx, edi
call fcn.00405280
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x418c42
mov al, 1
jmp 0x418d30
lea ecx, [ebp - 0x58]
xor bl, bl
call fcn.004053e0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x58]
mov ecx, edi
call fcn.004193a0
test al, al
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
lea ecx, [ebp - 0x40]
call fcn.004053e0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.004193a0
test al, al
jne 0x418c88
test bl, bl
je 0x418ca6
push 0xb
lea ecx, [ebp - 0x40]
call fcn.00405280
push eax
lea ecx, [ebp - 0x58]
call fcn.00405280
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x418cfa
mov ecx, esi
call fcn.00418a40
cmp eax, 0xffffffff
je 0x418d11
push esi
lea ecx, [ebp - 0x28]
call fcn.00405400
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00418ff0
test al, al
je 0x418d05
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00418ae0
test al, al
je 0x418d05
mov edx, esi
mov ecx, edi
call fcn.00418ae0
lea ecx, [ebp - 0x28]
test al, al
je 0x418cfe
call fcn.00418d50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004052c0
mov bl, 1
jmp 0x418d13
mov edx, esi
call fcn.00418ae0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004052c0
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004052c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004052c0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455137
mov esp, ebp
pop ebp
ret
Function at 0x418d50
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ec08
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4a8068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00405280
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x418d96
mov al, 1
jmp 0x418ee8
mov ecx, esi
call fcn.00405280
push eax
lea ecx, [ebp - 0x28]
call fcn.004053a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00418a40
mov ebx, eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052c0
cmp ebx, 0xffffffff
jne 0x418dd5
xor al, al
jmp 0x418ee8
mov ecx, esi
call fcn.00405280
push eax
lea ecx, [ebp - 0x28]
call fcn.004053a0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0
call fcn.00405280
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
call ebx
test eax, eax
je 0x418e07
xor bl, bl
jmp 0x418e51
lea ecx, [ebp - 0x40]
call fcn.004053e0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004193a0
test al, al
je 0x418e43
push 0
lea ecx, [ebp - 0x40]
call fcn.00405280
push eax
call ebx
test eax, eax
je 0x418e43
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004052c0
xor bl, bl
jmp 0x418e51
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004052c0
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052c0
test bl, bl
jne 0x418dce
mov ecx, esi
call fcn.00405280
push eax
call edi
test eax, eax
jne 0x418d8f
lea ecx, [ebp - 0x28]
call fcn.004053e0
mov dword [ebp - 4], 3
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.004193a0
test al, al
je 0x418eaa
lea ecx, [ebp - 0x28]
call fcn.00405280
push eax
call edi
test eax, eax
je 0x418eaa
mov bl, 1
jmp 0x418ed7
mov ecx, esi
call fcn.00405280
push eax
lea ecx, [ebp - 0x40]
call fcn.004053a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x44]
call fcn.00418990
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.004052c0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052c0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455137
mov esp, ebp
pop ebp
ret
Function at 0x418f40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
lea eax, [esp + 4]
push esi
push edi
push 0x20c
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.004574b0
add esp, 0xc
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0
call fcn.00405280
push eax
mov ecx, edi
call fcn.00405280
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x418fd5
xor eax, eax
mov word [esp + 0x216], ax
lea eax, [esp + 0xc]
push eax
call fcn.004076f0
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x10]
push eax
call fcn.004069d0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00455137
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00455137
add esp, 0x210
ret
Function at 0x41a9c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.0045514d
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.004574b0
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x41aa1c
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.00455137
add esp, 0x120
ret
Function at 0x41cf80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4a16b0
push 0x456dd0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4a8068]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x41cfe9
xor eax, eax
jmp 0x41d15f
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41d12a
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x41d12a
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41d12a
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x41d12a
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41d12a
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x41d12a
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41d12a
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x41d12a
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41d12a
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x41d12a
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x41d12a
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x41d113
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x41d100
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x41d110
jmp 0x41d12a
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push esi
push 1
push dword [ebp - 0x34]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.0041d186
test ebx, ebx
jne 0x41d15d
test esi, esi
je 0x41d14f
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x41d15d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00455137
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41d590
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, dword [esp + 0x148]
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.004574b0
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41d6d7
cmp dword [esi + 4], 6
push edi
ja 0x41d5eb
jne 0x41d673
cmp dword [esi + 8], 2
jb 0x41d673
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x41d673
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41d673
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41d673
movups xmm0, xmmword [0x498260]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x498270]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x41d673
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41d673
cmp word [edi + 2], ax
jbe 0x41d673
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x41d6be
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004574b0
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x41d6be
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.00455137
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.00455137
add esp, 0x140
ret
Function at 0x422380
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47fe69
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4a8068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x84
call fcn.0045514d
mov edi, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
push 0x84
push 0
push edi
call fcn.004574b0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov byte [ebp - 4], 1
push 0x18
call fcn.0045514d
add esp, 0x14
mov dword [edi + 0x10], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 2
lea esi, [edi + 0x20]
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.004053e0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x18]
call fcn.004053e0
mov byte [ebp - 4], 4
lea ecx, [esi + 0x30]
call fcn.004053e0
mov byte [ebp - 4], 5
lea ecx, [esi + 0x48]
call fcn.004053e0
mov byte [ebp - 4], 7
push 0
call fcn.0045e34e
push eax
call fcn.0045e646
mov dword [edi + 0xc], 0
add esp, 8
mov byte [edi + 0x14], 0
mov dword [edi + 0x18], 0x40
mov dword [edi + 0x80], 0
mov word [edi + 0x1c], 0x100
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov dword [ebx], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4276b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
mov bh, byte [ecx + 0x100]
push ebp
mov ebp, dword [esp + 0x10]
push edi
xor edi, edi
mov dword [esp + 0xc], edx
mov dl, byte [ecx + 0x101]
test ebp, ebp
je 0x427709
push esi
nop
inc bh
movzx esi, bh
mov bl, byte [esi + ecx]
add dl, bl
mov byte [esp + 0x18], dl
movzx edx, dl
movzx eax, byte [edx + ecx]
mov byte [esi + ecx], al
mov byte [edx + ecx], bl
movzx eax, byte [esi + ecx]
mov edx, dword [esp + 0x10]
add al, bl
movzx eax, al
movzx eax, byte [eax + ecx]
xor byte [edi + edx], al
inc edi
mov dl, byte [esp + 0x18]
cmp edi, ebp
jb 0x4276d0
pop esi
pop edi
pop ebp
mov byte [ecx + 0x101], bh
mov byte [ecx + 0x100], bh
pop ebx
pop ecx
ret
Function at 0x42b180
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481829
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4a8068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
call fcn.00405640
mov dword [ebp - 4], 0
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 1
test eax, eax
je 0x42b332
nop dword [eax]
dec eax
mov dword [ebp + 8], eax
mov al, byte [edi]
inc edi
mov byte [ebp + esi - 0x14], al
inc esi
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov dword [ebp - 0x20], edi
mov byte [ebp - 0xf], ch
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], cl
cmp esi, 3
jne 0x42b274
mov al, cl
xor edi, edi
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
mov byte [ebp - 0x16], cl
and al, 0x3f
mov ecx, 0x4aa458
mov byte [ebp - 0x15], al
call fcn.00406710
mov esi, eax
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x42b24f
mov ecx, dword [esi]
movzx eax, byte [ebp + edi - 0x18]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
call fcn.00406b30
inc edi
cmp edi, 4
jl 0x42b245
mov edi, dword [ebp - 0x20]
xor esi, esi
mov dl, byte [ebp - 0xd]
mov cl, byte [ebp - 0xe]
mov ch, byte [ebp - 0xf]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x42b1e0
mov dword [ebp + 8], esi
test esi, esi
je 0x42b332
mov eax, esi
cmp esi, 3
jge 0x42b2ae
cmp eax, 3
jae 0x42b346
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x42b294
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
xor edi, edi
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x17], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x15], ch
lea eax, [esi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x42b318
mov ecx, 0x4aa458
call fcn.00406710
mov esi, eax
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x42b2fe
mov ecx, dword [esi]
movzx eax, byte [ebp + edi - 0x18]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
call fcn.00406b30
inc edi
cmp edi, dword [ebp - 0x20]
jl 0x42b2f4
mov esi, dword [ebp + 8]
cmp esi, 3
jge 0x42b332
mov edi, 3
sub edi, esi
push 0x3d
mov ecx, ebx
call fcn.00406b30
sub edi, 1
jne 0x42b324
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0045551a
int3

Function at 0x42c750
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, ecx
push esi
push edi
xor edi, edi
or edx, 0x100
mov ecx, edx
mov eax, edx
shr ecx, 7
add edx, edx
and ecx, 1
shr eax, 8
neg ecx
sar ecx, 4
and ecx, 0x7f
movzx esi, word [ebx + eax*2]
shr esi, 4
xor esi, ecx
add edi, dword [ebp + esi*4]
cmp edx, 0x10000
jb 0x42c762
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x42c7a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, 0x100
xor ebx, ebx
push edi
mov edi, dword [esp + 0x14]
mov ebp, ecx
or edx, esi
add edi, edi
mov ecx, esi
and ecx, edi
mov eax, edx
shr eax, 8
add ecx, esi
add eax, ecx
movzx ecx, word [ebp + eax*2]
mov eax, edx
shr eax, 7
add edx, edx
and eax, 1
shr ecx, 4
neg eax
sar eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [esp + 0x18]
add ebx, dword [eax + ecx*4]
mov ecx, edx
xor ecx, edi
not ecx
and esi, ecx
cmp edx, 0x10000
jb 0x42c7b3
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret

Function at 0x42ca90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, ecx
mov dword [esp + 8], edx
push esi
push edi
movzx esi, word [ebp]
movzx ecx, word [ebp + 2]
mov eax, esi
shr eax, 4
xor esi, 0x7f0
shr esi, 4
mov eax, dword [ebx + eax*4]
mov dword [esp + 0x14], eax
mov eax, ecx
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
mov eax, dword [ebx + eax*4]
add eax, dword [ebx + esi*4]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + ecx*4]
add eax, dword [ebx + esi*4]
xor esi, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], esi
cmp esi, dword [esp + 0x24]
jae 0x42cc0a
mov edx, esi
xor edi, edi
mov esi, dword [esp + 0x10]
or edx, 8
nop dword [eax + eax]
mov ecx, edx
and edx, 1
shr ecx, 1
neg edx
sar edx, 4
and edx, 0x7f
lea eax, [ecx + esi*8]
movzx eax, word [ebp + eax*2 + 4]
shr eax, 4
xor eax, edx
mov edx, ecx
add edi, dword [ebx + eax*4]
cmp edx, 1
jne 0x42cb00
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
add eax, edi
mov dword [ecx + esi*4], eax
inc esi
mov dword [esp + 0x2c], esi
cmp esi, 8
jb 0x42cae6
cmp esi, 0x10
jae 0x42cbb2
lea eax, [esi - 8]
mov dword [esp + 0x14], eax
nop dword [eax]
cmp esi, dword [esp + 0x24]
jae 0x42cc0a
mov esi, dword [esp + 0x10]
mov edx, eax
xor edi, edi
or edx, 8
mov ecx, edx
and edx, 1
shr ecx, 1
neg edx
sar edx, 4
and edx, 0x7f
lea eax, [ecx + esi*8]
movzx eax, word [ebp + eax*2 + 0x104]
shr eax, 4
xor eax, edx
mov edx, ecx
add edi, dword [ebx + eax*4]
cmp edx, 1
jne 0x42cb65
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
add eax, edi
mov dword [ecx + esi*4], eax
inc esi
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], eax
cmp esi, 0x10
jb 0x42cb50
cmp esi, dword [esp + 0x24]
jae 0x42cc0a
lea eax, [esi - 0x10]
mov dword [esp + 0x2c], eax
nop
xor edi, edi
or eax, 0x100
mov edx, eax
and eax, 1
shr edx, 1
neg eax
sar eax, 4
and eax, 0x7f
movzx ecx, word [ebp + edx*2 + 0x204]
shr ecx, 4
xor ecx, eax
mov eax, edx
add edi, dword [ebx + ecx*4]
cmp eax, 1
jne 0x42cbc7
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
add eax, edi
mov dword [ecx + esi*4], eax
inc esi
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
cmp esi, dword [esp + 0x24]
jb 0x42cbc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x42e7b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x14], ecx
lea eax, [ecx + 0x32350]
mov dword [esp + 0xc], ebp
push edi
mov dword [esp + 0x14], eax
nop dword [eax + eax]
xor ebx, ebx
mov edi, ebp
lea eax, [ebx + 1]
lea ebp, [ebx + 4]
nop word [eax + eax]
movzx edx, word [ecx + eax*2 + 0x329f4]
mov esi, edi
and esi, 1
shr edx, 4
mov ecx, esi
shr edi, 1
neg ecx
add eax, eax
sar ecx, 4
or eax, esi
and ecx, 0x7f
xor edx, ecx
mov ecx, dword [esp + 0x18]
add ebx, dword [ecx + edx*4 + 0x30ca0]
sub ebp, 1
jne 0x42e7e0
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
inc ebp
mov dword [esp + 0x10], ebp
mov dword [edx], ebx
add edx, 4
mov dword [esp + 0x14], edx
cmp ebp, 0x10
jb 0x42e7d0
pop edi
pop esi
pop ebp
mov dword [ecx + 0x32390], 0
pop ebx
add esp, 0xc
ret
Function at 0x42e840
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x214
push ebx
push ebp
push esi
mov ebx, 4
push edi
mov edi, ecx
mov dword [esp + 0x10], ebx
nop word [eax + eax]
movzx eax, byte [edi + ebx + 0x304a0]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov edx, eax
shr ebp, 1
and edx, 1
dec ebp
or edx, 2
mov ecx, ebp
shl edx, cl
mov eax, ebx
sub eax, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x14], eax
lea esi, [eax + 1]
test ebp, ebp
je 0x42e8e4
mov ebx, dword [esp + 0x20]
nop word [eax + eax]
mov eax, esi
mov edx, ebx
sub eax, dword [esp + 0x1c]
and edx, 1
add eax, dword [esp + 0x18]
add esi, esi
shr ebx, 1
or esi, edx
movzx ecx, word [edi + eax*2 + 0x3290e]
mov eax, edx
neg eax
shr ecx, 4
sar eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [esp + 0x14]
add eax, dword [edi + ecx*4 + 0x30ca0]
mov dword [esp + 0x14], eax
sub ebp, 1
jne 0x42e8a0
mov ebx, dword [esp + 0x10]
mov dword [esp + ebx*4 + 0x24], eax
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, 0x80
jb 0x42e860
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], 4
sub ecx, edi
lea ebp, [edi + 0x31750]
lea esi, [edi + 0x32710]
mov dword [esp + 0x18], ebp
lea edx, [edi + 0x31b58]
mov dword [esp + 0x10], esi
sub ecx, 0x31b50
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ecx
nop
mov eax, dword [edi + 0x32394]
xor ebx, ebx
test eax, eax
je 0x42e992
nop dword [eax]
mov ebp, dword [esp + 0x10]
mov eax, ebx
xor esi, esi
or eax, 0x40
nop dword [eax + eax]
mov edx, eax
and eax, 1
shr edx, 1
neg eax
sar eax, 4
and eax, 0x7f
movzx ecx, word [ebp + edx*2]
shr ecx, 4
xor ecx, eax
mov eax, edx
add esi, dword [edi + ecx*4 + 0x30ca0]
cmp eax, 1
jne 0x42e950
mov ebp, dword [esp + 0x18]
mov dword [ebp + ebx*4], esi
inc ebx
mov eax, dword [edi + 0x32394]
cmp ebx, eax
jb 0x42e940
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, 0xe
cmp eax, ecx
jbe 0x42e9b7
nop dword [eax + eax]
mov eax, ecx
shr eax, 1
shl eax, 4
sub eax, 0x50
add dword [ebp + ecx*4], eax
inc ecx
cmp ecx, dword [edi + 0x32394]
jb 0x42e9a0
mov eax, dword [ebp]
mov ecx, 4
mov ebx, dword [esp + 0x1c]
mov dword [edx - 8], eax
mov eax, dword [ebp + 4]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
mov dword [edx + 4], eax
add edx, 8
nop word [eax + eax]
movzx eax, byte [edi + ecx + 0x304a0]
lea edx, [edx + 4]
inc ecx
mov eax, dword [ebp + eax*4]
add eax, dword [edx + ebx - 4]
mov dword [edx - 4], eax
cmp ecx, 0x80
jb 0x42e9e0
mov edx, dword [esp + 0x14]
sub esi, 0xffffff80
add ebp, 0x100
mov dword [esp + 0x10], esi
add edx, 0x200
mov dword [esp + 0x18], ebp
sub ebx, 0x200
mov dword [esp + 0x14], edx
sub dword [esp + 0x20], 1
mov dword [esp + 0x1c], ebx
jne 0x42e930
mov dword [edi + 0x3baf8], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret