joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406850
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor ebx, ebx
xor edi, edi
mov eax, 0x68fb88
cmp dword [eax], ebx
je 0x40686d
add eax, 0x44
inc edi
cmp eax, 0x690408
jl 0x40685e
cmp edi, 0x20
jne 0x40687b
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
push edi
call fcn.00406980
mov ebp, dword [esp + 0x1c]
add esp, 4
push ebx
push 0x8000080
push 3
push ebx
push 1
push DirectSoundCreate
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, edi
shl esi, 4
add esi, edi
shl esi, 2
cmp eax, 0xffffffff
mov dword [esi + 0x68fb88], eax
jne 0x4068d4
push ebp
push 0x4c16bc
push ebx
mov dword [esi + 0x68fb88], ebx
call fcn.00491750
add esp, 0xc
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x10]
push ebx
push ecx
lea edx, [esi + 0x68fb90]
push 0x10
push edx
push eax
call ebp
mov edx, dword [esi + 0x68fb88]
lea eax, [esp + 0x10]
push ebx
push eax
lea ecx, [esi + 0x68fba0]
push 8
push ecx
push edx
call ebp
mov eax, dword [esi + 0x68fba8]
cmp eax, ebx
je 0x40691b
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0x68fba8], eax
mov eax, dword [esi + 0x68fb9c]
imul eax, dword [esi + 0x68fb98]
add eax, 0x408
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 0x68fba8], eax
mov eax, 0x80
mov dword [esi + 0x68fbc0], eax
mov dword [esi + 0x68fbc4], eax
mov dword [esi + 0x68fbc8], eax
mov eax, edi
mov byte [esi + 0x68fbac], bl
mov dword [esi + 0x68fbb0], ebx
mov dword [esi + 0x68fbbc], ebx
mov dword [esi + 0x68fbb4], ebx
mov dword [esi + 0x68fbb8], 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x406aa0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
mov ecx, eax
shl ecx, 4
add ecx, eax
xor eax, eax
lea esi, [ecx*4 + 0x68fb88]
mov ecx, dword [ecx*4 + 0x68fb88]
test ecx, ecx
je 0x406b06
mov byte [esi + 0x24], al
mov dword [esi + 0x28], eax
call sub.WINMM.dll_timeGetTime
mov ecx, dword [esi]
mov edx, dword [esp + 0xc]
push 0
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x14]
push 0
push 0x10
push ecx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi]
lea edx, [esp + 8]
push 0
push edx
lea eax, [esi + 0x18]
push 8
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 1
pop esi
ret
Function at 0x406c20
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
test eax, eax
push edi
mov dword [esp + 0x10], 0
jle 0x406dbb
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, byte [esi + 0xe]
test al, al
je 0x406cd3
mov ebx, dword [esi + 0x1c]
mov eax, dword [esi + 0x28]
mov edi, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi]
and ebx, 0x7fffffff
inc eax
push 0
mov dword [esi + 0x28], eax
lea eax, [esp + 0x1c]
push eax
push edi
push ecx
push edx
call ebp
mov eax, dword [esi + 0x20]
add eax, edi
mov ecx, dword [eax - 8]
mov dword [esi + 0x18], ecx
mov edx, dword [eax - 4]
mov ecx, dword [esp + 0x24]
lea eax, [edi - 8]
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
push esi
call fcn.00406dd0
mov eax, dword [esp + 0x2c]
add esp, 0x14
cmp edi, eax
ja 0x406d63
test ebx, ebx
jne 0x406dbb
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x406c43
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x28]
mov edx, dword [esp + 0x28]
and eax, 0x7fffffff
mov edi, dword [esi + 0x18]
inc ecx
mov dword [esi + 0x28], ecx
mov ecx, dword [esp + 0x10]
lea ebx, [esi + 0x18]
inc ecx
cmp ecx, edx
je 0x406d6b
test eax, eax
jne 0x406d6b
push 1
push eax
mov eax, dword [esi]
lea edx, [edi - 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi]
lea ecx, [esp + 0x18]
push 0
push ecx
push 8
push ebx
push edx
call ebp
cmp dword [esp + 0x18], 8
jb 0x406d21
jmp 0x406cb3
mov ecx, dword [esi]
mov eax, 8
push 1
sub eax, edi
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi]
lea edx, [esp + 0x18]
push 0
push edx
push edi
push eax
push ecx
call ebp
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add edi, 0xfffffff8
push edi
push edx
push eax
push ecx
push esi
call fcn.00406dd0
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esi + 0x20]
mov ecx, dword [esi]
lea edx, [esp + 0x18]
push 0
push edx
push edi
push eax
push ecx
call ebp
mov edx, dword [esi + 0x20]
mov ecx, dword [edi + edx - 8]
lea eax, [edi + edx]
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [eax - 4]
lea eax, [edi - 8]
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
push esi
call fcn.00406dd0
mov eax, dword [esp + 0x2c]
add esp, 0x14
cmp edi, eax
jbe 0x406dbb
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x4092e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebp
mov eax, dword [esp + 0x18]
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push DirectSoundCreate
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4093af
push ebx
lea ecx, [esp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ecx
lea edx, [esp + 0x1c]
push 8
push edx
push ebp
call esi
cmp dword [esp + 0x14], 0x5041434b
jne 0x40939d
mov eax, dword [esp + 0x18]
push edi
lea eax, [eax + eax*8]
shl eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push 0
lea edx, [eax + eax*8]
push ecx
shl edx, 2
push edx
push ebx
push ebp
call esi
mov eax, dword [esp + 0x1c]
xor esi, esi
test eax, eax
jle 0x409391
lea edi, [ebx + 4]
mov eax, dword [esp + 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
inc esi
test eax, eax
je 0x40938d
mov eax, dword [esp + 0x1c]
add edi, 0x24
cmp esi, eax
jl 0x40936f
jmp 0x409391
mov dword [esp + 0x14], esi
test ebx, ebx
pop edi
je 0x40939d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop ebx
pop esi
pop ebp
add esp, 0x10
ret
mov eax, esi
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x4093c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push 0
push 0x80
push 3
push 0
push 1
push DirectSoundCreate
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x409567
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea ecx, [esp + 0xc]
push 0
push ecx
lea edx, [esp + 0x1c]
push 8
push edx
push ebx
call esi
cmp dword [esp + 0x14], 0x5041434b
jne 0x40955e
mov eax, dword [esp + 0x18]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea eax, [eax + eax*8]
shl eax, 2
push eax
push 0x40
call ebp
mov edi, eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push 0
lea edx, [eax + eax*8]
push ecx
shl edx, 2
push edx
push edi
push ebx
mov dword [esp + 0x28], edi
call esi
mov eax, dword [esp + 0x1c]
xor esi, esi
test eax, eax
mov dword [esp + 0x24], esi
jle 0x40954a
lea eax, [edi + 4]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x409497
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
inc esi
add ecx, 0x24
cmp esi, eax
mov dword [esp + 0x24], ecx
jl 0x409466
mov dword [esp + 0x24], esi
jmp 0x40954a
lea eax, [esi + esi*8]
push 0
push 0
mov dword [esp + 0x2c], esi
mov ecx, dword [edi + eax*4 + 0x1c]
lea edi, [edi + eax*4]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi]
mov edx, dword [edi + 0x20]
push edx
push 0x40
test eax, eax
jne 0x4094da
call ebp
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x10]
push 0
push edx
mov dword [ecx], eax
mov ecx, dword [edi + 0x20]
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x409541
call ebp
mov ecx, dword [edi + 0x20]
mov esi, eax
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esi + 4]
push edx
push 0x40
call ebp
mov ecx, dword [esp + 0x2c]
mov dword [ecx], eax
mov edx, dword [esi + 4]
mov ecx, dword [edi + 0x20]
push edx
sub ecx, 8
lea edx, [esi + 8]
push ecx
push edx
push eax
call fcn.00408db0
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 4]
add esp, 0x10
cmp ecx, eax
je 0x409536
mov eax, dword [esp + 0x28]
push eax
push 0x4c1760
push 0
call fcn.00491750
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
inc esi
test esi, esi
jne 0x409552
mov dword [esp + 0x10], 0
test edi, edi
pop ebp
je 0x40955e
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, dword [esp + 4]
pop ebx
add esp, 0x10
ret
Function at 0x409570
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x134
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14c]
xor eax, eax
push edi
mov dword [esp + 0x14], eax
mov ecx, 9
lea edi, [esp + 0x20]
mov dword [esp + 0x18], eax
rep stosd dword es:[edi], eax
mov eax, dword [esi]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], ebp
je 0x4095ad
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14c]
mov edi, dword [esp + 0x148]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
push edi
lea edx, [esp + 0x4c]
push 0x4c1704
push edx
mov dword [esi], ebp
call ebx
add esp, 0x10
lea eax, [esp + 0x44]
push ebp
push 0x80
push 3
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 1
push DirectSoundCreate
push eax
call ebp
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4096c1
push edi
lea ecx, [esp + 0x48]
push str._s.pak
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x44]
push 0
push 0x80
push 3
push 0
push 1
push DirectSoundCreate
push edx
call ebp
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x4096ce
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x1c]
push 8
push edx
push eax
call edi
cmp dword [esp + 0x14], 0x5041434b
je 0x40965e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x134
ret
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x4096ce
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov edx, dword [esi]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x28]
push 0x24
push ecx
push edx
call edi
mov eax, dword [esp + 0x14c]
lea ecx, [esp + 0x24]
push eax
push ecx
call ebx
test eax, eax
je 0x4096a5
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x40966c
jmp 0x4096ce
mov edx, dword [esp + 0x3c]
mov eax, dword [esi]
push 0
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10], ecx
jmp 0x4096ce
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4096e9
mov eax, dword [esi]
test eax, eax
je 0x4096e3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret

Function at 0x40ac00
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
je 0x40ac15
mov dword [esp + 8], 1
jmp fcn.00406aa0
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push edx
push eax
call fcn.00406b40
add esp, 8
ret
Function at 0x414220
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push edi
xor edi, edi
cmp ebx, edi
je 0x41431a
cmp dword [esp + 0x24], edi
je 0x41431a
push ebp
push esi
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
sub edx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x14]
sub ecx, edx
push ebp
mov dword [esp + 0x20], ecx
call fcn.00496180
push ebp
call fcn.004961e0
mov esi, dword [esp + 0x40]
add esp, 8
cmp esi, edi
je 0x4142eb
mov eax, dword [esp + 0x1c]
inc esi
cdq
idiv esi
test eax, eax
jle 0x4142cc
xor ebx, ebx
mov eax, dword [0x6d1608]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
add eax, ebx
push 0xcc0020
push eax
push 0
push ecx
push 1
push edx
push eax
push 0
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x1c]
inc edi
cdq
idiv esi
add ebx, esi
cmp edi, eax
jl 0x414295
mov ebx, dword [esp + 0x24]
mov eax, dword [0x6d1608]
push ebp
inc eax
push ebx
cdq
idiv esi
mov dword [0x6d1608], edx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x10
ret
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push 0xcc0020
push edi
push edi
push ecx
push edx
push eax
push edi
push edi
push ebp
mov dword [0x6d1608], edi
call dword [sym.imp.GDI32.dll_BitBlt]
push ebp
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x10
ret
Function at 0x46dfc0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bb6ce
push eax
mov eax, 0x1008
mov dword fs:[0], esp
call fcn.004af8a0
mov eax, dword [esp + 0x1018]
mov ecx, dword [0xb7c758]
push esi
mov esi, dword [esp + 0x1024]
push esi
push eax
push ecx
call fcn.00409570
mov edx, dword [esp + 0x1034]
add esp, 0xc
cmp eax, 0x1000
mov dword [edx], eax
jae 0x46e013
mov eax, dword [esi]
jmp 0x46e03a
mov edx, dword [esi]
lea eax, [esp + 4]
push 0
push eax
lea ecx, [esp + 0x14]
push 0x1000
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
cmp eax, 0x1000
mov eax, dword [esi]
je 0x46e063
test eax, eax
je 0x46e045
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1008]
mov dword fs:[0], ecx
add esp, 0x1014
ret
push 1
push 0
push 0xfffff000
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x22f0
call fcn.004af9c9
mov esi, eax
add esp, 4
mov dword [esp + 8], esi
test esi, esi
mov dword [esp + 0x1014], 0
je 0x46e09e
mov ecx, esi
call fcn.0049af50
jmp 0x46e0a0
xor esi, esi
mov edx, dword [esp + 0x1020]
lea ecx, [esp + 0xc]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x101c], 0xffffffff
call fcn.0049b020
mov ecx, dword [esp + 0x100c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1014
ret
Function at 0x46e9c0
Capabilities:
Create thread

Disassembly:
mov eax, dword [0xb7c764]
sub esp, 0x48
test eax, eax
push ebp
push esi
push edi
je 0x46eb55
mov edi, dword [esp + 0x58]
test edi, edi
jl 0x46eb43
cmp edi, 8
jge 0x46eb43
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
call ebx
mov edx, dword [0xb7c75c]
mov ecx, edi
shl ecx, 0xa
add ecx, edi
push 0
and edx, 0xff
push 0
lea esi, [edi + ecx*2]
push 0
shl esi, 6
push 0
mov dword [edx*8 + 0xb7bf50], eax
mov dword [esi + 0xa7b1b4], eax
call ebx
mov cl, byte [0xb7c75d]
mov bl, byte [0xb7c75c]
xor edx, edx
inc bl
mov dl, cl
mov byte [0xb7c75c], bl
mov ebx, dword [esi + 0xa7b1b4]
inc cl
mov dword [edx*8 + 0xb7bf54], eax
mov edx, dword [esi + 0xa7b1cc]
mov byte [0xb7c75d], cl
mov dword [esi + 0xa7b1b8], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov ecx, 1
mov ebp, dword [esp + ecx*8 + 8]
mov dword [esp + ecx*8 + 0x14], ebx
add ebp, edx
mov dword [esp + ecx*8 + 0x10], ebp
inc ecx
cmp ecx, 8
jl 0x46ea6f
mov ebx, dword [esp + ecx*8 + 8]
mov dword [esp + ecx*8 + 0x14], eax
lea eax, [esp + 0x5c]
xor ebp, ebp
push eax
push ebp
push edi
push 0x46eb60
dec ebx
push ebp
push ebp
mov dword [esp + ecx*8 + 0x20], ebx
mov dword [esp + ecx*8 + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebp
pop ebx
je 0x46ead0
mov dword [esi + 0xa7b1bc], eax
mov eax, dword [esi + 0xa7b1c4]
lea edx, [esp + 0xc]
mov ecx, dword [eax]
push edx
push 9
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x46eb37
mov eax, dword [esi + 0xa7b1b4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebp
je 0x46eb02
mov cl, byte [0xb7c75e]
xor edx, edx
mov dl, cl
inc cl
push eax
mov byte [0xb7c75e], cl
mov dword [edx*8 + 0xb7b750], eax
call edi
mov dword [esi + 0xa7b1b4], ebp
mov eax, dword [esi + 0xa7b1b8]
cmp eax, ebp
je 0x46eb55
mov cl, byte [0xb7c75f]
xor edx, edx
mov dl, cl
inc cl
push eax
mov byte [0xb7c75f], cl
mov dword [edx*8 + 0xb7b754], eax
call edi
mov dword [esi + 0xa7b1b8], ebp
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x48
ret
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x48
ret
push edi
push 7
push 0x4c25cc
push 0
call fcn.00491750
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x48
ret

Function at 0x46ef30
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov ecx, eax
shl ecx, 0xa
add ecx, eax
lea esi, [eax + ecx*2]
shl esi, 6
mov ecx, dword [esi + 0xa7b1e8]
test ecx, ecx
jne 0x46ef77
mov eax, dword [esi + 0xa7b1c0]
test eax, eax
je 0x46ef75
push eax
call fcn.0046cf40
mov edx, dword [esi + 0xa7b1c0]
push edx
call fcn.0046cf70
add esp, 8
mov dword [esi + 0xa7b1c0], 0
pop esi
ret
pop esi
mov dword [esp + 4], eax
jmp fcn.0046e130
Function at 0x4774b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov dword [0xb80d78], 1
test eax, eax
mov dword [0xb80d7c], eax
jne 0x47754c
mov eax, dword [esp + 8]
push ebx
mov dword [0xb813cc], eax
mov dword [0xb813c0], eax
mov eax, dword [esp + 0x10]
push esi
mov dword [0xb813d0], eax
mov dword [0xb813c4], eax
mov eax, dword [esp + 0x18]
push edi
mov dword [0xb813d4], eax
mov dword [0xb813c8], eax
mov esi, 0xb810a0
mov eax, dword [0xb813c0]
lea edi, [eax*4]
call fcn.004af458
mov ecx, eax
mov eax, edi
cdq
mov ebx, eax
mov eax, ecx
xor ebx, edx
sub ebx, edx
cdq
add ebx, 0x320
idiv ebx
add edx, edi
mov dword [esi - 0x320], edx
call fcn.004af458
cdq
mov ecx, 0x7d0
add esi, 4
idiv ecx
neg edx
mov dword [esi - 4], edx
cmp esi, 0xb813c0
jl 0x4774fd
pop edi
pop esi
pop ebx
ret
Function at 0x491850
Capabilities:
Print debug messages

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x400
lea eax, [esp + 0x408]
lea edx, [esp]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x400
ret

Function at 0x492180
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4921a9
xor eax, eax
pop esi
ret
mov ecx, dword [esp + 0x10]
push 0
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 8]
push 0
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
pop esi
ret

Function at 0x4921e0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x492209
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 8]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
pop esi
ret

Function at 0x492290
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 3
push 0
push 1
push DirectSoundCreate
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4922b9
xor eax, eax
pop esi
ret
mov ecx, dword [esp + 0x10]
push 0
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 8]
push 0
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
pop esi
ret

