joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485c84
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004055f8
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x485dec
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.00469078
mov esi, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, esi
call fcn.00469098
mov ebx, eax
jmp 0x485dbe
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004053e8
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409e78
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.004090b8
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.004090b8
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.004055a0
je 0x485d9e
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004053e8
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.004090b8
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.004090b8
mov edx, dword [ebp - 0x148]
pop eax
call fcn.004055a0
jne 0x485db3
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edx, edi
mov eax, esi
call fcn.004690b8
mov ebx, eax
test ebx, ebx
jne 0x485cff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485df3
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.0040519c
lea eax, [ebp - 4]
call fcn.00405178
ret

Function at 0x486188
Capabilities:
Log keystrokes via application hook

Disassembly:
xor eax, eax
mov dword [0x495e18], eax
push 0x4861c8
call sub.user32.dll_RegisterWindowMessageA
mov dword [0x495e18], eax
mov eax, dword [0x48fbcc]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [0x495e1c], eax
push 0
mov eax, dword [0x4927f4]
push eax
push 0x486140
push 0xd
call sub.user32.dll_SetWindowsHookExA
mov dword [0x495e20], eax
ret
Function at 0x486368
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004055f8
xor eax, eax
push ebp
push 0x486442
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, 0x486458
mov edx, dword [ebp - 4]
call fcn.00405490
mov eax, dword [ebp - 8]
call fcn.00405608
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
ja case.0x4863b2.0
jmp dword [eax*4 + 0x4863b9]
mov eax, ebx
mov edx, 0x486464
call fcn.004051cc
jmp 0x486427
mov eax, ebx
mov edx, 0x486478
call fcn.004051cc
jmp 0x486427
mov eax, ebx
mov edx, 0x486488
call fcn.004051cc
jmp 0x486427
mov eax, ebx
mov edx, 0x48649c
call fcn.004051cc
jmp 0x486427
mov eax, ebx
mov edx, 0x4864ac
call fcn.004051cc
jmp 0x486427
mov eax, ebx
mov edx, 0x4864c0
call fcn.004051cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486449
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040519c
ret

Function at 0x486610
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004055f8
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x486782
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.00469078
mov esi, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, esi
call fcn.00469098
mov ebx, eax
jmp 0x486754
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004053e8
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409e78
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.004090b8
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.004090b8
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.004055a0
je 0x48672a
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004053e8
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.004090b8
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.004090b8
mov edx, dword [ebp - 0x148]
pop eax
call fcn.004055a0
jne 0x486749
call sub.kernel32.dll_GetCurrentProcessId
cmp eax, dword [edi + 8]
je 0x486749
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edx, edi
mov eax, esi
call fcn.004690b8
mov ebx, eax
test ebx, ebx
jne 0x48668b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486789
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.0040519c
lea eax, [ebp - 4]
call fcn.00405178
ret
Function at 0x4874ec
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffff54
lea eax, [esp + 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x48759f
mov dword [esp + 8], 0x94
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x48759f
mov eax, dword [esp + 0x18]
dec eax
je 0x487593
dec eax
jne 0x48759f
lea eax, [esp + 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
lea eax, [esp + 0xa0]
push eax
push 0x4875a8
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
je 0x487585
mov dword [esp + 0xa8], 2
mov dword [esp + 0x9c], 1
push esp
push 0
push 0
lea eax, [esp + 0xa8]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0xffff
push 2
call sub.user32.dll_ExitWindowsEx
jmp 0x48759f
push 0xffff
push 2
call sub.user32.dll_ExitWindowsEx
add esp, 0xac
ret

Function at 0x48b2d8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1d4], edx
mov dword [ebp - 0x1d8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004055f8
xor eax, eax
push ebp
push 0x48b413
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x48b3e3
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.00405608
mov ebx, eax
push ebx
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 4]
call fcn.00409c54
test al, al
jne 0x48b353
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ebx
call sub.kernel32.dll_CreateFileA_1
push eax
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.00403624
lea eax, [ebp - 0x1d0]
call fcn.004033c0
call fcn.00402ffc
push dword [0x495ca8]
push 0x48b42c
push dword [0x495cac]
push 0x48b42c
push dword [0x495cb0]
lea eax, [ebp - 0x1d8]
mov edx, 5
call fcn.0040550c
mov eax, dword [ebp - 0x1d8]
lea edx, [ebp - 0x1d4]
call fcn.00486790
mov edx, dword [ebp - 0x1d4]
lea eax, [ebp - 0x1d0]
call fcn.00405928
call fcn.00403ce0
call fcn.00402ffc
lea eax, [ebp - 0x1d0]
call fcn.004036ec
call fcn.00402ffc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48b3ed
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b41a
lea eax, [ebp - 0x1d8]
mov edx, 2
call fcn.0040519c
lea eax, [ebp - 4]
call fcn.00405178
ret
Function at 0x4010f0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x406fb8
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
mov ecx, esi
call fcn.00406320
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x1c]
mov dword [esi], 0x408350
mov dword [esi + 0x9c], edx
mov dword [esp + 0xc], 0xffffffff
call fcn.0040694c
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x20
Function at 0x4034a0
Capabilities:
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x407388
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_1
push str.inquire_ip
push 0xcdb5
push 0xcdb4
lea eax, [esp + 0x10]
push str._d_r_n_d_r_n_s_r_n
push eax
mov dword [esp + 0x34], 0
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 0x94]
add esp, 0x14
cmp eax, 0xffffffff
je 0x403540
mov eax, dword [esi + 0xa0]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0xcdb5
mov dword [esp + 0x10], eax
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xa], ax
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push 0x10
mov ecx, dword [eax - 8]
push edx
inc ecx
push 0
push ecx
push eax
mov eax, dword [esi + 0x94]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
lea ecx, [esp + 4]
mov dword [esp + 0x20], 0xffffffff
call fcn.0040694c
mov ecx, dword [esp + 0x18]
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x405a20
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x407848
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
mov ecx, esi
call fcn.00406320
lea ecx, [esp + 0x1c]
mov dword [esi], 0x408aa0
mov dword [esp + 0xc], 0xffffffff
call fcn.0040694c
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x1c
Function at 0x406320
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x407989
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CWinThread::CWinThread
lea edi, [esi + 0x74]
mov byte [esp + 0x18], 1
mov ecx, edi
call sub.MFC42.DLL_CString::CString_1
lea ebp, [esi + 0x94]
mov byte [esp + 0x18], 2
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x28]
mov dword [esi + 0x70], ecx
push edx
mov ecx, edi
mov byte [esp + 0x1c], 3
mov dword [esi], 0x408b60
mov dword [esi + 0x6c], eax
mov dword [esi + 0x88], 0xffffffff
call fcn.00406958
mov ax, word [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov word [esi + 0x78], ax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x7c], ecx
push 0x40a5b4
mov ecx, ebp
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], eax
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x98], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.0040694c
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x1c
Function at 0x40af19
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x40c779
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10008320
push 0x10007376
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [0x1000803c]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x40c814
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x40c814
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
mov esi, dword [ebp + 0xc]
cmp esi, edi
jb 0x40c814
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x40c814
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d289
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10008330
push 0x10007376
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [0x1000803c]
test eax, eax
je 0x40d313
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x34]
cmp word [eax], 0x5a4d
jne 0x40d30c
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [ebp - 0x3c], ecx
cmp dword [ecx], 0x4550
jne 0x40d30c
cmp word [ecx + 0x14], 0
mov dword [ebp - 4], 0xffffffff
je 0x40d313
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d469
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
push edi
mov eax, dword [ecx + 0x3c]
mov edi, dword [esp + 0x14]
add eax, ecx
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ecx + eax + 0x24]
lea ecx, [ecx + eax + 0x18]
cmp edi, edx
jae 0x40d491
mov eax, edi
pop edi
pop esi
pop ebx
ret
xor edx, edx
xor esi, esi
mov dx, word [eax + 6]
test edx, edx
jbe 0x40d4b5
mov eax, dword [ecx + 0xc]
cmp edi, eax
jb 0x40d4ad
mov ebx, dword [ecx + 8]
add ebx, eax
cmp edi, ebx
jb 0x40d4bc
add ecx, 0x28
inc esi
cmp esi, edx
jb 0x40d49d
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0xc]
sub eax, edx
add eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x408ad0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x408b02
jl 0x408af5
test ecx, ecx
jne 0x408b02
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x408bc2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.0040c4e0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x408b6e
jg 0x408b2d
test esi, esi
je 0x408b6e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x408b45
mov eax, dword [esp + 0x10]
jl 0x408b3f
cmp eax, esi
jae 0x408b45
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.004513f0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x408b8f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x408bab
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x408b14
jl 0x408bab
test ecx, ecx
jne 0x408b14
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x408c06
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x408c06
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.004513f0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x408c77
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x408c2c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x408c62
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00461f03
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x408c77
cmp edi, eax
ja 0x408c40
test edi, edi
je 0x408c77
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00461f03
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d860
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479c50
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x49e2f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0044fafe
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00426b48
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 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
Function at 0x415ea0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ab3f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x49e2f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea esi, [eax + 0x18]
mov dword [ebp - 4], 0
add ecx, 0x18
push esi
mov dword [ebp + 8], ecx
call fcn.0040ab20
push 0x10
mov byte [ebp - 4], 1
call fcn.0044fafe
mov edi, eax
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
mov esi, dword [esi + 0x18]
push 0x48
call fcn.0044fafe
add esp, 8
mov dword [edi + 4], eax
mov byte [ebp - 4], 3
mov ecx, edi
push esi
mov dword [edi + 0xc], 0
call fcn.0041c2f0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], edi
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 0x417cc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47aec8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x49e2f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0x40
mov dword [ebp - 0x14], esi
call fcn.0044fafe
push 0x40
mov edi, eax
push 0
push edi
mov dword [ebp - 0x18], edi
call fcn.00451990
mov ecx, dword [ebp + 0x10]
add esp, 0x10
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov byte [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov byte [edi + 0x28], 1
mov dword [edi + 0x2c], 0
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x30], eax
mov eax, dword [ecx]
mov dword [edi + 0x34], eax
mov eax, dword [ecx + 4]
mov dword [edi + 0x38], eax
test eax, eax
je 0x417d7a
mov ecx, 1
add eax, 4
lock xadd dword [eax], ecx
mov dword [edi + 0x3c], 0x400
mov dword [esi], edi
mov dword [esi + 4], 0
push edi
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0
call fcn.00422cb0
mov edx, dword [esi + 4]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov dword [eax], edx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x417dd7
or ecx, 0xffffffff
lea eax, [ebx + 4]
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x417dd7
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
or edx, 0xffffffff
lea eax, [ebx + 8]
lock xadd dword [eax], edx
cmp edx, 1
jne 0x417dd7
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
push edi
push edi
push esi
call fcn.004037e0
mov dword [ebp - 4], 1
mov ecx, dword [esi]
mov eax, dword [ebp + 8]
mov dword [ecx + 0x2c], eax
lea edx, [ecx + 0x34]
mov eax, dword [ebp + 8]
push eax
push dword [ecx + 0x3c]
push dword [ecx + 0x30]
push eax
call fcn.0041b460
add esp, 0x1c
test al, al
jne 0x417e47
mov edi, dword [esi + 4]
mov dword [esi], 0
mov dword [esi + 4], 0
test edi, edi
je 0x417e47
or ebx, 0xffffffff
lea eax, [edi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x417e47
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [edi + 8]
lock xadd dword [eax], ebx
cmp ebx, 1
jne 0x417e47
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
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 0x10