joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408ec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareHB_NemesisSettings
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x408fa0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push str.Language
push dword [ebp - 4]
call edi
test eax, eax
jne 0x408f96
mov al, byte [ebp - 8]
mov byte [esi + 0x50006], al
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push str.Font_Style
push dword [ebp - 4]
call edi
test eax, eax
jne 0x408f96
movsx eax, byte [ebp - 8]
mov dword [esi + 0x50008], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push str.Font_Size
push dword [ebp - 4]
call edi
test eax, eax
jne 0x408f96
movsx eax, byte [ebp - 8]
mov dword [esi + 0x5000c], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push str.FullScreen
push dword [ebp - 4]
call edi
test eax, eax
jne 0x408f96
cmp dword [ebp - 8], 1
sete al
mov byte [esi + 0x50004], al
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40bf90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
xor ecx, ecx
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x40bfb7
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x40bfa6
pop edi
mov eax, edx
pop esi
pop ebp
ret
Function at 0x44b550
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5f8800]
xor eax, ebp
mov dword [ebp - 4], eax
push 5
push 0
push 0
push str.http:__www.helbreathnemesis.com_createaccount.php
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x44b609
lea eax, [ebp - 0x10c]
push eax
push 1
push 0
push str..htm
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44b609
push esi
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 0x104
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push 0
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x44b609
push str._shellopencommand
lea eax, [ebp - 0x108]
push 0x104
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
add esp, 0xc
lea eax, [ebp - 0x108]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005aa550
mov esp, ebp
pop ebp
ret
Function at 0x44f620
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af507
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5f8800]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
movzx eax, word [ebp + 0xc]
xorps xmm0, xmm0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov al, byte [ebp + 0x14]
push edi
mov dword [ebp - 0x4c], edi
mov byte [ebp - 0x48], al
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
call fcn.0057fbe0
add esp, 4
test al, al
lea eax, [ebp - 0x30]
push edi
je 0x44f683
push str.sprites_s
jmp 0x44f688
push str.sprites_s.pak
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x30]
push 0
push 0
push 3
push 0
push 0
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x40], esi
cmp esi, 0xffffffff
je 0x44f7a1
push 0
push 0
push 0x14
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x50]
push eax
push 4
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call fcn.0057fbe0
add esp, 4
test al, al
je 0x44f6f4
lea eax, [ebp - 0x34]
push 4
push eax
call fcn.0057f910
add esp, 8
mov ecx, dword [ebp - 0x34]
xor edx, edx
xor edi, edi
lea eax, [ecx - 8]
mov dword [0x5f9e00], eax
mov ax, word [ebp + 0x10]
cmp dx, ax
jge 0x44f79a
xor esi, esi
cmp esi, ecx
jge 0x44f78c
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x38]
cwde
add ecx, 0x18334c
add eax, esi
lea eax, [ecx + eax*4]
mov ecx, dword [eax]
mov dword [ebp - 0x3c], eax
test ecx, ecx
je 0x44f740
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x3c]
mov dword [eax], 0
push 0x101c
call fcn.005aa520
add esp, 4
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x44f777
push dword [ebp - 0x48]
mov ecx, dword [ebp - 0x38]
push edi
push dword [ebp - 0x4c]
push dword [ecx + 0x14a8e0]
mov ecx, eax
push dword [ebp - 0x40]
call fcn.0057d590
jmp 0x44f779
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
mov dword [ecx], eax
mov ecx, dword [ebp - 0x34]
mov ax, word [ebp + 0x10]
inc edi
inc esi
cmp di, ax
jl 0x44f712
mov esi, dword [ebp - 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005aa550
mov esp, ebp
pop ebp
ret 0x10
Function at 0x44f7c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af547
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x5f8800]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov al, byte [ebp + 0x14]
push edi
mov dword [ebp - 0x44], edi
mov byte [ebp - 0x40], al
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
call fcn.0057fbe0
add esp, 4
test al, al
lea eax, [ebp - 0x30]
push edi
je 0x44f822
push str.sprites_s
jmp 0x44f827
push str.sprites_s.pak
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x30]
push 0
push 0
push 3
push 0
push 0
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp esi, 0xffffffff
je 0x44f927
push 0
push 0
push 0x14
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x4c]
push eax
push 4
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call fcn.0057fbe0
add esp, 4
test al, al
je 0x44f893
lea eax, [ebp - 0x34]
push 4
push eax
call fcn.0057f910
add esp, 8
xor eax, eax
xor esi, esi
cmp ax, word [ebp + 0x10]
jge 0x44f91e
movsx edi, si
cmp edi, dword [ebp - 0x34]
jge 0x44f91e
push 0x101c
call fcn.005aa520
add esp, 4
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x44f8e2
push dword [ebp - 0x40]
mov ecx, dword [ebp - 0x38]
push esi
push dword [ebp - 0x44]
push dword [ecx + 0x14a8e0]
mov ecx, eax
push dword [ebp - 0x3c]
call fcn.0057d590
mov ecx, eax
jmp 0x44f8e4
xor ecx, ecx
mov eax, dword [ebp - 0x48]
sub esp, 8
movss xmm0, dword [ebp + 0x1c]
add eax, edi
mov edx, dword [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp + 0x18]
mov dword [edx + eax*4 + 0x14a90c], ecx
movss dword [esp], xmm0
call fcn.0057f860
inc esi
cmp si, word [ebp + 0x10]
jl 0x44f8a1
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005aa550
mov esp, ebp
pop ebp
ret 0x18
Function at 0x44f950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af587
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5f8800]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
movzx eax, word [ebp + 0xc]
xorps xmm0, xmm0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov al, byte [ebp + 0x14]
push edi
mov dword [ebp - 0x4c], edi
mov byte [ebp - 0x48], al
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
call fcn.0057fbe0
add esp, 4
test al, al
lea eax, [ebp - 0x30]
push edi
je 0x44f9b3
push str.sprites_s
jmp 0x44f9b8
push str.sprites_s.pak
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x30]
push 0
push 0
push 3
push 0
push 0
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x40], esi
cmp esi, 0xffffffff
je 0x44fac0
push 0
push 0
push 0x14
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x50]
push eax
push 4
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call fcn.0057fbe0
add esp, 4
test al, al
je 0x44fa24
lea eax, [ebp - 0x34]
push 4
push eax
call fcn.0057f910
add esp, 8
mov ax, word [ebp + 0x10]
xor ecx, ecx
xor edi, edi
cmp cx, ax
jge 0x44fab9
xor esi, esi
cmp esi, dword [ebp - 0x34]
jge 0x44faaf
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x38]
cwde
add ecx, 0x1823ac
add eax, esi
lea eax, [ecx + eax*4]
mov ecx, dword [eax]
mov dword [ebp - 0x3c], eax
test ecx, ecx
je 0x44fa66
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x3c]
mov dword [eax], 0
push 0x101c
call fcn.005aa520
add esp, 4
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x44fa9d
push dword [ebp - 0x48]
mov ecx, dword [ebp - 0x38]
push edi
push dword [ebp - 0x4c]
push dword [ecx + 0x14a8e0]
mov ecx, eax
push dword [ebp - 0x40]
call fcn.0057d590
jmp 0x44fa9f
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
mov dword [ecx], eax
mov ax, word [ebp + 0x10]
inc edi
inc esi
cmp di, ax
jl 0x44fa37
mov esi, dword [ebp - 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005aa550
mov esp, ebp
pop ebp
ret 0x10
Function at 0x450c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, 0xf15
push edi
cmp word [eax + 4], cx
jne 0x450cb7
push 0x5c45c0
lea edi, [eax + 6]
lea eax, [ebp + 8]
push str.contentscontents1000.txt
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s
add esp, 0xc
test eax, eax
jne 0x450cd1
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x450c97
push dword [ebp + 8]
sub ecx, edx
push 1
push ecx
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
push dword [ebp + 8]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 0x14
cmp dword [esi + 0x18bffc], 0x2a
jge 0x450cd1
push 0
push 0
push 0
push 0
push 0x23
mov ecx, esi
call fcn.00446a80
pop edi
pop esi
pop ebp
ret 4
Function at 0x47d0a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
xor eax, eax
push esi
mov esi, dword [ebp + 8]
test edx, edx
jle 0x47d10c
cmp edx, 0x40
jb 0x47d103
movaps xmm2, xmmword [0x5cd640]
lea ecx, [esi + 0x20]
push edi
mov edi, edx
and edi, 0xffffffc0
movups xmm0, xmmword [ecx - 0x20]
lea ecx, [ecx + 0x40]
add eax, 0x40
movaps xmm1, xmm2
xorps xmm0, xmm2
movups xmmword [ecx - 0x60], xmm0
movups xmm0, xmmword [ecx - 0x50]
xorps xmm0, xmm2
movups xmmword [ecx - 0x50], xmm0
movups xmm0, xmmword [ecx - 0x40]
xorps xmm0, xmm2
movups xmmword [ecx - 0x40], xmm0
movups xmm0, xmmword [ecx - 0x30]
xorps xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
cmp eax, edi
jl 0x47d0c5
pop edi
cmp eax, edx
jge 0x47d10c
xor byte [esi + eax], 0x52
inc eax
cmp eax, edx
jl 0x47d103
pop esi
pop ebp
ret 8

Function at 0x47f890
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
xor eax, eax
push esi
mov esi, dword [ebp + 8]
test edx, edx
jle 0x47f8fc
cmp edx, 0x40
jb 0x47f8f3
movaps xmm2, xmmword [0x5cd640]
lea ecx, [esi + 0x20]
push edi
mov edi, edx
and edi, 0xffffffc0
movups xmm0, xmmword [ecx - 0x20]
lea ecx, [ecx + 0x40]
add eax, 0x40
movaps xmm1, xmm2
xorps xmm0, xmm2
movups xmmword [ecx - 0x60], xmm0
movups xmm0, xmmword [ecx - 0x50]
xorps xmm0, xmm2
movups xmmword [ecx - 0x50], xmm0
movups xmm0, xmmword [ecx - 0x40]
xorps xmm0, xmm2
movups xmmword [ecx - 0x40], xmm0
movups xmm0, xmmword [ecx - 0x30]
xorps xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
cmp eax, edi
jl 0x47f8b5
pop edi
cmp eax, edx
jge 0x47f8fc
xor byte [esi + eax], 0x52
inc eax
cmp eax, edx
jl 0x47f8f3
pop esi
pop ebp
ret 8

Function at 0x47f910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5f8800]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x47f9ca
cmp byte [esi + 0x3d], 0
je 0x47f9ca
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x47f9b8
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x47f980
sub eax, 1
je 0x47f984
sub eax, 2
jne 0x47f9b8
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005aa550
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x47f9a1
push dword [esi + 0x4c]
push edi
push 1
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
cmp edi, eax
jne 0x47f9b8
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005aa550
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005aa550
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.005aa550
mov esp, ebp
pop ebp
ret
Function at 0x480bd0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x5f8800]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x78
lea eax, [ebp - 0xb0]
mov edi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x32
lea eax, [ebp - 0x38]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push str.contentsGameTrans.txt
lea eax, [ebp - 0xb0]
push 0x78
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy_s
add esp, 0x24
lea eax, [ebp - 0xb0]
push 0
push 0
push 3
push 0
push 0
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x480d0c
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push esi
mov dword [ebp - 0xb8], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5c45dc
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xb4]
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s
add esp, 0xc
test eax, eax
jne 0x480d0b
lea esi, [ebx + 1]
push esi
call fcn.005aa4da
push esi
mov ebx, eax
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
push dword [ebp - 0xb4]
push 1
push dword [ebp - 0xb8]
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
push dword [ebp - 0xb4]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 0x24
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
movzx eax, byte [edi + 0x1e]
push eax
call fcn.0047fb20
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
push ebx
call fcn.00486b70
test al, al
jne 0x480d02
cmp byte [edi + 0x1e], 4
je 0x480d02
push 0x32
lea eax, [ebp - 0x38]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
push 4
call fcn.0047fb20
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
push ebx
call fcn.00486b70
push ebx
call fcn.005aa4e3
add esp, 4
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005aa550
mov esp, ebp
pop ebp
ret
Function at 0x481400
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5f8800]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0xff
lea eax, [ebp - 0x204]
mov dword [ebp - 0x20c], ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0xff
lea eax, [ebp - 0x104]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
movsx eax, byte [ebp + 8]
push eax
lea eax, [ebp - 0x204]
push str.contents_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push str.contents
lea eax, [ebp - 0x104]
push 0xff
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
push 0x5c7568
lea eax, [ebp - 0x104]
push 0xff
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
push 0x5c7568
lea eax, [ebp - 0x104]
push 0xff
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
add esp, 0x48
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x104]
push 0xff
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
push str..txt
lea eax, [ebp - 0x104]
push 0xff
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
add esp, 0x18
lea eax, [ebp - 0x104]
push 0
push 0
push 3
push 0
push 0
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp esi, 0xffffffff
je 0x481503
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5c45dc
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s
add esp, 0xc
test eax, eax
jne 0x48156a
push edi
lea esi, [ebx + 1]
push esi
call fcn.005aa4da
push esi
mov edi, eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
push dword [ebp - 0x208]
push 1
push ebx
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov ecx, dword [ebp - 0x20c]
add esp, 0x20
push edi
call fcn.004824e0
push edi
call fcn.005aa4e3
push dword [ebp - 0x208]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 8
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005aa550
mov esp, ebp
pop ebp
ret 4
Function at 0x485110
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5f8800]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov edi, 0x64
lea esi, [ebx + 0x1868cc]
mov ecx, dword [esi]
test ecx, ecx
je 0x485145
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi], 0
add esi, 4
sub edi, 1
jne 0x485133
push 0xff
lea eax, [ebp - 0x204]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
push 0xff
lea eax, [ebp - 0x104]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
push str.BItemcfg
lea eax, [ebp - 0x204]
push 0xff
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy_s
push str.contents
lea eax, [ebp - 0x104]
push 0xff
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
push 0x5c7568
lea eax, [ebp - 0x104]
push 0xff
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
push 0x5c7568
lea eax, [ebp - 0x104]
push 0xff
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
add esp, 0x48
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x104]
push 0xff
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
push str..txt
lea eax, [ebp - 0x104]
push 0xff
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
add esp, 0x18
lea eax, [ebp - 0x104]
push edi
push edi
push 3
push edi
push edi
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x20c], edi
cmp esi, 0xffffffff
je 0x485233
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5c45dc
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s
add esp, 0xc
test eax, eax
je 0x485265
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005aa550
mov esp, ebp
pop ebp
ret
lea esi, [edi + 1]
push esi
call fcn.005aa4da
push esi
mov edi, eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
push dword [ebp - 0x208]
push 1
push dword [ebp - 0x20c]
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add esp, 0x20
mov ecx, ebx
push edi
call fcn.00482060
push edi
mov bl, al
call fcn.005aa4e3
push dword [ebp - 0x208]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov ecx, dword [ebp - 4]
add esp, 8
mov al, bl
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.005aa550
mov esp, ebp
pop ebp
ret
Function at 0x4852d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5f8800]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov edi, 0x19
lea esi, [ebx + 0x186bec]
mov ecx, dword [esi]
test ecx, ecx
je 0x485305
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi], 0
add esi, 4
sub edi, 1
jne 0x4852f3
push 0xff
lea eax, [ebp - 0x204]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
push 0xff
lea eax, [ebp - 0x104]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
push str.CItemcfg
lea eax, [ebp - 0x204]
push 0xff
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy_s
push str.contents
lea eax, [ebp - 0x104]
push 0xff
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
push 0x5c7568
lea eax, [ebp - 0x104]
push 0xff
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
push 0x5c7568
lea eax, [ebp - 0x104]
push 0xff
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
add esp, 0x48
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x104]
push 0xff
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
push str..txt
lea eax, [ebp - 0x104]
push 0xff
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
add esp, 0x18
lea eax, [ebp - 0x104]
push edi
push edi
push 3
push edi
push edi
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x20c], edi
cmp esi, 0xffffffff
je 0x4853f3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5c45dc
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s
add esp, 0xc
test eax, eax
je 0x485425
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005aa550
mov esp, ebp
pop ebp
ret
lea esi, [edi + 1]
push esi
call fcn.005aa4da
push esi
mov edi, eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
push dword [ebp - 0x208]
push 1
push dword [ebp - 0x20c]
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add esp, 0x20
mov ecx, ebx
push edi
call fcn.00482860
push edi
mov bl, al
call fcn.005aa4e3
push dword [ebp - 0x208]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov ecx, dword [ebp - 4]
add esp, 8
mov al, bl
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.005aa550
mov esp, ebp
pop ebp
ret
Function at 0x48ac50
Capabilities:
Get file size

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 0
push 0
push 3
push 0
push 0
push closesocket
push str.CONTENTS_badword.txt
call esi
cmp eax, 0xffffffff
je 0x48acac
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
push 0
push 0
push 3
push 0
push 0
push closesocket
push str.SOUNDSC8.WAV
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x48acac
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
cmp eax, 0x2ba6
je 0x48acb1
call edi
pop edi
xor al, al
pop esi
ret
call edi
pop edi
mov al, 1
pop esi
ret