joyce8/EMBER2024-capa huggingface dataset:
Function at 0x497670
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5f8800]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4976a0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005aa550
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4976dc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4976dc
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005aa550
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4977d5
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x497704
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 0x497737
push dword [esi + 0x4c]
movsx eax, bl
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005aa550
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x497795
sub eax, 1
je 0x497795
sub eax, 2
jne 0x4977d5
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.0040bc20
add esp, 8
or ecx, 0xffffffff
test al, al
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005aa550
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4977b2
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 0x4977d5
lea ecx, [ebp - 0x28]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005aa550
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005aa550
mov esp, ebp
pop ebp
ret 4
Function at 0x4990f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x4991bc
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test esi, esi
jl 0x4991ab
jg 0x499128
test edx, edx
je 0x4991ab
call fcn.004818d0
mov esi, eax
mov eax, edx
mov dword [ebp - 8], eax
test eax, eax
jl 0x499176
jg 0x49913e
test esi, esi
je 0x499176
cmp ebx, eax
jg 0x49914d
jl 0x499148
cmp edi, esi
jae 0x49914d
mov esi, edi
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 4]
add esp, 0xc
sub edi, esi
sbb ebx, dword [ebp - 8]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x499198
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x4991a5
mov ecx, dword [ebp - 4]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [ebp + 8], esi
test ebx, ebx
jg 0x499128
jl 0x4991a5
test edi, edi
jne 0x499128
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
pop edi
sbb esi, ebx
mov eax, edx
mov edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
mov edx, dword [eax]
lea eax, [ecx + 0x30]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
test edx, edx
je 0x4991e0
mov eax, dword [eax]
mov edx, dword [eax]
jmp 0x4991e5
xor edx, edx
mov dword [ebp - 0xc], eax
mov eax, edx
cdq
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], edx
test edi, edi
jl 0x499244
jg 0x4991f8
test esi, esi
je 0x499244
test edx, edx
jl 0x49923f
jg 0x499202
test eax, eax
je 0x49923f
cmp edi, edx
jg 0x499214
jl 0x49920c
cmp esi, eax
jae 0x499214
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 8], edi
mov ebx, dword [ebp + 8]
push eax
push ebx
push dword [ebp - 0x10]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp + 0x10]
add ebx, edx
mov ecx, dword [ebp - 4]
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 8]
sub dword [eax], edx
mov eax, dword [ecx + 0x20]
add dword [eax], edx
jmp 0x499247
mov ebx, dword [ebp + 8]
jmp 0x499251
mov ebx, dword [ebp + 8]
test edi, edi
jl 0x49926a
jg 0x499251
test esi, esi
je 0x49926a
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x49926a
push eax
push esi
push 1
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x569860
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5f8800]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
call fcn.0056a3e0
mov bl, al
lea eax, [ebp - 0x108]
push 0x104
push 0
push eax
mov byte [ebp - 0x109], bl
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push 0
push 3
push 0
push 0
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x569a42
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x118]
push eax
push 0x100
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test bl, bl
je 0x569900
push 0x100
lea eax, [ebp - 0x108]
mov ecx, edi
push eax
call fcn.0056a360
lea eax, [ebp - 0x108]
mov ecx, edi
push eax
call fcn.0056a440
movzx edx, word [edi + 0x670a3c]
mov ecx, 0x226
cmp dx, cx
jge 0x569a42
movzx eax, word [edi + 0x670a3e]
cmp ax, cx
jge 0x569a42
movsx ecx, ax
movsx eax, dx
imul ecx, eax
lea ebx, [ecx + ecx*4]
add ebx, ebx
push ebx
call fcn.005aa4da
add esp, 4
mov dword [ebp - 0x114], eax
lea ecx, [ebp - 0x118]
push 0
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x109], 0
mov esi, dword [ebp - 0x114]
je 0x569981
push ebx
push esi
mov ecx, edi
call fcn.0056a360
xor ecx, ecx
xor ebx, ebx
mov eax, esi
cmp cx, word [edi + 0x670a3e]
jge 0x569a34
lea ecx, [edi + 0x6e0fa]
mov dword [ebp - 0x110], ecx
xor edx, edx
xor esi, esi
cmp dx, word [edi + 0x670a3c]
jge 0x569a15
mov edx, ecx
nop
movzx ecx, word [eax]
lea edx, [edx + 0x2260]
mov word [edx - 0x2262], cx
inc esi
movzx ecx, word [eax + 2]
mov word [edx - 0x2260], cx
movzx ecx, word [eax + 4]
mov word [edx - 0x225e], cx
movzx ecx, word [eax + 6]
mov word [edx - 0x225c], cx
movzx ecx, byte [eax + 8]
not cl
shr cl, 7
mov byte [edx - 0x225a], cl
movzx ecx, byte [eax + 8]
add eax, 0xa
shr cl, 6
and cl, 1
mov byte [edx - 0x2259], cl
movsx ecx, word [edi + 0x670a3c]
cmp esi, ecx
jl 0x5699b0
mov ecx, dword [ebp - 0x110]
add ecx, 0x10
inc ebx
mov dword [ebp - 0x110], ecx
movsx ecx, word [edi + 0x670a3e]
cmp ebx, ecx
mov ecx, dword [ebp - 0x110]
jl 0x5699a0
push dword [ebp - 0x114]
call fcn.005aa4e3
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005aa550
mov esp, ebp
pop ebp
ret 4
Function at 0x56a360
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 0x56a3cc
cmp edx, 0x40
jb 0x56a3c3
movaps xmm2, xmmword [str.NNNNNNNNNNNNNNNN]
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 0x56a385
pop edi
cmp eax, edx
jge 0x56a3cc
xor byte [esi + eax], 0x4e
inc eax
cmp eax, edx
jl 0x56a3c3
pop esi
pop ebp
ret 8
Function at 0x575010
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, ecx
cmp ebx, dword [edi + 0xc]
jb 0x575028
lea eax, [ebx + 1]
push eax
call fcn.005750a0
push esi
push dword [edi + 0xc]
mov esi, dword [ebp + 8]
dec ebx
push 0
push dword [edi + 8]
mov al, byte [esi]
mov byte [ebp + 0xf], al
call sub.VCRUNTIME140.dll_memset
push ebx
lea eax, [esi + 1]
push eax
push dword [edi + 8]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x18
cmp byte [ebp + 0xf], 0
pop esi
je 0x575080
xor edx, edx
test ebx, ebx
jle 0x575080
nop dword [eax]
mov ecx, dword [edi + 8]
mov al, bl
sub al, dl
xor al, byte [ecx + edx]
xor al, byte [ebp + 0xf]
mov byte [ecx + edx], al
mov al, dl
mov ecx, dword [edi + 8]
xor al, byte [ebp + 0xf]
sub byte [ecx + edx], al
inc edx
cmp edx, ebx
jl 0x575060
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], 0
mov dword [edi + 0x18], 0
pop edi
pop ebx
pop ebp
ret 8

Function at 0x5765e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x5765f2
pop esi
pop ebp
ret 8
push ebx
inc eax
push edi
push eax
call fcn.005aa4da
mov cl, byte [ebp + 0xc]
mov edi, eax
mov byte [edi], cl
lea ebx, [edi + 1]
push dword [esi + 0x14]
push dword [esi + 8]
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov ch, byte [ebp + 0xc]
add esp, 0x10
test ch, ch
je 0x57664a
cmp dword [esi + 0x14], 0
jle 0x57664a
mov eax, edi
not eax
mov dword [ebp + 0xc], eax
lea edx, [eax + ebx]
mov al, dl
xor al, ch
add byte [ebx], al
mov cl, byte [esi + 0x14]
mov eax, dword [ebp + 0xc]
sub cl, dl
xor cl, byte [ebx]
xor cl, ch
mov byte [ebx], cl
inc ebx
add eax, ebx
cmp eax, dword [esi + 0x14]
mov eax, dword [ebp + 0xc]
jl 0x576628
mov eax, dword [esi + 0x14]
push 1
inc eax
push eax
push edi
call sym.HelGame.exe_enet_packet_create
push eax
push 0
push dword [ebp + 8]
call sym.HelGame.exe_enet_peer_send
push edi
mov esi, eax
call fcn.005aa4e3
add esp, 0x1c
mov eax, esi
pop edi
pop ebx
pop esi
pop ebp
ret 8

Function at 0x577fc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 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 0x578026
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push str.Language
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
test eax, eax
jne 0x578020
mov al, byte [ebp - 0xc]
mov byte [esi + 0x4d], al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x57d590
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
xor eax, eax
push ebx
push esi
mov esi, ecx
xorps xmm0, xmm0
push edi
mov ecx, 0x3e8
lea ebx, [esi + 0x3e]
mov dword [esi], vtable.CSprite.0
lea edi, [esi + 0x7c]
mov dword [esi + 0x60], 0
rep stosd dword es:[edi], eax
mov dword [esi + 0x70], eax
lea edi, [esi + 0x34]
mov dword [esi + 0x76], eax
mov ecx, edx
mov word [esi + 0x74], ax
mov byte [esi + 0x20], al
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x28], eax
lea eax, [ecx + 1]
mov dword [esi + 0x6c], 0x3f800000
mov dword [esi + 0x68], 0x3f800000
movups xmmword [ebx], xmm0
mov dword [ebp + 0xc], eax
movups xmmword [ebx + 0x10], xmm0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x57d5f0
sub ecx, dword [ebp + 0xc]
push ecx
push edx
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov ax, word [ebp + 0x14]
add esp, 0xc
mov ebx, dword [ebp + 8]
mov word [esi + 0x5e], ax
cwde
push 0
push 0
lea eax, [eax*8 + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp + 0xc]
push eax
push 4
lea eax, [ebp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0x10]
call fcn.0057fbe0
add esp, 4
test al, al
je 0x57d654
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.0057f910
add esp, 8
mov eax, dword [ebp + 0x14]
push 0
push 0
add eax, 0x64
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp + 0xc]
push eax
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0x10]
call fcn.0057fbe0
add esp, 4
test al, al
je 0x57d690
push 4
push edi
call fcn.0057f910
add esp, 8
mov eax, dword [edi]
mov ecx, dword [ebp + 0x14]
lea edx, [eax + 9]
lea edx, [edx + edx*2]
lea ecx, [ecx + edx*4]
mov edx, 0xc
mov dword [esi + 0x2c], ecx
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005aa4da
add esp, 4
mov dword [esi + 0x60], eax
lea ecx, [ebp + 0xc]
push 0
push ecx
mov ecx, dword [edi]
lea ecx, [ecx + ecx*2]
shl ecx, 2
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0x10]
call fcn.0057fbe0
add esp, 4
test al, al
je 0x57d6f7
mov eax, dword [edi]
lea eax, [eax + eax*2]
shl eax, 2
push eax
push dword [esi + 0x60]
call fcn.0057f910
add esp, 8
mov al, byte [ebp + 0x18]
mov byte [esi + 0x21], al
movzx eax, word [0x5fd3ac]
mov word [esi + 0x64], ax
movzx eax, word [0x5fd3b0]
mov word [esi + 0x66], ax
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x57f910
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 0x57f97c
cmp edx, 0x40
jb 0x57f973
movaps xmm2, xmmword [str.NNNNNNNNNNNNNNNN]
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 0x57f935
pop edi
cmp eax, edx
jge 0x57f97c
xor byte [esi + eax], 0x4e
inc eax
cmp eax, edx
jl 0x57f973
pop esi
pop ebp
ret

Function at 0x581c30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 4]
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 0x581c8d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push str.Language
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x581c93
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov esp, ebp
pop ebp
ret
push ebx
push dword [ebp - 4]
mov bl, byte [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x582a20
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c0770
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
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
lea ecx, [ebp - 0xa0]
call fcn.00585d50
push 0
push 0
push 3
push 0
push 0
push closesocket
push str.soundsc8.wav
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
xorps xmm0, xmm0
mov dword [ebp - 0xa4], eax
mov byte [ebp - 0x14], 0
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
cmp eax, 0xffffffff
je 0x582b09
push 0
push eax
call esi
mov esi, eax
push esi
call fcn.005aa4da
add esp, 4
mov edi, eax
lea eax, [ebp - 0xa8]
push 0
push eax
push esi
push edi
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x14
push str._dmadkrc8___
push dword [ebp - 0xa8]
lea ecx, [ebp - 0xa0]
push edi
call fcn.00585fa0
lea ecx, [ebp - 0xa0]
call fcn.00585f90
push 0x20
push eax
lea eax, [ebp - 0x34]
push 0x21
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strncpy_s
push edi
call fcn.005aa4e3
mov eax, dword [ebp - 0xa4]
add esp, 0x14
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 3
push 0
push 0
push closesocket
push str.soundse11.wav
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xa4], eax
xorps xmm0, xmm0
mov byte [ebp - 0x38], 0
movups xmmword [ebp - 0x58], xmm0
movups xmmword [ebp - 0x48], xmm0
cmp eax, 0xffffffff
je 0x582bae
push 0
push eax
call esi
mov esi, eax
push esi
call fcn.005aa4da
add esp, 4
mov edi, eax
lea eax, [ebp - 0xa8]
push 0
push eax
push esi
push edi
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x14
push str._dmadkrc8___
push dword [ebp - 0xa8]
lea ecx, [ebp - 0xa0]
push edi
call fcn.00585fa0
lea ecx, [ebp - 0xa0]
call fcn.00585f90
push 0x20
push eax
lea eax, [ebp - 0x58]
push 0x21
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strncpy_s
push edi
call fcn.005aa4e3
mov eax, dword [ebp - 0xa4]
add esp, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xa0]
call fcn.00585d80
mov eax, 1
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
Function at 0x584f80
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c0806
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5f8800]
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 - 0x24], ecx
mov eax, dword [str.___t_n]
xor edi, edi
mov ebx, dword [ebp + 8]
push edi
push edi
push 3
push edi
push edi
mov dword [ebp - 0x18], eax
mov al, byte [0x5dcc7c]
push closesocket
push ebx
mov byte [ebp - 0x14], al
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
cmp esi, 0xffffffff
je 0x584fee
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5c45dc
lea eax, [ebp - 0x20]
push ebx
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s
add esp, 0xc
test eax, eax
je 0x58500b
xor eax, eax
jmp 0x5850ed
mov esi, dword [ebp - 0x1c]
inc esi
push esi
call fcn.005aa4da
push esi
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x28], ebx
call sub.VCRUNTIME140.dll_memset
push dword [ebp - 0x20]
push 1
push dword [ebp - 0x1c]
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
push dword [ebp - 0x20]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
push 0x114
call fcn.005aa520
add esp, 0x28
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x585067
lea ecx, [ebp - 0x18]
push ecx
push ebx
mov ecx, eax
call fcn.00587a70
mov esi, eax
mov dword [ebp - 0x1c], eax
jmp 0x58506c
xor esi, esi
mov dword [ebp - 0x1c], esi
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00587b30
mov ebx, eax
test ebx, ebx
je 0x5850d4
mov esi, dword [ebp - 0x24]
add esi, 4
push 0x1c
call fcn.005aa520
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x5850ac
push 0
push ebx
push 0
mov ecx, eax
call fcn.00586d00
jmp 0x5850ae
xor eax, eax
mov dword [esi], eax
inc edi
add esi, 4
mov dword [ebp - 4], 0xffffffff
cmp edi, 0x1f4
jge 0x5850d1
mov ecx, dword [ebp - 0x1c]
call fcn.00587b30
mov ebx, eax
test ebx, ebx
jne 0x585086
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x5850e0
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
push dword [ebp - 0x28]
call fcn.005aa4e3
add esp, 4
mov eax, edi
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.005aa550
mov esp, ebp
pop ebp
ret 4

Function at 0x5854e0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret
Function at 0x586290
Capabilities:
Encode data using xor
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x5f8800]
xor eax, ebp
mov dword [ebp - 4], eax
movsx eax, byte [ebx + 0x10]
mov ecx, dword [ebx + 0xc]
push esi
push edi
push 0
push 0
push 3
movd xmm0, eax
mov eax, dword [ebx + 8]
push 0
punpcklbw xmm0, xmm0
push 0
punpcklwd xmm0, xmm0
push closesocket
pshufd xmm0, xmm0, 0
push eax
movaps xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea edi, [eax - 0xa]
cmp esi, 0xffffffff
je 0x58630a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5c45dc
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s
add esp, 0xc
test eax, eax
jne 0x5863ff
lea esi, [edi + 1]
push esi
call fcn.005aa4da
push esi
mov esi, eax
mov dword [ebp - 0x18], eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov word [ebp - 8], 0
push 1
xorps xmm0, xmm0
push 0xa
push eax
movq qword [ebp - 0x10], xmm0
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
push dword [ebp - 0x14]
push 1
push edi
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
push dword [ebp - 0x14]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 0x34
xor ecx, ecx
test edi, edi
jle 0x5863de
cmp edi, 0x40
jb 0x5863d0
mov eax, edi
and eax, 0x8000003f
jns 0x58638b
dec eax
or eax, 0xffffffc0
inc eax
mov edx, edi
sub edx, eax
lea eax, [esi + 0x20]
movups xmm0, xmmword [eax - 0x20]
lea eax, [eax + 0x40]
add ecx, 0x40
movaps xmm1, xmmword [ebp - 0x30]
xorps xmm0, xmm1
movups xmmword [eax - 0x60], xmm0
movups xmm0, xmmword [eax - 0x50]
xorps xmm0, xmm1
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [eax - 0x40]
xorps xmm0, xmm1
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [eax - 0x30]
xorps xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
cmp ecx, edx
jl 0x586392
cmp ecx, edi
jge 0x5863de
mov dl, byte [ebx + 0x10]
xor byte [esi + ecx], dl
lea eax, [esi + ecx]
inc ecx
cmp ecx, edi
jl 0x5863d3
push 0x5c45c0
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s
add esp, 0xc
test eax, eax
je 0x586416
push esi
call fcn.005aa4e3
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005aa550
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
mov al, byte [ebp - 0x10]
test al, al
je 0x58642e
lea ecx, [ebp - 0x10]
xor al, 0x14
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
mov al, byte [ecx]
test al, al
jne 0x586420
lea eax, [ebp - 0x10]
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_atoi
add esp, 4
cmp eax, edi
jne 0x5863ff
push dword [ebp - 0x14]
push 1
push edi
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
push dword [ebp - 0x14]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
push 1
push esi
call fcn.005aa4e8
add esp, 0x1c
mov eax, 1
jmp 0x586401