joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47d9e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
movzx ebx, byte [edx + 0x1c]
mov dword [esp + 8], ecx
xor ecx, ecx
mov eax, 0
mov edi, edx
call 0x47d9fd
pop ebp
cmp bl, 1
setne dl
sbb eax, eax
or al, dl
movzx edx, al
cmp al, 0xff
je 0x47da13
test edx, edx
jne 0x47da3c
mov byte [esp + 3], bl
movzx ebx, byte [edi + 0x1e]
cmp al, 0xff
mov esi, ebx
je 0x47da25
test edx, edx
jne 0x47da2f
mov ecx, edi
call fcn.0047d8f0
movzx ecx, al
movzx ebx, byte [esp + 3]
xor eax, eax
test bl, bl
jne 0x47da98
jmp 0x47da44
xor esi, esi
xor eax, eax
test bl, bl
jne 0x47da98
xor eax, eax
cmp byte [edi + 8], 6
lea edx, [edi + 8]
cmove edx, eax
je 0x47da98
movzx ebx, byte [edx]
mov eax, 6
add ebp, dword [ebx*4 + 0x47dba4]
jmp ebp
add ecx, eax
mov eax, esi
movzx esi, al
mov eax, dword [edi + 4]
lea ebx, [ecx + esi]
cmp eax, ebx
jb 0x47db8b
mov ebp, dword [edi]
cmp eax, ebx
lea edx, [ebp + ebx]
jne 0x47dac7
movzx ecx, byte [edi + 8]
mov byte [esp + 3], cl
xor ecx, ecx
sub eax, ebx
jne 0x47db42
jmp 0x47db27
mov dword [esp + 4], edx
mov dh, byte [edi + 8]
add ecx, esi
sub ecx, eax
cmp dh, 3
mov byte [esp + 3], dh
jae 0x47dafb
mov edx, dword [esp + 4]
lea esi, [eax + ebp - 1]
nop word cs:[eax + eax]
nop dword [eax]
cmp byte [esi], 0x5c
je 0x47db2b
dec esi
inc ecx
jne 0x47daf0
jmp 0x47db21
mov edx, dword [esp + 4]
lea edi, [eax + ebp - 1]
nop word cs:[eax + eax]
nop dword [eax]
movzx esi, byte [edi]
cmp esi, 0x2f
je 0x47db2b
cmp esi, 0x5c
je 0x47db2b
dec edi
inc ecx
jne 0x47db10
xor ecx, ecx
sub eax, ebx
jne 0x47db42
mov bl, 0xa
jmp 0x47db72
not ecx
lea ebx, [ebx + ecx + 1]
cmp eax, ebx
jb 0x47db92
add ebp, ebx
mov ecx, 1
mov edx, ebp
sub eax, ebx
je 0x47db27
mov bl, 9
cmp eax, 2
je 0x47db63
cmp eax, 1
jne 0x47db72
cmp byte [edx], 0x2e
jne 0x47db72
xor ebx, ebx
cmp byte [esp + 3], 3
setae bl
lea ebx, [ebx + ebx*2 + 7]
jmp 0x47db72
cmp byte [edx], 0x2e
jne 0x47db72
cmp byte [edx + 1], 0x2e
sete bl
xor bl, 9
mov esi, dword [esp + 8]
add ecx, eax
mov dword [esi], ecx
mov byte [esi + 4], bl
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x50c548
jmp 0x47db97
push 0x50c558
push eax
push ebx
call fcn.004b4ba0
add esp, 0xc
ud2
Function at 0x481560
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x103c
call fcn.004b0670
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x492310
mov edi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], edx
lea esi, [ebp - 0x1048]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x1000
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xorps xmm0, xmm0
lea ebx, [ebp - 0x48]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], eax
push 0x489770
push ebx
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x4816b4
mov esi, dword [sym.imp.KERNEL32.dll_SleepEx]
mov dword [ebp - 0x20], edi
push 1
push 0xffffffffffffffff
call esi
cmp dword [ebp - 0x34], 0
je 0x4815ea
cmp dword [ebp - 0x30], 0
jne 0x4816c5
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4816c5
cmp eax, 0x1000
mov dword [ebp - 0x24], eax
ja 0x481701
xor edi, edi
nop dword [eax + eax]
sub eax, edi
jb 0x4816e7
xorps xmm0, xmm0
lea edx, [ebp - 0x34]
lea ecx, [ebp + edi - 0x1048]
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], edx
push 0x489770
push ebx
push eax
push ecx
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
je 0x4816bc
nop dword [eax + eax]
push 1
push 0xffffffffffffffff
call esi
cmp dword [ebp - 0x34], 0
je 0x481660
cmp dword [ebp - 0x30], 0
jne 0x4816c2
add edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
cmp edi, eax
jne 0x481620
xorps xmm0, xmm0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], eax
push 0x489770
push ebx
push 0x1000
lea eax, [ebp - 0x1048]
push eax
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x4815ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4816c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push dword [ebp - 0x28]
call esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x103c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 0x50d52c
push dword [ebp - 0x24]
push edi
call fcn.004b4c80
add esp, 0xc
jmp 0x48171b
mov dword [ebp - 0x10], 0
push 0x50d52c
push 0x1000
push eax
call fcn.004b4c10
add esp, 0xc
ud2
Function at 0x4856a0
Capabilities:
Create directory

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov ecx, esp
push dword [esp + 0x28]
call fcn.0048fbd0
add esp, 4
mov ecx, dword [esp]
mov edi, dword [esp + 4]
mov eax, dword [esp + 8]
test ecx, ecx
je 0x485706
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], eax
lea ecx, [esp + 0xc]
mov edx, esp
push 1
call fcn.004888d0
add esp, 4
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x485702
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x485712
mov byte [esi], 4
test edi, edi
jne 0x485722
jmp 0x48570b
mov eax, dword [esp + 0x14]
mov dword [esi], edi
mov dword [esi + 4], eax
add esp, 0x18
pop esi
pop edi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x48570b
add edi, edi
push 2
push edi
push ebx
call fcn.00414130
add esp, 0x24
pop esi
pop edi
pop ebx
ret

