joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49c8f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, esp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], esp
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x34], 0x4accd0
lea eax, [esi + 0x30]
mov ecx, dword fs:[0]
mov dword [esi + 0x30], ecx
mov dword fs:[0], eax
mov eax, esi
mov dword [esi + 4], 0
mov dword [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x49ca59
mov ecx, dword [esi]
mov edx, dword [esi + 4]
movq xmm0, qword [0x530ae0]
movd edi, xmm0
pextrd ebx, xmm0, 1
mov dword [esi + 0xc], ecx
mov dword [esi + 0x14], edx
mov eax, edi
mov dword [esi + 0x10], ebx
or eax, ebx
jne 0x49c9ab
mov eax, esi
mov dword [esi + 4], 0
mov dword [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x49ca92
mov edi, dword [esi]
movq xmm0, qword [esi]
mov ecx, dword [esi + 4]
movq qword [0x530ae0], xmm0
mov eax, edi
mov dword [esi + 0x10], ecx
or eax, ecx
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x14]
je 0x49ca45
mov eax, dword [esi + 0x10]
push eax
mov ebx, edi
mov dword [esi + 0x24], edi
mov edi, eax
mov dword [esi + 0x10], eax
push ebx
push edx
push ecx
call fcn.004b5860
mov ecx, edi
mov edi, dword [esi + 0x24]
mov ebx, eax
mov dword [esi + 0x20], edx
imul ecx, eax
mul edi
add edx, ecx
mov ecx, edi
mov edi, dword [esi + 0xc]
imul ecx, dword [esi + 0x20]
add ecx, edx
sub edi, eax
mov eax, ebx
sbb dword [esi + 0x14], ecx
imul ebx, dword [esi + 0x20], 0x3b9aca00
mov ecx, 0x3b9aca00
mul ecx
imul ecx, dword [esi + 0x14], 0x3b9aca00
mov dword [esi + 0xc], eax
mov eax, edi
add ebx, edx
mov edx, 0x3b9aca00
mul edx
add edx, ecx
push dword [esi + 0x10]
push dword [esi + 0x24]
push edx
push eax
call fcn.004b5860
mov edi, eax
add edi, dword [esi + 0xc]
adc edx, ebx
push 0
push 0x3b9aca00
push edx
push edi
call fcn.004b5860
imul ecx, eax, 0xc4653600
add ecx, edi
mov edi, dword [esi + 0x30]
mov dword fs:[0], edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, str.attempt_to_divide_by_zeroPoisonErrormain.rs_srcio_read_buf.rs
mov edx, 0x19
push 0x4fb154
call fcn.004cb970
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x38], 0
lea eax, [esi + 0x18]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x4fbdc4
push 0x4fa1ec
push eax
call fcn.004cbc80
add esp, 0xc
jmp 0x49cac9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x38], 1
lea eax, [esi + 0x18]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x4fbdb4
push 0x4fa1ec
push eax
call fcn.004cbc80
add esp, 0xc
ud2
Function at 0x49f7e0
Capabilities:
Create udp socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
movzx eax, byte [edx]
mov esi, ecx
cmp al, 4
jne 0x49f85e
mov ebx, dword [edx + 4]
mov eax, dword [0x530acc]
cmp eax, 3
jne 0x49f969
cmp word [ebx], 0
mov eax, 2
mov ebp, 0x17
cmove ebp, eax
sub esp, 0x18
movaps xmm0, xmmword [0x4d07c0]
movups xmmword [esp + 4], xmm0
mov dword [esp], ebp
mov dword [esp + 0x14], 0x81
call dword [sym.imp.ws2_32.dll_WSASocketW]
mov edi, eax
cmp eax, 0xffffffff
je 0x49f87a
cmp word [ebx], 0
je 0x49f8e3
movups xmm0, xmmword [ebx + 4]
mov edx, dword [ebx + 0x18]
lea ecx, [ebx + 0x14]
add ebx, 0x1c
mov eax, 0x1c
mov bp, 0x17
jmp 0x49f8f5
mov ecx, dword [edx + 4]
movzx edi, word [edx + 1]
movzx edx, byte [edx + 3]
mov byte [esi], al
mov word [esi + 1], di
mov byte [esi + 3], dl
mov dword [esi + 4], ecx
jmp 0x49f961
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x49f892
cmp eax, 0x2726
jne 0x49f951
sub esp, 0x18
movaps xmm0, xmmword [0x4d07c0]
movups xmmword [esp + 4], xmm0
mov dword [esp], ebp
mov dword [esp + 0x14], 1
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x49f94b
mov edi, eax
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x49f839
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
mov eax, ebx
jmp 0x49f951
lea ecx, [ebx + 2]
add ebx, 6
mov eax, 0x10
mov bp, 2
xorps xmm0, xmm0
movzx ebx, word [ebx]
mov ecx, dword [ecx]
mov word [esp], bp
rol bx, 8
mov word [esp + 2], bx
mov dword [esp + 4], ecx
movups xmmword [esp + 8], xmm0
mov dword [esp + 0x18], edx
mov ecx, esp
push eax
push ecx
push edi
call dword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
je 0x49f92c
mov dword [esi + 4], edi
mov byte [esi], 4
jmp 0x49f961
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov byte [esi], 0
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
jmp 0x49f961
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov byte [esi], 0
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004cea80
jmp 0x49f801
Function at 0x49f9a0
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 [0x530078]
test eax, eax
je 0x49fa81
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x49f9cf
mov ecx, dword [eax]
or ecx, dword [eax + 4]
jne 0x49fa78
mov eax, dword [0x530078]
test eax, eax
je 0x49fa90
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x49fa53
mov esi, eax
test eax, eax
jne 0x49fa33
movzx eax, byte [0x530b2c]
xor ecx, ecx
mov edx, 0x20
call fcn.0049cbc0
test eax, eax
je 0x49fab4
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x530078
mov ecx, dword [0x530078]
test ecx, ecx
je 0x49fa9f
dec ecx
mov esi, eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
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 0x49fa57
movaps xmm0, xmmword [esp]
jmp 0x49fa65
xor eax, eax
jmp 0x49fa7b
lea ecx, [esp + 0x10]
call fcn.0049c7b0
movups xmm0, xmmword [esp + 0x10]
mov eax, esi
mov dword [esi + 4], 0
mov dword [esi], 1
movups xmmword [esi + 8], xmm0
add eax, 8
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov ecx, 0x530078
call fcn.004ce4f0
jmp 0x49f9b8
mov ecx, 0x530078
call fcn.004ce4f0
jmp 0x49f9dd
mov ecx, 0x530078
mov esi, eax
call fcn.004ce4f0
mov ecx, eax
mov eax, esi
jmp 0x49fa29
mov ecx, 8
mov edx, 0x20
call fcn.004cb610
int3
Function at 0x4a080b
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x530088]
test eax, eax
je 0x4a08ab
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x4a0834
mov edi, eax
cmp dword [eax + 4], 0
je 0x4a0834
add edi, 4
jmp 0x4a08a6
mov eax, dword [0x530088]
test eax, eax
je 0x4a08ba
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x4a08a4
mov esi, eax
test eax, eax
jne 0x4a0886
mov al, byte [0x530b2c]
xor ecx, ecx
mov edx, 8
call fcn.0049cbc0
test eax, eax
je 0x4a08d5
mov esi, eax
mov dword [eax], 0x530088
mov dword [eax + 4], 0
mov eax, dword [0x530088]
test eax, eax
je 0x4a08c9
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edi, [esi + 4]
call fcn.004a1695
mov ecx, dword [esi + 4]
mov dword [esi + 4], eax
test ecx, ecx
je 0x4a08a6
lock dec dword [ecx]
jne 0x4a08a6
call fcn.004945c0
jmp 0x4a08a6
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x530088
call fcn.004ce4f0
jmp 0x4a081b
mov ecx, 0x530088
call fcn.004ce4f0
jmp 0x4a083e
mov ecx, 0x530088
call fcn.004ce4f0
jmp 0x4a087e
mov ecx, 4
mov edx, 8
call fcn.004cb610
push edi
push esi
mov edi, dword [esp + 0xc]
mov esi, dword [edi]
mov eax, dword [esi]
test eax, eax
je 0x4a0932
dec eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [edi + 4]
test eax, eax
je 0x4a0910
lock dec dword [eax]
jne 0x4a0910
mov ecx, dword [edi + 4]
call fcn.004945c0
push edi
push 0
push dword [0x530ac8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esi]
test eax, eax
je 0x4a093b
dec eax
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop edi
ret
mov ecx, esi
call fcn.004ce4f0
jmp 0x4a08f3
mov ecx, esi
call fcn.004ce4f0
jmp 0x4a0926
Function at 0x4a08e4
Capabilities:
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x530088]
test eax, eax
je 0x4a08ab
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x4a0834
mov edi, eax
cmp dword [eax + 4], 0
je 0x4a0834
add edi, 4
jmp 0x4a08a6
mov eax, dword [0x530088]
test eax, eax
je 0x4a08ba
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x4a08a4
mov esi, eax
test eax, eax
jne 0x4a0886
mov al, byte [0x530b2c]
xor ecx, ecx
mov edx, 8
call fcn.0049cbc0
test eax, eax
je 0x4a08d5
mov esi, eax
mov dword [eax], 0x530088
mov dword [eax + 4], 0
mov eax, dword [0x530088]
test eax, eax
je 0x4a08c9
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edi, [esi + 4]
call fcn.004a1695
mov ecx, dword [esi + 4]
mov dword [esi + 4], eax
test ecx, ecx
je 0x4a08a6
lock dec dword [ecx]
jne 0x4a08a6
call fcn.004945c0
jmp 0x4a08a6
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x530088
call fcn.004ce4f0
jmp 0x4a081b
mov ecx, 0x530088
call fcn.004ce4f0
jmp 0x4a083e
mov ecx, 0x530088
call fcn.004ce4f0
jmp 0x4a087e
mov ecx, 4
mov edx, 8
call fcn.004cb610
push edi
push esi
mov edi, dword [esp + 0xc]
mov esi, dword [edi]
mov eax, dword [esi]
test eax, eax
je 0x4a0932
dec eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [edi + 4]
test eax, eax
je 0x4a0910
lock dec dword [eax]
jne 0x4a0910
mov ecx, dword [edi + 4]
call fcn.004945c0
push edi
push 0
push dword [0x530ac8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esi]
test eax, eax
je 0x4a093b
dec eax
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop edi
ret
mov ecx, esi
call fcn.004ce4f0
jmp 0x4a08f3
mov ecx, esi
call fcn.004ce4f0
jmp 0x4a0926

