joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5008f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov edi, dword [esp + 0xbc]
xor eax, eax
test edi, edi
mov ebx, dword [esp + 0xb0]
mov ebp, dword [esp + 0xb8]
je 0x500ac8
mov al, 1
mov dword [ebx], edi
mov edx, dword [esp + 0xb4]
test edx, edx
je 0x500a33
sub esp, 0xc
push edi
call sym._EVP_MD_block_size
add esp, 0x10
cmp eax, 0x80
mov esi, eax
jg 0x500a5e
cmp esi, ebp
jl 0x500a7b
cmp ebp, 0x80
ja 0x500acf
push edx
push ebp
mov edx, dword [esp + 0xbc]
push edx
lea eax, [ebx + 0x38]
push eax
call sym._memcpy
add esp, 0x10
lea ecx, [ebx + 4]
mov edx, ebp
mov dword [ebx + 0x34], ebp
mov dword [esp + 0xc], ecx
cmp edx, 0x80
je 0x50099b
mov esi, pe_nt_image_headers32
sub esi, edx
push ecx
push esi
push 0
lea ebp, [edx + ebx + 0x38]
push ebp
call sym._memset
add esp, 0x10
xor edx, edx
lea esi, [esi]
mov al, byte [ebx + edx + 0x38]
xor eax, 0x36
mov byte [esp + edx + 0x10], al
inc edx
cmp edx, 0x7f
jle 0x5009a0
push ebp
mov edx, dword [esp + 0xc4]
push edx
push edi
lea esi, [ebx + 0x14]
push esi
call sym._EVP_DigestInit_ex
mov dword [esp], edi
call sym._EVP_MD_block_size
add esp, 0xc
push eax
lea ebp, [esp + 0x18]
push ebp
push esi
call sym._EVP_DigestUpdate
xor edx, edx
add esp, 0x10
mov cl, byte [ebx + edx + 0x38]
xor ecx, 0x5c
mov byte [esp + edx + 0x10], cl
inc edx
cmp edx, 0x7f
jle 0x5009e0
push ecx
mov eax, dword [esp + 0xc4]
push eax
push edi
add ebx, 0x24
push ebx
call sym._EVP_DigestInit_ex
mov dword [esp], edi
call sym._EVP_MD_block_size
add esp, 0xc
push eax
push ebp
push ebx
call sym._EVP_DigestUpdate
add esp, 0x10
sub esp, 8
push esi
mov ebx, dword [esp + 0x18]
push ebx
call sym._EVP_MD_CTX_copy_ex
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
lea ecx, [ebx + 4]
test eax, eax
mov dword [esp + 0xc], ecx
lea esi, [ebx + 0x14]
jne 0x50099b
sub esp, 8
push esi
mov ebx, dword [esp + 0x18]
push ebx
call sym._EVP_MD_CTX_copy_ex
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
push eax
push str.j____int_sizeof_ctx__key_
push 0x52
push str..cryptohmachmac.c
call sym._OpenSSLDie
add esp, 0x10
cmp esi, ebp
jge 0x50094d
push eax
mov eax, dword [esp + 0xc4]
push eax
push edi
lea esi, [ebx + 4]
mov dword [esp + 0x18], esi
push esi
call sym._EVP_DigestInit_ex
add esp, 0xc
push ebp
mov edx, dword [esp + 0xbc]
push edx
mov ebp, dword [esp + 0x18]
push ebp
call sym._EVP_DigestUpdate
add esp, 0xc
lea ecx, [ebx + 0x34]
push ecx
lea eax, [ebx + 0x38]
push eax
mov esi, dword [esp + 0x18]
push esi
call sym._EVP_DigestFinal_ex
add esp, 0x10
mov edx, dword [ebx + 0x34]
jmp 0x50097b
mov edi, dword [ebx]
jmp 0x50091d
push ecx
push str.len_0__len__int_sizeof_ctx__key_
push 0x5c
push str..cryptohmachmac.c
call sym._OpenSSLDie
add esp, 0x10
jmp 0x500959
Function at 0x50a8d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
test eax, eax
mov dword [ebp - 0x10], ebx
je 0x50aa00
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 0x1c]
test esi, esi
sete al
test edi, edi
sete dl
or eax, edx
test al, 1
jne 0x50aa00
mov eax, dword [esi + 0x18]
cmp eax, 2
je 0x50aa00
dec eax
je 0x50a9f6
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x50aa0d
xor eax, eax
cmp ebx, 2
jbe 0x50aa05
mov eax, dword [esi + 0x24]
sub eax, 0x106
cmp eax, ebx
jae 0x50a943
mov dword [ebp - 0x10], eax
sub ebx, eax
add edi, ebx
mov ebx, dword [esi + 0x30]
mov ecx, dword [ebp - 0x10]
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [esp + 8], ecx
call sym._memcpy
mov edi, dword [ebp - 0x10]
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x50]
mov dword [esi + 0x64], edi
mov dword [ebp - 0x1c], eax
mov cl, dl
mov dword [esi + 0x54], edi
movzx ebx, byte [eax]
mov eax, dword [esi + 0x4c]
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x1c]
mov dword [esi + 0x40], ebx
shl ebx, cl
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], ebx
movzx edi, byte [edx + 1]
mov edx, dword [esi + 0x2c]
sub ecx, 3
mov dword [ebp - 0x20], eax
xor dword [ebp - 0x2c], edi
mov edi, dword [esi + 0x38]
mov dword [ebp - 0x14], ecx
and dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edi
mov edi, dword [esi + 0x3c]
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], edx
mov dword [esi + 0x40], ebx
xor ebx, ebx
mov esi, esi
movzx ecx, byte [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
shl dword [ebp - 0x2c], cl
mov ecx, dword [ebp - 0x2c]
movzx eax, byte [edx + ebx + 2]
mov edx, dword [ebp - 0x20]
xor eax, ecx
and eax, edx
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
and edx, ebx
mov dword [esi + 0x40], eax
movzx eax, word [edi + eax*2]
mov word [ecx + edx*2], ax
mov edx, dword [ebp - 0x2c]
mov word [edi + edx*2], bx
inc ebx
cmp dword [ebp - 0x14], ebx
jae 0x50a9b0
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esi + 4], 0x2a
je 0x50a91a
mov eax, 0xfffffffe
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x30]
mov dword [esp], ecx
call sym._adler32
mov edx, dword [ebp + 8]
mov dword [edx + 0x30], eax
jmp 0x50a925
Function at 0x50b240
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], esi
mov esi, dword [ebp + 8]
mov dword [ebp - 8], ebx
test esi, esi
je 0x50b390
mov ebx, dword [esi + 0x1c]
test ebx, ebx
je 0x50b390
mov eax, dword [esi + 0x20]
test eax, eax
je 0x50b390
mov edx, dword [esi + 0x24]
test edx, edx
je 0x50b390
mov dword [esi + 0x2c], 2
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0x18]
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
test edx, edx
mov dword [esi + 0x18], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x10], ecx
js 0x50b3bc
cmp edx, 1
sbb eax, eax
and eax, 0x47
add eax, 0x2a
cmp edx, 2
mov dword [ebx + 4], eax
je 0x50b39f
mov dword [esp], 0
xor edx, edx
xor eax, eax
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call sym._adler32
mov dword [esi + 0x30], eax
xor esi, esi
mov dword [ebx + 0x20], 0
mov dword [esp], ebx
call sym.__tr_init
mov ecx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x44]
add ecx, ecx
mov dword [ebx + 0x34], ecx
mov ecx, dword [ebx + 0x3c]
lea edx, [eax + eax - 2]
mov word [ecx + eax*2 - 2], 0
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], ecx
call sym._memset
mov dword [ebx + 0x64], 0
mov eax, dword [ebx + 0x7c]
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x6c], 0
lea ecx, [eax + eax*2]
shl ecx, 2
movzx edx, word [ecx + 0x559b22]
mov dword [ebx + 0x70], 2
xor eax, eax
movzx esi, word [ecx + 0x559b20]
mov dword [ebx + 0x58], 2
mov dword [ebx + 0x78], edx
movzx edx, word [ecx + 0x559b24]
mov dword [ebx + 0x84], esi
movzx esi, word [ecx + 0x559b26]
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x88], edx
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x74], esi
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 8]
mov eax, 0xfffffffe
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], 0
xor ecx, ecx
xor edx, edx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call sym._crc32
jmp 0x50b2db
neg edx
mov dword [ebx + 0x18], edx
jmp 0x50b2ac
Function at 0x50bd70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x1c
mov eax, dword [eax + 0x24]
mov edx, dword [edi + 0x6c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], edx
jmp 0x50be49
mov ebx, dword [edi]
mov edx, dword [ebx + 4]
mov dword [ebp - 0x18], ebx
test edx, edx
je 0x50bf00
mov eax, dword [edi + 0x30]
mov ebx, edx
add esi, eax
mov eax, dword [edi + 0x6c]
add esi, eax
cmp edx, dword [ebp - 0x10]
jbe 0x50bdb4
mov ebx, dword [ebp - 0x10]
xor ecx, ecx
test ebx, ebx
je 0x50bdfe
mov eax, dword [ebp - 0x18]
sub edx, ebx
mov ecx, dword [eax + 0x1c]
mov dword [eax + 4], edx
mov edx, eax
mov eax, dword [ecx + 0x18]
cmp eax, 1
je 0x50bf08
cmp eax, 2
je 0x50bf28
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov dword [esp], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
call sym._memcpy
mov esi, dword [ebp - 0x18]
mov ecx, ebx
mov eax, dword [edi + 0x6c]
add dword [esi], ebx
add dword [esi + 8], ebx
lea esi, [eax + ecx]
cmp esi, 2
mov dword [ebp - 0x1c], esi
mov dword [edi + 0x6c], esi
jbe 0x50be2d
mov ebx, dword [edi + 0x64]
mov edx, dword [edi + 0x30]
mov ecx, dword [edi + 0x50]
movzx eax, byte [ebx + edx]
mov dword [edi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + ebx + 1]
mov ebx, dword [edi + 0x4c]
xor eax, ecx
and eax, ebx
mov dword [edi + 0x40], eax
cmp esi, 0x105
ja 0x50bf00
mov eax, dword [edi]
mov esi, dword [eax + 4]
test esi, esi
je 0x50bf00
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x34]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [edi + 0x64]
sub ecx, ebx
sub ecx, esi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x14]
lea eax, [eax + ecx - 0x106]
cmp esi, eax
jb 0x50bd90
mov dword [esp + 8], ecx
mov esi, dword [edi + 0x30]
mov ebx, ecx
mov dword [esp], esi
add ebx, esi
mov dword [esp + 4], ebx
call sym._memcpy
mov eax, dword [ebp - 0x14]
mov esi, dword [edi + 0x64]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x68], eax
mov edx, dword [edi + 0x3c]
sub esi, eax
sub dword [edi + 0x54], eax
mov dword [edi + 0x64], esi
lea eax, [edx + ecx*2]
lea esi, [esi]
sub eax, 2
xor ebx, ebx
movzx edx, word [eax]
cmp edx, dword [ebp - 0x14]
jb 0x50beb4
mov ebx, edx
mov edx, dword [ebp - 0x14]
sub ebx, edx
mov word [eax], bx
dec ecx
jne 0x50bea0
mov ecx, dword [ebp - 0x14]
mov eax, dword [edi + 0x38]
lea eax, [eax + ecx*2]
lea esi, [esi]
lea edi, [edi]
sub eax, 2
xor ebx, ebx
movzx edx, word [eax]
cmp edx, dword [ebp - 0x14]
jb 0x50bee4
mov ebx, edx
mov edx, dword [ebp - 0x14]
sub ebx, edx
mov word [eax], bx
dec ecx
jne 0x50bed0
mov ebx, dword [edi]
mov ecx, dword [ebp - 0x14]
add dword [ebp - 0x10], ecx
mov edx, dword [ebx + 4]
mov dword [ebp - 0x18], ebx
test edx, edx
jne 0x50bda0
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov eax, dword [edx]
mov dword [esp + 4], eax
mov ecx, dword [edx + 0x30]
mov dword [esp], ecx
call sym._adler32
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x30], eax
jmp 0x50bddc
mov dword [esp + 8], ebx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov dword [esp + 4], eax
mov ecx, dword [edx + 0x30]
mov dword [esp], ecx
call sym._crc32
jmp 0x50bf1d
Function at 0x513040
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x513076
mov dword [0x56ad60], eax
mov edx, sym.get_globals_dtor_void_
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.___mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [0x531560], eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x531560], eax
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0xc]
sub esp, 0x68
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], sym.___gxx_personality_sj0
mov dword [ebp - 0x24], 0x520b38
mov dword [ebp - 0x1c], 0x513220
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call sym.__Unwind_SjLj_Register
cmp dword [0x531560], 0
mov dword [ebp - 0x44], 0x56ad70
je 0x513200
jl 0x513240
mov dword [ebp - 0x3c], 1
mov eax, dword [0x56ad60]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x54]
sub esp, 4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x5132e3
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea esi, [esi]
lea eax, [ebp - 0x40]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [0x56ada0]
mov eax, 0xffffffff
test edx, edx
je 0x51325a
mov eax, dword [0x531564]
test eax, eax
je 0x51329a
xor eax, eax
test eax, eax
jne 0x513290
mov edi, dword [0x531560]
test edi, edi
js 0x513290
mov dword [ebp - 0x44], 0x56ad70
mov ebx, dword [0x531560]
test ebx, ebx
je 0x513200
jmp 0x5131ae
xor esi, esi
mov dword [0x531560], esi
jmp 0x513268
mov dword [esp], 0x531568
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x513321
mov eax, dword [0x531564]
test eax, eax
jne 0x513258
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x3c], 1
call eax
sub esp, 4
mov eax, dword [0x531564]
test eax, eax
je 0x5132bd
jmp 0x513258
mov dword [esp], 8
call sym._malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x513315
mov dword [esp + 4], eax
mov eax, dword [0x56ad60]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x51334a
test edx, edx
je 0x513335
mov dword [ebp - 0x3c], 1
call method.std.terminate__
call sym.get_globals_init__
mov eax, 1
mov dword [0x531564], eax
jmp 0x513258
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x5131f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x513311
Function at 0x515540
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.00516610
call sym.___main
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x515578
jmp 0x515616
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x515577
cmp cl, 0x22
je 0x5155d0
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x5155f0
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x5155f0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x5155b0
jmp 0x5155f0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x5155d0
cmp cl, 0x22
je 0x515652
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x515610
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x515600
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x515634
movzx edx, word [ebp - 0x28]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x5155f0

Function at 0x515ab0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x56ae00]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x515af0
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sym.___mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x515ea0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x56ae00]
mov edi, dword [ebp + 8]
test eax, eax
je 0x515f7c
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x515f91
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x515f50
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x515ee8
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x515ef8
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x515f43
test edx, edx
jne 0x515f36
test ecx, ecx
je 0x515ee0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call ecx
cmp eax, 6
je 0x515fa0
cmp eax, 8
je 0x515ee0
mov eax, 3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x515ed2
call sym.___w32_sharedptr_initialize
mov eax, dword [0x56ae00]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x515ec4
call sym._fc_key_init_once
mov eax, dword [0x56ae00]
jmp 0x515ec4
mov dword [edi + 0xc], 0
mov eax, dword [ebp - 0x14]
mov edx, ebx
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, edi
call sym.__Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x515f3b
mov eax, dword [0x56ae00]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x515ff3
mov edi, dword [eax + 0x30]
test edi, edi
js 0x51601e
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x515fff
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call sym.___w32_sharedptr_initialize
mov eax, dword [0x56ae00]
jmp 0x515fd1
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x515fe2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x515fe2
call sym._fc_key_init_once
mov eax, dword [0x56ae00]
jmp 0x515fd8
Function at 0x516120
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov eax, dword [0x56ae00]
test eax, eax
je 0x516180
mov esi, dword [eax + 0x30]
test esi, esi
js 0x5161a0
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x5161c0
mov eax, dword [eax + 0x28]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
je 0x516210
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call sym.___w32_sharedptr_initialize
mov eax, dword [0x56ae00]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x516142
jmp 0x5161a0
call sym._fc_key_init_once
mov eax, dword [0x56ae00]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x516149
jmp 0x5161c0
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
sub esp, 4
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
jne 0x516171
lea esi, [esi]
mov eax, dword [0x56ae00]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x51625d
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x516269
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x51623e
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x51622d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x51622d
call sym.___w32_sharedptr_initialize
mov eax, dword [0x56ae00]
jmp 0x51621c
call sym._fc_key_init_once
mov eax, dword [0x56ae00]
jmp 0x516223
Function at 0x516280
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x56ae00]
mov edi, dword [ebp + 8]
test eax, eax
je 0x516314
mov esi, dword [eax + 0x30]
test esi, esi
js 0x516330
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x516350
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x516308
lea edx, [ebp - 0x14]
mov eax, edi
call sym.__Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x5163cf
mov eax, dword [0x56ae00]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x5163a6
mov edx, dword [eax + 0x30]
test edx, edx
js 0x5163c0
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x516380
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
lea edx, [ebp - 0x14]
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
jmp 0x5162c5
call sym.___w32_sharedptr_initialize
mov eax, dword [0x56ae00]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x5162a0
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x56ae00]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x5162ab
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x5162ae
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x5162f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x5162f7
call sym.___w32_sharedptr_initialize
mov eax, dword [0x56ae00]
mov edx, dword [eax + 0x30]
test edx, edx
jns 0x5162e9
nop
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x56ae00]
jmp 0x5162e9
call sym._abort
lea esi, [esi]
lea edi, [edi]