joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6e3d5a30
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x6e6bc618]
test esi, esi
jle 0x6e3d5b30
mov eax, dword [0x6e6bc61c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x6e3d5a60
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6e3d5adf
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6e3d5a50
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x6e3d5b57
mov eax, dword [0x6e6bc61c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x6e6bc61c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6e3d5b37
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6e3d5ad8
sub eax, 4
and eax, 0xfffffffb
jne 0x6e3d5ae6
add dword [0x6e6bc618], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x6e6bc61c]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6e3d5ad8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
xor esi, esi
jmp 0x6e3d5a6a
mov eax, dword [0x6e6bc61c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x4020b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, 0x8000
mov edi, edi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x402114
push edi
push 0
push esi
call fcn.00534b40
add esp, 0xc
push 0
push edi
push esi
push 0x10
call dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x4020fd
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_HeapFree]
add edi, edi
jmp 0x4020c0
test eax, eax
js 0x40210a
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
Function at 0x402770
Capabilities:
Create thread
Get disk information
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x676300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x214
push 0
mov esi, ecx
mov edi, edx
push eax
mov dword [ebp - 0x140], esi
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x14c], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
push 0
mov ebx, eax
push ebx
push 0x404e90
push 0
push 0
mov dword [ebp - 0x148], ebx
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4027e6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
push 0
push edi
call fcn.00534b40
add esp, 0xc
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
add ebx, 8
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
push esi
call fcn.00538174
push esi
mov edi, eax
push 0
push edi
call fcn.00534b40
add esp, 0x10
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x140]
lea eax, [ebp - 0x13c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x4028f6
push 0x103
lea edx, [ebp - 0x107]
push 0
push edx
mov byte [ebp - 0x108], 0
call fcn.00534b40
add esp, 0xc
lea esi, [ebp - 0x108]
mov eax, esi
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp eax, 0x104
jae 0x4028f6
mov ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test ebx, ebx
je 0x4028f6
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x140]
push edx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x4028f6
mov eax, dword [ebp - 0x140]
cmp eax, dword [ebp - 0x120]
je 0x4028e0
lea esi, [esi + ebx + 1]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test ebx, ebx
jne 0x4028a1
jmp 0x4028f6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x144]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [ebp - 0x144]
push 0x103
push edi
push edx
call fcn.00537b90
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0x14c]
add esp, 0xc
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x40292e
push edi
call fcn.00535f7c
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00534bba
mov esp, ebp
pop ebp
ret 4
Function at 0x404c80
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5752f6
mov eax, dword fs:[0]
push eax
mov eax, 0x1150
call fcn.005382c0
mov eax, dword [0x676300]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov esi, ecx
mov byte [ebp - 0x114], bl
call fcn.00534b40
add esp, 0xc
mov byte [ebp - 0x14d], bl
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
push esi
push ebx
push 0x410
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x158], eax
cmp eax, ebx
jne 0x404d25
cmp dword [ebp - 0x11c], 0x10
jb 0x404d1e
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.00535f7c
add esp, 4
xor al, al
jmp 0x404e73
lea edx, [ebp - 0x15c]
push edx
push 0x1000
lea ecx, [ebp - 0x115c]
push ecx
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
jne 0x404d4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404e48
test dword [ebp - 0x15c], 0xfffffffc
mov dword [ebp - 0x154], ebx
jbe 0x404e48
push 0x104
lea edx, [ebp - 0x114]
push ebx
push edx
call fcn.00534b40
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp + ecx*4 - 0x115c]
add esp, 0xc
push 0x104
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp - 0x158]
push edx
push eax
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x404e48
lea ecx, [ebp - 0x114]
lea esi, [ebp - 0x14c]
call fcn.00404210
push eax
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 1
call fcn.0040a290
mov byte [ebp - 4], bl
cmp dword [ebp - 0x138], 0x10
jb 0x404de2
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.00535f7c
add esp, 4
cmp dword [ebp - 0x120], ebx
je 0x404e48
xor esi, esi
cmp dword [ebp + 8], ebx
jle 0x404e21
mov eax, dword [edi + esi*4]
cmp eax, ebx
je 0x404e1b
cmp dword [ebp - 0x11c], 0x10
mov ecx, dword [ebp - 0x130]
jae 0x404e0d
lea ecx, [ebp - 0x130]
push eax
push ecx
call fcn.0053791c
add esp, 8
test eax, eax
je 0x404e41
inc esi
cmp esi, dword [ebp + 8]
jl 0x404df1
mov eax, dword [ebp - 0x154]
mov edx, dword [ebp - 0x15c]
inc eax
shr edx, 2
mov dword [ebp - 0x154], eax
cmp eax, edx
jb 0x404d63
jmp 0x404e48
mov byte [ebp - 0x14d], 1
mov eax, dword [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x11c], 0x10
jb 0x404e6d
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.00535f7c
add esp, 4
mov al, byte [ebp - 0x14d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00534bba
mov esp, ebp
pop ebp
ret 4
Function at 0x407e20
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x676300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
mov dword [ebp - 0x134], ecx
lea ecx, [ebp + 8]
push edi
cmp ecx, eax
jae 0x407e77
mov ecx, dword [esi]
lea edx, [ebp + 8]
cmp ecx, edx
ja 0x407e77
mov edi, edx
sub edi, ecx
sar edi, 2
cmp eax, dword [esi + 8]
jne 0x407e67
push 1
mov ecx, esi
call fcn.00518ec0
mov eax, dword [esi + 4]
test eax, eax
je 0x407e91
mov ecx, dword [esi]
mov edx, dword [ecx + edi*4]
mov dword [eax], edx
jmp 0x407e91
cmp eax, dword [esi + 8]
jne 0x407e85
push 1
mov ecx, esi
call fcn.00518ec0
mov eax, dword [esi + 4]
test eax, eax
je 0x407e91
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
add dword [esi + 4], 4
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x407ebb
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534bba
mov esp, ebp
pop ebp
ret 8
lea edx, [ebp - 0x130]
push edx
push edi
mov dword [ebp - 0x130], pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x407f0c
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
lea ecx, [ecx]
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x118], eax
jne 0x407efe
mov ecx, dword [ebp - 0x128]
push esi
push ecx
mov ecx, dword [ebp - 0x134]
call fcn.00407e20
lea edx, [ebp - 0x130]
push edx
push edi
call ebx
test eax, eax
jne 0x407ee0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00534bba
mov esp, ebp
pop ebp
ret 8
Function at 0x408660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5752b6
mov eax, dword fs:[0]
push eax
sub esp, 0x4d0
mov eax, dword [0x676300]
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 eax, dword [ebp + 8]
xor ebx, ebx
push 0x3ff
lea ecx, [ebp - 0x413]
push ebx
push ecx
mov dword [ebp - 0x4dc], eax
mov byte [ebp - 0x414], bl
call fcn.00534b40
add esp, 0xc
push 0x104
lea edx, [ebp - 0x414]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x414]
push 0x5c
push eax
call fcn.005383a0
lea edi, [ebp - 0x414]
add esp, 8
mov byte [eax + 1], bl
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4086e2
mov ecx, 7
mov esi, str.NAnalyser_rc.dprotocol_id.rc
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x414]
push 0x65cca4
push ecx
movsw word es:[edi], word [esi]
call fcn.00536808
mov esi, eax
add esp, 8
mov dword [ebp - 0x4d8], esi
cmp esi, ebx
jne 0x408736
push str.can_not_open_protocol_id.rc
push str.ProcessAnalyser
push 0x67eba0
call fcn.004ebec7
add esp, 0xc
xor al, al
jmp 0x4088c7
push 0x3f
lea edx, [ebp - 0x4d3]
push ebx
push edx
mov byte [ebp - 0x4d4], bl
call fcn.00534b40
push 0x48
lea eax, [ebp - 0x494]
push ebx
push eax
call fcn.00534b40
push esi
push 0x88
lea ecx, [ebp - 0x4d4]
push 1
push ecx
call fcn.00535632
add esp, 0x28
cmp eax, 0x88
jne 0x4088bc
mov esi, dword [ebp - 0x4dc]
jmp 0x408790
lea eax, [ebp - 0x4d4]
mov dword [ebp - 0x438], 0xf
mov dword [ebp - 0x43c], ebx
mov byte [ebp - 0x44c], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4087b0
sub eax, edx
push eax
lea edx, [ebp - 0x4d4]
push edx
lea ecx, [ebp - 0x44c]
call fcn.0040a3f0
lea eax, [ebp - 0x44c]
push eax
lea ecx, [esi + 0x6c]
mov dword [ebp - 4], ebx
call fcn.00409490
mov ecx, dword [ebp - 0x494]
or edi, 0xffffffff
mov dword [eax], ecx
mov dword [ebp - 4], edi
cmp dword [ebp - 0x438], 0x10
jb 0x408804
mov edx, dword [ebp - 0x44c]
push edx
call fcn.00535f7c
add esp, 4
lea eax, [ebp - 0x490]
mov dword [ebp - 0x41c], 0xf
mov dword [ebp - 0x420], ebx
mov byte [ebp - 0x430], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408823
sub eax, edx
push eax
lea eax, [ebp - 0x490]
push eax
lea ecx, [ebp - 0x430]
call fcn.0040a3f0
lea ecx, [ebp - 0x430]
push ecx
lea ecx, [esi + 0x6c]
mov dword [ebp - 4], 1
call fcn.00409490
mov edx, dword [ebp - 0x450]
mov dword [eax], edx
mov dword [ebp - 4], edi
cmp dword [ebp - 0x41c], 0x10
jb 0x408878
mov eax, dword [ebp - 0x430]
push eax
call fcn.00535f7c
add esp, 4
mov ecx, dword [ebp - 0x4d8]
push ecx
push 0x88
lea edx, [ebp - 0x4d4]
push 1
push edx
mov dword [ebp - 0x41c], 0xf
mov dword [ebp - 0x420], ebx
mov byte [ebp - 0x430], bl
call fcn.00535632
add esp, 0x10
cmp eax, 0x88
je 0x408790
mov esi, dword [ebp - 0x4d8]
push esi
call fcn.00536f74
add esp, 4
mov al, 1
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.00534bba
mov esp, ebp
pop ebp
ret 4
Function at 0x4096c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575607
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x676300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x65cd3c
mov dword [ebx + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov dword [ebx + edx], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx]
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [ebp - 0x10], 1
call fcn.00401820
lea esi, [ebx + 0x10]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.0040a630
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x409759
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.004016e0
mov dword [ebp - 4], 2
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov ecx, esi
mov dword [ebx + edx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.0040b4d0
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x6810f4]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
mov eax, ebx
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 0x40ae70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f058
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x676300]
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 edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x40af91
cmp byte [edi + 0x49], bl
je 0x40af91
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x40af85
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x40aee5
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x40aefd
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40af26
dec eax
je 0x40af2a
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x40af80
jmp 0x40af8c
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x40af3a
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x40af63
cmp ebx, 0x10
jae 0x40af49
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00535138
add esp, 0x10
cmp esi, eax
jne 0x40af7d
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x40af89
test esi, esi
jne 0x40aef1
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040a340
jmp 0x40aeeb
lea ecx, [ebp - 0x2c]
call fcn.00451de0
xor al, al
jmp 0x40af93
lea ecx, [ebp - 0x2c]
call fcn.00451de0
mov al, 1
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.00534bba
mov esp, ebp
pop ebp
ret
Function at 0x40b4d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574d5b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x676300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00553dbc
push 4
mov dword [ebp - 4], 0
call fcn.00535efc
mov edi, eax
add esp, 4
test edi, edi
je 0x40b550
call fcn.00553a7e
mov dword [edi], eax
call fcn.00553938
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0055386d
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40b546
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00553895
jmp 0x40b552
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 0x40e8e0
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x6788ec]
push ebx
push esi
push edi
push eax
mov dword [ebp - 4], eax
mov eax, dword [0x68299c]
push 4
push eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov edx, dword [ebp - 4]
lea ecx, [ebp - 4]
push ecx
push edx
mov esi, eax
push esi
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
cmp edi, 0xc0000023
je 0x40e929
cmp edi, 0xc0000004
jne 0x40e949
mov eax, dword [0x68299c]
push esi
push 0
push eax
call ebx
mov ecx, dword [ebp - 4]
mov edx, dword [0x68299c]
push ecx
push 4
push edx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x40e904
test edi, edi
jns 0x40e961
mov eax, dword [0x68299c]
push esi
push 0
push eax
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
cmp eax, 0x20000
ja 0x40e970
mov dword [0x6788ec], eax
mov eax, edi
pop edi
mov dword [0x68172c], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ea30
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x68299c]
push ebx
push esi
mov esi, dword [0x6788f4]
push edi
push esi
push 4
push eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push esi
mov edi, eax
push edi
push 0x10
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp ebx, 0xc0000004
jne 0x40eaa5
mov ecx, dword [0x68299c]
push edi
push 0
push ecx
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
add esi, esi
cmp esi, 0x1000000
ja 0x40eac1
mov edx, dword [0x68299c]
push esi
push 4
push edx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push esi
mov edi, eax
push edi
push 0x10
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp ebx, 0xc0000004
je 0x40ea63
test ebx, ebx
jns 0x40eacd
mov eax, dword [0x68299c]
push edi
push 0
push eax
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov eax, 0xc000009a
pop ebx
pop ebp
ret 4
cmp esi, 0x100000
ja 0x40eadb
mov dword [0x6788f4], esi
mov ecx, dword [ebp + 8]
mov dword [ecx], edi
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4

Function at 0x40eaf0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x68299c]
push ebx
mov ebx, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push esi
push edi
push 0x100
push 4
push eax
call ebx
mov ecx, dword [ebp + 8]
push 0
mov dword [ebp - 0x10], ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
mov esi, eax
push 0x58
mov dword [ebp - 0xc], 0x1000000
mov dword [ebp - 8], esi
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, eax
mov dword [ebp + 8], edi
cmp edi, 0xc0000004
jne 0x40eb76
mov edx, dword [0x68299c]
push esi
push 0
push edx
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
movzx eax, word [ebp - 0xa]
push eax
mov eax, dword [0x68299c]
push 4
push eax
call ebx
push 0
push 0xc
lea ecx, [ebp - 0x10]
push ecx
mov esi, eax
push 0x58
mov dword [ebp - 8], esi
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [ebp + 8], eax
mov edi, eax
test edi, edi
jns 0x40eb95
mov edx, dword [0x68299c]
push esi
push 0
push edx
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 8]
movzx ebx, word [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [0x682b2c]
lea ecx, [ebx + 0xa]
mov edi, eax
call fcn.004124f0
lea ecx, [edi + 0x10]
mov edx, 1
lock xadd dword [ecx], edx
mov dword [eax + 0xc], edi
mov dword [eax], 1
lea edi, [eax + 0x10]
lea ecx, [ebx + 0xa]
mov dword [eax + 8], ecx
lea eax, [edi + 8]
xor ecx, ecx
mov dword [edi + 4], eax
mov dword [edi], ebx
mov word [eax + ebx], cx
mov eax, dword [ebp - 4]
test eax, eax
je 0x40ebef
mov edx, dword [edi + 4]
push ebx
push eax
push edx
call fcn.00534c80
add esp, 0xc
mov ecx, dword [0x68299c]
mov eax, dword [ebp + 0xc]
push esi
push 0
push ecx
mov dword [eax], edi
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x410990
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
mov eax, 0x681200
lock bts dword [eax], 0
jae 0x4109a5
push eax
call fcn.00412930
cmp dword [0x681314], 0
jne 0x410a06
push 0
push 0
push 0
push 0x410b90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x681314], eax
test eax, eax
jne 0x410a06
or eax, 0xffffffff
mov ecx, 0x681200
lock xadd dword [ecx], eax
mov edx, eax
and dl, 6
cmp dl, 2
jne 0x410a00
lea edx, [eax - 1]
lea ecx, [edx + 4]
mov esi, ecx
mov edi, 0x681200
mov eax, edx
lock cmpxchg dword [edi], esi
cmp eax, edx
jne 0x410a00
mov eax, edi
call fcn.00412880
xor al, al
pop edi
pop esi
pop ecx
ret
cmp dword [0x681318], 0
mov esi, dword [sym.imp.ntdll.dll_NtCreateEvent]
jne 0x410a2b
push 0
push 1
push 0
push 0x1f0003
push 0x681318
call esi
test eax, eax
js 0x4109cc
cmp dword [0x68131c], 0
jne 0x410a4a
push 0
push 1
push 0
push 0x1f0003
push 0x68131c
call esi
test eax, eax
js 0x4109cc
pop edi
mov al, 1
pop esi
pop ecx
ret