Function at 0x4a3504
Capabilities:
Set socket configuration

Disassembly:
push esi
push eax
cmp edx, 0xffffffff
je 0x4a3547
mov esi, ecx
movzx eax, byte [esp + 0xc]
mov ecx, esp
mov dword [ecx], eax
push 4
push ecx
push 1
push 6
push edx
call dword [sym.imp.ws2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x4a3540
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
xor ecx, ecx
mov byte [esi], cl
add esp, 4
pop esi
ret
mov ecx, 0x4fd3a0
call fcn.004cbd00
Function at 0x4a37c4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov esi, edx
mov dword [esp], ecx
mov edx, dword [edx + 4]
mov edi, dword [esi + 8]
lea ebx, [esp + 0x10]
mov ecx, ebx
mov dword [esp + 0xc], edx
push 1
push dword [esp + 0x50]
call fcn.004a330f
add esp, 8
mov eax, dword [ebx]
cmp eax, 2
jne 0x4a3800
mov eax, dword [esp]
mov byte [eax], 5
jmp 0x4a395e
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0xc]
add edx, 0x40
mov dword [esp + 0x28], edx
mov edx, 0x7fffffff
cmp ecx, edx
cmovb edx, ecx
mov dword [esp + 0x2c], edx
mov esi, dword [esi + 0xc]
mov dword [esp + 0x24], esi
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
test eax, eax
jne 0x4a3944
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
cmp edi, 0xffffffff
je 0x4a3966
push 0
push dword [esp + 0x30]
push dword [esp + 0x58]
push edi
call dword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x4a3866
mov dword [esp + 8], eax
mov byte [esp + 4], 4
jmp 0x4a38c8
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ebp, eax
xor eax, eax
mov byte [esp + 4], al
mov byte [esp + 7], al
mov word [esp + 5], 0
mov dword [esp + 8], ebp
lea ecx, [esp + 4]
call fcn.00430584
cmp al, 0xd
jne 0x4a38c8
test esi, esi
je 0x4a38c8
mov edx, dword [esi]
mov eax, dword [esi + 4]
lock inc dword [eax]
jle 0x4a3970
add edx, 8
lea ecx, [esp + 0x10]
push dword [esi + 0xc]
push dword [esi + 8]
push eax
call fcn.0043004f
add esp, 0xc
cmp byte [esp + 0x10], 4
je 0x4a38c8
mov ebx, dword [esp + 0x10]
cmp bl, 4
jne 0x4a392d
mov ebx, dword [esp + 4]
mov esi, dword [esp + 8]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], ebx
cmp bl, 4
je 0x4a394e
lea ecx, [esp + 0x1c]
call fcn.00430584
cmp al, 0xd
jne 0x4a3956
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x30]
call fcn.004a5484
movzx ecx, bl
mov edx, esi
call fcn.004a2b2d
lea ecx, [esp + 0x10]
mov edx, dword [esp + 0xc]
push 1
push dword [esp + 0x50]
call fcn.004a330f
add esp, 8
mov eax, dword [esp + 0x10]
cmp eax, 2
mov esi, dword [esp + 0x24]
jne 0x4a3824
jmp 0x4a37f5
mov esi, dword [esp + 0x14]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], esi
xor ecx, ecx
mov edx, ebp
call fcn.004a2b2d
jmp 0x4a38dd
mov eax, dword [esp]
mov dword [eax], edx
mov dword [eax + 4], ecx
jmp 0x4a395e
mov eax, dword [esp]
mov byte [eax], 4
jmp 0x4a395b
mov eax, dword [esp]
mov dword [eax], ebx
mov dword [eax + 4], esi
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x4fd3d0
call fcn.004cbd00
ud2

