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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x43c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x422920
mov esi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x2c], 0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x30], 0
cmp esi, 0x201
jae 0x40da20
jmp 0x40da0e
jbe 0x40dab4
cmp esi, 0x201
jae 0x40da20
lea ebx, [ebp - 0x448]
mov dword [ebp - 0x28], 0x200
mov edi, esi
jmp 0x40da5b
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
sub esi, edi
sub eax, edi
cmp eax, esi
jae 0x40da4c
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x38]
mov edx, edi
push esi
call fcn.0043d640
add esp, 4
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x40da7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40db17
cmp esi, edi
jne 0x40da00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40db36
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x40da0e
jmp 0x40da20
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0
cmp esi, eax
ja 0x40db53
lea eax, [ebp - 0x48]
push esi
push ebx
push eax
call fcn.00410090
add esp, 0xc
movsd xmm0, qword [ebp - 0x48]
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x40]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40db01
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.00406dd0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x43c
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi], 0
mov byte [esi + 0xc], 2
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x40daf1
jmp 0x40db01
mov dword [ebp - 0x10], 0
push 0x442034
push 0x28
push str.internal_error:_entered_unreachable_code4
call fcn.0043e1a0
add esp, 0xc
jmp 0x40db62
push 0x442044
push eax
push esi
call fcn.0043e4e0
add esp, 0xc
ud2
Function at 0x4144c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1048
call fcn.0042efb0
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x422ab0
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], edx
lea edi, [ebp - 0x1054]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], edx
push 0x1000
push 0
push edi
call fcn.00431920
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push 0x41ab70
push eax
push 0x1000
push edi
mov dword [ebp - 0x2c], esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x414623
mov ebx, dword [sym.imp.KERNEL32.dll_SleepEx]
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x28], 0
je 0x414550
cmp dword [ebp - 0x24], 0
jne 0x414629
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x54], 4
test edi, edi
mov dword [ebp - 0x50], edi
je 0x414629
cmp edi, 0x1000
ja 0x414665
xor esi, esi
nop dword [eax]
mov eax, edi
sub eax, esi
jb 0x41464d
xorps xmm0, xmm0
lea edx, [ebp - 0x28]
lea ecx, [ebp + esi - 0x1054]
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], edx
push 0x41ab70
lea edx, [ebp - 0x44]
push edx
push eax
push ecx
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
je 0x414623
nop dword [eax]
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x28], 0
je 0x4145d0
cmp dword [ebp - 0x24], 0
jne 0x414629
add esi, dword [ebp - 0x20]
cmp esi, edi
jne 0x414590
xorps xmm0, xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
push 0x41ab70
lea eax, [ebp - 0x44]
push eax
push 0x1000
lea eax, [ebp - 0x1054]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x414550
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x30]
call esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x1048
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 0x441b20
push edi
push esi
call fcn.0043e500
add esp, 0xc
jmp 0x41467f
mov dword [ebp - 0x10], 0
push 0x441b20
push 0x1000
push edi
call fcn.0043e4e0
add esp, 0xc
ud2
Function at 0x417000
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], 0x422bb0
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 [0x44d024]
test eax, eax
je 0x417054
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x41706d
cmp dword [eax], 0
mov ebx, eax
je 0x41706d
add ebx, 4
jmp 0x417130
push 0x44d024
call fcn.0043d9d0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x417045
mov eax, dword [0x44d024]
test eax, eax
je 0x417111
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x41712e
mov edi, eax
test eax, eax
jne 0x4170d6
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0x44d024
push 4
push 0xc
call fcn.00406dc0
add esp, 8
test eax, eax
je 0x417155
mov edi, eax
mov eax, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x28]
mov dword [edi + 8], eax
movsd qword [edi], xmm0
mov eax, dword [0x44d024]
test eax, eax
je 0x417143
dec eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x4170eb
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
je 0x4170ed
mov eax, dword [esi + 4]
jmp 0x4170ed
xor eax, eax
mov ecx, dword [edi + 4]
cmp dword [edi], 0
lea ebx, [edi + 4]
mov dword [edi], 1
mov dword [edi + 4], eax
je 0x417130
test ecx, ecx
je 0x417130
lock dec dword [ecx]
jne 0x417130
call fcn.0040c200
jmp 0x417130
push 0x44d024
call fcn.0043d9d0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x41708b
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x44d024
call fcn.0043d9d0
add esp, 4
jmp 0x4170ce
mov dword [ebp - 0x10], 0
push 4
push 0xc
call fcn.0043e060
add esp, 8
ud2
Function at 0x417270
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x44d034]
mov esi, ecx
test eax, eax
je 0x417296
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x4172af
cmp byte [eax + 4], 0
je 0x4172af
add eax, 5
pop esi
pop edi
ret
push 0x44d034
call fcn.0043d9d0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x41728a
mov eax, dword [0x44d034]
test eax, eax
je 0x41731b
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x417334
mov edi, eax
test eax, eax
jne 0x4172f9
push 4
push 8
call fcn.00406dc0
add esp, 8
test eax, eax
je 0x417348
mov dword [eax], 0x44d034
mov byte [eax + 4], 0
mov edi, eax
mov eax, dword [0x44d034]
test eax, eax
je 0x417339
dec eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test esi, esi
je 0x41730e
cmp byte [esi], 0
mov byte [esi], 0
movzx eax, byte [esi + 1]
cmove eax, ecx
mov ecx, eax
mov byte [edi + 4], 1
lea eax, [edi + 5]
mov byte [edi + 5], cl
pop esi
pop edi
ret
push 0x44d034
call fcn.0043d9d0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x4172c5
xor eax, eax
pop esi
pop edi
ret
push 0x44d034
call fcn.0043d9d0
add esp, 4
jmp 0x4172f1
push 4
push 8
call fcn.0043e060
add esp, 8
ud2

Function at 0x4189b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov esi, ecx
mov ecx, dword [ebp + 0x10]
mov edi, edx
xor edx, edx
mov dword [esp + 0x14], 0
mov eax, dword [ebp + 8]
mov dword [esp], 0x103
mov dword [esp + 4], 0
mov ebx, esp
test ecx, ecx
setne dl
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x18]
cmove edx, ecx
mov ecx, dword [ebp + 0xc]
push 0
push edx
push ecx
push eax
push ebx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x418a2f
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp]
cmp eax, 0x103
je 0x418a57
test eax, eax
js 0x418a3f
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x418a4f
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
mov dword [esi], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 0x10]
mov dword [esp + 0x44], 0x440420
mov dword [esp + 0x48], 2
mov dword [esp + 0x3c], 0
lea esi, [esp + 0x34]
mov dword [esp + 8], 0
mov dword [esp + 0x18], 0x441888
mov dword [esp + 0x1c], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], 0x43fb98
mov byte [esp + 0xc], 0
mov dword [esp + 0x24], 0
lea ecx, [esp + 8]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x30], 0x42b330
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x50], 1
push eax
push ecx
push esi
call fcn.0040fcd0
add esp, 0xc
cmp byte [esp + 0x34], 4
je 0x418aeb
push esi
call fcn.00408400
add esp, 4
mov ecx, 7
int 0x29
ud2
Function at 0x41ec60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x422c70
mov eax, dword [ebp + 8]
mov ebx, ecx
lea ecx, [ebp - 0x18]
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
mov dword fs:[0], ecx
lea ecx, [ebp - 0x34]
push eax
call fcn.00417840
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x41ecf3
cmp byte [ebp - 0x30], 3
jne 0x41ed1c
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ebx
mov eax, dword [ecx]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x10], 0
push eax
call dword [ecx]
add esp, 4
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x41ece1
push dword [eax + 8]
push ecx
push dword [esi]
call fcn.00406dd0
add esp, 0xc
push 4
push 0xc
push esi
call fcn.00406dd0
add esp, 0xc
mov ebx, dword [ebp - 0x24]
jmp 0x41ed1c
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x41ed1c
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41ed34
mov eax, dword [ebp - 0x20]
mov dword [ebx], edi
mov dword [ebx + 4], esi
mov dword [ebx + 8], eax
jmp 0x41ed23
mov dword [ebx + 4], 0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
test edi, edi
mov dword [ebx + 4], 0
je 0x41ed23
add edi, edi
push 2
push edi
push esi
call fcn.00406dd0
add esp, 0xc
jmp 0x41ed23

Function at 0x41f6c0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], esp
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x54], 0x422c90
mov edi, ecx
lea eax, [esi + 0x50]
xorps xmm0, xmm0
mov ecx, dword fs:[0]
mov dword [esi + 0x50], ecx
mov dword fs:[0], eax
movaps xmmword [esi + 0x10], xmm0
lea eax, [esi + 0x10]
push 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x41f73e
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov eax, dword [esi + 4]
mov dword [edi], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], eax
lea eax, [esi + 8]
mov dword [esi + 0x38], 0x441c34
mov dword [esi + 0x3c], 1
mov dword [esi + 8], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x28], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x2c], 0x40f0c0
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], 1
lea eax, [esi + 0x30]
push 0x441c60
push eax
call fcn.0043e0e0
add esp, 8
ud2
Function at 0x41fed0
Capabilities:
Create thread

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], 0x422cb0
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], esi
push 4
push 8
call fcn.00406dc0
add esp, 8
test eax, eax
je 0x41ffb2
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax], edi
mov dword [eax + 4], esi
push 0
push 0x10000
mov dword [ebp - 0x20], eax
push eax
push 0x420020
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x41ff4d
mov dword [ebx + 4], eax
mov byte [ebx], 4
jmp 0x41ff9f
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], 1
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
push eax
call dword [ecx]
add esp, 4
mov edx, dword [ebp - 0x20]
mov ebx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x41ff83
push dword [eax + 8]
push ecx
push dword [edx]
call fcn.00406dd0
mov edx, dword [ebp - 0x20]
add esp, 0xc
push 4
push 8
push edx
call fcn.00406dd0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 4], eax
mov dword [ebx], 0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 4
push 8
call fcn.0043e060
add esp, 8
ud2
Function at 0x420260
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 eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x422ce0
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
cmp eax, 3
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
je 0x42029e
test eax, eax
jne 0x42041a
mov ebx, dword [0x44da80]
test ebx, ebx
je 0x42041a
mov dword [ebp - 0x20], 0
jmp 0x4202c7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4202f8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x42046b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4202c0
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 0x4202c0
test byte [ebp - 0x20], 1
je 0x42041a
mov ebx, dword [0x44da80]
test ebx, ebx
je 0x42041a
mov dword [ebp - 0x20], 0
jmp 0x420327
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x420358
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x42046b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x420320
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 0x420320
test byte [ebp - 0x20], 1
je 0x42041a
mov ebx, dword [0x44da80]
test ebx, ebx
je 0x42041a
mov dword [ebp - 0x20], 0
jmp 0x420387
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4203b8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x42046b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x420380
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 0x420380
test byte [ebp - 0x20], 1
je 0x42041a
mov ebx, dword [0x44da80]
test ebx, ebx
je 0x42041a
mov dword [ebp - 0x20], 0
jmp 0x4203e7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x420414
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x42046b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4203e0
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 0x4203e0
test byte [ebp - 0x20], 1
jne 0x420434
movzx eax, byte [0x449180]
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 [0x44da80]
jmp 0x42043f
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x42041a
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x42046b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42043c
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x42043c
mov dword [ebp - 0x10], 0
push 0x441f88
push 0x2b
push str.called__Option::unwrap____on_a__None__value_rustc_90c541806f23a127002de5b4038be731ba1458calibrary_alloc_srccollections_btreemapentry.rs
call fcn.0043e1a0
add esp, 0xc
ud2
Function at 0x421b30
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, 0x20
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x422d80
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 [0x44d058]
test eax, eax
je 0x421b84
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x421b9d
cmp dword [eax], 0
mov ebx, eax
je 0x421b9d
add ebx, 4
jmp 0x421c72
push 0x44d058
call fcn.0043d9d0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x421b75
mov eax, dword [0x44d058]
test eax, eax
je 0x421c53
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x421c70
mov edi, eax
test eax, eax
jne 0x421c0e
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0x44d058
push 4
push 0x10
call fcn.00406dc0
add esp, 8
test eax, eax
je 0x421c97
movsd xmm0, qword [ebp - 0x2c]
movsd xmm1, qword [ebp - 0x24]
mov edi, eax
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
mov eax, dword [0x44d058]
test eax, eax
je 0x421c85
dec eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x421c28
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
mov edx, eax
je 0x421c2c
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x421c2c
xor eax, eax
xor edx, edx
mov ecx, dword [edi + 8]
cmp dword [edi], 0
lea ebx, [edi + 4]
mov dword [edi], 1
mov dword [edi + 4], eax
mov dword [edi + 8], edx
je 0x421c72
test ecx, ecx
je 0x421c72
lock dec dword [ecx]
jne 0x421c72
call fcn.0040c170
jmp 0x421c72
push 0x44d058
call fcn.0043d9d0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x421bbb
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x44d058
call fcn.0043d9d0
add esp, 4
jmp 0x421c06
mov dword [ebp - 0x10], 0
push 4
push 0x10
call fcn.0043e060
add esp, 8
ud2
Function at 0x421d20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x44d068]
mov esi, ecx
test eax, eax
je 0x421d45
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x421d5e
cmp dword [eax], 0
je 0x421d5e
add eax, 4
pop esi
pop edi
ret
push 0x44d068
call fcn.0043d9d0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x421d3a
mov eax, dword [0x44d068]
test eax, eax
je 0x421dd1
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x421dea
mov edi, eax
test eax, eax
jne 0x421dab
push 4
push 0xc
call fcn.00406dc0
add esp, 8
test eax, eax
je 0x421dfe
mov dword [eax], 0
mov dword [eax + 8], 0x44d068
mov edi, eax
mov eax, dword [0x44d068]
test eax, eax
je 0x421def
dec eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x421dc0
mov ecx, dword [esi]
mov dword [esi], 0
test ecx, ecx
je 0x421dc2
mov ecx, dword [esi + 4]
jmp 0x421dc2
xor ecx, ecx
mov dword [edi], 1
lea eax, [edi + 4]
mov dword [edi + 4], ecx
pop esi
pop edi
ret
push 0x44d068
call fcn.0043d9d0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x421d74
xor eax, eax
pop esi
pop edi
ret
push 0x44d068
call fcn.0043d9d0
add esp, 4
jmp 0x421da3
push 4
push 0xc
call fcn.0043e060
add esp, 8
ud2
Function at 0x42dac0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x42db18
mov esi, dword [esp + 0x18]
lea edi, [edx + eax*2]
xor ebx, ebx
movzx eax, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea ebp, [ebx + eax]
jne 0x42db10
cmp ebp, ebx
jb 0x42db92
cmp ebp, dword [esp + 0x1c]
ja 0x42dba3
add ebx, esi
nop word [eax + eax]
test eax, eax
je 0x42db12
dec eax
cmp byte [ebx], cl
lea ebx, [ebx + 1]
jne 0x42db00
jmp 0x42db6f
ja 0x42db18
cmp edx, edi
mov ebx, ebp
jne 0x42dad5
mov edx, dword [esp + 0x24]
test edx, edx
je 0x42db73
mov esi, dword [esp + 0x20]
movzx ecx, cx
mov al, 1
add edx, esi
nop dword [eax + eax]
movzx ebx, byte [esi]
lea edi, [esi + 1]
test bl, bl
js 0x42db50
mov esi, edi
sub ecx, ebx
jns 0x42db67
jmp 0x42db75
cmp edi, edx
je 0x42db7c
movzx edi, byte [esi + 1]
and ebx, 0x7f
add esi, 2
shl ebx, 8
or ebx, edi
sub ecx, ebx
js 0x42db75
xor al, 1
cmp esi, edx
jne 0x42db30
jmp 0x42db75
xor eax, eax
jmp 0x42db75
mov al, 1
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4439c8
push 0x2b
push str.called__Option::unwrap____on_a__None__value
call fcn.0043e1a0
add esp, 0xc
ud2
push 0x4439b8
push ebp
push ebx
call fcn.0043e500
add esp, 0xc
ud2
push 0x4439b8
push dword [esp + 0x20]
push ebp
call fcn.0043e4e0
add esp, 0xc
ud2

Function at 0x42f4f1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42f530
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42f530
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42f530
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42f530
cmp dword [ecx + 0x74], 0xe
jbe 0x42f530
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret