joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442900
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xf8
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x78]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + 0x20]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x1c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], 0
jmp 0x44296c
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx + 0x18]
jae 0x4429b3
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00497b28
add esp, 8
test eax, eax
jne 0x4429b1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x4429b5
jmp 0x442963
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x472870
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9147
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4f6f3c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.00471760
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.00471760
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.00471760
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x44
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.00472170
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.00472170
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.00472170
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x14], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x1c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x24], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x28], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x2c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x30]
mov word [edx + 0x30], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x32]
mov word [edx + 0x32], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x38]
mov dword [edx + 0x38], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [edx + 0x3c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
mov dword [edx + 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x472b50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9237
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4f6f3c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.00471680
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.00471680
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.00471680
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x44
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.00472190
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.00472190
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.00472190
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x14], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x1c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x24], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x28], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x2c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x30]
mov word [edx + 0x30], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x32]
mov word [edx + 0x32], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x38]
mov dword [edx + 0x38], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [edx + 0x3c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
mov dword [edx + 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4873a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dbe80
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x4f6f3c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi + 4], 0
push 0x4fad14
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0
mov dword [esi], 0x4fadf8
call fcn.0043c850
mov byte [esp + 0x38], 1
call fcn.00486574
lea ecx, [esp + 0xc]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov byte [esp + 0x38], 0
call fcn.0043c920
mov dword [esi], 0x4fae1c
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret
Function at 0x4b83b8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x4b843d
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00492fe0
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4b8400
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4b8422
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x4b8498
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.004b8108
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
cmp esi, 3
pop ecx
pop ecx
jb 0x4b8484
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x106
jae 0x4b8498
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x4b83c1
pop esi
pop ebx
leave
ret
Function at 0x662814b0
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x64
lea eax, [ebp - 0xe]
mov ecx, eax
call fcn.662e8700
lea eax, [ebp - 0x28]
lea edx, [ebp - 0xe]
mov dword [esp + 4], edx
mov dword [esp], str.https:__nodejs.org_dist_v20.11.0_node_v20.11.0_win_x86.zip
mov ecx, eax
call fcn.6631c000
sub esp, 8
lea eax, [ebp - 0xe]
mov ecx, eax
call fcn.662e8730
lea eax, [ebp - 0xd]
mov ecx, eax
call fcn.662e8700
lea eax, [ebp - 0x40]
lea edx, [ebp - 0xd]
mov dword [esp + 4], edx
mov dword [esp], str.node.zip
mov ecx, eax
call fcn.6631c000
sub esp, 8
lea eax, [ebp - 0xd]
mov ecx, eax
call fcn.662e8730
lea eax, [ebp - 0x40]
mov dword [esp], 0
mov ecx, eax
call fcn.6631c8f0
sub esp, 4
mov ebx, eax
lea eax, [ebp - 0x28]
mov dword [esp], 0
mov ecx, eax
call fcn.6631c8f0
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.urlmon.dll_URLDownloadToFileA
sub esp, 0x14
mov dword [ebp - 0xc], eax
jmp 0x6628161d
mov dword [esp + 4], str.Download_Failed
mov dword [esp], 0x663388a0
call fcn.6632bcb0
mov dword [esp], 0x66329dc0
mov ecx, eax
call fcn.662f1210
sub esp, 4
mov dword [esp + 4], str.Retrying_in_5sec
mov dword [esp], 0x663388a0
call fcn.6632bcb0
mov dword [esp], 0x66329dc0
mov ecx, eax
call fcn.662f1210
sub esp, 4
mov dword [esp], 0x1388
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
lea eax, [ebp - 0x40]
mov dword [esp], 0
mov ecx, eax
call fcn.6631c8f0
sub esp, 4
mov ebx, eax
lea eax, [ebp - 0x28]
mov dword [esp], 0
mov ecx, eax
call fcn.6631c8f0
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.urlmon.dll_URLDownloadToFileA
sub esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
js 0x6628156e
mov dword [esp + 4], str.Download_successful
mov dword [esp], 0x663388a0
call fcn.6632bcb0
lea eax, [ebp - 0x40]
mov ecx, eax
call fcn.6631c6f0
lea eax, [ebp - 0x28]
mov ecx, eax
call fcn.6631c6f0
jmp 0x66281695
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x6628a910
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.662988c0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.662988c0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x6628a970
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x66385054]
test esi, esi
jle 0x6628aa90
mov eax, dword [0x66385058]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x6628a9a4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6628aa27
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6628a990
mov dword [esp], ebx
call fcn.6628b160
mov edi, eax
test eax, eax
je 0x6628aab7
mov eax, dword [0x66385058]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6628b2a0
mov edx, dword [0x66385058]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6628aa97
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6628aa20
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x6628aa30
add dword [0x66385054], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x66385058]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6628aa20
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6628a910
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x6628a9ae
mov eax, dword [0x66385058]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6628a910
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6628a910
lea esi, [esi]
nop

Function at 0x6628add0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x66385064
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6638505c]
sub esp, 4
test ebx, ebx
je 0x6628ae25
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6628ae1e
test esi, esi
je 0x6628ae1e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6628ae00
mov dword [esp], 0x66385064
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6628b160
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x66280000], 0x5a4d
jne 0x6628b185
mov ecx, dword [0x6628003c]
cmp dword [ecx + 0x66280000], 0x4550
lea edx, [ecx + 0x66280000]
je 0x6628b190
ret
cmp word [ecx + 0x66280018], 0x10b
jne 0x6628b185
push esi
movzx eax, word [ecx + 0x66280014]
push ebx
movzx esi, word [ecx + 0x66280006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x66280000
test si, si
je 0x6628b1d8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6628b1ce
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x6628b1da
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x6628b1c0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x66297660
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
mov esi, eax
push ebx
sub esp, 0x14
mov eax, dword [0x66385b28]
cmp eax, 2
je 0x662976eb
test eax, eax
je 0x662976a8
cmp eax, 1
jne 0x6629769b
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp], 1
call ebx
mov eax, dword [0x66385b28]
sub esp, 4
cmp eax, 1
je 0x66297680
cmp eax, 2
je 0x662976eb
add esp, 0x14
pop ebx
pop esi
ret
mov eax, 1
xchg dword [0x66385b28], eax
test eax, eax
jne 0x66297710
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp], 0x66385b40
call ebx
sub esp, 4
mov dword [esp], 0x66385b58
call ebx
sub esp, 4
mov dword [esp], 0x66297730
call fcn.662813c0
mov dword [0x66385b28], 2
lea eax, [esi + esi*2]
lea eax, [eax*8 + 0x66385b40]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
cmp eax, 2
je 0x662976e1
mov eax, dword [0x66385b28]
cmp eax, 1
je 0x6629767a
jmp 0x66297696

Function at 0x6629b090
Capabilities:
Print debug messages

Disassembly:
push edi
pxor xmm0, xmm0
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
sub esp, 0x84
movups xmmword [ebp - 0x23], xmm0
movdqu xmm1, xmmword [str.Error_cleaning_up_spin_keys_for_thread]
movdqu xmm2, xmmword [0x6633e0d0]
movdqu xmm3, xmmword [0x6633e0e0]
movups xmmword [ebp - 0x43], xmm0
movups xmmword [ebp - 0x73], xmm1
movups xmmword [ebp - 0x63], xmm2
movups xmmword [ebp - 0x53], xmm3
movups xmmword [ebp - 0x33], xmm0
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [ebp - 0x4c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [ebp - 0x4c], 0
je 0x6629b143
mov eax, 0x27
lea edx, [ebp - 0x73]
jmp 0x6629b115
cmp eax, 0x6a
je 0x6629b132
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x6629b110
cmp eax, 0x6a
je 0x6629b132
add ecx, 2
mov byte [ebp + eax - 0x73], 0xa
mov byte [ebp + ecx - 0x73], 0
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sub.msvcrt.dll_abort
mov ecx, 0x28
mov eax, 0x27
lea edx, [ebp - 0x73]
jmp 0x6629b128

Function at 0x6629b4d0
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x66385bd0], 1
je 0x6629b588
push edi
mov eax, 0x66385bd0
push esi
push ebx
sub esp, 0x10
call fcn.6629ae70
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call fcn.6629a6f0
mov edi, dword [0x66385bd0]
test edi, edi
jne 0x6629b540
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x663370ac], eax
cmp eax, 0xffffffff
je 0x66331025
mov dword [0x66385bd0], 1
mov dword [esp], esi
call fcn.6629aa30
test ebx, ebx
je 0x6629b57a
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp fcn.6629b160
cmp edi, 1
je 0x6629b522
mov dword [esp], 2
call dword [0x6633708c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x66385bd0
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], esi
call fcn.6629aa30
test ebx, ebx
jne 0x6629b52e
add esp, 0x10
pop ebx
pop esi
pop edi
ret
ret
Function at 0x6629b590
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call fcn.6629b250
mov edx, dword [entry3]
test edx, edx
je 0x6629b6c0
mov ebx, eax
test eax, eax
je 0x6629b6c0
mov dword [eax + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x18], eax
sub esp, 0x10
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.6629ad70
cmp eax, 1
je 0x6629b6cc
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x14], 0
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
call ebp
lea edx, [ebx + 0x14]
mov dword [esp + 8], edi
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je fcn.6633102a
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x663370ac]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x6629b6d1
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x2c
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.6629b090
jmp fcn.6633102a

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

Disassembly:
sub esp, 0x1c
call fcn.6629b4d0
mov eax, dword [0x663370ac]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x6629b708
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.6629b590
Function at 0x6629b9d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x6629ba00
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x6629bad0
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
cmp eax, 1
je 0x6629bb00
cmp eax, 3
jne 0x6629b9eb
mov eax, dword [0x663370ac]
cmp eax, 0xffffffff
je 0x6629b9eb
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x6629b9eb
lea esi, [eax + 0x1c]
lea edi, [eax + 0x38]
test byte [eax + 0x20], 0x30
je 0x6629bb30
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x6629ba49
call fcn.6629b710
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x6629ba7b
mov dword [esp], eax
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebp
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x6629ba6d
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [esp], esi
call fcn.6629abb0
mov dword [esp], edi
call fcn.6629ad70
cmp eax, 1
je 0x6629bbf6
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x6629bbea
mov eax, dword [0x663370ac]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x6629b9eb
mov eax, dword [0x66385bac]
test eax, eax
je 0x6629b9eb
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x66385bac], 0
sub esp, 4
jmp 0x6629b9eb
mov dword [esp + 4], 0x6629ade0
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x66385bac], eax
mov eax, 1
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x6629bba0
test eax, eax
je 0x6629bb4a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
je 0x6629bb67
call fcn.6629b710
test byte [ebx + 0x24], 4
je 0x6629bbe0
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x6629ba7b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x14], 0
sub esp, 4
mov dword [esp], esi
call fcn.6629abb0
jmp 0x6629ba83
test eax, eax
je 0x6629bbe0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x18], 0
sub esp, 4
mov dword [esp], esi
call fcn.6629abb0
mov dword [esp], edi
call fcn.6629ad70
cmp eax, 1
je 0x6629bbf6
mov dword [ebx + 0x38], 0xffffffff
jmp 0x6629b9eb
mov dword [esp], esi
call fcn.6629abb0
jmp 0x6629bbbf
mov eax, ebx
call fcn.6629b310
jmp 0x6629baa9
call fcn.6629b090
lea esi, [esi]
nop