joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f110
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4d5ad0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
mov esi, ecx
mov dword [esp + 0x30], 0
mov eax, dword [0x51856c]
mov edx, dword [eax + 0xc]
mov ecx, 0x51856c
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x30], edi
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, esi
call fcn.00451e80
test eax, eax
je 0x46f26c
add eax, 4
lea edi, [esp + 0x30]
call fcn.004082a0
mov ecx, dword [esp + 0x30]
cmp dword [ecx - 0xc], 0
jne 0x46f1a4
mov eax, ebp
call fcn.004082a0
push 0x4ec20c
push 0x4f577c
lea edx, [esp + 0x38]
push edx
call fcn.00451ab0
push 0x4f5784
push 0x4f5788
lea eax, [esp + 0x38]
push eax
call fcn.00451ab0
cmp dword [esi + 0x64], 0
je 0x46f21d
mov ecx, dword [esi + 0x64]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x2c]
push eax
call edx
mov byte [esp + 0x20], 1
mov eax, dword [eax]
push eax
push 0x4f579c
lea eax, [esp + 0x38]
push eax
call fcn.00451ab0
mov byte [esp + 0x20], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f21d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x30]
add esi, 0xfffffff0
mov eax, esi
call fcn.00408230
mov edi, dword [esp + 0x28]
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f255
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 0xc
mov eax, dword [ebp]
sub eax, 0x10
call fcn.00408230
mov esi, dword [esp + 0x28]
add eax, 0x10
mov dword [esi], eax
lea eax, [edi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46f2a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 0xc
Function at 0x471a40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5a3b
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x513330]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
push 0x519604
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x5c], 0x519604
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, 1
mov byte [ebp - 0x58], al
mov byte [ebp - 4], al
cmp dword [0x519510], 0
jne 0x471ab5
call fcn.00471be0
test eax, eax
je 0x471ba5
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp - 0x54]
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, esi
call fcn.00472080
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x471ad7
lea eax, [ebp - 0x48]
push 0xfde9
lea edx, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xe0], edx
call fcn.0046d4d0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xe0]
xor ebx, ebx
mov edi, 0xf
mov eax, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x471b13
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x30]
call fcn.004261d0
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0xdc]
cmp eax, ecx
je 0x471b3f
push eax
call fcn.004a594c
add esp, 4
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
mov dword [ebp - 0x50], ebx
cmp dword [ebp - 0x18], esi
jae 0x471b52
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
push ebx
lea edx, [ebp - 0x50]
push edx
mov edx, dword [0x519510]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x18], esi
jb 0x471b7a
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004a529a
add esp, 4
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
jb 0x471b95
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004a529a
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
push 0x519604
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a52a5
mov esp, ebp
pop ebp
ret 0xc
Function at 0x472e90
Capabilities:
Write file on windows

Disassembly:
test eax, eax
jne 0x472e98
lea eax, [esp + 4]
push 0
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [edx]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x472eb6
call fcn.00405b90
ret 4
xor eax, eax
ret 4

Function at 0x4730f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [0x513330]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push Ordinal_1
push eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4731c2
call fcn.00405b90
test eax, eax
jl 0x473257
push 0
lea ecx, [esp + 0xc]
push ecx
push 0xd
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x473160
call fcn.00405b90
test eax, eax
jl 0x47324c
cmp dword [esp + 8], 0xd
jne 0x47324c
cmp byte [esp + 0xc], 0x46
jne 0x47322b
cmp byte [esp + 0xd], 0x4c
jne 0x47322b
cmp byte [esp + 0xe], 0x56
jne 0x47322b
cmp byte [esp + 0xf], 1
jne 0x47322b
test byte [esp + 0x10], 5
jne 0x4731cd
lea esi, [esp + 4]
call fcn.0045b880
lea ecx, [esp + 0x24]
call fcn.00405f50
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004a52a5
add esp, 0x1c
ret
mov esi, eax
mov dword [esp + 4], esi
jmp 0x47313a
lea ecx, [esp + 0x11]
call fcn.0047d7a0
cdq
push edx
push eax
lea eax, [esp + 0xc]
push eax
xor edx, edx
call fcn.004620d0
test eax, eax
jl 0x47319e
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 0xc]
mov ecx, 4
lea edx, [esp + 0x10]
call fcn.0046b0b0
cmp dword [esp + 8], 4
lea esi, [esp + 4]
jne 0x4731a2
call fcn.0045b880
lea ecx, [esp + 0x24]
call fcn.00405f50
mov al, 1
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004a52a5
add esp, 0x1c
ret
test esi, esi
je 0x473236
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x47326b
test esi, esi
je 0x473257
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x473277
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
xor al, al
call fcn.004a52a5
add esp, 0x1c
ret
Function at 0x473500
Capabilities:
Check if file exists
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4d7b60
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push str.____________________Entrance____________________
lea eax, [esp + 0x24]
push eax
push esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], 0x4f13d4
call fcn.00471a00
add esp, 0xc
mov dword [esp + 0x30], 0
mov eax, dword [esi + 0x40]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x473568
push 0x80004005
call fcn.00405ef0
mov eax, dword [eax + 8]
sub eax, 0x10
call fcn.00408230
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x18], esp
mov byte [esp + 0x34], 1
mov ebp, esp
mov dword [esp + 0x18], eax
call fcn.00408230
add eax, 0x10
mov dword [ebp], eax
call fcn.00472fd0
add esp, 4
cmp eax, 2
jne 0x4735c7
mov eax, dword [esi + 0x58]
push ecx
sub eax, 0x10
mov dword [esp + 0x20], esp
mov edi, esp
call fcn.00408230
add eax, 0x10
mov dword [edi], eax
mov edi, esi
call fcn.004736b0
mov bl, al
jmp 0x473634
cmp dword [esi + 0x48], 1
jbe 0x4735ed
mov eax, dword [esi + 0x58]
push ecx
sub eax, 0x10
mov dword [esp + 0x20], esp
mov edi, esp
call fcn.00408230
add eax, 0x10
mov dword [edi], eax
call fcn.00473b40
mov bl, al
jmp 0x473634
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call ebx
test eax, eax
je 0x473616
mov eax, dword [esi + 0x58]
push eax
call ebx
test eax, eax
jne 0x473616
mov eax, dword [esi + 0x58]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
jmp 0x473618
xor bl, bl
mov ecx, dword [esi + 0x58]
push ecx
push edi
movzx edx, bl
push edx
push str.bRet_d_for_FileUtils::RenameFile__s___s_
lea eax, [esp + 0x30]
push eax
push esi
call fcn.004719c0
add esp, 0x18
test bl, bl
jne 0x47364b
push str.Failed_to_merge_video_files
lea ecx, [esp + 0x24]
push ecx
push esi
call fcn.00471980
add esp, 0xc
mov eax, dword [esp + 0x14]
mov byte [esp + 0x30], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47366d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.______________________Exit______________________
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], 0xffffffff
mov edx, dword [esp + 0x28]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x473b40
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4d7ae0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
push str.____________________Entrance____________________
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x34], 0
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], str.MergeFlvFiles
call fcn.00471a00
add esp, 0xc
mov byte [esp + 0x2c], 1
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x14]
mov bl, 2
push ecx
mov byte [esp + 0x30], bl
call fcn.0046c9a0
add esp, 4
mov byte [esp + 0x2c], 3
mov edx, dword [esp + 0x34]
mov ecx, dword [esi + 0x5c]
push edx
mov edx, dword [eax]
push ecx
push edx
push str.__s___f_concat__i___s___c_copy___s_
lea edi, [esp + 0x20]
call fcn.0040e4a0
mov byte [esp + 0x3c], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x473c01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.0047a960
mov edi, dword [esp + 0x14]
add esp, 4
mov bl, al
push edi
movzx ecx, bl
push ecx
push str.bRet_d_for_SysUtils::ExecuteCommand__s__INFINITE_
lea edx, [esp + 0x24]
push edx
push esi
call fcn.004719c0
lea eax, [edi - 0x10]
add esp, 0x14
mov byte [esp + 0x2c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x473c4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.______________________Exit______________________
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0
mov edx, dword [esp + 0x20]
push ecx
push edx
call fcn.00471a00
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x473c92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x24
ret 4
Function at 0x473ec0
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2b80
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x513330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
push 1
lea eax, [ebp - 0x44]
xor esi, esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push esi
push esi
push 1
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov ebx, vtable.ATL::CSecurityDesc.0
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 1
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], esi
call fcn.0045bd00
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x24]
call eax
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x473f56
lea ecx, [ebp - 0x24]
call fcn.0045bd00
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x30], 0xc
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], ebx
call fcn.0045beb0
lea edx, [ebp - 0x30]
push edx
push 0x1388
push 0x1000
push 0x1000
push 0xff
push 6
push 0x40000003
push str..pipep861C592B_5428_471f_8082_A5FFB5B93894
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [edi + 0x18], eax
cmp ecx, esi
jne 0x473fb8
push 0x80004005
call fcn.00405ef0
lea ecx, [edi + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
neg eax
sbb eax, eax
inc eax
cmp eax, esi
jne 0x473fd6
push 0x80004005
call fcn.00405ef0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x47400e
cmp eax, 0x3e5
jne 0x47403e
lea ecx, [ebp - 0x24]
mov esi, 1
mov dword [ebp - 0x24], ebx
call fcn.0045beb0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x47403e
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
call fcn.0045beb0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
call fcn.0045beb0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4747d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d4c19
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov eax, dword [0x51856c]
mov edx, dword [eax + 0xc]
mov ecx, 0x51856c
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x14], 0
mov eax, dword [esi + 0x30]
mov dword [esp + 8], 1
mov dword [esi + 0x2c], eax
test eax, eax
je 0x474856
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x474849
push 0x80004005
call fcn.00405ef0
mov ecx, dword [eax]
add eax, 8
mov dword [esi + 0x2c], ecx
call fcn.004082a0
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x10
ret 4

Function at 0x474cb0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4d2b53
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
fld dword [0x4fae70]
xor edi, edi
fstp dword [esi + 0xc]
mov ecx, esi
fld dword [0x4e7438]
mov dword [esi], edi
fstp dword [esi + 0x10]
mov dword [esi + 4], edi
fld dword [0x4fae6c]
mov dword [esi + 8], 0x11
fstp dword [esi + 0x14]
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 0xa
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
call fcn.00452120
mov dword [esp + 0x14], edi
mov eax, dword [0x51856c]
mov edx, dword [eax + 0xc]
mov ecx, 0x51856c
call edx
add eax, 0x10
mov dword [esi + 0x30], eax
lea ecx, [esi + 0x34]
xor eax, eax
mov byte [esp + 0x14], 1
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
call fcn.00402fa0
cmp eax, edi
jge 0x474d63
push eax
call fcn.00405ef0
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 0x475d40
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4d2036
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea ecx, [esi + 4]
xor eax, eax
mov dword [esi], vtable.ProgressStatistics.0
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
xor edi, edi
mov dword [ecx + 0x14], eax
call fcn.00402fa0
cmp eax, edi
jge 0x475d93
push eax
call fcn.00405ef0
mov dword [esp + 0x14], edi
push 0x20
mov dword [esi + 0x1c], edi
call fcn.004a3368
mov dword [esi + 0x20], eax
push 0x20
mov byte [esp + 0x1c], 1
call fcn.004a3368
mov dword [esi + 0x24], eax
add esp, 8
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x24]
inc eax
mov dword [esi + 0x58], eax
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
mov ecx, dword [esi + 0x20]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
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 0x4766a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
push edi
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x1c], 0
jne 0x4766ca
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor al, al
pop ebp
add esp, 8
ret 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp], 0
mov ebx, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov eax, ebx
or eax, edx
jne 0x4766f6
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
xor al, al
pop ebp
add esp, 8
ret 0xc
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
cmp eax, edx
jb 0x476731
ja 0x476706
cmp ecx, ebx
jb 0x476731
mov ecx, dword [esp + 0x20]
fldz
mov edx, dword [esp + 0x1c]
mov dword [ebp], 0x64
mov dword [ecx], 0
fstp qword [edx]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
mov al, 1
pop ebp
add esp, 8
ret 0xc
mov dword [esp + 0xc], ecx
fnstcw word [esp + 0x18]
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x10], eax
fild qword [esp + 0xc]
and ecx, 0x80000000
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0
fild qword [esp + 0xc]
mov eax, edx
mov ecx, edx
and eax, 0x7fffffff
fchs
mov dword [esp + 0x10], eax
faddp st(1)
mov dword [esp + 0xc], ebx
and ecx, 0x80000000
xor ebx, ebx
fmul qword [0x4fae50]
movzx eax, word [esp + 0x18]
fild qword [esp + 0xc]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ebx
or eax, 0xc00
fild qword [esp + 0xc]
mov dword [esp + 0xc], eax
fchs
faddp st(1)
fdivp st(1)
fadd qword [0x4fae30]
fldcw word [esp + 0xc]
fistp qword [esp + 0xc]
mov eax, dword [esp + 0xc]
mov dword [ebp], eax
fldcw word [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x40]
sub eax, dword [esi + 0x58]
fild dword [esi + 0x40]
test ecx, ecx
jge 0x4767d7
fadd qword [0x4fae18]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
test eax, eax
jge 0x4767e9
fadd qword [0x4fae18]
fdiv qword [0x4fae10]
mov edx, dword [esp + 0x1c]
fdivp st(1)
fst qword [edx]
mov ecx, dword [esi + 0x30]
sub ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x34]
sbb eax, dword [esi + 0x3c]
mov dword [esp + 0xc], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x10], eax
fild qword [esp + 0xc]
and ecx, 0x80000000
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ebx
fild qword [esp + 0xc]
fchs
faddp st(1)
fdivrp st(1)
call fcn.004d1a80
mov edx, dword [esp + 0x20]
push edi
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
mov al, 1
pop ebp
add esp, 8
ret 0xc
Function at 0x478ce0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4d7908
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
mov eax, dword [0x51856c]
mov edx, dword [eax + 0xc]
mov ecx, 0x51856c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x28], eax
mov ecx, ebp
mov dword [esp + 0x18], eax
call fcn.0043a610
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
mov edx, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
lea ebx, [esp + 0x24]
call fcn.00479e40
lea edi, [esp + 0x14]
mov byte [esp + 0x28], 1
call fcn.004082a0
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x478d7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
mov eax, dword [edi - 0xc]
test eax, eax
je 0x478e5b
cmp dword [esp + 0x18], 0
jle 0x478e5b
test eax, eax
je 0x478dba
mov ecx, dword [ebp + 4]
push ecx
push edi
mov ecx, ebp
call fcn.0043aa20
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x478db4
mov dword [ecx], eax
jmp 0x478db7
mov dword [ebp], eax
mov dword [ebp + 4], eax
mov edx, dword [esp + 0x34]
mov eax, dword [edx]
mov ecx, dword [esp + 0x30]
push eax
lea eax, [esp + 0x20]
push eax
push ecx
lea ebx, [esp + 0x24]
call fcn.00479e40
mov byte [esp + 0x28], 2
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x478e2b
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x478e1a
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x478e1a
call fcn.00408230
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x478e11
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebx + 0x10]
mov dword [esp + 0x14], edi
jmp 0x478e2b
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00405e30
mov edi, dword [esp + 0x14]
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x478e50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi - 0xc]
test eax, eax
jne 0x478d8e
lea eax, [edi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x478e7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret