joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401fdb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x420018]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x9c], eax
push edi
mov edi, ecx
cmp esi, 0xd
jae 0x40200b
or eax, 0xffffffff
jmp 0x4021a0
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x401fbf
push eax
xor ebx, ebx
mov dword [ebp - 0x90], 0x401fcd
push ecx
mov edx, edi
mov dword [ebp - 0x68], ebx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x6c], ebx
call fcn.00404998
xor eax, eax
mov dword [ebp - 0x58], ebx
inc eax
mov dword [ebp - 0x34], ebx
add edi, 5
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
sub esi, 0xd
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x50], ebx
mov eax, dword [edi]
push eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x80], esi
call fcn.00416cdf
add esp, 0xc
mov dword [ebp - 0x84], ebx
mov edi, eax
lea eax, [ebp - 0x84]
mov edx, edi
push eax
push ecx
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x7c]
add eax, 8
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.0040483a
add esp, 0x14
mov esi, eax
lea eax, [ebp - 0x94]
push dword [ebp - 0x6c]
push eax
call dword [ebp - 0x90]
push dword [ebp - 0x68]
lea eax, [ebp - 0x94]
mov dword [ebp - 0x6c], ebx
push eax
call dword [ebp - 0x90]
add esp, 0x10
mov dword [ebp - 0x68], ebx
test esi, esi
je 0x4020da
or ebx, 0xffffffff
jmp 0x402193
mov edx, dword [edi]
lea ecx, [edi + 4]
mov eax, dword [ecx]
push 4
pop esi
add ecx, esi
mov dword [ebp - 0x98], eax
push edx
mov dword [ebp - 0x80], edx
mov eax, dword [ecx]
add ecx, esi
mov dword [ebp - 0x88], eax
mov eax, dword [ecx]
add ecx, esi
mov dword [ebp - 0x8c], eax
mov ebx, dword [ecx]
add ecx, esi
mov dword [ebp - 0x84], ecx
call fcn.00416cdf
mov edx, dword [ebp - 0x88]
mov esi, eax
pop ecx
push dword [ebp - 0x80]
mov ecx, dword [ebp - 0x8c]
push esi
push ebx
mov ebx, dword [ebp - 0x98]
lea eax, [ecx + edx]
add eax, ebx
add eax, dword [ebp - 0x84]
push eax
push ecx
mov ecx, dword [ebp - 0x84]
lea eax, [edx + ebx]
add eax, ecx
push eax
push edx
lea eax, [ebx + ecx]
mov edx, ebx
push eax
call fcn.00404a0a
add esp, 0x20
xor ebx, ebx
test eax, eax
je 0x40215e
inc ebx
jmp 0x402188
push ebx
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0x80]
push esi
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402185
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0xa0], eax
je 0x402188
or ebx, 0xffffffff
test esi, esi
je 0x402193
push esi
call fcn.00416cda
pop ecx
test edi, edi
je 0x40219e
push edi
call fcn.00416cda
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004056fe
leave
ret
Function at 0x402c6e
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.00402d06
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x402cfe
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x402cf7
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
test edx, edx
je 0x402cee
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x402cee
mov ecx, dword [ebp - 0x10]
mov al, 1
mov dword [esi + 0x10], ecx
jmp 0x402d00
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00402d06
xor al, al
pop edi
pop esi
leave
ret 4

Function at 0x402e8d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ecx + 0x10]
push edi
cmp esi, 0x40
jb 0x402eeb
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x402eeb
mov edx, dword [ecx + 0x3c]
lea eax, [edx + 0xf8]
cmp esi, eax
jb 0x402eeb
cmp dword [edx + ecx], 0x4550
jne 0x402eeb
movzx eax, word [edx + ecx + 4]
mov edi, 0x14c
cmp ax, di
je 0x402ed6
mov edi, 0x8664
cmp ax, di
je 0x402eeb
lea eax, [ecx + 0x98]
add eax, edx
mov ecx, dword [eax]
test ecx, ecx
je 0x402eeb
add ecx, 0xc
cmp esi, ecx
jae 0x402eed
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x402ef3
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40228
call fcn.00416bf0
mov eax, dword [0x420018]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40218]
xor ebx, ebx
mov dword [ebp - 0x40214], 1
push ebx
push eax
mov esi, ecx
lea eax, [ebp - 0x4020c]
push 0x200
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403106
cmp dword [ebp - 0x40218], 0x200
jne 0x403106
push 4
lea eax, [ebp - 0x4010b]
push 0x41e908
push eax
call fcn.00416db8
add esp, 0xc
test eax, eax
jne 0x402f75
inc eax
mov byte [edi], al
jmp 0x403108
push 5
lea eax, [ebp - 0x4010b]
push str.ustar
push eax
call fcn.00416db8
add esp, 0xc
test eax, eax
jne 0x403106
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.0040298e
add eax, 0x10
lea ecx, [ebp - 0x40210]
push 0x41e93c
mov dword [ebp - 0x40210], eax
call fcn.00403119
lea eax, [ebp - 0x4020c]
push eax
lea ecx, [ebp - 0x40210]
call fcn.00403119
push ebx
push 0x100
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x40210]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40224], eax
cmp eax, 0xffffffff
je 0x4030f7
push 8
lea eax, [ebp - 0x40190]
push ebx
push eax
call fcn.004180b7
add esp, 0xc
mov dword [ebp - 0x40220], eax
push 1
push ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x40220]
mov edi, ecx
neg edi
add eax, ecx
and edi, 0x1ff
add edi, eax
test ecx, ecx
je 0x4030a4
mov eax, 0x40000
mov dword [ebp - 0x4021c], eax
cmp ecx, eax
jae 0x403046
mov eax, ecx
mov dword [ebp - 0x4021c], ecx
push ebx
lea ecx, [ebp - 0x40218]
push ecx
push eax
lea eax, [ebp - 0x4000c]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40309e
push ebx
lea eax, [ebp - 0x40218]
push eax
push dword [ebp - 0x4021c]
lea eax, [ebp - 0x4000c]
push eax
push dword [ebp - 0x40224]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40309e
mov ecx, dword [ebp - 0x40220]
sub ecx, dword [ebp - 0x4021c]
mov dword [ebp - 0x40220], ecx
jne 0x40302f
jmp 0x4030a4
mov byte [ebp - 0x40214], bl
push dword [ebp - 0x40224]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x40214], bl
je 0x4030e0
cmp byte [esi + 8], bl
je 0x4030cc
lea eax, [ebp - 0x40210]
push eax
lea ecx, [esi + 0xc]
call fcn.0040239f
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4030e0
push dword [ebp - 0x40210]
push dword [esi + 0x1c]
call eax
pop ecx
pop ecx
cmp edi, 0xffffffff
je 0x4030f1
push ebx
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov bl, byte [ebp - 0x40214]
lea ecx, [ebp - 0x40210]
call fcn.0040294a
mov al, bl
jmp 0x403108
xor al, al
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004056fe
leave
ret 4
Function at 0x403170
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov ecx, dword [ecx]
push ebx
push esi
push edi
sub ecx, 0x10
mov dword [ebp - 8], edx
call fcn.0040298e
push 0x44
xor ebx, ebx
push ebx
lea esi, [eax + 0x10]
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], esi
push eax
call fcn.00405a60
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
or dword [ebp - 0x30], 0x81
xor eax, eax
inc eax
mov word [ebp - 0x2c], ax
cmp dword [esi - 4], eax
jle 0x4031d1
push dword [esi - 0xc]
lea ecx, [ebp - 4]
call fcn.00402ae4
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4031fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x403232
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 8]
test eax, eax
je 0x40321f
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne bl
jmp 0x403222
xor ebx, ebx
inc ebx
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
lea ecx, [ebp - 4]
call fcn.0040294a
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x40d8c5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40d962
push ebx
push esi
call fcn.0040d88e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040d7d7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40d90f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40d961
push edi
push eax
call fcn.0040e161
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40d92f
call fcn.0040c3e7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40d960
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040d7d7
add esp, 0x20
test eax, eax
jne 0x40d94e
push edi
call fcn.0040c3e7
jmp 0x40d956
push ebx
call fcn.0040c3e7
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40eb45
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41aee0
push 0x41aed8
push str.FlsAlloc
push 0x1e
call fcn.0040ea63
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40eb79
push dword [ebp + 8]
mov ecx, esi
call dword [0x4191a0]
call esi
jmp 0x40eb7f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40ebc3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41aef0
push 0x41aee8
push str.FlsGetValue
push 0x20
call fcn.0040ea63
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ebfa
push dword [ebp + 8]
mov ecx, esi
call dword [0x4191a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x414181
Capabilities:
Contain obfuscated stackstrings

Disassembly:
popfd
and dh, al
inc ebp
sahf
sub eax, 0x119f45c6
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00413db0
push eax
push esi
push dword [ebp + 8]
call fcn.00413d65
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [di - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00413db0
push eax
push esi
push dword [ebp + 8]
call fcn.00413d65
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00413da0
xlatb
mov byte [0x9d888109], al
jl 0x414225
invalid
invalid

Function at 0x4141d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
popfd
and dh, al
inc ebp
sahf
sub eax, 0x119f45c6
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00413db0
push eax
push esi
push dword [ebp + 8]
call fcn.00413d65
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [di - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00413db0
push eax
push esi
push dword [ebp + 8]
call fcn.00413d65
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00413da0
xlatb
mov byte [0x9d888109], al
jl 0x414225
invalid
invalid
Function at 0x416f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0xd000]
push edi
or ebp, 0xffffffff
jmp 0x416f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x416f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x416f38
mov eax, 1
add ebx, ebx
jne 0x416f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x416f50
jne 0x416f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x416f50
xor ecx, ecx
sub eax, 3
jb 0x416f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x416ff2
mov ebp, eax
add ebx, ebx
jne 0x416f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x416f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x416fbc
inc ecx
add ebx, ebx
jne 0x416fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x416f9d
jne 0x416fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x416f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x416fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x416fcd
jmp 0x416f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x416fdc
add edi, ecx
jmp 0x416f3e
pop esi
mov edi, esi
mov ecx, 0x712
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x416ffa
cmp byte [edi], 0xa
jne 0x416ffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x416fff
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0x41706e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x17000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17078]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41702c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1707c]
or eax, eax
je 0x417068
mov dword [ebx], eax
add ebx, 4
jmp 0x417049
call dword [esi + 0x17080]
popal
jmp 0x407cd2

Function at 0x8ccbac
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x8cc92e
dec ecx
call fcn.008ccbdf
sub edi, 0x9f8e9b25
sub edi, ecx
xor dword [eax], esi
push 0xed9da771
mov edi, dword [esp]
add esp, 4
inc eax
or edi, edi
cmp eax, edx
jne fcn.008ccbac
add ecx, 0x26fb2614
dec edi
ret
Function at 0x10028550
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp + 8]
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0xc]
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, dword [0x101042e0]
mov esi, eax
mov eax, dword [0x10105650]
nop
mov edi, dword [0x101042d0]
mov ecx, edi
and ecx, 0x1f
xor edi, eax
ror edi, cl
cmp edi, 0xffffffff
je 0x100285eb
test edi, edi
jne 0x10028644
mov edi, 0x1000a588
lea esp, [esp]
mov ecx, dword [edi]
call fcn.1003269e
test eax, eax
jne 0x100285b8
add edi, 4
cmp edi, 0x1000a590
jne 0x100285a0
jmp 0x100285ca
push 0x1000a548
push eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x10028624
mov eax, dword [0x101042d0]
mov ecx, 0x20
and eax, 0x1f
sub ecx, eax
or eax, 0xffffffff
ror eax, cl
mov ecx, 0x10105650
xor eax, dword [0x101042d0]
xchg dword [ecx], eax
push ebx
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
dec edi
lea eax, [ebp - 4]
neg edi
push eax
sbb edi, edi
lea eax, [ebp - 0x10]
push eax
and edi, 0xfffffff5
lea eax, [ebp - 8]
add edi, 0xd
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.100296e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x101042d0]
mov ecx, 0x20
and eax, 0x1f
sub ecx, eax
mov eax, edi
ror eax, cl
mov ecx, 0x10105650
xor eax, dword [0x101042d0]
xchg dword [ecx], eax
push ebx
mov ecx, edi
call dword [0x10106270]
call edi
jmp 0x100285f2
Function at 0x100285ca
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp + 8]
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0xc]
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, dword [0x101042e0]
mov esi, eax
mov eax, dword [0x10105650]
nop
mov edi, dword [0x101042d0]
mov ecx, edi
and ecx, 0x1f
xor edi, eax
ror edi, cl
cmp edi, 0xffffffff
je 0x100285eb
test edi, edi
jne 0x10028644
mov edi, 0x1000a588
lea esp, [esp]
mov ecx, dword [edi]
call fcn.1003269e
test eax, eax
jne 0x100285b8
add edi, 4
cmp edi, 0x1000a590
jne 0x100285a0
jmp 0x100285ca
push 0x1000a548
push eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x10028624
mov eax, dword [0x101042d0]
mov ecx, 0x20
and eax, 0x1f
sub ecx, eax
or eax, 0xffffffff
ror eax, cl
mov ecx, 0x10105650
xor eax, dword [0x101042d0]
xchg dword [ecx], eax
push ebx
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
dec edi
lea eax, [ebp - 4]
neg edi
push eax
sbb edi, edi
lea eax, [ebp - 0x10]
push eax
and edi, 0xfffffff5
lea eax, [ebp - 8]
add edi, 0xd
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.100296e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x101042d0]
mov ecx, 0x20
and eax, 0x1f
sub ecx, eax
mov eax, edi
ror eax, cl
mov ecx, 0x10105650
xor eax, dword [0x101042d0]
xchg dword [ecx], eax
push ebx
mov ecx, edi
call dword [0x10106270]
call edi
jmp 0x100285f2

Function at 0x100290c0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x10105650]
push esi
push edi
mov edi, ecx
nop
mov esi, dword [0x101042d0]
mov ecx, esi
and ecx, 0x1f
xor esi, eax
ror esi, cl
cmp esi, 0xffffffff
je 0x10029132
test esi, esi
jne 0x1002915c
mov esi, 0x1000a588
mov ecx, dword [esi]
call fcn.1003269e
test eax, eax
jne 0x100290ff
add esi, 4
cmp esi, 0x1000a590
jne 0x100290e7
jmp 0x10029111
push 0x1000a548
push eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x1002913c
mov eax, dword [0x101042d0]
mov ecx, 0x20
and eax, 0x1f
sub ecx, eax
or eax, 0xffffffff
ror eax, cl
mov ecx, 0x10105650
xor eax, dword [0x101042d0]
xchg dword [ecx], eax
push edi
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
pop edi
pop esi
ret
mov eax, dword [0x101042d0]
mov ecx, 0x20
and eax, 0x1f
sub ecx, eax
mov eax, esi
ror eax, cl
mov ecx, 0x10105650
xor eax, dword [0x101042d0]
xchg dword [ecx], eax
push edi
mov ecx, esi
call dword [0x10106270]
call esi
pop edi
pop esi
ret
Function at 0x10029460
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10080680
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x101042d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x101042e0]
mov eax, dword [0x10105654]
nop
mov esi, dword [0x101042d0]
mov ecx, esi
and ecx, 0x1f
xor esi, eax
ror esi, cl
cmp esi, 0xffffffff
je 0x100294fe
test esi, esi
jne 0x10029538
mov esi, 0x1000a588
mov ecx, dword [esi]
call fcn.1003269e
test eax, eax
jne 0x100294cb
add esi, 4
cmp esi, 0x1000a590
jne 0x100294b3
jmp 0x100294dd
push 0x1000a554
push eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x10029518
mov eax, dword [0x101042d0]
mov ecx, 0x20
and eax, 0x1f
sub ecx, eax
or eax, 0xffffffff
ror eax, cl
mov ecx, 0x10105654
xor eax, dword [0x101042d0]
xchg dword [ecx], eax
push 0
push edi
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x101042d0]
mov ecx, 0x20
and eax, 0x1f
sub ecx, eax
mov eax, esi
ror eax, cl
mov ecx, 0x10105654
xor eax, dword [0x101042d0]
xchg dword [ecx], eax
push 0
push edi
mov ecx, esi
call dword [0x10106270]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10029570
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10080680
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x101042d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x101042e0]
mov eax, dword [0x10105654]
nop
mov esi, dword [0x101042d0]
mov ecx, esi
and ecx, 0x1f
xor esi, eax
ror esi, cl
cmp esi, 0xffffffff
je 0x1002960e
test esi, esi
jne 0x10029648
mov esi, 0x1000a588
mov ecx, dword [esi]
call fcn.1003269e
test eax, eax
jne 0x100295db
add esi, 4
cmp esi, 0x1000a590
jne 0x100295c3
jmp 0x100295ed
push 0x1000a554
push eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x10029628
mov eax, dword [0x101042d0]
mov ecx, 0x20
and eax, 0x1f
sub ecx, eax
or eax, 0xffffffff
ror eax, cl
mov ecx, 0x10105654
xor eax, dword [0x101042d0]
xchg dword [ecx], eax
push 1
push edi
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x101042d0]
mov ecx, 0x20
and eax, 0x1f
sub ecx, eax
mov eax, esi
ror eax, cl
mov ecx, 0x10105654
xor eax, dword [0x101042d0]
xchg dword [ecx], eax
push 1
push edi
mov ecx, esi
call dword [0x10106270]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret