joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10130597
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017e8f0
push 0x10100dc4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
mov eax, dword [0x101b9540]
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test eax, eax
mov esi, 0x10000
je 0x101305da
lea esi, reloc.WINMM.dll_midiStreamOut
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
or ebx, reloc.WINMM.dll_midiStreamOut
lea ecx, [ecx]
push 0x1c
lea ecx, [ebp - 0x78]
push ecx
push esi
push edi
call dword [0x10167300]
test eax, eax
jbe 0x10130615
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x6c]
add eax, edx
cmp eax, esi
jae 0x10130632
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x1c]
call fcn.101a6cf4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 0x68], reloc.WINMM.dll_midiStreamOut
jne 0x101306f6
mov eax, dword [ebp - 0x64]
cmp al, 1
je 0x101306f6
test ah, 1
jne 0x101306f6
mov dword [ebp - 4], 0
push 0
push 0x40
lea ecx, [ebp - 0x5c]
push ecx
push esi
push edi
call dword [0x101673c4]
test eax, eax
jne 0x1013067f
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x78]
lea esi, [ecx + edx]
jmp 0x101305f7
cmp word [ebp - 0x5c], 0x5a4d
jne 0x101306c9
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x6c]
ja 0x101306c9
cmp eax, 0x40
jb 0x101306c9
push 0
push 0xf8
mov edx, dword [ebp + 0x10]
push edx
add eax, esi
push eax
push edi
call dword [0x101673c4]
test eax, eax
jne 0x101306be
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x78]
lea esi, [ecx + edx]
jmp 0x101305f7
mov eax, dword [ebp + 0x10]
cmp dword [eax], reloc.WINMM.dll_midiStreamOut
je 0x101306da
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x78]
lea esi, [ecx + edx]
jmp 0x101305f7
mov dword [ebp - 4], ebx
mov eax, esi
jmp 0x10130617
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x78]
lea esi, [ecx + edx]
jmp 0x101305f7
Function at 0x101314b7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017e930
push 0x10100dc4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov esi, edx
push 0x1c
lea eax, [ebp - 0x3c]
push eax
push ecx
call dword [fcn.101672f0]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], ecx
cmp word [ecx], 0x5a4d
jne 0x1013154e
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [eax], reloc.WINMM.dll_midiStreamOut
jne 0x1013154e
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x1013154e
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x1013154e
mov dword [ebp - 4], reloc.WINMM.dll_midiStreamOut
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], reloc.WINMM.dll_midiStreamOut
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10131827
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebx
push ebp
push esi
mov esi, eax
cmp esi, 0x7ff80000
push edi
lea ebx, reloc.WINMM.dll_midiStreamOut
ja 0x10131840
mov ebx, 0x10000
cmp esi, 0x80000000
lea ebp, reloc.WINMM.dll_midiStreamOut
jb 0x10131853
mov ebp, 0xfff80000
mov eax, dword [0x101c8394]
test eax, eax
mov edx, dword [0x101c8390]
jne 0x1013186d
test edx, edx
je 0x10131880
mov eax, edx
mov dword [0x101c8394], eax
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10131880
cmp ecx, ebx
jb 0x10131880
cmp ecx, ebp
jbe 0x1013196c
test edx, edx
mov eax, edx
mov dword [0x101c8394], eax
je 0x101318ae
test eax, eax
je 0x101318a2
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x101318a2
cmp ecx, ebx
jb 0x101318a2
cmp ecx, ebp
jbe 0x10131967
mov eax, dword [eax + 4]
test eax, eax
jne 0x1013188f
mov dword [0x101c8394], eax
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, 0x40000000
jbe 0x101318e9
lea edi, reloc.WINMM.dll_midiStreamOut
push esi
mov eax, edi
call fcn.10131697
add esp, 4
test eax, eax
jne 0x1013192d
push ebx
mov eax, edi
call fcn.10131767
add esp, 4
test eax, eax
jne 0x1013192d
cmp esi, 0x40000000
jae 0x1013190f
lea edi, reloc.WINMM.dll_midiStreamOut
push esi
mov eax, edi
call fcn.10131767
add esp, 4
test eax, eax
jne 0x1013192d
push ebp
mov eax, edi
call fcn.10131697
add esp, 4
test eax, eax
jne 0x1013192d
push ebx
mov eax, esi
call fcn.10131767
add esp, 4
test eax, eax
jne 0x1013192d
push ebp
mov eax, esi
call fcn.10131697
add esp, 4
test eax, eax
je 0x10131992
xor edx, edx
mov dword [eax], reloc.WINMM.dll_midiStreamOut
mov dword [eax + 8], edx
mov ecx, dword [0x101c8390]
mov dword [eax + 4], ecx
mov dword [0x101c8394], eax
mov dword [0x101c8390], eax
lea ecx, reloc.WINMM.dll_midiStreamOut
mov esi, 0x38b
nop
mov dword [ecx + 0x40], edx
mov edx, ecx
sub ecx, 0x48
dec esi
jne 0x10131957
mov dword [eax + 8], edx
jmp 0x1013196c
mov dword [0x101c8394], eax
mov edx, dword [eax + 8]
cmp edx, ebx
jb 0x10131992
cmp edx, ebp
ja 0x10131992
mov ecx, dword [edx + 0x40]
mov dword [eax + 8], ecx
mov eax, 0xcccccccc
mov ecx, 0x12
mov edi, edx
rep stosd dword es:[edi], eax
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x101319c7
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov eax, dword [0x101c8390]
test eax, eax
push ebx
mov ebx, 0x101c8390
je 0x10131a32
push esi
push edi
cmp dword [eax], reloc.WINMM.dll_midiStreamOut
jne 0x10131a27
lea edi, reloc.WINMM.dll_midiStreamOut
xor esi, esi
lea edx, [eax + 0x88]
mov ecx, dword [edx]
test ecx, ecx
je 0x101319fc
cmp ecx, eax
jb 0x10131a27
cmp ecx, edi
jae 0x10131a27
inc esi
add edx, 0x48
cmp esi, 0x38d
jb 0x101319ee
mov ecx, dword [eax + 4]
push 0x8000
push 0
push eax
mov dword [ebx], ecx
call dword [0x101672e8]
mov dword [0x101c8394], 0
jmp 0x10131a2a
lea ebx, [eax + 4]
mov eax, dword [ebx]
test eax, eax
jne 0x101319d8
pop edi
pop esi
pop ebx
ret
Function at 0x101329e7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017fa60
push 0x10100dc4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
test eax, eax
mov esi, 0x10000
je 0x10132a1f
lea esi, reloc.WINMM.dll_midiStreamOut
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
or edi, reloc.WINMM.dll_midiStreamOut
push 0x1c
lea ecx, [ebp - 0x3c]
push ecx
push esi
call dword [fcn.101672f0]
test eax, eax
ja 0x10132a5f
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x2c], reloc.WINMM.dll_midiStreamOut
jne 0x10132ac6
mov eax, dword [ebp - 0x28]
cmp al, 1
je 0x10132ac6
test ah, 1
jne 0x10132ac6
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], esi
cmp word [esi], 0x5a4d
jne 0x10132ac3
mov eax, dword [esi + 0x3c]
cmp eax, dword [ebp - 0x30]
ja 0x10132ac3
cmp eax, 0x40
jb 0x10132ac3
add eax, esi
mov dword [ebp - 0x20], eax
cmp dword [eax], reloc.WINMM.dll_midiStreamOut
jne 0x10132ac3
mov dword [ebp - 4], edi
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], edi
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x30]
lea esi, [eax + edx]
jmp 0x10132a39
Function at 0x10132ad7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017fa70
push 0x10100dc4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x10132b11
push eax
call dword [0x101672d8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
cmp word [eax], 0x5a4d
je 0x10132b29
push 0xc1
jmp 0x10132c00
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [ebp - 0x28], ecx
cmp dword [ecx], reloc.WINMM.dll_midiStreamOut
je 0x10132b43
push 0xbf
jmp 0x10132c00
mov ax, word [ecx + 0x14]
test ax, ax
je 0x10132bfb
movzx eax, ax
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 0x20], edx
xor edx, edx
mov dword [ebp - 0x24], edx
jmp 0x10132b67
movzx eax, word [ecx + 6]
cmp edx, eax
jae 0x10132bfb
lea ecx, [edx + edx*4]
mov eax, dword [ebp - 0x20]
lea ebx, [eax + ecx*8]
mov edi, 0x1017e8fc
mov esi, ebx
mov ecx, 8
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x10132be6
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x10132bfb
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x10132bfb
mov ecx, dword [ebp - 0x1c]
lea esi, [eax + ecx]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov eax, dword [esi]
cmp eax, 0x40
jb 0x10132bfb
cmp dword [esi + 4], reloc.WINMM.dll_midiStreamOut
jne 0x10132bfb
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x10132bc2
mov dword [esi + 8], eax
push 0
call dword [fcn.101672f8]
mov dword [ebp - 4], reloc.WINMM.dll_midiStreamOut
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
inc edx
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x28]
jmp 0x10132b67
push 0xc0
call dword [fcn.101672f8]
mov dword [ebp - 4], reloc.WINMM.dll_midiStreamOut
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x101353f7
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x10135402
xor eax, eax
ret
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
not esi
jb 0x101354fa
mov ebp, edi
shr ebp, 3
xor edx, edx
mov dl, byte [ecx]
mov eax, esi
shr eax, 8
sub edi, 8
xor edx, esi
and edx, 0xff
mov esi, dword [edx*4 + reloc.WINMM.dll_midiStreamOut]
xor edx, edx
mov dl, byte [ecx + 1]
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + reloc.WINMM.dll_midiStreamOut]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + reloc.WINMM.dll_midiStreamOut]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + reloc.WINMM.dll_midiStreamOut]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + reloc.WINMM.dll_midiStreamOut]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + reloc.WINMM.dll_midiStreamOut]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + reloc.WINMM.dll_midiStreamOut]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + reloc.WINMM.dll_midiStreamOut]
shr eax, 8
xor eax, esi
inc ecx
dec ebp
mov esi, eax
jne 0x1013541d
test edi, edi
je 0x10135519
xor eax, eax
mov al, byte [ecx]
xor eax, esi
and eax, 0xff
mov ebp, dword [eax*4 + reloc.WINMM.dll_midiStreamOut]
shr esi, 8
xor esi, ebp
inc ecx
dec edi
jne 0x101354fe
pop edi
mov eax, esi
pop esi
not eax
pop ebp
ret

Function at 0x10135527
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [esp + 4]
mov ecx, dword [edx]
xor eax, eax
mov al, byte [esp + 8]
push esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + reloc.WINMM.dll_midiStreamOut]
shr ecx, 8
xor eax, ecx
mov ecx, dword [edx + 4]
mov dword [edx], eax
and eax, 0xff
add eax, ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
mov esi, dword [eax*4 + reloc.WINMM.dll_midiStreamOut]
shr ecx, 8
xor ecx, esi
mov dword [edx + 8], ecx
pop esi
ret

Function at 0x10135587
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [esp + 4]
mov ecx, dword [edx + 8]
push ebx
movsx ebx, byte [esp + 0xc]
push esi
push edi
mov edi, dword [edx]
mov eax, edi
xor eax, ebx
and eax, 0xff
mov eax, dword [eax*4 + reloc.WINMM.dll_midiStreamOut]
shr edi, 8
xor eax, edi
mov edi, dword [edx + 4]
mov dword [edx], eax
and eax, 0xff
add eax, edi
imul eax, eax, 0x8088405
mov esi, ecx
and esi, 0xfffd
or esi, 2
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
mov edi, dword [eax*4 + reloc.WINMM.dll_midiStreamOut]
mov eax, esi
xor eax, 1
imul eax, esi
shr ecx, 8
xor ecx, edi
pop edi
shr eax, 8
pop esi
xor eax, ebx
mov dword [edx + 8], ecx
pop ebx
ret
Function at 0x10135747
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x48
push esi
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x18]
push eax
push esi
call dword [fcn.101672c0]
test eax, eax
jne 0x10135769
mov eax, 0x200
pop esi
add esp, 0x48
ret
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov edx, eax
xor ebp, ebp
and edx, 1
push edi
je 0x1013577e
mov ebp, 1
test al, 2
je 0x10135785
or ebp, 2
test al, 4
je 0x1013578c
or ebp, 4
mov ecx, eax
and ecx, 0x10
je 0x10135796
or ebp, 0x10
test al, 0x20
je 0x1013579d
or ebp, 0x20
test ecx, ecx
je 0x101357a9
or ebp, 0x40000000
jmp 0x101357af
or ebp, 0x80000000
or ebp, 0x1000000
test edx, edx
jne 0x101357bf
or ebp, 0x800000
push 0
push esi
call dword [fcn.101672c4]
cmp eax, 0x28
mov dword [esp + 0x14], eax
jbe 0x1013586c
mov edi, dword [fcn.101672d4]
push 0
push 0
push 0
push esi
call edi
mov ebx, dword [fcn.1016734c]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 2
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
push 0
push 0
push 0x24
push esi
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push esi
call ebx
cmp word [esp + 0x10], 0x54ad
jne 0x1013586c
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
lea edx, [eax + 0x34]
cmp ecx, edx
jbe 0x1013586c
push 0
push 0
push eax
push esi
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x2c]
push ecx
push esi
call ebx
mov eax, dword [esp + 0x20]
cmp eax, 0x5a4d
je 0x10135866
cmp eax, 0x454e
je 0x10135866
cmp eax, 0x454c
je 0x10135866
cmp eax, 0x4550
jne 0x1013586c
or ebp, 0x400000
mov eax, dword [esp + 0x60]
test eax, eax
je 0x10135876
mov dword [eax], ebp
mov eax, dword [esp + 0x64]
test eax, eax
je 0x10135884
mov edx, dword [esp + 0x14]
mov dword [eax], edx
mov esi, dword [esp + 0x68]
test esi, esi
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
je 0x10135905
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
push 0
sub eax, 0xd53e8000
push 0x989680
sbb ecx, 0x19db1de
push ecx
push eax
call fcn.101aa1a7
mov dword [esi + 4], edx
mov dword [esi], eax
push 0
mov edx, ebx
sub edx, 0xd53e8000
mov eax, edi
push 0x989680
sbb eax, 0x19db1de
push eax
push edx
call fcn.101aa1a7
mov ecx, dword [esp + 0x28]
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x2c]
push 0
sub ecx, 0xd53e8000
push 0x989680
sbb edx, 0x19db1de
push edx
push ecx
mov dword [esi + 8], eax
call fcn.101aa1a7
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x10135932
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
push ebx
call fcn.101356d7
movzx edx, word [esp + 0x20]
movzx eax, word [esp + 0x24]
shl edx, 0x10
add esp, 0x10
or edx, eax
mov dword [esi], edx
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x48
ret
Function at 0x1013a5d7
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test edx, edx
jle 0x1013a602
push esi
push edi
jmp 0x1013a5e7
movzx esi, byte [ecx]
movzx esi, byte [esi + 0x10182d30]
lea edi, [eax*8]
xor esi, edi
xor eax, esi
inc ecx
dec edx
jne 0x1013a5e7
pop edi
pop esi
ret

Function at 0x1013ff47
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
xor ebx, ebx
xor edi, edi
cmp ebp, ebx
mov eax, ebp
jne 0x1013ff61
mov dword [esp + 0x1c], ebx
jmp 0x1013ff7a
cmp byte [ebp], 0
je 0x1013ff6f
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1013ff67
sub eax, ebp
and eax, 0x3fffffff
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x14]
cmp eax, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
jle 0x10140046
push esi
jmp 0x1013ff97
cmp ebx, 2
mov esi, ebx
jge 0x1013ffa1
xor esi, 1
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1013ffc6
mov edx, dword [esp + 0x1c]
mov edx, dword [edx + 0x10]
mov ecx, esi
shl ecx, 4
mov ecx, dword [ecx + edx]
push ecx
push eax
call fcn.101397b7
add esp, 8
test eax, eax
jne 0x10140027
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x10]
shl esi, 4
mov ecx, dword [esi + eax + 0xc]
mov eax, dword [ecx + 0x14]
add ecx, 8
test eax, eax
je 0x10140009
mov esi, dword [esp + 0x20]
xor eax, eax
test esi, esi
mov edx, ebp
jle 0x10140003
movzx edi, byte [edx]
movzx edi, byte [edi + 0x10182d30]
lea ebx, [eax*8]
xor edi, ebx
xor eax, edi
inc edx
dec esi
jne 0x1013ffea
xor edx, edx
div dword [ecx]
jmp 0x1014000b
xor edx, edx
mov ebx, dword [esp + 0x20]
push ebp
call fcn.1013a667
add esp, 4
test eax, eax
je 0x10140042
mov edi, dword [eax + 8]
test edi, edi
jne 0x10140038
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
mov dword [esp + 0x10], ebx
jl 0x1013ff97
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 8
ret
xor edi, edi
jmp 0x10140023
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x10140057
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
xor ebx, ebx
xor edi, edi
cmp ebp, ebx
mov eax, ebp
jne 0x10140071
mov dword [esp + 0x1c], ebx
jmp 0x1014008a
cmp byte [ebp], 0
je 0x1014007f
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x10140077
sub eax, ebp
and eax, 0x3fffffff
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x14]
cmp eax, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], eax
jle 0x10140148
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x10], eax
push esi
mov edi, edi
cmp ebx, 2
mov eax, ebx
jge 0x101400b1
xor eax, 1
mov ecx, dword [esp + 0x14]
shl eax, 4
mov esi, dword [eax + ecx + 0xc]
add eax, ecx
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x101400d6
mov edx, dword [eax]
push edx
push ecx
call fcn.101397b7
add esp, 8
test eax, eax
jne 0x10140129
mov eax, dword [esi + 0x24]
test eax, eax
lea ecx, [esi + 0x18]
je 0x1014010b
mov esi, dword [esp + 0x20]
xor eax, eax
test esi, esi
mov edx, ebp
jle 0x10140105
movzx edi, byte [edx]
movzx edi, byte [edi + 0x10182d30]
lea ebx, [eax*8]
xor edi, ebx
xor eax, edi
inc edx
dec esi
jne 0x101400ec
xor edx, edx
div dword [ecx]
jmp 0x1014010d
xor edx, edx
mov ebx, dword [esp + 0x20]
push ebp
call fcn.1013a667
add esp, 4
test eax, eax
je 0x10140144
mov edi, dword [eax + 8]
test edi, edi
jne 0x1014013a
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
inc ebx
cmp ebx, eax
mov dword [esp + 0x10], ebx
jl 0x101400a7
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
xor edi, edi
jmp 0x10140125
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x10144227
Capabilities:
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
lea eax, [esi*8]
cmp eax, 0x400
jbe 0x10144240
mov esi, 0x80
cmp esi, dword [ebx]
jne 0x10144249
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [0x101c86ec]
test eax, eax
je 0x10144254
call eax
lea ecx, [esi*8]
push edi
push ecx
call fcn.101437b7
mov edi, eax
mov eax, dword [0x101c86f0]
add esp, 4
test eax, eax
mov dword [esp + 8], edi
je 0x10144276
call eax
test edi, edi
jne 0x10144280
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov edx, dword [ebx + 0xc]
push ebp
push edx
call fcn.10139447
push edi
mov dword [ebx + 0xc], edi
call dword [fcn.101b76bc]
mov ebp, eax
shr ebp, 3
xor eax, eax
lea ecx, [ebp + ebp]
mov dword [ebx], ebp
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 8]
add esp, 8
test ecx, ecx
mov dword [esp + 0x14], ebp
mov dword [ebx + 8], eax
je 0x1014434d
mov esi, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
xor eax, eax
test esi, esi
jle 0x101442e4
lea ecx, [ecx]
movzx edi, byte [edx]
movzx edi, byte [edi + 0x10182d30]
lea ebp, [eax*8]
xor edi, ebp
xor eax, edi
inc edx
dec esi
jne 0x101442c7
mov ebp, dword [esp + 0x14]
xor edx, edx
div ebp
mov eax, dword [esp + 0xc]
mov edi, dword [ecx]
lea eax, [eax + edx*8]
test eax, eax
je 0x1014432a
mov esi, dword [eax]
test esi, esi
je 0x10144300
mov edx, dword [eax + 4]
jmp 0x10144302
xor edx, edx
inc esi
test edx, edx
mov dword [eax], esi
mov dword [eax + 4], ecx
je 0x1014432a
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x10144322
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x10144343
mov dword [ebx + 8], ecx
mov dword [edx + 4], ecx
jmp 0x10144343
mov edx, dword [ebx + 8]
mov dword [ecx], edx
mov eax, dword [ebx + 8]
test eax, eax
je 0x10144339
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [ebx + 8], ecx
test edi, edi
mov ecx, edi
jne 0x101442b8
pop ebp
pop edi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x10150a17
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x10150b94
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x10150a3a
mov eax, dword [esi + reloc.WINMM.dll_midiStreamOut]
test eax, eax
jne 0x10150a49
dec word [ebx + 0x28]
cmp word [ebx + 0x28], 0
ja 0x10150b93
push ebp
mov ebp, dword [ebx + 8]
test ebp, ebp
push edi
mov dword [esp + 0x14], ebp
je 0x10150b2b
test esi, esi
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
je 0x10150a73
mov eax, dword [esi + reloc.WINMM.dll_midiStreamOut]
test eax, eax
jne 0x10150b08
mov ecx, dword [ebp]
test ecx, ecx
mov eax, ecx
jne 0x10150a80
xor ebx, ebx
jmp 0x10150a98
cmp byte [ecx], 0
je 0x10150a8f
mov edi, edi
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x10150a87
sub eax, ecx
and eax, 0x3fffffff
mov ebx, eax
mov esi, dword [ebp + 0x18]
mov eax, dword [esi + 0x18]
add esi, 0x18
test eax, eax
je 0x10150ae4
xor eax, eax
test ebx, ebx
mov edx, ecx
jle 0x10150adc
mov dword [esp + 0x10], ebx
lea ebx, [ebx]
movzx edi, byte [edx]
movzx edi, byte [edi + 0x10182d30]
lea ebp, [eax*8]
xor edi, ebp
xor eax, edi
mov edi, dword [esp + 0x10]
inc edx
dec edi
mov dword [esp + 0x10], edi
jne 0x10150ab7
mov ebp, dword [esp + 0x14]
xor edx, edx
div dword [esi]
mov edi, edx
jmp 0x10150ae6
xor edi, edi
push ecx
mov edx, edi
mov ecx, esi
call fcn.1013a667
add esp, 4
test eax, eax
je 0x10150b00
mov edx, edi
mov ecx, esi
call fcn.1013a6b7
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov eax, dword [ebp + 0x10]
mov ecx, esi
call fcn.101394e7
mov eax, ebp
mov ecx, esi
call fcn.101394e7
mov ebp, dword [esp + 0x18]
test ebp, ebp
mov dword [esp + 0x14], ebp
jne 0x10150a5a
push ebx
call fcn.1014a1e7
push ebx
mov edi, esi
call fcn.10149857
mov eax, dword [ebx]
add esp, 8
mov ecx, esi
call fcn.101394e7
mov eax, dword [ebx + 0x14]
mov ecx, esi
call fcn.101394e7
mov edi, dword [ebx + 0xc]
test edi, edi
je 0x10150b69
push edi
push esi
call fcn.10140fd7
add esp, 8
mov eax, edi
mov ecx, esi
call fcn.101394e7
mov ecx, dword [ebx + 0x18]
push ecx
push esi
call fcn.10148d07
mov eax, ebx
add esp, 8
mov ebx, esi
call fcn.10141977
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xc
jmp fcn.101394e7
pop esi
pop ebx
add esp, 0xc
ret