joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5bc4b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x585015
lea edi, [esi - 0x184015]
push edi
or ebp, 0xffffffff
jmp 0x5bc4d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5bc4d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5bc4c8
mov eax, 1
add ebx, ebx
jne 0x5bc4eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5bc4fc
jne 0x5bc51b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5bc51b
dec eax
add ebx, ebx
jne 0x5bc508
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5bc4e0
add ebx, ebx
jne 0x5bc517
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5bc56d
xor ecx, ecx
sub eax, 3
jb 0x5bc533
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5bc5a2
sar eax, 1
mov ebp, eax
jmp 0x5bc53e
add ebx, ebx
jne 0x5bc53e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5bc50c
inc ecx
add ebx, ebx
jne 0x5bc54c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5bc50c
add ebx, ebx
jne 0x5bc559
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5bc54e
jne 0x5bc56a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5bc54e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5bc58c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5bc57e
jmp 0x5bc4ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5bc58c
add edi, ecx
jmp 0x5bc4ce
pop esi
mov edi, esi
mov ecx, 0x6b85
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5bc5aa
cmp byte [edi], 8
jne 0x5bc5aa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5bc5af
lea edi, [esi + 0x1ba000]
mov eax, dword [edi]
or eax, eax
je 0x5bc627
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1bc4d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1bc514]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5bc5dc
mov ecx, edi
jns 0x5bc60b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1bc51c]
or eax, eax
je 0x5bc621
mov dword [ebx], eax
add ebx, 4
jmp 0x5bc5f9
call dword [esi + 0x1bc518]
mov ebp, dword [esi + 0x1bc520]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5bc65b
sub esp, 0xffffff80
jmp 0x402178
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x439147]
shl eax, 2
mov dword [0x43914b], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0043008c
pop edx
call fcn.0042f428
call fcn.00430090
push 0
call fcn.00431028
pop ecx
push 0x4390f0
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x43914f], eax
push 0
jmp fcn.00436808

