joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10025fe0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ecx, 0x10325476
push edi
mov eax, 0x67452301
push esi
mov edi, 0xefcdab89
push ebx
mov esi, 0x98badcfe
sub esp, 0x7c
mov dword [esp + 0x68], ecx
mov ebx, dword [esp + 0x98]
mov dword [esp + 0x70], edi
mov edx, dword [esp + 0x94]
xor edi, edi
mov dword [esp + 0x74], eax
lea eax, [esp + 0x68]
mov ebp, dword [esp + 0x90]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x20], ebx
mov ecx, ebx
mov esi, ebx
mov dword [esp + 0x24], edi
shr ecx, 6
call fcn.10025550
mov ecx, ebx
and ecx, 0x3f
jne 0x10026140
mov ebx, 0x100b3b44
mov ecx, 1
mov dword [esp + 4], ebx
lea ebx, [esp + 0x20]
mov dword [esp + 8], ecx
shld edi, esi, 3
mov dword [esp], ebx
shl esi, 3
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
call sym.avutil_ics_57.dll_mv_md5_update
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov eax, esi
and eax, 0x3f
xor eax, 0x38
or eax, 0
je 0x100260c0
mov eax, esi
and eax, 0x3f
add esi, 1
mov dword [esp + 0x20], esi
adc edi, 0
test eax, eax
mov dword [esp + 0x24], edi
jne 0x10026100
xor ecx, ecx
mov edx, 0x100b3b46
lea eax, [esp + 0x68]
call fcn.10025550
mov eax, esi
mov byte [esp + 0x28], 0
and eax, 0x3f
xor eax, 0x38
or eax, 0
jne 0x10026087
mov dword [esp], ebx
mov eax, 8
mov dword [esp + 8], eax
lea eax, [esp + 0x18]
mov dword [esp + 4], eax
call sym.avutil_ics_57.dll_mv_md5_update
mov eax, dword [esp + 0x74]
mov dword [ebp], eax
mov eax, dword [esp + 0x70]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x6c]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x68]
mov dword [ebp + 0xc], eax
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [esp + eax + 0x28], 0
cmp eax, 0x3f
jne 0x10026072
lea edx, [esp + 0x28]
mov ecx, 1
lea eax, [esp + 0x68]
call fcn.10025550
xor ecx, ecx
mov edx, 0x100b3b47
lea eax, [esp + 0x68]
call fcn.10025550
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
jmp 0x1002607a
mov edx, dword [esp + 0x94]
mov eax, ebx
and eax, 0xffffffc0
add eax, edx
cmp ecx, 4
lea edx, [esp + 0x28]
mov dword [esp + 0x10], edx
mov edx, eax
jae 0x100261a8
xor eax, eax
test cl, 2
jne 0x10026188
test cl, 1
je 0x10026045
movzx ebx, byte [edx + eax]
mov edx, dword [esp + 0x10]
mov byte [esp + 0x17], bl
mov byte [edx + eax], bl
jmp 0x10026045
mov eax, dword [esp + 0x10]
test cl, 1
movzx ebx, word [edx]
mov word [eax], bx
mov eax, 2
je 0x10026045
jmp 0x1002616d
mov dword [esp + 0x10], ecx
and ebx, 0x3c
xor edx, edx
mov ecx, dword [eax + edx]
mov dword [esp + edx + 0x28], ecx
add edx, 4
cmp edx, ebx
jb 0x100261b1
lea ebx, [esp + 0x28]
mov ecx, dword [esp + 0x10]
add ebx, edx
add edx, eax
mov dword [esp + 0x10], ebx
jmp 0x1002615d
Function at 0x1002ca00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test ecx, ecx
je 0x1002ca38
cmp dword [ecx + 0xc], 0
jne 0x1002ca38
test byte [ecx + 0x28], 0x80
jne 0x1002ca38
mov dword [esp + 8], edx
mov edx, eax
mov dword [esp + 0xc], ebx
pop ebx
jmp fcn.1002c390
pop ebx
mov eax, 0xffffffea
ret

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

Disassembly:
push ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test ecx, ecx
je 0x1002ca78
cmp dword [ecx + 0xc], 1
jne 0x1002ca78
test byte [ecx + 0x28], 0x80
jne 0x1002ca78
mov dword [esp + 8], edx
mov edx, eax
mov dword [esp + 0xc], ebx
pop ebx
jmp fcn.1002c390
pop ebx
mov eax, 0xffffffea
ret

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

Disassembly:
push ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test ecx, ecx
je 0x1002cab8
cmp dword [ecx + 0xc], 2
jne 0x1002cab8
test byte [ecx + 0x28], 0x80
jne 0x1002cab8
mov dword [esp + 8], edx
mov edx, eax
mov dword [esp + 0xc], ebx
pop ebx
jmp fcn.1002c390
pop ebx
mov eax, 0xffffffea
ret

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

Disassembly:
push ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test ecx, ecx
je 0x1002caf8
cmp dword [ecx + 0xc], 4
jne 0x1002caf8
test byte [ecx + 0x28], 0x80
jne 0x1002caf8
mov dword [esp + 8], edx
mov edx, eax
mov dword [esp + 0xc], ebx
pop ebx
jmp fcn.1002c390
pop ebx
mov eax, 0xffffffea
ret

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

Disassembly:
push ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test ecx, ecx
je 0x1002cb38
cmp dword [ecx + 0xc], 3
jne 0x1002cb38
test byte [ecx + 0x28], 0x80
jne 0x1002cb38
mov dword [esp + 8], edx
mov edx, eax
mov dword [esp + 0xc], ebx
pop ebx
jmp fcn.1002c390
pop ebx
mov eax, 0xffffffea
ret

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

Disassembly:
push ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test ecx, ecx
je 0x1002cb78
cmp dword [ecx + 0xc], 6
jne 0x1002cb78
test byte [ecx + 0x28], 0x80
jne 0x1002cb78
mov dword [esp + 8], edx
mov edx, eax
mov dword [esp + 0xc], ebx
pop ebx
jmp fcn.1002c390
pop ebx
mov eax, 0xffffffea
ret
Function at 0x100339c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xc
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
movzx eax, byte [ebx + 0x104]
mov edx, dword [ebx + 0x100]
test ecx, ecx
mov byte [esp + 6], al
lea eax, [ecx - 1]
mov byte [esp + 7], dl
mov dword [esp + 8], eax
jle 0x10033a82
mov byte [esp + 5], dl
lea ebp, [esi + ecx]
movzx eax, dl
mov dword [esp], ebp
movzx eax, byte [ebx + eax]
movzx ebp, dl
nop
movzx ecx, byte [esp + 6]
add ecx, ebx
movzx edx, byte [ecx]
mov byte [ecx], al
mov byte [ebx + ebp], dl
add dl, al
movzx edx, dl
add edx, ebx
test edi, edi
je 0x10033a58
movzx eax, byte [edi]
lea ecx, [edi + 1]
inc esi
inc byte [esp + 5]
mov edi, dword [esp]
xor al, byte [edx]
movzx ebp, byte [esp + 5]
mov byte [esi - 1], al
movzx eax, byte [ebx + ebp]
add byte [esp + 6], al
cmp esi, edi
je 0x10033a77
mov edi, ecx
jmp 0x10033a10
inc byte [esp + 5]
inc esi
movzx eax, byte [edx]
mov ecx, dword [esp]
movzx ebp, byte [esp + 5]
mov byte [esi - 1], al
movzx eax, byte [ebx + ebp]
add byte [esp + 6], al
cmp esi, ecx
jne 0x10033a10
movzx eax, byte [esp + 8]
inc al
add byte [esp + 7], al
movzx eax, byte [esp + 7]
mov dword [ebx + 0x100], eax
movzx eax, byte [esp + 6]
mov dword [ebx + 0x104], eax
add esp, 0xc
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x1004a890
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, edx
push edi
mov edx, ecx
push esi
push ebx
sub esp, 0x18
mov edi, dword [eax]
mov ebx, dword [eax + 0x40]
mov esi, dword [eax + 4]
mov ecx, dword [ecx]
mov dword [esp], edi
mov edi, dword [eax + 8]
mov edx, dword [edx + 4]
mov dword [esp + 4], esi
bswap ecx
mov dword [esp + 8], edi
mov edi, dword [eax + 0xc]
mov eax, ebx
shr eax, 0x1f
bswap edx
add eax, ebx
sar eax, 1
dec ebx
mov dword [esp + 0xc], eax
jle 0x1004a92e
mov dword [esp + 0x10], edi
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x14], ebp
lea esi, [esi]
mov eax, dword [esp]
mov ebp, edx
sub ebx, 0x61c88647
mov edi, dword [esp + 4]
shl ebp, 4
inc esi
add ebp, eax
mov eax, edx
shr eax, 5
add eax, edi
mov edi, dword [esp + 0x10]
xor eax, ebp
lea ebp, [edx + ebx]
xor eax, ebp
add ecx, eax
mov eax, dword [esp + 8]
mov ebp, ecx
shl ebp, 4
add ebp, eax
mov eax, ecx
shr eax, 5
add eax, edi
xor eax, ebp
lea ebp, [ebx + ecx]
xor eax, ebp
add edx, eax
cmp dword [esp + 0xc], esi
jg 0x1004a8e0
mov ebp, dword [esp + 0x14]
bswap ecx
bswap edx
mov dword [ebp], ecx
mov dword [ebp + 4], edx
add esp, 0x18
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x1004d3b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
sub esp, 0x14
mov ebx, dword [ecx + 4]
mov ebp, dword [eax + 4]
mov dword [esp + 0x10], edi
mov edx, dword [ecx]
mov esi, dword [eax]
xor ebx, ebp
mov ebp, dword [eax + 0xc]
mov dword [esp + 4], ebx
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
xor edx, esi
mov esi, dword [eax + 8]
xor ecx, ebp
mov dword [esp + 8], ecx
lea ecx, [eax + 0xa0]
xor ebx, esi
mov dword [esp], ebx
lea esi, [eax + 0x20]
mov dword [esp + 0xc], ecx
lea esi, [esi]
lea esi, [esi]
mov ebx, edx
movzx ecx, dl
shr ebx, 0x18
mov ecx, dword [eax + ecx*4 + 0xb4]
mov edi, dword [eax + ebx*4 + 0xcb4]
movzx ebx, dh
mov ebp, dword [eax + ebx*4 + 0x4b4]
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
xor ecx, edi
mov edi, dword [eax + ebx*4 + 0x8b4]
xor ecx, ebp
xor ecx, edi
mov edi, dword [esp + 4]
mov ebx, edi
rol ebx, 8
shr edi, 0x18
mov ebp, ebx
shr ebp, 0x18
mov edi, dword [eax + edi*4 + 0xb4]
xor edi, dword [eax + ebp*4 + 0xcb4]
movzx ebp, bh
shr ebx, 0x10
xor edi, dword [eax + ebp*4 + 0x4b4]
movzx ebx, bl
mov ebp, dword [eax + ebx*4 + 0x8b4]
mov ebx, dword [esi]
xor edi, ebp
mov ebp, dword [esp]
add ebx, ecx
add ebx, edi
xor ebx, ebp
mov ebp, dword [esp + 8]
ror ebx, 1
mov dword [esp], ebx
mov ebx, dword [esi + 4]
rol ebp, 1
add ecx, ebx
mov ebx, dword [esp]
lea ecx, [ecx + edi*2]
xor ecx, ebp
mov dword [esp + 8], ecx
mov ebp, ecx
movzx ecx, bh
movzx ebx, byte [esp]
mov ecx, dword [eax + ecx*4 + 0x4b4]
mov edi, dword [eax + ebx*4 + 0xb4]
mov ebx, dword [esp]
xor ecx, edi
shr ebx, 0x10
movzx ebx, bl
mov edi, dword [eax + ebx*4 + 0x8b4]
mov ebx, dword [esp]
xor ecx, edi
shr ebx, 0x18
mov edi, dword [eax + ebx*4 + 0xcb4]
mov ebx, ebp
rol ebx, 8
shr ebp, 0x18
xor ecx, edi
mov edi, ebp
mov ebp, ebx
mov edi, dword [eax + edi*4 + 0xb4]
shr ebp, 0x18
xor edi, dword [eax + ebp*4 + 0xcb4]
movzx ebp, bh
shr ebx, 0x10
xor edi, dword [eax + ebp*4 + 0x4b4]
movzx ebx, bl
mov ebp, dword [eax + ebx*4 + 0x8b4]
mov ebx, dword [esi + 8]
xor edi, ebp
add ebx, ecx
add ebx, edi
add esi, 0x10
xor ebx, edx
mov edx, ebx
mov ebx, dword [esi - 4]
ror edx, 1
add ecx, ebx
lea ecx, [ecx + edi*2]
mov edi, dword [esp + 4]
rol edi, 1
xor ecx, edi
cmp dword [esp + 0xc], esi
mov dword [esp + 4], ecx
jne 0x1004d400
mov esi, dword [eax + 0x14]
mov ebx, ecx
mov ecx, dword [esp + 8]
mov ebp, dword [eax + 0x18]
mov edi, dword [esp + 0x10]
xor ecx, esi
mov esi, dword [eax + 0x1c]
xor edx, ebp
mov ebp, dword [eax + 0x10]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
xor ebx, esi
mov esi, dword [esp]
mov dword [edi + 0xc], ebx
xor esi, ebp
mov dword [edi], esi
add esp, 0x14
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x1008e250
Capabilities:
Write file on windows

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

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x101d66e4]
test esi, esi
jle 0x1008e3d0
mov eax, dword [0x101d66e8]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x1008e2e4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x1008e367
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x1008e2d0
mov dword [esp], ebx
call fcn.1008eaa0
mov edi, eax
test eax, eax
je 0x1008e3f7
mov eax, dword [0x101d66e8]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.1008ebe0
mov edx, dword [0x101d66e8]
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 0x1008e3d7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x1008e360
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x1008e370
add dword [0x101d66e4], 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 [0x101d66e8]
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 0x1008e360
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.1008e250
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x1008e2ee
mov eax, dword [0x101d66e8]
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.1008e250
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.1008e250
lea esi, [esi]
nop
Function at 0x1008e710
Capabilities:
Get thread local storage value

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

Function at 0x1008eaa0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x10000000], 0x5a4d
jne 0x1008eac5
mov ecx, dword [0x1000003c]
cmp dword [ecx + 0x10000000], 0x4550
lea edx, [ecx + 0x10000000]
je 0x1008ead0
ret
cmp word [ecx + 0x10000018], 0x10b
jne 0x1008eac5
push esi
movzx eax, word [ecx + 0x10000014]
push ebx
movzx esi, word [ecx + 0x10000006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x10000000
test si, si
je 0x1008eb18
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x1008eb0e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x1008eb1a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x1008eb00
xor eax, eax
pop ebx
pop esi
ret
Function at 0x1009e7e0
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push edi
xor eax, eax
mov ecx, 0x10
sub esp, 0x88
lea edi, [esp + 0x40]
mov dword [esp + 0x15], 0x6f727245
mov dword [esp + 0x19], 0x6c632072
mov dword [esp + 0x1d], 0x696e6165
mov dword [esp + 0x21], 0x7520676e
mov dword [esp + 0x25], 0x70732070
mov dword [esp + 0x29], 0x6b5f6e69
mov dword [esp + 0x2d], 0x20737965
mov dword [esp + 0x31], 0x20726f66
mov dword [esp + 0x35], 0x65726874
mov dword [esp + 0x39], 0x206461
mov dword [esp + 0x3d], 0
mov dword [esp + 0x7c], 0
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
je 0x1009e8bb
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x1009e88d
cmp eax, 0x6a
je 0x1009e8aa
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x1009e888
cmp eax, 0x6a
je 0x1009e8aa
add ecx, 2
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + ecx + 0x15], 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, [esp + 0x15]
jmp 0x1009e8a0
Function at 0x1009ec40
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x101d7228], 1
je 0x1009ecf8
push edi
mov eax, 0x101d7228
push esi
push ebx
sub esp, 0x10
call fcn.1009e5c0
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call fcn.100a1540
mov edi, dword [0x101d7228]
test edi, edi
jne 0x1009ecb0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x100aa0f0], eax
cmp eax, 0xffffffff
je 0x1009ecf9
mov dword [0x101d7228], 1
mov dword [esp], esi
call fcn.100a1880
test ebx, ebx
je 0x1009ecea
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp fcn.1009e8d0
cmp edi, 1
je 0x1009ec8e
mov dword [esp], 2
call dword [0x100aa0cc]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x101d7228
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.100a1880
test ebx, ebx
jne 0x1009ec9a
add esp, 0x10
pop ebx
pop esi
pop edi
ret
ret
call sub.msvcrt.dll_abort
nop
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 0x1009ee39
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 [0x100aa0f0]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x1009ee39
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

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

Disassembly:
sub esp, 0x1c
call fcn.1009ec40
mov eax, dword [0x100aa0f0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x1009ee68
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.1009ed00
Function at 0x1009f130
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 0x1009f160
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x1009f230
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
cmp eax, 1
je 0x1009f260
cmp eax, 3
jne 0x1009f14b
mov eax, dword [0x100aa0f0]
cmp eax, 0xffffffff
je 0x1009f14b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x1009f14b
lea esi, [eax + 0x1c]
lea edi, [eax + 0x38]
test byte [eax + 0x20], 0x30
je 0x1009f290
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x1009f1a9
call fcn.1009ee70
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x1009f1db
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 0x1009f1cd
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
mov dword [esp], esi
call fcn.100a1a00
mov dword [esp], edi
call fcn.100a2880
cmp eax, 1
je 0x1009f356
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x1009f34a
mov eax, dword [0x100aa0f0]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x1009f14b
mov eax, dword [0x101d7204]
test eax, eax
je 0x1009f14b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x101d7204], 0
sub esp, 4
jmp 0x1009f14b
mov dword [esp + 4], 0x1009e530
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x101d7204], 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 0x1009f300
test eax, eax
je 0x1009f2aa
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 0x1009f2c7
call fcn.1009ee70
test byte [ebx + 0x24], 4
je 0x1009f340
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x1009f1db
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.100a1a00
jmp 0x1009f1e3
test eax, eax
je 0x1009f340
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.100a1a00
mov dword [esp], edi
call fcn.100a2880
cmp eax, 1
je 0x1009f356
mov dword [ebx + 0x38], 0xffffffff
jmp 0x1009f14b
mov dword [esp], esi
call fcn.100a1a00
jmp 0x1009f31f
mov eax, ebx
call fcn.1009ea80
jmp 0x1009f209
call fcn.1009e7e0
lea esi, [esi]
nop

Function at 0x1009fbf0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.1009ec40
mov eax, dword [0x100aa0f0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x1009fc18
mov eax, dword [eax + 0x18]
add esp, 0x1c
ret
call fcn.1009ed00
test eax, eax
jne 0x1009fc0d
add esp, 0x1c
ret
Function at 0x1009fc80
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.1009ec40
mov eax, dword [0x100aa0f0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x1009fca8
add eax, 0xc
add esp, 0x1c
ret
call fcn.1009ed00
test eax, eax
jne 0x1009fc9d
jmp 0x1009fca0

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

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call fcn.1009ee40
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x1009fd02
call fcn.1009ee70
test byte [ebx + 0x20], 0x30
jne 0x1009fd1c
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [0x100aa0f0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x1009fd5d
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x1009fd9d
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x1009fd52
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov dword [ebx + 0x18], eax
test byte [ebx + 0x24], 4
jne 0x1009fd66
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push ecx
mov dword [ebx + 0x14], eax
mov eax, ebx
call fcn.1009ec20
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x100aa0f0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x1009fd5d
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x1009fdb1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], eax
jmp 0x1009fd7e

Function at 0x1009fdc0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x101d7230]
test eax, eax
jne 0x1009fdd0
xor eax, eax
ret
sub esp, 0x1c
call fcn.1009ec40
mov eax, dword [0x100aa0f0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x1009fe10
mov edx, dword [eax + 0x10]
test edx, edx
jle 0x1009fe00
xor eax, eax
add esp, 0x1c
ret
test byte [eax + 0x20], 3
je 0x1009fdf4
mov eax, dword [eax + 0x24]
and eax, 1
jmp 0x1009fdf6
call fcn.1009ed00
test eax, eax
jne 0x1009fded
jmp 0x1009fdf4

Function at 0x1009fe20
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.1009ec40
mov eax, dword [0x100aa0f0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x1009fe60
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x1009fe50
lock add dword [eax + 0x10], 1
add esp, 0x1c
ret
lock sub dword [eax + 0x10], 1
add esp, 0x1c
ret
call fcn.1009ed00
test eax, eax
jne 0x1009fe3d
add esp, 0x1c
ret