joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408550
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
mov eax, 1
push edi
mov edi, dword [esi + 8]
mov dword [esi + 0x5a50], eax
lea ebx, [esi + 0x5a48]
mov dword [esp + 0xc], 0
cmp dword [edi + 0x6c], eax
je 0x4085a2
cmp dword [edi + 0x70], eax
je 0x4085a2
lea eax, [edi + 0x64]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x40859d
lea eax, [edi + 0x64]
push eax
mov eax, dword [edi + 0x48]
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, 1
cmp dword [edi + 0x7c], 0
je 0x4085ac
mov dword [esp + 0xc], eax
test ebx, ebx
je 0x4085bb
mov ecx, dword [edi + 0x64]
mov dword [ebx], ecx
mov edx, dword [edi + 0x68]
mov dword [ebx + 4], edx
cmp dword [esp + 0xc], eax
jne 0x4085da
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x7c]
push ecx
call fcn.00431e10
mov edx, dword [esi + 8]
add esp, 4
mov dword [edx + 0x7c], 0
mov ecx, dword [esi + 4]
call fcn.00430a60
xor edi, edi
mov ebx, 1
mov dword [esi + 0x5a50], edi
cmp dword [0x4b3cd0], ebx
jne 0x4086c5
mov dword [0x4b3cd0], edi
mov dword [esi + 0x5a54], edi
mov dword [esi + 0x5a50], ebx
call dword [0x4b3844]
mov dword [esi + 0x5a50], edi
cmp dword [esi + 0x5a44], ebx
je 0x408630
mov eax, dword [0x4b5ab8]
cmp eax, 3
je 0x408630
cmp eax, 4
jne 0x40863c
mov dword [esi + 0x5a44], edi
mov dword [esi + 0x5a54], edi
cmp dword [esi + 0x5a54], ebx
je 0x408601
cmp dword [0x4b5a90], ebx
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x40865c
call ebx
jmp 0x40865e
call edi
sub eax, dword [esi + 0x5c78]
cmp eax, 0x21
jb 0x408683
cmp dword [0x4b5a90], 1
jne 0x408676
call ebx
jmp 0x408678
call edi
mov dword [esi + 0x5c78], eax
call fcn.0042fd80
cmp dword [0x4b5c3c], 0x4b
jne 0x4086b1
mov eax, dword [0x4b5c38]
cmp eax, 8
je 0x4086b1
cmp eax, 0x10
je 0x4086b1
cmp eax, 0x80000000
je 0x4086b1
mov dword [0x4b3cd0], 1
call fcn.00439ce0
push 0
xor eax, eax
mov ecx, 0x4b5a80
call fcn.00401f00
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov dword [0x4b3cd0], ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408850
Capabilities:
Create process on windows

