joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452450
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521220
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [esi], vtable.winhttp::download_manager.0
mov dword [esi + 0xc], edi
mov dword [ebp - 4], edi
lea ebx, [esi + 0x10]
mov dword [ebp - 0x14], ebx
mov dword [ebx], edi
mov byte [ebp - 4], 2
lea eax, [esi + 0x14]
mov dword [ebp - 0x14], eax
mov dword [eax], edi
mov byte [ebp - 4], 4
lea eax, [esi + 0x18]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
push edi
mov dword [eax + 0x10], ecx
push eax
mov dword [eax + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x4524e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x4524db
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
jge 0x4524e3
push eax
call fcn.00406170
mov byte [ebp - 4], 5
fld dword [0x531f28]
lea ecx, [esi + 0x30]
fstp dword [ecx + 0xc]
mov dword [ecx], edi
fld dword [0x531f24]
mov dword [ecx + 4], edi
fstp dword [ecx + 0x10]
mov dword [ecx + 8], 0x11
fld dword [0x531f20]
mov dword [ecx + 0x18], 0xffffffff
fstp dword [ecx + 0x14]
mov dword [ecx + 0x1c], edi
mov dword [ecx + 0x20], edi
mov dword [ecx + 0x24], 0xa
mov dword [ecx + 0x28], edi
mov dword [ecx + 0x2c], edi
call fcn.0040b940
mov byte [ebp - 4], 6
fld dword [0x531f28]
lea ecx, [esi + 0x60]
fstp dword [ecx + 0xc]
mov dword [ecx], edi
fld dword [0x531f24]
mov dword [ecx + 4], edi
fstp dword [ecx + 0x10]
mov dword [ecx + 8], 0x11
fld dword [0x531f20]
mov dword [ecx + 0x18], 0xffffffff
fstp dword [ecx + 0x14]
mov dword [ecx + 0x1c], edi
mov dword [ecx + 0x20], edi
mov dword [ecx + 0x24], 0xa
mov dword [ecx + 0x28], edi
mov dword [ecx + 0x2c], edi
call fcn.0040b940
mov byte [ebp - 4], 7
fld dword [0x531f28]
lea ecx, [esi + 0x90]
fstp dword [ecx + 0xc]
mov dword [ecx], edi
fld dword [0x531f24]
mov dword [ecx + 4], edi
fstp dword [ecx + 0x10]
mov dword [ecx + 8], 0x11
fld dword [0x531f20]
mov dword [ecx + 0x18], 0xffffffff
fstp dword [ecx + 0x14]
mov dword [ecx + 0x1c], edi
mov dword [ecx + 0x20], edi
mov dword [ecx + 0x24], 0xa
mov dword [ecx + 0x28], edi
mov dword [ecx + 0x2c], edi
call fcn.0040b940
mov byte [ebp - 4], 8
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
push eax
push eax
push edi
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [esi + 0x14], eax
mov dword [ebp - 4], 0xffffffff
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 8
Function at 0x452d20
Capabilities:
Create directory
Encode data using xor
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521492
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x587978]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0x537284
push 0x138b
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.00406d80
add eax, 0x10
add esp, 4
mov dword [ebp - 0x98], eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x98]
call fcn.00411720
mov eax, dword [ebp - 0x98]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test esi, esi
je 0x452e76
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x452e76
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x452e76
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x452e76
push esi
lea ecx, [ebp - 0x94]
call fcn.00451690
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x94]
push esi
push edi
push ecx
call fcn.004eb310
mov eax, dword [ebx]
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dl, byte [edi + 0x36]
mov ebx, eax
mov eax, 0x37
cmp esi, eax
jbe 0x452e34
mov ecx, dword [ebp - 0x94]
xor byte [ecx + eax], dl
inc eax
cmp eax, esi
jb 0x452e26
mov eax, dword [ebp - 0x94]
push 0
lea edx, [ebp - 0x9c]
push edx
add esi, 0xffffffc9
push esi
add eax, 0x37
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x90]
cmp dword [ebp - 0x94], ecx
je 0x452e76
lea ecx, [ebp - 0x94]
call fcn.0044fc70
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x98]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x452e9f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004eb16b
mov esp, ebp
pop ebp
ret 4
Function at 0x4559a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521658
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], 0
mov eax, dword [0x587944]
mov edx, dword [eax + 0xc]
mov ecx, 0x587944
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, al
cmp eax, 0x600
jb 0x455a46
lea eax, [ebp - 0x14]
push eax
call fcn.00453bd0
add esp, 4
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x10]
call fcn.00411c00
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455a37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push 0x531fd4
lea ecx, [ebp - 0x10]
call fcn.0040f910
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0040f910
mov edi, dword [ebp - 0x10]
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x455a84
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x455aa7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x45b560
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 0
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x45b58e
mov ecx, esi
call fcn.00406c60
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
jns 0x45b59a
push 0x80070057
call fcn.00406170
mov eax, dword [esi]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, edi
or ecx, edx
jge 0x45b5b5
push edi
mov ecx, esi
call fcn.00406d20
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x45b5da
push ecx
push eax
call fcn.004ebabf
add esp, 8
test eax, eax
js 0x45b590
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x45b590
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
pop edi
xor ecx, ecx
mov ebx, 1
mov word [edx + eax*2], cx
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4

Function at 0x463050
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5237c8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0xc]
push edi
mov dword [ebp - 0x14], vtable.winhttp::file_receive_buffer_mt::locker.0
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
lea eax, [ebp + 0xc]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4630b5
call fcn.0040b2d0
mov dword [ebp - 4], 0xffffffff
push edi
mov dword [ebp - 0x14], vtable.winhttp::file_receive_buffer_mt::locker.0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x463420
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5238bf
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea eax, [esi + 4]
mov dword [esi], vtable.winhttp::partial_downloader.0
mov dword [ebp - 0x14], eax
mov dword [eax], vtable.winhttp::receive_buffer.0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [eax], vtable.winhttp::memory_receive_buffer.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [ebp - 4], 2
mov dword [esi + 0x18], ebx
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], 0xa
mov eax, dword [0x587944]
mov edx, dword [eax + 0xc]
lea edi, [esi + 0x2c]
mov ecx, 0x587944
mov dword [ebp - 0x14], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 5
mov eax, dword [0x587944]
mov edx, dword [eax + 0xc]
lea edi, [esi + 0x30]
mov ecx, 0x587944
mov dword [ebp - 0x14], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 7
mov dword [esi + 0x34], ebx
mov byte [esi + 0x38], bl
mov dword [ebp - 4], 0xffffffff
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
Function at 0x464620
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523ac8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00409590
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, 0x589030
call fcn.00452ad0
mov ebx, 1
mov byte [ebp - 4], bl
lea edx, [ebp - 0x10]
push edx
call fcn.004639b0
mov byte [ebp - 4], 2
push 0x3c
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.004eb200
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
add esp, 0x10
cmp byte [ebp + 0xc], 0
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], ebx
je 0x4646b6
mov dword [ebp - 0x50], 0x40
call fcn.00483c70
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x464753
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4646f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46471a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x464740
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessId]
test esi, esi
je 0x464777
cmp byte [ebp + 0xc], 0
je 0x464777
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x464799
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4647bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4647e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x464e00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push eax
lea ecx, [esi + 0x2c]
call fcn.00411c00
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp + 0x1c]
push ecx
lea ecx, [esi + 0x30]
mov dword [esi + 0x24], edx
mov dword [esi + 0x1c], eax
call fcn.00411c00
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x20]
push 0
push 0
push esi
push 0x464de0
push 0
push 0
mov dword [esi + 0x28], edx
mov dword [esi + 0x34], eax
call fcn.004ec8e8
add esp, 0x18
mov dword [esi + 0x18], eax
pop esi
pop ebp
ret 0x1c
Function at 0x4663e0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
jne 0x46640c
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
push esi
push 0x4663c0
push 0
push 0
call fcn.004ec8e8
add esp, 0x18
mov dword [esi + 0xc], eax
pop esi
ret