Function at 0x40292c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, eax
push esi
push edi
xor eax, eax
mov dword [ebp - 4], edx
mov dword [ebx + 0xc18], eax
mov edi, ecx
cmp byte [ebp + 8], 0
mov esi, 0x80000000
je 0x402955
or esi, 0x40000000
mov dword [ebp - 8], 1
cmp byte [ebx + 0x12], 0
jne 0x402968
cmp byte [ebp + 0xc], 0
je 0x40296c
or dword [ebp - 8], 2
call fcn.00409a34
test eax, eax
je 0x402998
test edi, edi
je 0x402998
cmp word [edi], 0
je 0x402998
push 0
push 0x8000000
push 3
push 0
push dword [ebp - 8]
push esi
push edi
call sub.KERNEL32.DLL_CreateFileW
mov esi, eax
jmp 0x4029b1
push 0
push 0x8000000
push 3
push 0
push dword [ebp - 8]
push esi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x4029ca
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x4029ca
mov dword [ebx + 0xc18], 1
xor eax, eax
cmp esi, 0xffffffff
mov byte [ebx + 0x13], 0
setne dl
mov dword [ebx + 0xc], eax
and edx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 9], dl
cmp byte [ebp - 9], 0
je 0x402a0c
mov dword [ebx + 4], esi
test edi, edi
je 0x4029fd
lea eax, [ebx + 0x416]
mov edx, edi
call fcn.00409264
push dword [ebp - 4]
add ebx, 0x15
push ebx
call fcn.00430340
add esp, 8
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x402be0
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0xc], 0
jne 0x402bef
cmp byte [ebx + 0x14], 0
jne 0x402bf3
xor eax, eax
pop ebx
ret
cmp dword [ebx + 4], 0xffffffff
je 0x402c00
mov eax, ebx
call fcn.00402b68
call fcn.00409a34
test eax, eax
je 0x402c29
cmp word [ebx + 0x416], 0
je 0x402c29
add ebx, 0x416
push ebx
call sub.KERNEL32.DLL_DeleteFileW
test eax, eax
setne al
and eax, 1
jmp 0x402c3a
add ebx, 0x15
push ebx
call sub.KERNEL32.DLL_DeleteFileA
test eax, eax
setne al
and eax, 1
pop ebx
ret
Function at 0x402c8c
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov esi, ecx
test esi, esi
mov edi, eax
mov dword [esp], edx
je 0x402dc4
mov eax, dword [edi + 0xc]
test eax, eax
je 0x402cc7
dec eax
je 0x402cb1
dec eax
je 0x402cbd
jmp 0x402cc7
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x402cc7
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
cmp dword [edi + 0xc], 0
je 0x402d19
xor ebp, ebp
cmp esi, ebp
jle 0x402d35
push 0
lea eax, [esp + 8]
push eax
mov edx, esi
sub edx, ebp
cmp edx, 0x4000
jge 0x402cec
mov ecx, esi
sub ecx, ebp
jmp 0x402cf1
mov ecx, 0x4000
push ecx
mov eax, dword [esp + 0xc]
add eax, ebp
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
je 0x402d35
add ebp, 0x4000
cmp esi, ebp
jg 0x402cd3
jmp 0x402d35
push 0
lea eax, [esp + 8]
push eax
push esi
push dword [esp + 0xc]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
jne 0x402dc0
cmp dword [edi + 0xc], 0
jne 0x402dc0
mov eax, edi
call fcn.00402f84
push edx
push eax
mov eax, esi
lea ebp, [edi + 0x15]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [esp + 8], eax
mov eax, ebp
mov dword [esp + 0xc], edx
call fcn.00403520
cmp edx, dword [esp + 0xc]
jne 0x402d79
cmp eax, dword [esp + 8]
jbe 0x402d99
jmp 0x402d7b
jle 0x402d99
cmp dword [esp + 0xc], 0
jne 0x402d8b
cmp dword [esp + 8], 0xffffffff
jbe 0x402d99
jmp 0x402d8d
jle 0x402d99
mov edx, ebp
mov eax, 0x43d8fc
call fcn.004288c4
mov edx, ebp
mov eax, 0x43d8fc
call fcn.004288f0
test al, al
jne 0x402cc7
mov edx, ebp
mov eax, 0x43d8fc
call fcn.00428898
jmp 0x402dc0
mov byte [edi + 8], 1
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x402e9c
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
push esi
push edi
push ecx
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x402ec3
cmp esi, 0x4e20
jle 0x402eb9
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [esp + 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x402f00
mov eax, ebx
call fcn.00403134
test al, al
je 0x402efb
cmp esi, 0x4e20
jle 0x402efb
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.00402e9c
jmp 0x402f03
or eax, 0xffffffff
jmp 0x402f03
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4032e4
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
call fcn.00409a34
test eax, eax
je 0x40330a
test ebx, ebx
je 0x40330a
cmp word [ebx], 0
je 0x40330a
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x403312
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x403325
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.00403814
xor eax, eax
jmp 0x403340
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x403334
cmp eax, 3
jne 0x40333b
mov eax, 2
jmp 0x403340
mov eax, 1
pop edi
pop esi
pop ebx
ret
Function at 0x4034e4
Capabilities:
Get disk information

Disassembly:
add esp, 0xfffffc00
mov edx, esp
call fcn.00401f80
cmp byte [esp], 0
je 0x4034fb
mov eax, esp
jmp 0x4034fd
xor eax, eax
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
je 0x403511
cmp eax, 5
je 0x403511
xor edx, edx
jmp 0x403516
mov edx, 1
mov eax, edx
add esp, 0x400
ret

Function at 0x403520
Capabilities:
Get disk size

Disassembly:
push ebx
push esi
add esp, 0xfffffbd0
mov ebx, eax
lea edx, [esp + 0x30]
mov eax, ebx
call fcn.00401f80
cmp dword [0x4391e8], 0
jne 0x40355e
push 0x4391f0
call sub.KERNEL32.DLL_GetModuleHandleA
mov esi, eax
test esi, esi
je 0x40355e
push str.GetDiskFreeSpaceExA
push esi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4391e8], eax
cmp dword [0x4391e8], 0
je 0x4035cd
lea edx, [esp + 0x30]
mov eax, ebx
call fcn.00401c8c
xor ecx, ecx
lea eax, [esp + 8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
push eax
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x18]
push eax
cmp byte [esp + 0x3c], 0
je 0x403598
lea edx, [esp + 0x3c]
jmp 0x40359a
xor edx, edx
push edx
call dword [0x4391e8]
test eax, eax
je 0x4035cd
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0xc]
ja 0x4035cd
mov eax, dword [esp + 0x14]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [esp + 0x18]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
jmp 0x40363a
lea ecx, [esp + 0x24]
push ecx
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x24]
push ecx
cmp byte [esp + 0x40], 0
je 0x4035ee
lea eax, [esp + 0x40]
jmp 0x4035f0
xor eax, eax
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
test eax, eax
jne 0x403603
mov eax, 0x163e00
xor edx, edx
jmp 0x40363a
mov eax, dword [esp + 0x18]
imul dword [esp + 0x1c]
xor edx, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x20]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
call fcn.0043329c
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add esp, 0x430
pop esi
pop ebx
ret

Function at 0x403644
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.00409a34
test eax, eax
je 0x40366f
test ebx, ebx
je 0x40366f
cmp word [ebx], 0
je 0x40366f
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret

Function at 0x4037e8
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.00409a34
test eax, eax
je 0x40380a
test ebx, ebx
je 0x40380a
cmp word [ebx], 0
je 0x40380a
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
pop esi
pop ebx
ret
Function at 0x403814
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
call fcn.00409a34
test eax, eax
je 0x403841
test ebx, ebx
je 0x403841
cmp word [ebx], 0
je 0x403841
push esi
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
setne al
and eax, 1
jmp 0x403850
push esi
push edi
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
setne al
and eax, 1
pop edi
pop esi
pop ebx
ret
Function at 0x4057cc
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
xor edx, edx
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], edx
ret
Function at 0x409708
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff6b0
mov ebp, edx
mov dword [esp], eax
push str.MAPI32.DLL
call sub.KERNEL32.DLL_LoadLibraryA
mov edi, eax
test edi, edi
jne 0x40972e
xor eax, eax
jmp 0x40998e
push str.MAPISendMail
push edi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jne 0x409751
push edi
call sub.KERNEL32.DLL_FreeLibrary
xor eax, eax
jmp 0x40998e
test ebp, ebp
je 0x40975f
xor edx, edx
mov dl, byte [ebp]
cmp edx, 0x2e
je 0x409763
xor ecx, ecx
jmp 0x409768
mov ecx, 1
mov byte [esp + 8], cl
cmp byte [esp + 8], 0
je 0x40977c
inc ebp
cmp byte [ebp], 0
jne 0x40977c
xor ebp, ebp
lea eax, [esp + 0xc]
push eax
lea edx, [esp + 0x14]
push edx
push 0x104
push dword [esp + 0xc]
call sub.KERNEL32.DLL_GetFullPathNameA
push 0x18
push 0
lea ecx, [esp + 0x11c]
push ecx
call fcn.004301c0
add esp, 0xc
mov dword [esp + 0x11c], 0xffffffff
lea eax, [esp + 0x10]
mov dword [esp + 0x120], eax
mov edx, dword [esp + 0xc]
mov dword [esp + 0x124], edx
push 0x30
push 0
lea ecx, [esp + 0x134]
push ecx
call fcn.004301c0
add esp, 0xc
mov dword [esp + 0x154], 1
lea eax, [esp + 0x114]
mov dword [esp + 0x158], eax
lea eax, [esp + 0x15c]
call fcn.0040999c
test ebp, ebp
je 0x4098f3
mov ebx, ebp
test ebx, ebx
je 0x4098d3
lea eax, [esp + 0x15c]
mov edx, 1
call fcn.004099d8
mov esi, dword [esp + 0x14c]
shl esi, 3
lea esi, [esi + esi*2]
add esi, dword [esp + 0x15c]
push 0x18
push 0
push esi
call fcn.004301c0
add esp, 0xc
push str.SMTP:
lea eax, [esp + 0x16c]
push eax
call fcn.00430340
add esp, 8
push ebx
lea edx, [esp + 0x16c]
push edx
call fcn.00430264
add esp, 8
push 0x43927e
push ebx
call fcn.00430489
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x409890
inc ebx
xor ecx, ecx
mov cl, byte [ebx]
push ecx
call fcn.00432ba0
pop ecx
test eax, eax
jne 0x409880
push 0x43927e
lea eax, [esp + 0x16c]
push eax
call fcn.00430489
add esp, 8
test eax, eax
je 0x4098ac
mov byte [eax], 0
mov dword [esi + 4], 1
lea edx, [esp + 0x168]
push edx
call fcn.00430514
pop ecx
mov dword [esi + 0xc], eax
inc dword [esp + 0x14c]
test ebx, ebx
jne 0x409814
mov ecx, dword [esp + 0x15c]
mov dword [esp + 0x150], ecx
mov eax, dword [esp + 0xc]
mov dword [esp + 0x134], eax
mov dword [esp + 0x130], eax
lea edx, [esp + 0x550]
push edx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
push 0
test ebp, ebp
je 0x409912
mov ecx, 1
jmp 0x409917
mov ecx, 9
push ecx
lea eax, [esp + 0x134]
push eax
push 0
push 0
call dword [esp + 0x18]
test eax, eax
sete bl
and ebx, 1
xor esi, esi
jmp 0x409949
lea eax, [esi + esi*2]
mov edx, dword [esp + 0x15c]
push dword [edx + eax*8 + 0xc]
call fcn.0042f348
pop ecx
inc esi
cmp esi, dword [esp + 0x160]
jl 0x409934
lea ecx, [esp + 0x550]
push ecx
call sub.KERNEL32.DLL_SetCurrentDirectoryA
push edi
call sub.KERNEL32.DLL_FreeLibrary
test bl, bl
je 0x409979
cmp byte [esp + 8], 0
je 0x409979
push dword [esp]
call fcn.00431c48
pop ecx
mov eax, ebx
push eax
lea eax, [esp + 0x160]
mov edx, 2
call fcn.004099ac
pop eax
add esp, 0x950
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409ab4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, 0x43e080
push edi
push ebp
mov ebp, edx
cmp dword [esi + 4], 0
mov edi, ecx
mov ebx, eax
jne 0x409ace
call fcn.00409a7c
mov eax, ebp
cmp edi, 8
jb 0x409b59
xor ebx, dword [eax]
xor edx, edx
mov dl, bl
sub edi, 8
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
xor ebx, dword [eax + 4]
add eax, 8
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
cmp edi, 8
mov ebx, ecx
jae 0x409ad9
xor edx, edx
jmp 0x409b73
mov ecx, ebx
xor cl, byte [eax + edx]
and ecx, 0xff
shr ebx, 8
mov ecx, dword [esi + ecx*4]
xor ecx, ebx
mov ebx, ecx
inc edx
cmp edi, edx
ja 0x409b5d
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409c0c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp], edx
mov edx, dword [esp]
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
xor edx, dword [eax + 0x204]
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
xor edx, dword [eax + 0x208]
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
mov ebx, dword [ecx + 8]
mov esi, dword [edx + 0xc]
xor ebx, dword [eax + 0x20c]
xor esi, dword [eax + 0x210]
xor edx, edx
mov ecx, esi
mov edi, esi
shr edi, 0x15
shl ecx, 0xb
or ecx, edi
mov edi, edx
and edi, 3
add ecx, ebx
xor ecx, dword [eax + edi*4 + 0x204]
mov ebp, ecx
mov edi, ecx
shr ebp, 8
and edi, 0xff
and ebp, 0xff
movzx edi, byte [eax + edi + 0x104]
movzx ebp, byte [eax + ebp + 0x104]
shl ebp, 8
or edi, ebp
mov ebp, ecx
shr ebp, 0x10
shr ecx, 0x18
and ebp, 0xff
and ecx, 0xff
movzx ebp, byte [eax + ebp + 0x104]
movzx ecx, byte [eax + ecx + 0x104]
shl ebp, 0x10
shl ecx, 0x18
or edi, ebp
or edi, ecx
mov ecx, ebx
xor edi, dword [esp + 4]
mov dword [esp + 0xc], edi
mov edi, ebx
shr edi, 0xf
shl ecx, 0x11
or ecx, edi
mov edi, edx
and edi, 3
xor ecx, esi
add ecx, dword [eax + edi*4 + 0x204]
mov ebp, ecx
mov edi, ecx
shr ebp, 8
and edi, 0xff
and ebp, 0xff
movzx edi, byte [eax + edi + 0x104]
movzx ebp, byte [eax + ebp + 0x104]
shl ebp, 8
or edi, ebp
mov ebp, ecx
shr ebp, 0x10
shr ecx, 0x18
and ebp, 0xff
and ecx, 0xff
movzx ebp, byte [eax + ebp + 0x104]
movzx ecx, byte [eax + ecx + 0x104]
shl ebp, 0x10
shl ecx, 0x18
or edi, ebp
or edi, ecx
xor edi, dword [esp + 8]
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov ecx, edi
mov esi, ecx
mov ebx, dword [esp + 0xc]
inc edx
cmp edx, 0x20
jl 0x409c5a
mov edx, dword [esp + 0x10]
xor ebx, dword [eax + 0x204]
mov dword [edx], ebx
xor esi, dword [eax + 0x208]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x10]
xor edx, dword [eax + 0x20c]
mov dword [ecx + 8], edx
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
xor edx, dword [eax + 0x210]
mov dword [ecx + 0xc], edx
mov edx, dword [esp]
call fcn.00409f58
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409dac
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov ebx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
xor ecx, dword [ebx + 0x204]
mov dword [esp], ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
xor ecx, dword [ebx + 0x208]
mov dword [esp + 4], ecx
mov eax, dword [esp + 0xc]
mov esi, dword [eax + 8]
mov eax, dword [esp + 0xc]
xor esi, dword [ebx + 0x20c]
mov edi, dword [eax + 0xc]
xor edi, dword [ebx + 0x210]
push 0x10
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00430150
add esp, 0xc
mov edx, 0x1f
mov eax, edi
mov ecx, edi
shr ecx, 0x15
shl eax, 0xb
or eax, ecx
mov ecx, edx
and ecx, 3
add eax, esi
xor eax, dword [ebx + ecx*4 + 0x204]
mov ebp, eax
mov ecx, eax
shr ebp, 8
and ecx, 0xff
and ebp, 0xff
movzx ecx, byte [ebx + ecx + 0x104]
movzx ebp, byte [ebx + ebp + 0x104]
shl ebp, 8
or ecx, ebp
mov ebp, eax
shr ebp, 0x10
shr eax, 0x18
and ebp, 0xff
and eax, 0xff
movzx ebp, byte [ebx + ebp + 0x104]
movzx eax, byte [ebx + eax + 0x104]
shl ebp, 0x10
shl eax, 0x18
or ecx, ebp
or ecx, eax
mov eax, esi
xor ecx, dword [esp]
mov dword [esp + 8], ecx
mov ecx, esi
shr ecx, 0xf
shl eax, 0x11
or eax, ecx
mov ecx, edx
and ecx, 3
xor eax, edi
add eax, dword [ebx + ecx*4 + 0x204]
mov ebp, eax
mov ecx, eax
shr ebp, 8
and ecx, 0xff
and ebp, 0xff
movzx ecx, byte [ebx + ecx + 0x104]
movzx ebp, byte [ebx + ebp + 0x104]
shl ebp, 8
or ecx, ebp
mov ebp, eax
shr ebp, 0x10
shr eax, 0x18
and ebp, 0xff
and eax, 0xff
movzx ebp, byte [ebx + ebp + 0x104]
movzx eax, byte [ebx + eax + 0x104]
shl ebp, 0x10
shl eax, 0x18
or ecx, ebp
or ecx, eax
xor ecx, dword [esp + 4]
mov dword [esp], esi
mov dword [esp + 4], edi
mov eax, ecx
mov edi, eax
mov esi, dword [esp + 8]
dec edx
test edx, edx
jge 0x409e08
mov eax, dword [esp + 0xc]
xor esi, dword [ebx + 0x204]
mov dword [eax], esi
xor edi, dword [ebx + 0x208]
mov edx, dword [esp + 0xc]
mov dword [edx + 4], edi
mov ecx, dword [esp]
mov eax, dword [esp + 0xc]
xor ecx, dword [ebx + 0x20c]
mov dword [eax + 8], ecx
mov eax, ebx
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0xc]
xor edx, dword [ebx + 0x210]
mov dword [ecx + 0xc], edx
lea edx, [esp + 0x10]
call fcn.00409f58
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x409f58
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, 0x43e080
xor ecx, ecx
movzx esi, byte [edx + ecx]
mov esi, dword [ebx + esi*4]
xor dword [eax + 0x204], esi
movzx esi, byte [edx + ecx + 1]
mov esi, dword [ebx + esi*4]
xor dword [eax + 0x208], esi
movzx esi, byte [edx + ecx + 2]
mov esi, dword [ebx + esi*4]
xor dword [eax + 0x20c], esi
movzx esi, byte [edx + ecx + 3]
mov esi, dword [ebx + esi*4]
xor dword [eax + 0x210], esi
add ecx, 4
cmp ecx, 0x10
jl 0x409f61
pop esi
pop ebx
ret
Function at 0x40a7c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 0
mov ebx, dword [ebp + 8]
jg 0x40a7e0
xor eax, eax
jmp 0x40a8a1
mov edx, dword [ebp - 0xc]
test edx, edx
jns 0x40a7ea
add edx, 0xf
sar edx, 4
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
add eax, 4
mov ecx, dword [eax]
xor ecx, dword [edx]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 4]
xor ecx, dword [edx + 4]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 8]
xor ecx, dword [edx + 8]
mov dword [ebp - 0x1c], ecx
mov ecx, ebx
mov eax, dword [eax + 0xc]
xor eax, dword [edx + 0xc]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
call fcn.0040ac3c
add dword [ebp - 8], 0x10
mov edx, dword [ebp - 0x14]
dec edx
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jle 0x40a87d
mov eax, ebx
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
xor ecx, dword [edx]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 4]
xor ecx, dword [edx + 4]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 8]
xor ecx, dword [edx + 8]
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax + 0xc]
xor eax, dword [edx + 0xc]
mov dword [ebp - 0x18], eax
add ebx, 0x10
lea edx, [ebp - 0x24]
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.0040ac3c
add dword [ebp - 8], 0x10
dec dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0
jg 0x40a839
mov eax, dword [ebp - 4]
add eax, 4
mov edx, ebx
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x14]
shl eax, 4
pop ebx
mov esp, ebp
pop ebp
ret 4