joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467278
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4674d8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4672db
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00466d40
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d58c
cmp al, 1
jne 0x4672db
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00467058
test al, al
je 0x467467
cmp dword [ebp - 8], 0
jge 0x4672f9
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00466d40
mov eax, dword [ebp - 0x210]
call fcn.004047d0
cmp ebx, eax
jge 0x467343
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00466d40
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4b1dd8]
and eax, 0xff
bt dword [edx], eax
jae 0x467343
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x467357
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00467254
cmp ebx, dword [ebp - 8]
je 0x467459
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x467383
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040386c
and eax, 0x7f
movzx eax, word [eax*2 + 0x4b103c]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x467446
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040386c
and eax, 0x7f
movzx eax, word [eax*2 + 0x4b103c]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0044b274
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040386c
and eax, 0x7f
movzx eax, word [eax*2 + 0x4b103c]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0044b274
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46744d
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4674ba
cmp dword [ebp - 8], 0
jge 0x467472
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00466d40
mov eax, dword [ebp - 0x218]
call fcn.004047d0
cmp eax, dword [ebp - 8]
jg 0x4674ac
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00466d40
mov eax, dword [ebp - 0x21c]
call fcn.004047d0
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00467254
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4674df
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404534
ret
Function at 0x49dd84
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x49dda9
cmp dword [esp + 4], 5
jb 0x49dda9
mov al, 1
jmp 0x49ddab
xor eax, eax
add esp, 0x94
ret
Function at 0x2e107391
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
cmovg edx, dword [ebp + 0x10]
push ebx
mov bl, 0x55
test edx, edx
jle 0x2e1073be
push esi
mov esi, dword [ebp + 8]
sub esi, ecx
mov al, byte [esi + ecx]
dec edx
xor al, bl
mov byte [ecx], al
mov bl, al
inc ecx
test edx, edx
jg 0x2e1073ae
pop esi
mov byte [ecx], 0
pop ebx
pop ebp
ret 0x10
Function at 0x10004850
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x20]
push edi
lea ebx, [esi + 0x24]
push ebx
push esi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test edi, edi
jne 0x100048ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x100048ae
mov eax, dword [esi + 0x34]
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1000489e
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
mov ecx, dword [esi + 0x20]
push 0
push esi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edi, eax
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 8

Function at 0x100048c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x20]
push edi
lea ebx, [esi + 0x24]
push ebx
push esi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test edi, edi
jne 0x1000491e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1000491e
mov eax, dword [esi + 0x34]
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1000490e
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
mov ecx, dword [esi + 0x20]
push 0
push esi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edi, eax
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 8

Function at 0x10004cd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 2
jae 0x10004cdf
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
sub eax, 2
add ecx, 2
mov dword [ebp + 0xc], edx
cmp eax, 1
jbe 0x10004d0b
lea edx, [eax - 2]
mov ax, word [ebp + 0xc]
shr edx, 1
inc edx
lea ecx, [ecx]
xor ax, word [ecx]
add ecx, 2
dec edx
jne 0x10004d00
pop ebp
ret
mov ax, word [ebp + 0xc]
pop ebp
ret
Function at 0x10007230
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10018f02
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10026d00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x30], esi
mov dword [esi + 4], eax
mov dword [esi], vtable.Interface_class_MksToDumperIfc__class_DumperToMksIfc__struct_GBL_MODULE_INFO_::module_base_dll_class_bb5Dumper_.0
xor ebx, ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x1c], ebx
mov byte [esi + 0xc], bl
mov dword [esi + 0x28], ebx
mov dword [esi + 0x54], 0xf
mov dword [esi + 0x50], ebx
mov byte [esi + 0x40], bl
mov dword [esi + 0x5c], ebx
mov ecx, dword [0x10027df4]
mov dword [esi + 0x60], ecx
mov edx, dword [0x10027df8]
mov dword [esi + 0x64], edx
mov eax, dword [0x10027dfc]
mov dword [esi + 0x68], eax
mov ecx, dword [0x10027e00]
xor eax, eax
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [ebp - 4], ebx
mov dword [esi + 0x3c], eax
lea ecx, [esi + 0x70]
mov dword [esi], vtable.bb5Dumper.0
call fcn.100061b0
lea ecx, [esi + 0x1b0]
push 0x8000
mov byte [ebp - 4], 2
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.10006b50
mov dword [esi + 0x1c0], ebx
mov dword [esi + 0x1c4], ebx
mov dword [esi + 0x1c8], ebx
push 0x45
lea edx, [esi + 0x168]
push ebx
push edx
mov byte [ebp - 4], 4
mov byte [esi + 0x1d0], bl
call fcn.1000be30
add esp, 0xc
push 9
push str.BB5DUMPER
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.100022b0
push 0x10027df4
push 0x10026598
mov byte [ebp - 4], 5
call fcn.10001000
add esp, 8
test eax, eax
jne 0x1000738e
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 0x40]
call fcn.100021c0
mov dword [esi + 0x5c], 0x222040
mov ecx, dword [0x10026598]
mov dword [esi + 0x60], ecx
mov edx, dword [0x1002659c]
mov dword [esi + 0x64], edx
mov eax, dword [0x100265a0]
mov dword [esi + 0x68], eax
mov ecx, dword [0x100265a4]
mov dword [esi + 0x6c], ecx
cmp dword [ebp - 0x18], 0x10
jb 0x100073a0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.1000b73c
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000c35a
mov esp, ebp
pop ebp
ret 4

Function at 0x1000c35a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10026d00]
jne 0x1000c364
repz ret
jmp fcn.1000fcec
Function at 0x1001469c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10026d00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1000e1b7
and dword [ebp - 0x14], 0
cmp dword [0x10029350], 0
mov dword [ebp - 0x18], eax
jne 0x1001474f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x100147f7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x100147f7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10029350], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10029354], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10029358], eax
call edi
push eax
call esi
mov dword [0x10029360], eax
test eax, eax
je 0x1001474f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1002935c], eax
mov eax, dword [0x1002935c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x100147a8
cmp dword [0x10029360], ecx
je 0x100147a8
push eax
call esi
push dword [0x10029360]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x100147a8
test ebx, ebx
je 0x100147a8
call edi
test eax, eax
je 0x1001479f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1001479f
test byte [ebp - 8], 1
jne 0x100147a8
or dword [ebp + 0x10], 0x200000
jmp 0x100147db
mov eax, dword [0x10029354]
cmp eax, dword [ebp - 0x18]
je 0x100147db
push eax
call esi
test eax, eax
je 0x100147db
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100147db
mov eax, dword [0x10029358]
cmp eax, dword [ebp - 0x18]
je 0x100147db
push eax
call esi
test eax, eax
je 0x100147db
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10029350]
call esi
test eax, eax
je 0x100147f7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100147f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c35a
leave
ret
Function at 0x4013ca
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x4da8b0], 1
mov dword [0x4da8b4], 1
mov dword [0x4da8b8], 1
mov dword [0x4da8a4], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x401415
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x401438
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x40145a
cmp eax, 0x20b
je 0x40147f
jmp 0x4014aa
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x40146c
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014af
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x401497
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014af
mov eax, 0
leave
ret

Function at 0x4022e0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
call dword [0x43d3e4]
mov dword [esp + 8], 0x4b
mov dword [esp + 0xc], eax
mov ebx, eax
mov dword [esp + 4], 1
mov dword [esp], str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
call sym._fwrite
mov dword [esp], ebx
call sym._fflush
mov dword [esp], 1
call sym._exit
lea esi, [esi]
nop

Function at 0x402370
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [0x4da41c]
test eax, eax
je 0x40237f
call eax
mov dword [esp], 2
call dword [0x43d3e4]
mov dword [esp + 8], 0xe
mov dword [esp + 0xc], eax
mov ebx, eax
mov dword [esp + 4], 1
mov dword [esp], str.out_of_memory_n
call sym._fwrite
mov dword [esp], ebx
call sym._fflush
mov dword [esp], 1
call sym._exit
lea esi, [esi]
lea esi, [esi]

Function at 0x40ce10
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x4d8dd0]
cmp eax, 0xdab
jg 0x40ce2c
mov dword [eax*4 + 0x4d5720], ecx
add eax, 1
mov dword [0x4d8dd0], eax
ret
push ebx
sub esp, 0x18
mov dword [esp], 2
call dword [0x43d3e4]
mov dword [esp + 8], 0x3f
mov dword [esp + 0xc], eax
mov ebx, eax
mov dword [esp + 4], 1
mov dword [esp], str._GC__cannot_register_global_variable__too_many_global_variables
call sym._fwrite
mov dword [esp], ebx
call sym._fflush
mov dword [esp], 1
call sym._exit
lea esi, [esi]
lea esi, [esi]
Function at 0x419184
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._vfprintf
call sym._abort

Function at 0x419cd4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x419cf3
mov eax, 0
jmp 0x419d37
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x419d16
mov eax, 0
jmp 0x419d37
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x419d32
mov eax, 0
jmp 0x419d37
mov eax, 1
leave
ret

