joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
mov eax, 1
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
xor ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
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 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
mov ecx, edi
jns 0x41989b
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 + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
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 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x407010
Capabilities:
Enumerate pe sections

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

Function at 0x407120
Capabilities:
Parse pe header

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

Function at 0x407ec0
Capabilities:
Encode data using xor

Disassembly:
push ebp
fsub st(4), st(0)
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 0x18]
jb 0x407f20
adc al, 0x50
mov eax, dword [ebp + 0x7f]
push 1
push cs
dec ebp
or al, 0x52
mov edx, dword [ebp + 0x44]
push eax
push ecx
push edx
call 0x407fc0
or dword [eax], 0x1c
pop ebp
ret
in eax, dx
mov edi, ebx
jp 0x407f33
fucomp st(3)
or cl, bl
test al, 0xdd
mov edi, 0x101c708
add byte [eax], al
add byte [ebx + 0x558b0c4d], cl
or byte [ebp + 0x515e5745], cl
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp + 0x57]
pop esi
push ecx
push edx
call dword [0xcc40a518]
frstor dword [esi - 0x13ba22f7]
fcomp qword [0x405b30]
in eax, 0x56
xor byte [ebx + 0x40], bl
add ch, ah
push esi
or al, 0xdf
loopne 0x407f4d
cmpsd dword [esi], dword es:[edi]
inc esp
jnp 0x407fcd
lea esi, [eax + 0x50]
push eax
jbe 0x407fba
dec ebp
inc ebp
push esi
fdiv st(5), st(0)
xor byte [esi], al
inc eax
add bh, bl
loopne 0x407f64
les eax, [ebx + edi*2 + 0x48]
fld qword [ebp - 0x65]
fmul qword [0x6bbec310]
lea eax, [ebp - 0x14]
push eax
sbb dword [edx + 0x331c2b08], 0xffffffff
adc eax, 0x403f18
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
push edi
add eax, 0x40c308
int3
lea eax, [ebx + 0x4d]
cmp esi, eax
jae 0x407fd3
mov dl, byte [esi]
push esi
mov dword [edi + 0x46], 0xf672f0e4
jmp 0x40801d
xchg ebp, eax
in al, 8
fmul qword [eax + 0x30]
ret 0x68
mov eax, dword [ebp + 0x10]
pop edi
xor al, 0x18
mov eax, dword [ebp - 0x58]
test eax, eax
test dword [esi - 0x7403ea7d], 0xf33b144d
jae 0x408047
mov eax, dword [ebp + 0x10]
pop edi
neg eax
jg 0x40803d
mov byte [ebx], 0
add eax, dword [eax]
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
fcmovnb st(0), st(3)
mov edx, dword [ebp - 0x7c]
and bh, dh
mov dword [ecx], edx
ja 0x40808c
fld qword [ebp - 0x34]
lea eax, [ebx - 0x31]
cmp edi, eax
jae 0x40808a
fmul qword [0x40c2f8]
lea eax, [ebp - 0xc]
push eax
sub esp, 0x1f
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_modf]
fld qword [ebp - 0xc]
add esp, 0xc
jl 0x40807d
xor eax, 0x4d8b0000
adc al, 0x5f
test al, 0x20
add al, 0x30
cwde
pop es
inc edi
mov eax, 0x8a91d0fe
fmul dword [ebp - 0xdc4aff6]
mov bl, al
lea ecx, [edx]
push eax
cmp esi, edx
jb 0x4080a0
pop edi
rcr byte [eax - 0x3c4500b1], 1
pop esi
push esp
invalid
Function at 0x430000
Capabilities:
Packed with generic packer

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax - 0x6f6f6f70], dl
nop
nop
nop
nop
nop
pushal
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42ffd9
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4012e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Read file on windows

