joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b830
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], 0x428600
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], 2
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
cmp esi, 0x201
jae 0x41b8c0
jmp 0x41b8ae
jbe 0x41b954
cmp esi, 0x201
jae 0x41b8c0
mov dword [ebp - 0x28], 0x200
lea ebx, [ebp - 0x448]
mov edi, esi
jmp 0x41b8fb
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
sub esi, edi
sub eax, edi
cmp eax, esi
jae 0x41b8ec
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x38]
mov edx, edi
push esi
call fcn.0043d070
add esp, 4
mov eax, dword [ebp - 0x38]
mov edi, 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 0x41b91f
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x41b9b7
cmp esi, edi
jne 0x41b8a0
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41b9d3
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x41b8ae
jmp 0x41b8c0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0
cmp esi, eax
ja 0x41b9f0
lea eax, [ebp - 0x48]
push esi
push ebx
push eax
call fcn.0041dd70
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 0x41b9a1
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.00403b20
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 byte [esi], 0
mov dword [esi + 4], eax
mov byte [esi + 0xc], 2
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x41b991
jmp 0x41b9a1
mov dword [ebp - 0x10], 0
push 0x52d9c8
push 0x28
push str.internal_error:_entered_unreachable_code_rustc_79e9716c980570bfd1f666e3b16ac583f0168962library_alloc_src_vecmod.rs4
call fcn.0043dc30
add esp, 0xc
jmp 0x41b9ff
push 0x52d9b8
push eax
push esi
call fcn.0043dfc0
add esp, 0xc
ud2
Function at 0x4240e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x424124
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x42412a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x424166
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x42418b
test eax, eax
js 0x424175
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov al, 4
jmp 0x424181
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
xor eax, eax
mov byte [esi], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x52d3dc
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.0041d8c0
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.004186e0
mov ecx, 7
int 0x29
ud2

Function at 0x4256d0
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], 0x428900
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 0x42574e
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 byte [esi + 8], 0
mov dword [esi + 0xc], eax
lea eax, [esi + 8]
mov dword [esi + 0x30], 0x52d568
mov dword [esi + 0x34], 1
mov dword [esi + 0x40], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x28], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x2c], 0x41c290
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 1
lea eax, [esi + 0x30]
push 0x52d594
push eax
call fcn.0043db70
add esp, 8
ud2
Function at 0x425ef0
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], 0x428920
lea eax, [ebp - 0x18]
mov ebx, dword [ebp + 0x10]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x537199]
push 4
push 8
call fcn.00403b10
add esp, 8
test eax, eax
je 0x425fd2
mov edi, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [edi], ebx
mov dword [edi + 4], ecx
push 0
push 0x10000
push edi
push 0x426030
push eax
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
je 0x425f6d
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x425fbf
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x20], eax
push eax
mov dword [ebp - 0x24], ecx
call dword [ecx]
add esp, 4
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp + 8]
mov eax, dword [ecx + 4]
test eax, eax
je 0x425fa4
push dword [ecx + 8]
push eax
push dword [ebp - 0x20]
call fcn.00403b20
add esp, 0xc
push 4
push 8
push dword [ebp - 0x28]
call fcn.00403b20
add esp, 0xc
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 8
push 4
call fcn.0043daa0
add esp, 8
ud2
Function at 0x4261d0
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 dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x428940
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x53722c]
test al, al
je 0x4263a1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42621c
cmp eax, 3
jne 0x42639a
mov ebx, dword [0x537230]
test ebx, ebx
je 0x42639a
mov dword [ebp - 0x20], 0
jmp 0x426247
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x426278
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4263eb
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x426240
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 0x426240
test byte [ebp - 0x20], 1
je 0x42639a
mov ebx, dword [0x537230]
test ebx, ebx
je 0x42639a
mov dword [ebp - 0x20], 0
jmp 0x4262a7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4262d8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4263eb
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x4262a0
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 0x4262a0
test byte [ebp - 0x20], 1
je 0x42639a
mov ebx, dword [0x537230]
test ebx, ebx
je 0x42639a
mov dword [ebp - 0x20], 0
jmp 0x426307
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x426338
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4263eb
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x426300
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 0x426300
test byte [ebp - 0x20], 1
je 0x42639a
mov ebx, dword [0x537230]
test ebx, ebx
je 0x42639a
mov dword [ebp - 0x20], 0
jmp 0x426367
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x426394
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4263eb
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x426360
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 0x426360
test byte [ebp - 0x20], 1
jne 0x4263b4
movzx eax, byte [0x533e80]
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 [0x537230]
jmp 0x4263bf
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x42639a
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4263eb
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x4263bc
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x4263bc
mov dword [ebp - 0x10], 0
push 0x52d90c
push 0x2b
push 0x52ba80
call fcn.0043dc30
add esp, 0xc
ud2
Function at 0x427df0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x53708c]
mov esi, ecx
test eax, eax
je 0x427e16
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x427e2f
cmp dword [eax + 4], 0
je 0x427e2f
add eax, 8
pop esi
pop edi
ret
push 0x53708c
call fcn.0043d450
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x427e0a
mov eax, dword [0x53708c]
test eax, eax
je 0x427ec6
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x427ee3
mov edi, eax
test eax, eax
jne 0x427e8f
movzx eax, byte [0x537199]
push 4
push 0x10
call fcn.00403b10
add esp, 8
test eax, eax
je 0x427ef7
mov dword [eax], 0x53708c
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x53708c]
test eax, eax
je 0x427ee8
dec eax
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test esi, esi
je 0x427eaf
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0
mov dword [esi], 0
cmp eax, 1
jne 0x427eb3
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x427eb3
xor ecx, ecx
xor edx, edx
lea eax, [edi + 8]
mov dword [edi + 4], 1
mov dword [edi + 8], ecx
mov byte [edi + 0xc], dl
pop esi
pop edi
ret
push 0x53708c
call fcn.0043d450
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x427e4d
xor eax, eax
pop esi
pop edi
ret
push 0x53708c
call fcn.0043d450
add esp, 4
jmp 0x427e87
push 0x10
push 4
call fcn.0043daa0
add esp, 8
ud2
Function at 0x427f10
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], 0x4289d0
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 [0x53709c]
test eax, eax
je 0x428020
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x427f65
cmp dword [eax + 4], 0
mov edi, eax
jne 0x42801b
mov eax, dword [0x53709c]
test eax, eax
je 0x428042
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x42805f
mov edi, eax
test eax, eax
jne 0x427fd9
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0x53709c
movzx eax, byte [0x537199]
push 4
push 0xc
call fcn.00403b10
add esp, 8
test eax, eax
je 0x428086
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 [0x53709c]
test eax, eax
je 0x428074
dec eax
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test esi, esi
je 0x427fee
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
je 0x427ff0
mov eax, dword [esi + 4]
jmp 0x427ff0
xor eax, eax
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
test edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
mov dword [edi + 4], 1
mov dword [edi + 8], eax
je 0x42801b
test ecx, ecx
je 0x42801b
lock dec dword [ecx]
jne 0x42801b
lea ecx, [ebp - 0x24]
call fcn.004192d0
add edi, 8
jmp 0x428061
push 0x53709c
call fcn.0043d450
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x427f59
jmp 0x427f65
push 0x53709c
call fcn.0043d450
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x427f83
xor edi, edi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x53709c
call fcn.0043d450
add esp, 4
jmp 0x427fd1
mov dword [ebp - 0x10], 0
push 0xc
push 4
call fcn.0043daa0
add esp, 8
ud2
Function at 0x4280c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x5370ac]
mov esi, ecx
test eax, eax
je 0x4280e6
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x4280ff
cmp byte [eax + 4], 0
je 0x4280ff
add eax, 5
pop esi
pop edi
ret
push 0x5370ac
call fcn.0043d450
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x4280da
mov eax, dword [0x5370ac]
test eax, eax
je 0x428172
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x42818b
mov edi, eax
test eax, eax
jne 0x428150
movzx eax, byte [0x537199]
push 4
push 8
call fcn.00403b10
add esp, 8
test eax, eax
je 0x42819f
mov dword [eax], 0x5370ac
mov byte [eax + 4], 0
mov edi, eax
mov eax, dword [0x5370ac]
test eax, eax
je 0x428190
dec eax
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
xor ecx, ecx
test esi, esi
je 0x428165
cmp byte [esi], 0
mov byte [esi], 0
movzx eax, byte [esi + 1]
cmove eax, ecx
mov ecx, eax
lea eax, [edi + 5]
mov byte [edi + 4], 1
mov byte [edi + 5], cl
pop esi
pop edi
ret
push 0x5370ac
call fcn.0043d450
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x428115
xor eax, eax
pop esi
pop edi
ret
push 0x5370ac
call fcn.0043d450
add esp, 4
jmp 0x428148
push 8
push 4
call fcn.0043daa0
add esp, 8
ud2
Function at 0x4281b0
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], 0x4289e0
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 [0x5370bc]
test eax, eax
je 0x4282c0
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x428205
cmp dword [eax + 4], 0
mov edi, eax
jne 0x4282bb
mov eax, dword [0x5370bc]
test eax, eax
je 0x4282e2
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4282ff
mov edi, eax
test eax, eax
jne 0x428279
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0x5370bc
movzx eax, byte [0x537199]
push 4
push 0xc
call fcn.00403b10
add esp, 8
test eax, eax
je 0x428326
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 [0x5370bc]
test eax, eax
je 0x428314
dec eax
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test esi, esi
je 0x42828e
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
je 0x428290
mov eax, dword [esi + 4]
jmp 0x428290
xor eax, eax
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
test edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
mov dword [edi + 4], 1
mov dword [edi + 8], eax
je 0x4282bb
test ecx, ecx
je 0x4282bb
lock dec dword [ecx]
jne 0x4282bb
lea ecx, [ebp - 0x24]
call fcn.00419310
add edi, 8
jmp 0x428301
push 0x5370bc
call fcn.0043d450
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x4281f9
jmp 0x428205
push 0x5370bc
call fcn.0043d450
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x428223
xor edi, edi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5370bc
call fcn.0043d450
add esp, 4
jmp 0x428271
mov dword [ebp - 0x10], 0
push 0xc
push 4
call fcn.0043daa0
add esp, 8
ud2
Function at 0x428360
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x5370cc]
test eax, eax
je 0x42845f
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x428391
mov esi, eax
mov eax, dword [eax]
or eax, dword [esi + 4]
jne 0x42845a
mov eax, dword [0x5370cc]
test eax, eax
je 0x428481
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x42849e
mov esi, eax
test eax, eax
jne 0x4283fc
movzx eax, byte [0x537199]
push 8
push 0x20
call fcn.00403b10
add esp, 8
test eax, eax
je 0x4284ba
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x5370cc
mov esi, eax
mov eax, dword [0x5370cc]
test eax, eax
je 0x4284a8
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, dword [ebp + 8]
test eax, eax
je 0x42841b
mov ecx, dword [eax]
movups xmm0, xmmword [eax + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
cmp ecx, 1
je 0x428449
xorps xmm0, xmm0
mov eax, esp
movaps xmmword [esp], xmm0
push 2
push 0x10
push eax
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x42843b
movaps xmm0, xmmword [esp]
jmp 0x428449
lea ecx, [esp + 0x10]
call fcn.004256d0
movups xmm0, xmmword [esp + 0x10]
mov dword [esi + 4], 0
mov dword [esi], 1
movups xmmword [esi + 8], xmm0
add esi, 8
jmp 0x4284a0
push 0x5370cc
call fcn.0043d450
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x428384
jmp 0x428391
push 0x5370cc
call fcn.0043d450
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x4283af
xor esi, esi
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
push 0x5370cc
call fcn.0043d450
add esp, 4
jmp 0x4283f4
push 0x20
push 8
call fcn.0043daa0
add esp, 8
ud2
Function at 0x433ab0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x433b08
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 0x433b00
cmp ebx, ebp
ja 0x433b82
cmp ebp, dword [esp + 0x1c]
ja 0x433b93
add ebx, esi
nop word [eax + eax]
test eax, eax
je 0x433b02
dec eax
cmp byte [ebx], cl
lea ebx, [ebx + 1]
jne 0x433af0
jmp 0x433b5f
ja 0x433b08
cmp edx, edi
mov ebx, ebp
jne 0x433ac5
mov edx, dword [esp + 0x24]
test edx, edx
je 0x433b63
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 0x433b40
mov esi, edi
sub ecx, ebx
jns 0x433b57
jmp 0x433b65
cmp edi, edx
je 0x433b6c
movzx edi, byte [esi + 1]
and ebx, 0x7f
add esi, 2
shl ebx, 8
or ebx, edi
sub ecx, ebx
js 0x433b65
xor al, 1
cmp esi, edx
jne 0x433b20
jmp 0x433b65
xor eax, eax
jmp 0x433b65
mov al, 1
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x52f53c
push 0x2b
push str.called__Option::unwrap____on_a__None__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
call fcn.0043dc30
add esp, 0xc
ud2
push 0x52f54c
push ebp
push ebx
call fcn.0043e030
add esp, 0xc
ud2
push 0x52f54c
push dword [esp + 0x20]
push ebp
call fcn.0043dfc0
add esp, 0xc
ud2
Function at 0x436635
Capabilities:
Parse pe header

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

Function at 0x43a5f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43a61d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43a61d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x43d450
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [esp + 0x30]
cmp dword [edi + 4], 0
je 0x43d4d1
lea ebx, [edi + 0xc]
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push ebx
call dword [sym.imp.kernel32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [esp], eax
jne 0x43d50c
cmp dword [esp + 4], 0
je 0x43d4f3
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x43d52f
mov esi, eax
inc eax
mov dword [edi], eax
mov eax, dword [0x537230]
nop word [eax + eax]
mov dword [edi + 8], eax
lock cmpxchg dword [0x537230], edi
jne 0x43d4b0
mov byte [0x53722c], 1
push 0
push 0
push ebx
call dword [sym.imp.kernel32.dll_InitOnceComplete]
jmp 0x43d503
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x43d576
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [edi], ecx
jne 0x43d4f7
mov esi, dword [esp]
jmp 0x43d503
mov esi, dword [edi]
jmp 0x43d502
mov esi, eax
push dword [esp]
call dword [sym.imp.kernel32.dll_TlsFree]
dec esi
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov dword [esp + 8], 0
lea eax, [esp + 8]
mov ecx, esp
mov edx, 0x52d888
push 0x52d8e8
push eax
call fcn.0043cfb0
add esp, 8
ud2
push 0
push 4
push ebx
call dword [sym.imp.kernel32.dll_InitOnceComplete]
mov dword [esp + 8], 0x52d8a0
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], str.___rustc_79e9716c980570bfd1f666e3b16ac583f0168962librarycore_src_strpattern.rs
mov dword [esp + 0x14], 0
lea eax, [esp + 8]
push 0x52d8d8
push eax
call fcn.0043db70
add esp, 8
ud2
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0x52d8a0
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], str.___rustc_79e9716c980570bfd1f666e3b16ac583f0168962librarycore_src_strpattern.rs
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.0043cff0
ud2