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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10089398
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x100c90c0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi - 0x58]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + esi - 0x50]
test ecx, ecx
je 0x10028d76
mov eax, dword [ecx]
push 0
push 0x100ca9c4
push 0x100ca71c
push 0
push 0
push 9
call dword [eax + 0x10]
push eax
call fcn.10084c25
mov edi, eax
add esp, 0x14
test edi, edi
je 0x10028d76
sub esp, 0x10
mov ecx, esp
mov dword [ecx], vtable.CSeed.0
mov dword [ecx], vtable.CStringBufferW.0
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0
mov dword [ecx + 4], 0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x80]
sub esp, 0x10
mov eax, esp
mov dword [esp + 0x48], 1
mov dword [eax], vtable.CSeed.0
mov ecx, edi
mov dword [eax], vtable.CStringBufferW.0
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov byte [esp + 0x48], 1
call fcn.1000ea60
push eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [esi - 0x58]
lea ecx, [esi - 0x58]
mov eax, dword [eax + 8]
add ecx, eax
call fcn.100612e0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], vtable.CStringBufferW.0
test eax, eax
je 0x10028d5f
push eax
call fcn.1006eaef
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002a900
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
lea eax, [ecx + 4]
push edi
mov edi, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [edi + 4]
xor ebx, ebx
mov dword [ebp - 0xc], ecx
mov edx, edi
cmp byte [eax + 0xd], bl
jne 0x1002a938
cmp dword [eax + 0x10], esi
jae 0x1002a92f
mov eax, dword [eax + 8]
jmp 0x1002a933
mov edx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], bl
je 0x1002a925
cmp edx, edi
je 0x1002a944
mov dword [ebp - 4], edx
cmp esi, dword [edx + 0x10]
jae 0x1002a947
mov dword [ebp - 4], edi
lea eax, [ebp - 4]
mov eax, dword [eax]
cmp eax, edi
je 0x1002aa23
mov esi, dword [eax + 0x14]
test esi, esi
je 0x1002aa23
push dword [esi + 4]
push dword [esi]
call fcn.1002add0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push dword [esi + 4]
mov dword [ebp - 4], ebx
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1002aa1b
mov edx, dword [esi]
xor ecx, ecx
cmp dword [esi + 4], ecx
jbe 0x1002a9a4
mov al, byte [esi + ecx + 0x4c]
mov byte [ecx + edx], al
inc ecx
cmp ecx, dword [esi + 4]
jb 0x1002a997
push dword [esi + 4]
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [esi + 4]
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 8]
mov dword [ecx], eax
mov edi, dword [edi]
add esi, 0x2c
mov eax, dword [edi + 4]
mov ebx, 1
cmp byte [eax + 0xd], 0
mov ecx, edi
jne 0x1002a9f6
cmp dword [eax + 0x10], esi
jae 0x1002a9ec
mov eax, dword [eax + 8]
jmp 0x1002a9f0
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x1002a9e2
cmp ecx, edi
je 0x1002aa02
mov dword [ebp + 8], ecx
cmp esi, dword [ecx + 0x10]
jae 0x1002aa05
mov dword [ebp + 8], edi
lea edx, [ebp + 8]
mov edx, dword [edx]
cmp edx, edi
je 0x1002aa1b
mov ecx, dword [ebp - 8]
push edx
lea eax, [ebp + 8]
push eax
call fcn.1000b390
mov ecx, dword [ebp - 0xc]
call fcn.1002ad40
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1002aac0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
add esi, edx
xor edi, edi
mov dword [ebp - 8], ecx
cmp esi, 0x80000000
jae 0x1002aae3
lea esi, [edi + 1]
jmp 0x1002aae9
sub esi, 0x7fff0000
mov ebx, dword [ebp + 0x14]
add ebx, edx
cmp ebx, 0x80000000
jae 0x1002aafe
add ebx, 0x7ff80000
jmp 0x1002ab03
mov ebx, 0xfff80000
xorps xmm0, xmm0
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x48], edi
movq qword [ebp - 0x44], xmm0
movq qword [ebp - 0x3c], xmm0
movq qword [ebp - 0x34], xmm0
movq qword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, ebx
jae 0x1002aba2
jmp 0x1002ab30
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1002ab87
cmp dword [ebp - 0x14], 0x10000
jne 0x1002ab7b
mov eax, dword [ebp - 0x18]
cmp eax, 0x6c
jb 0x1002ab7e
mov ecx, dword [ebp - 0x2c]
cmp eax, ecx
jb 0x1002ab7e
lea eax, [ecx - 1]
add eax, esi
xor edx, edx
div ecx
push 0x20
push 0x3000
push 0x6c
imul eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x1002ab8b
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
add esi, eax
cmp esi, ebx
jb 0x1002ab30
test edi, edi
je 0x1002aba2
mov ecx, dword [ebp - 8]
lea eax, [edi + 0x2c]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
add ecx, 4
call fcn.1002b010
mov dword [eax], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1002ac30
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
mov eax, dword [0x100c90c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
test esi, esi
je 0x1002ad1f
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1002ad04
push edi
lea eax, [ebp - 0x2d0]
push eax
push esi
mov dword [ebp - 0x2d0], 0x10001
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1002acd3
mov edx, dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x1002ac90
mov ecx, dword [ebp - 0x218]
cmp ecx, ebx
jb 0x1002acd3
mov eax, dword [ebp + 8]
add eax, ebx
cmp ecx, eax
jae 0x1002acd3
push esi
call edx
cmp edi, 3
jge 0x1002ace8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2d0]
push eax
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov edx, dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x1002ac90
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006daee
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006daee
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006daee
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006daee
mov esp, ebp
pop ebp
ret 8

Function at 0x1002ad40
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push esi
push edi
mov esi, ecx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0xf
mov dword [ebp - 4], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
xor edi, edi
sar ecx, 2
test ecx, ecx
je 0x1002ada8
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x1002ad80
mov eax, dword [esi + 0xc]
push dword [eax + edi*4]
call ebx
mov eax, dword [esi + 0xc]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
inc edi
sar eax, 2
cmp edi, eax
jb 0x1002ad80
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov eax, dword [esi + 0xc]
push dword [ebp - 4]
mov dword [esi + 0x10], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002add0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x100c90c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push esi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
push edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x34], eax
xor edi, edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0xf
mov dword [ebp - 0x2c], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1002af1a
test ebx, ebx
je 0x1002af1a
lea eax, [ebp - 0x20]
push eax
push ebx
mov dword [ebp - 0x20], 0x1c
xor esi, esi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1002af10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1002ae68
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1002ae68
inc esi
lea eax, [ebp - 0x20]
push eax
push ebx
mov dword [ebp - 0x20], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1002ae51
test esi, esi
je 0x1002af10
lea eax, [ebp - 0x20]
push eax
push ebx
mov dword [ebp - 0x20], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1002af0b
mov esi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1002aef5
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 0x18]
cmp ecx, eax
je 0x1002aef5
push ecx
push 0
push 0x1fffff
call esi
cmp eax, 0xffffffff
je 0x1002aeda
mov ecx, dword [ebp - 0x28]
push eax
push dword [ebp - 0x34]
call fcn.1002ac30
jmp 0x1002aedd
or eax, 0xffffffff
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x1002aef5
test eax, eax
je 0x1002aef5
lea eax, [ebp - 0x30]
push eax
lea ecx, [edi + 0xc]
call fcn.1002b0a0
lea eax, [ebp - 0x20]
push eax
push ebx
mov dword [ebp - 0x20], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1002aea5
mov edi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x24]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test edi, edi
jne 0x1002af35
mov ecx, esi
call fcn.1002ad40
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006daee
mov esp, ebp
pop ebp
ret 8
Function at 0x1002b670
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100899b8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x100c90c0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x100c90c0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x58], 0
push 0x16
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], vtable.CStringBufferW.0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
call fcn.1003f120
mov ebx, dword [esp + 0x20]
push 0x16
push str.InitIEMenuHooks_Mutex_
push dword [esp + 0x24]
push ebx
call fcn.1006fb74
add esp, 0x10
mov dword [esp + 0x18], 0x16
mov dword [esp + 0x1c], 0x17
mov dword [esp + 0x58], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov byte [esp + 0x58], 2
push ecx
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], vtable.CStringBufferW.0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
call fcn.1003fba0
mov byte [esp + 0x58], 3
mov esi, dword [esp + 0x34]
test esi, esi
je 0x1002b78f
mov edi, esi
lea ecx, [edi + 2]
jmp 0x1002b760
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x1002b760
sub edi, ecx
sar edi, 1
lea ecx, [esp + 0x14]
test ebx, ebx
jne 0x1002b7d8
push edi
push esi
call fcn.1003ea90
mov ebx, dword [esp + 0x20]
push esi
call fcn.1006eaef
mov edi, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x24], vtable.CUtils.0
lea ecx, [esp + 0x28]
mov byte [esp + 0x58], 4
call fcn.1004edf0
push ebx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x1002b810
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1002b810
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0
call esi
jmp 0x1002b81e
lea eax, [edi + 0x16]
push eax
call fcn.1003f120
test eax, eax
je 0x1002b77e
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x1c]
sub eax, esi
push eax
lea eax, [ebx + esi*2]
push eax
call fcn.1006fdc7
add esp, 0xc
add esi, edi
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x34]
jmp 0x1002b782
mov ecx, edi
call fcn.1002baa0
mov dword [edi + 0x50], 1
test ebx, ebx
je 0x1002b82b
push ebx
call fcn.1006eaef
add esp, 4
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1006daee
mov esp, ebp
pop ebp
ret 4
Function at 0x1002ea80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x1002eb2c
cmp dword [edi + 4], 0
je 0x1002eb2c
cmp dword [edi + 0x10], 0
je 0x1002eb2c
cmp dword [esi + 0x28], 0xffffffff
jne 0x1002eab7
mov ecx, esi
call fcn.10008410
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x28]
mov dword [esi + 0x184], eax
mov ecx, dword [edi + 0x28]
cmp ecx, 0xffffffff
je 0x1002eacc
cmp ecx, eax
je 0x1002eb2c
mov esi, dword [edi + 0x1c]
mov dword [edi + 0x28], eax
cmp dword [esi + 0x28], 0xffffffff
jne 0x1002eae2
mov ecx, esi
call fcn.10008410
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x28]
mov dword [esi + 0x184], eax
test eax, eax
je 0x1002eb18
cmp dword [ebp + 8], 0
jne 0x1002eafd
mov ecx, dword [edi + 0x1c]
call fcn.1002daf0
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [edi + 4]
call esi
push 0
push dword [edi + 0x10]
call esi
pop edi
pop esi
pop ecx
pop ebp
ret 4
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [edi + 4]
call esi
push 5
push dword [edi + 0x10]
call esi
pop edi
pop esi
pop ecx
pop ebp
ret 4
Function at 0x1002f560
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10089cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x100c90c0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x20], vtable.CUtils.0
mov dword [esp + 0x30], 0
cmp dword [edi + 0x6c], 0
jne 0x1002f5ac
mov esi, dword [edi + 0x50]
mov dword [esp + 0x10], esi
jmp 0x1002f5f4
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.1002f450
push ecx
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x38], 1
call fcn.1004fe40
mov byte [esp + 0x30], 0
mov ecx, dword [esp + 0x14]
push ecx
push dword [ecx]
mov esi, eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], esi
call fcn.1000b2f0
push dword [esp + 0x14]
call fcn.1006dae9
add esp, 4
test esi, esi
je 0x1002f6b6
mov ecx, edi
call fcn.1002f6d0
lea eax, [edi + 0x70]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1002f618
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x30], 2
mov edx, dword [edi + 0x68]
mov ecx, edx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x1002f644
jmp 0x1002f630
cmp dword [eax + 0x10], esi
jae 0x1002f63a
mov eax, dword [eax + 8]
jmp 0x1002f63e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x1002f630
cmp ecx, edx
je 0x1002f651
mov dword [esp + 0x14], ecx
cmp esi, dword [ecx + 0x10]
jae 0x1002f655
mov dword [esp + 0x14], edx
lea eax, [esp + 0x14]
cmp dword [eax], edx
jne 0x1002f6ad
push 0x30
call fcn.1006dafd
add esp, 4
test eax, eax
je 0x1002f677
push esi
mov ecx, eax
call fcn.1002e6a0
mov esi, eax
jmp 0x1002f679
xor esi, esi
lea eax, [esp + 0x10]
push eax
lea ecx, [edi + 0x68]
call fcn.1002b010
mov dword [eax], esi
cmp dword [esi + 4], 0
jne 0x1002f6ad
cmp dword [esi + 8], 0
je 0x1002f6ad
push 0
push 0
push esi
push 0x1002e730
push 0
push 0
call fcn.1006e348
add esp, 0x18
mov dword [esi + 0x14], eax
lea ecx, [esp + 0x1c]
call fcn.10046c80
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10041530
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008a2f9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100c90c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.CLogger.0
mov dword [esi + 4], vtable.CStringBufferW.0
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 0x1c], vtable.CStringBufferW.0
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x2c], vtable.CStringBufferW.0
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x3c], vtable.CStringBufferW.0
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
lea eax, [esi + 0x68]
push eax
mov dword [esi + 0x64], vtable.CCritical.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x80], vtable.CStringBufferW.0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x84], 0
lea ecx, [esi + 0x90]
mov dword [ecx], vtable.CMapStringPtrW.0
mov dword [ecx + 4], vtable.CMapPtr.0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 1
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [esi + 0xb0], vtable.CArrayStringW.0
mov dword [esi + 0xb4], vtable.CArrayPtr.0
mov dword [esi + 0xb8], 0
mov dword [esi + 0xbc], 0
mov dword [esi + 0xc0], 0xa
mov dword [esi + 0xc4], 0
mov byte [ebp - 4], 8
mov eax, dword [ecx]
push 0x1f
mov dword [esi + 0x4c], 0x4c4b40
mov dword [esi + 0x50], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
call dword [eax]
mov dword [esi + 0xc8], 0
mov dword [esi + 0xcc], 0
mov dword [esi + 0xd0], 0
mov dword [esi + 0xd4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x60], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10045010
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008a8a2
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x100c90c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x234], 0
call fcn.10074d40
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x230], 0x103
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x10045101
mov dword [ebp - 4], 0
lea edi, [ebp - 0x21c]
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
lea ecx, [edi + 2]
jmp 0x100450c0
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x100450c0
sub edi, ecx
sar edi, 1
je 0x10045213
push edi
mov ecx, esi
call fcn.1003f120
push edi
lea eax, [ebp - 0x21c]
push eax
push dword [esi + 8]
push dword [esi + 0xc]
call fcn.1006fb74
lea ecx, [edi + 1]
add esp, 0x10
mov dword [esi + 4], edi
mov dword [esi + 8], ecx
jmp 0x10045213
lea eax, [ebp - 0x22c]
push eax
call fcn.10045240
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x100451e1
mov edi, dword [ebp - 0x228]
test edi, edi
je 0x100451e1
push 0x5c
lea ecx, [ebp - 0x22c]
call fcn.1003f790
cmp eax, 0xffffffff
jne 0x1004517f
push 0x2f
lea ecx, [ebp - 0x22c]
call fcn.1003f790
cmp eax, 0xffffffff
jne 0x1004517f
lea ecx, [ebp - 0x22c]
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
call fcn.10022960
jmp 0x10045213
sub edi, eax
dec edi
push edi
inc eax
push eax
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x22c]
call fcn.1003f540
mov byte [ebp - 4], 5
push dword [ebp - 0x240]
mov ecx, esi
push dword [ebp - 0x238]
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
call fcn.1003ea90
lea ecx, [ebp - 0x244]
call fcn.10022960
lea ecx, [ebp - 0x22c]
call fcn.10022960
jmp 0x10045213
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [ebp - method.CStringBufferW.virtual_0], vtable.CStringBufferW.0
test eax, eax
je 0x10045213
push eax
call fcn.1006eaef
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006daee
mov esp, ebp
pop ebp
ret 4
Function at 0x10045240
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008aa36
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x100c90c0]
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 - 0x218]
push eax
push 0
push 0
push 0x8028
push 0
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x100452b9
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
jmp 0x1004531c
mov dword [ebp - 4], 1
lea edi, [ebp - 0x218]
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x100452e4
sub edi, ecx
sar edi, 1
je 0x1004531c
push edi
mov ecx, esi
call fcn.1003f120
push edi
lea eax, [ebp - 0x218]
push eax
push dword [esi + 8]
push dword [esi + 0xc]
call fcn.1006fb74
lea eax, [edi + 1]
add esp, 0x10
mov dword [esi + 4], edi
mov dword [esi + 8], eax
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.1006daee
mov esp, ebp
pop ebp
ret 4

Function at 0x10045340
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008aa36
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x100c90c0]
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 - 0x218]
push eax
push 0
push 0
push 0x8026
push 0
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x100453b9
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
jmp 0x1004541c
mov dword [ebp - 4], 1
lea edi, [ebp - 0x218]
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x100453e4
sub edi, ecx
sar edi, 1
je 0x1004541c
push edi
mov ecx, esi
call fcn.1003f120
push edi
lea eax, [ebp - 0x218]
push eax
push dword [esi + 8]
push dword [esi + 0xc]
call fcn.1006fb74
lea eax, [edi + 1]
add esp, 0x10
mov dword [esi + 4], edi
mov dword [esi + 8], eax
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.1006daee
mov esp, ebp
pop ebp
ret 4