Disassembly:
mov eax, 0x1010
call fcn.00451ab0
push esi
push 0
push 0x20
push 3
push 0
push 0
push DirectSoundCreate
push str.save_sj_glb.dat
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40131a
xor eax, eax
pop esi
add esp, 0x1010
ret
push ebx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x18]
push eax
push 8
lea ecx, [esp + 0x24]
push ecx
push esi
call edi
push 0
lea edx, [esp + 0x18]
push edx
push 0x1000
lea eax, [esp + 0x2c]
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x18]
xor eax, eax
xor dword [esp + eax*4 + 0x20], ebx
inc eax
cmp eax, 0x400
jb 0x401355
xor ecx, ecx
xor eax, eax
xor edi, edi
xor esi, esi
xor edx, edx
jmp 0x401370
movzx ebp, byte [esp + eax*4 + 0x20]
add ecx, ebp
movzx ebp, byte [esp + eax*4 + 0x24]
add edx, ebp
movzx ebp, byte [esp + eax*4 + 0x28]
add esi, ebp
movzx ebp, byte [esp + eax*4 + 0x2c]
add eax, 4
add edi, ebp
cmp eax, 0x400
jb 0x401370
add edi, esi
add edi, edx
add ecx, edi
pop edi
pop ebp
cmp ebx, 0xf2dd390a
pop ebx
jne 0x401310
cmp dword [esp + 0x10], ecx
jne 0x401310
mov edx, dword [esp + 4]
push 0x1000
lea ecx, [esp + 0x18]
push ecx
add edx, 0x62c
push edx
call fcn.00451ae0
add esp, 0xc
mov eax, 1
pop esi
add esp, 0x1010
ret

Function at 0x4013e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Set file attributes
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.00451ab0
push esi
push edi
xor edx, edx
lea eax, [ecx + 0x634]
mov esi, 0x100
push ebx
lea ebx, [ebx]
movzx ebx, byte [eax - 4]
movzx edi, byte [eax - 8]
add edi, ebx
movzx ebx, byte [eax + 4]
add edi, ebx
movzx ebx, byte [eax]
add ebx, edx
add eax, 0x10
sub esi, 1
lea edx, [ebx + edi]
jne 0x401400
xor eax, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0xf2dd390a
add ecx, 0x62c
pop ebx
jmp 0x401440
mov edx, dword [ecx]
xor edx, 0xf2dd390a
mov dword [esp + eax*4 + 0x14], edx
inc eax
add ecx, 4
cmp eax, 0x400
jb 0x401440
push 0x20
push str.save_sj_glb.dat
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push str.save_sj_glb.dat
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401490
pop edi
xor eax, eax
pop esi
add esp, 0x100c
ret
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0xc]
push eax
push 8
lea ecx, [esp + 0x18]
push ecx
push esi
call edi
push 0
lea edx, [esp + 0xc]
push edx
push 0x1000
lea eax, [esp + 0x20]
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x100c
ret
Function at 0x4016c0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push edi
push 0
push 0x20
push 3
push 0
push 0
push DirectSoundCreate
push str.sj_cnf.dat
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4016ec
pop edi
xor eax, eax
pop esi
pop ecx
ret
push 0
lea eax, [esp + 0xc]
push eax
push 0x150
add edi, 0x162c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
pop ecx
ret

Function at 0x401720
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ecx
push esi
push edi
push 0x20
push str.sj_cnf.dat
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push str.sj_cnf.dat
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401759
pop edi
xor eax, eax
pop esi
pop ecx
ret
push 0
lea eax, [esp + 0xc]
push eax
push 0x150
add edi, 0x162c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
pop ecx
ret

Function at 0x401850
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push edi
push 0
push 0x20
push 3
push 0
push 0
push DirectSoundCreate
push str.sj_btn.dat
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40187c
pop edi
xor eax, eax
pop esi
pop ecx
ret
push 0
lea eax, [esp + 0xc]
push eax
push 7
add edi, 0x177c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
pop ecx
ret