Function at 0x485b10
Capabilities:
Delete file

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ecx, esp
push dword [esp + 0x30]
call fcn.0048fbd0
add esp, 4
mov ecx, dword [esp]
mov edi, dword [esp + 4]
mov eax, dword [esp + 8]
test ecx, ecx
je 0x485b7a
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], eax
lea ecx, [esp + 0xc]
mov edx, esp
push 1
call fcn.004888d0
add esp, 4
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x485b76
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x485b81
mov byte [esi], 4
test edi, edi
jne 0x485b91
jmp 0x485b9f
mov eax, dword [esp + 0x14]
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x485b9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x485b9f
add edi, edi
push 2
push edi
push ebx
call fcn.00414130
add esp, 0xc
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
ret
Function at 0x485bb0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x492450
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
mov dword fs:[0], ecx
lea ecx, [ebp - 0x28]
push eax
call fcn.0048fbd0
add esp, 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
test ecx, ecx
je 0x485c95
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
lea edx, [ebp - 0x28]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x3c]
push 1
call fcn.004888d0
add esp, 4
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
test eax, eax
je 0x485c92
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x30], edx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x28]
push esi
call fcn.0048fbd0
add esp, 4
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
test ecx, ecx
je 0x485c9c
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x28]
push 1
call fcn.004888d0
add esp, 4
mov edi, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x38]
mov ebx, dword [ebp + 8]
test edi, edi
je 0x485ca1
push 1
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x485cab
mov byte [ebx], 4
test esi, esi
jne 0x485cbb
jmp 0x485cc9
mov eax, dword [ebp - 0x34]
mov dword [ebx], edx
mov dword [ebx + 4], eax
jmp 0x485ce0
mov ebx, dword [ebp + 8]
jmp 0x485ca4
mov eax, dword [ebp - 0x34]
mov dword [ebx], esi
mov dword [ebx + 4], eax
jmp 0x485cc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebx], 0
mov dword [ebx + 4], eax
test esi, esi
je 0x485cc9
add esi, esi
push 2
push esi
push edi
call fcn.00414130
add esp, 0xc
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x485ce0
add eax, eax
push 2
push eax
push dword [ebp - 0x2c]
call fcn.00414130
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x486620
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov esi, esp
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], esp
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x2c], 0x4924a0
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
lea ecx, [esi + 0x28]
mov eax, dword fs:[0]
mov dword [esi + 0x28], eax
mov dword fs:[0], ecx
mov ecx, esi
push ebx
call fcn.0048fbd0
add esp, 4
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
test ecx, ecx
je 0x48672d
mov dword [esi], ecx
mov dword [esi + 4], edx
mov edx, esi
mov dword [esi + 8], eax
lea ecx, [esi + 0x14]
push 1
call fcn.004888d0
add esp, 4
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
test eax, eax
je 0x48672a
mov edi, dword [ebp + 0x18]
mov dword [esi + 0x10], edx
mov edx, dword [ebp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x30], 0
mov ecx, esi
push edi
call fcn.0048fbd0
add esp, 4
mov ecx, dword [esi]
mov edi, dword [esi + 4]
mov eax, dword [esi + 8]
test ecx, ecx
je 0x48673e
mov dword [esi], ecx
mov dword [esi + 4], edi
mov dword [esi + 8], eax
lea ecx, [esi + 0x14]
mov edx, esi
push 1
call fcn.004888d0
add esp, 4
mov ebx, dword [esi + 0x14]
mov edi, dword [esi + 0x18]
test ebx, ebx
je 0x48673b
mov dword [esi + 4], 0
mov dword [esi], 0
push 0
push 0
mov eax, esi
push eax
push 0x4867d0
push ebx
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
je 0x48674f
mov eax, dword [esi]
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 4]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov dword [edx], 0
test edi, edi
jne 0x486769
jmp 0x486777
mov eax, dword [esi + 0x1c]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov dword [edi], 1
jmp 0x486791
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edi
mov dword [ecx + 8], eax
mov dword [ecx], 1
jmp 0x486777
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov byte [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx], 1
test edi, edi
je 0x486777
add edi, edi
push 2
push edi
push ebx
call fcn.00414130
add esp, 0xc
mov eax, dword [esi + 0x10]
mov edi, dword [ebp + 8]
test eax, eax
je 0x486791
add eax, eax
push 2
push eax
push dword [esi + 0xc]
call fcn.00414130
add esp, 0xc
mov eax, dword [esi + 0x28]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x486b50
Capabilities:
Read 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 0x486b94
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 0x486b9a
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_NtReadFile]
cmp eax, 0x103
jne 0x486bcf
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x486bdf
mov dword [esi + 4], 0
jmp 0x486bf1
cmp eax, 0x103
je 0x486c0b
test eax, eax
js 0x486bfc
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x486bf4
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x50d264
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.0047bec0
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.00472430
mov ecx, 7
int 0x29
ud2
Function at 0x486c70
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 0x486cb4
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 0x486cba
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 0x486cf6
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x486d1b
test eax, eax
js 0x486d05
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov al, 4
jmp 0x486d11
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], 0x50d264
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.0047bec0
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.00472430
mov ecx, 7
int 0x29
ud2

Function at 0x486d80
Capabilities:
Create udp socket

Disassembly:
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov ebx, 0x17
cmp word [eax], 0
mov eax, 2
cmove ebx, eax
push 0x81
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x486dc4
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
ret
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x486dd8
cmp eax, 0x2739
jne 0x486e03
push 1
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x486e0b
mov edi, eax
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x486e1c
mov dword [esi + 4], edi
jmp 0x486dbb
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x486dbe
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x486dbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, eax
shr eax, 0x18
mov byte [esi], 0
shr ecx, 8
shl edx, 0x18
mov byte [esi + 7], al
mov dword [esi + 1], edx
mov word [esi + 5], cx
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
jmp 0x486dbe
Function at 0x48d700
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea ecx, [esp + 0xc]
push dword [esp + 0x38]
call fcn.0048fbd0
add esp, 4
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test edx, edx
je 0x48d765
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
mov ecx, esp
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.00484fb0
mov edi, dword [esp]
test edi, edi
je 0x48d774
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48d789
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebp
jmp 0x48d781
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], 0
mov ecx, esp
call fcn.00472800
mov dword [esi], 0
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
mov dword [esi], 0
je 0x48d781
add ebx, ebx
push 2
push ebx
push edi
call fcn.00414130
add esp, 0x30
jmp 0x48d784

Function at 0x48e0c0
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], 0x492580
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 0x48e13e
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], 0x50d640
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], fcn.00479f90
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 1
lea eax, [esi + 0x30]
push 0x50d66c
push eax
call fcn.004b4700
add esp, 8
ud2
Function at 0x48ee40
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], 0x4925b0
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 [0x519171]
push 4
push 8
call fcn.00414120
add esp, 8
test eax, eax
je 0x48ef22
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 0x48ef80
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x48eebd
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x48ef0f
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 0x48eef4
push dword [ecx + 8]
push eax
push dword [ebp - 0x20]
call fcn.00414130
add esp, 0xc
push 4
push 8
push dword [ebp - 0x28]
call fcn.00414130
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.004b45c0
add esp, 8
ud2
Function at 0x48f120
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], 0x4925d0
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
cmp eax, 3
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
je 0x48f15e
test eax, eax
jne 0x48f2da
mov ebx, dword [0x519230]
test ebx, ebx
je 0x48f2da
mov dword [ebp - 0x20], 0
jmp 0x48f187
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x48f1b8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x48f32b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48f180
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 0x48f180
test byte [ebp - 0x20], 1
je 0x48f2da
mov ebx, dword [0x519230]
test ebx, ebx
je 0x48f2da
mov dword [ebp - 0x20], 0
jmp 0x48f1e7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x48f218
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x48f32b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48f1e0
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 0x48f1e0
test byte [ebp - 0x20], 1
je 0x48f2da
mov ebx, dword [0x519230]
test ebx, ebx
je 0x48f2da
mov dword [ebp - 0x20], 0
jmp 0x48f247
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x48f278
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x48f32b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48f240
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 0x48f240
test byte [ebp - 0x20], 1
je 0x48f2da
mov ebx, dword [0x519230]
test ebx, ebx
je 0x48f2da
mov dword [ebp - 0x20], 0
jmp 0x48f2a7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x48f2d4
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x48f32b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48f2a0
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 0x48f2a0
test byte [ebp - 0x20], 1
jne 0x48f2f4
movzx eax, byte [0x514580]
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 [0x519230]
jmp 0x48f2ff
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x48f2da
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x48f32b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48f2fc
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x48f2fc
mov dword [ebp - 0x10], 0
push 0x50da60
push 0x2b
push str.called__Option::unwrap____on_a__None__value_rustc_5680fa18feaa87f3ff04063800aec256c3d4b4belibrary_alloc_srccollections_btree_navigate.rs
call fcn.004b47c0
add esp, 0xc
ud2