joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406bfb
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
xor ebx, ebx
push edi
push ebx
mov edi, 0x80004005
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x406d57
push 0x401310
push ebx
call fcn.0040b5de
cmp dword [ebp + 8], 3
jne 0x406d4c
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00406b9d
mov esi, eax
cmp esi, ebx
je 0x406d4c
mov eax, dword [ebp + 0xc]
push 0x104
push dword [eax + 4]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x114]
push eax
push ebx
lea eax, [ebp - 0x218]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x406d4c
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x114]
test eax, eax
jne 0x406cab
and dword [ebp + 8], 0
jmp 0x406ce3
lea eax, [ebp - 0x114]
push eax
call edi
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00406fa0
mov eax, esp
xor ecx, ecx
push esi
mov dword [ebp + 8], eax
mov word [eax], cx
push eax
lea eax, [ebp - 0x114]
push 0xffffffffffffffff
push eax
push ecx
push ecx
call ebx
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
test eax, eax
mov dword [ebp - 4], eax
jne 0x406cf4
xor edi, edi
jmp 0x406d19
push eax
call edi
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00406fa0
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push dword [ebp - 4]
xor eax, eax
mov word [edi], ax
push eax
push eax
call ebx
push dword [ebp + 8]
push edi
call fcn.00406a67
mov edi, eax
test edi, edi
jl 0x406d3f
mov eax, dword [ebp + 0xc]
push dword [eax + 8]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x406d4c
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.0040b695
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
lea esp, [ebp - 0x224]
test edi, edi
setge al
pop edi
pop esi
dec eax
pop ebx
leave
ret

Function at 0x4088a3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0x10], esi
jbe 0x4088d7
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
and ecx, 0xff
movzx eax, byte [esi + eax]
xor eax, ecx
push eax
call fcn.00408887
mov ecx, dword [ebp + 8]
shr ecx, 8
xor eax, ecx
inc esi
cmp esi, dword [ebp + 0x10]
mov dword [ebp + 8], eax
jb 0x4088ae
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret 0xc
Function at 0x40a2c8
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
mov dword [ebp - 4], 0x80004005
push dword [ebp + 8]
call fcn.0040a184
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x40a3b5
mov ecx, dword [ebp - 0x10]
xor esi, esi
xor ebx, ebx
push esi
neg ecx
sbb ecx, ecx
push esi
and ecx, 0xfffffffe
push esi
add ecx, 4
push ecx
push esi
push eax
call fcn.0040cf59
mov edi, eax
cmp edi, esi
mov dword [ebp - 8], edi
je 0x40a366
push esi
push esi
push esi
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
cmp ebx, esi
je 0x40a366
push 0x24
call fcn.0040730c
cmp eax, esi
pop ecx
je 0x40a346
push dword [ebp + 8]
mov ecx, eax
push ebx
push edi
push dword [ebp - 0xc]
call fcn.0040a3e4
mov edi, eax
jmp 0x40a348
xor edi, edi
cmp edi, esi
je 0x40a366
cmp dword [edi + 0x18], esi
je 0x40a3ad
mov ecx, edi
call fcn.0040a53e
cmp eax, esi
mov dword [ebp - 4], eax
jl 0x40a3ad
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
jmp 0x40a3bd
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push 1
push 0x4000000
push 0x3031756a
call fcn.0040c831
add esp, 0x10
cmp ebx, esi
je 0x40a396
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 8], esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40a3a6
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
jmp 0x40a3bd
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x40a3bd
call fcn.0040a3c7
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40a53e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
push 0
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xc
mov ebx, 0x80004005
sbb esi, esi
mov dword [ebp - 4], eax
and esi, ebx
jl 0x40a5af
mov ecx, edi
call fcn.0040a5da
mov esi, eax
test esi, esi
jl 0x40a5af
mov ecx, dword [edi + 0x20]
mov edx, dword [ecx + 8]
mov eax, edx
imul eax, eax, 0x44
add eax, 0xc
cmp dword [ebp - 4], eax
jb 0x40a597
test edx, edx
jbe 0x40a594
add ecx, 0x44
add eax, dword [ecx]
add ecx, 0x44
dec edx
jne 0x40a58c
cmp dword [ebp - 4], eax
sbb esi, esi
and esi, ebx
jl 0x40a5af
call fcn.00409e4c
test eax, eax
je 0x40a5d3
mov ecx, edi
call fcn.0040a671
jmp 0x40a5d3
add edi, 0x18
lea ecx, [ebp - 0x10]
push edi
call fcn.0040cf6d
lea eax, [ebp - 0x10]
push eax
push 1
push 0x4000000
push 0x3031756e
call fcn.0040c831
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404150
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4070b0]
jne 0x40415a
repz ret
jmp fcn.00404468
Function at 0x402a80
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebx
push esi
push 0xf003f
push 0
push 0
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x402acb
push 1
push str.2345PackageStatService
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x402ab4
push eax
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test bl, bl
je 0x402ad1
call fcn.00402c20
pop esi
pop ebx
jmp fcn.00402ae0
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
jmp fcn.00402ae0

Function at 0x402ae0
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4df5dc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x402b20
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.00402c20
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d894
mov esp, ebp
pop ebp
ret
push esi
push 0x24
push str.2345PackageStatService
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x402b57
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.00402c20
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d894
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
xorps xmm0, xmm0
push 1
push esi
movdqu xmmword [ebp - 0x24], xmm0
movdqu xmmword [ebp - 0x14], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x402b9d
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
call fcn.00402c20
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d894
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [ebp - 0x24], 1
mov dword [ebp - 0x2c], eax
je 0x402bef
nop
push dword [ebp - 0x10]
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x402bef
cmp dword [ebp - 0x24], 1
je 0x402bef
call ebx
sub eax, dword [ebp - 0x2c]
cmp eax, 0xbb8
ja 0x402bef
cmp dword [ebp - 0x24], 1
jne 0x402bb0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
call fcn.00402c20
mov ecx, dword [ebp - 4]
pop ebx
pop esi
xor ecx, ebp
pop edi
call fcn.0048d894
mov esp, ebp
pop ebp
ret
Function at 0x402c80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4df5dc]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.00492dc0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402cea
mov eax, dword [ebp - 0x114]
cmp eax, 5
jbe 0x402cdf
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d894
mov esp, ebp
pop ebp
ret
jne 0x402cea
cmp dword [ebp - 0x110], 0
ja 0x402ccf
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.0048d894
mov esp, ebp
pop ebp
ret

Function at 0x402d40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4aca49
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4df5dc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
push 0x18
call fcn.0048e0a6
add esp, 4
mov dword [edi + 0x20], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x38], 0
lea esi, [edi + 0x24]
mov dword [esi], 0
xor eax, eax
mov byte [esi + 4], 0
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], 0
mov dword [esp + 0x14], esi
mov word [esi + 8], ax
mov byte [esp + 0x38], 2
lea ecx, [esp + 0x18]
push eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 0x10], 0xffffffff
mov dword [edi + 0x14], 0xffffffff
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push 0x4c4fb4
mov byte [edi + 8], al
mov dword [edi + 0x18], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x1c], eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], eax
mov word [esp + 0x20], ax
call fcn.004024f0
mov byte [esp + 0x38], 3
mov eax, dword [esi]
test eax, eax
je 0x402e0a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x28], 0
mov dword [esi], 0
jne 0x402e1b
xor eax, eax
jmp 0x402e29
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
lea ecx, [esi + 8]
sete al
mov byte [esi + 4], al
lea eax, [esp + 0x18]
cmp ecx, eax
je 0x402e5e
push 0xffffffffffffffff
push 0
push eax
call fcn.00402030
mov byte [esp + 0x38], 2
cmp dword [esp + 0x2c], 8
jb 0x402e76
push dword [esp + 0x18]
call fcn.0048e056
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
mov dword [esp + 0x38], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
Function at 0x4032f0
Capabilities:
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x4acb58
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4df5dc]
xor eax, esp
mov dword [esp + 4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4df5dc]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 8]
test edi, edi
jne 0x403332
xor al, al
jmp 0x4033f7
add edi, 0x20
mov dword [esp + 0x14], edi
je 0x403348
mov eax, dword [edi]
test eax, eax
je 0x403348
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x24], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x4033d2
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea ebx, [esi + 4]
push 1
push ebx
call ebp
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x402eb0
push 0
push 0
call fcn.0048e278
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
je 0x4033bb
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x24]
test eax, eax
je 0x4033a6
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x4033bb
mov bl, 1
jmp 0x4033d4
push 0xffffffffffffffff
push ebx
call ebp
dec eax
jne 0x4033ca
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.00403060
xor bl, bl
mov dword [esp + 0x24], 0xffffffff
test edi, edi
je 0x4033f5
mov eax, dword [edi]
test eax, eax
je 0x4033ed
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x14], 0
mov al, bl
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0048d894
add esp, 0x14
ret
Function at 0x408480
Capabilities:
Check os version

Disassembly:
sub esp, 0x10
push esi
push 0x11c
mov esi, ecx
push 0
push esi
call fcn.00492dc0
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x408511
mov eax, dword [esi + 4]
cmp eax, 6
ja 0x4084b7
jne 0x40850a
cmp dword [esi + 8], 2
jb 0x40850a
lea eax, [esp + 0x10]
mov dword [esp + 4], 0
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
lea edx, [esp + 0x10]
mov dword [esp + 0x14], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.00408910
add esp, 8
test al, al
je 0x40850a
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
mov eax, dword [esp + 8]
mov dword [esi + 8], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0xc], eax
mov al, 1
pop esi
add esp, 0x10
ret
xor al, al
pop esi
add esp, 0x10
ret

Function at 0x408910
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x28
mov eax, dword [0x4df5dc]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
push ebx
push ebp
mov ebp, dword [esp + 0x34]
mov ebx, edx
push esi
push edi
push str.kernel32.dll
mov edi, ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x4089da
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4089da
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4089da
movdqu xmm0, xmmword [str.VS_VERSION_INFO]
push eax
movdqu xmmword [esp + 0x18], xmm0
movdqu xmm0, xmmword [0x4c55d8]
movdqu xmmword [esp + 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4089da
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4089da
cmp word [esi + 2], ax
jbe 0x4089da
movzx eax, word [esi + 0x32]
mov ecx, dword [esp + 0x10]
mov dword [edi], eax
movzx eax, word [esi + 0x30]
mov dword [ebx], eax
movzx eax, word [esi + 0x36]
mov dword [ebp], eax
movzx eax, word [esi + 0x34]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov al, 1
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0048d894
add esp, 0x28
ret
mov ecx, dword [esp + 0x34]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048d894
add esp, 0x28
ret
Function at 0x409280
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ad889
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4df5dc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push esi
mov word [edi], ax
call fcn.00402030
mov dword [esp + 0x18], 0
lea ecx, [edi + 0x18]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x18]
push eax
call fcn.00402030
mov byte [esp + 0x18], 1
lea ecx, [edi + 0x30]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x30]
push eax
call fcn.00402030
mov byte [esp + 0x18], 2
lea ecx, [edi + 0x48]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x48]
push eax
call fcn.00402030
mov byte [esp + 0x18], 3
mov eax, dword [esi + 0x60]
mov dword [edi + 0x60], eax
mov eax, dword [esi + 0x64]
mov dword [edi + 0x64], eax
mov eax, dword [esi + 0x68]
mov dword [edi + 0x68], eax
mov eax, dword [esi + 0x70]
mov dword [edi + 0x70], eax
mov eax, dword [esi + 0x74]
mov dword [edi + 0x74], eax
mov dword [esp + 0x18], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x40a840
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4adb77
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4df5dc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push esi
mov word [edi], ax
call fcn.00402030
mov dword [esp + 0x18], 0
lea ecx, [edi + 0x18]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x18]
push eax
call fcn.00402030
mov byte [esp + 0x18], 1
lea ecx, [edi + 0x30]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x30]
push eax
call fcn.00402030
mov byte [esp + 0x18], 2
lea ecx, [edi + 0x48]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x48]
push eax
call fcn.00402030
mov byte [esp + 0x18], 3
lea ecx, [edi + 0x60]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x60]
push eax
call fcn.00402030
mov byte [esp + 0x18], 4
lea ecx, [edi + 0x78]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x78]
push eax
call fcn.00402030
mov byte [esp + 0x18], 5
lea ecx, [edi + 0x90]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x90]
push eax
call fcn.00402030
mov byte [esp + 0x18], 6
lea ecx, [edi + 0xa8]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0xa8]
push eax
call fcn.00402030
mov byte [esp + 0x18], 7
lea ecx, [edi + 0xc0]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0xc0]
push eax
call fcn.00402030
mov byte [esp + 0x18], 8
lea ecx, [edi + 0xd8]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0xd8]
push eax
call fcn.00402030
mov dword [esp + 0x18], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x40be00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ade78
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4df5dc]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x4df5dc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xorps xmm0, xmm0
mov esi, dword [esp + 0x3c]
movdqu xmmword [esp + 0xc], xmm0
mov byte [esp + 0x14], 0
and dword [esp + 0x14], 0xfffffeff
movq qword [esp + 0x1c], xmm0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], 6
lea edx, [esp + 0xc]
push edx
push eax
call fcn.0040bbd0
test al, al
jne 0x40be88
mov byte [esp + 0xb], al
jmp 0x40be98
lea ecx, [esp + 0xc]
call fcn.004227f0
mov dword [esi], eax
mov byte [esp + 0xb], 1
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.004222f0
mov al, byte [esp + 0xb]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0048d894
add esp, 0x2c
ret 8

Function at 0x40bed0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ade78
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4df5dc]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x4df5dc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xorps xmm0, xmm0
mov esi, dword [esp + 0x3c]
movdqu xmmword [esp + 0xc], xmm0
mov byte [esp + 0x14], 0
and dword [esp + 0x14], 0xfffffeff
movq qword [esp + 0x1c], xmm0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], 6
lea edx, [esp + 0xc]
push edx
push eax
call fcn.0040bbd0
test al, al
jne 0x40bf58
mov byte [esp + 0xb], al
jmp 0x40bf6b
lea ecx, [esp + 0xc]
call fcn.00422c10
mov dword [esi], eax
mov dword [esi + 4], edx
mov byte [esp + 0xb], 1
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.004222f0
mov al, byte [esp + 0xb]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0048d894
add esp, 0x2c
ret 8
Function at 0x40c1c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4adf70
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4df5dc]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov eax, dword [0x4df5dc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x30], 1
lea ecx, [esp + 0xc]
call fcn.0040f270
mov byte [esp + 0x30], 2
cmp dword [esp + 0x1c], 0
je 0x40c22b
lea ecx, [esp + 0xc]
call fcn.004343b0
test al, al
jne 0x40c22b
lea ecx, [esp + 0xc]
call fcn.00442ff0
test al, al
jne 0x40c22b
xor bl, bl
jmp 0x40c29e
call fcn.0040c110
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [eax]
call fcn.00443da0
call fcn.0040c110
mov esi, dword [eax]
lea eax, [esp + 0xb0]
add esi, 0xb0
cmp esi, eax
je 0x40c260
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00402030
mov eax, dword [esp + 0xc8]
mov bl, 1
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0xcc]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0xd0]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0xd4]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0xd8]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0xdc]
mov dword [esi + 0x2c], eax
mov byte [esp + 0x30], 1
cmp dword [esp + 0x20], 8
jb 0x40c2b6
push dword [esp + 0xc]
call fcn.0048e056
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov byte [esp + 0x30], al
lea ecx, [esp + 0x38]
call fcn.00408df0
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0xc4], 8
jb 0x40c2fb
push dword [esp + 0xb0]
call fcn.0048e056
add esp, 4
xor eax, eax
mov dword [esp + 0xc4], 7
mov word [esp + 0xb0], ax
mov al, bl
mov dword [esp + 0xc0], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0048d894
add esp, 0x28
ret 0xa8