joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4068e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x4068e7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x4069c4
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42cf80]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x42cf80]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x42cf80]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42cf80]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42cf80]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42cf80]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42cf80]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42cf80]
inc ecx
sub edx, 8
sub esi, 1
jne 0x406900
pop edi
test edx, edx
je 0x4069eb
jmp 0x4069d0
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x42cf80]
inc ecx
sub edx, 1
jne 0x4069d0
not eax
pop esi
ret

Function at 0x4069f0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x42cf80]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x42cf80]
mov dword [edx + 8], ecx
ret

Function at 0x406a40
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x42cf80]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x42cf80]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret
Function at 0x432002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x44e761c3
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data_1
nop
mov ebx, 0x42f314
nop
mov ecx, 0x1cf22261
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x1018860
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1070f80
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10880c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], 0x107aef4
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.0104a801
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.01048297
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.01018800
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402160
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov esi, ecx
mov ecx, dword [ebp + 0x10]
mov edi, edx
xor edx, edx
mov dword [esp + 0x14], 0
mov eax, dword [ebp + 8]
mov dword [esp], 0x103
mov dword [esp + 4], 0
mov ebx, esp
test ecx, ecx
setne dl
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x18]
cmove edx, ecx
mov ecx, dword [ebp + 0xc]
push 0
push edx
push ecx
push eax
push ebx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x4021d8
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp]
cmp eax, 0xc0000011
jne 0x4021e8
mov dword [esi + 4], 0
jmp 0x4021fa
cmp eax, 0x103
je 0x402217
test eax, eax
js 0x402205
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
mov byte [esi], 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x4021fd
lea eax, [esp + 0x10]
mov dword [esp + 0x44], 0x4215b4
mov dword [esp + 0x48], 2
mov dword [esp + 0x3c], 0
lea esi, [esp + 0x34]
mov dword [esp + 8], 0
mov dword [esp + 0x18], 0x4215fc
mov dword [esp + 0x1c], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], str.assertion_failed:_self.is_char_boundary_new_len_C:Userslucak.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrary_alloc_src_string.rs
mov byte [esp + 0xc], 0
mov dword [esp + 0x24], 0
lea ecx, [esp + 8]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x30], 0x41aac0
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x50], 1
push eax
push ecx
push esi
call fcn.0040d930
add esp, 0xc
cmp byte [esp + 0x34], 4
je 0x4022ab
push esi
call fcn.00401d90
add esp, 4
mov ecx, 7
int 0x29
ud2
Function at 0x4022c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov esi, ecx
mov ecx, dword [ebp + 0x10]
mov edi, edx
xor edx, edx
mov dword [esp + 0x14], 0
mov eax, dword [ebp + 8]
mov dword [esp], 0x103
mov dword [esp + 4], 0
mov ebx, esp
test ecx, ecx
setne dl
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x18]
cmove edx, ecx
mov ecx, dword [ebp + 0xc]
push 0
push edx
push ecx
push eax
push ebx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x40233f
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp]
cmp eax, 0x103
je 0x402367
test eax, eax
js 0x40234f
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x40235f
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
mov dword [esi], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 0x10]
mov dword [esp + 0x44], 0x4215b4
mov dword [esp + 0x48], 2
mov dword [esp + 0x3c], 0
lea esi, [esp + 0x34]
mov dword [esp + 8], 0
mov dword [esp + 0x18], 0x4215fc
mov dword [esp + 0x1c], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], str.assertion_failed:_self.is_char_boundary_new_len_C:Userslucak.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrary_alloc_src_string.rs
mov byte [esp + 0xc], 0
mov dword [esp + 0x24], 0
lea ecx, [esp + 8]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x30], 0x41aac0
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x50], 1
push eax
push ecx
push esi
call fcn.0040d930
add esp, 0xc
cmp byte [esp + 0x34], 4
je 0x4023fb
push esi
call fcn.00401d90
add esp, 4
mov ecx, 7
int 0x29
ud2
Function at 0x402ed0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x403180
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
cmp eax, 3
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
je 0x402f0e
test eax, eax
jne 0x40308a
mov ebx, dword [0x42a164]
test ebx, ebx
je 0x40308a
mov dword [ebp - 0x20], 0
jmp 0x402f37
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x402f68
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4030db
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x402f30
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x402f30
test byte [ebp - 0x20], 1
je 0x40308a
mov ebx, dword [0x42a164]
test ebx, ebx
je 0x40308a
mov dword [ebp - 0x20], 0
jmp 0x402f97
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x402fc8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4030db
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x402f90
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x402f90
test byte [ebp - 0x20], 1
je 0x40308a
mov ebx, dword [0x42a164]
test ebx, ebx
je 0x40308a
mov dword [ebp - 0x20], 0
jmp 0x402ff7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x403028
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4030db
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x402ff0
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x402ff0
test byte [ebp - 0x20], 1
je 0x40308a
mov ebx, dword [0x42a164]
test ebx, ebx
je 0x40308a
mov dword [ebp - 0x20], 0
jmp 0x403057
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x403084
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4030db
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x403050
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x403050
test byte [ebp - 0x20], 1
jne 0x4030a4
movzx eax, byte [0x427340]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ebx, dword [0x42a164]
jmp 0x4030af
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x40308a
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4030db
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4030ac
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x4030ac
mov dword [ebp - 0x10], 0
push 0x4218c4
push 0x2b
push 0x421898
call fcn.00420510
add esp, 0xc
ud2
Function at 0x4087d0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x409be0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov esi, dword [eax + 8]
mov eax, dword [esi]
test eax, eax
je 0x408812
dec eax
jmp 0x40882c
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x28], esi
push esi
call fcn.0041f7b0
add esp, 4
mov esi, dword [ebp - 0x28]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0
mov dword [ebp - 0x24], eax
je 0x40886b
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
test eax, eax
je 0x40886b
lock dec dword [eax]
jne 0x40886b
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], 2
add eax, 4
push eax
mov dword [ebp - 0x28], esi
call fcn.0040b140
mov esi, dword [ebp - 0x28]
add esp, 4
push 4
push 0xc
push dword [ebp - 0x24]
call fcn.004013a0
add esp, 0xc
mov eax, dword [esi]
test eax, eax
je 0x408883
dec eax
jmp 0x408897
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x10], 1
push esi
call fcn.0041f7b0
add esp, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x408970
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x409bf0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
mov esi, dword [eax]
mov edi, dword [esi + 8]
mov eax, dword [edi]
test eax, eax
je 0x4089af
dec eax
jmp 0x4089cf
mov dword [ebp - 0x24], esi
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x28], edi
push edi
call fcn.0041f7b0
add esp, 4
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 4
push 0xc
push esi
call fcn.004013a0
add esp, 0xc
mov eax, dword [edi]
test eax, eax
je 0x4089ee
dec eax
jmp 0x408a05
mov dword [ebp - 0x24], esi
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x10], 1
push edi
call fcn.0041f7b0
add esp, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408ac0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x409c00
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov esi, dword [eax + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x408b02
dec eax
jmp 0x408b1c
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x28], esi
push esi
call fcn.0041f7b0
add esp, 4
mov esi, dword [ebp - 0x28]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0
mov dword [ebp - 0x24], eax
je 0x408b5b
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 8]
test eax, eax
je 0x408b5b
lock dec dword [eax]
jne 0x408b5b
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], 2
add eax, 8
push eax
mov dword [ebp - 0x28], esi
call fcn.0040b0e0
mov esi, dword [ebp - 0x28]
add esp, 4
push 4
push 0x10
push dword [ebp - 0x24]
call fcn.004013a0
add esp, 0xc
mov eax, dword [esi]
test eax, eax
je 0x408b73
dec eax
jmp 0x408b87
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x10], 1
push esi
call fcn.0041f7b0
add esp, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x408c60
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x409c10
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
mov esi, dword [eax]
mov edi, dword [esi]
mov eax, dword [edi]
test eax, eax
je 0x408c9e
dec eax
jmp 0x408cbe
mov dword [ebp - 0x24], esi
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x28], edi
push edi
call fcn.0041f7b0
add esp, 4
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 4
push 8
push esi
call fcn.004013a0
add esp, 0xc
mov eax, dword [edi]
test eax, eax
je 0x408cdd
dec eax
jmp 0x408cf4
mov dword [ebp - 0x24], esi
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x10], 1
push edi
call fcn.0041f7b0
add esp, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x409e00
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
mov esi, esp
mov dword [esi + 0x58], ebp
mov dword [esi + 0x5c], esp
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0x40a8e0
mov edi, dword [ebp + 8]
movaps xmm0, xmmword [0x4227a0]
mov eax, dword [ebp + 0xc]
lea ebx, [esi + 0x10]
lea edx, [esi + 4]
mov ecx, dword fs:[0]
mov dword [esi + 0x60], ecx
lea ecx, [esi + 0x60]
mov dword fs:[0], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x2c], 0
mov word [esi + 0x30], 0
movups xmmword [esi + 0x18], xmm0
mov dword [esi + 0x28], 0
mov byte [esi + 0x2c], 1
push ebx
push ecx
push eax
push edx
call fcn.004111e0
add esp, 0x10
cmp byte [esi + 4], 4
jne 0x409e86
mov eax, dword [esi + 8]
jmp 0x409e95
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
cmp cl, 4
jne 0x409fc3
mov dword [esi], eax
mov eax, esi
mov dword [esi + 0x68], 0
push eax
push ebx
call fcn.00411410
add esp, 8
mov eax, dword [esi + 0x10]
xor eax, 2
or eax, dword [esi + 0x14]
jne 0x409f0b
mov eax, dword [esi + 0x18]
lea ecx, [esi + 0x10]
cmp al, 3
jne 0x409f02
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
mov dword [esi + 0xc], ecx
mov ecx, dword [ecx + 4]
mov dword [esi + 0x68], 2
push eax
call dword [ecx]
add esp, 4
mov edi, dword [esi + 0xc]
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x409ef2
push dword [eax + 8]
push ecx
push dword [edi]
call fcn.004013a0
add esp, 0xc
push 4
push 0xc
push edi
call fcn.004013a0
add esp, 0xc
lea ecx, [esi + 0x10]
mov dword [esi + 0x68], 1
jmp 0x409f38
mov edi, dword [esi + 0x38]
lea ecx, [esi + 0x10]
test edi, edi
je 0x409f38
setns al
js 0x409ff1
movzx ebx, al
push ebx
push edi
call fcn.00401390
add esp, 8
test eax, eax
je 0x409ff8
lea ecx, [esi + 0x10]
jmp 0x409f3f
mov eax, 1
xor edi, edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x68], 1
push ecx
mov eax, esi
push eax
lea eax, [esi + 4]
push eax
call fcn.0040f370
add esp, 0xc
movzx eax, byte [esi + 4]
mov edi, dword [ebp + 8]
cmp al, 4
jne 0x409f86
mov eax, dword [esi + 0x18]
movsd xmm0, qword [esi + 0x10]
mov dword [edi + 0xc], eax
movsd qword [edi + 4], xmm0
mov dword [edi], 0
jmp 0x409fb9
movzx ecx, byte [esi + 7]
movzx ebx, word [esi + 5]
mov edx, dword [esi + 8]
mov byte [edi + 7], cl
mov word [edi + 5], bx
mov byte [edi + 4], al
mov eax, dword [esi + 0x10]
mov dword [edi + 8], edx
mov dword [edi], 1
test eax, eax
je 0x409fb9
push 1
push eax
push dword [esi + 0x14]
call fcn.004013a0
add esp, 0xc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x409fde
mov edx, ecx
mov byte [edi + 4], cl
shr ecx, 0x18
shr edx, 8
mov byte [edi + 7], cl
mov word [edi + 5], dx
mov dword [edi + 8], eax
mov dword [edi], 1
mov eax, dword [esi + 0x60]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00418130
jmp 0x40a002
push ebx
push edi
call fcn.00420310
add esp, 8
ud2
Function at 0x40b580
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x40c290
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [edi]
test eax, eax
je 0x40b681
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x40b5d2
cmp dword [eax], 0
mov esi, eax
jne 0x40b67c
mov eax, dword [edi]
test eax, eax
je 0x40b69f
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x40b6b8
mov esi, eax
test eax, eax
jne 0x40b635
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], edi
push 4
push 0xc
call fcn.00401390
add esp, 8
test eax, eax
je 0x40b6db
mov esi, eax
mov eax, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x28]
mov dword [esi + 8], eax
movsd qword [esi], xmm0
mov eax, dword [edi]
test eax, eax
je 0x40b6cd
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40b64d
mov eax, dword [ecx]
mov dword [ecx], 0
test eax, eax
je 0x40b64f
mov eax, dword [ecx + 4]
jmp 0x40b64f
xor eax, eax
mov edx, dword [esi]
mov ecx, dword [esi + 4]
test edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
mov dword [esi], 1
mov dword [esi + 4], eax
je 0x40b67c
test ecx, ecx
je 0x40b67c
lock dec dword [ecx]
jne 0x40b67c
lea eax, [ebp - 0x24]
push eax
call fcn.0040b140
add esp, 4
add esi, 4
jmp 0x40b6ba
push edi
call fcn.0041f7b0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x40b5c7
jmp 0x40b5d2
push edi
call fcn.0041f7b0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x40b5ed
xor esi, esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
push edi
call fcn.0041f7b0
add esp, 4
jmp 0x40b62d
mov dword [ebp - 0x10], 0
push 4
push 0xc
call fcn.00420310
add esp, 8
ud2
Function at 0x40b710
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x40c2a0
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [edi]
test eax, eax
je 0x40b828
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x40b762
cmp dword [eax], 0
mov esi, eax
jne 0x40b823
mov eax, dword [edi]
test eax, eax
je 0x40b846
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x40b85f
mov esi, eax
test eax, eax
jne 0x40b7c9
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], edi
push 4
push 0x10
call fcn.00401390
add esp, 8
test eax, eax
je 0x40b882
movsd xmm0, qword [ebp - 0x2c]
movsd xmm1, qword [ebp - 0x24]
mov esi, eax
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
mov eax, dword [edi]
test eax, eax
je 0x40b874
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x40b7e6
mov eax, dword [edx]
mov dword [edx], 0
test eax, eax
mov ecx, eax
je 0x40b7ea
mov eax, dword [edx + 4]
mov ecx, dword [edx + 8]
jmp 0x40b7ea
xor eax, eax
xor ecx, ecx
mov edx, dword [esi + 8]
mov dword [ebp - 0x24], edx
movsd xmm0, qword [esi]
movsd qword [ebp - 0x2c], xmm0
mov dword [esi], 1
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
cmp dword [ebp - 0x2c], 0
je 0x40b823
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40b823
lock dec dword [eax]
jne 0x40b823
lea eax, [ebp - 0x24]
push eax
call fcn.0040b0e0
add esp, 4
add esi, 4
jmp 0x40b861
push edi
call fcn.0041f7b0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x40b757
jmp 0x40b762
push edi
call fcn.0041f7b0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x40b77d
xor esi, esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
push edi
call fcn.0041f7b0
add esp, 4
jmp 0x40b7c1
mov dword [ebp - 0x10], 0
push 4
push 0x10
call fcn.00420310
add esp, 8
ud2