Disassembly:
cmp ecx, 0x71
push esi
mov esi, edx
mov edx, 1
mov dword [0xe5142c], edx
jg 0x4088b1
je 0x408898
sub ecx, 0x6f
je 0x408887
sub ecx, edx
jne 0x4088fd
push eax
call fcn.0045ac20
add esp, 4
mov dword [0xe5142c], 0
pop esi
ret
call fcn.0045a610
mov dword [0xe5142c], 0
pop esi
ret
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [0xe5142c], 0
pop esi
ret
sub ecx, 0x80e9
je 0x4088e6
sub ecx, 2
jne 0x4088fd
xor dword [esi + 0x5ca8], edx
mov eax, dword [esi + 0x5ca8]
cmp eax, edx
sete cl
mov dword [0x4b41dc], ecx
call fcn.004051f0
mov dword [0xe5142c], 0
pop esi
ret
push edx
push 0
push 0
push str.http:__s_digi.jp_lilim_
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [0xe5142c], 0
pop esi
ret
Function at 0x40acb0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x48254b
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x49b470]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push esi
push edi
mov eax, dword [0x49b470]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x128], 0
mov ecx, dword [0x4b5acc]
push edi
add ecx, 0x58cc
call fcn.004040f0
push eax
lea eax, [esp + 0x1c]
push str._sgrp_s
push eax
call fcn.0045f116
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 1
push DirectSoundCreate
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ad84
mov ecx, dword [0x4b3cf8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
push edi
mov dword [esp + 0x14], 0
call eax
cmp eax, esi
je 0x40ad80
push eax
call fcn.0045fd36
mov ecx, dword [0x4b3cf8]
mov edx, dword [ecx]
add esp, 4
mov ebx, eax
mov eax, dword [edx + 0x1c]
push ebx
push edi
call eax
test eax, eax
jne 0x40add2
xor eax, eax
jmp 0x40add4
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.0045fd36
add esp, 4
push 0
lea edx, [esp + 0x14]
push edx
push edi
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40adb8
cmp dword [esp + 0x10], 0
jne 0x40adc7
test esi, esi
je 0x40adc3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40add4
test esi, esi
je 0x40add2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0045f0aa
add esp, 0x11c
ret

Function at 0x40b060
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0
push 1
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 8], eax
test eax, eax
jne 0x40b07f
mov eax, 1
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 0xc]
push eax
push 0
push esi
push 0x40b0f0
push 0x200000
push 0
call fcn.0045ff01
xor ecx, ecx
add esp, 0x18
test eax, eax
sete cl
mov dword [esi + 4], eax
pop esi
mov eax, ecx
ret
Function at 0x40bd60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4824db
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x49b470]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x49b470]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 1
mov ebx, dword [ebp + 8]
mov edi, ecx
jne 0x40bdb8
movzx ecx, byte [ebx]
mov eax, dword [edi]
mov edx, dword [eax + 0x24]
push ecx
mov ecx, edi
call edx
lea eax, [esp + 0x14]
push eax
call fcn.00403eb0
mov eax, ebx
mov dword [esp + 0xd0], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bdd2
sub eax, edx
push eax
push ebx
lea ecx, [esp + 0x1c]
call fcn.00402b90
lea esi, [esp + 0x14]
call fcn.00404430
push 4
call fcn.0045f849
add esp, 4
test eax, eax
je 0x40be07
mov dword [eax], 0
mov esi, eax
jmp 0x40be09
xor esi, esi
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
mov dword [edi + 0x140], esi
jae 0x40be1e
lea eax, [esp + 0x18]
push 0
push 0x80
push 3
push 0
push 1
push DirectSoundCreate
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x40be54
mov dword [esi], 0
lea esi, [esp + 0x14]
call fcn.00403f80
xor eax, eax
jmp 0x40bf1f
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40be60
sub eax, edx
push eax
push ebx
lea ecx, [edi + 0x150]
call fcn.00402b90
push 0x111
lea esi, [edi + 4]
push 0
push esi
call fcn.00463f50
mov eax, dword [edi + 0x140]
mov edx, dword [eax]
add esp, 0xc
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x111
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40be44
cmp dword [esp + 0x10], 0
je 0x40be44
lea edx, [edi + 0x10]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40beb7
mov eax, dword [edi + 0x140]
mov ecx, dword [eax]
mov eax, dword [edi + 0x144]
mov dword [esi], ecx
test eax, eax
je 0x40bee8
push eax
call fcn.0045fc59
add esp, 4
mov dword [edi + 0x144], 0
mov edx, dword [edi + 0xc]
push edx
call fcn.0045fd36
mov ecx, dword [edi + 0xc]
mov edx, dword [edi]
mov edx, dword [edx + 0xc]
add esp, 4
push ecx
push eax
mov ecx, edi
mov dword [edi + 0x144], eax
call edx
lea esi, [esp + 0x14]
cmp dword [edi + 0xc], eax
jne 0x40be48
call fcn.00403f80
mov eax, 1
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0045f0aa
mov esp, ebp
pop ebp
ret 8
Function at 0x40c552
Capabilities:
Get disk size

Disassembly:
sub esp, 0x34
mov eax, dword [0x49b470]
xor eax, esp
mov dword [esp + 0x30], eax
mov al, byte [esp + 0x38]
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x1c], al
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x29], 0x3a
mov byte [esp + 0x2a], 0x5c
mov byte [esp + 0x2b], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x40c59f
xor eax, eax
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0045f0aa
add esp, 0x34
ret 4
cmp dword [esp + 4], 0xffff
je 0x40c58b
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x14c], eax
pop esi
xor ecx, esp
call fcn.0045f0aa
add esp, 0x34
ret 4

