joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3000b65f
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x3000f398
call fcn.3000b6c4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x30011cd4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x3000b402
cmp eax, esi
jne 0x3000b3f5
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x3000b405
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x3000b3dc
xor esi, esi
inc esi
mov eax, dword [0x30011cd0]
cmp eax, esi
jne 0x3000b418
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x3000b447
mov eax, dword [0x30011cd0]
test eax, eax
jne 0x3000b441
mov dword [0x30011cd0], esi
push 0x30001360
push 0x30001354
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x3000b447
jmp 0x3000b56b
mov dword [0x30011940], esi
mov eax, dword [0x30011cd0]
cmp eax, esi
jne 0x3000b46b
push 0x30001350
push 0x30001334
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x30011cd0], 2
cmp dword [ebp - 0x20], ebx
jne 0x3000b478
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x30011ce0], ebx
je 0x3000b499
push 0x30011ce0
call fcn.3000bbe4
pop ecx
test eax, eax
je 0x3000b499
push ebx
push 2
push ebx
call dword [0x30011ce0]
mov eax, dword [sym.imp.MSVCR80.dll__wcmdln]
cmp dword [eax], ebx
je 0x3000b56b
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x3000b503
cmp cx, bx
je 0x3000b4be
cmp dword [ebp - 0x1c], ebx
jne 0x3000b503
movzx ecx, word [eax]
cmp cx, bx
je 0x3000b4d3
cmp cx, 0x20
ja 0x3000b4d3
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x3000b4be
test byte [ebp - 0x40], 1
je 0x3000b4df
movzx ecx, word [ebp - 0x3c]
jmp 0x3000b4e2
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x30000000
call main
mov dword [0x3001193c], eax
cmp dword [0x30011930], ebx
jne 0x3000b548
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp cx, 0x22
jne 0x3000b514
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x3000b4a8
cmp dword [0x30011940], ebx
jne 0x3000b556
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x3001193c]
jmp 0x3000b577
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.3000b709
ret
call fcn.3000ad02
jmp 0x3000b39f
Function at 0x6f20c3e0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.6f2173f0
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.6f2173f0
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 0x6f20c440
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x6f254080]
test esi, esi
jle 0x6f20c560
mov eax, dword [0x6f254084]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x6f20c474
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6f20c4f7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6f20c460
mov dword [esp], ebx
call fcn.6f20cc30
mov edi, eax
test eax, eax
je 0x6f20c587
mov eax, dword [0x6f254084]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6f20cd70
mov edx, dword [0x6f254084]
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 0x6f20c567
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x6f20c4f0
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x6f20c500
add dword [0x6f254080], 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 [0x6f254084]
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 0x6f20c4f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6f20c3e0
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x6f20c47e
mov eax, dword [0x6f254084]
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.6f20c3e0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6f20c3e0
lea esi, cs:[esi]
nop
Function at 0x6f20c8a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6f254090
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6f254088]
sub esp, 4
test ebx, ebx
je 0x6f20c8f5
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
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x6f20c8ee
test eax, eax
jne 0x6f20c8ee
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6f20c8d0
mov dword [esp], 0x6f254090
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6f20cc30
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x6f200000], 0x5a4d
jne 0x6f20cc55
mov ecx, dword [0x6f20003c]
cmp dword [ecx + 0x6f200000], 0x4550
lea edx, [ecx + 0x6f200000]
je 0x6f20cc60
ret
cmp word [ecx + 0x6f200018], 0x10b
jne 0x6f20cc55
push esi
movzx eax, word [ecx + 0x6f200014]
push ebx
movzx esi, word [ecx + 0x6f200006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x6f200000
test si, si
je 0x6f20cca8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6f20cc9e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x6f20ccaa
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x6f20cc90
xor eax, eax
pop ebx
pop esi
ret
Function at 0x6f211ea0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x1c
mov dword [esp + 8], 0x2d
mov dword [esp + 4], str._buffer_overflow_detected_:_terminated_n
mov dword [esp], 2
call sub.msvcrt.dll__write
mov dword [esp], 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
sub esp, 4
test eax, eax
je 0x6f211ed9
mov ecx, 8
int 0x29
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 4], 0xc0000409
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push eax
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x6f211f00
Capabilities:
Terminate process

Disassembly:
sub esp, 0x1c
mov dword [esp + 8], 0x2c
mov dword [esp + 4], str._stack_smashing_detected_:_terminated_n
mov dword [esp], 2
call sub.msvcrt.dll__write
mov dword [esp], 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
sub esp, 4
test eax, eax
je 0x6f211f39
mov ecx, 2
int 0x29
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 4], 0xc0000409
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push eax
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x6f218670
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x6f236064], eax
cmp eax, 0xffffffff
je 0x6f2348c0
add esp, 0xc
ret
call sub.msvcrt.dll_abort

Function at 0x6f218690
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
push ebx
lea ebx, [ebp - 0x41]
sub esp, 0x50
movups xmmword [ebp - 0x21], xmm0
mov eax, dword [0x6f2540f4]
mov dword [ebp - 0xc], eax
xor eax, eax
movups xmmword [ebp - 0x41], xmm0
movups xmmword [ebp - 0x31], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 8], str.Error_cleaning_up_spin_keys_for_thread__lu._n
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x35
mov dword [esp], ebx
call fcn.6f21de90
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sub.msvcrt.dll_abort
lea esi, cs:[esi]
lea esi, [esi]

Function at 0x6f218a80
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x6f254af0], 1
je 0x6f218b38
push edi
mov eax, 0x6f254af0
push esi
push ebx
sub esp, 0x10
call fcn.6f218470
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call sym.hal.dll_pthread_mutex_lock
mov edi, dword [0x6f254af0]
test edi, edi
jne 0x6f218af0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x6f236064], eax
cmp eax, 0xffffffff
je 0x6f2348c5
mov dword [0x6f254af0], 1
mov dword [esp], esi
call sym.hal.dll_pthread_mutex_unlock
test ebx, ebx
je 0x6f218b2a
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp fcn.6f218710
cmp edi, 1
je 0x6f218ad2
mov dword [esp], 2
call dword [0x6f236040]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x6f254af0
mov dword [esp + 4], str._once__p_is__ld_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], esi
call sym.hal.dll_pthread_mutex_unlock
test ebx, ebx
jne 0x6f218ade
add esp, 0x10
pop ebx
pop esi
pop edi
ret
ret
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
mov eax, dword [0x14]
ud2

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

