joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4183c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov ebx, eax
mov edi, edx
test ebp, ebp
jl 0x418501
mov eax, dword [edi + 0x28]
sub eax, dword [esp + 0x14]
cmp ebp, eax
jle 0x4183e9
mov ebp, eax
mov dword [esp + 0x1c], ebp
test ebp, ebp
je 0x418501
test ecx, ecx
jl 0x418501
mov eax, dword [edi + 0x2c]
cdq
xor eax, edx
sub eax, edx
sub eax, dword [esp + 0x18]
cmp ecx, eax
jle 0x41840f
mov ecx, eax
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x418501
mov ecx, dword [ebx + 0x4c]
mov edx, dword [edi + 0x4c]
push esi
movzx esi, word [ebx + 0x50]
imul esi, dword [esp + 0x28]
mov eax, ecx
imul eax, dword [esp + 0x2c]
add esi, eax
add esi, dword [ebx + 0x10]
movzx eax, word [edi + 0x50]
imul eax, dword [esp + 0x18]
mov ebx, edx
imul ebx, dword [esp + 0x1c]
add eax, ebx
add eax, dword [edi + 0x10]
lea edi, [ebp*4]
sub ecx, edi
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x24]
sub edx, edi
mov dword [esp + 0x2c], edx
test ecx, ecx
jle 0x418500
mov dword [esp + 0x24], ecx
jmp 0x418470
test ebp, ebp
jle 0x4184ed
movzx ecx, byte [esp + 0x38]
movzx edx, byte [esp + 0x34]
movzx edi, byte [esp + 0x3c]
mov dword [esp + 0x18], ecx
movzx ecx, byte [esp + 0x30]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], ecx
mov cl, byte [esi]
mov ebx, dword [esp + 0x18]
movzx edx, cl
sub ebx, edx
imul ebx, edi
sar ebx, 8
add bl, cl
mov byte [eax], bl
mov cl, byte [esi + 1]
mov ebx, dword [esp + 0x1c]
inc esi
movzx edx, cl
sub ebx, edx
imul ebx, edi
sar ebx, 8
add bl, cl
mov byte [eax + 1], bl
mov cl, byte [esi + 1]
mov ebx, dword [esp + 0x28]
inc eax
inc esi
movzx edx, cl
sub ebx, edx
imul ebx, edi
inc eax
sar ebx, 8
add bl, cl
mov byte [eax], bl
movzx ecx, byte [esi + 1]
inc esi
inc eax
mov byte [eax], cl
inc eax
inc esi
sub ebp, 1
jne 0x418494
mov ebp, dword [esp + 0x20]
add eax, dword [esp + 0x2c]
add esi, dword [esp + 0x10]
sub dword [esp + 0x24], 1
jne 0x418470
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret 0x28
Function at 0x418510
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x20]
push edi
mov edi, eax
test ebx, ebx
jl 0x4186aa
mov eax, dword [edi + 0x28]
sub eax, dword [esp + 0x14]
cmp ebx, eax
jle 0x418537
mov dword [esp + 0x1c], eax
mov ebx, eax
test ebx, ebx
je 0x4186aa
mov ecx, dword [esp + 0x20]
test ecx, ecx
jl 0x4186aa
mov eax, dword [edi + 0x2c]
cdq
xor eax, edx
sub eax, edx
sub eax, dword [esp + 0x18]
cmp ecx, eax
jle 0x418561
mov dword [esp + 0x20], eax
mov ecx, eax
test ecx, ecx
je 0x4186aa
mov ecx, dword [ebp + 0x4c]
mov edx, dword [edi + 0x4c]
push esi
movzx esi, word [ebp + 0x50]
imul esi, dword [esp + 0x2c]
mov eax, ecx
imul eax, dword [esp + 0x30]
add esi, eax
add esi, dword [ebp + 0x10]
movzx eax, word [edi + 0x50]
imul eax, dword [esp + 0x18]
mov ebp, edx
imul ebp, dword [esp + 0x1c]
add eax, ebp
add eax, dword [edi + 0x10]
lea edi, [ebx*4]
sub ecx, edi
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x24]
sub edx, edi
mov dword [esp + 0x30], edx
test ecx, ecx
jle 0x4186a9
mov dword [esp + 0x2c], ecx
lea ecx, [ecx]
test ebx, ebx
jle 0x418696
movzx ebp, byte [esp + 0x40]
mov dword [esp + 0x28], ebx
mov dl, byte [esi]
movzx ecx, byte [esp + 0x3c]
movzx edi, dl
sub ecx, edi
imul ecx, ebp
sar ecx, 8
add cl, dl
mov dl, byte [esi + 1]
mov byte [esp + 0x24], dl
movzx edi, dl
movzx edx, byte [esp + 0x38]
sub edx, edi
inc esi
imul edx, ebp
sar edx, 8
add dl, byte [esp + 0x24]
inc esi
movzx ebx, byte [esi + 1]
mov byte [esp + 0x1c], dl
mov dl, byte [esi]
mov byte [esp + 0x24], dl
movzx edi, dl
movzx edx, byte [esp + 0x34]
sub edx, edi
imul edx, ebp
mov byte [esp + 0x18], bl
movzx ebx, byte [eax]
movzx edi, byte [esp + 0x18]
inc esi
sar edx, 8
add dl, byte [esp + 0x24]
mov byte [esp + 0x24], bl
movzx ecx, cl
movzx ebx, bl
sub ecx, ebx
movzx ebx, byte [esp + 0x1c]
imul ecx, edi
sar ecx, 8
add cl, byte [esp + 0x24]
inc eax
mov byte [eax - 1], cl
mov cl, byte [eax]
mov byte [esp + 0x24], cl
movzx ecx, cl
sub ebx, ecx
imul ebx, edi
sar ebx, 8
add bl, byte [esp + 0x24]
inc eax
mov byte [eax - 1], bl
mov cl, byte [eax]
movzx edx, dl
movzx ebx, cl
sub edx, ebx
imul edx, edi
sar edx, 8
add dl, cl
movzx ecx, byte [esp + 0x18]
mov byte [eax], dl
inc eax
mov byte [eax], cl
inc esi
inc eax
sub dword [esp + 0x28], 1
jne 0x4185d1
mov ebx, dword [esp + 0x20]
add eax, dword [esp + 0x30]
add esi, dword [esp + 0x10]
sub dword [esp + 0x2c], 1
jne 0x4185c0
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret 0x2c
Function at 0x419e70
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebx, eax
mov eax, dword [ebx + 0x1b4]
push esi
push edi
cdq
mov edi, eax
xor edi, edx
push 0
sub edi, edx
imul edi, dword [ebx + 0x1d4]
push 0
push 0x258
push 0x320
push 0
lea eax, [ebx + 0x68]
push 0
lea ecx, [ebx + 0x2a8]
mov dword [esp + 0x30], edi
call fcn.00408dc0
cmp dword [0x4b3d98], 0
jne 0x419fb3
mov dword [esp + 0x10], 0xe000
mov dword [esp + 0x14], 0x1f
mov edi, edi
call fcn.00428cb0
test eax, eax
je 0x419fee
cmp dword [0x4b5a90], 1
jne 0x419eee
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x419ef4
call dword [sym.imp.WINMM.dll_timeGetTime]
mov esi, dword [ebx + 0x2b8]
mov ebp, eax
mov eax, dword [ebx + 0x78]
test edi, edi
jle 0x419f1d
movzx ecx, byte [esi]
add ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x60]
mov cl, byte [ecx + edx]
mov byte [eax], cl
inc eax
inc esi
sub edi, 1
jne 0x419f03
mov edi, dword [esp + 0x18]
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
push 0
push 0
push 0
push 0x258
push 0x320
push 0
push 0
mov ecx, ebx
call eax
mov eax, dword [esp + 0x14]
call fcn.0041a4d0
lea esi, [ebp + 0xf]
cmp dword [0x4b5a90], 1
jne 0x419f57
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x419f5d
call dword [sym.imp.WINMM.dll_timeGetTime]
cmp esi, eax
jbe 0x419f72
call fcn.00428cb0
test eax, eax
jne 0x419f46
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [ebx + 0x24]
push 0
mov eax, 1
call fcn.004037d0
mov ecx, dword [ebx + 0x24]
push 0
mov eax, 0x80
call fcn.004037d0
cmp eax, 1
je 0x419fb3
mov eax, dword [esp + 0x14]
sub dword [esp + 0x10], 0x2000
add eax, 0x20
cmp eax, 0xff
mov dword [esp + 0x14], eax
jl 0x419ed0
mov ecx, dword [ebx + 0x78]
push edi
push 0
push ecx
call fcn.00463f50
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
add esp, 0xc
push 0
push 0
push 0
push 0x258
push 0x320
push 0
push 0
mov ecx, ebx
call eax
push 0
mov ecx, 0x4b5ee8
call fcn.0042e0b0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x41a000
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
push ebx
mov ebx, eax
mov eax, dword [ebx + 0x154]
push edi
cdq
mov edi, eax
xor edi, edx
sub edi, edx
imul edi, dword [ebx + 0x174]
cmp dword [0x4b3d98], 0
mov dword [esp + 0xc], edi
jne 0x41a119
push ebp
mov dword [esp + 0xc], 0x2000
push esi
call fcn.00428cb0
test eax, eax
je 0x41a117
cmp dword [0x4b5a90], 1
jne 0x41a054
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x41a05a
call dword [sym.imp.WINMM.dll_timeGetTime]
mov esi, dword [ebx + 0x138]
mov ebp, eax
mov eax, dword [ebx + 0x78]
test edi, edi
jle 0x41a08a
lea esp, [esp]
movzx ecx, byte [esi]
add ecx, dword [ebx + 0x60]
mov edx, dword [esp + 0x10]
mov cl, byte [ecx + edx]
mov byte [eax], cl
inc eax
inc esi
sub edi, 1
jne 0x41a070
mov edi, dword [esp + 0x14]
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
push 0
push 0
push 0
push 0x258
push 0x320
push 0
push 0
mov ecx, ebx
call eax
lea esi, [ebp + 0xf]
lea ebx, [ebx]
cmp dword [0x4b5a90], 1
jne 0x41a0c1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x41a0c7
call dword [sym.imp.WINMM.dll_timeGetTime]
cmp esi, eax
jbe 0x41a0dc
call fcn.00428cb0
test eax, eax
jne 0x41a0b0
pop esi
pop ebp
pop edi
pop ebx
add esp, 8
ret
mov ecx, dword [ebx + 0x24]
push 0
mov eax, 1
call fcn.004037d0
mov ecx, dword [ebx + 0x24]
push 0
mov eax, 0x80
call fcn.004037d0
cmp eax, 1
je 0x41a117
mov eax, dword [esp + 0x10]
add eax, 0x2000
cmp eax, 0x10000
mov dword [esp + 0x10], eax
jl 0x41a036
pop esi
pop ebp
pop edi
pop ebx
add esp, 8
ret
Function at 0x41a760
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
mov ebx, eax
mov eax, dword [esi + 0x2c]
push edi
cdq
mov edi, eax
xor edi, edx
sub edi, edx
imul edi, dword [esi + 0x4c]
cmp dword [0x4b3d98], 0
mov dword [esp + 0x1c], edi
jne 0x41a886
mov dword [esp + 0x14], 0xe000
mov dword [esp + 0x18], 0x1f
jmp 0x41a7a4
mov esi, dword [esp + 0x24]
call fcn.00428cb0
test eax, eax
je 0x41a8c1
cmp dword [0x4b5a90], 1
jne 0x41a7c2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x41a7c8
call dword [sym.imp.WINMM.dll_timeGetTime]
mov esi, dword [esi + 0x10]
mov ebp, eax
mov eax, dword [ebx + 0x78]
test edi, edi
jle 0x41a7ee
movzx ecx, byte [esi]
add ecx, dword [ebx + 0x60]
mov edx, dword [esp + 0x14]
mov cl, byte [ecx + edx]
mov byte [eax], cl
inc eax
inc esi
sub edi, 1
jne 0x41a7d4
mov edi, dword [esp + 0x1c]
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
push 0
push 0
push 0
push 0x258
push 0x320
push 0
push 0
mov ecx, ebx
call eax
mov eax, dword [esp + 0x18]
call fcn.0041a4d0
lea esi, [ebp + 0xf]
cmp dword [0x4b5a90], 1
jne 0x41a828
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x41a82e
call dword [sym.imp.WINMM.dll_timeGetTime]
cmp esi, eax
jbe 0x41a845
call fcn.00428cb0
test eax, eax
jne 0x41a817
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov ecx, dword [ebx + 0x24]
push 0
mov eax, 1
call fcn.004037d0
mov ecx, dword [ebx + 0x24]
push 0
mov eax, 0x80
call fcn.004037d0
cmp eax, 1
je 0x41a886
mov eax, dword [esp + 0x18]
sub dword [esp + 0x14], 0x2000
add eax, 0x20
cmp eax, 0xff
mov dword [esp + 0x18], eax
jl 0x41a7a0
mov ecx, dword [ebx + 0x78]
push edi
push 0
push ecx
call fcn.00463f50
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
add esp, 0xc
push 0
push 0
push 0
push 0x258
push 0x320
push 0
push 0
mov ecx, ebx
call eax
push 0
mov ecx, 0x4b5ee8
call fcn.0042e0b0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x41b9a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x482162
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x49b470]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ecx, ecx
mov eax, 0xf
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ecx
mov byte [esi + 4], cl
mov dword [esp + 0x14], ecx
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], ecx
mov byte [esi + 0x20], cl
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], ecx
mov byte [esi + 0x3c], cl
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ecx
mov byte [esi + 0x58], cl
mov dword [esi + 0x88], eax
mov dword [esi + 0x84], ecx
mov byte [esi + 0x74], cl
mov dword [esi + 0xa4], eax
mov dword [esi + 0xa0], ecx
mov byte [esi + 0x90], cl
mov eax, edi
mov byte [esp + 0x14], 5
lea ebx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, cl
jne 0x41ba20
sub eax, ebx
push eax
push edi
mov ecx, esi
call fcn.00402b90
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x41c7b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x48240b
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x49b470]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push edi
mov eax, dword [0x49b470]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
mov eax, dword [esi + 0x51c]
xor ebx, ebx
cmp eax, ebx
je 0x41c804
push eax
call fcn.0045fc59
add esp, 4
mov dword [esi + 0x51c], ebx
mov edi, dword [0x4b5acc]
cmp dword [esi + 0x51c], ebx
jne 0x41c8f1
mov dword [esp + 0xc], ebx
mov dword [esp + 0x22c], ebx
mov eax, dword [esi + 0x458]
push eax
lea ecx, [esp + 0x14]
push str.cglist_02d.dat
push ecx
call fcn.0045f116
add esp, 0xc
lea edx, [esp + 0x10]
push edx
lea ecx, [edi + 0x58cc]
call fcn.004040f0
push eax
lea eax, [esp + 0x120]
push str._s_s
push eax
call fcn.0045f116
add esp, 0x10
push ebx
push 0x80
push 3
push ebx
push 1
push DirectSoundCreate
lea ecx, [esp + 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41c93d
mov ecx, dword [0x4b3cfc]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x10], ebx
call edx
mov dword [esi + 0x520], eax
cmp eax, edi
je 0x41c9a9
push eax
call fcn.0045fd36
add esp, 4
mov dword [esi + 0x51c], eax
cmp eax, ebx
jne 0x41c8d8
mov eax, dword [esi + 0x440]
push ebx
push 0x48b6d0
push str.m_pCGListData
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esi + 0x51c]
mov ecx, dword [0x4b3cfc]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
push eax
lea eax, [esp + 0x14]
push eax
call edx
mov ecx, dword [esi + 0x520]
mov edx, dword [esi + 0x51c]
lea eax, [ecx + edx]
mov ecx, dword [eax - 4]
mov dword [esi + 0x524], ecx
mov edx, dword [eax - 8]
mov dword [esi + 0x528], edx
mov eax, 1
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0045f0aa
add esp, 0x224
ret
lea edx, [esp + 0xc]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esi + 0x520], eax
call fcn.0045fd36
add esp, 4
mov dword [esi + 0x51c], eax
cmp eax, ebx
jne 0x41c97a
mov eax, dword [esi + 0x440]
push ebx
push 0x48b6d0
push str.m_pCGListData
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [esi + 0x520]
mov eax, dword [esi + 0x51c]
push ebx
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp edi, ebx
je 0x41c8f1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41c8f1
mov eax, dword [esi + 0x440]
push ebx
push 0x48b6d0
push str.cglist.dat
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x41c917
Function at 0x41de40
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebx, eax
mov eax, dword [ebx + 0x1b4]
push esi
push edi
cdq
mov edi, eax
xor edi, edx
push 0
sub edi, edx
imul edi, dword [ebx + 0x1d4]
push 0
push 0x258
push 0x320
push 0
lea eax, [ebx + 0x68]
push 0
lea ecx, [ebx + 0x308]
mov dword [esp + 0x30], edi
call fcn.00408dc0
cmp dword [0x4b3d98], 0
jne 0x41df74
mov dword [esp + 0x14], 0xe000
call fcn.00428cb0
test eax, eax
je 0x41dfa0
cmp dword [0x4b5a90], 1
jne 0x41deb4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x41deba
call dword [sym.imp.WINMM.dll_timeGetTime]
mov esi, dword [ebx + 0x318]
mov ebp, eax
mov eax, dword [ebx + 0x78]
test edi, edi
jle 0x41deea
lea esp, [esp]
movzx ecx, byte [esi]
add ecx, dword [esp + 0x14]
mov edx, dword [ebx + 0x60]
mov cl, byte [ecx + edx]
mov byte [eax], cl
inc eax
inc esi
sub edi, 1
jne 0x41ded0
mov edi, dword [esp + 0x18]
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
push 0
push 0
push 0
push 0x258
push 0x320
push 0
push 0
mov ecx, ebx
call eax
lea esi, [ebp + 0xf]
lea ebx, [ebx]
cmp dword [0x4b5a90], 1
jne 0x41df21
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x41df27
call dword [sym.imp.WINMM.dll_timeGetTime]
cmp esi, eax
jbe 0x41df3c
call fcn.00428cb0
test eax, eax
jne 0x41df10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [ebx + 0x24]
push 0
mov eax, 1
call fcn.004037d0
mov ecx, dword [ebx + 0x24]
push 0
mov eax, 0x80
call fcn.004037d0
cmp eax, 1
je 0x41df74
mov eax, dword [esp + 0x14]
sub eax, 0x2000
mov dword [esp + 0x14], eax
test eax, eax
jg 0x41de96
mov ecx, dword [ebx + 0x78]
push edi
push 0
push ecx
call fcn.00463f50
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
add esp, 0xc
push 0
push 0
push 0
push 0x258
push 0x320
push 0
push 0
mov ecx, ebx
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x41dfc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xc
push ebx
mov ebx, eax
mov eax, dword [ebx + 0x154]
push ebp
cdq
push esi
push edi
mov edi, eax
xor edi, edx
sub edi, edx
imul edi, dword [ebx + 0x174]
cmp dword [0x4b3d98], 0
mov dword [esp + 0x18], edi
jne 0x41e0d7
mov dword [esp + 0x14], 0x2000
call fcn.00428cb0
test eax, eax
je 0x41e0d7
cmp dword [0x4b5a90], 1
jne 0x41e014
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x41e01a
call dword [sym.imp.WINMM.dll_timeGetTime]
mov esi, dword [ebx + 0x138]
mov ebp, eax
mov eax, dword [ebx + 0x78]
test edi, edi
jle 0x41e04a
lea esp, [esp]
movzx ecx, byte [esi]
add ecx, dword [ebx + 0x60]
mov edx, dword [esp + 0x14]
mov cl, byte [ecx + edx]
mov byte [eax], cl
inc eax
inc esi
sub edi, 1
jne 0x41e030
mov edi, dword [esp + 0x18]
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
push 0
push 0
push 0
push 0x258
push 0x320
push 0
push 0
mov ecx, ebx
call eax
lea esi, [ebp + 0xf]
lea ebx, [ebx]
cmp dword [0x4b5a90], 1
jne 0x41e081
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x41e087
call dword [sym.imp.WINMM.dll_timeGetTime]
cmp esi, eax
jbe 0x41e09c
call fcn.00428cb0
test eax, eax
jne 0x41e070
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [ebx + 0x24]
push 0
mov eax, 1
call fcn.004037d0
mov ecx, dword [ebx + 0x24]
push 0
mov eax, 0x80
call fcn.004037d0
cmp eax, 1
je 0x41e0d7
mov eax, dword [esp + 0x14]
add eax, 0x2000
cmp eax, 0x10000
mov dword [esp + 0x14], eax
jl 0x41dff6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

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

Disassembly:
cmp dword [0x4b5a90], 1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
mov esi, eax
jne 0x41e9de
call ebx
jmp 0x41e9e0
call edi
sub eax, dword [esi + 0x538]
cmp dword [esi + 0x53c], eax
ja 0x41ea76
cmp dword [0x4b5a90], 1
jne 0x41e9ff
call ebx
jmp 0x41ea01
call edi
mov ecx, dword [esi + 0x3f8]
mov dword [esi + 0x538], eax
mov eax, dword [esi + 0x3fc]
cdq
xor eax, edx
sub eax, edx
cmp dword [esi + 0x3cc], 1
jne 0x41ea2b
movzx edi, word [esi + 0x43c]
cdq
idiv edi
mov edx, dword [esi + 0x52c]
cmp edx, 3
ja case.0x41ea36.1
jmp dword [edx*4 + 0x41ea7c]
add ecx, 0xfffffce0
jmp 0x41ea51
xor ecx, ecx
lea ebx, [eax - 0x258]
jmp 0x41ea53
xor ecx, ecx
xor ebx, ebx
push ecx
call fcn.0041f5e0
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
push 0
push 0
push 0
push 0x258
push 0x320
push 0
push 0
mov ecx, esi
call edx
pop edi
pop esi
pop ebx
ret
Function at 0x41edf0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
mov ebx, eax
mov eax, dword [esi + 0x2c]
cdq
xor eax, edx
push ebp
sub eax, edx
cmp dword [esp + 0x10], 1
push edi
mov edi, dword [esi + 0x28]
jne 0x41ee12
movzx ecx, word [ebx + 0x43c]
cdq
idiv ecx
mov ecx, dword [ebx + 0x52c]
sub ecx, 1
je 0x41ee3a
sub ecx, 2
je 0x41ee2a
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x41ee45
lea ebp, [edi - 0x320]
mov dword [esp + 0x14], 0
jmp 0x41ee45
xor ebp, ebp
add eax, 0xfffffda8
mov dword [esp + 0x14], eax
cmp dword [0x4b3d98], 0
jne 0x41ef7a
mov edi, 0x200000
call fcn.00428cb0
test eax, eax
je 0x41efb5
cmp dword [0x4b5a90], 1
jne 0x41ee75
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x41ee7b
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [ebx + 0x60]
lea edx, [edx + edi + 0x10000]
push edx
mov edx, dword [ebx + 0x90]
mov dword [esp + 0x10], eax
movzx eax, word [ebx + 0xb8]
sub edx, 0x320
imul edx, eax
lea ecx, [ebx + 0x68]
push edx
mov edx, dword [ecx + 0x28]
sub edx, 0x320
imul edx, eax
push edx
mov edx, dword [esi + 0x28]
sub edx, 0x320
imul edx, eax
imul eax, eax, 0x320
push edx
push 0x258
push eax
mov eax, dword [ecx + 0x10]
push eax
mov edx, eax
movzx eax, word [esi + 0x50]
push edx
imul eax, ebp
mov edx, dword [esi + 0x4c]
imul edx, dword [esp + 0x34]
add eax, edx
add eax, dword [esi + 0x10]
push eax
call fcn.0040f8e0
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0
push 0
push 0
push 0x258
push 0x320
push 0
push 0
mov ecx, ebx
call edx
jmp 0x41ef10
cmp dword [0x4b5a90], 1
jne 0x41ef21
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x41ef27
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [ebx + 0x53c]
add ecx, dword [esp + 0xc]
cmp ecx, eax
jbe 0x41ef45
call fcn.00428cb0
test eax, eax
jne 0x41ef10
pop edi
pop ebp
pop ebx
pop ecx
ret 4
mov ecx, dword [ebx + 0x24]
push 0
mov eax, 1
call fcn.004037d0
mov ecx, dword [ebx + 0x24]
push 0
mov eax, 0x80
call fcn.004037d0
cmp eax, 1
je 0x41ef7a
add edi, 0x200000
cmp edi, 0x1000000
jl 0x41ee57
mov edx, dword [esp + 0x14]
push edx
push ebp
push 0x258
push 0x320
push 0
push 0
lea ecx, [ebx + 0x68]
mov eax, esi
call fcn.00408dc0
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0
push 0
push 0
push 0x258
push 0x320
push 0
push 0
mov ecx, ebx
call edx
pop edi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x41efc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
mov ebx, eax
mov eax, dword [esi + 0x2c]
push ebp
mov ebp, dword [ebx + 0x52c]
cdq
push edi
mov edi, eax
xor edi, edx
sub edi, edx
cmp dword [esp + 0x14], 1
jne 0x41f038
movzx ecx, word [ebx + 0x43c]
mov eax, edi
cdq
idiv ecx
mov edi, eax
mov eax, dword [ebx + 0x444]
lea edx, [eax + eax*8]
mov eax, dword [ebx + 0x44c]
lea ecx, [edx + eax - 0x15]
push ecx
mov ecx, ebx
call fcn.0041c9f0
lea edx, [eax + eax*2]
mov eax, dword [ebx + 0x51c]
shl edx, 4
mov ecx, dword [edx + eax + 0x24]
xor eax, eax
jmp 0x41f020
cmp ecx, dword [eax*8 + 0x4a6460]
je 0x41f031
inc eax
cmp eax, 0x52
jb 0x41f020
jmp 0x41f038
mov ebp, dword [eax*8 + 0x4a6464]
sub ebp, 1
je 0x41f059
sub ebp, 2
mov dword [esp + 0x14], 0
je 0x41f04e
xor ebp, ebp
jmp 0x41f065
mov eax, dword [esi + 0x28]
lea ebp, [eax - 0x320]
jmp 0x41f065
xor ebp, ebp
add edi, 0xfffffda8
mov dword [esp + 0x14], edi
cmp dword [0x4b3d98], 0
jne 0x41f19a
mov edi, 0x200000
call fcn.00428cb0
test eax, eax
je 0x41f1d5
cmp dword [0x4b5a90], 1
jne 0x41f095
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x41f09b
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [ebx + 0x60]
lea edx, [edx + edi + 0x10000]
push edx
mov edx, dword [ebx + 0x90]
mov dword [esp + 0x10], eax
movzx eax, word [ebx + 0xb8]
sub edx, 0x320
imul edx, eax
lea ecx, [ebx + 0x68]
push edx
mov edx, dword [ecx + 0x28]
sub edx, 0x320
imul edx, eax
push edx
mov edx, dword [esi + 0x28]
sub edx, 0x320
imul edx, eax
imul eax, eax, 0x320
push edx
push 0x258
push eax
mov eax, dword [ecx + 0x10]
push eax
mov edx, eax
movzx eax, word [esi + 0x50]
push edx
imul eax, ebp
mov edx, dword [esi + 0x4c]
imul edx, dword [esp + 0x34]
add eax, edx
add eax, dword [esi + 0x10]
push eax
call fcn.0040f8e0
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0
push 0
push 0
push 0x258
push 0x320
push 0
push 0
mov ecx, ebx
call edx
jmp 0x41f130
cmp dword [0x4b5a90], 1
jne 0x41f141
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x41f147
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [ebx + 0x53c]
add ecx, dword [esp + 0xc]
cmp ecx, eax
jbe 0x41f165
call fcn.00428cb0
test eax, eax
jne 0x41f130
pop edi
pop ebp
pop ebx
pop ecx
ret 4
mov ecx, dword [ebx + 0x24]
push 0
mov eax, 1
call fcn.004037d0
mov ecx, dword [ebx + 0x24]
push 0
mov eax, 0x80
call fcn.004037d0
cmp eax, 1
je 0x41f19a
add edi, 0x200000
cmp edi, 0x1000000
jl 0x41f077
mov edx, dword [esp + 0x14]
push edx
push ebp
push 0x258
push 0x320
push 0
push 0
lea ecx, [ebx + 0x68]
mov eax, esi
call fcn.00408dc0
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0
push 0
push 0
push 0x258
push 0x320
push 0
push 0
mov ecx, ebx
call edx
pop edi
pop ebp
pop ebx
pop ecx
ret 4