joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e6c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.005e28b0
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.005e3b90
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 0x6914b0
push esi
push 0x6914b4
push edi
push str.fopen_
push 5
call fcn.00406f60
add esp, 0x2c
call fcn.005e3c90
cmp dword [eax], 2
je 0x40e762
call fcn.005e3c90
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 0x690ae8
call fcn.0040d500
add esp, 4
mov esi, eax
push ebx
test esi, esi
jne 0x40e7a6
call fcn.005e182e
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.005e28b0
cmp dword [0x6d2d94], 0
push ebx
push esi
push edi
jne 0x41385f
push 0x30
push 0x6d27c8
push 0x698c5c
mov dword [0x6d2d94], 1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x2e
ja 0x41383c
xor eax, eax
cmp word [0x6d27c8], 0x7e
sete al
mov edi, eax
lea ecx, [edi*2 + 0x6d27c8]
call fcn.00413640
mov esi, eax
mov ebx, edx
test edi, edi
je 0x4137a8
push 0x6d2f20
mov edi, esi
mov dword [esp + 0x18], ebx
call fcn.005869c0
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 [0x6d27c8], 0x3a
jne 0x4137c3
push 0x6d2f20
call fcn.005869c0
add esp, 4
mov esi, eax
mov ebx, edx
mov dx, word [0x6d27c8]
xor edi, edi
mov eax, 0x6d27c8
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 [0x6d2f28], edi
mov dword [0x6d2f2c], 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 [0x6d2f28], eax
not edx
and dword [0x6d2f2c], edx
jmp 0x41384d
mov dword [0x6d2f28], eax
mov dword [0x6d2f2c], edx
jmp 0x41384d
push 0x6d2f20
call fcn.005869c0
add esp, 4
mov esi, eax
mov ebx, edx
or esi, 0x400
mov dword [0x6d2f20], esi
mov dword [0x6d2f24], 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.005e28b0
mov eax, dword [0x6c4e10]
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.005e4ce8
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.005f8610
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.005e4c1f
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.005dbf5a
mov esp, ebp
pop ebp
ret

Function at 0x4196f0
Capabilities:
Hash data with md5

Disassembly:
push 0x5c
push 0
push esi
call fcn.005dc9c0
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.005e28b0
cmp dword [0x6d2cd4], 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, 0x6d2ce0
call fcn.0041ac10
add esp, 4
neg eax
sbb eax, eax
test dword [0x6d2ce8], eax
je 0x41a69b
push 0x403510
mov esi, 0x6d2cec
call fcn.0041ac10
add esp, 4
neg eax
sbb eax, eax
test dword [0x6d2cf0], eax
je 0x41a69b
push 0x403570
mov esi, 0x6d2cf4
call fcn.0041ac10
add esp, 4
neg eax
sbb eax, eax
test dword [0x6d2cf8], eax
je 0x41a69b
mov esi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call esi
mov dword [0x6d283c], eax
cmp eax, 0xffffffff
je 0x41a69b
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x6d2840], eax
cmp eax, 0xffffffff
je 0x41a693
mov eax, dword [0x6d2db8]
mov ecx, dword [0x6ca8ac]
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 [0x6d2844], esi
test esi, esi
jne 0x41a6a4
mov edx, dword [0x6d2840]
push edx
call ebx
mov eax, dword [0x6d283c]
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, 0x6d2db4
call fcn.0041ac10
add esp, 4
neg eax
sbb eax, eax
test dword [0x6d2dbc], 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 [0x6d2840]
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 [0x6d2844]
call fcn.0041a520
mov ecx, dword [0x6d2840]
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, 0x6d2db4
call fcn.0041ac10
add esp, 4
neg eax
sbb eax, eax
test dword [0x6d2dbc], 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 [0x6d283c]
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 [0x6d2844]
call fcn.0041a520
mov ecx, dword [0x6d283c]
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.005e28b0
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 [0x6ca8e4], edi
je 0x41ceb3
mov dword [0x6ca8e4], edi
push 0x10
call fcn.005e2268
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 [0x6d2888]
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.005dc555
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 [0x6d288c]
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.005dc555
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 [0x6d2888]
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 [0x6ca8e4], ebx
je 0x41d31d
mov dword [0x6ca8e4], ebx
push 0x14
call fcn.005e2268
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 [0x6ca8e4], edi
je 0x41d5db
mov dword [0x6ca8e4], edi
push 0xc
call fcn.005e2268
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 [0x6d288c]
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
Function at 0x41d6b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x6d2888]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [0x6d2888]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x41cfb5
pop edi
pop esi
ret
mov eax, dword [fcn.00413ef0]
test eax, eax
je 0x41cfda
cmp eax, fcn.00413ef0
je 0x41cfda
push 0x49
push str.....crypto_async_async.c
push edi
call eax
add esp, 0xc
pop edi
mov eax, 1
pop esi
ret
push edi
call fcn.005dc555
add esp, 4
pop edi
mov eax, 1
pop esi
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
call ebx
mov edi, eax
mov eax, dword [0x6d288c]
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 0x41d720
push esi
call fcn.0041d480
mov edi, dword [esi]
add esp, 4
call fcn.0042cfc0
mov eax, dword [fcn.00413ef0]
test eax, eax
je 0x41d708
cmp eax, fcn.00413ef0
je 0x41d708
push 0x180
push str.....crypto_async_async.c
push esi
call eax
add esp, 0xc
jmp 0x41d711
push esi
call fcn.005dc555
add esp, 4
mov ecx, dword [0x6d288c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call ebx
mov edx, dword [0x6d2888]
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x41d755
cmp dword [esi], 0
je 0x41d755
cmp dword [esi + 4], 0
je 0x41d755
call dword [sym.imp.KERNEL32.dll_ConvertFiberToThread]
mov dword [esi], 0
pop edi
pop esi
pop ebx
jmp 0x41cf80

Function at 0x41d780
Capabilities:
Get thread local storage value

Disassembly:
push 0
push 0
push 0x100
call fcn.00403c80
add esp, 0xc
test eax, eax
jne 0x41d796
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x6d2888]
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 0x41d7be
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [esi + 8]
pop edi
pop esi
ret

Function at 0x428020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
xor esi, esi
test edx, edx
je 0x42806e
mov al, byte [edx]
test al, al
je 0x42806e
push edi
mov edi, 0x100
lea esp, [esp]
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
inc edx
xor esi, eax
mov al, byte [edx]
test al, al
jne 0x428040
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x431890
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 0x84], 0xffffffff
jne 0x4318a9
pop edi
xor eax, eax
pop ebx
pop ebp
ret
mov eax, dword [edi]
mov ecx, dword [eax]
push esi
mov esi, dword [ecx + 4]
mov dword [edx], esi
test ebx, ebx
je 0x43193c
mov eax, dword [edi + 0x84]
cmp eax, esi
jne 0x4318de
test esi, esi
jle 0x431917
mov ecx, ebx
lea eax, [edi + 4]
mov edx, esi
mov bl, byte [eax + 0x60]
xor bl, byte [eax]
inc eax
mov byte [ecx], bl
inc ecx
dec edx
jne 0x4318d0
jmp 0x431914
mov ecx, esi
sub ecx, eax
mov byte [eax + edi + 0x64], 0x80
cmp ecx, 1
jle 0x4318fd
dec ecx
push ecx
lea eax, [eax + edi + 0x65]
push 0
push eax
call fcn.005dc9c0
add esp, 0xc
test esi, esi
jle 0x431917
mov ecx, ebx
lea eax, [edi + 0x24]
mov edx, esi
mov bl, byte [eax + 0x40]
xor bl, byte [eax]
inc eax
mov byte [ecx], bl
inc ecx
dec edx
jne 0x431908
mov ebx, dword [ebp + 8]
mov edi, dword [edi]
mov ecx, dword [edi]
mov edx, dword [ecx + 0x18]
push esi
push ebx
push ebx
push edi
call edx
add esp, 0x10
test eax, eax
jne 0x43193c
push esi
push ebx
call fcn.00586ce0
add esp, 8
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
pop esi
pop edi
mov eax, 1
pop ebx
pop ebp
ret

Function at 0x433870
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
movzx edi, byte [ebp + 0xc]
mov eax, edi
and eax, 1
add esi, ecx
add edx, ecx
test ecx, ecx
je 0x4338a3
push ebx
lea ebx, [ebx]
movzx ebx, byte [edx - 1]
dec edx
xor ebx, edi
add eax, ebx
dec esi
mov byte [esi], al
shr eax, 8
dec ecx
jne 0x433890
pop ebx
pop edi
pop esi
pop ebp
ret