Function at 0x40cf20
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [edi]
push esi
mov esi, ecx
test eax, eax
je 0x40cf3b
push eax
call fcn.0045fc59
add esp, 4
mov dword [edi], 0
test esi, esi
jne 0x40cfac
mov eax, dword [esp + 0xc]
push esi
push 0x80
push 3
push esi
push 1
push DirectSoundCreate
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40cf9f
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.0045fd36
add esp, 4
push 0
lea edx, [esp + 0x10]
push edx
push ebx
push eax
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test esi, esi
je 0x40cfd1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 1
pop ebx
ret 4
mov dword [edi], 0
pop esi
xor eax, eax
pop ebx
ret 4
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push ebx
mov ecx, esi
call edx
cmp eax, 0xffffffff
je 0x40cfa5
push eax
call fcn.0045fd36
add esp, 4
mov dword [edi], eax
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x1c]
push ebx
mov ecx, esi
call eax
pop esi
mov eax, 1
pop ebx
ret 4
Function at 0x40f7b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, eax
mov esi, edx
test edi, edi
jl 0x40f8d0
mov eax, dword [esi + 0x28]
sub eax, dword [esp + 0x1c]
cmp edi, eax
jle 0x40f7d0
mov edi, eax
test edi, edi
je 0x40f8d0
mov ebp, dword [esp + 0x24]
test ebp, ebp
jl 0x40f8d0
mov eax, dword [esi + 0x2c]
cdq
xor eax, edx
sub eax, edx
sub eax, dword [esp + 0x20]
cmp ebp, eax
jle 0x40f7fa
mov dword [esp + 0x24], eax
mov ebp, eax
test ebp, ebp
je 0x40f8d0
mov eax, dword [esi + 0x4c]
movzx ebx, word [esi + 0x50]
imul ebx, dword [esp + 0x1c]
mov edx, eax
imul edx, dword [esp + 0x20]
add ebx, edx
add ebx, dword [esi + 0x10]
lea edx, [edi*4]
sub eax, edx
mov dword [esp + 0x1c], eax
mov edx, ecx
mov eax, ecx
mov esi, edi
shr edx, 0x10
shr eax, 8
and esi, reloc.DSOUND.dll_DirectSoundCreate
jns 0x40f840
dec esi
or esi, 0xfffffffe
inc esi
jne 0x40f8ab
movzx ax, al
shl ax, 8
movzx eax, ax
movzx ecx, cl
shl ecx, 0x10
or eax, ecx
movzx edx, dl
or eax, edx
mov ecx, eax
xor edx, edx
xor ebp, ebp
or ebp, eax
or ecx, edx
mov eax, edi
cdq
sub eax, edx
mov edx, dword [esp + 0x24]
sar eax, 1
mov dword [esp + 0x14], ecx
test edx, edx
jle 0x40f8d0
test eax, eax
jle 0x40f898
mov dword [ebx + 4], ecx
lea ecx, [eax*8 - 5]
shr ecx, 2
mov esi, ebx
lea edi, [ebx + 8]
mov dword [ebx], ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
lea ebx, [ebx + eax*8]
add ebx, dword [esp + 0x1c]
sub edx, 1
jne 0x40f877
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
test ebp, ebp
jle 0x40f8d0
test edi, edi
jle 0x40f8c7
mov esi, edi
mov byte [ebx], dl
inc ebx
mov byte [ebx], al
inc ebx
mov byte [ebx], cl
inc ebx
mov byte [ebx], 0
inc ebx
sub esi, 1
jne 0x40f8b5
add ebx, dword [esp + 0x1c]
sub ebp, 1
jne 0x40f8af
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x415ae0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x482b18
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
push edi
mov eax, dword [0x49b470]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
mov dword [esp + 0xc], vtable.CBuffer.0
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], edi
mov word [esp + 0x5c], ax
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x78], edi
mov esi, dword [ebx + 8]
cmp esi, edi
je 0x415b97
call fcn.0040fa90
mov ecx, dword [ebx + 8]
cmp ecx, edi
je 0x415b97
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [ebp + 8]
push ebx
mov dword [ebx + 8], edi
call fcn.00415da0
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x415bc0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x482496
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x49b470]
xor eax, esp
mov dword [esp + 0x1b4], eax
push ebp
push esi
push edi
mov eax, dword [0x49b470]
xor eax, esp
push eax
lea eax, [esp + 0x1c8]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1d4], 0
call fcn.00403eb0
mov byte [esp + 0x1d0], 1
mov ecx, dword [0x4b5acc]
push esi
add ecx, 0x58cc
call fcn.004040f0
push eax
lea ecx, [esp + 0xc4]
push str._sgrp_s.abm
push ecx
call fcn.0045f116
lea eax, [esp + 0xcc]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415c53
sub eax, edx
push eax
lea edx, [esp + 0xc0]
push edx
lea ecx, [esp + 0x1c]
call fcn.00402b90
lea esi, [esp + 0x14]
call fcn.00404430
push 0
push 0x80
push 3
push 0
push 1
push DirectSoundCreate
lea eax, [esp + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x415cff
mov ecx, dword [0x4b3cf8]
mov esi, dword [ecx]
xor edi, edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
call fcn.004041a0
mov ecx, dword [0x4b3cf8]
mov edx, dword [esi + 0x18]
push eax
call edx
cmp eax, 0xffffffff
je 0x415cf2
push eax
call fcn.0045fd36
mov ebp, eax
mov eax, dword [0x4b3cf8]
mov esi, dword [eax]
add esp, 4
push ebp
lea ecx, [esp + 0x18]
call fcn.004041a0
mov ecx, dword [0x4b3cf8]
mov edx, dword [esi + 0x1c]
push eax
call edx
test eax, eax
jne 0x415d58
lea esi, [esp + 0x14]
call fcn.00403f80
xor eax, eax
jmp 0x415d6e
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.0045fd36
add esp, 4
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
mov ebp, eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x415d33
cmp dword [esp + 0x10], 0
jne 0x415d4b
lea esi, [esp + 0x14]
call fcn.00403f80
test edi, edi
je 0x415d47
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x415d6e
test edi, edi
je 0x415d58
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
lea esi, [esp + 0x14]
call fcn.00403f80
test edi, edi
je 0x415d6c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov ecx, dword [esp + 0x1c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1b4]
xor ecx, esp
call fcn.0045f0aa
add esp, 0x1c4
ret
Function at 0x415e80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x481e58
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x49b470]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea eax, [esi + 0x60]
push eax
mov dword [esi + 0x5c], vtable.CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor edi, edi
mov dword [esi + 0x78], 0xffffffff
mov dword [esi + 0x7c], edi
lea ecx, [esi + 0x11c]
push ecx
mov dword [esp + 0x18], edi
call fcn.00416c20
lea edx, [esi + 0x138]
push edx
mov byte [esp + 0x18], 1
call fcn.00416c20
xor eax, eax
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
push 0x9c
lea eax, [esi + 0x80]
push edi
push eax
mov dword [esi + 0x50], edi
mov dword [esi + 0x58], 1
call fcn.00463f50
add esp, 0xc
mov dword [esi + 0x154], edi
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x416e90
Capabilities:
Resume thread
Suspend thread