Function at 0x4667b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52409c
mov eax, dword fs:[0]
push eax
sub esp, 0x810
mov eax, dword [0x587978]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
push method.std::tr1::_Ref_count_base.virtual_12
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push pe_nt_image_headers32
lea eax, [ebp - 0x810]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x46689e
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x814]
call fcn.00409590
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x818]
push edx
call fcn.004640f0
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x814]
call fcn.0040f910
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x818]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x466868
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x814]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x814]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46689e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea ecx, [ebp - 0x81c]
push ecx
mov dword [ebp - 0x81c], 8
mov dword [ebp - 0x818], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov edx, dword [ebp + 8]
push ebx
push edx
push ebx
mov ecx, 0x589030
call fcn.00462e10
call fcn.004412a0
xor eax, eax
cmp byte [0x589090], bl
push esi
setne al
inc eax
mov dword [0x584d38], eax
call fcn.00466410
add esp, 4
mov ecx, 0x589030
mov edi, eax
call fcn.004637d0
mov esi, dword [0x589064]
cmp esi, ebx
je 0x46693e
mov eax, dword [esi]
cmp eax, ebx
je 0x46691f
push eax
call fcn.004eb17a
add esp, 4
mov dword [esi], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x466932
push eax
call fcn.004eb17a
add esp, 4
mov dword [esi + 4], ebx
push esi
mov dword [esi + 8], ebx
call fcn.004eac03
add esp, 4
mov ecx, 0x589030
call fcn.00462d20
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004eb16b
mov esp, ebp
pop ebp
ret 8
Function at 0x4677e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52b7f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov al, byte [ebp + 8]
lea esi, [ecx + 0x5c]
mov byte [ecx + 0x8c], al
mov ecx, esi
call fcn.0040e120
lea edi, [esi + 0x10]
mov dword [ebp - 0x14], edi
push edi
mov byte [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x10], 1
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_ResetEvent]
push ecx
call ebx
mov edx, dword [esi + 4]
push edx
call ebx
push 0
push 0
push esi
push 0x40bc40
push 0
push 0
call fcn.004ec8e8
add esp, 0x18
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x10], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46a050
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524dc1
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov eax, dword [0x587944]
mov edx, dword [eax + 0xc]
mov ecx, 0x587944
call edx
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], edi
mov eax, dword [esi]
mov ecx, 1
mov dword [ebp - 0x10], ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x46a0be
push 0x104
mov ecx, esi
call fcn.00406d20
mov eax, dword [esi]
cmp dword [eax - 8], 0x104
jge 0x46a0d3
push 0x80070057
call fcn.00406170
push edi
push edi
mov dword [eax - 0xc], 0x104
mov ecx, dword [esi]
push eax
xor edx, edx
push edi
mov word [ecx + 0x208], dx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
cmp eax, edi
jne 0x46a0fc
xor eax, eax
jmp 0x46a10a
push ecx
push eax
call fcn.004ebabf
add esp, 8
cmp eax, edi
jl 0x46a0c9
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x46a0c9
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov ecx, dword [0x589078]
lea eax, [ebp - 0x18]
push eax
call fcn.00441cb0
mov edi, eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x14]
push ecx
call fcn.00469890
mov byte [ebp - 4], 3
mov edx, dword [edi]
mov eax, dword [eax]
push edx
push eax
push esi
call fcn.00411c70
add esp, 0x10
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46a173
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46a199
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x46a460
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x1e
lea eax, [ebp - 0x34]
mov ebx, 1
mov byte [eax], 0
add eax, ebx
sub ecx, ebx
jne 0x46a495
mov eax, dword [0x587944]
mov edx, dword [eax + 0xc]
mov ecx, 0x587944
mov dword [ebp - 0x30], 3
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], ebx
mov eax, dword [esi - 8]
mov ecx, ebx
sub ecx, dword [esi - 4]
mov edi, 0x104
sub eax, edi
or eax, ecx
jge 0x46a4dc
push edi
lea ecx, [ebp - 0x10]
call fcn.00406d20
mov esi, dword [ebp - 0x10]
cmp dword [esi - 8], edi
jge 0x46a4eb
push 0x80070057
call fcn.00406170
push esi
xor eax, eax
mov dword [esi - 0xc], edi
push edi
mov word [esi + 0x208], ax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004ebabf
xor edi, edi
add esp, 8
cmp eax, edi
jl 0x46a4e1
cmp eax, dword [esi - 8]
jg 0x46a4e1
lea edx, [ebp - 0x14]
xor ecx, ecx
mov dword [esi - 0xc], eax
push edx
mov word [esi + eax*2], cx
call fcn.004550c0
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0040f910
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46a561
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x10]
mov esi, dword [sym.imp.SHELL32.dll_SHFileOperationW]
lea edx, [ebp - 0x34]
mov ecx, 0x414
push edx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 0x53bbd0
mov word [ebp - 0x24], cx
mov dword [ebp - 0x22], edi
mov dword [ebp - 0x1e], edi
mov dword [ebp - 0x1a], 0x530e54
call esi
test eax, eax
je 0x46a5b1
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
push 0x1f4
call edi
lea eax, [ebp - 0x34]
push eax
call esi
test eax, eax
jne 0x46a5a0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46a5d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call 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