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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x449a48
cmp edx, dword [eax]
je 0x436691
add eax, 8
inc ecx
cmp eax, 0x449ad8
jl 0x436682
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x449a48]
jne 0x4367bf
mov eax, dword [0x44a498]
cmp eax, 1
je 0x436799
test eax, eax
jne 0x4366c2
cmp dword [0x447144], 1
je 0x436799
cmp edx, 0xfc
je 0x4367bf
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4366f9
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004380f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00433cf0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x43673c
lea eax, [ebp - 0x1a4]
push eax
call fcn.00433cf0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43d56c
push edi
call fcn.00430a40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004380f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00438100
lea eax, [ebp - 0xa0]
push 0x43d54c
push eax
call fcn.00438100
push dword [esi + 0x449a4c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00438100
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00438c04
add esp, 0x2c
pop edi
jmp 0x4367bf
lea eax, [ebp + 8]
lea esi, [esi + 0x449a4c]
push 0
push eax
push dword [esi]
call fcn.00433cf0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x45a000
Capabilities:
Accept command line arguments
Packed with generic packer
Terminate process

Disassembly:
pushal
push 0x45a031
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x45a03a
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [0x45a047]
push 0
push 0
push 0
push edx
push 0
push 0
call eax
popal
jmp fcn.004316f9
Function at 0xc37d51
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0xc4fd2b
sub esp, 0x24
mov eax, dword [0xcb2154]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
xor ebx, ebx
mov dword [esp + 0xc], eax
push edi
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0xc4fd99
mov eax, dword [edi]
lea ecx, [esp + 0x18]
add eax, esi
push eax
call fcn.00c384d6
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
call fcn.00c3a5fb
pop ecx
pop ecx
test al, al
jne 0xc4fdb0
lea ecx, [esp + 0x18]
add edi, 4
call fcn.00c3a57e
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0xc4fd64
xor esi, esi
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00c399ad
add esp, 0x24
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov esi, dword [eax + esi]
lea ecx, [esp + 0x18]
call fcn.00c3a57e
jmp 0xc4fd9b

Function at 0xc3a7b3
Capabilities:
Encode data using xor

Disassembly:
jmp 0xc507aa
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0xc5089e
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebp, 0xcb54f8
mov bl, byte [esi + edi]
push 0xc975c8
push ebp
call fcn.00c39660
xor edx, edx
mov eax, esi
div dword [esp + 0x24]
pop ecx
pop ecx
push 0xbf1f3c
push 0xc975d4
mov bh, byte [edx + section..euro]
push 0xcb55e0
xor bh, bl
call fcn.00c39660
pop ecx
pop ecx
mov ecx, eax
call fcn.00c3c70c
mov bl, byte [esi + edi]
push 0xbf1f3c
push 0xc975e4
push ebp
call fcn.00c39660
pop ecx
pop ecx
mov ecx, eax
call fcn.00c3c70c
add byte [esi + edi], bh
push 0xbf1f3c
push 0xc975f8
push ebp
call fcn.00c39660
pop ecx
pop ecx
mov ecx, eax
call fcn.00c3c70c
dec byte [esi + edi]
push 0xc97618
push ebp
call fcn.00c39660
add byte [esi + edi], 0xfe
push 0xc97624
push ebp
call fcn.00c39660
sub byte [esi + edi], bl
push 0xc97638
push ebp
call fcn.00c39660
inc byte [esi + edi]
push 0xc97648
push ebp
call fcn.00c39660
inc byte [esi + edi]
push 0xc97654
push ebp
call fcn.00c39660
inc byte [esi + edi]
push 0xc97660
push ebp
call fcn.00c39660
add esp, 0x30
inc esi
cmp esi, dword [esp + 0x18]
jb 0xc507c3
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0xc3cb1c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
jmp 0xc4fdf6
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0xce5f88], eax
pop edi
pop esi
ret
Function at 0x401029
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push ebp
push esi
push edi
push str._JAVA_LAUNCHER_DEBUG
call fcn.0040e884
xor ebp, ebp
pop ecx
test eax, eax
je 0x401076
push str.Windows_original_main_args:_n
call fcn.00401104
pop ecx
mov esi, ebp
call fcn.0040e687
cmp dword [eax], ebp
jle 0x401076
call fcn.0040e68d
mov eax, dword [eax]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call fcn.00401104
add esp, 0xc
inc esi
call fcn.0040e687
cmp esi, dword [eax]
jl 0x401054
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.0040120f
call fcn.00401277
mov ebx, eax
lea ecx, [ebx*4 + 4]
push ecx
call fcn.00401127
pop ecx
pop ecx
mov esi, eax
call fcn.0040127d
mov edx, ebp
test ebx, ebx
jle 0x4010b0
mov ecx, dword [eax + edx*8]
mov dword [esi + edx*4], ecx
inc edx
cmp edx, ebx
jl 0x4010a5
mov edi, dword [str.java]
mov dword [esi + edx*4], ebp
test edi, edi
jne 0x4010bf
mov edi, dword [esi]
mov edx, dword [section..data]
test edx, edx
jne 0x4010cb
mov edx, dword [esi]
mov ecx, dword [0x431990]
test ecx, ecx
push ebp
push ebp
push 1
setne al
movzx eax, al
push eax
push edi
push edx
push 0x42526c
push str.1.8.0_281_b09
push dword [0x431994]
push 1
push ecx
push 1
push esi
push ebx
call fcn.00401d57
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x41c465
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041bfb8

Function at 0x421244
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004210ba

Function at 0x4239a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.TGOqOPny
lea edi, [esi - 0x19000]
push edi
or ebp, 0xffffffff
jmp 0x4239c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4239c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4239b8
mov eax, 1
add ebx, ebx
jne 0x4239db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4239d0
jne 0x4239ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4239d0
xor ecx, ecx
sub eax, 3
jb 0x423a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x423a72
mov ebp, eax
add ebx, ebx
jne 0x423a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x423a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x423a3c
inc ecx
add ebx, ebx
jne 0x423a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x423a1d
jne 0x423a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x423a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x423a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x423a4d
jmp 0x4239be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x423a5c
add edi, ecx
jmp 0x4239be
pop esi
mov edi, esi
mov ecx, 0x138
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x423a7a
cmp byte [edi], 6
jne 0x423a7a
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 al, bl
loop 0x423a7f
lea edi, [esi + 0x21000]
mov eax, dword [edi]
or eax, eax
je 0x423aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x23000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x23028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x423aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x23030]
or eax, eax
je 0x423ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x423ac9
call dword [esi + 0x2302c]
mov ebp, dword [esi + 0x23034]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x423b22
sub esp, 0xffffff80
jmp 0x4038fc
Function at 0x401000
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x401d41
push 0
push 0
call sub.kernel32.dll_CreateThread
ret
Function at 0x401b22
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push edi
push esi
mov dword [ebp - 4], 0xa
cmp dword [ebp + 0x14], 0
je 0x401b42
push 0xffffffffffffffff

Function at 0x401ba9
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push edi
push esi
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 8]
call fcn.00401cd5
lea edx, [ebp - 8]
cmp dword [ebp + 0x14], 0
jne 0x401bd0
xor edx, edx
push edx
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
call sub.wsock32.dll_select
cmp eax, 1
jne 0x401bf5
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.wsock32.dll_recv
pop esi
pop edi
pop ebx
leave
ret 0x10

Function at 0x401bfc
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push edi
push esi
lea ecx, [ebp - 0xc]
sub ecx, esp
push ecx
lea eax, [esp + 0x10]
push eax
call fcn.00401d0f
push 0x20
lea eax, [ebp - 0x20]
push eax
call fcn.00401d0f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 6
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp + 8]
call sub.ws2_32.dll_getaddrinfo
or eax, eax
jne 0x401c7b
mov esi, dword [ebp - 0x24]
jmp 0x401c77
cmp dword [ebp + 0xc], 2
jne 0x401c74
cmp dword [esi + 4], 2
jne 0x401c74
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 4]
mov dword [ebp - 0x42c], eax
push dword [ebp - 0x24]
call sub.ws2_32.dll_freeaddrinfo
jmp 0x401c7b
mov esi, dword [esi + 0x1c]
or esi, esi
jne 0x401c52
mov eax, dword [ebp - 0x42c]
pop esi
pop edi
pop ebx
leave
ret 8

Function at 0x401e16
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push edi
push esi
mov dword [ebp - 0xc], 0x64
push 0
push 0x80
push dword [ebp + 0x14]
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x401e54
cmp dword [ebp - 0xc], 0
je 0x401e54
dec dword [ebp - 0xc]
jmp 0x401e26
cmp dword [ebp - 4], 0xffffffff
je 0x401e85
push dword [ebp + 0x18]
push 0
push 0
push dword [ebp - 4]
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
pop esi
pop edi
pop ebx
leave
ret 0x14
Function at 0x401f56
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push edi
push esi
lea ecx, [ebp - 0xc]
sub ecx, esp
push ecx
lea eax, [esp + 0x10]
push eax
call fcn.00401d0f
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 4], eax
push 4
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.00401c88
mov dword [ebp - 0x2c], 1
push 4
lea eax, [ebp - 0x2c]
push eax
push 1
push 6
push dword [ebp - 4]
call sub.wsock32.dll_setsockopt
push dword [ebp + 0xc]
call fcn.00401e8c
or eax, eax
je 0x401fb5
mov eax, dword [ebp + 0xc]
jmp 0x401fc5
push 2
push dword [ebp + 0xc]
call fcn.00401bfc
push eax
call sub.wsock32.dll_inet_ntoa
push eax
call sub.wsock32.dll_inet_addr
test eax, eax
je 0x402066
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0x10000
jbe 0x401fe6
push eax
call fcn.00401ca0
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x26], ax
mov word [ebp - 0x28], 2
mov dword [ebp - 0x2c], 1
lea eax, [ebp - 0x2c]
push eax
push 0x8004667e
push dword [ebp - 4]
call sub.wsock32.dll_ioctlsocket
push 0x10
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call sub.wsock32.dll_connect
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 4]
call fcn.00401cd5
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
call sub.wsock32.dll_select
cmp eax, 1
jne 0x402066
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
push 0x8004667e
push dword [ebp - 4]
call sub.wsock32.dll_ioctlsocket
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x30]
pop esi
pop edi
pop ebx
leave
ret 0x10
Function at 0x402070
Capabilities:
Reference http user-agent string
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbc8
push ebx
push edi
push esi
lea ecx, [ebp - 0xc]
sub ecx, esp
push ecx
lea eax, [esp + 0x10]
push eax
call fcn.00401d0f
push dword [ebp + 0x14]
call fcn.00402210
push 0xa
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.00401f56
test eax, eax
je 0x4021ac
push dword [ebp + 8]
push dword [ebp + 0x10]
push 0x4040f5
lea eax, [ebp - 0x42c]
push eax
call sub.user32.dll_wsprintfA
add esp, 0x10
push 0
push eax
lea eax, [ebp - 0x42c]
push eax
push dword [ebp - 4]
call fcn.00401b22
xor edi, edi
jmp 0x4021a0
push 0xa
push 1
lea eax, [edi + ebp - 0x42c]
push eax
push dword [ebp - 4]
call fcn.00401ba9
cmp eax, 1
jne 0x4021ac
inc edi
cmp edi, 4
jb 0x4021a0
cmp dword ss:[edi + ebp - 0x430], 0xa0d0a0d
jne 0x4021a0
lea eax, [ebp - 0x430]
push eax
push 0x4004667f
push dword [ebp - 4]
call sub.wsock32.dll_ioctlsocket
cmp dword [ebp - 0x430], 0
jne 0x402140
mov dword [ebp - 0x430], 0x1000
mov eax, dword [ebp - 0x430]
add eax, dword [ebp - 0x438]
push eax
push dword [ebp - 0x438]
lea eax, [ebp - 0x434]
push eax
call fcn.004021d2
test eax, eax
je 0x4021ac
jmp 0x402192
mov eax, dword [ebp - 0x434]
add eax, dword [ebp - 0x438]
push 0xa
push dword [ebp - 0x430]
push eax
push dword [ebp - 4]
call fcn.00401ba9
test eax, eax
jle 0x4021ac
add dword [ebp - 0x438], eax
sub dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
jne 0x402165
jmp 0x402119
cmp edi, 0x400
jbe 0x4020e0
push dword [ebp - 4]
call fcn.00401ead
push 4
push dword [ebp + 0x14]
lea eax, [ebp - 0x434]
push eax
call fcn.00401c88
mov eax, dword [ebp - 0x438]
pop esi
pop edi
pop ebx
leave
ret 0x10
Function at 0x403020
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x498030]
test eax, eax
je 0x403037
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jae 0x40304f
jmp 0x403056
push 0x498030
call fcn.004088c0
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jb 0x403056
cmp dword [eax], 1
mov esi, eax
je 0x4030b9
mov eax, dword [0x498030]
test eax, eax
je 0x4030c0
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x4030d8
mov esi, eax
test eax, eax
jne 0x4030ac
push 4
push 0xc
call fcn.00459bd0
add esp, 8
test eax, eax
je 0x4030de
mov dword [eax], 0
mov dword [eax + 8], 0x498030
mov esi, eax
mov eax, dword [0x498030]
test eax, eax
jne 0x4030a5
push 0x498030
call fcn.004088c0
add esp, 4
push esi
push eax
call sub.kernel32.dll_TlsSetValue
mov dword [esi + 4], 0
mov dword [esi], 1
add esi, 4
mov eax, esi
pop esi
ret
push 0x498030
call fcn.004088c0
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x40306a
xor esi, esi
mov eax, esi
pop esi
ret
push 4
push 0xc
call fcn.00416b80
add esp, 8
ud2

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

Disassembly:
push edi
push esi
sub esp, 8
mov eax, dword [0x49801c]
test eax, eax
je 0x403117
push eax
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x40312e
xor edi, edi
mov esi, eax
cmp eax, 1
je 0x40319c
jmp 0x40316a
push 0x49801c
call fcn.004088c0
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
test eax, eax
jne 0x403108
push 4
push 0xc
call fcn.00459bd0
add esp, 8
test eax, eax
je 0x4031a4
mov dword [eax], 0
mov dword [eax + 8], 0x49801c
mov esi, eax
mov eax, dword [0x49801c]
test eax, eax
jne 0x403163
push 0x49801c
call fcn.004088c0
add esp, 4
push esi
push eax
call sub.kernel32.dll_TlsSetValue
mov ecx, dword [esi]
mov eax, dword [esi + 4]
lea edi, [esi + 4]
mov dword [esi], 1
mov dword [esi + 4], 0
test ecx, ecx
mov dword [esp], ecx
mov dword [esp + 4], eax
je 0x40319c
test eax, eax
je 0x40319c
lock dec dword [eax]
jne 0x40319c
lea ecx, [esp + 4]
call fcn.00402c20
mov eax, edi
add esp, 8
pop esi
pop edi
ret
push 4
push 0xc
call fcn.00416b80
add esp, 8
ud2
Function at 0x4031c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
sub esp, 0xc
mov eax, dword [0x498024]
test eax, eax
je 0x4031e7
push eax
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x4031fe
xor edi, edi
mov esi, eax
cmp eax, 1
je 0x40327a
jmp 0x40323a
push 0x498024
call fcn.004088c0
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
test eax, eax
jne 0x4031d8
push 4
push 0x10
call fcn.00459bd0
add esp, 8
test eax, eax
je 0x403282
mov dword [eax], 0
mov dword [eax + 0xc], 0x498024
mov esi, eax
mov eax, dword [0x498024]
test eax, eax
jne 0x403233
push 0x498024
call fcn.004088c0
add esp, 4
push esi
push eax
call sub.kernel32.dll_TlsSetValue
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
lea edi, [esi + 4]
mov dword [esi], 1
mov dword [esi + 4], 0
mov dword [esi + 8], 0
test ecx, ecx
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
je 0x40327a
test eax, eax
je 0x40327a
lock dec dword [eax]
jne 0x40327a
lea ecx, [esp + 8]
call fcn.00402be0
mov eax, edi
add esp, 0xc
pop esi
pop edi
ret
push 4
push 0x10
call fcn.00416b80
add esp, 8
ud2

Function at 0x403620
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x498024]
test eax, eax
je 0x403636
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jae 0x40364e
jmp 0x403658
push 0x498024
call fcn.004088c0
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jb 0x403658
cmp dword [eax], 1
jne 0x403658
add eax, 4
jmp 0x403661
call fcn.004031c0
test eax, eax
je 0x403668
mov ecx, eax
jmp fcn.00408750
push 0x461560
push 0x5e
push str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyedlibrary_std_src_threadmod.rs
call fcn.00410b20
add esp, 0xc
ud2
Function at 0x403680
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x40d5c0
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0x498024]
test eax, eax
je 0x4036c3
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jae 0x4036db
jmp 0x4036e5
push 0x498024
call fcn.004088c0
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jb 0x4036e5
cmp dword [eax], 1
jne 0x4036e5
add eax, 4
jmp 0x4036f2
call fcn.004031c0
test eax, eax
je 0x403857
mov ecx, eax
call fcn.00408750
mov dword [ebp - 0x24], eax
lock dec byte [eax + 0x18]
je 0x4037a4
mov edx, eax
mov eax, dword [0x498210]
test eax, eax
je 0x403747
add edx, 0x18
cmp eax, 0x40c560
mov dword [ebp - 0x20], edx
jne 0x403770
mov edi, dword [0x49802c]
cmp edi, 0xffffffff
je 0x4037c5
mov ecx, dword [0x498220]
mov dword [ebp - 0x10], 0
test ecx, ecx
jne 0x403837
jmp 0x403827
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], edx
call fcn.0040c580
mov edx, dword [ebp - 0x20]
add edx, 0x18
cmp eax, 0x40c560
mov dword [ebp - 0x20], edx
je 0x40371e
nop word [eax + eax]
mov ecx, dword [0x498210]
mov dword [ebp - 0x10], 0
test ecx, ecx
jne 0x40378b
call fcn.0040c580
mov edx, dword [ebp - 0x20]
mov ecx, eax
push 0xffffffffffffffff
push 1
push 0x462278
push edx
call ecx
mov edx, dword [ebp - 0x20]
mov al, 1
xor ecx, ecx
lock cmpxchg byte [edx], cl
jne 0x403770
mov eax, dword [ebp - 0x24]
lock dec dword [eax]
jne 0x4037b4
lea ecx, [ebp - 0x24]
call fcn.00402be0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x28], 0xffffffff
mov ecx, dword [0x498218]
mov dword [ebp - 0x10], 0
test ecx, ecx
jne 0x4037e4
call fcn.0040c610
mov ecx, eax
lea eax, [ebp - 0x28]
push 0
push 0
push 0xc0000000
push eax
call ecx
test eax, eax
jne 0x40386d
mov edi, dword [ebp - 0x28]
mov eax, 0xffffffff
lock cmpxchg dword [0x49802c], edi
je 0x403813
mov esi, eax
push edi
call sub.kernel32.dll_CloseHandle
mov edi, esi
mov edx, dword [ebp - 0x20]
mov ecx, dword [0x498220]
mov dword [ebp - 0x10], 0
test ecx, ecx
jne 0x403837
mov dword [ebp - 0x2c], edi
call fcn.0040c6b0
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x2c]
mov ecx, eax
push 0
push 0
push edx
push edi
call ecx
mov ecx, dword [ebp - 0x20]
xor eax, eax
xchg byte [ecx], al
mov eax, dword [ebp - 0x24]
lock dec dword [eax]
je 0x4037ac
jmp 0x4037b4
push 0x461560
push 0x5e
push str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyedlibrary_std_src_threadmod.rs
call fcn.00410b20
add esp, 0xc
ud2
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x50], 0x462558
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], 0x415d30
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 1
lea eax, [ebp - 0x50]
push 0x46258c
push eax
call fcn.00409e80
add esp, 8
ud2