Disassembly:
sub esp, 0x1c
call fcn.6f218a80
mov eax, dword [0x6f236064]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x6f218c98
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.6f218b40
Function at 0x6f218dd0
Capabilities:
Set thread local storage value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x28
mov esi, dword [ecx]
call fcn.6f20cf00
mov dword [esp], 0x6f23605c
lea ebx, [esi + 0x1c]
call sym.hal.dll_pthread_mutex_lock
mov dword [esp], ebx
call sym.hal.dll_pthread_mutex_lock
call fcn.6f218a80
mov eax, dword [0x6f236064]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x3c], eax
mov dword [esp], ebx
call sym.hal.dll_pthread_mutex_unlock
lea eax, [esi + 0x70]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [ebp - 0x1c], esi
call sub.msvcrt.dll__setjmp3
mov dword [esp], 0x6f23605c
test eax, eax
jne 0x6f218f01
call sym.hal.dll_pthread_mutex_unlock
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 8]
test eax, eax
je 0x6f218f08
mov edx, dword [esi + 4]
mov dword [esp], edx
call eax
mov ebx, eax
mov dword [esp], 0x6f23605c
call sym.hal.dll_pthread_mutex_lock
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], ebx
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x6f218e90
call fcn.6f218ca0
mov esi, dword [ebp - 0x1c]
lea ebx, [esi + 0x1c]
mov dword [esp], ebx
call sym.hal.dll_pthread_mutex_lock
mov eax, esi
mov esi, dword [esi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x6f218eb4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov eax, dword [ebp - 0x1c]
xor edx, edx
cmp dword [eax + 0x14], 0
mov dword [eax + 0x18], edx
je 0x6f218f1b
mov dword [esp], ebx
call sym.hal.dll_pthread_mutex_unlock
mov dword [esp], ebx
call sym.hal.dll_pthread_mutex_destroy
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1c], 0xffffffff
mov dword [eax + 0x68], 1
mov dword [esp], 0x6f23605c
call sym.hal.dll_pthread_mutex_unlock
test eax, eax
jne 0x6f218f12
xor eax, eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push edx
jmp 0x6f218ee3
call sym.hal.dll_pthread_mutex_lock
jmp 0x6f218e90
mov ebx, pe_nt_image_headers32
jmp 0x6f218e6f
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov edi, dword [ebp - 0x1c]
mov dword [edi], 0xdeadbeef
mov dword [esp], ebx
call sym.hal.dll_pthread_mutex_unlock
mov dword [esp], ebx
call sym.hal.dll_pthread_mutex_destroy
mov eax, edi
call fcn.6f218a60
mov eax, dword [0x6f236064]
xor ecx, ecx
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
push ebx
jmp 0x6f218ee3
Function at 0x6f218f60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x6f218f88
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x6f219080
add esp, 0x14
pop ebx
pop esi
ret 0xc
cmp eax, 1
je 0x6f219050
cmp eax, 3
jne 0x6f218f79
mov eax, dword [0x6f236064]
cmp eax, 0xffffffff
je 0x6f218f79
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x6f218f79
test byte [eax + 0x20], 0x30
je 0x6f2190b0
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x6f218fcb
call fcn.6f218ca0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x6f218ffd
mov dword [esp], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x6f218fef
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call sym.hal.dll_pthread_mutex_destroy
lea eax, [ebx + 0x38]
mov dword [esp], eax
call sym.hal.dll_pthread_spin_destroy
cmp eax, 1
je 0x6f21917e
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x6f219172
mov eax, dword [0x6f236064]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x6f218f79
mov eax, dword [0x6f254ac8]
test eax, eax
je 0x6f21909c
mov dword [esp + 4], 0x6f2183e0
mov dword [esp], 1
call eax
mov dword [0x6f254acc], eax
add esp, 0x14
pop ebx
pop esi
ret 0xc
mov eax, dword [0x6f254acc]
test eax, eax
je 0x6f218f79
mov edx, dword [0x6f254ac4]
test edx, edx
je 0x6f21909c
mov dword [esp], eax
call edx
mov dword [0x6f254acc], 0
add esp, 0x14
pop ebx
pop esi
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x6f219124
test eax, eax
je 0x6f2190ca
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 0x6f2190e7
call fcn.6f218ca0
test byte [ebx + 0x24], 4
je 0x6f219162
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x6f218ffd
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x14], 0
sub esp, 4
mov dword [esp], eax
call sym.hal.dll_pthread_mutex_destroy
lea eax, [ebx + 0x38]
jmp 0x6f21900b
test eax, eax
je 0x6f219162
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x18], 0
sub esp, 4
mov dword [esp], eax
call sym.hal.dll_pthread_mutex_destroy
lea eax, [ebx + 0x38]
mov dword [esp], eax
call sym.hal.dll_pthread_spin_destroy
cmp eax, 1
je 0x6f21917e
mov dword [ebx + 0x38], 0xffffffff
jmp 0x6f218f79
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call sym.hal.dll_pthread_mutex_destroy
lea eax, [ebx + 0x38]
jmp 0x6f219149
mov eax, ebx
call fcn.6f2188c0
jmp 0x6f219031
call fcn.6f218690
lea esi, cs:[esi]
lea esi, cs:[esi]
Function at 0x6f219320
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x2c
mov eax, dword [0x6f2540f4]
mov dword [esp + 0x1c], eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [esp + 0x18]
mov dword [esp + 8], edx
lea edx, [esp + 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
mov edx, 1
sub esp, 0xc
test eax, eax
je 0x6f21937d
mov eax, dword [esp + 0x14]
test eax, eax
je 0x6f21937d
xor edx, edx
lea esi, cs:[esi]
mov ecx, eax
and ecx, 1
add edx, ecx
shr eax, 1
jne 0x6f219368
test edx, edx
mov eax, 1
cmove edx, eax
mov eax, dword [esp + 0x1c]
sub eax, dword [0x6f2540f4]
jne 0x6f21938f
mov eax, edx
add esp, 0x2c
ret
call fcn.6f211f00
lea esi, cs:[esi]
lea esi, [esi]

Function at 0x6f2193a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov eax, dword [0x6f2540f4]
mov dword [esp + 0x1c], eax
xor eax, eax
mov edi, dword [esp + 0x40]
mov eax, 1
test edi, edi
cmove edi, eax
call ebp
lea edx, [esp + 0x18]
mov dword [esp + 8], edx
lea edx, [esp + 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x6f21942e
mov eax, dword [esp + 0x14]
test eax, eax
je 0x6f219448
xor ebx, ebx
xor esi, esi
lea esi, cs:[esi]
nop
add esi, esi
cmp edi, ebx
jle 0x6f219410
test al, 1
je 0x6f219410
or esi, 1
add ebx, 1
shr eax, 1
jne 0x6f219400
mov dword [esp + 0x14], 0
call ebp
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
sub esp, 8
mov eax, dword [esp + 0x1c]
sub eax, dword [0x6f2540f4]
jne 0x6f21944e
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
xor esi, esi
xor ebx, ebx
jmp 0x6f21941c
call fcn.6f211f00
lea esi, cs:[esi]
lea esi, cs:[esi]
Function at 0x6f219460
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov eax, dword [0x6f2540f4]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx]
test edi, edi
je 0x6f2195a0
cmp eax, 1
je 0x6f2194c5
mov eax, ebx
call fcn.6f218470
mov esi, eax
lea eax, [eax + 4]
mov dword [esp], eax
mov dword [esp + 0x1c], eax
call sym.hal.dll_pthread_mutex_lock
mov ebp, dword [ebx]
test ebp, ebp
je 0x6f2194e0
cmp ebp, 1
jne 0x6f219570
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sym.hal.dll_pthread_mutex_unlock
test esi, esi
je 0x6f2194c5
mov eax, esi
call fcn.6f218710
xor eax, eax
mov edx, dword [esp + 0x2c]
sub edx, dword [0x6f2540f4]
jne 0x6f2195ea
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x20], 0x6f2187d0
mov dword [esp + 0x24], esi
call fcn.6f218a80
mov eax, dword [0x6f236064]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x6f2195d8
mov eax, dword [eax + 0xc]
mov dword [esp + 0x28], eax
lock or dword [esp], 0
call fcn.6f218a80
mov eax, dword [0x6f236064]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x6f2195c0
lea ecx, [esp + 0x20]
mov dword [eax + 0xc], ecx
lock or dword [esp], 0
call edi
call fcn.6f218a80
mov eax, dword [0x6f236064]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x6f2195b0
mov edx, dword [esp + 0x28]
mov dword [eax + 0xc], edx
mov dword [ebx], 1
jmp 0x6f2194ae
mov dword [esp], 2
call dword [0x6f236040]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], str._once__p_is__ld_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x6f2194ae
mov eax, 0x16
jmp 0x6f2194c7
call fcn.6f218b40
test eax, eax
jne 0x6f219556
jmp 0x6f2348ef
call fcn.6f218b40
test eax, eax
jne 0x6f219532
jmp 0x6f2348e4
call fcn.6f218b40
test eax, eax
jne 0x6f21950c
jmp 0x6f2348dd
call fcn.6f211f00
nop
mov eax, dword [class.c_tcp_client]
ud2
lea eax, [esp + 0x20]
mov dword [0], eax
ud2
mov eax, dword [esp + 0x28]
mov dword [0], eax
ud2

Function at 0x6f219830
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.6f218a80
mov eax, dword [0x6f236064]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x6f2198a8
lea ebp, [ebx + 0x38]
xor edi, edi
mov dword [esp], ebp
call sym.hal.dll_pthread_spin_lock
mov eax, dword [ebx + 0x28]
cmp dword [esp + 0x30], eax
jae 0x6f219884
mov eax, dword [ebx + 0x30]
mov edx, dword [esp + 0x30]
cmp byte [eax + edx], 0
je 0x6f219884
mov eax, dword [ebx + 0x2c]
mov edi, dword [eax + edx*4]
mov dword [esp], ebp
call sym.hal.dll_pthread_spin_unlock
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.6f218b40
mov ebx, eax
jmp 0x6f21985b
Function at 0x6f2198c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
call fcn.6f218a80
mov eax, dword [0x6f236064]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x6f2199e0
lea edi, [ebx + 0x38]
mov dword [esp], edi
call sym.hal.dll_pthread_spin_lock
cmp esi, dword [ebx + 0x28]
jae 0x6f219940
mov edx, dword [ebx + 0x2c]
mov eax, dword [esp + 0x44]
mov dword [edx + esi*4], eax
mov eax, dword [ebx + 0x30]
mov byte [eax + esi], 1
mov dword [esp], edi
call sym.hal.dll_pthread_spin_unlock
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebp, [esi + 1]
lea eax, [ebp*4]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
test eax, eax
je 0x6f2199ec
mov dword [esp + 0x1c], eax
mov dword [esp + 4], ebp
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov edx, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x18], eax
je 0x6f2199ec
mov ecx, dword [ebx + 0x28]
mov eax, ebp
mov dword [esp + 4], 0
mov dword [esp + 0x1c], edx
sub eax, ecx
lea ecx, [edx + ecx*4]
shl eax, 2
mov dword [esp], ecx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x28]
mov edx, dword [esp + 0x18]
mov ecx, ebp
mov dword [esp + 4], 0
sub ecx, eax
add eax, edx
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x30], eax
jmp 0x6f219908
call fcn.6f218b40
mov ebx, eax
jmp 0x6f2198f5
mov dword [esp], edi
call sym.hal.dll_pthread_spin_unlock
mov eax, 0xc
jmp 0x6f219930

Function at 0x6f219a20
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.6f218a80
mov eax, dword [0x6f236064]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x6f219a50
mov edx, dword [eax + 0xb4]
add esp, 0x1c
mov eax, edx
ret
call fcn.6f218b40
xor edx, edx
test eax, eax
jne 0x6f219a3d
mov eax, edx
add esp, 0x1c
ret

Function at 0x6f219a70
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.6f218a80
mov eax, dword [0x6f236064]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x6f219a98
mov eax, dword [eax + 0x18]
add esp, 0x1c
ret
call fcn.6f218b40
test eax, eax
jne 0x6f219a8d
add esp, 0x1c
ret

Function at 0x6f219b00
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.6f218a80
mov eax, dword [0x6f236064]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x6f219b28
add eax, 0xc
add esp, 0x1c
ret
call fcn.6f218b40
test eax, eax
jne 0x6f219b1d
jmp 0x6f219b20