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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a1e08
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x28]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edx, dword [esi + 0x40]
test edx, edx
setne bl
inc ebx
test eax, eax
je 0x466dc3
or bh, 0x80
lea ecx, [esp + 0xc]
call fcn.0046ccf0
mov edx, dword [esp + 0x30]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], 0
push ecx
push edx
lea ecx, [esp + 0x14]
call fcn.0046cfb0
lea eax, [esp + 0xc]
push ebx
push eax
mov ecx, esi
call fcn.00466e30
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x580368
call fcn.0046cef0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x46bc80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x46bccc
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x46bccc
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x46bcb6
push eax
call ebp
test ax, ax
jl 0x46bcc4
inc esi
add edi, 4
cmp esi, 6
jb 0x46bca8
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.0046b980
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x46e640
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x46e6a0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x46e6a0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x46e6a0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x46e6a0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x46e6b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x46f9d0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x46fa73
test eax, eax
jbe 0x46fa73
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x46fa73
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x46fa1e
xor esi, esi
jmp 0x46fa24
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46fa4f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00402d10
add esi, eax
push esi
mov ebx, esi
call fcn.00402d10
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x46fa30
pop ebp
test edi, edi
pop edi
jne 0x46fa73
test ebx, ebx
je 0x46fa73
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0047eb20
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x46fbb5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46fccd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46fccd
mov eax, dword [esi + 0x3c]
push eax
call fcn.00491089
mov esi, eax
test esi, esi
je 0x46fccd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x46fccd
mov ecx, esi
call fcn.0046fb20
cmp edi, eax
jge 0x46fccd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x46fc53
mov dword [esp + 0x34], 1
jmp 0x46fcae
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46fccd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0046f0b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4719a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x471a06
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x471a06
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4719e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x472540
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00472690
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x472560
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x472541
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00472690
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x472560
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x472590
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4725e7
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4725fd
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.00472620
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x472620
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x4726b0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4726f9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x472b70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a25c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00472720
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004727a0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004727a0
lea ecx, [esi + 0xc]
call fcn.0048f5b5
lea ecx, [esi + 0x10]
call fcn.0048f5b5
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00474fd0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00474fd0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00474fd0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0048f62a
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0048f62a
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x473818
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a27e8
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x473828
call fcn.00473d40
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x47390b
cmp byte [edi], 0
je 0x47390b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x47384d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00472540
test eax, eax
jne 0x47386d
push 0x5a5438
lea ecx, [esi + 0x38]
call fcn.0048f7b3
jmp 0x47390b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.00472590
test eax, eax
jne 0x47389c
mov ecx, esi
call fcn.00472690
push edi
add esi, 0x38
push 0x5a5414
push esi
call fcn.0048c6ce
add esp, 0xc
jmp 0x47390b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.004745c0
test eax, eax
je 0x473904
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.004739e0
test eax, eax
jne 0x473920
push edi
lea eax, [esi + 0x38]
push 0x5a53f0
push eax
call fcn.0048c6ce
add esp, 0xc
mov ecx, esi
call fcn.00473d40
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4739c8
mov ecx, dword [0x5a56a8]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.0048c6ce
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.00472640
test eax, eax
jne 0x47398a
push 0x5a53d4
lea ecx, [esi + 0x38]
call fcn.0048f7b3
jmp 0x47399a
push 0xfa
mov ecx, esi
call fcn.004745c0
test eax, eax
jne 0x4739b7
mov ecx, esi
call fcn.00473d40
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0048f62a
jmp 0x47390b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0048f62a
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x491a2c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x491a64
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048fad1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048faa9
jmp 0x491a70
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x493228
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49326a
call fcn.004998c0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49326a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x493261
xor eax, eax
jmp 0x493272
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00493278
pop edi
pop esi
pop ebx
ret 4

Function at 0x499df0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x499e1e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x499e3c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00499d56
jmp 0x499e3c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x499e3c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00499d56
test edi, edi
mov eax, edi
jne 0x499e26
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401700
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460549
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x47c020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
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 dword [ebp - 4], 3
mov al, byte [esi + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test al, al
je 0x401795
call fcn.00401870
mov eax, dword [esi + 8]
test eax, eax
je 0x40178f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40177c
mov eax, dword [esi + 8]
test eax, eax
je 0x40178f
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
cmp dword [esi + 0x44], 0x10
jb 0x4017a6
push dword [esi + 0x30]
call fcn.0044da7e
add esp, 4
mov dword [esi + 0x44], 0xf
mov dword [esi + 0x40], 0
mov byte [esi + 0x30], 0
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4017c2
push eax
call ebx
mov byte [ebp - 4], 0
mov edi, dword [esi + 0x24]
test edi, edi
je 0x4017f2
lea ecx, [edi + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x4017f2
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4017f2
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 0x40182f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40181c
mov eax, dword [esi + 8]
test eax, eax
je 0x40182f
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 0x401cf0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460608
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x47c020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x481540]
cmp eax, 2
je 0x401dce
push 0
push 1
push 0x481540
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x401da4
push 4
call fcn.0044da2d
mov esi, eax
add esp, 4
test esi, esi
je 0x401d57
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
jmp 0x401d59
xor esi, esi
sub esp, 0x18
mov dword [0x481544], esi
mov dword [ebp - 0x18], 0x401f50
mov eax, esp
mov dword [ebp - 0x14], 0x481540
mov dword [eax], vtable.._AV___Func_impl_U___Callable_obj_V___Bind__00XQ6AXPAX_ZAAPAX_std___0A__std__V__allocator_V___Func_class_X___V_std___2_X___V_std__.0
mov dword [eax + 4], 0x401f50
mov dword [eax + 8], 0x481540
mov dword [eax + 0x10], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00406160
add esp, 0x18
mov dword [0x481540], 2
jmp 0x401dce
cmp eax, 2
je 0x401dce
mov eax, dword [0x481540]
cmp eax, 2
je 0x401dce
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
push 0
call esi
mov eax, dword [0x481540]
cmp eax, 2
jne 0x401dc0
mov eax, dword [0x481544]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402840
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4606e8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x47c020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.00401cf0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x402894
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
call fcn.004027b0
mov esi, eax
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [ebx]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], eax
call fcn.004027b0
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [edi + 0x18]
call fcn.00402f70
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [edi + 0x18]
call fcn.00402fa0
cmp byte [ebp - 0x18], 0
jne 0x4028ed
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x14]
cmp eax, dword [ebx]
je 0x4028ed
xor bl, bl
jmp 0x4028f8
mov eax, dword [ebp - 0x10]
inc dword [ebx + 8]
mov dword [ebx + 0xc], eax
mov bl, 1
test esi, esi
je 0x402903
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
Function at 0x402920
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460718
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x47c020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00401cf0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x4029d8
mov ecx, dword [edi + 8]
cmp ecx, 1
jl 0x4029d8
dec ecx
mov dword [edi + 8], ecx
jne 0x4029c5
call fcn.004027b0
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.004027b0
lea ecx, [eax + 0x18]
call fcn.00402c70
call fcn.004027b0
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0x18]
je 0x4029b4
push ecx
lea eax, [ebp - 0x10]
push eax
call fcn.004027b0
lea ecx, [eax + 0x18]
call fcn.00402a20
mov dword [edi], 0xffffffff
test esi, esi
je 0x4029c5
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 0x4029f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
call fcn.004027b0
mov ecx, dword [ebp + 8]
test ecx, ecx
jns 0x402a03
xor al, al
pop ebp
ret
pop ebp
jmp fcn.00402840
Function at 0x404e40
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460608
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x47c020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x481550]
cmp eax, 2
je 0x404f1e
push 0
push 1
push 0x481550
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x404ef4
push 4
call fcn.0044da2d
mov esi, eax
add esp, 4
test esi, esi
je 0x404ea7
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
jmp 0x404ea9
xor esi, esi
sub esp, 0x18
mov dword [0x481554], esi
mov dword [ebp - 0x18], 0x401f50
mov eax, esp
mov dword [ebp - 0x14], 0x481550
mov dword [eax], vtable.._AV___Func_impl_U___Callable_obj_V___Bind__00XQ6AXPAX_ZAAPAX_std___0A__std__V__allocator_V___Func_class_X___V_std___2_X___V_std__.0
mov dword [eax + 4], 0x401f50
mov dword [eax + 8], 0x481550
mov dword [eax + 0x10], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00406160
add esp, 0x18
mov dword [0x481550], 2
jmp 0x404f1e
cmp eax, 2
je 0x404f1e
mov eax, dword [0x481550]
cmp eax, 2
je 0x404f1e
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
push 0
call esi
mov eax, dword [0x481550]
cmp eax, 2
jne 0x404f10
mov eax, dword [0x481554]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4060b0
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 0x4060f7
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4060e0
mov eax, dword [esi + 8]
test eax, eax
je 0x4060f7
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 0x406106
push esi
call fcn.0044da7e
add esp, 4
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x406600
Capabilities:
Access peb ldr_data
Get ntdll base address

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

Function at 0x406ee0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460e18
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x47c020]
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 0x406f38
call fcn.00404e40
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [edi + 0x24]
jne 0x406f38
mov bl, 1
jmp 0x406f3a
xor bl, bl
test esi, esi
je 0x406f45
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