joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001820
Capabilities:
Generate random numbers via winapi
Query or enumerate registry key
Query or enumerate registry value
Set registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x104
push 0
mov dword [ebp - 0xc], edx
mov ebx, ecx
mov dword [ebp - 4], 0x104
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0
push 0
push 0
push 0
mov esi, eax
mov dword [ebp - 4], 0x104
lea eax, [ebp - 4]
mov edi, 1
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x100018b6
nop dword [eax]
lea eax, [ebp - 0x18]
push eax
push 0x2001f
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001892
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
call fcn.10001820
push 0
push 0
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x104
push eax
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
inc edi
cmp eax, 0x103
jne 0x10001870
push 0x2000
push 0
mov dword [ebp - 8], 0x2000
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 8]
mov dword [ebp - 0x18], eax
push ecx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x104
push eax
push 0
lea eax, [ebp - 4]
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov edi, eax
mov dword [ebp - 0x14], 1
cmp edi, 0x103
je 0x100019f8
nop dword [eax]
mov eax, dword [0x100040b0]
test eax, eax
jne 0x1000193a
push 0xf0000040
push 1
push eax
push eax
push 0x100040b0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10001a14
mov eax, dword [0x100040b0]
lea ecx, [ebp - 0x1c]
push ecx
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov eax, dword [ebp - 0x1c]
xor edx, edx
and eax, 0x7fffffff
div dword [ebp - 0xc]
test edx, edx
jne 0x100019bd
test edi, edi
jne 0x100019bd
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.AppInit_DLLs
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, edi
jg 0x1000198d
sub edi, eax
push str.AppInit_DLLs
add edi, esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
neg eax
sbb eax, eax
add eax, 1
jne 0x100019bd
push dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
mov ecx, edi
mov edx, dword [ebp - 8]
call section..text
add esp, 4
push dword [ebp - 8]
push edi
push dword [ebp - 0x10]
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x100019bd
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x2000
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x104
push eax
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
inc dword [ebp - 0x14]
mov edi, eax
cmp edi, 0x103
jne 0x10001910
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push dword [ebp - 0x18]
call esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10001fc0
Capabilities:
Generate random numbers via winapi
Get file size
Query environment variable
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x104
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x104
mov esi, eax
push esi
push str._SYSTEMROOT_executables.bin
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0x104
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
mov edi, eax
push edi
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push 6
push 3
push 0
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000204c
push 0x64
call ebx
jmp 0x10001fcf
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov eax, 0xfc0fc0fd
mul ecx
mov esi, edx
shr esi, 8
cmp esi, 1
jae 0x10002078
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
call ebx
jmp 0x10001fcf
mov eax, dword [0x100040b0]
test eax, eax
jne 0x100020a6
push 0xf0000040
push 1
push eax
push eax
push 0x100040b0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x100020a1
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x100040b0]
lea ecx, [ebp - 4]
push ecx
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov eax, dword [ebp - 4]
xor edx, edx
and eax, 0x7fffffff
div esi
push 0
imul eax, edx, 0x104
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x105
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0
mov esi, eax
lea eax, [ebp - 8]
push eax
push 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d04b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40d05a
pop dword [ebp - 0x3c]
mov eax, 0x7ea8123c
add eax, 0x8198be1e
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x1cbe2d03
add dword [ebp - 0x4c], 0x31941848
mov dword [ebp - 0x48], 0x1412070d
sub dword [ebp - 0x48], 0xe1debac8
mov dword [ebp - 0x44], 0xa7c693b2
sub dword [ebp - 0x44], 0x5b7a4f84
mov dword [ebp - 0x40], 0xf1829a16
sub dword [ebp - 0x40], 0xf1829a16
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x26344b3a
add dword [ebp - 0x4c], 0x4e3e1e1c
mov dword [ebp - 0x48], 0xdc541a2f
sub dword [ebp - 0x48], 0x9ae7b8ba
mov dword [ebp - 0x44], 0x518f1053
add dword [ebp - 0x44], 0x11e05c19
mov dword [ebp - 0x40], 0xd3a6c1a9
add dword [ebp - 0x40], 0x2c593e57
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x373f4
push 0
call eax
mov ecx, 0xc4a529ff
add ecx, 0x3b5b1c2d
xor edx, edx
add edx, eax
mov esi, 0x49b822ad
sub esi, 0x497632ad
add esi, dword [ebp - 0x3c]
mov ebx, 0x4dd8b5b5
xor dword [ebp - 0x30], edx
mov edi, dword [esi]
sub dword [ebp - 0x10], 0x99c7020c
xor edi, ebx
add dword [ebp - 0x20], 0x1162e1d3
mov dword [edx], edi
sub dword [ebp - 8], 0xae126034
add edx, 0x95c7539b
sub edx, 0x95c75397
add esi, 4
loop 0x40d16e
add eax, 0x10b83
xor ebx, ebx
add ebx, eax
add eax, 0x6e7a6af6
sub eax, 0x6e7a6af1
mov ecx, 0x400000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x10001500
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x17c
mov eax, dword [0x1001c004]
xor eax, esp
mov dword [esp + 0x174], eax
push ebx
mov ebx, ecx
mov ecx, 0x1a
push ebp
push esi
push edi
lea esi, [esp + 0x190]
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x1a
lea esi, [esp + 0x1f8]
lea edi, [esp + 0xb0]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0xb8]
lea esi, [esp + 0x260]
cdq
lea edi, [esp + 0x118]
mov dword [ebx + 0x38], eax
mov ecx, 0x1a
mov eax, dword [esp + 0xbc]
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x3c], edx
cdq
mov ecx, eax
mov esi, edx
mov eax, dword [esp + 0x124]
cdq
mov dword [ebx + 0x40], ecx
mov dword [ebx + 0x44], esi
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], edx
test esi, esi
jl 0x10001beb
jg 0x10001beb
cmp ecx, 4
jb 0x10001beb
test esi, esi
jg 0x10001beb
jl 0x100015ae
cmp ecx, 0x14
ja 0x10001beb
movzx eax, byte [ecx + 0x10001d44]
jmp dword [eax*4 + 0x10001d30]
push esi
push ecx
call dword [sym.imp.python39.dll_PyLong_FromLongLong]
mov edi, eax
add esp, 8
test edi, edi
jne 0x10001c09
lea eax, [edi + 0x79]
mov ecx, 0xf5a
jmp 0x10001cbc
push edi
push dword [0x1001d94c]
call dword [sym.imp.python39.dll_PyUnicode_Format]
mov esi, eax
add esp, 8
test esi, esi
jne 0x10001c49
mov ebp, dword [0x10019010]
lea eax, [esi + 0x79]
mov ecx, 0xf5c
mov dword [esp + 0x10], ecx
add dword [edi], 0xffffffff
jne 0x10001cc6
push edi
call dword [sym.imp.python39.dll__Py_Dealloc]
add esp, 4
lea eax, [esi + 0x79]
jmp 0x10001cc6
add dword [edi], 0xffffffff
mov ebx, dword [sym.imp.python39.dll__Py_Dealloc]
jne 0x10001c5a
push edi
call ebx
add esp, 4
mov ecx, dword [0x1001d9f4]
mov edx, esi
call fcn.1000f980
mov edi, eax
test edi, edi
jne 0x10001c8f
add dword [esi], 0xffffffff
lea eax, [edi + 0x78]
mov ebp, dword [0x10019010]
mov ecx, 0xf67
mov dword [esp + 0x10], ecx
jne 0x10001cc6
push esi
call ebx
add esp, 4
lea eax, [edi + 0x78]
jmp 0x10001cc6
add dword [esi], 0xffffffff
jne 0x10001c9a
push esi
call ebx
add esp, 4
sub esp, 8
mov ecx, edi
call fcn.1000fa60
add esp, 8
add dword [edi], 0xffffffff
jne 0x10001cb2
push edi
call ebx
add esp, 4
mov eax, 0x78
mov ecx, 0xf6c
mov ebp, dword [0x10019010]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
mov ecx, str.yt.utilities.lib.bounding_volume_hierarchy.BVH.__cinit__
push ebp
push eax
call fcn.10013690
add esp, 8
or esi, 0xffffffff
push 0x10eb
lea ecx, [esp + 0x4c]
call fcn.1000fc60
add esp, 4
lea ecx, [esp + 0xb0]
push 0x10ec
call fcn.1000fc60
add esp, 4
lea ecx, [esp + 0x118]
push 0x10ed
call fcn.1000fc60
mov ecx, dword [esp + 0x188]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10014351
add esp, 0x17c
ret
Function at 0x451dd0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x14000]
push edi
jmp 0x451dea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x451df1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x451de0
mov eax, 1
add ebx, ebx
jne 0x451e03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x451e14
jne 0x451e33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x451e33
dec eax
add ebx, ebx
jne 0x451e20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x451df8
add ebx, ebx
jne 0x451e2f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x451e85
xor ecx, ecx
sub eax, 3
jb 0x451e4b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x451eba
sar eax, 1
mov ebp, eax
jmp 0x451e56
add ebx, ebx
jne 0x451e56
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x451e24
inc ecx
add ebx, ebx
jne 0x451e64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x451e24
add ebx, ebx
jne 0x451e71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x451e66
jne 0x451e82
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x451e66
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x451ea4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x451e96
jmp 0x451de6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x451ea4
add edi, ecx
jmp 0x451de6
pop esi
mov edi, esi
mov ecx, 0xe6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x451ec2
cmp byte [edi], 0
jne 0x451ec2
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 0x451ec7
lea edi, [esi + 0x4b000]
mov eax, dword [edi]
or eax, eax
je 0x451f36
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5146c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x514c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x451ef4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x514cc]
or eax, eax
je 0x451f30
mov dword [ebx], eax
add ebx, 4
jmp 0x451f11
call dword [esi + 0x514c8]
mov ebp, dword [esi + 0x514d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x451f6a
sub esp, 0xffffff80
jmp 0x40c0ac
Function at 0x416ca0
Capabilities:
Create thread

Disassembly:
push str.EAGLS_MouthMoveEvent
push 1
push 1
push 0
call dword [0x45a080]
push 0x834d88
push 0
mov dword [0x834d84], eax
mov eax, dword [esp + 0xc]
push eax
push 0x416d70
push 0
push 0
call fcn.0043fcfe
mov dword [0x834d80], eax
add esp, 0x18
mov eax, 1
ret

Function at 0x4181b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x44650
call fcn.0043fa90
push ebx
push ebp
push esi
mov esi, 0x2710
push edi
mov dword [esp + 0x10], esi
mov ecx, 0x1388
lea esp, [esp]
mov eax, esi
cdq
idiv ecx
test edx, edx
je 0x4181df
dec ecx
cmp ecx, 2
jge 0x4181d0
cmp ecx, 1
je 0x4181ea
dec esi
cmp esi, 2
jge 0x4181c7
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x88ca0]
lea edx, [esp + 0x4469a]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x418200
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push esi
call dword [0x45a074]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x418236
mov dword [esp + 0x446cc], eax
jmp 0x418381
mov ecx, 0xb
mov esi, 0x45ded0
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
mov ecx, 0x14
lea edi, [esp + 0x4f]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
push 0x445c0
dec ecx
push 2
mov dword [esp + 0x20], ecx
call dword [0x45a090]
mov ebp, eax
test ebp, ebp
jne 0x41828e
push 0x45df00
call fcn.00405210
add esp, 4
jmp 0x418381
push ebp
call dword [0x45a08c]
mov edi, dword [0x45a088]
push 0
mov esi, eax
lea eax, [esp + 0x20]
push eax
push 0x445c0
push esi
push ebx
call edi
push 0
lea ecx, [esp + 0x20]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push ebx
call edi
push ebx
call dword [0x45a0c8]
mov eax, dword [esp + 0x14]
push eax
call fcn.0043f9b2
add esp, 4
xor edi, edi
call fcn.0043f9bf
cdq
idiv dword [esp + 0x18]
mov cl, byte [esp + edx + 0x20]
xor byte [edi + esi], cl
inc edi
cmp edi, 0x445c0
jb 0x4182d4
mov ecx, 0x11170
lea edi, [esp + 0xa0]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
xor eax, eax
mov ecx, 0x11170
lea edi, [esp + 0x446d0]
push esi
lea edx, [esp + 0xa4]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x446d8]
push eax
call fcn.00417fc0
add esp, 0xc
push ebp
mov dword [esp + 0x88ca0], eax
mov dword [esp + 0x88c9c], esi
call dword [0x45a0cc]
push ebp
call dword [0x45a0c0]
mov esi, dword [esp + 0x88ca4]
lea edx, [esp + 0x44668]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x418357
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push esi
call dword [0x45a074]
mov dword [esp + 0x446cc], eax
mov eax, dword [esp + 0x44664]
lea esi, [esp + 0x44668]
mov edi, eax
mov ecx, 0x1118e
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44650
ret
Function at 0x418580
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x44650
call fcn.0043fa90
push ebx
push ebp
push esi
mov esi, 0x2710
push edi
mov dword [esp + 0x10], esi
mov ecx, 0x1388
lea esp, [esp]
mov eax, esi
cdq
idiv ecx
test edx, edx
je 0x4185af
dec ecx
cmp ecx, 2
jge 0x4185a0
cmp ecx, 1
je 0x4185ba
dec esi
cmp esi, 2
jge 0x418597
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x88ca0]
lea edx, [esp + 0x4469a]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4185d0
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push esi
call dword [0x45a074]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x418613
push 0x45dfac
mov dword [esp + 0x446d0], eax
call fcn.00405210
add esp, 4
jmp 0x4187ca
mov ecx, 0xb
mov esi, 0x45dfdc
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
mov ecx, 0x14
lea edi, [esp + 0x4f]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
push 0x445c0
dec ecx
push 2
mov dword [esp + 0x20], ecx
call dword [0x45a090]
mov ebp, eax
test ebp, ebp
jne 0x41866b
push 0x45e00c
call fcn.00405210
add esp, 4
jmp 0x4187ca
push ebp
call dword [0x45a08c]
mov edi, dword [0x45a088]
push 0
mov esi, eax
lea eax, [esp + 0x20]
push eax
push 0x445c0
push esi
push ebx
call edi
push 0
lea ecx, [esp + 0x20]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push ebx
call edi
push ebx
call dword [0x45a0c8]
mov eax, dword [esp + 0x14]
push eax
call fcn.0043f9b2
add esp, 4
xor edi, edi
call fcn.0043f9bf
cdq
idiv dword [esp + 0x18]
mov cl, byte [esp + edx + 0x20]
xor byte [edi + esi], cl
inc edi
cmp edi, 0x445c0
jb 0x4186b1
mov ecx, 0x11170
lea edi, [esp + 0xa0]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
xor eax, eax
mov ecx, 0x11170
lea edi, [esp + 0x446d0]
push esi
lea edx, [esp + 0xa4]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x446d8]
push eax
call fcn.00417fc0
mov edi, dword [0x45a0cc]
add esp, 0xc
push ebp
mov dword [esp + 0x88ca0], eax
mov dword [esp + 0x88c9c], esi
call edi
push ebp
call dword [0x45a0c0]
mov esi, dword [esp + 0x88ca4]
lea edx, [esp + 0x44668]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x418736
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push esi
call dword [0x45a074]
cmp eax, 0xffffffff
mov dword [esp + 0x446cc], eax
jne 0x418774
push 0x45e048
call fcn.00405210
add esp, 4
jmp 0x4187ca
push 0x2dc6c0
push 2
call dword [0x45a090]
test eax, eax
mov dword [esp + 0x88c90], eax
jne 0x41879b
push 0x45e070
call fcn.00405210
add esp, 4
jmp 0x4187ca
push eax
call dword [0x45a08c]
mov edx, dword [esp + 0x446cc]
push 0
lea ecx, [esp + 0x88c98]
push ecx
push 0x2dc6c0
push eax
push edx
call dword [0x45a088]
mov eax, dword [esp + 0x88c90]
push eax
call edi
mov eax, dword [esp + 0x44664]
lea esi, [esp + 0x44668]
mov edi, eax
mov ecx, 0x1118e
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44650
ret
Function at 0x418bc0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x21c
push ebx
push ebp
push esi
push edi
mov ecx, 0xb
mov esi, 0x45e160
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
mov ecx, 0x14
lea edi, [esp + 0x5b]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x1c], ecx
mov ecx, 0xf
mov esi, 0x45e190
lea edi, [esp + 0xac]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x11
lea edi, [esp + 0xe8]
push 0x45e1cc
rep stosd dword es:[edi], eax
lea eax, [esp + 0x130]
push 0x45e1dc
push eax
call fcn.0043fa31
add esp, 0xc
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x144]
push ecx
call dword [0x45a074]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x418c80
push 0x45e1e4
call fcn.00405210
add esp, 4
push ebx
call dword [0x45a0c8]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x21c
ret
mov edi, dword [0x45a090]
push 0x1312d00
push 2
call edi
mov esi, eax
test esi, esi
mov dword [esp + 0x24], esi
jne 0x418cb3
push 0x45e200
call fcn.00405210
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x21c
ret
push 0x1312d00
push 2
call edi
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x20], ebp
jne 0x418ce0
push 0x45e228
call fcn.00405210
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x21c
ret
push esi
mov esi, dword [0x45a08c]
call esi
mov edi, eax
push ebp
mov dword [esp + 0x2c], edi
call esi
push 0
lea edx, [esp + 0x1c]
push edx
mov ebp, eax
push 0x80
lea eax, [esp + 0xb8]
push eax
push ebx
call dword [0x45a078]
mov ecx, 0xe527
mov esi, 0x7fb840
push 0x3949c
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x2c]
push ebp
push ecx
call fcn.00404f30
mov edi, dword [0x45a078]
add esp, 0xc
push 0
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x1c], eax
push 4
lea eax, [esp + 0x20]
push eax
push ebx
call edi
call dword [0x45a2dc]
xor edx, edx
mov ecx, 0xff
div ecx
mov byte [esp + 0x13], dl
movsx edx, dl
push edx
call fcn.0043f9b2
mov eax, dword [esp + 0x18]
add esp, 4
xor esi, esi
test eax, eax
jle 0x418d91
call fcn.0043f9bf
cdq
idiv dword [esp + 0x1c]
mov cl, byte [esi + ebp]
mov al, byte [esp + edx + 0x2c]
xor cl, al
mov byte [esi + ebp], cl
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jl 0x418d72
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
push ebp
push ebx
call edi
push 0
lea edx, [esp + 0x1c]
push edx
push 1
lea eax, [esp + 0x1f]
push eax
push ebx
call edi
mov ebp, dword [esp + 0x24]
mov esi, dword [0x45a0cc]
push ebp
call esi
mov edi, dword [esp + 0x20]
push edi
call esi
mov esi, dword [0x45a0c0]
push ebp
call esi
push edi
call esi
push ebx
call dword [0x45a0c8]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x21c
ret
Function at 0x418df0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x218
push ebx
push ebp
push esi
push edi
push str.GlobalSave.sav
lea eax, [esp + 0x12c]
push str.Save_s
push eax
call fcn.0043fa31
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea ecx, [esp + 0x140]
push ecx
call dword [0x45a074]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x418faa
mov ecx, 0xb
mov esi, 0x45e268
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [0x45a090]
xor eax, eax
mov ecx, 0x14
lea edi, [esp + 0x57]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
push 0x1312d00
dec ecx
push 2
mov dword [esp + 0x28], ecx
mov byte [esp + 0x1b], al
call esi
mov ebp, eax
test ebp, ebp
jne 0x418ea5
push 0x45e298
call fcn.00405210
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret
push 0x1312d00
push 2
call esi
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x418ed0
push 0x45e2c0
call fcn.00405210
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret
mov edi, dword [0x45a08c]
push ebp
call edi
mov edx, dword [esp + 0x1c]
push edx
mov esi, eax
call edi
mov edi, dword [0x45a088]
push 0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
push eax
push 0x80
lea ecx, [esp + 0xb4]
push ecx
push ebx
call edi
push 0
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [esp + 0x24]
push eax
push ebx
call edi
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push esi
push ebx
call edi
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0x1f]
push ecx
push ebx
call edi
push ebx
call dword [0x45a0c8]
movsx edx, byte [esp + 0x13]
push edx
call fcn.0043f9b2
mov eax, dword [esp + 0x1c]
add esp, 4
xor edi, edi
test eax, eax
jle 0x418f73
call fcn.0043f9bf
cdq
idiv dword [esp + 0x20]
mov bl, byte [edi + esi]
mov al, byte [esp + edx + 0x28]
xor bl, al
mov byte [edi + esi], bl
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
jl 0x418f54
push eax
push esi
mov esi, dword [esp + 0x2c]
push esi
call fcn.00402270
add esp, 0xc
mov ecx, 0xe527
mov edi, 0x7fb840
rep movsd dword es:[edi], dword [esi]
mov esi, dword [0x45a0cc]
push ebp
call esi
mov edi, dword [esp + 0x1c]
push edi
call esi
mov esi, dword [0x45a0c0]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x218
ret