joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d188c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.0040fe88
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.005cb6b8
test ebx, ebx
jne 0x5d18df
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.005d1704
mov ebx, eax
test ebx, ebx
je 0x5d19d5
cmp esi, ebx
je 0x5d1908
mov eax, dword [esp]
sub eax, dword [ebx + 0x50]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x54]
mov dword [esp + 0x118], eax
jmp 0x5d191d
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x5d1955
add eax, 0xffffff5f
sub eax, 2
jb 0x5d196d
dec eax
sub eax, 2
jb 0x5d1981
dec eax
sub eax, 2
jb 0x5d1977
jmp 0x5d198b
add eax, 0xfffffdff
sub eax, 2
jb 0x5d196d
dec eax
sub eax, 2
jb 0x5d1981
dec eax
sub eax, 2
jb 0x5d1977
jmp 0x5d198b
mov byte [esp + 0x120], 0
jmp 0x5d1993
mov byte [esp + 0x120], 2
jmp 0x5d1993
mov byte [esp + 0x120], 1
jmp 0x5d1993
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0059a264
mov esi, eax
call fcn.005c8124
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.005cd0fc
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x5d19d7
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x5e0780
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
test dl, dl
je 0x5e0798
add esp, 0xfffffff0
call fcn.00407cb0
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x5e08b2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
call fcn.004067ec
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
dec ebx
test ebx, ebx
jl 0x5e089c
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.00590058
xor eax, eax
push ebp
push 0x5e0889
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.00590058
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
lea ebx, [eax + edx*8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [ebx], eax
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.0040a0c8
jmp 0x5e085a
lea eax, [ebx + 4]
mov ecx, 1
mov edx, 1
call fcn.0040a3f4
mov eax, dword [ebx + 4]
call fcn.004097ec
dec eax
jle 0x5e086e
mov eax, dword [ebx + 4]
cmp word [eax], 0x5f
je 0x5e0848
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e0890
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x54]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e08b9
lea eax, [ebp - 4]
call fcn.00409370
ret
Function at 0x5e88a0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x5e88ce
mov eax, ebx
call fcn.005e935c
cmp dword [ebx + 0x40], 0
je 0x5e88c7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x5e893f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x5e8931
cmp dword [ebx + 8], 0
je 0x5e88f0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x5e8902
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x5e8931
cmp dword [ebx + 8], 0
je 0x5e88e3
cmp eax, 3
je 0x5e8915
dec eax
jne 0x5e88e3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x5e88e3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x5e88e3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x5e895d
cmp dword [ebx + 0x14], 0xcc
je 0x5e895d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.005e8968
pop ebx
ret

Function at 0x5f8e94
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
add esp, 0xfffffff0
call fcn.005f8e90
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
push 0x64
call sub.kernel32.dll_Sleep_2
call fcn.005f8e90
sub eax, dword [esp]
sbb edx, dword [esp + 4]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call sub.kernel32.dll_GetTickCount_1
mov ecx, eax
sub ecx, ebx
cmp dword [esp + 0xc], 0
jne 0x5f8ee2
cmp dword [esp + 8], 0x2faf080
jb 0x5f8eed
jmp 0x5f8ee4
jl 0x5f8eed
cmp ecx, 0x32
jb 0x5f8eed
xor eax, eax
jmp 0x5f8eef
mov al, 1
add esp, 0x10
pop ebx
ret
Function at 0x40aac7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40aae7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040d204
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40ab08
test byte [esp + 8], 2
je 0x40ab08
mov dword [0x41b008], 0xd
mov dword [0x41b00c], 5
jmp 0x40aae3
xor eax, eax
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x415e6660
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x415e682d
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10000]
push edi
jmp 0x415e668a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x415e6691
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x415e6680
mov eax, 1
add ebx, ebx
jne 0x415e66a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x415e6698
jne 0x415e66b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x415e6698
xor ecx, ecx
sub eax, 3
jb 0x415e66c8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x415e673a
mov ebp, eax
add ebx, ebx
jne 0x415e66d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x415e66e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x415e6704
inc ecx
add ebx, ebx
jne 0x415e66f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x415e66e5
jne 0x415e6701
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x415e66e5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x415e6724
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x415e6715
jmp 0x415e6686
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x415e6724
add edi, ecx
jmp 0x415e6686
pop esi
mov edi, esi
mov ecx, 0xcf
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x415e6742
cmp byte [edi], 1
jne 0x415e6742
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 0x415e6747
lea edi, [esi + 0x24000]
mov eax, dword [edi]
or eax, eax
je 0x415e67bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2cfcc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2d080]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x415e6774
mov ecx, edi
jns 0x415e67a3
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 + 0x2d084]
or eax, eax
je 0x415e67b9
mov dword [ebx], eax
add ebx, 4
jmp 0x415e6791
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x415e67f0
cmp al, 0xef
ja 0x415e67e3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x415e67c5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x415e67d2
mov ebp, dword [esi + 0x2d088]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x415e6824
sub esp, 0xffffff80
jmp 0x415c1285
Function at 0x5799b7
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10032f09
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [reloc.WINMM.dll_midiStreamStop]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [reloc.WINMM.dll_midiStreamStop]
mov edx, dword [eax + 0xc]
lea edi, [esi + 0xc]
mov ecx, 0x1004213c
mov dword [ebp - 0x14], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 1
mov dword [esi + 0x2c], 0
call dword [0x100351c8]
or dword [esi + 0x2c], 2
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], 0xea60
mov dword [esi + 0x30], 0xbb8
mov eax, dword [reloc.WINMM.dll_midiStreamStop]
mov edx, dword [eax + 0xc]
lea edi, [esi + 0x48]
mov ecx, 0x1004213c
mov dword [ebp - 0x14], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 3
mov eax, dword [reloc.WINMM.dll_midiStreamStop]
mov edx, dword [eax + 0xc]
lea edi, [esi + 0x54]
mov ecx, 0x1004213c
mov dword [ebp - 0x14], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], reloc.WINMM.dll_midiStreamStop
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x57e177
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x14]
mov eax, esi
and eax, 0x80000007
mov dword [ebp - 4], ecx
jns 0x57e190
dec eax
or eax, 0xfffffff8
inc eax
jne 0x57e273
cmp esi, 0x10
jl 0x57e273
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
push ebx
push edi
neg ecx
or ecx, eax
push ecx
call fcn.00584d31
add esp, 4
xor edi, edi
mov ebx, eax
test esi, esi
jle 0x57e1f0
lea ecx, [ecx]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edi
push 0
push esi
push ebx
push edi
push edx
push eax
push ecx
mov ecx, dword [ebp - 4]
call fcn.0057de67
add edi, 8
cmp edi, esi
jl 0x57e1c7
mov eax, 8
cmp esi, eax
jle 0x57e214
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
lea ecx, [edx + ecx*4]
jmp 0x57e207
mov edx, dword [ecx]
xor dword [ebx + eax*4], edx
inc eax
add ecx, 4
cmp eax, esi
jl 0x57e207
mov edi, dword [ebx]
and edi, 7
mov eax, 0xfffffff6
sub eax, edi
add esi, eax
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00584d31
mov ecx, eax
add esp, 4
xor eax, eax
mov dword [ebp + 8], ecx
test esi, esi
jle 0x57e259
lea edi, [ebx + edi*4 + 0xc]
mov edx, dword [edi]
mov dword [ecx + eax*4], edx
inc eax
add edi, 4
cmp eax, esi
jl 0x57e24c
mov eax, dword [ebp + 0x20]
push ebx
mov dword [eax], esi
call fcn.00585fd3
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x1c
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x5af515
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, 0x10019e78
jmp 0x5af4f7
push 0xffffffffffffffff
push 0x10014008
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov al, byte [esp + 3]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov cl, byte [esp + 0x13]
xor ebx, ebx
push 0x34
mov dword [esp + 0x1c], esi
mov byte [esi], al
mov byte [esi + 1], cl
mov byte [esi + 8], bl
call fcn.005c1565
mov edi, eax
add esp, 4
lea ecx, [esp + 0x14]
mov ebp, edi
mov dword [edi + 4], ebx
mov dword [edi + 0x30], 1
call dword [0x100151dc]
cmp dword [reloc.WINMM.dll_midiStreamStop], ebx
jne 0x5af568
mov dword [reloc.WINMM.dll_midiStreamStop], edi
mov dword [edi], ebx
mov edx, dword [reloc.WINMM.dll_midiStreamStop]
xor ebp, ebp
mov dword [edx + 8], ebx
mov ecx, dword [reloc.WINMM.dll_midiStreamStop]
inc ecx
mov dword [reloc.WINMM.dll_midiStreamStop], ecx
lea ecx, [esp + 0x14]
call dword [0x10015208]
cmp ebp, ebx
je 0x5af58c
push ebp
call fcn.005c155f
add esp, 4
mov edi, dword [reloc.WINMM.dll_midiStreamStop]
push 0x34
call fcn.005c1565
mov dword [eax + 4], edi
mov dword [eax + 0x30], ebx
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [eax], eax
mov eax, dword [esi + 4]
add esp, 4
mov dword [eax + 8], eax
lea edi, [esi + 0x10]
push ebx
mov ecx, edi
mov dword [esp + 0x28], ebx
call fcn.005c1559
mov dword [edi], reloc.WINMM.dll_midiStreamStop
add edi, 8
push edi
call dword [0x10015044]
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x5b2157
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
xor edx, edx
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov ecx, ebp
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x5b2168
mov byte [ebp + 0x100], dl
mov byte [ebp + 0x101], dl
mov byte [esp + 0x24], dl
xor esi, esi
mov ebx, ebp
mov dword [esp + 0x10], 0x100
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
and edi, 0xff
xor eax, eax
xor edx, edx
mov al, byte [edi + ecx]
mov dl, byte [ebx]
add esi, eax
add edx, esi
and edx, 0x800000ff
jns 0x5b21b9
dec edx
or edx, 0xffffff00
inc edx
mov byte [esp + 0x14], dl
mov esi, dword [esp + 0x14]
and esi, 0xff
lea eax, [esi + ebp]
push eax
push ebx
call fcn.005b2127
lea eax, [edi + 1]
add esp, 8
cdq
idiv dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc ebx
dec eax
mov dword [esp + 0x10], eax
mov byte [esp + 0x24], dl
jne 0x5b218e
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x5b21f7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
mov edx, dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
xor ebp, ebp
mov al, byte [ebx + 0x100]
mov cl, byte [ebx + 0x101]
cmp edx, ebp
mov byte [esp + 0x24], al
mov byte [esp + 8], cl
mov dword [esp + 0xc], ebp
jle 0x5b2303
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x10]
and esi, 0xff
and edi, 0xff
lea eax, [esi + 1]
and eax, 0x800000ff
jns 0x5b224d
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + 0x2c], al
xor ecx, ecx
mov esi, dword [esp + 0x2c]
and esi, 0xff
mov cl, byte [esi + ebx]
lea eax, [esi + ebx]
add ecx, edi
mov dword [esp + 0x1c], eax
and ecx, 0x800000ff
jns 0x5b2279
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov edi, dword [esp + 0x10]
and edi, 0xff
lea ecx, [edi + ebx]
push ecx
push eax
mov dword [esp + 0x20], ecx
call fcn.005b2127
mov eax, dword [esp + 0x20]
xor edx, edx
xor ecx, ecx
add esp, 8
mov dl, byte [eax]
mov eax, dword [esp + 0x1c]
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x5b22ba
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [esp + 0x24]
and edx, 0xff
mov cl, byte [edx + ebx]
mov dl, byte [eax + ebp]
xor dl, cl
mov byte [eax + ebp], dl
mov eax, dword [esp + 0x14]
inc eax
movsx ebp, ax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
cmp ebp, eax
jl 0x5b223c
mov dl, byte [esp + 0x2c]
mov al, byte [esp + 0x10]
pop edi
pop esi
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], al
pop ebp
pop ebx
add esp, 0x10
ret
mov byte [ebx + 0x100], al
mov byte [ebx + 0x101], cl
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x5b2317
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x400
xor ecx, ecx
lea edx, [esp]
push esi
mov eax, ecx
mov esi, 8
test al, 1
je 0x5b2338
shr eax, 1
xor eax, 0xedb88320
jmp 0x5b233a
shr eax, 1
dec esi
jne 0x5b232b
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, 0x100
jl 0x5b2324
mov edx, dword [esp + reloc.WINMM.dll_midiStreamStop]
or eax, reloc.WINMM.dll_midiStreamStop
mov ecx, edx
dec edx
test ecx, ecx
je 0x5b2383
mov ecx, dword [esp + reloc.WINMM.dll_midiStreamStop]
push ebx
lea esi, [edx + 1]
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [esp + edx*4 + 8]
xor eax, edx
inc ecx
dec esi
jne 0x5b2367
pop ebx
not eax
pop esi
add esp, 0x400
ret
Function at 0x5ba6e5
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
mov ecx, 0x1001a020
jmp 0x5ba6c7
push 0xffffffffffffffff
push 0x10014be8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov al, byte [esp + 3]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov cl, byte [esp + 0x13]
xor ebx, ebx
push 0x18
mov dword [esp + 0x1c], esi
mov byte [esi], al
mov byte [esi + 1], cl
mov byte [esi + 8], bl
call fcn.005c1565
mov edi, eax
add esp, 4
lea ecx, [esp + 0x14]
mov ebp, edi
mov dword [edi + 4], ebx
mov dword [edi + 0x14], 1
call dword [0x100151dc]
cmp dword [reloc.WINMM.dll_midiStreamStop], ebx
jne 0x5ba738
mov dword [reloc.WINMM.dll_midiStreamStop], edi
mov dword [edi], ebx
mov edx, dword [reloc.WINMM.dll_midiStreamStop]
xor ebp, ebp
mov dword [edx + 8], ebx
mov ecx, dword [reloc.WINMM.dll_midiStreamStop]
inc ecx
mov dword [reloc.WINMM.dll_midiStreamStop], ecx
lea ecx, [esp + 0x14]
call dword [0x10015208]
cmp ebp, ebx
je 0x5ba75c
push ebp
call fcn.005c155f
add esp, 4
mov edi, dword [reloc.WINMM.dll_midiStreamStop]
push 0x18
call fcn.005c1565
mov dword [eax + 4], edi
mov dword [eax + 0x14], ebx
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [eax], eax
mov eax, dword [esi + 4]
add esp, 4
mov dword [eax + 8], eax
lea edi, [esi + 0x10]
push ebx
mov ecx, edi
mov dword [esp + 0x28], ebx
call fcn.005c1559
mov dword [edi], reloc.WINMM.dll_midiStreamStop
add edi, 8
push edi
call dword [0x10015044]
push ebx
call dword [0x10015244]
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [esi + 0x30], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x8b6513
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x528cf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x48]
push ebp
push eax
push ecx
lea ecx, reloc.WINMM.dll_midiStreamStop
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.008b1413
test eax, eax
jne 0x8b657f
push ebp
push 0x58df70
mov ecx, edi
call fcn.008b5793
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov edx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
push esi
push ebp
push ebp
push ebx
lea ecx, [edx + 0x14]
call fcn.008b0e43
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.008a70b3
push ebx
mov dword [esp + 0x4c], ebp
call fcn.008b15c3
add esp, 4
test eax, eax
je 0x8b6622
add esi, 0x18
push esi
call fcn.008a7a53
add esi, eax
push esi
call fcn.008a7a53
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja 0x8b6925
jmp dword [ecx*4 + 0x4cafa0]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.008b58d3
mov ebx, dword [esp + 0x58]
mov ebp, eax
lea edi, [esi + 0x18]
mov edx, dword [ebp + 0x28]
lea ecx, [ebx + ebx*4]
mov esi, edi
lea eax, [edx + ecx*4]
push esi
mov dword [esp + 0x5c], eax
call fcn.008a7a53
add esi, eax
push esi
call fcn.008a7a53
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x8b6673
mov ecx, dword [esi + 0x1c]
push ecx
call dword [fcn.0052c44c]
test eax, eax
je 0x8b6673
mov eax, 1
jmp 0x8b6675
xor eax, eax
cmp ebx, 8
jge 0x8b68da
cmp ebx, 7
ja 0x8b6925
jmp dword [ebx*4 + 0x4cafb0]
test eax, eax
jne 0x8b68ed
mov ecx, dword [esp + 0x10]
push eax
push 0x58df5c
call fcn.008b5793
push 6
call dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
xor ecx, ecx
add ebx, 0xfffffff8
push edx
mov dword [esp + 0x20], ecx
push ebx
push esi
mov dword [esp + 0x2c], ecx
call eax
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.008b6e33
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x48], reloc.WINMM.dll_midiStreamStop
mov dword [esp + 0x2c], 0x577668
call fcn.008a72b3
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
mov edx, edi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
Function at 0x8bf6b3
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5a7628]
xor edx, edx
cmp eax, edx
jne 0x8bf6d9
xor eax, eax
mov byte [eax + 0x5a7528], al
inc eax
cmp eax, 0x100
jl 0x8bf6c1
mov dword [0x5a7628], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5a7528
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x8bf76a
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x8bf73d
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x8bf70b
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x8bf7e3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x8bf836
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x8bf81d
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret