joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c22e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000c2cb
push ebx
push esi
call fcn.1000c2ce
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000c132
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000c278
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000c2ca
push edi
push eax
call fcn.10009808
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000c298
call fcn.10008b00
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000c2c9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000c132
add esp, 0x20
test eax, eax
jne 0x1000c2b7
push edi
call fcn.10008b00
jmp 0x1000c2bf
push ebx
call fcn.10008b00
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x405880
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51ba66
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x562494]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
mov edi, dword [ebp + 0xc]
push 0x20c
push 0
push eax
mov dword [ebp - 0x220], esi
call fcn.004dcf80
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.00409bb0
mov ecx, eax
test ecx, ecx
je 0x4059d3
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4059dd
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x220]
call fcn.00408d60
test al, al
jne 0x405958
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405936
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.00408a10
push edi
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 1
push eax
push esi
call fcn.00408290
mov dword [ebp - 4], 0xffffffff
add esp, 0xc
mov ecx, dword [ebp - 0x220]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4059b6
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4059e4
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4059e4
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004affa8
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040a130
call edx
jmp 0x405907
mov ecx, edx
call edi
jmp 0x4059b6
Function at 0x405fe0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x110c
call fcn.004b0350
mov eax, dword [0x562494]
xor eax, esp
mov dword [esp + 0x1108], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x800
mov dword [esp + 0x10], eax
lea eax, [esp + 0x914]
push 0
push eax
call fcn.004dcf80
push 0x800
lea eax, [esp + 0x120]
push 0
push eax
call fcn.004dcf80
add esp, 0x18
lea eax, [esp + 0x910]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x100
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004dcf80
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor esi, esi
nop dword [eax + eax]
lea ecx, [esp + 0x10]
call fcn.00405ef0
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x914]
push eax
lea eax, [esp + 0x118]
push eax
call edi
push str..tmp
lea eax, [esp + 0x114]
push 0x400
push eax
call fcn.004ea75d
add esp, 0xc
lea eax, [esp + 0x110]
push eax
call ebx
test eax, eax
je 0x4060d5
inc esi
cmp esi, 0xa
jl 0x406070
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1108]
xor ecx, esp
call fcn.004affa8
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x110]
lea esi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4060e0
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x110]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.00408a10
mov ecx, dword [esp + 0x1114]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004affa8
mov esp, ebp
pop ebp
ret

Function at 0x406470
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x562494]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
mov word [ebp - 0xc], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 8], eax
test eax, eax
je 0x4064d9
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004affa8
mov esp, ebp
pop ebp
ret
Function at 0x406850
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51bbf1
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x562494]
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, edx
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 0
mov dword [edi], 0
call fcn.00409bb0
mov ecx, eax
test ecx, ecx
je 0x4069ac
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4069b6
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push esi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], 0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x406980
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.004088f0
mov dword [ebp - 4], 1
mov ecx, dword [eax]
mov ebx, dword [edi]
sub ebx, 0x10
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x406940
cmp dword [ebx + 0xc], 0
jl 0x406935
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x406935
push edx
call fcn.00409170
add esp, 4
mov ecx, ebx
mov esi, eax
call fcn.00409890
lea eax, [esi + 0x10]
mov dword [edi], eax
jmp 0x406940
push dword [ecx - 0xc]
push ecx
mov ecx, edi
call fcn.00408a10
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x406980
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4069bd
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4069bd
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40698e
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
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.004affa8
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040a130
call edx
jmp 0x4068bf
mov ecx, edx
call esi
jmp 0x406980
Function at 0x406f40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
mov dword [ebp - 0x74], 0x6f0053
mov ebx, 0x72
mov dword [ebp - 0x70], 0x740066
mov dword [ebp - 0x6c], 0x610077
mov dword [ebp - 0x68], 0x650072
mov dword [ebp - 0x64], 0x4d005c
mov dword [ebp - 0x60], 0x630069
mov dword [ebp - 0x5c], 0x6f0072
mov dword [ebp - 0x58], 0x6f0073
mov dword [ebp - 0x54], 0x740066
mov dword [ebp - 0x50], 0x49005c
mov dword [ebp - 0x4c], 0x74006e
mov dword [ebp - 0x48], 0x720065
mov dword [ebp - 0x44], 0x65006e
mov dword [ebp - 0x40], 0x200074
mov dword [ebp - 0x3c], 0x780045
mov dword [ebp - 0x38], 0x6c0070
mov dword [ebp - 0x34], 0x72006f
mov dword [ebp - 0x30], 0x720065
mov dword [ebp - 0x2c], 0x4d005c
mov dword [ebp - 0x28], 0x690061
mov dword [ebp - 0x24], 0x5c006e
mov dword [ebp - 0x20], 0x650046
mov dword [ebp - 0x1c], 0x740061
mov dword [ebp - 0x18], 0x720075
mov dword [ebp - 0x14], 0x430065
mov dword [ebp - 0x10], 0x6e006f
mov dword [ebp - 0xc], 0x720074
mov dword [ebp - 8], 0x6c006f
mov dword [ebp - 4], 0x5c
call fcn.00409bb0
mov ecx, eax
test ecx, ecx
je 0x407073
mov eax, dword [ecx]
push 2
push 0x39
call dword [eax]
test eax, eax
je 0x40707d
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
cmp dword [eax - 8], 0x39
jl 0x407069
mov dword [eax - 0xc], 0x39
mov edx, ebx
mov ecx, dword [esi]
xor eax, eax
push ebx
mov word [ecx + 0x72], ax
lea eax, [ebp - 0x74]
mov ecx, dword [esi]
push eax
call fcn.0040a070
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.0040a130
push 0x80004005
call fcn.0040a130
call fcn.00409240
int3
Function at 0x4078f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x4c], 0x4f0053
push edi
mov dword [ebp - 0x48], 0x540046
mov dword [ebp - 0x44], 0x410057
mov dword [ebp - 0x40], 0x450052
mov dword [ebp - 0x3c], 0x4d005c
mov dword [ebp - 0x38], 0x630069
mov dword [ebp - 0x34], 0x6f0072
mov dword [ebp - 0x30], 0x6f0073
mov dword [ebp - 0x2c], 0x740066
mov dword [ebp - 0x28], 0x49005c
mov dword [ebp - 0x24], 0x74006e
mov dword [ebp - 0x20], 0x720065
mov dword [ebp - 0x1c], 0x65006e
mov dword [ebp - 0x18], 0x200074
mov dword [ebp - 0x14], 0x780045
mov dword [ebp - 0x10], 0x6c0070
mov dword [ebp - 0xc], 0x72006f
mov dword [ebp - 8], 0x720065
mov word [ebp - 4], ax
call fcn.00409bb0
mov ecx, eax
test ecx, ecx
je 0x4079db
mov eax, dword [ecx]
push 2
push 0x24
call dword [eax]
test eax, eax
je 0x4079e5
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
cmp dword [eax - 8], 0x24
jl 0x4079d1
mov dword [eax - 0xc], 0x24
mov edx, 0x48
mov ecx, dword [esi]
xor eax, eax
push 0x48
mov word [ecx + 0x48], ax
lea eax, [ebp - 0x4c]
mov ecx, dword [esi]
push eax
call fcn.0040a070
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.0040a130
push 0x80004005
call fcn.0040a130
call fcn.00409240
int3

Function at 0x409810
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x409869
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409869
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40985a
cmp esi, edx
jae 0x409869
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x409848
cmp esi, edx
jae 0x409869
cmp word [esi], 0
je 0x409869
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x409dc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x562494]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409e4b
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x409e0d
cmp eax, 2
jne 0x409e29
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x409e45
test ecx, ecx
je 0x409e40
test cl, 1
jne 0x409e29
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x409e45
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004affa8
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004affa8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a270
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51be89
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x562494]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], 0
cmp byte [esi + 8], 0
je 0x40a2b3
call fcn.0040a410
mov byte [esi + 8], 0
cmp dword [esi + 4], 0x40000000
jle 0x40a2ef
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
je 0x40a2d4
push eax
call fcn.004f276e
add esp, 4
mov dword [esi + 0x24], 0xffffffff
cmp dword [esi + 0x20], 8
lea eax, [esi + 0xc]
jb 0x40a2df
mov eax, dword [eax]
push eax
call fcn.004f28c1
add esp, 4
mov ecx, esi
call fcn.0040a410
mov dword [ebp - 4], 0
xor ecx, ecx
mov eax, dword [edi + 0x10]
mov edx, 2
mul edx
push 0
mov dword [ebp - 0x14], 0
seto cl
mov dword [ebp - 0x10], 0xf
neg ecx
mov byte [ebp - 0x24], 0
or ecx, eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.0040fe40
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], 1
test eax, eax
je 0x40a36e
cmp dword [ebp - 0x10], 0x10
lea ecx, [ebp - 0x24]
mov edx, edi
cmovae ecx, dword [ebp - 0x24]
cmp dword [edi + 0x14], 8
jb 0x40a349
mov edx, dword [edi]
push 0
push 0
push eax
push ecx
push dword [edi + 0x10]
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push eax
lea ecx, [ebp - 0x24]
call fcn.0040fdc0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
lea ebx, [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
cmp edx, 0x10
cmovae ebx, ecx
cmp dword [esi + 0x24], 0xffffffff
je 0x40a39a
push eax
push ebx
push dword [esi + 0x24]
call fcn.004f218b
mov edx, dword [ebp - 0x10]
add esp, 0xc
mov ecx, dword [ebp - 0x24]
mov ebx, eax
jmp 0x40a39d
or ebx, 0xffffffff
cmp edx, 0x10
jb 0x40a3c7
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a3bd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a405
push edx
push ecx
call fcn.004af923
add esp, 8
test ebx, ebx
jle 0x40a3e2
add dword [esi + 4], 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
cmp dword [edi + 0x14], 8
jb 0x40a3ea
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
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
call fcn.004e03e9
int3
Function at 0x40a410
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51bebb
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x562494]
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
cmp dword [edi + 0x20], 8
lea esi, [edi + 0xc]
jb 0x40a44b
mov esi, dword [esi]
push 0x180
push 0x40
push 0x8101
lea ebx, [edi + 0x24]
push esi
push ebx
call fcn.004f1bca
add esp, 0x14
mov dword [ebp - 0xc4], eax
test eax, eax
je 0x40a57c
push 0x98
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.004dcf80
add esp, 0xc
lea ecx, [ebp - 0xa8]
push 1
push 2
call fcn.0040b060
push 0x54bcf8
push ecx
push dword [ebp - 0xc4]
lea eax, [ebp - 0xa8]
mov dword [ebp - 4], 0
push ecx
push 0x54bd00
push ecx
push esi
push ecx
push 0x54bd14
push eax
call fcn.0040dbf0
add esp, 0xc
push eax
call fcn.0040dbf0
add esp, 0xc
push eax
call fcn.0040dbf0
add esp, 0xc
mov ecx, eax
call fcn.0040b870
add esp, 4
push eax
call fcn.0040dbf0
add esp, 8
lea eax, [ebp - 0xc0]
lea ecx, [ebp - 0xa8]
push eax
call fcn.0040afa0
cmp dword [eax + 0x14], 8
jb 0x40a506
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0xac]
cmp edx, 8
jb 0x40a54d
mov ecx, dword [ebp - 0xc0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a543
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a657
push edx
push ecx
call fcn.004af923
add esp, 8
xor eax, eax
mov dword [ebp - 0xb0], 0
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xac], 7
mov word [ebp - 0xc0], ax
mov dword [ebp - 4], 0xffffffff
call fcn.0040a1b0
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x40a592
push 2
push 0
push eax
call fcn.004f26c6
add esp, 0xc
jmp 0x40a595
or eax, 0xffffffff
mov dword [edi + 4], eax
test eax, eax
jne 0x40a63b
push 3
push 0x54bd20
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], 0xf
mov byte [ebp - 0xc0], al
call fcn.004108c0
mov edx, dword [ebp - 0xac]
lea eax, [ebp - 0xc0]
mov ecx, dword [ebp - 0xc0]
cmp edx, 0x10
mov esi, dword [ebx]
cmovae eax, ecx
cmp esi, 0xffffffff
je 0x40a607
push dword [ebp - 0xb0]
push eax
push esi
call fcn.004f218b
mov edx, dword [ebp - 0xac]
add esp, 0xc
mov ecx, dword [ebp - 0xc0]
mov esi, eax
jmp 0x40a60a
or esi, 0xffffffff
cmp edx, 0x10
jb 0x40a634
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a62a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a65c
push edx
push ecx
call fcn.004af923
add esp, 8
test esi, esi
jle 0x40a63b
add dword [edi + 4], esi
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.004affa8
mov esp, ebp
pop ebp
ret
call fcn.004e03e9
call fcn.004e03e9
int3
Function at 0x40b060
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51c077
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x562494]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x10], 0
je 0x40b0b5
mov dword [ebx], 0x54bf6c
mov dword [ebx + 0x50], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
push 0
lea edi, [ebx + 4]
mov ecx, ebx
push edi
call fcn.0040cb10
mov dword [ebp - 4], 1
mov eax, dword [ebx]
push 8
mov dword [ebp + 0xc], edi
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + ebx - 4], eax
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004af8f3
mov esi, eax
xorps xmm0, xmm0
add esp, 4
movq qword [esi], xmm0
push 1
mov byte [ebp - 4], 2
call fcn.004306b6
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x10], ecx
mov dword [edi + 0xc], eax
add esp, 4
lea eax, [edi + 0x14]
mov dword [edi + 0x34], esi
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov ecx, eax
not ecx
mov dword [edi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
and ecx, 1
mov dword [edi + 0x38], 0
shl ecx, 2
mov edx, ecx
or edx, 8
and al, 8
cmove edx, ecx
mov ecx, dword [ebp + 8]
mov eax, edx
or eax, 0x10
and cl, 4
cmove eax, edx
mov dword [edi + 0x3c], eax
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 8
Function at 0x410b20
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], 0x6e0041
mov dword [ebp - 0x24], 0x740079
mov dword [ebp - 0x20], 0x690068
mov dword [ebp - 0x1c], 0x67006e
mov dword [ebp - 0x18], 0x6e0049
mov dword [ebp - 0x14], 0x740073
mov dword [ebp - 0x10], 0x6c0061
mov dword [ebp - 0xc], 0x65006c
mov dword [ebp - 8], 0x72
call fcn.00409bb0
test eax, eax
je 0x410d38
mov ecx, dword [eax]
push 2
push 0x11
mov edx, dword [ecx]
mov ecx, eax
call edx
test eax, eax
je 0x410d57
cmp dword [eax + 8], 0x11
push ebx
push esi
lea esi, [eax + 0x10]
push edi
jl 0x410d4d
xor eax, eax
mov dword [esi - 0xc], 0x11
mov word [esi + 0x22], ax
mov edx, 0x22
lea eax, [ebp - 0x28]
mov ecx, esi
push 0x22
push eax
call fcn.0040a070
add esp, 8
push esi
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
or ebx, 0xffffffff
mov edi, eax
add esi, 0xfffffff0
mov ecx, ebx
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x410c0b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410d42
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x410d42
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x410d20
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x410d29
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [ebp - 0x54], 0x6e0041
mov dword [ebp - 0x50], 0x740079
mov dword [ebp - 0x4c], 0x690068
mov dword [ebp - 0x48], 0x67006e
mov dword [ebp - 0x44], 0x650053
mov dword [ebp - 0x40], 0x750074
mov dword [ebp - 0x3c], 0x4d0070
mov dword [ebp - 0x38], 0x690061
mov dword [ebp - 0x34], 0x57006e
mov dword [ebp - 0x30], 0x64006e
mov word [ebp - 0x2c], ax
call fcn.00409bb0
test eax, eax
je 0x410d38
mov ecx, dword [eax]
push 2
push 0x14
mov edx, dword [ecx]
mov ecx, eax
call edx
test eax, eax
je 0x410d57
cmp dword [eax + 8], 0x14
lea esi, [eax + 0x10]
jl 0x410d4d
xor eax, eax
mov dword [esi - 0xc], 0x14
mov word [esi + 0x28], ax
mov edx, 0x28
lea eax, [ebp - 0x54]
mov ecx, esi
push 0x28
push eax
call fcn.0040a070
add esp, 8
push 0
push esi
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
mov edi, eax
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x410d0c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x410d49
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x410d49
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x410d20
push 0
push 0
push 0x428
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov dword [eax + 4], edi
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040a130
call edx
jmp 0x410c0b
call edx
jmp 0x410d0c
push 0x80070057
call fcn.0040a130
call fcn.00409240
int3