Function at 0x4018b0
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ecx
push esi
push edi
push 0x20
push str.sj_cnf.dat
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push str.sj_btn.dat
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4018e9
pop edi
xor eax, eax
pop esi
pop ecx
ret
push 0
lea eax, [esp + 0xc]
push eax
push 7
add edi, 0x177c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x4138d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x38
mov eax, dword [0x4a8f7c]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x48]
mov ebx, ecx
call fcn.00413600
push 0x4839a0
lea ebp, [ebx + 0x38]
push esi
push ebp
call fcn.00452ca0
mov eax, dword [ebp]
add esp, 0xc
test eax, eax
jne 0x413919
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00451800
add esp, 0x38
ret 4
push edi
push 0
push 0
lea edi, [ebx + 0x40]
push edi
push eax
call fcn.00443b80
add esp, 0x10
test eax, eax
jge 0x413952
mov eax, dword [ebp]
push eax
call fcn.00452880
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00451800
add esp, 0x38
ret 4
push 0xffffffffffffffff
push edi
call fcn.00444390
mov esi, eax
add esp, 8
test esi, esi
jne 0x41398f
push edi
call fcn.00442ee0
mov ecx, dword [ebp]
push ecx
call fcn.00452880
add esp, 8
pop edi
mov dword [ebp], esi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00451800
add esp, 0x38
ret 4
push 0xffffffffffffffff
push edi
call fcn.00443c90
mov edx, dword [esi + 8]
imul edx, dword [esi + 4]
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fmulp st(1)
fadd st(0), st(0)
fstp qword [esp]
call fcn.00452d40
add esp, 8
call fcn.004526e0
mov edi, dword [esi + 4]
lea edx, [eax + 0x2e]
lea ecx, [edx - 8]
mov dword [esp + 0x18], ecx
mov ecx, 0x12
mov word [esp + 0x38], cx
mov ecx, 1
mov word [esp + 0x28], cx
movzx ecx, word [esi + 4]
mov word [esp + 0x2a], cx
mov ecx, dword [esi + 8]
imul edi, ecx
mov dword [esp + 0x2c], ecx
movzx ecx, word [esi + 4]
add cx, cx
mov word [esp + 0x34], cx
add edi, edi
mov ecx, 0x10
mov word [esp + 0x36], cx
mov dword [esp + 0x30], edi
lea edi, [ebx + 8]
mov dword [esp + 0x40], eax
mov ecx, 0xc
lea esi, [esp + 0x14]
mov dword [esp + 0x14], 0x46464952
mov dword [esp + 0x1c], 0x45564157
mov dword [esp + 0x20], 0x20746d66
mov dword [esp + 0x24], 0x12
mov dword [esp + 0x3a], 0x61746164
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov dword [ebx + 4], edx
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00451800
add esp, 0x38
ret 4

Function at 0x414bf0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x414bfb
ret 8
push esi
push 0
push 0x20
push 3
push 0
push 0
push DirectSoundCreate
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414c1f
xor eax, eax
pop esi
ret 8
push edi
mov edi, dword [esp + 0x10]
push 0
lea eax, [esp + 0x10]
push eax
push 0xab00
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [edi], 0x78766173
push esi
je 0x414c4e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
ret 8
cmp dword [edi + 4], 0xade98f20
jne 0x414c41
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
ret 8
Function at 0x414d60
Capabilities:
Set file attributes
Write file on windows

Disassembly:
sub esp, 0xc
push esi
push 0x20
push str.savemode.dat
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push str.savemode.dat
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414d9b
xor eax, eax
pop esi
add esp, 0xc
ret 4
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 8]
push ecx
push 8
lea edx, [esp + 0x14]
push edx
push esi
mov dword [esp + 0x1c], 0xadff3fcf
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
add esp, 0xc
ret 4

Function at 0x414de0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0xac10
call fcn.00451ab0
mov eax, dword [0x4a8f7c]
xor eax, esp
mov dword [esp + 0xac0c], eax
push ebx
push esi
push edi
push 0
push 0x20
push 3
push 0
push 0
push DirectSoundCreate
push str.savemode.dat
mov edi, ecx
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x414ea6
push 0
lea eax, [esp + 0x18]
push eax
push 8
lea ecx, [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0xc], 0xadff3fcf
jne 0x414e9f
mov esi, dword [esp + 0x10]
cmp esi, 0x64
jae 0x414e93
push 0x100
lea edx, [esp + 0xab1c]
push 0
push edx
call fcn.00451810
lea eax, [esi + 1]
push eax
lea ecx, [esp + 0xab28]
push str.save_sj_save_03d.dat
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xab1c]
push eax
mov ecx, edi
call fcn.00414bf0
test eax, eax
jne 0x414e9f
push 0xffffffffffffffff
mov ecx, edi
or esi, 0xffffffff
call fcn.00414d60
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xac18]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00451800
add esp, 0xac10
ret
Function at 0x417a50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
mov dword [ebp - 4], eax
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], edx
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
xor byte [eax], bl
inc eax
ror ebx, 8
dec ecx
jne 0x417a70
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417bc0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x48
mov eax, dword [0x4a8f7c]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x4c]
push ebx
mov ebx, ecx
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x98]
push esi
mov dword [esp + 0x14], ebx
test eax, eax
je 0x417bf1
push eax
call fcn.00451890
add esp, 4
push 0
push 0x20
push 3
push 0
push 0
push DirectSoundCreate
push str.sj_red.dat
mov dword [ebx + 0x98], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x417c31
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00451800
add esp, 0x48
ret 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x10
lea edx, [esp + 0x28]
push edx
push esi
call edi
cmp dword [esp + 0x1c], 6
jne 0x417c5a
cmp dword [esp + 0x20], 0x27768
je 0x417c77
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00451800
add esp, 0x48
ret 4
mov eax, dword [esp + 0x24]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
push ebp
neg ecx
or ecx, eax
push ecx
call fcn.00451980
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x417ca7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x417dd3
mov ecx, dword [esp + 0x28]
push 0
lea eax, [esp + 0x14]
push eax
lea edx, [ecx*4]
push edx
push ebp
push esi
call edi
mov eax, dword [ebp]
mov ecx, dword [esp + 0x28]
push 0
push 0
lea edx, [eax + ecx*4 + 0x10]
push edx
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x14]
push eax
push 0x24
lea ecx, [esp + 0x3c]
push ecx
push esi
call edi
push 0
lea edx, [esp + 0x14]
push edx
push 0x44
add ebx, 0x54
push ebx
push esi
call edi
mov eax, dword [esp + 0x14]
push eax
push ebx
call fcn.00453270
add esp, 8
test eax, eax
je 0x417d69
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, eax
jae 0x417dc3
mov ecx, dword [ebp + ecx*4]
push 0
push 0
lea edx, [ecx + eax*4 + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x14]
push eax
push 0x24
lea ecx, [esp + 0x3c]
push ecx
push esi
call edi
push 0
lea edx, [esp + 0x14]
push edx
push 0x44
push ebx
push esi
call edi
mov eax, dword [esp + 0x14]
push eax
push ebx
call fcn.00453270
add esp, 8
test eax, eax
jne 0x417d10
push ebp
call fcn.00451890
mov ebx, dword [esp + 0x20]
mov ecx, dword [ebx + 0x94]
push ecx
call fcn.00451980
add esp, 8
mov dword [ebx + 0x98], eax
test eax, eax
je 0x417c9b
mov ecx, dword [ebx + 0x94]
push 0
lea edx, [esp + 0x14]
push edx
push ecx
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00451800
add esp, 0x48
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.00451890
add esp, 4
mov ecx, dword [esp + 0x54]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00451800
add esp, 0x48
ret 4
Function at 0x417df0
Capabilities:
Read file on windows
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x84
mov eax, dword [0x4a8f7c]
xor eax, esp
mov dword [esp + 0x80], eax
cmp dword [ecx + 0x98], 0
mov dword [esp + 4], ecx
jne 0x417e28
xor eax, eax
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00451800
add esp, 0x84
ret
push esi
push 0x20
push str.sj_red.dat
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x20
push 3
push 0
push 0
push 0xc0000000
push str.sj_red.dat
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x417e6f
xor eax, eax
pop esi
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00451800
add esp, 0x84
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0xc]
push eax
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push esi
call edi
cmp dword [esp + 0x10], 6
jne 0x417e98
cmp dword [esp + 0x14], 0x27768
je 0x417eb8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00451800
add esp, 0x84
ret
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
push ebx
neg ecx
or ecx, eax
push ecx
call fcn.00451980
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x417efd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00451800
add esp, 0x84
ret
mov ecx, dword [esp + 0x1c]
push ebp
push 0
lea eax, [esp + 0x14]
push eax
lea edx, [ecx*4]
push edx
push ebx
push esi
call edi
mov eax, dword [ebx]
mov ecx, dword [esp + 0x20]
xor ebp, ebp
push ebp
push ebp
lea edx, [eax + ecx*4 + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
push 0x24
lea ecx, [esp + 0x78]
push ecx
push esi
call edi
push ebp
lea edx, [esp + 0x14]
push edx
push 0x44
lea eax, [esp + 0x34]
push eax
push esi
call edi
mov eax, dword [esp + 0x14]
add eax, 0x54
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00453270
add esp, 8
test eax, eax
je 0x417fbf
mov eax, dword [esp + 0x20]
inc ebp
cmp ebp, eax
jae 0x417ff6
mov edx, dword [ebx + ebp*4]
push 0
push 0
lea eax, [edx + eax*4 + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x24
lea edx, [esp + 0x78]
push edx
push esi
call edi
push 0
lea eax, [esp + 0x14]
push eax
push 0x44
lea ecx, [esp + 0x34]
push ecx
push esi
call edi
mov eax, dword [esp + 0x14]
add eax, 0x54
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.00453270
add esp, 8
test eax, eax
jne 0x417f64
push ebx
call fcn.00451890
add esp, 4
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x94]
mov edx, dword [eax + 0x98]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x418008
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00451890
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x90]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.00451800
add esp, 0x84
ret