Function at 0x4a55e1
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
mov edx, eax
xor edx, 3
lock cmpxchg dword [ecx], edx
jne 0x4a55e3
test al, 1
je 0x4a55fa
test al, 2
jne 0x4a560e
xor eax, 3
ret
mov ecx, str.assertion_failed:_prev.is_running__
mov edx, 0x23
push 0x4fddcc
call fcn.004cb970
mov ecx, 0x4fdddc
mov edx, 0x25
push 0x4fde04
call fcn.004cb970
Function at 0x4ae8dd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
not ebx
push edi
cmp esi, 8
jbe 0x4ae99d
jmp 0x4ae90d
movzx eax, byte [edx]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x522940]
inc edx
dec esi
test dl, 7
jne 0x4ae8f9
mov edi, esi
and edi, 0xfffffff8
add edi, edx
and esi, 7
jmp 0x4ae999
xor ebx, dword [edx]
add edx, 4
mov dword [ebp + 0x10], edx
add dword [ebp + 0x10], 4
mov edx, dword [edx]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x522d40]
xor ecx, dword [eax*4 + 0x523140]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x523d40]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x524140]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x522940]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x523940]
movzx eax, dl
mov edx, dword [ebp + 0x10]
xor ecx, dword [eax*4 + 0x523540]
movzx eax, bl
xor ecx, dword [eax*4 + 0x524540]
mov ebx, ecx
cmp edx, edi
jb 0x4ae91e
test esi, esi
je 0x4ae9b9
movzx eax, byte [edx]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x522940]
inc edx
sub esi, 1
jne 0x4ae9a1
pop edi
not ebx
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x4ae9c2
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [esp + 0x1c]
not ebx
push edi
mov edi, dword [esp + 0x18]
not esi
cmp edi, 4
jbe 0x4aea8a
mov dword [esp + 0x18], edx
test dl, 3
je 0x4aea14
movzx eax, byte [edx]
movzx ecx, bl
shrd ebx, esi, 8
xor ecx, eax
shr esi, 8
xor ebx, dword [ecx*8 + 0x524940]
xor esi, dword [ecx*8 + 0x524944]
inc edx
dec edi
test dl, 3
jne 0x4ae9ec
mov dword [esp + 0x18], edx
mov ebp, edi
and ebp, 0xfffffffc
add ebp, edx
and edi, 3
jmp 0x4aea86
mov edx, dword [edx]
xor edx, ebx
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ebx, dword [ecx*8 + 0x525140]
mov ecx, dword [ecx*8 + 0x525144]
xor ebx, dword [eax*8 + 0x525940]
xor ecx, dword [eax*8 + 0x525944]
mov eax, edx
shr eax, 0x18
xor ebx, dword [eax*8 + 0x524940]
xor ecx, dword [eax*8 + 0x524944]
movzx eax, dl
mov edx, dword [esp + 0x18]
xor ebx, dword [eax*8 + 0x526140]
xor ecx, dword [eax*8 + 0x526144]
xor ebx, esi
xor ecx, 0
add edx, 4
mov esi, ecx
mov dword [esp + 0x18], edx
cmp edx, ebp
jb 0x4aea20
test edi, edi
je 0x4aeab1
movzx eax, byte [edx]
movzx ecx, bl
shrd ebx, esi, 8
xor ecx, eax
shr esi, 8
xor ebx, dword [ecx*8 + 0x524940]
xor esi, dword [ecx*8 + 0x524944]
inc edx
sub edi, 1
jne 0x4aea8e
not esi
not ebx
pop edi
mov edx, esi
mov eax, ebx
pop esi
pop ebp
pop ebx
ret

Function at 0x4aebca
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x20
push 0x522310
lea eax, [esi + 0x40]
push eax
call fcn.004b64b0
and dword [esi + 0x60], 0
add esp, 0xc
and dword [esi + 0x64], 0
pop esi
ret
Function at 0x4b604e
Capabilities:
Parse pe header

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

Function at 0x4bf15f
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004bf0e1
Function at 0x4c134d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4c13ea
push ebx
push esi
call fcn.004c1316
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004c12aa
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4c1397
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4c13e9
push edi
push eax
call fcn.004be789
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4c13b7
call fcn.004be74f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4c13e8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004c12aa
add esp, 0x20
test eax, eax
jne 0x4c13d6
push edi
call fcn.004be74f
jmp 0x4c13de
push ebx
call fcn.004be74f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4c2996
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x528ec0
push 0x528eb8
push str.FlsAlloc
push 0x1f
call fcn.004c27d5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c29ca
push dword [ebp + 8]
mov ecx, esi
call dword [0x4d02c0]
call esi
jmp 0x4c29d0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4c2a14
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x528ed0
push 0x528ec8
push str.FlsGetValue
push 0x21
call fcn.004c27d5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c2a4b
push dword [ebp + 8]
mov ecx, esi
call dword [0x4d02c0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4c2a53
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x528ed8
push 0x528ed0
push str.FlsSetValue
push 0x22
call fcn.004c27d5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c2a8d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4d02c0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4cb100
Capabilities:
Parse pe header

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

Function at 0x4ce4f0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x4ce573
lea edi, [esi + 0xc]
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [esp], eax
jne 0x4ce5ae
cmp dword [esp + 4], 0
je 0x4ce595
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x4ce5cc
mov ebx, eax
inc eax
mov dword [esi], eax
mov eax, dword [0x530ad8]
nop word cs:[eax + eax]
nop
mov dword [esi + 8], eax
lock cmpxchg dword [0x530ad8], esi
jne 0x4ce550
mov byte [0x530ad4], 1
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
mov eax, ebx
jmp 0x4ce5a7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x4ce60d
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x4ce599
mov eax, dword [esp]
jmp 0x4ce5a7
mov eax, dword [esi]
jmp 0x4ce5a6
push dword [esp]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov eax, esi
dec eax
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov dword [esp + 8], 0
lea eax, [esp + 8]
mov ecx, esp
mov edx, 0x4fb8d8
push 0x4fbc9c
push eax
call fcn.004ce640
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
lea ecx, [esp + 8]
mov edx, 0x4fbc8c
mov dword [esp + 8], 0x4fbc50
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], str._rustc_a4472498d7e88041f6206faf4503eb1f246fd427librarycore_src_sync_atomic.rsthere_is_no_such_thing_as_an_acquire_store
mov dword [esp + 0x14], 0
call fcn.004cb8c0
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0x4fbc50
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], str._rustc_a4472498d7e88041f6206faf4503eb1f246fd427librarycore_src_sync_atomic.rsthere_is_no_such_thing_as_an_acquire_store
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.004ce670
Function at 0x4cead0
Capabilities:
Resolve dns

Disassembly:
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
lea ecx, [esp + 4]
push dword [esp + 0x44]
call fcn.00401240
add esp, 4
mov eax, dword [esp + 4]
cmp eax, 0x80000000
jne 0x4ceb43
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0xc]
xorps xmm0, xmm0
mov eax, esp
mov dword [esp], 0
lea ecx, [esp + 0x14]
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x1c], 1
push eax
push ecx
push 0
push edi
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x4ceb65
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
jmp 0x4ceb79
mov ecx, dword [0x4faef0]
mov edx, dword [0x4faef4]
test eax, eax
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], 1
je 0x4ceb91
push dword [esp + 8]
jmp 0x4ceb83
mov ecx, dword [esp]
movzx eax, word [esp + 0x48]
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x4ceb91
push edi
push 0
push dword [0x530ac8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 0x34
pop esi
pop edi
pop ebx
ret