Disassembly:
cmp dword [esi + 0x34], 1
mov dword [esi + 0x38], eax
jne 0x416eab
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call edi
cmp dword [esi + 0x34], 1
je 0x416ea0
pop edi
cmp dword [esi + 0x38], 0
jne 0x416ebc
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
ret
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret

Function at 0x416ed0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
cmp dword [esi + 0x384], 0
mov ebx, 1
je 0x416eef
cmp dword [esi + 0x38], ebx
jne 0x416eef
xor eax, eax
call fcn.00416e90
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
mov ecx, esi
call edx
cmp dword [esi + 0x384], 0
mov ebp, eax
je 0x416f3b
mov dword [esi + 0x38], ebx
cmp dword [esi + 0x34], ebx
jne 0x416f1b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call edi
cmp dword [esi + 0x34], ebx
je 0x416f12
pop edi
cmp dword [esi + 0x38], 0
jne 0x416f31
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x417110
Capabilities:
Create thread

Disassembly:
push 0
mov dword [esi + 0x3c], eax
mov ecx, dword [0x4b5ac0]
push 0
mov dword [esi + 0x40], ecx
mov edx, dword [0x4b3da4]
push 1
push 0
mov dword [esi + 0x3a0], edx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 8], eax
test eax, eax
jne 0x417143
mov eax, 1
ret
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 0xc]
push eax
push 0
push esi
push 0x40b0f0
push 0x200000
push 0
call fcn.0045ff01
xor ecx, ecx
add esp, 0x18
test eax, eax
sete cl
mov dword [esi + 4], eax
mov eax, ecx
ret

Function at 0x417370
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x58]
push edi
call edx
mov ebp, 1
cmp eax, ebp
jne 0x41738f
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
mov ecx, esi
call edx
mov eax, dword [esi + 0x58]
xor edi, edi
cmp eax, edi
je 0x4173a5
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push 0xffffd8f0
push eax
call edx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
call ebx
cmp dword [esi + 0x384], edi
je 0x4173c3
cmp dword [esi + 0x38], ebp
jne 0x4173c3
xor eax, eax
call fcn.00416e90
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
mov ecx, esi
call edx
cmp dword [esi + 0x384], edi
je 0x417403
mov dword [esi + 0x38], ebp
cmp dword [esi + 0x34], ebp
jne 0x4173e8
lea esp, [esp]
push ebp
call ebx
cmp dword [esi + 0x34], ebp
je 0x4173e0
cmp dword [esi + 0x38], edi
jne 0x4173f9
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x417403
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esi]
mov eax, dword [edx + 0x4c]
mov ecx, esi
call eax
mov dword [eax], edi
mov eax, dword [esi + 0x54]
mov dword [esi + 0x384], edi
mov dword [esi + 0x398], edi
mov dword [esi + 0x39c], edi
cmp eax, edi
je 0x417433
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push 0xffffffffffffffff
push 7
push eax
call edx
mov eax, dword [esi + 0x54]
cmp eax, edi
je 0x417445
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x54], edi
mov eax, dword [esi + 0x50]
cmp eax, edi
je 0x417457
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x50], edi
mov eax, dword [esi + 0x58]
cmp eax, edi
je 0x417469
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x58], edi
mov eax, dword [esi + 0x4c]
cmp eax, edi
je 0x41747b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x4c], edi
mov eax, dword [esi + 0x48]
cmp eax, edi
je 0x41748d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x48], edi
mov eax, dword [esi + 0x44]
cmp eax, edi
je 0x41749f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x44], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
Function at 0x417ae0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x482098
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49b470]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ebx, [esi + 0x10]
mov edi, 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], 0x1e
jmp 0x417b35
mov edi, 1
mov dword [esi + 0x34], edi
mov eax, dword [ebx]
mov edx, dword [eax + 4]
mov ecx, ebx
call edx
mov dword [esp + 0x30], 0
cmp dword [0x4b5a90], edi
jne 0x417b59
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x417b5f
call dword [sym.imp.WINMM.dll_timeGetTime]
cmp dword [esi + 0x38], 1
mov edi, eax
jne 0x417b75
cmp dword [0x4b5ab8], 4
je 0x417b75
call fcn.00417bf0
cmp dword [0x4b5a90], 1
jne 0x417b86
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x417b8c
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, edi
mov dword [esp + 0x18], eax
cmp eax, 0x1e
lea eax, [esp + 0x14]
ja 0x417b9f
lea eax, [esp + 0x18]
mov edi, 0x1e
sub edi, dword [eax]
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
mov eax, dword [esi + 8]
push edi
push eax
mov dword [esi + 0x34], 0
call ebp
cmp eax, 0x102
je 0x417b30
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret