joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10041920
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x10041990
push 0xffffffffffffffff
push 0x10042a08
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100695e8]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x1006a9c8]
cmp eax, 0xffffffff
jne 0x100419c9
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x100419d6
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x2c], 0
test ebp, ebp
je 0x10041a3d
jmp 0x10041a0c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0x14], 0
mov edi, dword [ebp + 0xc]
jne 0x10041a7a
test edi, edi
jne 0x10041a80
push 0x10041600
push 0x1006c8e0
call fcn.10041160
mov eax, dword [0x1006a9c8]
add esp, 8
cmp eax, 0xffffffff
je 0x10041a3d
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x2c], 0xffffffff
test ebp, ebp
je 0x10041a66
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10041a66
mov eax, dword [ebp]
push 0
mov ecx, ebp
call dword [eax]
push ebp
push 0
call esi
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
test edi, edi
je 0x10041ab8
mov edi, edi
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x10041aa9
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
push 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebx
push edi
push 0
call esi
push eax
call ebx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x10041a80
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
mov esi, dword [ebx]
mov dword [esp + 0x18], eax
cmp esi, ebx
je 0x10041a00
mov ebp, eax
mov edi, edi
cmp byte [esi + 0xd], 0
mov edi, esi
jne 0x10041b17
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x10041afc
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x10041b17
jmp 0x10041af0
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x10041af0
jmp 0x10041b17
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10041b15
cmp esi, dword [eax + 8]
jne 0x10041b15
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10041b05
mov esi, eax
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x10041b2b
mov edx, dword [edi + 0x1c]
test edx, edx
je 0x10041b2b
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push edi
lea eax, [esp + 0x24]
push eax
mov ecx, ebp
call fcn.10041680
cmp esi, ebx
jne 0x10041ad0
mov ebp, dword [esp + 0x14]
jmp 0x10041a00
Function at 0x10041990
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x10041990
push 0xffffffffffffffff
push 0x10042a08
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100695e8]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x1006a9c8]
cmp eax, 0xffffffff
jne 0x100419c9
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x100419d6
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x2c], 0
test ebp, ebp
je 0x10041a3d
jmp 0x10041a0c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0x14], 0
mov edi, dword [ebp + 0xc]
jne 0x10041a7a
test edi, edi
jne 0x10041a80
push 0x10041600
push 0x1006c8e0
call fcn.10041160
mov eax, dword [0x1006a9c8]
add esp, 8
cmp eax, 0xffffffff
je 0x10041a3d
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x2c], 0xffffffff
test ebp, ebp
je 0x10041a66
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10041a66
mov eax, dword [ebp]
push 0
mov ecx, ebp
call dword [eax]
push ebp
push 0
call esi
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
test edi, edi
je 0x10041ab8
mov edi, edi
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x10041aa9
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
push 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebx
push edi
push 0
call esi
push eax
call ebx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x10041a80
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
mov esi, dword [ebx]
mov dword [esp + 0x18], eax
cmp esi, ebx
je 0x10041a00
mov ebp, eax
mov edi, edi
cmp byte [esi + 0xd], 0
mov edi, esi
jne 0x10041b17
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x10041afc
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x10041b17
jmp 0x10041af0
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x10041af0
jmp 0x10041b17
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10041b15
cmp esi, dword [eax + 8]
jne 0x10041b15
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10041b05
mov esi, eax
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x10041b2b
mov edx, dword [edi + 0x1c]
test edx, edx
je 0x10041b2b
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push edi
lea eax, [esp + 0x24]
push eax
mov ecx, ebp
call fcn.10041680
cmp esi, ebx
jne 0x10041ad0
mov ebp, dword [esp + 0x14]
jmp 0x10041a00
Function at 0x100546e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10055d50
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100695e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x24], ebx
push 0x10061d60
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x28], 0
call fcn.1000b510
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.10054170
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x20]
cmp dword [esi - 0xc], 0
je 0x100547dc
lea eax, [ebp - 0x14]
push eax
push esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov edi, eax
test edi, edi
je 0x100547dc
push edi
call fcn.100243f8
add esp, 4
mov ebx, eax
push ebx
push edi
push dword [ebp - 0x14]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x100547d0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x100620bc
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x100547d0
cmp dword [ebp - 0x18], 0
je 0x100547d0
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], 0xfeef04bd
jne 0x100547d0
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0x10]
push str._d._d._d._d
push eax
call fcn.1000c0d0
add esp, 0x18
push ebx
call fcn.100268a3
mov ebx, dword [ebp - 0x24]
add esp, 4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.1000de10
add eax, 0x10
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov dword [ebx], eax
mov eax, esi
lea ecx, [edx + 0xc]
mov byte [ebp - 4], 0
add esp, 4
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10054810
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x10054831
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10054850
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10055bf3
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x100695e8]
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 esi, ecx
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], 0
je 0x10054897
call fcn.10054a80
jmp 0x10054a33
push dword [ebp + 8]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
call edi
test eax, eax
je 0x10054a33
push 0x103
lea eax, [ebp - 0x147]
push 0
push eax
mov byte [ebp - 0x148], 0
call fcn.100275b0
add esp, 0xc
lea eax, [ebp - 0x148]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push dword [esi + 0x974]
lea ebx, [esi + 0x974]
lea eax, [esi + 0x20]
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24c]
push eax
mov dword [ebp - 0x17], 0x697078
mov dword [ebp - 0x20], 0x255c7325
mov dword [ebp - 0x1c], 0x73255c73
mov byte [ebp - 0x18], 0x2e
call fcn.100146e0
add esp, 0x14
lea eax, [ebp - 0x24c]
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x24c]
push eax
call edi
test eax, eax
je 0x10054a33
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x250]
mov word [ebp - 0x32], 0x7269
mov dword [ebp - 0x2b], 0x65747865
mov dword [ebp - 0x37], 0x5c616c6c
mov word [ebp - 0x3c], 0x4d5c
mov word [ebp - 0x39], 0x697a
mov dword [ebp - 0x24], 0x736e6f
mov word [ebp - 0x26], 0x6973
mov byte [ebp - 0x33], 0x46
mov dword [ebp - 0x40], 0x65726177
mov dword [ebp - 0x30], 0x786f4665
mov byte [ebp - 0x3a], 0x6f
mov dword [ebp - 0x44], 0x74666f53
mov byte [ebp - 0x2c], 0x5c
mov byte [ebp - 0x27], 0x6e
call fcn.1000b510
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x978]
mov edi, 1
mov ecx, edi
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x100549d1
push 0x104
lea ecx, [esi + 0x978]
call fcn.1000dfc0
mov eax, dword [ebp - 0x250]
mov esi, dword [esi + 0x978]
mov ecx, dword [eax - 8]
sub edi, dword [eax - 4]
sub ecx, 0x104
or ecx, edi
jge 0x10054a03
push 0x104
lea ecx, [ebp - 0x250]
call fcn.1000dfc0
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x24c]
push ecx
push esi
push eax
push ecx
call fcn.10054fb0
push 0xffffffffffffffff
mov ecx, ebx
call fcn.1000bad0
push 0xffffffffffffffff
lea ecx, [ebp - 0x250]
call fcn.1000bad0
lea ecx, [ebp - 0x250]
call fcn.1000e030
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10054a57
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.10026aaf
mov esp, ebp
pop ebp
ret 8
Function at 0x10054a80
Capabilities:
Contain obfuscated stackstrings
Get common file path
Get file size
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005602b
mov eax, dword fs:[0]
push eax
sub esp, 0x324
mov eax, dword [0x100695e8]
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 ebx, ecx
push 0x103
lea eax, [ebp - 0x11f]
push 0
push eax
mov byte [ebp - 0x120], 0
call fcn.100275b0
push 0x103
lea eax, [ebp - 0x327]
push 0
push eax
mov byte [ebp - 0x328], 0
call fcn.100275b0
push 0x103
lea eax, [ebp - 0x223]
push 0
push eax
mov byte [ebp - 0x224], 0
call fcn.100275b0
mov eax, dword [0x10069550]
add esp, 0x24
mov ecx, 0x10069550
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x32c], eax
mov dword [ebp - 4], 0
push dword [ebx + 0x974]
lea eax, [ebp - 0x1c]
push dword [ebx + 0x97c]
mov dword [ebp - 0x18], 0x70782e73
push eax
lea eax, [ebp - 0x32c]
push eax
mov dword [ebp - 0x1c], 0x255c7325
mov word [ebp - 0x14], 0x69
call fcn.1000c0d0
add esp, 0x10
lea eax, [ebp - 0x120]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x328]
push 0x104
push eax
call fcn.100279cd
mov esi, dword [ebp - 0x32c]
add esp, 0xc
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10054c19
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.100275b0
add esp, 0xc
lea eax, [ebp - 0x224]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push ecx
lea eax, [ebp - 0x330]
push eax
sub esp, 8
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x120]
push eax
mov ecx, ebx
mov dword [ebp - 0x330], 0
call fcn.10054c60
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10054c3a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.10026aaf
mov esp, ebp
pop ebp
ret
Function at 0x10054fb0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100695e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x10c]
push eax
push 0xf003f
push 0
push edi
push 0x80000002
mov dword [ebp - 0x10c], 0
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1005502b
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.100275b0
mov edi, dword [ebp - 0x114]
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push edi
push dword [ebp - 0x10c]
mov dword [ebp - 0x118], 0x104
mov dword [ebp - 0x110], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, ebx
test eax, eax
je 0x100550b4
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10055090
sub ecx, edx
push ecx
push ebx
push 1
push 0
push edi
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10055113
xor esi, esi
jmp 0x10055113
lea eax, [ebp - 0x108]
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100550e0
test dl, dl
je 0x100550dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100550e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x100550c0
xor eax, eax
jmp 0x100550e5
sbb eax, eax
or eax, 1
test eax, eax
je 0x10055113
mov ecx, ebx
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100550f0
sub ecx, edx
push ecx
push ebx
push 1
push 0
push edi
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10026aaf
mov esp, ebp
pop ebp
ret 0x10
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x415860
Capabilities:
Terminate process

Disassembly:
mov eax, 0x5000
call fcn.00493120
push ebx
push esi
push edi
push str.Exit_with_an_error._n
call fcn.00415ef0
push 0x4a3af4
call fcn.00415ef0
call fcn.0042af50
push 8
push 0x19
push 0x50
push 0xffffffffffffffff
mov byte [esp + 0x1024], 0
call fcn.0041c3f0
add esp, 0x18
call fcn.00418200
test eax, eax
je 0x4158ef
call fcn.00418210
push eax
lea eax, [esp + 0x10]
push str.Library__built_in__message:__s._n_n
push eax
call fcn.00492257
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x100c]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x4b5b4c]
add eax, 0xc534
cmp byte [eax], 0
je 0x415943
push eax
lea ecx, [esp + 0x10]
push str.Error_message:__s_n_n
push ecx
call fcn.00492257
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x100c]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x41597e
lea edi, [esp + 0x100c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x4a3b40]
repne scasb al, byte es:[edi]
mov eax, dword [str.Error_detected._n_n]
mov ecx, dword [0x4a3b3c]
dec edi
mov dword [edi], eax
mov eax, dword [0x4a3b44]
mov dword [edi + 4], ecx
mov cx, word [0x4a3b48]
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
mov word [edi + 0x10], cx
mov al, byte [0x4b6c60]
test al, al
je 0x4159ce
push 0x4b6c60
lea edx, [esp + 0x10]
push str.Library_error_message:__s_n_n
push edx
call fcn.00492257
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x100c]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x4b54e8]
test eax, eax
je 0x415a19
lea eax, [esp + 0xc]
push str.Out_of_memory_error._n_n
push eax
call fcn.00492257
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x100c]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0044e020
call fcn.0044ddc0
call fcn.0044c4b0
call fcn.00429280
mov eax, dword [0x4b5b4c]
pop edi
pop esi
pop ebx
mov ecx, dword [eax + 0x400]
test ecx, ecx
je 0x415a48
push eax
call fcn.0049ec66
add esp, 4
push 0x10000
lea eax, [esp + 0x1004]
push str.M.U.G.E.N_Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call sub.alleg40.dll_Ordinal_72
push 1
call fcn.0049320e
nop
nop
Function at 0x415a70
Capabilities:
Terminate process

Disassembly:
mov edx, dword [0x4b5b4c]
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
add edx, 0xc534
push eax
push ecx
push edx
call fcn.0049314f
add esp, 0xc
jmp fcn.00415860
Function at 0x4187d0
Capabilities:
Terminate process

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x4187fd
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
mov eax, ecx
mov esi, edi
mov edi, 0x4b6c60
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41882b
mov ecx, dword [str.Error_detected.]
mov edx, dword [0x4a429c]
mov eax, dword [0x4a42a0]
mov dword [0x4b6c60], ecx
mov ecx, dword [0x4a42a4]
mov dword [0x4b6c64], edx
mov dword [0x4b6c68], eax
mov dword [0x4b6c6c], ecx
push 0x10000
push str.Error_message
push 0x4b6c60
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0049320e
pop edi
nop
nop
nop
nop
nop
nop
Function at 0x44d650
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
push ebp
push esi
mov esi, dword [esp + 0x38]
mov dword [esp + 0x10], 0x5622
push esi
mov dword [esp + 0x10], 8
mov dword [esp + 0xc], 1
xor ebp, ebp
call fcn.00418d20
mov dword [esp + 0x3c], eax
push esi
push 1
lea eax, [esp + 0x24]
push 0xc
push eax
call fcn.00418910
lea edx, [esp + 0x2c]
mov ecx, str.RIFF
add esp, 0x14
mov eax, dword [edx]
mov edx, dword [ecx]
cmp eax, edx
jne 0x44d7a0
lea edx, [esp + 0x20]
mov ecx, str.WAVE
mov eax, dword [edx]
mov edx, dword [ecx]
cmp eax, edx
jne 0x44d7a0
mov ecx, dword [esp + 0x1c]
push esi
add ecx, 8
mov dword [esp + 0x18], ecx
call fcn.004189b0
add esp, 4
test eax, eax
jne 0x44d7a0
push ebx
push edi
push esi
push 1
lea edx, [esp + 0x28]
push 4
push edx
call fcn.00418910
add esp, 0x10
cmp eax, 1
jne 0x44d790
push esi
call fcn.00418de0
mov edi, eax
lea ecx, [esp + 0x24]
mov eax, str.fmt
add esp, 4
mov edx, dword [ecx]
cmp edx, dword [eax]
jne 0x44d7b8
push esi
call fcn.00418d50
add esp, 4
cmp eax, 1
jne 0x44d790
push esi
call fcn.00418d50
add esp, 4
sub edi, 4
cmp eax, 1
mov dword [esp + 0x10], eax
je 0x44d738
cmp eax, 2
jne 0x44d790
push esi
call fcn.00418de0
push esi
mov dword [esp + 0x20], eax
call fcn.00418de0
push esi
call fcn.00418d50
push esi
call fcn.00418d50
add esp, 0x10
sub edi, 0xc
cmp eax, 8
mov dword [esp + 0x14], eax
je 0x44d768
cmp eax, 0x10
jne 0x44d790
test edi, edi
jle 0x44d77f
push esi
call fcn.00418850
add esp, 4
cmp eax, 0xffffffff
je 0x44d77f
dec edi
test edi, edi
jg 0x44d76c
push esi
call fcn.004189b0
add esp, 4
test eax, eax
je 0x44d6d7
pop edi
pop ebx
test ebp, ebp
je 0x44d7a0
push ebp
call dword [sym.imp.alleg40.dll_Ordinal_408]
add esp, 4
mov edx, dword [esp + 0x38]
push 0
push edx
push esi
call fcn.00418cb0
add esp, 0xc
mov eax, ebp
pop esi
pop ebp
add esp, 0x2c
ret
lea ecx, [esp + 0x20]
mov eax, str.data
mov edx, dword [ecx]
mov ecx, dword [eax]
cmp edx, ecx
jne 0x44d858
mov eax, edi
mov ecx, dword [esp + 0x14]
cdq
idiv dword [esp + 0x10]
cmp ecx, 0x10
mov ebx, eax
jne 0x44d7e6
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
xor edx, edx
cmp ebp, 2
setne dl
push ebx
dec edx
push eax
push edx
push ecx
call dword [sym.imp.alleg40.dll_Ordinal_119]
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x44d768
cmp dword [esp + 0x14], 8
jne 0x44d82a
mov eax, dword [ebp + 0x20]
push esi
push 1
push edi
push eax
call fcn.00418910
add esp, 0x10
jmp 0x44d77f
imul ebx, dword [esp + 0x10]
xor edi, edi
test ebx, ebx
jle 0x44d77f
push esi
call fcn.00418d50
mov ecx, dword [ebp + 0x20]
xor eax, 0xffff8000
add esp, 4
mov word [ecx + edi*2], ax
inc edi
cmp edi, ebx
jl 0x44d839
jmp 0x44d77f
test edi, edi
jle 0x44d790
push 1
push edi
push esi
call fcn.00418cb0
add esp, 0xc
test eax, eax
jne 0x44d790
push esi
call fcn.00418d20
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x44]
sub eax, edx
add esp, 4
cmp eax, ecx
jg 0x44d790
jmp 0x44d77f
Function at 0x48a990
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push 0
push ecx
call fcn.00494937
add esp, 0xc
cmp eax, 0xffffffff
jne 0x48a9ac
or eax, eax
ret
mov edx, dword [esp + 4]
mov dword [edx], eax
xor eax, eax
ret