joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100aafbe
Capabilities:
Receive http response

Disassembly:
push 0x70
mov eax, 0x102548f5
call fcn.10236073
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 8]
call fcn.1009eef5
xor ebx, ebx
cmp dword [eax + 0x120], ebx
jne 0x100ab03c
push ebx
push dword [edi + 0x40]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x100ab10e
call dword [sym.imp.kernel32.dll_GetLastError]
push str.WinHttpQueryDataAvaliable
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.100047be
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.100a95c9
add esp, 0xc
push eax
push esi
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.1009f4b3
lea ecx, [ebp - 0x58]
call fcn.10006f54
lea ecx, [ebp - 0x28]
call fcn.10006f54
jmp 0x100ab10e
mov ecx, dword [edi + 8]
call fcn.1009eef5
mov esi, dword [eax + 0x120]
test esi, esi
mov eax, 0x10000
cmove esi, eax
cmp dword [ebp + 0xc], esi
jae 0x100ab070
cmp byte [ebp + 0x10], bl
jne 0x100ab070
push dword [edi + 0x2c]
mov ecx, edi
push dword [edi + 0x28]
call fcn.1009ef6e
jmp 0x100ab10e
lea eax, [ebp - 0x7c]
mov ecx, edi
push eax
call fcn.1009ed4e
push esi
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 2
call fcn.10081fc0
lea ecx, [edi + 0x84]
test eax, eax
jne 0x100ab09d
push esi
call fcn.100d3840
jmp 0x100ab09f
mov dword [ecx], eax
mov eax, dword [edi + 0x84]
test eax, eax
jne 0x100ab0af
mov eax, dword [edi + 0x88]
push ebx
push esi
push eax
push dword [edi + 0x40]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x100ab106
call dword [sym.imp.kernel32.dll_GetLastError]
push 0x10270010
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.100047be
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.100a95c9
add esp, 0xc
push eax
push esi
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.1009f4b3
lea ecx, [ebp - 0x70]
call fcn.10006f54
lea ecx, [ebp - 0x40]
call fcn.10006f54
lea ecx, [ebp - 0x7c]
call fcn.1007f828
call fcn.10236022
ret
Function at 0x100ab9b4
Capabilities:
Encode data using base64

Disassembly:
push 0x10
mov eax, 0x10254a89
call fcn.10236040
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov edi, dword [ebp + 8]
mov dword [edi], ecx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 7
mov word [edi], ax
mov eax, dword [ebp + 0x10]
push 3
mov dword [ebp - 4], ecx
pop ecx
mov dword [ebp - 0x1c], 1
cmp eax, ecx
jb 0x100abaab
xor edx, edx
div ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov al, byte [ecx + 1]
mov bl, byte [ecx]
mov bh, byte [ecx + 2]
mov byte [ebp - 0xd], al
mov eax, dword [0x1030d2c0]
movzx ecx, bl
shr ecx, 2
movsx ax, byte [ecx + eax]
mov ecx, edi
movzx eax, ax
push eax
call fcn.100d3840
and bl, 3
shl bl, 4
movzx ecx, bl
mov bl, byte [ebp - 0xd]
movzx eax, bl
shr eax, 4
or ecx, eax
mov eax, dword [0x1030d2c0]
movsx ax, byte [ecx + eax]
mov ecx, edi
movzx eax, ax
push eax
call fcn.100d3840
movzx esi, bh
and bl, 0xf
shl bl, 2
mov eax, esi
shr eax, 6
movzx ecx, bl
or ecx, eax
mov eax, dword [0x1030d2c0]
movsx ax, byte [ecx + eax]
mov ecx, edi
movzx eax, ax
push eax
call fcn.100d3840
mov eax, dword [0x1030d2c0]
and esi, 0x3f
mov ecx, edi
movsx ax, byte [esi + eax]
movzx eax, ax
push eax
call fcn.100d3840
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
sub eax, 3
add ecx, 3
mov dword [ebp + 0x10], eax
sub dword [ebp - 0x18], 1
mov dword [ebp - 0x14], ecx
jne 0x100ab9fe
jmp 0x100abaae
mov ecx, dword [ebp + 0xc]
sub eax, 1
je 0x100abb1b
sub eax, 1
jne 0x100abb68
mov bl, byte [ecx]
mov bh, byte [ecx + 1]
mov eax, dword [0x1030d2c0]
movzx ecx, bl
shr ecx, 2
movsx ax, byte [ecx + eax]
mov ecx, edi
movzx eax, ax
push eax
call fcn.100d3840
and bl, 3
movzx eax, bh
shr eax, 4
shl bl, 4
movzx ecx, bl
or ecx, eax
mov eax, dword [0x1030d2c0]
movsx ax, byte [ecx + eax]
mov ecx, edi
movzx eax, ax
push eax
call fcn.100d3840
mov eax, dword [0x1030d2c0]
and bh, 0xf
shl bh, 2
movzx ecx, bh
movsx ax, byte [ecx + eax]
movzx eax, ax
push eax
jmp 0x100abb58
mov bl, byte [ecx]
mov eax, dword [0x1030d2c0]
movzx ecx, bl
shr ecx, 2
movsx ax, byte [ecx + eax]
mov ecx, edi
movzx eax, ax
push eax
call fcn.100d3840
mov eax, dword [0x1030d2c0]
and bl, 3
shl bl, 4
movzx ecx, bl
movsx ax, byte [ecx + eax]
mov ecx, edi
movzx eax, ax
push eax
call fcn.100d3840
push 0x3d
mov ecx, edi
call fcn.100d3840
push 0x3d
mov ecx, edi
call fcn.100d3840
mov eax, edi
call fcn.1023600e
ret
Function at 0x100d3840
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x100d384f
pop dword [ebp - 0x10]
mov eax, 0xe5a71e78
sub eax, 0xd599e629
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xfb85bdab
add dword [ebp - 0x20], 0x52cc87a0
mov dword [ebp - 0x1c], 0x18353297
sub dword [ebp - 0x1c], 0xe601e652
mov dword [ebp - 0x18], 0x5e96e967
add dword [ebp - 0x18], 0xedb55ac7
mov dword [ebp - 0x14], 0x80ddbff7
add dword [ebp - 0x14], 0x7f224009
lea eax, [ebp - 0x20]
push eax
mov eax, 0x68ad7b2b
add eax, 0xa777e63d
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xc2150284
add dword [ebp - 0x20], 0xb25d66d2
mov dword [ebp - 0x1c], 0x2a0f6c6e
sub dword [ebp - 0x1c], 0xe8a30af9
mov dword [ebp - 0x18], 0xf8d64854
sub dword [ebp - 0x18], 0x9566dbe8
mov dword [ebp - 0x14], 0xb737e18a
sub dword [ebp - 0x14], 0xb737e18a
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xdc3931e9
add eax, 0x33ec2fbb
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x63f8e
push 0
call eax
mov ecx, 0x34744eb5
sub ecx, 0x3473f454
xor edx, edx
add edx, eax
mov edi, 0xbd80ea70
add edi, 0x52b37790
add edi, dword [ebp - 0x10]
mov esi, 0x16706457
sub esi, 0xace1f52
mov ebx, dword [edi]
xor ebx, esi
sub dword [ebp - 8], 0xc518e25d
mov dword [edx], ebx
add edx, 0xb2067f98
sub edx, 0xb2067f94
add edi, 0x97cd562b
add edi, 0x6832a9d9
loop 0x100d3973
add eax, 0x15c57
mov ebx, eax
add eax, 0xfb88bcb2
sub eax, 0xfb88bcad
mov ecx, 0x10000000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x100f6760
Capabilities:
Query environment variable

Disassembly:
cmp dword [0x1031e3e8], 0
je 0x100f676d
or eax, 0xffffffff
ret
mov dword [0x1031e3e8], 1
call fcn.100ac180
push str.XML_MEM_BREAKPOINT
mov dword [0x1031e3f8], eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x100f67a6
push 0x1031e400
push 0x10276d3c
push eax
call fcn.100f6700
add esp, 0xc
push str.XML_MEM_TRACE
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x100f67cb
push 0x1031e404
push 0x10276d50
push eax
call fcn.100f6700
add esp, 0xc
xor eax, eax
ret

Function at 0x100fa210
Capabilities:
Parse credit card information

Disassembly:
sub esp, 0x7d4
mov eax, dword [0x1030fff4]
xor eax, esp
mov dword [esp + 0x7d0], eax
push esi
push edi
mov edi, dword [esp + 0x7e0]
xor esi, esi
push 0xd
push str.urn:publicid:
push edi
call fcn.100e34e0
add esp, 0xc
test eax, eax
je 0x100fa25c
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x7d0]
xor ecx, esp
call fcn.10236000
add esp, 0x7d4
ret
mov al, byte [edi + 0xd]
add edi, 0xd
test al, al
je 0x100fa36e
nop word [eax + eax]
cmp esi, 0x7cc
ja 0x100fa366
cmp al, 0x2b
jne 0x100fa28a
mov byte [esp + esi + 8], 0x20
jmp 0x100fa35a
cmp al, 0x3a
jne 0x100fa29e
mov word [esp + esi + 8], 0x2f2f
inc edi
add esi, 2
jmp 0x100fa35c
cmp al, 0x3b
jne 0x100fa2b2
mov word [esp + esi + 8], 0x3a3a
inc edi
add esi, 2
jmp 0x100fa35c
cmp al, 0x25
jne 0x100fa356
mov al, byte [edi + 1]
cmp al, 0x32
jne 0x100fa318
cmp byte [edi + 2], 0x42
jne 0x100fa2d5
mov byte [esp + esi + 8], 0x2b
add edi, 3
inc esi
jmp 0x100fa35c
cmp byte [edi + 2], 0x46
jne 0x100fa2e6
mov byte [esp + esi + 8], 0x2f
add edi, 3
inc esi
jmp 0x100fa35c
cmp byte [edi + 2], 0x37
jne 0x100fa2f7
mov byte [esp + esi + 8], 0x27
add edi, 3
inc esi
jmp 0x100fa35c
mov al, byte [edi + 2]
cmp al, 0x33
jne 0x100fa309
mov byte [esp + esi + 8], 0x23
add edi, 3
inc esi
jmp 0x100fa35c
cmp al, 0x35
jne 0x100fa34f
mov byte [esp + esi + 8], 0x25
add edi, 3
inc esi
jmp 0x100fa35c
cmp al, 0x33
jne 0x100fa34f
cmp byte [edi + 2], 0x41
jne 0x100fa32d
mov byte [esp + esi + 8], 0x3a
add edi, 3
inc esi
jmp 0x100fa35c
cmp byte [edi + 2], 0x42
jne 0x100fa33e
mov byte [esp + esi + 8], 0x3b
add edi, 3
inc esi
jmp 0x100fa35c
cmp byte [edi + 2], 0x46
jne 0x100fa34f
mov byte [esp + esi + 8], 0x3f
add edi, 3
inc esi
jmp 0x100fa35c
mov byte [esp + esi + 8], 0x25
jmp 0x100fa35a
mov byte [esp + esi + 8], al
inc esi
inc edi
mov al, byte [edi]
test al, al
jne 0x100fa270
cmp esi, 0x7d0
jae 0x100fa397
lea eax, [esp + 8]
mov byte [esp + esi + 8], 0
push eax
call fcn.100e31c0
mov ecx, dword [esp + 0x7dc]
add esp, 4
pop edi
pop esi
xor ecx, esp
call fcn.10236000
add esp, 0x7d4
ret
call fcn.100d3840
int3
Function at 0x10156948
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0
push 0x14
and dword [edi], 0
call fcn.100d3840
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10156967
push 7
pop eax
jmp 0x101569db
cmp byte [0x1030db34], 0
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
je 0x101569b2
mov eax, dword [0x1030dc24]
test eax, eax
je 0x1015698f
push 0xc8
call eax
pop ecx
test eax, eax
jne 0x101569b2
lea eax, [esi + 4]
mov dword [esi + 8], ebp
push eax
xor eax, eax
mov dword [esi + 0xc], ebx
push eax
push esi
push 0x10156a40
push eax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x101569bf
push 0x14
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [esi + 8], 0
jne 0x101569d5
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call ebp
pop ecx
mov dword [esi + 0x10], eax
pop ebp
mov dword [edi], esi
xor eax, eax
pop ebx
pop edi
pop esi
ret
Function at 0x40620e
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x40628f
mov byte [esi + 8], 1
call fcn.004062bd
cmp dword [esi + 0x10], 0
je 0x40628f
test al, al
je 0x40622e
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.004068e9
test al, al
jne 0x406255
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.00407727
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call fcn.00406382
cmp dword [esi + 0x18], 0
jne 0x40627c
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.00407727
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esi + 0x10], 0
mov byte [esi + 9], 1
je 0x40628f
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret
Function at 0x401500
Capabilities:
Execute command

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x24
call sym._mcount
call dbg._monstartup
call dbg.__main
mov eax, dword [0x48902c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 1
jmp 0x401595
mov dword [esp], section..rdata
call sym._system
mov dword [esp + 4], str.Introduce_la_calificacion
mov dword [esp], 0x4881c0
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov ecx, edx
call method.std::ostream.operator___int_
sub esp, 4
mov dword [esp + 4], 0x48901e
mov dword [esp], eax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
lea eax, [ebp - 0x18]
mov dword [esp], eax
mov ecx, 0x487f80
call method.std::istream.operator___float_
sub esp, 4
fld dword [ebp - 0x18]
fld dword [ebp - 0x10]
fmulp st(1)
fstp dword [ebp - 0x10]
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 5
jle 0x401531
fld dword [ebp - 0x10]
fld dword [0x489030]
fdivp st(1)
fstp dword [ebp - 0x14]
mov dword [esp], section..rdata
call sym._system
mov dword [esp + 4], str.Promedio:_t
mov dword [esp], 0x4881c0
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov edx, eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov ecx, edx
call method.std::ostream.operator___float_
sub esp, 4
mov dword [esp], method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov ecx, eax
call method.std::ostream.operator___std::ostream____std::ostream__
sub esp, 4
call sym._getche
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret

Function at 0x40d0f0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable
Function at 0x40d150
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x492058]
test esi, esi
jle 0x40d23d
mov edi, dword [0x49205c]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x40d184
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x40d236
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x40d170
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x40d27a
lea ebx, [esi + esi*2]
mov esi, dword [0x49205c]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x49205c]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40d25a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x40d22f
sub eax, 0x40
and eax, 0xffffffbf
je 0x40d22f
mov eax, dword [esp + 0x20]
add ebx, dword [0x49205c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x40d244
add dword [0x492058], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x40d18e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x49205c]
mov eax, dword [eax + ebx + 4]
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 dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]

Function at 0x40d740
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x492408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x492400]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x40d795
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 0x40d78e
test esi, esi
je 0x40d78e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40d770
mov dword [esp], 0x492408
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40d9b0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x40d9e8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40d9de
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40d9ea
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x40d9d0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x41a0e0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push esi
push ebx
mov esi, eax
sub esp, 0x2e4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
sub esp, 4
cmp eax, 0xffffffff
jne 0x41a110
add esp, 0x2e4
mov eax, 0xffffffff
pop ebx
pop esi
ret
lea eax, [esp + 0x14]
mov dword [esp], esi
mov dword [esp + 0x14], 0x10003
mov ebx, 0xffffffff
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
sub esp, 8
test eax, eax
cmovne ebx, dword [esp + 0xcc]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
sub esp, 4
add esp, 0x2e4
mov eax, ebx
pop ebx
pop esi
ret
Function at 0x41c0c0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x492e70]
test ebx, ebx
je 0x41c0f0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx], eax
mov eax, dword [0x492e70]
test eax, eax
je 0x41c115
cmp dword [eax], 0xffffffff
je 0x41c138
add esp, 0x18
pop ebx
ret
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov ebx, eax
mov dword [0x492e70], eax
jmp 0x41c0ce
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x492e70], eax
jmp 0x41c0df
call sym._abort
lea esi, [esi]
Function at 0x41c5d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x492e74]
test eax, eax
je 0x41c724
call sym.__pthread_once_raw.constprop.5
mov eax, dword [0x492e70]
test eax, eax
je 0x41c750
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41c610
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._pop_pthread_mem
test eax, eax
mov ebx, eax
je 0x41c79c
mov eax, dword [entry3]
test eax, eax
je 0x41c79c
mov dword [ebx + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x38], 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 esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
sub esp, 0x10
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x34], 0xffffffff
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x14], 0
call esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
call esi
mov edx, eax
lea eax, [ebx + 0x14]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x41c7a3
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x68], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
mov dword [ebx + 0x64], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x492e70]
test eax, eax
je 0x41c776
mov dword [esp + 4], ebx
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x41c7a3
mov eax, ebx
jmp 0x41c608
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_once_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x492e74], eax
jmp 0x41c5e4
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x492e70], eax
jmp 0x41c5f6
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x492e70], eax
jmp 0x41c703
xor eax, eax
jmp 0x41c608
call sym._abort
nop
lea esi, [esi]
Function at 0x41cd10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
cmp dword [esp + 0x24], 3
je 0x41cd30
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret 0xc
mov eax, dword [0x492e70]
test eax, eax
je 0x41cea0
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41cd1c
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x41cd1c
test byte [eax + 0x20], 0x30
je 0x41cdf0
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x41ce90
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x41cda0
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 0x41cd92
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call sym._pthread_mutex_destroy
mov edx, dword [ebx + 0xac]
mov dword [ebx + 0x34], 0xffffffff
test edx, edx
je 0x41cef6
mov eax, dword [0x492e70]
test eax, eax
je 0x41ced0
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
mov eax, 1
add esp, 0x14
pop ebx
pop esi
ret 0xc
mov eax, dword [eax + 0x64]
test eax, eax
mov eax, dword [ebx + 0x18]
jne 0x41ce50
test eax, eax
je 0x41ce0a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x64], 1
test eax, eax
jne 0x41ce80
test byte [ebx + 0x24], 4
je 0x41ce67
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x41cd99
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x41cd99
test eax, eax
je 0x41ce60
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x18], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call sym._pthread_mutex_destroy
mov dword [ebx + 0x34], 0xffffffff
jmp 0x41cd1c
call sym.__pthread_cleanup_dest.part.3
jmp 0x41ce22
call sym.__pthread_cleanup_dest.part.3
jmp 0x41cd6e
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x492e70], eax
jmp 0x41cd3d
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x492e70], eax
jmp 0x41cdcd
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x41cdc0