joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41dab0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x52c0cc]
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.004c5270
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 0x41db3e
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x41db13
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004abe1b
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x41db26
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004abe1b
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x41db6f
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004abe1b
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x41db6f
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x41db60
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004abe1b
mov esp, ebp
pop ebp
ret
cmp eax, 1
je 0x41db6f
cmp eax, 2
mov eax, 5
je 0x41db74
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004abe1b
mov esp, ebp
pop ebp
ret
Function at 0x41e070
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea eax, [ecx + 8]
mov esi, 0x270
nop dword [eax]
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
sub esi, 1
jne 0x41e080
pop esi
ret

Function at 0x41e0c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, ecx
mov ecx, 0xe3
push esi
push edi
lea edi, [ebx + 0x9c4]
mov edx, dword [edi + 4]
lea edi, [edi + 4]
xor edx, dword [edi - 4]
and edx, 0x7fffffff
xor edx, dword [edi - 4]
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, edx
mov dword [edi - 0x9c4], eax
sub ecx, 1
jne 0x41e0d0
lea esi, [ebx + 0xd50]
mov edi, 0x18c
mov ecx, dword [esi + 4]
lea esi, [esi + 4]
xor ecx, dword [esi - 4]
and ecx, 0x7fffffff
xor ecx, dword [esi - 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi - 0xd50]
xor eax, ecx
mov dword [esi - 0x9c4], eax
sub edi, 1
jne 0x41e112
mov ecx, dword [ebx + 0x1380]
xor ecx, dword [ebx + 4]
and ecx, 0x7fffffff
xor ecx, dword [ebx + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx + 0x9c0], eax
mov dword [ebx], edi
pop edi
pop esi
pop ebx
ret

Function at 0x41eed0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x38
movsd xmm0, qword [0x519b28]
push esi
push edi
sub esp, 8
mov esi, ecx
movsd qword [esp], xmm0
call fcn.004cc4ac
fdivr qword [0x519b08]
fstp qword [esp]
call fcn.004e9b00
movsd xmm1, qword [0x519ae0]
mov eax, 1
fstp qword [esp + 0x40]
cvttsd2si edi, qword [esp + 0x40]
add esp, 8
xorps xmm2, xmm2
cmp edi, eax
cmovl edi, eax
test edi, edi
jle 0x41efa4
mov eax, dword [esi]
cmp eax, 0x270
jne 0x41ef38
mov ecx, esi
call fcn.0041e070
jmp 0x41ef46
cmp eax, 0x4e0
jb 0x41ef46
mov ecx, esi
call fcn.0041e0c0
mov eax, dword [esi]
mov ecx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov eax, ecx
shr eax, 0xb
and eax, dword [esi + 0x1384]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x519b90]
mulsd xmm0, xmm1
mulsd xmm1, qword [0x519b28]
addsd xmm2, xmm0
sub edi, 1
jne 0x41ef26
divsd xmm2, xmm1
pop edi
pop esi
movaps xmm0, xmm2
mov esp, ebp
pop ebp
ret
Function at 0x420b00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ede79
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x52c0cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x420b58
mov eax, dword [esi]
jmp 0x420b5a
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x10], 1
cmp ecx, 0x104
jb 0x420b9b
mov dword [esi + 0x10], 0x104
cmp dword [esi + 0x14], 8
jb 0x420b8e
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + 0x208], cx
jmp 0x420bac
mov eax, esi
xor ecx, ecx
mov word [eax + 0x208], cx
jmp 0x420bac
mov eax, 0x104
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.004205f0
cmp dword [esi + 0x14], 8
jb 0x420bb6
mov eax, dword [esi]
jmp 0x420bb8
mov eax, esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esi + 0x10]
cmp eax, ecx
ja 0x420c08
mov dword [esi + 0x10], eax
cmp dword [esi + 0x14], 8
jb 0x420bee
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, esi
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.004205f0
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 0x420c30
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4edec2
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x52c0cc]
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 - 0x21c], esi
mov dword [ebp - 0x220], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x224], esi
mov dword [esi + 0x10], 0
jb 0x420c9b
mov eax, dword [esi]
jmp 0x420c9d
mov eax, esi
xor ecx, ecx
mov word [eax], cx
push 0x110
push ecx
lea eax, [ebp - 0x120]
mov dword [ebp - 4], ecx
push eax
mov dword [ebp - 0x220], 1
call fcn.004c5270
add esp, 0xc
mov dword [ebp - 0x124], 0x114
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x120], 6
jb 0x420d4e
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x420d9e
push str.SHGetKnownFolderPath
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x420d45
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push ecx
push 0
push 0x8000
push 0x4fabf0
call eax
test eax, eax
jne 0x420d45
push dword [ebp - 0x21c]
mov ecx, esi
call fcn.004105d0
push dword [ebp - 0x21c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x420d9e
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x801c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x420d9e
cmp word [ebp - 0x218], ax
jne 0x420d77
xor ecx, ecx
jmp 0x420d8f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420d80
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00406d70
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x420dc2
cmp dword [esi + 0x14], 8
jb 0x420daf
mov eax, dword [esi]
jmp 0x420db1
mov eax, esi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x420dc2
push 0x5c
mov ecx, esi
call fcn.0041fb30
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.004abe1b
mov esp, ebp
pop ebp
ret
Function at 0x420fc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4edf58
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x52c0cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
test edi, edi
jns 0x421005
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.004222e0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x420fef
call fcn.00420eb0
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.00420eb0
mov edi, eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.004219e0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.00421a10
cmp byte [ebp - 0x14], 0
jne 0x421071
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x14]
cmp eax, dword [ebx]
je 0x421071
xor bl, bl
jmp 0x42107c
mov eax, dword [ebp + 8]
inc dword [ebx + 8]
mov dword [ebx + 0xc], eax
mov bl, 1
test esi, esi
je 0x421087
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 0x4210a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4edf88
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x52c0cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004222e0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x421160
mov ecx, dword [edi + 8]
cmp ecx, 1
jl 0x421160
add ecx, 0xffffffff
mov dword [edi + 8], ecx
jne 0x42114d
call fcn.00420eb0
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.00420eb0
lea ecx, [eax + 0x18]
call fcn.004214a0
call fcn.00420eb0
lea ecx, [eax + 0x18]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ecx]
je 0x42113c
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00420eb0
lea ecx, [eax + 0x18]
call fcn.004214f0
mov dword [edi], 0xffffffff
test esi, esi
je 0x42114d
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 0x421d00
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee08e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x52c0cc]
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 0x421db9
xor ecx, ecx
jmp 0x421dc9
mov ecx, edx
lea ebx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421dc0
sub ecx, ebx
push ecx
push edx
lea ecx, [esi + 0x30]
call fcn.00406ed0
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 0x421e80
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee0b6
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x52c0cc]
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 0x421f0b
call fcn.00421fd0
mov eax, dword [esi + 8]
test eax, eax
je 0x421f05
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x421ef2
mov eax, dword [esi + 8]
test eax, eax
je 0x421f05
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
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 0x421f21
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.00407160
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x421f37
mov edi, dword [edi]
mov byte [edi], 0
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x421f44
push eax
call ebx
mov dword [ebp - 4], 0
mov edi, dword [esi + 0x24]
test edi, edi
je 0x421f73
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x421f73
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x421f73
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 0x421fb0
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x421f9d
mov eax, dword [esi + 8]
test eax, eax
je 0x421fb0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
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 0x422100
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee15c
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x52c0cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.004222e0
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax]
call ebx
test eax, eax
jne 0x422170
push 0x14
call fcn.004ac06a
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.004222e0
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call fcn.004222e0
push dword [eax]
call ebx
test eax, eax
je 0x422181
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 0x42219b
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx]
call dword [eax]
jmp 0x422200
push 0xb8
cmp eax, 2
jne 0x4221c0
call fcn.004ac06a
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00423f20
jmp 0x4221f9
cmp eax, 1
jne 0x4221e0
call fcn.004ac06a
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00423e10
jmp 0x4221f9
call fcn.004ac06a
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.00422750
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.00422dd0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
cmp dword [edi + 0x18], 3
mov ecx, dword [edi + 0x1c]
je 0x42223a
test ecx, ecx
je 0x42228e
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x42228e
test ecx, ecx
je 0x422244
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 0x422287
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x422281
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x422281
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.004222e0
push dword [eax]
call ebx
call fcn.004222e0
push dword [eax]
call ebx
mov esi, eax
test esi, esi
je 0x4222ce
call fcn.004222e0
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x14
push esi
call fcn.004ac305
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 0x4222e0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x53385c]
sub esp, 0x18
push esi
cmp eax, 2
je 0x4223b0
push 0
push 1
push 0x53385c
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x42238d
push 4
call fcn.004ac06a
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 [0x533860], esi
mov dword [ebp - 8], 0x53385c
mov dword [ebp - 0xc], 0x4223c0
mov dword [ebp - 0x18], 0x4223c0
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], 0x4223c0
mov dword [eax + 8], 0x53385c
mov byte [ebp - 1], 0
mov dword [ebp - 0x14], 0x53385c
mov dword [eax + 0x24], eax
call fcn.00425910
mov eax, dword [0x533860]
add esp, 0x28
mov dword [0x53385c], 2
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
je 0x4223b0
mov eax, dword [0x53385c]
cmp eax, 2
je 0x4223b0
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call esi
mov eax, dword [0x53385c]
cmp eax, 2
jne 0x4223a2
mov eax, dword [0x533860]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x423ff0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x533864]
sub esp, 0x18
push esi
cmp eax, 2
je 0x4240c0
push 0
push 1
push 0x533864
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x42409d
push 4
call fcn.004ac06a
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 [0x533868], esi
mov dword [ebp - 8], 0x533864
mov dword [ebp - 0xc], 0x4223c0
mov dword [ebp - 0x18], 0x4223c0
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], 0x4223c0
mov dword [eax + 8], 0x533864
mov byte [ebp - 1], 0
mov dword [ebp - 0x14], 0x533864
mov dword [eax + 0x24], eax
call fcn.00425910
mov eax, dword [0x533868]
add esp, 0x28
mov dword [0x533864], 2
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
je 0x4240c0
mov eax, dword [0x533864]
cmp eax, 2
je 0x4240c0
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call esi
mov eax, dword [0x533864]
cmp eax, 2
jne 0x4240b2
mov eax, dword [0x533868]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x425bf0
Capabilities:
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 0x425c37
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x425c20
mov eax, dword [esi + 8]
test eax, eax
je 0x425c37
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
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 0x425c48
push 0x10
push esi
call fcn.004ac305
add esp, 8
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x425ca0
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov esi, ecx
lea edi, [esi + 4]
push edi
push 0
push esi
push 0x425d60
push 0
push 0
call fcn.004ccf0f
add esp, 0x18
mov dword [esi + 8], eax
cmp eax, 2
jae 0x425cd1
mov dword [esi + 8], 0
mov dword [edi], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
jle 0x425d48
or eax, 0xffffffff
cmp ecx, 1
jne 0x425cf9
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 0x425d15
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 0x425d33
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 0x4264a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
mov edi, ecx
call fcn.00423ff0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 1
cmp byte [eax + 0x14], 0
lea eax, [ebp - 0x1c]
je 0x4264f6
push 0xf
push 0xf
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x4264f2
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 0x4264f2
xor bl, bl
jmp 0x426508
mov bl, 1
jmp 0x426508
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 0x426520
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.004263f0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x426760
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee963
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x52c0cc]
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.00426bc0
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 0x426820
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 0x426f10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee9e8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x52c0cc]
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 0x426f68
call fcn.00423ff0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [edi + 0x24]
jne 0x426f68
mov bl, 1
jmp 0x426f6a
xor bl, bl
test esi, esi
je 0x426f75
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