joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40689a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068be
xor eax, eax
test eax, eax
je 0x4068d1
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068d1
xor ecx, ecx
jmp 0x4068d4
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4069f7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x406a2e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a08
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x406a03
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a5f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x406a41
pop edi
not eax
pop esi
ret 0xc

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x430000
Capabilities:
Check for vm using instruction vpcext
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x3fae084d
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e3d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x6a5f040d
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x404185
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dh, 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.00403ef4
xor eax, 0x8d67fbce
inc ebp
test al, 0x50
call fcn.00403f04
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00403eb9
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x4041e2
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
int 0x7f
Function at 0x405897
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add dword [eax - 0x7b], ebx
ror byte [edi], 0x84
stc
push es
add byte [eax], al

Function at 0x411a40
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call fcn.00414612
add esp, 0x18
test eax, eax
mov dword [esi], eax
pop esi
je 0x411a68
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x411a77
mov eax, 1
ret 4

Function at 0x411d0c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423214]
jne 0x411d16
repz ret
jmp fcn.00414aa5

Function at 0x419434
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00415a14
xor ebx, ebx
cmp dword [0x424ac8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x419509
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x419474
xor eax, eax
jmp 0x4195cd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x41946d
push eax
call fcn.004159b1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x424ac8], eax
call esi
push eax
call fcn.004159b1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x424acc], eax
call esi
push eax
call fcn.004159b1
mov dword [0x424ad0], eax
lea eax, [ebp - 8]
push eax
call fcn.00417375
test eax, eax
pop ecx
pop ecx
je 0x4194d7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00417a58
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x419509
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004159b1
cmp eax, ebx
pop ecx
mov dword [0x424ad8], eax
je 0x419509
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004159b1
pop ecx
mov dword [0x424ad4], eax
mov eax, dword [0x424ad4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x419582
cmp dword [0x424ad8], esi
je 0x419582
push eax
call fcn.00415a1d
pop ecx
call eax
cmp eax, ebx
je 0x41954f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x424ad8]
call fcn.00415a1d
pop ecx
call eax
test eax, eax
je 0x41954f
test byte [ebp - 0x18], 1
jne 0x419582
lea eax, [ebp - 0xc]
push eax
call fcn.004173ac
test eax, eax
pop ecx
je 0x41956a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00417a58
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x419579
or dword [ebp + 0x10], 0x200000
jmp 0x4195b3
or dword [ebp + 0x10], 0x40000
jmp 0x4195b3
mov eax, dword [0x424acc]
cmp eax, esi
je 0x4195b3
push eax
call fcn.00415a1d
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4195b3
mov eax, dword [0x424ad0]
cmp eax, esi
je 0x4195b3
push dword [ebp - 4]
push eax
call fcn.00415a1d
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x424ac8]
call fcn.00415a1d
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43a004]
jne 0x40100a
repz ret
jmp fcn.00401264

Function at 0x40343b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040243c
and dword [ebp - 0x14], 0
cmp dword [0x43c58c], 0
mov dword [ebp - 0x18], eax
jne 0x4034ee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403596
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x403596
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x43c58c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43c590], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43c594], eax
call edi
push eax
call esi
mov dword [0x43c59c], eax
test eax, eax
je 0x4034ee
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x43c598], eax
mov eax, dword [0x43c598]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403547
cmp dword [0x43c59c], ecx
je 0x403547
push eax
call esi
push dword [0x43c59c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403547
test ebx, ebx
je 0x403547
call edi
test eax, eax
je 0x40353e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40353e
test byte [ebp - 8], 1
jne 0x403547
or dword [ebp + 0x10], 0x200000
jmp 0x40357a
mov eax, dword [0x43c590]
cmp eax, dword [ebp - 0x18]
je 0x40357a
push eax
call esi
test eax, eax
je 0x40357a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40357a
mov eax, dword [0x43c594]
cmp eax, dword [ebp - 0x18]
je 0x40357a
push eax
call esi
test eax, eax
je 0x40357a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43c58c]
call esi
test eax, eax
je 0x403596
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403598
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x406f80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x64
mov edx, dword [esp + 0x7c]
movzx eax, word [esp + 0x84]
movzx ecx, byte [esp + 0x88]
movzx esi, word [esp + 0x80]
cmp word [edx + 0xc], 0
mov word [esp + 8], ax
mov byte [esp + 0xa], cl
je 0x406fc0
cmp word [edx + 0xe], si
jne 0x406fc0
mov byte [edx + 0x10], 1
mov byte [edx + 0x11], cl
shl esi, 5
movzx edi, cl
xor ebx, ebx
or edi, esi
test cl, cl
mov dword [esp + 0x10], edi
mov word [esp + 2], di
je 0x406ff1
mov ch, cl
nop dword [eax]
mov esi, eax
movzx eax, ax
and esi, 1
shr eax, 1
dec ch
lea ebx, [esi + ebx*2]
jne 0x406fe0
mov ebp, dword [edx + 8]
movzx eax, byte [edx + 0x12]
mov esi, dword [edx + 4]
xor edi, edi
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x10]
sub al, cl
and cl, 0xf
and al, 0xf
movzx edx, cl
movzx eax, al
mov dword [esp + 0xc], eax
nop word cs:[eax + eax]
mov eax, edi
mov ecx, edx
shl eax, cl
or eax, ebx
movzx ecx, ax
cmp dword [esp + 4], ecx
mov dword [esp + 0x14], ecx
jbe 0x40710e
cmp word [esi + ecx*2], 0x10
lea eax, [esi + ecx*2]
jne 0x407063
lea ecx, [edi + 1]
mov word [eax], bp
inc edi
movzx eax, cx
mov ecx, dword [esp + 0xc]
shr eax, cl
test eax, eax
je 0x407020
mov eax, dword [esp + 0x78]
mov byte [eax], 4
jmp 0x407106
lea ecx, [esp + 0x14]
lea esi, [esp + 0x18]
mov dword [esp + 0x40], 0x437aa4
mov dword [esp + 0x44], 5
mov dword [esp + 0x50], 0
lea edi, [esp + 0x58]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], fcn.00423950
mov dword [esp + 0x20], eax
lea eax, [esp + 2]
mov dword [esp + 0x24], fcn.00423760
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], 5
mov dword [esp + 0x28], eax
lea eax, [esp + 0x80]
mov dword [esp + 0x2c], fcn.00423760
mov dword [esp + 0x30], eax
lea eax, [esp + 8]
mov dword [esp + 0x34], fcn.00423760
mov dword [esp + 0x38], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], 0x407160
push eax
push edi
call fcn.004211e0
add esp, 8
push edi
push 0x15
push esi
call fcn.00407be0
add esp, 0xc
mov eax, dword [esp + 0x78]
movsd xmm0, qword [esp + 0x18]
movsd qword [eax], xmm0
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x437a54
push dword [esp + 8]
push ecx
call fcn.00428000
int3
Function at 0x40ea90
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 dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x40f3b0
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x441164]
test al, al
je 0x40ec61
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40eadc
cmp eax, 3
jne 0x40ec5a
mov ebx, dword [0x441168]
test ebx, ebx
je 0x40ec5a
mov dword [ebp - 0x20], 0
jmp 0x40eb07
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x40eb38
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x40ecab
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x40eb00
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 0x40eb00
test byte [ebp - 0x20], 1
je 0x40ec5a
mov ebx, dword [0x441168]
test ebx, ebx
je 0x40ec5a
mov dword [ebp - 0x20], 0
jmp 0x40eb67
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x40eb98
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x40ecab
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x40eb60
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 0x40eb60
test byte [ebp - 0x20], 1
je 0x40ec5a
mov ebx, dword [0x441168]
test ebx, ebx
je 0x40ec5a
mov dword [ebp - 0x20], 0
jmp 0x40ebc7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x40ebf8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x40ecab
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x40ebc0
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 0x40ebc0
test byte [ebp - 0x20], 1
je 0x40ec5a
mov ebx, dword [0x441168]
test ebx, ebx
je 0x40ec5a
mov dword [ebp - 0x20], 0
jmp 0x40ec27
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x40ec54
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x40ecab
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x40ec20
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 0x40ec20
test byte [ebp - 0x20], 1
jne 0x40ec74
movzx eax, byte [0x43de80]
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 [0x441168]
jmp 0x40ec7f
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x40ec5a
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x40ecab
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x40ec7c
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x40ec7c
mov dword [ebp - 0x10], 0
push 0x439128
call fcn.004282c0
add esp, 4
ud2
Function at 0x411fc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
test eax, eax
je 0x411fe3
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x411ff8
cmp dword [eax + 4], 0
je 0x411ff8
add eax, 8
pop esi
ret
push esi
call fcn.00427660
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x411fd8
mov eax, dword [esi]
test eax, eax
je 0x41208a
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4120a3
test eax, eax
jne 0x41204e
movzx eax, byte [0x441161]
push 4
push 0x10
call fcn.00406950
add esp, 8
test eax, eax
je 0x4120b8
mov dword [eax], esi
mov dword [eax + 4], 0
mov ecx, dword [esi]
test ecx, ecx
je 0x4120a7
dec ecx
push eax
push ecx
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x412072
mov edx, dword [esi]
xor ecx, ecx
mov dword [esi], 0
cmp edx, 1
mov edx, 0
jne 0x412076
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x412076
xor ecx, ecx
xor edx, edx
lea esi, [eax + 8]
mov dword [eax + 4], 1
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
mov eax, esi
pop esi
ret
push esi
call fcn.00427660
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x412013
xor eax, eax
pop esi
ret
push esi
mov esi, eax
call fcn.00427660
add esp, 4
mov ecx, eax
mov eax, esi
jmp 0x412042
push 0x10
push 4
call fcn.00427d50
int3
Function at 0x4120d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x20
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x4121b3
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x4120ff
mov ecx, dword [eax]
or ecx, dword [eax + 4]
jne 0x4121aa
mov eax, dword [esi]
test eax, eax
je 0x4121d1
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4121ea
test eax, eax
jne 0x412160
movzx eax, byte [0x441161]
push 8
push 0x20
call fcn.00406950
add esp, 8
test eax, eax
je 0x412206
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], esi
mov ecx, dword [esi]
test ecx, ecx
je 0x4121f2
dec ecx
push eax
push ecx
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, esi
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41217f
mov edx, dword [ecx]
movups xmm0, xmmword [ecx + 8]
mov dword [ecx + 4], 0
mov dword [ecx], 0
cmp edx, 1
je 0x412199
xorps xmm0, xmm0
mov ecx, esp
movaps xmmword [esp], xmm0
push 0x10
push ecx
mov esi, eax
call dword [sym.imp.bcryptprimitives.dll_ProcessPrng]
movaps xmm0, xmmword [esp]
mov eax, esi
mov dword [eax + 4], 0
mov dword [eax], 1
movups xmmword [eax + 8], xmm0
add eax, 8
lea esp, [ebp - 4]
pop esi
pop ebp
ret
push esi
call fcn.00427660
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x4120f4
jmp 0x4120ff
push esi
call fcn.00427660
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x41211a
xor eax, eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret
push esi
mov esi, eax
call fcn.00427660
add esp, 4
mov ecx, eax
mov eax, esi
jmp 0x412154
push 0x20
push 8
call fcn.00427d50
int3
Function at 0x412210
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], 0x4131e0
mov esi, 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 [esi]
test eax, eax
je 0x41231d
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x412261
cmp dword [eax + 4], 0
jne 0x412318
mov eax, dword [esi]
test eax, eax
je 0x41233b
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x412354
test eax, eax
jne 0x4122cb
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], esi
movzx eax, byte [0x441161]
push 4
push 0xc
call fcn.00406950
add esp, 8
test eax, eax
je 0x41237c
mov ecx, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x28]
mov dword [eax + 8], ecx
movsd qword [eax], xmm0
mov ecx, dword [esi]
test ecx, ecx
je 0x412368
dec ecx
push eax
push ecx
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, esi
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4122e3
mov ecx, dword [edx]
mov dword [edx], 0
test ecx, ecx
je 0x4122e5
mov ecx, dword [edx + 4]
jmp 0x4122e5
xor ecx, ecx
mov esi, dword [eax + 4]
mov edx, dword [eax + 8]
test esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], edx
mov dword [eax + 4], 1
mov dword [eax + 8], ecx
je 0x412318
test edx, edx
je 0x412318
lock dec dword [edx]
jne 0x412318
lea ecx, [ebp - 0x24]
push ecx
mov esi, eax
call fcn.00413f70
mov eax, esi
add esp, 4
add eax, 8
jmp 0x412356
push esi
call fcn.00427660
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x412257
jmp 0x412261
push esi
call fcn.00427660
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x41227c
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
mov esi, eax
call fcn.00427660
add esp, 4
mov ecx, eax
mov eax, esi
jmp 0x4122bf
mov dword [ebp - 0x10], 0
push 0xc
push 4
call fcn.00427d50
add esp, 8
ud2
Function at 0x412e20
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], 0x413240
mov esi, ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0x441024]
test eax, eax
je 0x412f37
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x412e73
cmp dword [eax + 4], 0
jne 0x412f32
mov eax, dword [0x441024]
test eax, eax
je 0x412f59
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x412f76
test eax, eax
jne 0x412ee8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0x441024
movzx eax, byte [0x441161]
push 4
push 0xc
call fcn.00406950
add esp, 8
test eax, eax
je 0x412fa2
mov ecx, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x28]
mov dword [eax + 8], ecx
movsd qword [eax], xmm0
mov ecx, dword [0x441024]
test ecx, ecx
je 0x412f8a
dec ecx
push eax
push ecx
mov edi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, edi
test esi, esi
je 0x412efd
mov ecx, dword [esi]
mov dword [esi], 0
test ecx, ecx
je 0x412eff
mov ecx, dword [esi + 4]
jmp 0x412eff
xor ecx, ecx
mov esi, dword [eax + 4]
mov edx, dword [eax + 8]
test esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], edx
mov dword [eax + 4], 1
mov dword [eax + 8], ecx
je 0x412f32
test edx, edx
je 0x412f32
lock dec dword [edx]
jne 0x412f32
lea ecx, [ebp - 0x24]
push ecx
mov esi, eax
call fcn.00413fd0
mov eax, esi
add esp, 4
add eax, 8
jmp 0x412f78
push 0x441024
call fcn.00427660
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x412e69
jmp 0x412e73
push 0x441024
call fcn.00427660
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x412e91
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x441024
mov edi, eax
call fcn.00427660
add esp, 4
mov ecx, eax
mov eax, edi
jmp 0x412edc
mov dword [ebp - 0x10], 0
push 0xc
push 4
call fcn.00427d50
add esp, 8
ud2