Function at 0x4922f0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 3
push 0
push 1
push DirectSoundCreate
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x492319
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 8]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
pop esi
ret
Function at 0x492340
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push edi
push 0
push 0x80
push 3
push 0
push 1
push DirectSoundCreate
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x492369
xor eax, eax
pop edi
ret
lea ecx, [esp + 8]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x4923a3
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4923a3
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push 0
push ecx
push esi
push eax
push edi
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xc], esi
je 0x4923bd
push 0x4c6774
call fcn.00491850
add esp, 4
mov eax, esi
pop esi
pop edi
ret

Function at 0x492450
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x540
push ebx
push esi
mov esi, dword [esp + 0x54c]
push edi
test esi, esi
jne 0x492470
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x540
ret
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push esi
lea eax, [esp + 0x150]
push str._s.
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4924af
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x540
ret
lea eax, [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push eax
push ebx
call ebp
lea ecx, [esp + 0x10]
push ecx
push ebx
call ebp
test eax, eax
je 0x49255d
cmp dword [esp + 0x10], 0x10
jne 0x49250d
lea edx, [esp + 0x3c]
lea eax, [esp + 0x150]
push edx
push esi
push 0x4c1704
push eax
call edi
lea ecx, [esp + 0x160]
push ecx
call fcn.00492450
add esp, 0x14
test eax, eax
jne 0x49254d
lea edx, [esp + 0x150]
push edx
push 0x4c67c8
jmp 0x492543
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x150]
push eax
push esi
push 0x4c1704
push ecx
call edi
lea edx, [esp + 0x160]
push edx
call fcn.004923d0
add esp, 0x14
test eax, eax
jne 0x49254d
lea eax, [esp + 0x150]
push eax
push 0x4c67a8
push 0
call fcn.00491750
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push ebx
call ebp
test eax, eax
jne 0x4924ce
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x540
ret