Function at 0x419d39
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x419d98
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x419d90
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x419d90
mov eax, dword [ebp - 4]
jmp 0x419dac
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x419d6d
mov eax, 0
leave
ret
Function at 0x423cf0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
call sym.___mingw_get_msvcrt_handle
mov dword [esp + 4], str.rand_s
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x423d4b
mov dword [ebp - 0xc], sym._mingw_rand_s
mov dword [esp], str.advapi32.dll
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call eax
sub esp, 4
mov dword [esp + 4], str.SystemFunction036
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [0x4db310], eax
mov eax, dword [ebp - 0xc]
mov dword [sym._init_rand_s], eax
mov eax, dword [sym._init_rand_s]
mov edx, dword [ebp + 8]
mov dword [esp], edx
call eax
leave
ret

Function at 0x424e4d
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
add esp, 0xffffff80
cmp dword [ebp + 8], 0
je 0x424f66
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._pthread_spin_destroy
cmp eax, 1
jne 0x424f5c
mov dword [ebp - 0x77], 0x6f727245
mov dword [ebp - 0x73], 0x6c632072
mov dword [ebp - 0x6f], 0x696e6165
mov dword [ebp - 0x6b], 0x7520676e
mov dword [ebp - 0x67], 0x70732070
mov dword [ebp - 0x63], 0x6b5f6e69
mov dword [ebp - 0x5f], 0x20737965
mov dword [ebp - 0x5b], 0x20726f66
mov dword [ebp - 0x57], 0x65726874
mov dword [ebp - 0x53], 0x206461
lea eax, [ebp - 0x4f]
mov ecx, 0x43
mov ebx, 0
mov dword [eax], ebx
mov dword [eax + ecx - 4], ebx
lea edx, [eax + 4]
and edx, 0xfffffffc
sub eax, edx
add ecx, eax
and ecx, 0xfffffffc
shr ecx, 2
mov edi, edx
mov eax, ebx
rep stosd dword es:[edi], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov dword [esp + 8], 0xa
lea edx, [ebp - 0x77]
add edx, 0x27
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__ultoa]
call eax
mov dword [ebp - 0xc], 0x27
jmp 0x424f12
add dword [ebp - 0xc], 1
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x424f29
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
jbe 0x424f0e
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
ja 0x424f47
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0xa
mov eax, dword [ebp - 0xc]
add eax, 1
mov byte [ebp + eax - 0x77], 0
lea eax, [ebp - 0x77]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call eax
sub esp, 4
call sym._abort
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x424f67
nop
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
Function at 0x425d6e
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call eax
mov dword [0x43d404], eax
mov eax, dword [0x43d404]
cmp eax, 0xffffffff
jne 0x425d8f
call sym._abort
nop
leave
ret

Function at 0x425f01
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], 0xffffffff
mov dword [esp + 4], sym._pthread_tls_init
mov dword [esp], 0x4db324
call sym.__pthread_once_raw
mov eax, dword [0x43d404]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x425f48
mov eax, dword [ebp - 0x20]
jmp 0x426093
call sym._pop_pthread_mem
mov dword [ebp - 0x20], eax
mov eax, dword [entry3]
test eax, eax
je 0x425f5f
cmp dword [ebp - 0x20], 0
jne 0x425f69
mov eax, 0
jmp 0x426093
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x24], 1
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
call eax
sub esp, 0x10
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1c], 0xffffffff
mov eax, dword [ebp - 0x20]
lea edx, [eax + 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._replace_spin_keys
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x64], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x20]
lea edi, [eax + 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call eax
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
call eax
sub esp, 0x1c
test eax, eax
jne 0x42603b
call sym._abort
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetThreadPriority]
call eax
sub esp, 4
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x68], 0
mov eax, dword [ebp - 0x20]
movzx edx, byte [eax + 0x20]
and edx, 0xffffffcf
or edx, 0x10
mov byte [eax + 0x20], dl
mov eax, dword [0x43d404]
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
test eax, eax
jne 0x426090
call sym._abort
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x426157
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
call sym.___pthread_self_lite
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb4]
mov dword [esp], eax
call sym.__pthread_cleanup_dest
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x20]
and eax, 0x30
test al, al
jne 0x4261b2
mov eax, dword [ebp - 0x14]
add eax, 0x70
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll_longjmp]
call eax
mov eax, dword [0x43d404]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4262dc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x426244
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x426201
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._push_pthread_mem
mov dword [ebp - 0x10], 0
mov eax, dword [0x43d404]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
jmp 0x4262dc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x68], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x426274
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
and eax, 4
test eax, eax
je 0x4262dc
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._push_pthread_mem
mov dword [ebp - 0x10], 0
mov eax, dword [0x43d404]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__endthreadex]
call eax