joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4caf40
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
movss xmm0, dword [ebp + 0x18]
mov edx, dword [ebp + 0x20]
mov dword [ebp - 0x24], eax
mov ax, word [ebp + 0x14]
mov word [ebp - 0x10], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x1c]
xor eax, eax
test ecx, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], esi
sete al
movss dword [ebp - 4], xmm0
cmp eax, edx
jne 0x4caf9f
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx + 0xf8]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0xfc]
mov dword [ebp - 0x14], eax
jmp 0x4cafa5
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x24]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xd0]
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4e7750
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64fd60
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6e1c7c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [esi + 0x10], 0
jb 0x4e778e
mov eax, dword [esi]
xor ecx, ecx
push ecx
mov word [eax], cx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4e78e9
mov edi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call edi
test eax, eax
je 0x4e7861
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
cmp edi, 0xffffffff
je 0x4e78e3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x4e78e3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
shr eax, 1
xor ecx, ecx
push eax
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
push ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call fcn.0044e410
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
cmp esi, eax
je 0x4e7820
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0044e410
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4e78e3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e78d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e7905
jmp 0x4e78d9
push 1
call edi
test eax, eax
je 0x4e78e3
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
cmp edi, 0xffffffff
je 0x4e78e3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x4e78e3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push ebx
lea ecx, [ebp - 0x40]
call fcn.004805b0
push 0
mov edx, esi
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004e12b0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x4e78e3
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4e78d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e790a
push edx
push ecx
call fcn.0060223e
add esp, 8
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006021fd
mov esp, ebp
pop ebp
ret
call fcn.00621ffe
call fcn.00621ffe
int3
Function at 0x4e7910
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
mov esi, ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4e7985
push ebx
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x4e797d
mov eax, dword [esi + 0x10]
lea ebx, [eax + eax]
lea eax, [ebx + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4e797d
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], eax
jb 0x4e7959
mov esi, dword [esi]
push ebx
push esi
push eax
call fcn.00619f50
mov eax, dword [ebp - 4]
add esp, 0xc
xor ecx, ecx
push edi
mov word [ebx + eax], cx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4f0470
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4f047b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x4f0537
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6af720]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6af720]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6af720]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6af720]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6af720]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6af720]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6af720]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6af720]
sub edi, 1
jne 0x4f0490
pop edi
test esi, esi
je 0x4f055a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6af720]
sub esi, 1
jne 0x4f0540
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x4f0570
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x6af720]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6af720]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x4f0d20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
mov ebx, esi
mov dword [ebp - 8], esi
imul ebx, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x4f0d68
push 0
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4f0d5a
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp - 4]
call fcn.00619f50
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f0da0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x4f0ddb
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4f0dd6
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x4f0e08
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x4f0dec
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.00619f50
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x4f0e1c
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x4f0e13
cmp byte [esi + 8], 0
je 0x4f0e13
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f27f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x650372
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6e1c7c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
push 0x44c
call fcn.0060220e
mov ebx, eax
add esp, 4
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0x238], 0xffffffff
mov dword [ebx + 0x23c], 0
mov dword [ebx + 0x240], 0
test esi, esi
je 0x4f289d
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f2870
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.006026e6
add esp, 4
mov dword [ebx + 0x23c], eax
sub eax, esi
nop dword [eax]
mov cl, byte [esi]
lea esi, [esi + 1]
mov byte [eax + esi - 1], cl
test cl, cl
jne 0x4f2890
mov dword [ebp - 4], 0xffffffff
cmp dword [ebx], 0
jne 0x4f296b
cmp dword [ebx + 4], 0xffffffff
jne 0x4f296b
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f28d0
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x4f2907
cmp eax, 0x2f
je 0x4f2907
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4f28f4
mov eax, dword [0x6b6094]
mov dword [edi], eax
push 0x20
call fcn.0060220e
mov ecx, dword [ebp - 0x10]
add esp, 4
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x18], ecx
mov ecx, eax
mov word [eax], 0x100
mov byte [eax + 0x10], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0xc], 0
call fcn.004f10a0
mov dword [ebx], eax
test eax, eax
jne 0x4f2967
push ecx
mov ecx, ebx
mov dword [0x6ef858], 0x200
call fcn.004f29c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x4f2970
mov eax, 0x1000000
mov dword [0x6ef858], eax
test eax, eax
je 0x4f2995
push ecx
mov ecx, ebx
call fcn.004f29c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 8
call fcn.0060220e
add esp, 4
mov dword [eax], 1
mov dword [eax + 4], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f76a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x650a20
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6e1c7c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp + 8]
mov dword [edi], 0
mov dword [edi + 4], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x4f76e8
lock inc dword [eax + 8]
mov eax, dword [ebx]
mov dword [edi], eax
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov dword [ebp - 4], 0
lea ecx, [edi + 8]
mov dword [ebp + 8], ecx
lea esi, [ecx + 0xc]
movq xmm0, qword [ebx + 8]
movq qword [ecx], xmm0
mov eax, dword [ebx + 0x10]
mov dword [ecx + 8], eax
lea ecx, [esi + 4]
mov dword [ebp + 8], esi
mov al, byte [ebx + 0x14]
mov byte [esi], al
lea eax, [ebx + 0x18]
push eax
mov dword [ebp - 0x14], ecx
call fcn.00456990
lea eax, [ebx + 0x30]
mov byte [ebp - 4], 1
lea ecx, [esi + 0x1c]
push eax
mov dword [ebp - 0x14], ecx
call fcn.00456990
mov eax, dword [ebx + 0x48]
mov dword [esi + 0x34], eax
mov eax, edi
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 0x4fdcd0
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x650cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6e1c7c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
push str.CommonProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
test esi, esi
je 0x4fde45
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.004e1b10
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push eax
push str.CommonProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4fde45
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0
jne 0x4fddbe
lea eax, [ecx - 1]
push eax
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004c90f0
push eax
lea ecx, [ebp - 0x28]
call fcn.004581d0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4fddbe
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4fddb4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fdec3
push edx
push ecx
call fcn.0060223e
add esp, 8
push str.microsoft_sharedinkTabTip.exe
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.0046b2d0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4fde05
mov ecx, eax
call fcn.0044e3b0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4fde3f
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4fde35
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fdec8
push edx
push ecx
call fcn.0060223e
add esp, 8
cmp dword [ebp - 0x18], 0
jne 0x4fde54
push 0x3e
push str.C:Program_FilesCommon_Filesmicrosoft_sharedinkTabTip.exe
lea ecx, [ebp - 0x28]
call fcn.0044e410
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0xa
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4fdea9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4fde9f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fdecd
push edx
push ecx
call fcn.0060223e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006021fd
mov esp, ebp
pop ebp
ret
call fcn.00621ffe
call fcn.00621ffe
call fcn.00621ffe
int3
Function at 0x506e90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65100e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x6e1c7c]
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 eax, dword [ebp + 8]
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
lea ebx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x506f44
sub eax, ebx
push eax
push dword [ebp + 8]
call fcn.0044e6d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x506fe0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x644340
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6e1c7c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
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
call fcn.00507100
mov ecx, dword [esi + 0x44]
cmp ecx, 0x10
jb 0x507055
mov eax, dword [esi + 0x30]
inc ecx
cmp ecx, 0x1000
jb 0x50704b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5070f4
mov eax, edx
push ecx
push eax
call fcn.0060223e
add esp, 8
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0xf
mov byte [esi + 0x30], 0
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x507077
push eax
call ebx
mov edi, dword [esi + 0x24]
test edi, edi
je 0x5070a5
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x50709f
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x50709f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
mov dword [esi], vtable.nbase::Thread.0
test eax, eax
je 0x5070e2
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x5070cf
mov eax, dword [esi + 8]
test eax, eax
je 0x5070e2
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
call fcn.00621ffe
int3
Function at 0x507100
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x651038
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x6e1c7c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x14], 0
je 0x507227
cmp byte [esi + 0x15], 0
jne 0x5071e6
cmp dword [esi + 0x1c], 0
je 0x5071e6
sub esp, 0xc
mov dword [ebp - 0x4c], 0x507250
mov eax, esp
mov dword [ebp - 0x48], 0
movq xmm0, qword [ebp - 0x4c]
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x58]
mov byte [esi + 0x15], 1
mov dword [ebp - 0x3c], esi
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.00507760
mov eax, dword [ebp - 0x58]
add esp, 0xc
movq xmm0, qword [ebp - 0x50]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], vtable.._AV___Func_impl_no_alloc_V__WeakCallback_V___Binder_U_Unforced_std__AAP8FrameworkThread_nbase__AEXXZAAPAV34__std___nbase__X__V_std__.0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x1c]
push eax
call fcn.00509060
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x5071e6
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov eax, dword [esi + 8]
test eax, eax
je 0x507221
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x50720a
mov eax, dword [esi + 8]
test eax, eax
je 0x507221
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
mov word [esi + 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006021fd
mov esp, ebp
pop ebp
ret
Function at 0x507690
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x6ef9b8]
cmp eax, 2
je 0x507720
push esi
push 0
push 1
push 0x6ef9b8
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x5076fc
push 4
call fcn.0060220e
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
mov edx, 0x6ef9b8
mov ecx, 0x507730
mov dword [0x6ef9bc], esi
call fcn.0050aab0
mov eax, dword [0x6ef9bc]
mov dword [0x6ef9b8], 2
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
je 0x50771f
mov eax, dword [0x6ef9b8]
cmp eax, 2
je 0x50771f
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call esi
mov eax, dword [0x6ef9b8]
cmp eax, 2
jne 0x507711
pop esi
mov eax, dword [0x6ef9bc]
mov esp, ebp
pop ebp
ret
Function at 0x509c30
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x6ef9c0]
cmp eax, 2
je 0x509cc0
push esi
push 0
push 1
push 0x6ef9c0
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x509c9c
push 4
call fcn.0060220e
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
mov edx, 0x6ef9c0
mov ecx, 0x507730
mov dword [0x6ef9c4], esi
call fcn.0050aab0
mov eax, dword [0x6ef9c4]
mov dword [0x6ef9c0], 2
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
je 0x509cbf
mov eax, dword [0x6ef9c0]
cmp eax, 2
je 0x509cbf
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call esi
mov eax, dword [0x6ef9c0]
cmp eax, 2
jne 0x509cb1
pop esi
mov eax, dword [0x6ef9c4]
mov esp, ebp
pop ebp
ret

Function at 0x50a950
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov edx, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
xor ecx, ecx
lea eax, [edx - 1]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], eax
sar eax, 1
push edi
xor edi, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
test eax, eax
jle 0x50aa16
lea esi, [edi + edi]
lea eax, [esi*8]
sub eax, esi
lea edi, [esi + 2]
mov edx, dword [ebx + eax*8 + 0x70]
lea ecx, [ebx + eax*8]
mov ebx, dword [ecx + 0x3c]
mov eax, dword [ecx + 0x38]
cmp dword [ecx + 0x74], ebx
jg 0x50a9bc
jl 0x50a9bf
cmp edx, eax
ja 0x50a9bc
cmp dword [ecx + 0x74], ebx
jl 0x50a9bf
jg 0x50a9b4
cmp edx, eax
jb 0x50a9bf
mov eax, dword [ecx + 0x78]
cmp eax, dword [ecx + 0x40]
jle 0x50a9bf
lea edi, [esi + 1]
mov ebx, dword [esp + 0x14]
lea eax, [edi*8]
mov ecx, dword [esp + 0x10]
sub eax, edi
lea esi, [ebx + eax*8]
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [esi + 4]
lea edx, [ebx + eax*8]
mov eax, dword [esi]
mov dword [edx], eax
mov dword [edx + 4], ecx
lea ecx, [edx + 0x10]
mov eax, dword [esi + 8]
mov dword [edx + 8], eax
mov al, byte [esi + 0xc]
mov byte [edx + 0xc], al
lea eax, [esi + 0x10]
push eax
call fcn.004c47e0
mov eax, dword [esp + 0x18]
mov ecx, edi
mov dword [esp + 0x10], ecx
cmp edi, eax
jl 0x50a982
mov edx, dword [ebp + 8]
cmp edi, eax
jne 0x50aa5e
test dl, 1
jne 0x50aa5e
lea eax, [edx*8]
sub eax, edx
lea esi, [ebx + eax*8]
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [esi - 0x34]
lea edx, [ebx + eax*8]
mov eax, dword [esi - 0x38]
mov dword [edx], eax
mov dword [edx + 4], ecx
lea ecx, [edx + 0x10]
mov eax, dword [esi - 0x30]
mov dword [edx + 8], eax
mov al, byte [esi - 0x2c]
mov byte [edx + 0xc], al
lea eax, [esi - 0x28]
push eax
call fcn.004c47e0
mov ecx, dword [esp + 0x1c]
push dword [ebp + 0x10]
mov edx, ecx
push dword [ebp + 0xc]
push ecx
mov ecx, ebx
call fcn.0050a5a0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret