joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4367b0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b86af
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x63406c]
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, ecx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x60], 0
xor eax, eax
push 7
push str.AppData
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.00423580
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0x40
xor eax, eax
mov dword [ebp - 0x14], 7
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00423580
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x5c], reloc.WS2_32.dll_accept
push eax
lea edx, [ebp - 0x5c]
mov ecx, esi
call fcn.004361e0
add esp, 8
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x60], 1
cmp eax, 8
jb 0x436879
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00423720
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x4368a5
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00423720
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp dword [esi + 0x10], eax
jne 0x436920
mov edx, 0x5be8b0
lea ecx, [ebp - 0x58]
call fcn.00436120
mov edi, eax
cmp esi, edi
je 0x43690b
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x4368e4
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00423720
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4368fc
mov eax, dword [esi]
jmp 0x4368fe
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.004230a0
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x436920
inc ecx
push ecx
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.00423720
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.0057282e
mov esp, ebp
pop ebp
ret
Function at 0x436d80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b87e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x63406c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
test edi, edi
jns 0x436dc5
xor al, al
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.00439d60
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x436daf
call fcn.00436c70
mov esi, eax
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [ebx]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], eax
call fcn.00436c70
mov edi, eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.004377c0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.004377f0
cmp byte [ebp - 0x14], 0
jne 0x436e31
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x14]
cmp eax, dword [ebx]
je 0x436e31
xor bl, bl
jmp 0x436e3c
mov eax, dword [ebp + 8]
inc dword [ebx + 8]
mov dword [ebx + 0xc], eax
mov bl, 1
test esi, esi
je 0x436e47
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
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 0x436e60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8818
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x63406c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00439d60
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x436f20
mov ecx, dword [edi + 8]
cmp ecx, 1
jl 0x436f20
add ecx, 0xffffffff
mov dword [edi + 8], ecx
jne 0x436f0d
call fcn.00436c70
mov esi, eax
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add edi, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00436c70
lea ecx, [eax + 0x18]
call fcn.004372e0
call fcn.00436c70
lea ecx, [eax + 0x18]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ecx]
je 0x436efc
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00436c70
lea ecx, [eax + 0x18]
call fcn.00437330
mov dword [edi], 0xffffffff
test esi, esi
je 0x436f0d
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x439690
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x63406c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.0058b680
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x114]
cmp eax, 5
jne 0x43971e
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x4396f3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057282e
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x439706
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057282e
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x43974f
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057282e
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x43974f
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x439740
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057282e
mov esp, ebp
pop ebp
ret
cmp eax, 1
je 0x43974f
cmp eax, 2
mov eax, 5
je 0x439754
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057282e
mov esp, ebp
pop ebp
ret

Function at 0x439770
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8b5e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x63406c]
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 - 0x14], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x10]
mov dword [esi], vtable.nbase::FrameworkThread.1.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 0x10], vtable.nbase::FrameworkThread.0
mov word [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x2c], eax
mov edx, dword [ebp + 8]
mov byte [ebp - 4], 3
mov dword [esi + 0x44], 0xf
mov dword [esi + 0x40], 0
mov byte [esi + 0x30], 0
cmp byte [edx], 0
jne 0x439829
xor ecx, ecx
jmp 0x439839
mov ecx, edx
lea ebx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x439830
sub ecx, ebx
push ecx
push edx
lea ecx, [esi + 0x30]
call fcn.004229d0
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 8
Function at 0x4398f0
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b6f66
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x63406c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], vtable.nbase::FrameworkThread.1.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 0x10], vtable.nbase::FrameworkThread.0
mov al, byte [esi + 0x14]
test al, al
je 0x43998b
call fcn.00439a50
mov eax, dword [esi + 8]
test eax, eax
je 0x439985
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x439972
mov eax, dword [esi + 8]
test eax, eax
je 0x439985
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
setne al
test al, al
jne 0x439972
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [esi + 8]
call ebx
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov word [esi + 0x14], 0
mov eax, dword [esi + 0x44]
lea edi, [esi + 0x30]
cmp eax, 0x10
jb 0x4399a1
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.00423840
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x4399b7
mov edi, dword [edi]
mov byte [edi], 0
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4399c4
push eax
call ebx
mov dword [ebp - 4], 0
mov edi, dword [esi + 0x24]
test edi, edi
je 0x4399f3
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x4399f3
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x4399f3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [esi + 8]
mov dword [esi], vtable.nbase::Thread.0
test eax, eax
je 0x439a3b
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x439a28
mov eax, dword [esi + 8]
test eax, eax
je 0x439a3b
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x439a28
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [esi + 8]
call ebx
mov dword [esi + 4], 0
mov dword [esi + 8], 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 0x439b80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8bfc
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x63406c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00439d60
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax]
call ebx
test eax, eax
jne 0x439bf0
push 0x14
call fcn.0057284d
mov esi, eax
add esp, 4
mov dword [esi], edi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0xffffffff
mov byte [esi + 4], 0
mov dword [esi + 0x10], 0
call fcn.00439d60
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call fcn.00439d60
push dword [eax]
call ebx
test eax, eax
je 0x439c01
mov byte [eax + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi + 4], eax
mov eax, dword [edi + 0x18]
cmp eax, 3
jne 0x439c1b
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx]
call dword [eax]
jmp 0x439c80
push 0xb8
cmp eax, 2
jne 0x439c40
call fcn.0057284d
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0043c0e0
jmp 0x439c79
cmp eax, 1
jne 0x439c60
call fcn.0057284d
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.0043bfd0
jmp 0x439c79
call fcn.0057284d
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.0043a910
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x1c], eax
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 8]
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [edi + 0x28]
mov ecx, dword [edi + 0x1c]
call fcn.0043af90
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
cmp dword [edi + 0x18], 3
mov ecx, dword [edi + 0x1c]
je 0x439cba
test ecx, ecx
je 0x439d0e
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x439d0e
test ecx, ecx
je 0x439cc4
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [edi + 0x24]
mov dword [edi + 0x24], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 3
test esi, esi
je 0x439d07
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x439d01
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x439d01
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x1c], 0
mov dword [edi + 4], 0
call fcn.00439d60
push dword [eax]
call ebx
call fcn.00439d60
push dword [eax]
call ebx
mov esi, eax
test esi, esi
je 0x439d4e
call fcn.00439d60
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x14
push esi
call fcn.005728a3
add esp, 8
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 0x439d60
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x640800]
sub esp, 0x18
push esi
cmp eax, 2
je 0x439e30
push 0
push 1
push 0x640800
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x439e0d
push 4
call fcn.0057284d
mov esi, eax
add esp, 4
mov dword [ebp - 8], esi
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
sub esp, 0x28
mov eax, esp
mov dword [0x640804], esi
mov dword [ebp - 8], 0x640800
mov dword [ebp - 0xc], 0x439e40
mov dword [ebp - 0x18], 0x439e40
mov dword [eax], vtable.std::_Func_base_void___.0
mov dword [eax], vtable.std::_Func_impl_class_std::_Binder_struct_std::_Unforced__void____cdecl___void_____void_____class_std::allocator_int___void___.0
mov dword [eax + 4], 0x439e40
mov dword [eax + 8], 0x640800
mov byte [ebp - 1], 0
mov dword [ebp - 0x14], 0x640800
mov dword [eax + 0x24], eax
call fcn.0043d980
mov eax, dword [0x640804]
add esp, 0x28
mov dword [0x640800], 2
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
je 0x439e30
mov eax, dword [0x640800]
cmp eax, 2
je 0x439e30
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call esi
mov eax, dword [0x640800]
cmp eax, 2
jne 0x439e22
mov eax, dword [0x640804]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43a140
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
mov dword [esi], vtable.nbase::Thread.0
test eax, eax
je 0x43a192
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x43a17b
mov eax, dword [esi + 8]
test eax, eax
je 0x43a192
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x43a17b
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
test byte [ebp + 8], 1
je 0x43a1a3
push 0x10
push esi
call fcn.005728a3
add esp, 8
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x43a210
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov esi, ecx
lea edi, [esi + 4]
push edi
push 0
push esi
push 0x43a2d0
push 0
push 0
call fcn.00593416
add esp, 0x18
mov dword [esi + 8], eax
cmp eax, 2
jae 0x43a241
mov dword [esi + 8], 0
mov dword [edi], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
jle 0x43a2b8
or eax, 0xffffffff
cmp ecx, 1
jne 0x43a269
mov eax, 0xfffffffe
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
cmp dword [esi + 8], 1
pop edi
seta al
pop esi
ret
cmp ecx, 2
jne 0x43a285
or eax, 0xffffffff
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
cmp dword [esi + 8], 1
pop edi
seta al
pop esi
ret
cmp ecx, 3
jne 0x43a2a3
mov eax, 2
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
cmp dword [esi + 8], 1
pop edi
seta al
pop esi
ret
cmp ecx, 4
mov edx, 0xf
cmove eax, edx
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
cmp dword [esi + 8], 1
pop edi
seta al
pop esi
ret
Function at 0x43a2f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x63406c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x458]
push 0x228
mov esi, edx
mov dword [ebp - 0x468], ecx
push 0
push eax
mov dword [ebp - 0x464], esi
call fcn.0058b680
add esp, 0xc
mov dword [ebp - 0x45c], 0x22c
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
lea eax, [ebp - 0x45c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x43a374
cmp ebx, 0xffffffff
je 0x43a361
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0057282e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x45c]
mov byte [ebp - 0x45d], 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x43a4bc
mov ecx, dword [ebp - 0x468]
call fcn.00421f60
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.0059364c
add esp, 8
test eax, eax
jne 0x43a4a6
cmp dword [edi + 0x10], eax
jne 0x43a3d3
lea eax, [ebp - 0x454]
mov ecx, esi
push eax
call fcn.0043a670
mov byte [ebp - 0x45d], 1
jmp 0x43a4a6
push dword [ebp - 0x454]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x43a4a0
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.0058b680
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x43a4a0
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x22c]
call fcn.00423680
cmp dword [edi + 0x14], 8
jb 0x43a43d
mov ecx, dword [edi]
jmp 0x43a43f
mov ecx, edi
push dword [edi + 0x10]
push 0
push ecx
mov ecx, eax
call fcn.0042c0d0
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 0x46c], eax
cmp ecx, 8
jb 0x43a476
inc ecx
push ecx
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x22c]
call fcn.00423720
mov eax, dword [ebp - 0x46c]
cmp eax, 0xffffffff
je 0x43a494
mov ecx, dword [ebp - 0x464]
lea eax, [ebp - 0x454]
push eax
call fcn.0043a670
mov byte [ebp - 0x45d], 1
cmp esi, 0xffffffff
je 0x43a4a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x464]
lea eax, [ebp - 0x45c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x43a391
cmp ebx, 0xffffffff
je 0x43a4c8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov al, byte [ebp - 0x45d]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0057282e
mov esp, ebp
pop ebp
ret
Function at 0x43c1b0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x640808]
sub esp, 0x18
push esi
cmp eax, 2
je 0x43c280
push 0
push 1
push 0x640808
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x43c25d
push 4
call fcn.0057284d
mov esi, eax
add esp, 4
mov dword [ebp - 8], esi
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
sub esp, 0x28
mov eax, esp
mov dword [0x64080c], esi
mov dword [ebp - 8], 0x640808
mov dword [ebp - 0xc], 0x439e40
mov dword [ebp - 0x18], 0x439e40
mov dword [eax], vtable.std::_Func_base_void___.0
mov dword [eax], vtable.std::_Func_impl_class_std::_Binder_struct_std::_Unforced__void____cdecl___void_____void_____class_std::allocator_int___void___.0
mov dword [eax + 4], 0x439e40
mov dword [eax + 8], 0x640808
mov byte [ebp - 1], 0
mov dword [ebp - 0x14], 0x640808
mov dword [eax + 0x24], eax
call fcn.0043d980
mov eax, dword [0x64080c]
add esp, 0x28
mov dword [0x640808], 2
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
je 0x43c280
mov eax, dword [0x640808]
cmp eax, 2
je 0x43c280
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call esi
mov eax, dword [0x640808]
cmp eax, 2
jne 0x43c272
mov eax, dword [0x64080c]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43e3b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
mov edi, ecx
call fcn.0043c1b0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 1
cmp byte [eax + 0x14], 0
lea eax, [ebp - 0x1c]
je 0x43e406
push 0xf
push 0xf
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x43e402
push 1
push 0x113
push 0x113
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x43e402
xor bl, bl
jmp 0x43e418
mov bl, 1
jmp 0x43e418
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
setne bl
push 0
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test bl, bl
jne 0x43e430
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.0043e300
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43e670
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9483
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x63406c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [ebp - 4], 0
mov dword [edi], vtable.nbase::WinIOMessagePump.0
mov dword [edi + 0x18], 0xffffffff
lea esi, [edi + 0x1c]
mov byte [ebp - 4], 1
push 0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0043ead0
push 1
mov dword [esi], eax
push 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x24], vtable.ObserverList_class_nbase::WinIOMessagePump::IOObserver_.0
push 0
push 0xffffffffffffffff
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov esi, eax
mov eax, dword [edi + 0x18]
cmp eax, 0xffffffff
je 0x43e730
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov dword [edi + 0x18], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43ee20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9508
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x63406c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0xc]
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [edi + 0x24], 0
je 0x43ee78
call fcn.0043c1b0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [edi + 0x24]
jne 0x43ee78
mov bl, 1
jmp 0x43ee7a
xor bl, bl
test esi, esi
je 0x43ee85
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret