joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1011963d
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov dword [ebp - 8], 0
mov dword [0x101bd940], 0xea1
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov dword [0x101bd940], 0x12cc
mov dword [ebp - 0xc], eax
xor eax, eax
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x3c]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
jmp 0x101196ab
mov eax, dword [ebp - 0x18]
add esp, 0x28
pop esi
pop ebp
ret
xor eax, eax
mov dword [0x101bd940], 0x251c
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x18], eax
je 0x101197b2
jmp 0x1011967e
mov eax, dword [ebp - 0x14]
mov ecx, 0x1bd2
mov edx, dword [ebp - 0x10]
cmp word [edx + eax*2], 0
mov esi, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], esi
je 0x10119710
jmp 0x101196ef
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff5
shl eax, 1
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x2c], ecx
xor eax, eax
mov ecx, dword [ebp - 0x2c]
cmp word [ecx], 0x61
mov dword [ebp - 0x18], eax
je 0x1011975b
jmp 0x1011967e
mov eax, 0x19cd
mov ecx, dword [ebp - 0x20]
add ecx, 1
cmp ecx, 0x104
mov edx, ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jl 0x101196ab
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov dword [0x101bd944], ecx
mov dword [0x101bd940], 0x6b6
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
jne 0x1011967e
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x18], eax
je 0x101196cb
jmp 0x1011967e
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x18], eax
jne 0x1011967e
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x18], eax
jne 0x1011967e
xor eax, eax
mov dword [0x101bd940], 0xffffe770
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x18], eax
je 0x10119687
jmp 0x1011967e
mov eax, 1
mov dword [0x101bd944], 0x369d
mov dword [ebp - 0x18], eax
jmp 0x1011967e
Function at 0x101197c9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
mov edx, dword [0x101bd940]
add edx, 0xffffef19
mov dword [0x101bd944], edx
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.1011926e
lea ecx, [0x10119b33]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x48], edx
mov dword [esp + 0x5c], 0x112e00
mov edx, dword [0x101bd92c]
mov dword [esp + 0x4c], edx
mov edx, dword [0x101bd930]
mov dword [esp + 0x50], edx
mov edx, dword [0x101bd934]
mov dword [esp + 0x60], edx
mov edx, dword [0x101bd938]
mov dword [esp + 0x34], edx
mov edx, dword [0x101bd93c]
mov dword [esp + 0x74], edx
mov dword [0x101bd944], 0x717
mov dword [0x101bd940], 0x127a
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x1011987d
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x1011987d
mov eax, dword [esp + 0xc]
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x10119861
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 8], ecx
jne 0x10119861
mov eax, dword [esp + 0x10]
mov dword [esp + 0x54], eax
mov dword [0x101bd940], 0x25db
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x6c], edx
call fcn.1011963d
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x10119875
lea eax, [esp + 0x30]
mov dword [0x101bd940], 0xf39
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10119eb9
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0xc], eax
jmp 0x10119875
Function at 0x10119996
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov ebx, 0x2448
mov dword [0x101bd948], 0
mov dword [0x101bd94c], 0
mov dword [0x101bd958], 0
mov dword [0x101bd940], 0x2448
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov eax, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
je 0x10119b2b
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov edi, 0x100
add esi, 1
mov dword [0x101bd944], 0x264a
add ecx, 0xffffffa9
mov ebx, eax
add ebx, 1
mov dword [ebp - 0x30], eax
mov eax, esi
mov dword [ebp - 0x34], edx
cdq
idiv edi
mov dword [0x101bd948], edx
mov dword [0x101bd940], ecx
mov ecx, dword [ebp - 0x24]
movzx esi, byte [ecx + edx]
mov ecx, dword [ebp - 0x34]
add esi, ecx
mov eax, esi
mov dword [ebp - 0x38], edx
cdq
idiv edi
mov dword [0x101bd94c], edx
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x101bd950], cl
mov dword [0x101bd944], 0x20ef
mov edi, dword [ebp - 0x24]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x101bd950]
mov edx, dword [0x101bd94c]
mov byte [edi + edx], cl
mov edx, dword [0x101bd940]
mov ecx, edx
add ecx, 0xffffe99b
mov dword [0x101bd944], ecx
mov ecx, dword [0x101bd948]
movzx ecx, byte [edi + ecx]
mov esi, dword [0x101bd94c]
movzx esi, byte [edi + esi]
add esi, ecx
and esi, 0xff
mov dword [0x101bd958], esi
mov dword [0x101bd944], 0x1562
mov cl, byte [edi + esi]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x30]
mov ch, byte [esi + edi]
add edx, 0x5a6
mov dword [0x101bd944], edx
xor ch, cl
mov dword [0x101bd940], 0x6a8
mov edx, dword [ebp - 0x20]
mov byte [edx + edi], ch
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x3c], ebx
je 0x10119b2b
mov eax, dword [0x101bd948]
mov ecx, dword [0x101bd940]
mov edx, dword [0x101bd94c]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
jmp 0x10119a01
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10119cc3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [ebp + 8]
mov dword [0x101bd940], 0x15d2
mov dword [0x101bd944], 0x1167
mov dword [ebp - 0x10], eax
call fcn.10118c51
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x10119d13
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [0x101bd944], 0xfffffc1e
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x24]
mov dword [0x101bd940], 0x901
mov edi, dword [edx + eax + 0x18]
cmp edi, 0
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
je 0x10119e58
jmp 0x10119de2
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x101bd944], 0x1d20
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [ebp - 0x34], edx
jmp 0x10119e58
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [0x101bd944], 0x1167
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edx
jmp 0x10119dfa
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x54], eax
mov al, byte [ebp - 0x55]
cmp al, 0
setne cl
mov dl, byte [ebp - 0x56]
and dl, cl
mov esi, dword [ebp - 0x54]
cmp esi, 0x20
setb cl
and dl, cl
test dl, 1
mov dword [ebp - 0x4c], esi
jne 0x10119dfa
jmp 0x10119e23
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
add eax, ecx
mov dword [ebp - 0x5c], eax
xor eax, eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
jmp 0x10119d8c
mov eax, dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [ebp - 0x48]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x55], bh
mov byte [ebp - 0x56], cl
jne 0x10119db2
mov al, byte [ebp - 0x56]
test al, 1
jne 0x10119d62
jmp 0x10119e30
xor eax, eax
mov ecx, dword [ebp - 0x38]
add ecx, 2
mov edx, dword [ebp - 0x44]
add edx, 1
mov esi, dword [ebp - 0x30]
cmp edx, esi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x34], eax
jb 0x10119d8c
mov eax, dword [ebp - 0x34]
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10119eb9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov esi, dword [0x101bd940]
add esi, 0xffffe61c
mov dword [0x101bd944], esi
mov dword [0x101bd940], 0x1cc
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jmp 0x10119f23
lea eax, [ebp - 0x24]
mov dword [0x101bd940], 0x179a
mov dword [ebp - 0x34], eax
call fcn.1011a21a
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.10118de0
cmp eax, 0
mov dword [ebp - 0x38], eax
je 0x1011a017
jmp 0x10119f4b
mov eax, dword [ebp - 0x30]
mov cl, byte [eax + 0x10177d88]
mov dl, byte [eax + 0x10177d59]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x30], eax
je 0x10119eef
jmp 0x10119f23
mov eax, dword [ebp - 0x38]
mov dword [0x101bd944], 0x12d8
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov ecx, dword [0x101bd944]
add ecx, 0x206f
mov dword [0x101bd940], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.10118f9d
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [0x101bd940], 0x22f9
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov dword [0x101bd944], 0x2203
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x48], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x38], ecx
mov esi, dword [0x101bd940]
add esi, 0xffffe791
mov dword [0x101bd940], esi
add ecx, 0x18f3
mov esi, dword [ebp - 0x3c]
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x1011a00e
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x4278c0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x427920
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov esi, edx
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x427a16
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x427990
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x427965
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x1f], 0
je 0x427975
cmp byte [esp + 0x1e], 0
je 0x427975
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x427975
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004278c0
nop

Function at 0x427cb0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4c87bc
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x4c87d4]
sub esp, 4
test ebx, ebx
je 0x427cfb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x427cf4
test esi, esi
je 0x427cf4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x427cd0
mov dword [esp], 0x4c87bc
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x428fe0
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov ebx, eax
add eax, 0x31
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 0x41]
shr eax, 4
shl eax, 4
call fcn.00428f40
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 4], edi
mov dword [esp + 8], ebx
lea esi, [esp + 0xc]
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp], eax
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call sub.msvcrt.dll_memcpy
lea eax, [ebx + 0x10]
lea edi, [esi + eax]
mov dword [ebp - 0x24], eax
mov dword [edi], 0x61616161
mov dword [edi + 4], 0x61616161
mov dword [edi + 8], 0x61616161
mov dword [edi + 0xc], 0x61616161
mov dword [edi + 0x10], 0x61616161
mov dword [edi + 0x14], 0x61616161
mov dword [edi + 0x18], 0x61616161
mov dword [edi + 0x1c], 0x61616161
mov byte [esp + ebx + 0x3c], 0
mov byte [esp + ebx + 0x1b], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateMutexA
sub esp, 0xc
mov byte [esi + ebx + 0xf], 0x2d
mov dword [ebp - 0x20], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
test eax, eax
je 0x4290d0
int3
mov dword [esp], esi
call sub.KERNEL32.dll_FindAtomA
sub esp, 4
test ax, ax
jne 0x429170
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov edx, edi
mov ebx, eax
mov eax, 0x20
nop
lea esi, [esi]
bt ebx, eax
jae 0x429108
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x429100
mov dword [esp], esi
call sub.KERNEL32.dll_AddAtomA
sub esp, 4
test ax, ax
je 0x429164
mov ecx, dword [ebp - 0x24]
mov edx, esi
movzx eax, ax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00428f70
cmp ebx, eax
mov esi, eax
je 0x429187
mov dword [esp], ebx
call fcn.00431738
mov edi, dword [ebp - 0x20]
mov dword [esp], edi
call sub.KERNEL32.dll_ReleaseMutex
sub esp, 4
mov dword [esp], edi
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
int3
mov ecx, dword [ebp - 0x24]
mov edx, esi
movzx eax, ax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00428f70
mov esi, eax
jmp 0x429141
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], esi
mov dword [esp + 8], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x429141
mov dword [esp], esi
call dword [ebp + 0x10]
jmp 0x429141
Function at 0x4333d0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x4c91e4]
test ebx, ebx
je 0x433400
call sub.KERNEL32.dll_TlsAlloc
mov dword [ebx], eax
mov eax, dword [0x4c91e4]
test eax, eax
je 0x433425
cmp dword [eax], 0xffffffff
je 0x433448
add esp, 0x18
pop ebx
ret
mov dword [esp + 8], 0x432870
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.00437d20
mov ebx, eax
mov dword [0x4c91e4], eax
jmp 0x4333de
mov dword [esp + 8], 0x432870
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.00437d20
mov dword [0x4c91e4], eax
jmp 0x4333ee
call sub.msvcrt.dll_abort
lea esi, [esi]

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

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov eax, dword [0x4c91e8]
test eax, eax
je 0x433a20
cmp dword [eax], 1
je 0x4338ed
call fcn.00433860
mov eax, dword [0x4c91e4]
test eax, eax
je 0x433a50
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
test eax, eax
je 0x433912
add esp, 0x20
pop ebx
pop esi
pop edi
ret
call fcn.00433220
mov ebx, eax
mov eax, dword [entry3]
test eax, eax
je 0x433a9c
test ebx, ebx
je 0x433a9c
mov dword [ebx + 0x24], 1
call sub.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 sub.KERNEL32.dll_CreateEventA
mov dword [ebx + 0x1c], 0xffffffff
sub esp, 0x10
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x34], 0xffffffff
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x14], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov edi, eax
call sub.KERNEL32.dll_GetCurrentThread
mov esi, eax
call sub.KERNEL32.dll_GetCurrentProcess
lea edx, [ebx + 0x14]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], edi
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.KERNEL32.dll_DuplicateHandle
sub esp, 0x1c
test eax, eax
je 0x433aa3
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call sub.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 [0x4c91e4]
test eax, eax
je 0x433a76
mov dword [esp + 4], ebx
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
je 0x433aa3
mov eax, ebx
jmp 0x43390b
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_once_shmem
call fcn.00437d20
mov dword [0x4c91e8], eax
jmp 0x4338e3
mov dword [esp + 8], 0x432870
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.00437d20
mov dword [0x4c91e4], eax
jmp 0x4338fa
mov dword [esp + 8], 0x432870
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.00437d20
mov dword [0x4c91e4], eax
jmp 0x4339fe
xor eax, eax
jmp 0x43390b
call sub.msvcrt.dll_abort
nop
lea esi, [esi]
mov eax, dword [esp + 4]
mov dword [eax], 0xffffffff
ret
Function at 0x434020
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
sub esp, 0x18
cmp dword [esp + 0x24], 3
je 0x434040
add esp, 0x18
mov eax, 1
pop ebx
ret 0xc
mov eax, dword [0x4c91e4]
test eax, eax
je 0x4341b0
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x43402b
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
test eax, eax
mov ebx, eax
je 0x43402b
test byte [eax + 0x20], 0x30
je 0x434100
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x4341a0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4340af
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x4340a1
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.00432620
mov edx, dword [ebx + 0xac]
mov dword [ebx + 0x34], 0xffffffff
test edx, edx
je 0x434206
mov eax, dword [0x4c91e4]
test eax, eax
je 0x4341e0
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
mov eax, 1
add esp, 0x18
pop ebx
ret 0xc
mov eax, dword [eax + 0x64]
test eax, eax
mov eax, dword [ebx + 0x18]
jne 0x434160
test eax, eax
je 0x434119
mov dword [esp], eax
call sub.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 0x434190
test byte [ebx + 0x24], 4
je 0x434176
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x4340a8
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
jmp 0x4340a8
test eax, eax
je 0x43416f
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov dword [ebx + 0x18], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.00432620
mov dword [ebx + 0x34], 0xffffffff
jmp 0x43402b
call fcn.00433e30
jmp 0x434131
call fcn.00433e30
jmp 0x43407d
mov dword [esp + 8], 0x432870
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.00437d20
mov dword [0x4c91e4], eax
jmp 0x43404d
mov dword [esp + 8], 0x432870
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.00437d20
mov dword [0x4c91e4], eax
jmp 0x4340dc
mov eax, ebx
call fcn.00433450
jmp 0x4340cf
Function at 0x435380
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.004338d0
mov ebx, eax
mov dword [eax + 4], esi
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x435410
test byte [ebx + 0x20], 0x30
je 0x435506
mov eax, dword [0x4c91e4]
test eax, eax
je 0x4354b0
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
test eax, eax
mov ebx, eax
je 0x4353fb
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x435475
mov esi, dword [eax + 4]
mov dword [eax + 0x64], 1
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4353ee
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
test byte [ebx + 0x24], 4
mov dword [ebx + 0x18], 0
jne 0x435420
mov dword [esp + 0x20], esi
add esp, 0x14
pop ebx
pop esi
jmp sub.msvcrt.dll__endthreadex
call fcn.00433e30
jmp 0x43539d
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebx + 0xac]
sub esp, 4
mov dword [ebx + 0x14], 0
test eax, eax
je 0x4354a1
mov eax, dword [0x4c91e4]
test eax, eax
je 0x4354e0
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
mov dword [esp + 0x20], esi
add esp, 0x14
pop ebx
pop esi
jmp sub.msvcrt.dll__endthreadex
mov dword [eax], 0xdeadbeef
mov eax, dword [eax + 0x18]
test eax, eax
je 0x43548d
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov edx, dword [ebx + 0xac]
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
test edx, edx
jne 0x435445
mov eax, ebx
call fcn.00433450
jmp 0x435445
mov dword [esp + 8], 0x432870
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.00437d20
mov dword [0x4c91e4], eax
jmp 0x4353b4
mov dword [esp + 8], 0x432870
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.00437d20
mov dword [0x4c91e4], eax
jmp 0x435452
add ebx, 0x6c
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_longjmp
lea esi, [esi]