joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4056a0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e12a0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x651ea8]
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
mov dword [ebp - 0x20], esi
push 0
push 0
push 3
push 0
push 3
push 0
push str..PhysicalDrive0
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405715
push 0
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 0xf
push 0x61cc02
mov byte [esi], 0
call fcn.00406cf0
jmp 0x405863
mov dword [ebp - 0x38], fcn.00405890
mov dword [ebp - 0x34], edi
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
push 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
push eax
push 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0x2d1400
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push edi
movlpd qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x405791
push eax
mov dword [esi + 0x10], eax
mov ecx, esi
mov dword [esi + 0x14], 0xf
push 0x61cc02
mov byte [esi], al
call fcn.00406cf0
mov dword [ebp - 4], 1
jmp 0x405856
mov eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x20], eax
call fcn.00552c0b
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4057b6
push dword [ebp - 0x20]
push 0
push ebx
call fcn.0058fee0
add esp, 0xc
jmp 0x4057b8
xor ebx, ebx
mov dword [ebp - 0x30], ebx
push 0
lea eax, [ebp - 0x24]
inc ebp
fadd st(6), st(0)
inc ebp
cld
add dl, byte [eax - 1]
jne 0x4057a8
lea eax, [ebp - 0x1c]
push ebx
push 0xc
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, esi
test eax, eax
jne 0x40580e
push eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
push 0x61cc02
mov byte [esi], al
call fcn.00406cf0
test ebx, ebx
je 0x405805
push ebx
call fcn.00552c14
add esp, 4
mov dword [ebp - 4], 3
jmp 0x405856
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x40583e
push eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
push 0x61cc02
mov byte [esi], al
call fcn.00406cf0
push ebx
call fcn.00552c14
add esp, 4
mov dword [ebp - 4], 4
jmp 0x405856
add eax, ebx
push eax
call fcn.00406c40
push ebx
call fcn.00552c14
add esp, 4
mov dword [ebp - 4], 5
test edi, edi
je 0x405863
push edi
call fcn.00405890
add esp, 4
mov eax, esi
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.00552bec
mov esp, ebp
pop ebp
ret
Function at 0x4065a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x651ea8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
call fcn.004a6820
mov dword [esi + 0x6d7f30], eax
add esi, 4
cmp esi, 0x10
jb 0x4065b3
xor edx, edx
mov cl, 0x4a
call fcn.00406b30
mov edx, 1
mov byte [ebp - 0x28], al
mov cl, 0x79
call fcn.00406b30
mov edx, 2
mov byte [ebp - 0x27], al
mov cl, 0x54
call fcn.00406b30
mov edx, 3
mov byte [ebp - 0x26], al
mov cl, 0x78
call fcn.00406b30
mov edx, 4
mov byte [ebp - 0x25], al
mov cl, 0x74
call fcn.00406b30
mov edx, 5
mov byte [ebp - 0x24], al
mov cl, 0x48
call fcn.00406b30
mov edx, 6
mov byte [ebp - 0x23], al
mov cl, 0x6c
call fcn.00406b30
mov edx, 7
mov byte [ebp - 0x22], al
mov cl, 0x6a
call fcn.00406b30
mov edx, 8
mov byte [ebp - 0x21], al
mov cl, 0x48
call fcn.00406b30
mov edx, 9
mov byte [ebp - 0x20], al
mov cl, 0x4a
call fcn.00406b30
mov edx, 0xa
mov byte [ebp - 0x1f], al
mov cl, 0x6c
call fcn.00406b30
mov edx, 0xb
mov byte [ebp - 0x1e], al
mov cl, 0x56
call fcn.00406b30
mov edx, 0xc
mov byte [ebp - 0x1d], al
mov cl, 0x4a
call fcn.00406b30
mov edx, 0xd
mov byte [ebp - 0x1c], al
mov cl, 0x48
call fcn.00406b30
mov edx, 0xe
mov byte [ebp - 0x1b], al
mov cl, 0x6f
call fcn.00406b30
mov edx, 0xf
mov byte [ebp - 0x1a], al
mov cl, 0x72
call fcn.00406b30
mov edx, 0x10
mov byte [ebp - 0x19], al
mov cl, 0x52
call fcn.00406b30
mov edx, 0x11
mov byte [ebp - 0x18], al
mov cl, 0x4d
call fcn.00406b30
mov edx, 0x12
mov byte [ebp - 0x17], al
mov cl, 0x33
call fcn.00406b30
mov edx, 0x13
mov byte [ebp - 0x16], al
mov cl, 0x30
call fcn.00406b30
mov byte [ebp - 0x15], al
mov edx, 0x14
mov cl, 0x31
call fcn.00406b30
mov edx, 0x15
mov byte [ebp - 0x14], al
mov cl, 0x76
call fcn.00406b30
mov edx, 0x16
mov byte [ebp - 0x13], al
mov cl, 0x66
call fcn.00406b30
mov edx, 0x17
mov byte [ebp - 0x12], al
mov cl, 0x40
call fcn.00406b30
mov edx, 0x18
mov byte [ebp - 0x11], al
mov cl, 0x34
call fcn.00406b30
mov edx, 0x19
mov byte [ebp - 0x10], al
mov cl, 0x66
call fcn.00406b30
mov edx, 0x1a
mov byte [ebp - 0xf], al
mov cl, 0x76
call fcn.00406b30
mov edx, 0x1b
mov byte [ebp - 0xe], al
mov cl, 0x6a
call fcn.00406b30
mov edx, 0x1c
mov byte [ebp - 0xd], al
mov cl, 0x31
call fcn.00406b30
mov edx, 0x1d
mov byte [ebp - 0xc], al
mov cl, 0x30
call fcn.00406b30
mov edx, 0x1e
mov byte [ebp - 0xb], al
mov cl, 0x2d
call fcn.00406b30
mov edx, 0x1f
mov byte [ebp - 0xa], al
mov cl, 0x76
call fcn.00406b30
mov byte [ebp - 9], al
xor eax, eax
mov byte [ebp - 8], 0
pop esi
nop word [eax + eax]
lea ecx, [eax + 0x30]
xor byte [ebp + eax - 0x28], cl
inc eax
cmp eax, 0x20
jb 0x4067b0
push 0x10
lea eax, [ebp - 0x28]
mov byte [ebp - 8], 0
push eax
push 0x6d7f30
push 0x6d7f14
call fcn.004a6cb0
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
call fcn.00552bec
mov esp, ebp
pop ebp
ret
Function at 0x408740
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x651ea8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x20]
mov esi, ecx
push eax
push 3
call fcn.004b53b0
test al, al
je 0x408880
mov ecx, esi
call fcn.004b5300
movzx ecx, word [ebp - 0x1f]
cmp ecx, eax
jg 0x408880
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
push 7
call fcn.004b5580
test al, al
je 0x4087bc
mov eax, dword [ebp - 0x2b]
mov ecx, dword [ebp - 0x29]
add eax, 0xfffffff9
movzx ebx, ax
push ebx
mov dword [ebp - 0x24], ecx
call fcn.00552c0b
add esp, 4
mov edi, eax
mov ecx, esi
push edi
push ebx
call fcn.004b5580
test al, al
jne 0x4087cf
push edi
call fcn.00552c14
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00552bec
mov esp, ebp
pop ebp
ret
cmp dword [0x655770], 0x10
mov eax, 0x65575c
cmovae eax, dword [0x65575c]
push eax
call fcn.004a7200
mov ecx, dword [ebp - 0x24]
add esp, 4
call fcn.004078a0
push eax
lea ecx, [ebp - 0x1c]
call fcn.00406c40
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
push 0x61ce2c
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.00598636
mov esi, eax
add esp, 8
test esi, esi
jne 0x40881f
xor bl, bl
jmp 0x408834
push esi
push 1
push ebx
push edi
call fcn.0059886c
push esi
call fcn.00598946
add esp, 0x14
mov bl, 1
push edi
call fcn.00552c14
mov edx, dword [ebp - 8]
add esp, 4
cmp edx, 0x10
jb 0x40886d
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408863
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408893
push edx
push ecx
call fcn.00552bfd
add esp, 8
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00552bec
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00552bec
mov esp, ebp
pop ebp
ret
call fcn.005983fa
int3
Function at 0x409640
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea eax, [ebp - 4]
mov ebx, ecx
push eax
push 1
call dword [sym.imp.DevIL.dll_ilGenImages]
push dword [ebp - 4]
call dword [sym.imp.DevIL.dll_ilBindImage]
push 0x600
call dword [sym.imp.DevIL.dll_ilEnable]
push 0x602
call dword [sym.imp.DevIL.dll_ilOriginFunc]
mov edi, dword [ebp + 8]
push edi
push 0
call dword [sym.imp.DevIL.dll_ilLoad]
test al, al
jne 0x409696
mov eax, dword [ebp + 0xc]
pop edi
pop ebx
mov dword [eax], 2
xor al, al
mov esp, ebp
pop ebp
ret 8
push esi
mov esi, dword [sym.imp.DevIL.dll_ilGetInteger]
push 0xde4
call esi
cmp eax, 0x40
je 0x4096bd
mov eax, dword [ebp + 0xc]
pop esi
pop edi
pop ebx
mov dword [eax], 3
xor al, al
mov esp, ebp
pop ebp
ret 8
push 0xde5
call esi
cmp eax, 0x80
je 0x4096df
mov eax, dword [ebp + 0xc]
pop esi
pop edi
pop ebx
mov dword [eax], 4
xor al, al
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 4]
push eax
push 1
call dword [sym.imp.DevIL.dll_ilDeleteImages]
call dword [sym.imp.DevIL.dll_ilShutDown]
push 0x61ce5c
push edi
call fcn.00598636
mov esi, eax
add esp, 8
test esi, esi
jne 0x40970e
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 2
push 2
push 0
push esi
call fcn.00598ca1
push esi
call fcn.0059933f
push 0
push 0
push esi
mov dword [ebx + 0x390], eax
call fcn.00598ca1
push dword [ebx + 0x390]
call fcn.00552c0b
push esi
push 1
push dword [ebx + 0x390]
mov dword [ebx + 0x398], eax
push eax
call fcn.00599530
push esi
call fcn.00598946
push edi
call fcn.004a7b80
add esp, 0x38
mov dword [ebx + 0x394], eax
mov al, 1
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x414230
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp ecx, edx
jbe 0x414240
mov eax, ecx
mov ecx, edx
mov edx, eax
push esi
push edi
mov dword [ebp - 4], edx
xor eax, eax
lea edx, [ebp - 8]
mov dword [ebp - 8], ecx
mov edi, edx
lea ecx, [ebp]
xor esi, esi
cmp ecx, edi
sbb edi, edi
and edi, 0xfffffff8
add edi, 8
je 0x414273
movzx ecx, byte [edx]
lea edx, [edx + 1]
imul eax, eax, 0x1000193
inc esi
xor eax, ecx
cmp esi, edi
jb 0x414260
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418ac0
Capabilities:
Access peb ldr_data
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e1c7f
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x651ea8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [0x6d7a4c], ebx
mov dword [ebp - 4], 0
lea esi, [ebx + 4]
mov dword [ebx], vtable.CGuildMarkManager.0
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040f8e0
mov dword [esi], eax
lea esi, [ebx + 0xc]
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], esi
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040f8e0
mov dword [esi], eax
lea edi, [ebx + 0x14]
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], edi
mov ecx, edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00415bd0
mov dword [edi], eax
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0xf
mov byte [ebx + 0x1c], 0
mov byte [ebp - 4], 4
lea esi, [ebx + 0x34]
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00419540
mov dword [esi], eax
push str.mark
mov byte [ebp - 4], 5
call fcn.005a162e
mov esi, dword [ebp - 0x14]
add esp, 4
mov dword [ebp - 0x10], 0
push esi
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
call fcn.004160a0
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, 0x1900
jb 0x418ba5
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
Function at 0x41c5b0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e1ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x651ea8]
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 dword [ebp - 0x254], edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x41c75b
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.004a6e60
push 0x220
lea eax, [ebp - 0x24c]
push 0
push eax
call fcn.0058fee0
add esp, 0x10
mov dword [ebp - 0x250], 0x224
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x41c6a7
mov edi, dword [sym.imp.KERNEL32.dll_Module32Next]
nop word [eax + eax]
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x130]
cmovae edx, dword [ebp - 0x28]
call fcn.0041c560
test eax, eax
jne 0x41c6e2
push 0x220
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.0058fee0
add esp, 0xc
mov dword [ebp - 0x250], 0x224
lea eax, [ebp - 0x250]
push eax
push esi
call edi
test eax, eax
jne 0x41c660
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x41c75b
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41c751
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c779
jmp 0x41c751
lea edx, [ebp - 0x130]
lea edi, [edx + 1]
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x41c6f0
sub edx, edi
lea eax, [ebp - 0x130]
push edx
push eax
mov ecx, ebx
call fcn.00406cf0
mov ecx, dword [ebp - 0x254]
mov eax, dword [ebp - 0x23c]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x41c74d
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41c743
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c77e
push edx
push ecx
call fcn.00552bfd
add esp, 8
mov al, 1
jmp 0x41c75d
push edx
push ecx
call fcn.00552bfd
add esp, 8
xor al, al
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.00552bec
mov esp, ebp
pop ebp
ret
call fcn.005983fa
call fcn.005983fa
int3
Function at 0x420360
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x3c
push edi
xorps xmm0, xmm0
mov dword [esp + 0x3c], 0
lea eax, [esp + 0x1c]
push eax
movups xmmword [esp + 0x20], xmm0
movups xmmword [esp + 0x30], xmm0
call fcn.004202e0
push 0x61d870
push dword [ebp + 8]
call fcn.00598636
add esp, 8
mov edi, eax
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
movss xmm0, dword [esp + 0x24]
sub esp, 0x18
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0x38]
cvtps2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
movss xmm0, dword [esp + 0x34]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push str.CenterPos__f__f__f_n
push 0
push edi
call fcn.004cfd90
movss xmm0, dword [esp + 0x58]
add esp, 0xc
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0x50]
cvtps2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
movss xmm0, dword [esp + 0x54]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push str.CameraSetting__f__f__f_n
push 0
push edi
call fcn.004cfd90
movss xmm0, dword [esp + 0x54]
add esp, 0xc
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0x44]
cvtps2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
movss xmm0, dword [esp + 0x40]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push str.CmrPos__f__f__f_n
push 0
push edi
call fcn.004cfd90
cvttss2si eax, dword [esp + 0x54]
push eax
cvttss2si eax, dword [esp + 0x54]
push eax
cvttss2si eax, dword [esp + 0x54]
push eax
cvttss2si eax, dword [esp + 0x64]
push eax
cvttss2si eax, dword [esp + 0x6c]
push eax
cvttss2si eax, dword [esp + 0x74]
push eax
cvttss2si eax, dword [esp + 0x60]
push eax
cvttss2si eax, dword [esp + 0x60]
push eax
cvttss2si eax, dword [esp + 0x60]
push eax
push str.Line__x__dy__dz__ddistance__dpitch__drot__dup__dview__dcross__d__n
push 0
push edi
call fcn.004cfd90
add esp, 0x54
push edi
call fcn.00598946
add esp, 4
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x4236f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
push 0x40
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 6
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 0xc
Function at 0x442180
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
pop ebp
jmp fcn.004c6fa0
Function at 0x45ff90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x45ffbb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00460880
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x45ffdd
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x45ffdf
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x460063
jg 0x45fff4
test esi, esi
je 0x460063
test ecx, ecx
jl 0x46003d
jg 0x45fffe
test eax, eax
je 0x46003d
cmp edi, ecx
jg 0x460012
jl 0x460008
cmp esi, eax
jae 0x460012
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.0058f330
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x460040
mov edx, dword [ebp + 8]
test edi, edi
jl 0x460063
jg 0x46004a
test esi, esi
je 0x460063
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x460063
push eax
push esi
push 1
push edx
call fcn.0059886c
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x460080
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x4600ab
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00460960
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x4600cd
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x4600cf
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x46016e
jg 0x4600ec
test esi, esi
je 0x46016e
test ecx, ecx
jl 0x460139
jg 0x4600f6
test eax, eax
je 0x460139
cmp ebx, ecx
jg 0x46010a
jl 0x460100
cmp esi, eax
jae 0x46010a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.0058f330
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x460140
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x46016e
jg 0x46014a
test esi, esi
je 0x46016e
cmp dword [edi + 0x4c], 0
je 0x46016e
mov ecx, edi
call fcn.00460d30
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.00599530
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x460570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x651ea8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4605a0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00552bec
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4605dc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4605dc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00552bec
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4606ab
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x460604
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x460637
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.005a3e3c
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00552bec
mov esp, ebp
pop ebp
ret 4
mov al, bl
mov byte [ebp - 0x25], al
mov edx, dword [ecx]
cmp edx, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x4606c1
lea ecx, [ebp - 0x25]
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
push dword [esi + 0x4c]
movsx eax, al
push eax
call fcn.005a3e3c
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00552bec
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x46069b
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0059886c
add esp, 0x10
cmp edi, eax
jne 0x4606ab
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x4605c7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00552bec
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x4606ab
cmp eax, 1
jle 0x46067e
cmp eax, 3
jne 0x4606ab
mov al, byte [ebp - 0x25]
jmp 0x460652
Function at 0x460d60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x651ea8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x460df7
cmp byte [esi + 0x3d], 0
je 0x460df7
push 0xffffffffffffffff
call fcn.00460570
cmp eax, 0xffffffff
je 0x460db0
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx]
cmp edx, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x460e09
lea edi, [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0x28], edi
sub eax, 0
je 0x460dc2
sub eax, 1
je 0x460dc6
sub eax, 2
je 0x460df7
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00552bec
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
lea eax, [ebp - 0x24]
sub edi, eax
je 0x460de0
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0059886c
add esp, 0x10
cmp edi, eax
jne 0x460db0
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00552bec
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00552bec
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
mov edi, dword [ebp - 0x28]
jmp 0x460da1

Function at 0x469390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x58edadb9
xor ecx, ecx
cmp byte [ebp - 4], cl
jbe 0x4693cb
mov eax, dword [ebp - 4]
xor eax, 0x80164043
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub eax, 0x29e08a43
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ecx*4 + 0x6da5a0], eax
inc ecx
movzx eax, byte [ebp - 4]
cmp ecx, eax
jb 0x4693a2
movups xmm0, xmmword [0x6da63d]
push esi
xor esi, esi
movups xmmword [0x6d7f30], xmm0
nop dword [eax]
call fcn.004a6820
mov dword [esi + 0x6d7f30], eax
add esi, 4
cmp esi, 0x10
jb 0x4693e0
push 0x10
push 0x6da5c5
push 0x6d7f30
push 0x6d7f14
call fcn.004a6cb0
add esp, 0x10
pop esi
mov esp, ebp
pop ebp
ret