joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403af0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
xor ebx, ebx
cmp dword [0x6d4ce4], ebx
je 0x403c7a
cmp dword [0x6d4cd4], ebx
jne 0x403c7a
push esi
push edi
mov dword [0x6d4cd4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x6ccc38]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [0x6ccc38]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call fcn.00403970
mov esi, dword [0x6d4cd8]
cmp esi, ebx
je 0x403b89
mov edx, dword [esi]
call edx
mov eax, dword [fcn.00413ef0]
mov ecx, esi
mov esi, dword [esi + 4]
cmp eax, ebx
je 0x403b7c
cmp eax, fcn.00413ef0
je 0x403b7c
push 0x20a
push str.....cryptoinit.c
push ecx
call eax
add esp, 0xc
jmp 0x403b85
push ecx
call fcn.005dcea1
add esp, 4
cmp esi, ebx
jne 0x403b51
mov eax, dword [0x6d4cdc]
mov dword [0x6d4cd8], ebx
mov esi, eax
cmp eax, ebx
je 0x403bc9
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [fcn.00413ef0]
cmp eax, ebx
je 0x403bc0
cmp eax, fcn.00413ef0
je 0x403bc0
push 0x40
push str.....crypto_threads_win.c
push esi
call eax
add esp, 0xc
jmp 0x403bc9
push esi
call fcn.005dcea1
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x6d4cdc], ebx
cmp dword [0x6d4d2c], ebx
je 0x403bee
mov eax, dword [0x6d4888]
push eax
call edi
mov ecx, dword [0x6d488c]
push ecx
call edi
cmp dword [0x6d4d00], ebx
je 0x403c08
push 0x405610
mov esi, 0x6d4d70
call fcn.0041ac10
add esp, 4
mov eax, dword [0x6ccc38]
push eax
mov dword [0x6ccc38], 0xffffffff
call edi
call fcn.00402820
mov esi, dword [0x6d4844]
cmp esi, ebx
je 0x403c45
call fcn.00419a50
mov edx, dword [0x6d483c]
push edx
mov dword [0x6d4844], ebx
call edi
mov eax, dword [0x6d4840]
push eax
call edi
call fcn.00424e60
call fcn.00424cf0
call fcn.00426890
call fcn.0046b5c0
call fcn.0041bd20
call fcn.0040e610
call fcn.00401c20
call fcn.004120f0
call fcn.004056a0
pop edi
mov dword [0x6d4ce4], ebx
pop esi
pop ebx
ret

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

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x6d47b0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x406c2b
mov ecx, dword [0x6d47b0]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call fcn.00405570
add esp, 4
pop edi
pop esi
ret
Function at 0x406ca0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 4
call fcn.005e38a0
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push 0
push 0
push 0x40000
mov dword [esp + 0x18], eax
call fcn.00403c80
add esp, 0xc
test eax, eax
je 0x406d4e
push 0x406c50
mov esi, 0x6d4d6c
call fcn.0041ac10
add esp, 4
neg eax
sbb eax, eax
test dword [0x6d4d7c], eax
je 0x406d4e
call edi
mov edi, eax
mov eax, dword [0x6d47b0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, 0xffffffff
je 0x406d4e
test esi, esi
jne 0x406d80
mov ecx, dword [0x6d47b0]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0xffffffffffffffff
push ecx
call ebx
test eax, eax
je 0x406d4e
mov ecx, 0x2de
mov edx, str.....cryptoerrerr.c
mov edi, 0x188
call fcn.00413cf0
mov esi, eax
push 0
test esi, esi
jne 0x406d57
mov edx, dword [0x6d47b0]
push edx
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
call fcn.00403a00
add esp, 8
test eax, eax
je 0x406d94
mov eax, dword [0x6d47b0]
push esi
push eax
call ebx
test eax, eax
je 0x406d94
push 0
push 0
push 2
call fcn.00403c80
add esp, 0xc
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.00405570
mov ecx, dword [0x6d47b0]
add esp, 4
push 0
push ecx
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e6c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.005e38a0
push ebx
push esi
mov esi, ecx
push esi
push edi
call fcn.00444970
push 0x62
push esi
mov ebx, eax
mov dword [ebp - 4], 1
call fcn.005e4b80
add esp, 0x10
test eax, eax
jne 0x40e6f7
mov dword [ebp - 4], 0x11
test ebx, ebx
jne 0x40e782
push 0x45
push str.....crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004058f0
push 0x6924f0
push esi
push 0x6924f4
push edi
push str.fopen_
push 5
call fcn.00406f60
add esp, 0x2c
call fcn.005e4c80
cmp dword [eax], 2
je 0x40e762
call fcn.005e4c80
cmp dword [eax], 6
je 0x40e762
push 0x4e
push str.....crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.004058f0
add esp, 0x14
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4c
push str.....crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.004058f0
add esp, 0x14
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x691b28
call fcn.0040d500
add esp, 4
mov esi, eax
push ebx
test esi, esi
jne 0x40e7a6
call fcn.005e2820
add esp, 4
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
push 0x6a
push esi
call fcn.0040dfe0
add esp, 0x10
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x413710
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0xc
call fcn.005e38a0
cmp dword [0x6d4d94], 0
push ebx
push esi
push edi
jne 0x41385f
push 0x30
push 0x6d47c8
push 0x699c9c
mov dword [0x6d4d94], 1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x2e
ja 0x41383c
xor eax, eax
cmp word [0x6d47c8], 0x7e
sete al
mov edi, eax
lea ecx, [edi*2 + 0x6d47c8]
call fcn.00413640
mov esi, eax
mov ebx, edx
test edi, edi
je 0x4137a8
push 0x6d4f20
mov edi, esi
mov dword [esp + 0x18], ebx
call fcn.00587700
not esi
and esi, eax
not ebx
and edi, 0x1000000
xor eax, eax
add esp, 4
and ebx, edx
or edi, eax
je 0x4137c3
and ebx, 0xedfff7fd
jmp 0x4137c3
cmp word [0x6d47c8], 0x3a
jne 0x4137c3
push 0x6d4f20
call fcn.00587700
add esp, 4
mov esi, eax
mov ebx, edx
mov dx, word [0x6d47c8]
xor edi, edi
mov eax, 0x6d47c8
movzx ecx, dx
cmp dx, di
je 0x4137f2
lea esp, [esp]
cmp cx, 0x3a
je 0x413800
movzx ecx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x4137e0
mov dword [0x6d4f28], edi
mov dword [0x6d4f2c], edi
jmp 0x41384d
cmp eax, edi
je 0x4137f2
xor ecx, ecx
cmp word [eax + 2], 0x7e
sete cl
mov edi, ecx
lea ecx, [eax + edi*2 + 2]
call fcn.00413640
test edi, edi
je 0x41382f
not eax
and dword [0x6d4f28], eax
not edx
and dword [0x6d4f2c], edx
jmp 0x41384d
mov dword [0x6d4f28], eax
mov dword [0x6d4f2c], edx
jmp 0x41384d
push 0x6d4f20
call fcn.00587700
add esp, 4
mov esi, eax
mov ebx, edx
or esi, 0x400
mov dword [0x6d4f20], esi
mov dword [0x6d4f24], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4139b0
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x208
call fcn.005e38a0
mov eax, dword [0x6c6e10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x413a25
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x413a25
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x204]
push 0x200
push edx
call fcn.005e5cd8
add esp, 0x10
test eax, eax
jns 0x413a08
mov eax, 0x200
push 0
lea ecx, [ebp - 0x208]
push ecx
push eax
lea edx, [ebp - 0x204]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x413b6e
mov ebx, dword [ebp + 8]
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413a30
sub eax, edx
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.005f9610
mov esi, esp
test esi, esi
jne 0x413a54
mov esi, str.no_stack_
jmp 0x413adf
push edi
push esi
push edi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x413a81
test edi, edi
je 0x413a81
lea ebx, [ebx]
mov ecx, dword [ebp + 8]
movsx dx, byte [eax + ecx]
mov word [esi + eax*2], dx
inc eax
cmp eax, edi
jb 0x413a70
xor eax, eax
test edi, edi
je 0x413adf
cmp word [esi + eax*2], 0x25
jne case.0x413aa4.43
lea ecx, [esi + eax*2 + 2]
movzx edx, word [ecx]
add edx, 0xffffffd6
cmp edx, 0x49
ja case.0x413aa4.43
movzx edx, byte [edx + 0x413ba0]
jmp dword [edx*4 + 0x413b88]
inc eax
add ecx, 2
jmp 0x413a92
mov ecx, 0x53
mov word [esi + eax*2 + 2], cx
jmp case.0x413aa4.43
mov edx, 0x73
jmp 0x413ad5
mov ecx, 0x43
mov word [esi + eax*2 + 2], cx
jmp case.0x413aa4.43
mov edx, 0x63
mov word [esi + eax*2 + 2], dx
inc eax
cmp eax, edi
jb 0x413a87
lea eax, [ebp + 0xc]
push eax
push esi
lea ecx, [ebp - 0x204]
push 0xff
push ecx
call fcn.005e5c0f
xor edx, edx
add esp, 0x10
mov word [ebp - 6], dx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x413b58
call fcn.00413870
test eax, eax
jle 0x413b58
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x413b6e
push 0
lea ecx, [ebp - 0x208]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x204]
push esi
mov dword [ebp - 0x208], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x413b6e
push 0x10
push str.OpenSSL:_FATAL
lea edx, [ebp - 0x204]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esp, [ebp - 0x214]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dcf8a
mov esp, ebp
pop ebp
ret

Function at 0x4196f0
Capabilities:
Hash data with md5

Disassembly:
push 0x5c
push 0
push esi
call fcn.005dd9b0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
ret
Function at 0x41a580
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 4
call fcn.005e38a0
cmp dword [0x6d4cd4], 0
push ebx
push esi
push edi
je 0x41a5bd
push 0x270
push str.....cryptoinit.c
push 0x46
push 0x74
push 0xf
call fcn.004058f0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push fcn.00403460
mov esi, 0x6d4ce0
call fcn.0041ac10
add esp, 4
neg eax
sbb eax, eax
test dword [0x6d4ce8], eax
je 0x41a69b
push 0x403510
mov esi, 0x6d4cec
call fcn.0041ac10
add esp, 4
neg eax
sbb eax, eax
test dword [0x6d4cf0], eax
je 0x41a69b
push 0x403570
mov esi, 0x6d4cf4
call fcn.0041ac10
add esp, 4
neg eax
sbb eax, eax
test dword [0x6d4cf8], eax
je 0x41a69b
mov esi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call esi
mov dword [0x6d483c], eax
cmp eax, 0xffffffff
je 0x41a69b
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x6d4840], eax
cmp eax, 0xffffffff
je 0x41a693
mov eax, dword [0x6d4db8]
mov ecx, dword [0x6cc8ac]
push eax
push ecx
push 1
xor edi, edi
call fcn.00419890
mov esi, eax
add esp, 0xc
test esi, esi
je 0x41a680
call fcn.0041a450
test eax, eax
jne 0x41a674
call fcn.00419a50
xor esi, esi
jmp 0x41a680
mov dword [esi + 0x58], 1
call fcn.00419b30
mov dword [0x6d4844], esi
test esi, esi
jne 0x41a6a4
mov edx, dword [0x6d4840]
push edx
call ebx
mov eax, dword [0x6d483c]
push eax
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
push 0x41a570
mov esi, 0x6d4db4
call fcn.0041ac10
add esp, 4
neg eax
sbb eax, eax
test dword [0x6d4dbc], eax
jne 0x41a9ce
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x6d4840]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x41aa19
push esi
push 4
call fcn.00403a00
add esp, 8
test eax, eax
je 0x41a9c6
mov ecx, dword [0x6d4844]
call fcn.0041a520
mov ecx, dword [0x6d4840]
mov esi, eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41aa30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
push 0x41a570
mov esi, 0x6d4db4
call fcn.0041ac10
add esp, 4
neg eax
sbb eax, eax
test dword [0x6d4dbc], eax
jne 0x41aa5e
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x6d483c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x41aaa9
push esi
push 4
call fcn.00403a00
add esp, 8
test eax, eax
je 0x41aa56
mov ecx, dword [0x6d4844]
call fcn.0041a520
mov ecx, dword [0x6d483c]
mov esi, eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41ad50
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xc
call fcn.005e38a0
push ebx
push esi
mov esi, ecx
push edi
mov edi, esi
xor ebx, ebx
call fcn.00402e70
mov edi, eax
push edi
call fcn.00402f80
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x41ae11
push 0xf0000040
push 1
push ebx
push ebx
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x41adb9
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
push ecx
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x41adad
mov ebx, edi
mov eax, dword [ebp - 4]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x18]
sub ecx, eax
cmp ebx, ecx
jbe 0x41addf
push 0x32f
push str.....crypto_rand_rand_lib.c
push 0x7d
push 0x72
push 0x24
call fcn.004058f0
add esp, 0x14
jmp 0x41adf2
test ebx, ebx
je 0x41adf2
add eax, ebx
lea edx, [ebx*8]
add dword [esi + 0x1c], edx
mov dword [esi + 4], eax
mov ebx, dword [esi + 0x1c]
cmp ebx, dword [esi + 0x20]
jb 0x41ae0f
mov eax, dword [esi + 4]
cmp eax, dword [esi + 0x10]
jb 0x41ae0f
test ebx, ebx
je 0x41ae11
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov edi, esi
call fcn.00402e70
mov edi, eax
push edi
call fcn.00402f80
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x41ae8b
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
xor ebx, ebx
push ebx
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x41ae68
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
push edx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x41ae5c
mov ebx, edi
mov ecx, dword [ebp - 4]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea edx, [ebx*8]
push edx
push esi
mov edx, ebx
call fcn.00402ff0
mov ebx, dword [esi + 0x1c]
add esp, 8
cmp ebx, dword [esi + 0x20]
jb 0x41ae93
mov eax, dword [esi + 4]
cmp eax, dword [esi + 0x10]
jb 0x41ae93
test ebx, ebx
jne 0x41ae06
mov ecx, dword [esi + 0x1c]
cmp ecx, dword [esi + 0x20]
jae 0x41aea4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
cmp edx, dword [esi + 0x10]
pop edi
sbb eax, eax
not eax
pop esi
and eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ce70
Capabilities:
Set thread local storage value

Disassembly:
push edi
xor edi, edi
push edi
push 1
call fcn.00403a00
add esp, 8
test eax, eax
jne 0x41ce84
pop edi
ret
mov eax, dword [fcn.00413cb0]
push esi
cmp eax, edi
je 0x41cea5
cmp eax, fcn.00413cb0
je 0x41cea5
push 0x28
push str.....crypto_async_async.c
push 0x10
call eax
add esp, 0xc
jmp 0x41cebd
cmp dword [0x6cc8e4], edi
je 0x41ceb3
mov dword [0x6cc8e4], edi
push 0x10
call fcn.005e325a
add esp, 4
mov esi, eax
cmp esi, edi
jne 0x41ceda
push 0x2a
push str.....crypto_async_async.c
push 0x41
push 0x64
push 0x33
call fcn.004058f0
add esp, 0x14
jmp 0x41cf12
push edi
call dword [sym.imp.KERNEL32.dll_ConvertThreadToFiber]
mov dword [esi], eax
cmp eax, edi
jne 0x41cef4
mov eax, dword fs:[0x10]
mov dword [esi + 4], edi
mov dword [esi], eax
jmp 0x41cefb
mov dword [esi + 4], 1
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [0x6d4888]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x41cf42
mov eax, dword [fcn.00413ef0]
cmp eax, edi
je 0x41cf34
cmp eax, fcn.00413ef0
je 0x41cf34
push 0x36
push str.....crypto_async_async.c
push esi
call eax
add esp, 0xc
pop esi
xor eax, eax
pop edi
ret
push esi
call fcn.005dcea1
add esp, 4
pop esi
xor eax, eax
pop edi
ret
mov eax, esi
pop esi
pop edi
ret

Function at 0x41d180
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x6d488c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [fcn.00413ef0]
mov ecx, dword [edi + 0xc]
test eax, eax
je 0x41d1c7
cmp eax, fcn.00413ef0
je 0x41d1c7
push 0x8b
push str.....crypto_async_async.c
push ecx
call eax
add esp, 0xc
jmp 0x41d1d0
push ecx
call fcn.005dcea1
add esp, 4
mov dword [edi + 0xc], 0
mov esi, dword [ebx]
test esi, esi
je 0x41d1e8
push edi
mov edi, dword [esi]
call fcn.0042cbb0
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x41d240
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push ebx
push ebx
push 0x100
call fcn.00403c80
add esp, 0xc
test eax, eax
jne 0x41d25c
pop ebx
pop ebp
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x6d4888]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
jne 0x41d28e
call fcn.0041ce70
mov esi, eax
cmp esi, ebx
je 0x41d418
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp eax, ebx
je 0x41d2a0
mov dword [esi + 8], eax
lea ebx, [ebx]
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x41d2d5
mov eax, dword [eax + 0x14]
cmp eax, 3
je 0x41d382
cmp eax, 1
je 0x41d3a7
cmp eax, 2
jne 0x41d3bf
mov eax, dword [edi]
mov dword [esi + 8], eax
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_SwitchToFiber]
jmp 0x41d2a0
call fcn.0041d0d0
mov dword [esi + 8], eax
cmp eax, ebx
je 0x41d3eb
mov edi, dword [ebp + 0x18]
cmp edi, ebx
je 0x41d359
mov eax, dword [fcn.00413cb0]
cmp eax, ebx
je 0x41d30f
cmp eax, fcn.00413cb0
je 0x41d30f
push 0xe3
push str.....crypto_async_async.c
push 0x14
call eax
add esp, 0xc
jmp 0x41d327
cmp dword [0x6cc8e4], ebx
je 0x41d31d
mov dword [0x6cc8e4], ebx
push 0x14
call fcn.005e325a
add esp, 4
mov edx, dword [esi + 8]
mov dword [edx + 0xc], eax
mov eax, dword [esi + 8]
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x41d3f5
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov dword [eax], ecx
mov ecx, dword [edi + 8]
mov dword [eax + 4], edx
mov edx, dword [edi + 0xc]
mov dword [eax + 8], ecx
mov ecx, dword [edi + 0x10]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
jmp 0x41d35c
mov dword [eax + 0xc], ebx
mov edx, dword [esi + 8]
mov eax, dword [ebp + 0x14]
mov dword [edx + 8], eax
mov ecx, dword [esi + 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x18], edx
mov eax, dword [esi + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_SwitchToFiber]
mov edi, dword [ebp + 8]
jmp 0x41d2a0
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], edx
mov dword [eax + 0x18], ebx
mov ecx, dword [esi + 8]
call fcn.0041d180
mov dword [esi + 8], ebx
mov dword [edi], ebx
pop edi
pop esi
mov eax, 3
pop ebx
pop ebp
ret
mov edx, dword [esi + 8]
mov dword [edi], edx
mov ecx, dword [esi + 8]
mov eax, 2
pop edi
mov dword [ecx + 0x14], eax
mov dword [esi + 8], ebx
pop esi
pop ebx
pop ebp
ret
push 0xd7
push str.....crypto_async_async.c
push 0x44
push 0x69
push 0x33
call fcn.004058f0
mov ecx, dword [esi + 8]
add esp, 0x14
call fcn.0041d180
mov dword [esi + 8], ebx
mov dword [edi], ebx
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
push 0xe5
push str.....crypto_async_async.c
push 0x41
push 0x69
push 0x33
call fcn.004058f0
mov ecx, dword [esi + 8]
add esp, 0x14
call fcn.0041d180
mov dword [esi + 8], ebx
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x41d580
Capabilities:
Set thread local storage value

Disassembly:
push edi
xor edi, edi
push edi
push edi
push 0x100
call fcn.00403c80
add esp, 0xc
test eax, eax
jne 0x41d59a
xor eax, eax
pop edi
ret
push edi
push 1
call fcn.00403a00
add esp, 8
test eax, eax
je 0x41d596
mov eax, dword [fcn.00413cb0]
push ebx
cmp eax, edi
je 0x41d5cd
cmp eax, fcn.00413cb0
je 0x41d5cd
push 0x14c
push str.....crypto_async_async.c
push 0xc
call eax
add esp, 0xc
jmp 0x41d5e5
cmp dword [0x6cc8e4], edi
je 0x41d5db
mov dword [0x6cc8e4], edi
push 0xc
call fcn.005e325a
add esp, 4
mov ebx, eax
cmp ebx, edi
je 0x41d635
xor eax, eax
mov dword [ebx], eax
push esi
mov dword [ebx + 4], eax
push edi
xor esi, esi
mov dword [ebx + 8], eax
call fcn.0042caf0
add esp, 4
mov dword [ebx], eax
pop esi
cmp eax, edi
jne 0x41d652
push 0x154
push str.....crypto_async_async.c
push 0x41
push 0x65
push 0x33
call fcn.004058f0
push 0x155
push str.....crypto_async_async.c
push ebx
call fcn.00413ef0
add esp, 0x20
pop ebx
xor eax, eax
pop edi
ret
push 0x14e
push str.....crypto_async_async.c
push 0x41
push 0x65
push 0x33
call fcn.004058f0
add esp, 0x14
pop ebx
xor eax, eax
pop edi
ret
mov dword [ebx + 8], edi
mov dword [ebx + 4], edi
mov eax, dword [0x6d488c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x41d6a3
push 0x16d
push str.....crypto_async_async.c
push 0x65
push 0x65
push 0x33
call fcn.004058f0
push ebx
call fcn.0041d480
mov edi, dword [ebx]
call fcn.0042cfc0
push 0x175
push str.....crypto_async_async.c
push ebx
call fcn.00413ef0
add esp, 0x24
pop ebx
xor eax, eax
pop edi
ret
pop ebx
mov eax, 1
pop edi
ret