joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457390
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x457565
mov eax, dword [esp + 0x14]
test eax, eax
je 0x457565
mov edx, dword [eax + 0x914]
mov ecx, dword [edi + 0xc]
sub ecx, edx
mov dword [esp + 4], edx
mov edx, dword [eax + 0xc]
cmp ecx, edx
push ebp
jge 0x4573cb
mov ebp, ecx
mov dword [esp + 0x14], ebp
jmp 0x4573d1
mov ebp, edx
mov dword [esp + 0x14], edx
mov ecx, dword [edi + 0x10]
mov edx, dword [eax + 0x10]
push ebx
mov ebx, dword [eax + 0x918]
sub ecx, ebx
cmp ecx, edx
mov dword [esp + 0x10], ecx
jl 0x4573ec
mov dword [esp + 0x10], edx
cmp dword [eax + 0x14], 0
mov edx, dword [eax + 0x924]
push esi
je 0x45741b
mov ecx, dword [eax + 0x14]
mov ecx, dword [ecx + 0x120]
add edx, 1
imul edx, ecx
mov esi, ecx
sub esi, ebp
add edx, dword [eax + 0x920]
mov eax, dword [eax + 0x18]
lea ecx, [eax + edx*4 + 4]
jmp 0x457431
mov ecx, dword [eax + 0xc]
imul edx, ecx
mov esi, ecx
sub esi, ebp
add edx, dword [eax + 0x920]
mov eax, dword [eax + 0x18]
lea ecx, [eax + edx*4]
cmp dword [edi + 0x14], 0
je 0x457457
mov edx, dword [edi + 0x14]
mov eax, dword [edx + 0x120]
add ebx, 1
imul ebx, eax
mov edx, eax
mov eax, dword [edi + 0x18]
sub edx, ebp
add ebx, dword [esp + 0x10]
lea eax, [eax + ebx*4 + 4]
jmp 0x45746b
mov eax, dword [edi + 0xc]
mov edi, dword [edi + 0x18]
mov edx, eax
imul eax, ebx
sub edx, ebp
add eax, dword [esp + 0x10]
lea eax, [edi + eax*4]
test ebp, ebp
je 0x457562
mov edi, dword [esp + 0x14]
test edi, edi
je 0x457562
mov ebx, dword [esp + 0x24]
sub ebx, 0
je 0x45752c
sub ebx, 1
je 0x4574e6
sub ebx, 1
jne 0x457562
test edi, edi
jle 0x457562
add esi, esi
add esi, esi
lea ebx, [edx*4]
lea ecx, [ecx]
test ebp, ebp
jle 0x4574d5
mov edx, ebp
mov ebp, dword [ecx]
xor ebp, dword [eax]
add ecx, 4
and ebp, 0xffffff
xor ebp, dword [ecx - 4]
add eax, 4
sub edx, 1
mov dword [eax - 4], ebp
jne 0x4574b6
mov ebp, dword [esp + 0x1c]
add ecx, esi
add eax, ebx
sub edi, 1
jne 0x4574b0
pop esi
pop ebx
pop ebp
pop edi
add esp, 8
ret
test edi, edi
jle 0x457562
add esi, esi
add esi, esi
lea ebx, [edx*4]
test ebp, ebp
jle 0x45751b
mov edx, ebp
jmp 0x457500
mov ebp, dword [ecx]
xor ebp, dword [eax]
add ecx, 4
and ebp, 0xffffff
xor dword [eax], ebp
add eax, 4
sub edx, 1
jne 0x457500
mov ebp, dword [esp + 0x1c]
add ecx, esi
add eax, ebx
sub edi, 1
jne 0x4574f5
pop esi
pop ebx
pop ebp
pop edi
add esp, 8
ret
test edi, edi
jle 0x457562
add esi, esi
add esi, esi
lea ebx, [edx*4]
jmp 0x457540
test ebp, ebp
jle 0x457559
mov edx, ebp
mov ebp, dword [ecx]
mov dword [eax], ebp
add eax, 4
add ecx, 4
sub edx, 1
jne 0x457546
mov ebp, dword [esp + 0x1c]
add ecx, esi
add eax, ebx
sub edi, 1
jne 0x457540
pop esi
pop ebx
pop ebp
pop edi
add esp, 8
ret
Function at 0x458130
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x14
test eax, eax
jne 0x458141
xor al, al
add esp, 0x14
ret
mov edx, dword [eax + 0x918]
mov ecx, dword [eax + 0x914]
push ebp
mov ebp, dword [eax + 0xc]
mov dword [esp + 0xc], edx
mov edx, dword [eax + 0x924]
imul edx, ebp
add edx, dword [eax + 0x920]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
push edi
mov dword [esp + 8], ecx
push 0x104
lea ecx, [eax + edx*4]
push 0x40
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x458195
pop edi
xor al, al
pop ebp
add esp, 0x14
ret
mov edx, dword [esp + 0x24]
push ebx
push esi
push edi
push edx
call fcn.0046ee30
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 8
push 0
push 0x8000080
push 3
push 0
push 2
push 0x40000000
push edi
call ebx
mov esi, eax
test esi, esi
je 0x4581cf
cmp esi, 0xffffffff
jne 0x458256
push 0
push 0x8000080
push 2
push 0
push 2
push 0x40000000
push edi
call ebx
mov esi, eax
test esi, esi
je 0x4582f3
cmp esi, 0xffffffff
je 0x4582f3
mov eax, dword [0x6d89a8]
imul eax, dword [0x6d89a4]
lea eax, [eax*4 + 0x10]
push eax
push 0x40
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x458256
mov dword [ebx], 0x4d554854
mov eax, dword [0x6d89a4]
push 0
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [0x6d89a8]
lea edx, [esp + 0x24]
push edx
push eax
push ebx
push esi
mov dword [ebx + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [0x6d89a4]
imul ecx, dword [esp + 0x18]
add ecx, dword [esp + 0x1c]
push 0
push 0
lea edx, [ecx*4 + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [0x6d89a4]
sub edi, ebp
add edi, edi
xor ebx, ebx
add edi, edi
cmp dword [esp + 0x10], ebx
jle 0x4582d1
add ebp, ebp
add ebp, ebp
mov edi, edi
mov ecx, dword [esp + 0x28]
push 0
lea eax, [esp + 0x24]
push eax
push ebp
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4582e2
add dword [esp + 0x28], ebp
push 1
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add ebx, 1
cmp ebx, dword [esp + 0x10]
jl 0x4582a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
pop edi
mov al, 1
pop ebp
add esp, 0x14
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
pop edi
xor al, al
pop ebp
add esp, 0x14
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebx
pop edi
xor al, al
pop ebp
add esp, 0x14
ret
Function at 0x45cf30
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jbe 0x45cf4d
mov cl, byte [esp + 0xc]
mov eax, dword [esp + 4]
xor byte [eax], cl
add eax, 1
add cl, 0x5c
sub edx, 1
jne 0x45cf40
ret
Function at 0x462c80
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x5a412c], 0
je 0x462cd0
mov eax, dword [0x5a4128]
push 0
push 0
push 0x500
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov ecx, dword [0x5a412c]
push 0xbb8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x462cc6
mov edx, dword [0x5a412c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x5a412c], 0
push 0x5a4110
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov al, 1
ret

Function at 0x463440
Capabilities:
Create thread

Disassembly:
push 0x5a4110
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x5a4128
push 0
push 0
push 0x463160
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x5a412c], eax
jne 0x46347a
push 0x5a4110
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
xor al, al
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov al, 1
ret

Function at 0x4686c0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x6cdbf0]
test eax, eax
je 0x468769
mov ecx, dword [0x6cdbe0]
push 0
push 0
push 0x500
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov edx, dword [0x6cdbdc]
push 0xbb8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x46870a
mov eax, dword [0x6cdbdc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [0x6cdbdc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [0x6cdbe8]
push edx
call esi
mov eax, dword [0x6cdbec]
push eax
call esi
mov ecx, dword [0x6cdbd4]
push ecx
call esi
mov edx, dword [0x6cdbe4]
push edx
call esi
mov eax, dword [0x6cdbf4]
test eax, eax
pop esi
je 0x46875f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x6cdbf4], 0
mov dword [0x6cdbf0], 0
ret
Function at 0x46ad20
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x6cdbf0]
test eax, eax
je 0x46ad2e
call fcn.004686c0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push str.DSEBGMNew
push 0
push 0
push 0
call esi
push str.DSELVNew
push 0
push 0
push 0
mov dword [0x6cdbe8], eax
call esi
push str.DSESENew
push 0
push 0
push 0
mov dword [0x6cdbec], eax
call esi
push str.DSEGETInfo
push 0
push 0
push 0
mov dword [0x6cdbd4], eax
call esi
push 0x104
mov dword [0x6cdbe4], eax
call fcn.00484c16
mov ecx, dword [str.BGM.ini]
push ecx
push 0x591300
mov edi, eax
push 0x49e3f8
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [str.BGM.dat]
push edx
push edi
call fcn.00434be0
push edi
mov esi, eax
call fcn.00484c99
add esp, 0x20
test esi, esi
je 0x46adf5
push esi
call fcn.004346d0
add esp, 4
add eax, 8
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x6cdbf4], eax
je 0x46adec
push eax
push esi
call fcn.00434650
push esi
call fcn.004346e0
add esp, 0xc
push esi
call fcn.00434720
add esp, 4
mov eax, dword [esp + 0xc]
push 0x6cdbe0
push 0
push eax
push 0x469310
push 0
push 0
mov dword [0x6cdbd8], 9
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x6cdbdc], eax
mov ecx, dword [0x6cdbdc]
test ecx, ecx
pop edi
pop esi
jne 0x46ae31
mov eax, reloc.DSOUND.dll_DirectSoundCreate
ret
mov edx, dword [0x6cdbdc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
mov dword [0x6cdbf0], eax
ret
Function at 0x46d710
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x49d09b
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4be944]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4be944]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov esi, ecx
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x3c], eax
lea edi, [esi + 0x48]
push edi
lea eax, [esp + 0x30]
push eax
push ecx
mov ecx, dword [edx + 0xc]
mov word [esp + 0x24], 1
mov word [esp + 0x26], 2
mov dword [esp + 0x28], 0xac44
mov word [esp + 0x30], 4
mov dword [esp + 0x2c], 0x2b110
mov word [esp + 0x32], 0x10
mov dword [esp + 0x38], 0x24
mov dword [esp + 0x3c], 0xc1c8
mov dword [esp + 0x40], 0x183990
call ecx
test eax, eax
jne 0x46d8be
push 1
lea ebx, [esi + 0x50]
push esi
mov dword [ebx], 0x2b110
mov dword [esi + 0x58], 0xac440
mov dword [esi + 0x60], 0x12d770
mov dword [esi + 0x68], 0x18398c
mov dword [esi + 0x70], 0xffffffff
call fcn.0046c050
push 2
push esi
mov dword [esi + 0x54], eax
call fcn.0046c050
push 0
push esi
mov dword [esi + 0x5c], eax
call fcn.0046c050
push 3
push esi
mov dword [esi + 0x64], eax
call fcn.0046c050
add esp, 0x20
mov dword [esi + 0x6c], eax
call fcn.0046c150
mov dword [esi + 0x74], eax
mov eax, dword [edi]
mov edx, dword [eax]
lea ebp, [esi + 0x4c]
push ebp
push 0x4a8540
push eax
mov eax, dword [edx]
call eax
test eax, eax
jne 0x46d8be
mov ebp, dword [ebp]
mov ecx, dword [ebp]
mov edx, dword [ecx + 0xc]
push ebx
push 5
push ebp
call edx
test eax, eax
jne 0x46d8be
push 0x81730
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [esi + 0xb0], eax
je 0x46d8be
cmp dword [esi + 0x3c], 0
jne 0x46d8c9
push 0x8f8
call fcn.00484d49
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov dword [esp + 0x58], 0
je 0x46d8ad
mov ecx, eax
call fcn.0046e3f0
jmp 0x46d8af
xor eax, eax
test eax, eax
mov dword [esp + 0x58], 0xffffffff
mov dword [esi + 0x3c], eax
jne 0x46d8c9
mov ecx, esi
call fcn.0046cff0
xor eax, eax
jmp 0x46d8ce
mov eax, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00484c9e
add esp, 0x48
ret 4
Function at 0x46f080
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2e4
mov eax, dword [0x4be944]
xor eax, esp
mov dword [esp + 0x2e0], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov al, 0x3f
push str.save000.sav
push 0x4c0528
mov byte [0x4b8bfc], al
mov byte [0x4b8bfd], al
mov byte [0x4b8bfe], al
lea eax, [esp + 0x1e8]
push 0x49f164
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1e4]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
test esi, esi
mov dword [esp + 0xc], esi
je 0x46f14d
cmp esi, 0xffffffff
je 0x46f14d
test byte [esp + 0x20], 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
jne 0x46f1a4
lea eax, [esp + 0x4c]
push eax
push 0x4c0528
lea ecx, [esp + 0x1e8]
push 0x49f164
push ecx
call edi
add esp, 0x10
push 0
push 0x8000080
push 3
push 0
push 1
push DirectSoundCreate
lea edx, [esp + 0x1f8]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x46f165
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e0]
xor ecx, esp
call fcn.00484c9e
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
push esi
jne 0x46f187
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0xc]
push edx
jmp 0x46f147
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0xc]
lea edx, [esp + 0x20]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x46f275
jmp 0x46f1c0
test byte [esp + 0x20], 0x10
jne 0x46f261
lea eax, [esp + 0x4c]
push eax
push 0x4c0528
lea ecx, [esp + 0x1e8]
push 0x49f164
push ecx
call edi
add esp, 0x10
push 0
push 0x8000080
push 3
push 0
push 1
push DirectSoundCreate
lea edx, [esp + 0x1f8]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x46f25d
lea eax, [esp + 0x18]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x46f25d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
jne 0x46f25d
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x4c]
mov dword [esp + 0x10], eax
push edx
lea eax, [esp + 0x164]
push eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x46f1c0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
movsx eax, byte [esp + 0x164]
lea edx, [eax + eax*4]
movsx eax, byte [esp + 0x165]
lea eax, [eax + edx*2]
movsx edx, byte [esp + 0x166]
pop edi
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*2 - 0x14d0]
mov ecx, dword [esp + 0x2e8]
pop esi
pop ebx
xor ecx, esp
call fcn.00484c9e
mov esp, ebp
pop ebp
ret
Function at 0x46f7c0
Capabilities:
Copy file

Disassembly:
push ebx
push esi
push edi
push 0x104
call fcn.00484c16
mov esi, eax
add esp, 4
test esi, esi
je 0x46f870
push 0x104
call fcn.00484c16
mov edi, eax
add esp, 4
test edi, edi
je 0x46f867
mov eax, dword [esp + 0x10]
push eax
call fcn.0046edd0
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push eax
push 0x4c0528
push 0x49f164
push esi
call ebx
push 0
push esi
call fcn.00434be0
add esp, 0x1c
test eax, eax
je 0x46f85e
push eax
call fcn.00434720
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0046edd0
push eax
push 0x4c0528
push 0x49f164
push edi
call ebx
add esp, 0x18
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x46f85e
push edi
call fcn.00484c99
push esi
call fcn.00484c99
add esp, 8
pop edi
pop esi
mov al, 1
pop ebx
ret
push edi
call fcn.00484c99
add esp, 4
push esi
call fcn.00484c99
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
ret

Function at 0x46f880
Capabilities:
Delete file

Disassembly:
push esi
push 0x104
call fcn.00484c16
mov esi, eax
add esp, 4
test esi, esi
je 0x46f8e9
mov eax, dword [esp + 8]
push eax
call fcn.0046edd0
push eax
push 0x4c0528
push 0x49f164
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push esi
call fcn.00434be0
add esp, 0x1c
test eax, eax
je 0x46f8e0
push eax
call fcn.00434720
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x46f8e0
push esi
call fcn.00484c99
add esp, 4
mov al, 1
pop esi
ret
push esi
call fcn.00484c99
add esp, 4
xor al, al
pop esi
ret

Function at 0x46f8f0
Capabilities:
Delete file

Disassembly:
push esi
push 0x104
call fcn.00484c16
mov esi, eax
add esp, 4
test esi, esi
je 0x46f948
mov eax, dword [esp + 8]
push esi
push eax
call fcn.0046ee30
push 0
push esi
call fcn.00434be0
add esp, 0x10
test eax, eax
je 0x46f93f
push eax
call fcn.00434720
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x46f93f
push esi
call fcn.00484c99
add esp, 4
mov al, 1
pop esi
ret
push esi
call fcn.00484c99
add esp, 4
xor al, al
pop esi
ret
Function at 0x4730d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
push ebx
mov ebx, dword [esp + 0x6c]
xor ecx, ecx
cmp ebx, ecx
push esi
push edi
jne 0x473121
mov edi, dword [0x6d8d10]
xor edx, edx
xor esi, esi
cmp edi, ecx
jbe 0x473113
mov edi, edi
mov eax, dword [ecx*4 + 0x6d8f18]
cmp dword [eax + 0x68], 0
jne 0x47310c
mov ebx, dword [eax + 0x1c]
imul ebx, dword [eax + 0x18]
imul ebx, ebx, 0x15
add edx, 1
add esi, ebx
add ecx, 1
cmp ecx, edi
jb 0x4730f0
imul edx, edx, 0x64
pop edi
lea eax, [edx + esi + 4]
pop esi
pop ebx
add esp, 0x64
ret
mov eax, dword [0x6d8d10]
mov dword [ebx], eax
add ebx, 4
cmp eax, ecx
mov dword [esp + 0x74], ecx
jbe 0x473294
push ebp
mov ebp, 0x6d8f18
lea ecx, [ecx]
mov eax, dword [ebp]
cmp dword [eax + 0x68], 0
jne 0x473278
mov ecx, dword [eax + 8]
fld dword [eax + 0x4c]
mov dword [esp + 0x18], ecx
fstp dword [esp + 0x50]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0x5c]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0x60]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x2c]
mov edx, dword [eax]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x34]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x48], ecx
mov ecx, dword [eax + 0x40]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax + 0x50]
mov dword [esp + 0x54], ecx
mov ecx, dword [eax + 0x54]
mov dword [esp + 0x58], ecx
mov ecx, dword [eax + 0x58]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x5c], ecx
mov ecx, dword [eax + 0x64]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x60], ecx
mov ecx, dword [eax + 0x48]
mov dword [esp + 0x24], edx
imul edx, dword [esp + 0x20]
mov dword [esp + 0x64], ecx
mov ecx, dword [eax + 0x80]
mov dword [esp + 0x68], ecx
mov ecx, dword [eax + 0x84]
mov al, byte [eax + 0x88]
mov dword [esp + 0x6c], ecx
mov edi, ebx
mov byte [esp + 0x70], al
mov ecx, 0x19
lea esi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp]
mov edi, edx
mov edx, dword [ecx + 0x44]
push edi
push edx
add ebx, 0x64
push ebx
call fcn.00485fb0
add esp, 0xc
add ebx, edi
xor esi, esi
test edi, edi
jbe 0x473278
mov eax, dword [ebp]
mov ecx, dword [eax + 0x78]
cmp dword [ecx + esi*4], 0
je 0x47325e
mov dword [ebx], 1
mov eax, dword [ebp]
mov ecx, dword [eax + 0x78]
lea edx, [ebx + 4]
push edx
mov edx, dword [ecx + esi*4]
push edx
call fcn.00471e50
add esp, 8
jmp 0x47326e
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
add esi, 1
add ebx, 0x14
cmp esi, edi
jb 0x473234
mov ecx, dword [esp + 0x78]
mov eax, dword [0x6d8d10]
add ecx, 1
add ebp, 4
cmp ecx, eax
mov dword [esp + 0x78], ecx
jb 0x473140
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x64
ret
Function at 0x476810
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
push esi
mov esi, dword [esp + 0x6c]
mov eax, dword [esi]
test eax, eax
je 0x4769e1
add esi, 4
test eax, eax
jbe 0x4769e1
push ebx
push ebp
mov dword [esp + 0x14], eax
push edi
mov eax, dword [esi + 8]
fld dword [esi + 0x40]
mov ecx, dword [esi + 0xc]
fadd st(0), st(0)
mov edx, dword [esi + 0x48]
lea edi, [esi + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x28], edx
mov edx, dword [esi + 0x1c]
mov ebp, esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
call fcn.00485ee0
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x50]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x44]
mov dword [esp + 0x48], edx
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x54], edx
mov edx, dword [esi + 0x38]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0x50], ecx
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x60], edx
mov edx, dword [esi + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x68], edx
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0x5c]
mov dword [esp + 0x24], ecx
mov cl, byte [esi + 0x60]
lea edx, [esp + 0x20]
push 0
push edx
mov dword [esp + 0x74], eax
mov byte [esp + 0x78], cl
call fcn.00476690
push eax
call fcn.004722d0
add esp, 0xc
cmp byte [esi + 0x60], 0
mov dword [esp + 0x78], eax
je 0x47690b
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
push edx
push eax
call fcn.00472540
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, eax
imul edx, ecx
add esi, 0x64
mov ebx, esi
add esi, edx
test ecx, ecx
mov dword [esp + 0x10], 0
jle 0x4769b0
lea ecx, [ecx]
xor edi, edi
test eax, eax
jle 0x47699c
lea ebp, [esi + 4]
lea esp, [esp]
cmp dword [esi], 0
je 0x476983
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x78]
push eax
push edi
push ecx
call fcn.00472480
movzx edx, word [ebx]
push edx
call fcn.00471ee0
add esp, 0x10
test eax, eax
push ebp
je 0x476971
push edx
mov edx, dword [esp + 0x80]
push edx
jmp 0x47697b
movzx ax, byte [ebx]
mov ecx, dword [esp + 0x7c]
push eax
push ecx
call fcn.00473ff0
add esp, 0xc
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x10]
add edi, 1
add esi, 0x14
add ebp, 0x14
add ebx, 1
cmp edi, eax
jl 0x476940
mov ebp, edx
mov ecx, dword [esp + 0x10]
add ecx, 1
cmp ecx, dword [ebp + 0x14]
mov dword [esp + 0x10], ecx
jl 0x476930
mov edi, dword [esp + 0x1c]
cmp dword [edi], 0
je 0x4769c2
mov eax, dword [esp + 0x78]
push eax
call fcn.004725a0
add esp, 4
mov ecx, dword [ebp]
mov edx, dword [esp + 0x78]
push ecx
push edx
call fcn.00472380
add esp, 8
sub dword [esp + 0x18], 1
jne 0x476834
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x64
ret