joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477ea0
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], 0x49eb60
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x50c3bc]
test al, al
je 0x478071
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x477eec
cmp eax, 3
jne 0x47806a
mov ebx, dword [0x50c3c0]
test ebx, ebx
je 0x47806a
mov dword [ebp - 0x20], 0
jmp 0x477f17
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x477f48
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4780bb
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x477f10
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 0x477f10
test byte [ebp - 0x20], 1
je 0x47806a
mov ebx, dword [0x50c3c0]
test ebx, ebx
je 0x47806a
mov dword [ebp - 0x20], 0
jmp 0x477f77
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x477fa8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4780bb
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x477f70
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 0x477f70
test byte [ebp - 0x20], 1
je 0x47806a
mov ebx, dword [0x50c3c0]
test ebx, ebx
je 0x47806a
mov dword [ebp - 0x20], 0
jmp 0x477fd7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x478008
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4780bb
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x477fd0
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 0x477fd0
test byte [ebp - 0x20], 1
je 0x47806a
mov ebx, dword [0x50c3c0]
test ebx, ebx
je 0x47806a
mov dword [ebp - 0x20], 0
jmp 0x478037
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x478064
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4780bb
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x478030
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 0x478030
test byte [ebp - 0x20], 1
jne 0x478084
movzx eax, byte [0x508e80]
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 [0x50c3c0]
jmp 0x47808f
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x47806a
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4780bb
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x47808c
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x47808c
mov ecx, 0x4e0818
mov dword [ebp - 0x10], 0
call fcn.004a0660
ud2
Function at 0x478db0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x50c1dc]
test eax, eax
je 0x478e65
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x478ddc
cmp dword [eax + 4], 0
mov edi, eax
je 0x478ddc
add edi, 8
jmp 0x478e60
mov eax, dword [0x50c1dc]
test eax, eax
je 0x478e74
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x478e5e
mov esi, eax
test eax, eax
jne 0x478e34
movzx eax, byte [0x50c430]
xor ecx, ecx
mov edx, 0xc
call fcn.00484920
test eax, eax
je 0x478e8f
mov dword [eax], 0x50c1dc
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x50c1dc]
test eax, eax
je 0x478e83
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x478e60
test ecx, ecx
je 0x478e60
lock dec dword [ecx]
jne 0x478e60
call fcn.00478930
jmp 0x478e60
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x50c1dc
call fcn.004a33d0
jmp 0x478dc0
mov ecx, 0x50c1dc
call fcn.004a33d0
jmp 0x478dea
mov ecx, 0x50c1dc
call fcn.004a33d0
jmp 0x478e2c
mov ecx, 4
mov edx, 0xc
call fcn.0049ff70
int3

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

Disassembly:
push esi
mov eax, dword [0x50c1ec]
test eax, eax
je 0x479401
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x47939f
cmp byte [eax + 4], 0
mov esi, eax
jne 0x4793f6
mov eax, dword [0x50c1ec]
test eax, eax
je 0x479410
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4793fb
mov esi, eax
test eax, eax
jne 0x4793f0
movzx eax, byte [0x50c430]
xor ecx, ecx
mov edx, 8
call fcn.00484920
test eax, eax
je 0x479428
mov dword [eax], 0x50c1ec
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x50c1ec]
test eax, eax
je 0x47941c
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov word [esi + 4], 1
add esi, 5
jmp 0x4793fd
xor esi, esi
mov eax, esi
pop esi
ret
mov ecx, 0x50c1ec
call fcn.004a33d0
jmp 0x47938b
mov ecx, 0x50c1ec
call fcn.004a33d0
jmp 0x4793a9
mov ecx, 0x50c1ec
call fcn.004a33d0
jmp 0x4793e8
mov ecx, 4
mov edx, 8
call fcn.0049ff70
int3
Function at 0x47a140
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x50c1cc]
test eax, eax
je 0x47a1d5
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x47a166
cmp dword [eax + 4], 0
je 0x47a166
add eax, 8
pop esi
ret
mov eax, dword [0x50c1cc]
test eax, eax
je 0x47a1e4
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x47a1d1
mov esi, eax
test eax, eax
jne 0x47a1ba
movzx eax, byte [0x50c430]
xor ecx, ecx
mov edx, 0x10
call fcn.00484920
test eax, eax
je 0x47a1fc
mov dword [eax], 0x50c1cc
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x50c1cc]
test eax, eax
je 0x47a1f0
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
lea eax, [esi + 8]
mov byte [esi + 0xc], 0
pop esi
ret
xor eax, eax
pop esi
ret
mov ecx, 0x50c1cc
call fcn.004a33d0
jmp 0x47a14f
mov ecx, 0x50c1cc
call fcn.004a33d0
jmp 0x47a170
mov ecx, 0x50c1cc
call fcn.004a33d0
jmp 0x47a1b2
mov ecx, 4
mov edx, 0x10
call fcn.0049ff70
int3
Function at 0x47ae80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov esi, esp
mov dword [esi + 0x30], ebp
mov dword [esi + 0x34], esp
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0x49ece0
lea eax, [esi + 0x38]
mov ecx, dword fs:[0]
mov dword [esi + 0x38], ecx
mov dword fs:[0], eax
lea eax, [esi + 8]
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
push eax
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
test eax, eax
je 0x47afeb
mov ebx, dword [esi + 8]
mov ecx, dword [esi + 0xc]
movq xmm0, qword [0x50c3c8]
movd edx, xmm0
pshufd xmm0, xmm0, 0x55
mov dword [esi + 4], ecx
movd edi, xmm0
mov eax, edx
or eax, edi
jne 0x47af39
lea eax, [esi + 8]
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
push eax
call dword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x47b024
movq xmm0, qword [esi + 8]
mov edx, dword [esi + 8]
mov edi, dword [esi + 0xc]
movq qword [0x50c3c8], xmm0
mov eax, edx
mov ecx, dword [esi + 4]
or eax, edi
je 0x47afd7
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], ebx
push edi
push edx
push ecx
push ebx
mov edi, edx
mov dword [esi + 0x28], edx
call fcn.0049f3c0
mov dword [esi + 0x1c], eax
mov ebx, edx
mov ecx, edi
mov dword [esi + 0x2c], edx
mul edi
mov edi, dword [esi + 0x20]
imul ecx, ebx
mov ebx, dword [esi + 0x1c]
add ecx, edx
mov edx, edi
imul edx, ebx
add ecx, edx
mov edx, dword [esi + 0x24]
sub edx, eax
mov eax, dword [esi + 4]
sbb eax, ecx
imul ecx, eax, 0x3b9aca00
mov eax, edx
mov edx, 0x3b9aca00
mul edx
add edx, ecx
push edi
push dword [esi + 0x28]
push edx
push eax
call fcn.0049f3c0
mov ecx, eax
mov dword [esi + 4], edx
mov eax, ebx
mov edx, 0x3b9aca00
mul edx
mov edi, eax
imul eax, dword [esi + 0x2c], 0x3b9aca00
add eax, edx
add edi, ecx
adc eax, dword [esi + 4]
push 0
push 0x3b9aca00
push eax
push edi
call fcn.0049f3c0
imul ecx, eax, 0xc4653600
add ecx, edi
mov edi, dword [esi + 0x38]
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_zero
mov edx, 0x19
push 0x4dfb5c
call fcn.004a0350
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x40], 0
lea eax, [esi + 0x14]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x4e091c
push 0x4dec70
push eax
call fcn.004a05e0
add esp, 0xc
jmp 0x47b05b
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x40], 1
lea eax, [esi + 0x14]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x4e090c
push 0x4dec70
push eax
call fcn.004a05e0
add esp, 0xc
ud2
Function at 0x480820
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
sub esp, 0x34
mov eax, dword [esp + 0x40]
mov esi, ecx
mov ecx, dword [esp + 0x44]
mov edi, edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x103
lea edx, [esp + 4]
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x48086d
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
cmp eax, 0xc0000011
jne 0x48087d
mov dword [esi + 4], 0
jmp 0x48088f
cmp eax, 0x103
je 0x4808a7
test eax, eax
js 0x480898
mov eax, dword [esp + 8]
mov dword [esi + 4], eax
mov byte [esi], 4
add esp, 0x34
pop esi
pop edi
ret
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x480892
mov eax, esp
mov dword [esp + 0x1c], 0x4e01d8
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], 0
push eax
push ecx
push edx
call fcn.00478470
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
call fcn.004785a0
mov ecx, 7
int 0x29
ud2
Function at 0x483010
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x50c1fc]
test eax, eax
je 0x4830c5
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x48303c
cmp dword [eax + 4], 0
mov edi, eax
je 0x48303c
add edi, 8
jmp 0x4830c0
mov eax, dword [0x50c1fc]
test eax, eax
je 0x4830d4
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4830be
mov esi, eax
test eax, eax
jne 0x483094
movzx eax, byte [0x50c430]
xor ecx, ecx
mov edx, 0xc
call fcn.00484920
test eax, eax
je 0x4830ef
mov dword [eax], 0x50c1fc
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x50c1fc]
test eax, eax
je 0x4830e3
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x4830c0
test ecx, ecx
je 0x4830c0
lock dec dword [ecx]
jne 0x4830c0
call fcn.00483100
jmp 0x4830c0
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x50c1fc
call fcn.004a33d0
jmp 0x483020
mov ecx, 0x50c1fc
call fcn.004a33d0
jmp 0x48304a
mov ecx, 0x50c1fc
call fcn.004a33d0
jmp 0x48308c
mov ecx, 4
mov edx, 0xc
call fcn.0049ff70
int3
Function at 0x483500
Capabilities:
Resolve dns

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1a8
mov edi, dword [edx]
mov ebp, dword [edx + 4]
movzx ebx, word [edx + 8]
mov eax, dword [0x50c3b4]
mov esi, ecx
cmp eax, 3
jne 0x48368b
cmp ebp, 0x17f
ja 0x48369c
lea eax, [esp + 0x28]
push ebp
push edi
mov edi, eax
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp + 1]
cmp ebp, 6
mov byte [esp + ebp + 0x28], 0
ja 0x483565
xor edx, edx
nop
cmp byte [esp + edx + 0x28], 0
je 0x4835ff
inc edx
cmp eax, edx
jne 0x483550
jmp 0x483655
lea ecx, [esp + 0x2b]
and ecx, 0xfffffffc
sub ecx, edi
je 0x483598
je 0x483598
xor edx, edx
nop word cs:[eax + eax]
nop
cmp byte [esp + edx + 0x28], 0
je 0x4835ff
inc edx
cmp ecx, edx
jne 0x483580
lea edx, [ebp - 7]
mov dword [esp], ebx
cmp ecx, edx
jbe 0x4835a0
jmp 0x4835de
mov dword [esp], ebx
lea edx, [ebp - 7]
xor ecx, ecx
movdqa xmm0, xmmword [0x4a5400]
movdqa xmm1, xmmword [0x4a5390]
movq xmm2, qword [esp + ecx + 0x28]
movdqa xmm3, xmm2
paddd xmm3, xmm0
pandn xmm2, xmm3
pand xmm2, xmm1
movd edi, xmm2
pshufd xmm2, xmm2, 0x55
movd ebx, xmm2
or ebx, edi
jne 0x4835de
add ecx, 8
cmp ecx, edx
jbe 0x4835b0
mov ebx, dword [esp]
sub eax, ecx
je 0x483655
lea edi, [esp + ecx + 0x28]
xor edx, edx
nop dword [eax + eax]
cmp byte [edi + edx], 0
je 0x4835fd
inc edx
cmp eax, edx
jne 0x4835f0
jmp 0x483655
add edx, ecx
cmp edx, ebp
jne 0x483655
pxor xmm0, xmm0
lea eax, [esp + 4]
mov dword [esp + 4], 0
lea ecx, [esp + 8]
movdqu xmmword [esp + 8], xmm0
movdqu xmmword [esp + 0x18], xmm0
mov dword [esp + 0x10], 1
push eax
push ecx
push 0
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x48366e
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
jmp 0x48367e
mov eax, dword [0x4df8f8]
mov ecx, dword [0x4df8fc]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x483680
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor eax, eax
mov word [esi + 0xc], bx
mov dword [esi], eax
add esp, 0x1a8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004a3850
cmp ebp, 0x17f
jbe 0x48352f
mov ecx, esi
mov edx, edi
push ebx
push ebp
call fcn.004a38a0
add esp, 0x1b0
jmp 0x483686
Function at 0x483fe0
Capabilities:
Create thread

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], 0x49ee70
mov esi, edx
mov edi, ecx
xor ecx, ecx
mov edx, 8
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
movzx eax, byte [0x50c430]
call fcn.00484920
test eax, eax
je 0x4840b9
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], eax
push 0
push 0x10000
push ebx
push 0x484130
push esi
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
je 0x48405a
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x4840a8
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x24], eax
push eax
mov dword [ebp - 0x20], ecx
call dword [ecx]
add esp, 4
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x2c]
cmp dword [eax + 4], 0
je 0x48408f
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x24]
call fcn.0040a630
mov ecx, dword [ebp - 0x28]
mov edx, 4
call fcn.0040a630
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
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 4
mov edx, 8
mov dword [ebp - 0x10], 0
call fcn.0049ff70
ud2

Function at 0x484250
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], 0x49ee90
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 0x4842ce
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]
lea edx, [esi + 8]
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], 0x4e040c
mov dword [esi + 0x34], 1
mov dword [esi + 0x40], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x28], edx
mov dword [esi + 0x38], ecx
lea ecx, [esi + 0x30]
mov edx, 0x4e043c
mov dword [esi + 0x2c], fcn.0047f830
mov dword [esi + 0x3c], 1
call fcn.004a0200
ud2
Function at 0x487310
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 [0x50c20c]
test eax, eax
je 0x4873f2
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x487341
mov esi, eax
mov eax, dword [eax]
or eax, dword [esi + 4]
jne 0x4873e7
mov eax, dword [0x50c20c]
test eax, eax
je 0x487401
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4873c4
mov esi, eax
test eax, eax
jne 0x4873a4
movzx eax, byte [0x50c430]
xor ecx, ecx
mov edx, 0x20
call fcn.00484920
test eax, eax
je 0x48741c
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x50c20c
mov esi, eax
mov eax, dword [0x50c20c]
test eax, eax
je 0x487410
dec eax
push esi
push eax
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 0x4873c8
movaps xmm0, xmmword [esp]
jmp 0x4873d6
xor esi, esi
jmp 0x4873ea
lea ecx, [esp + 0x10]
call fcn.00484250
movups xmm0, xmmword [esp + 0x10]
mov dword [esi + 4], 0
mov dword [esi], 1
movups xmmword [esi + 8], xmm0
add esi, 8
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov ecx, 0x50c20c
call fcn.004a33d0
jmp 0x487328
mov ecx, 0x50c20c
call fcn.004a33d0
jmp 0x48734f
mov ecx, 0x50c20c
call fcn.004a33d0
jmp 0x48739c
mov ecx, 8
mov edx, 0x20
call fcn.0049ff70
int3
Function at 0x488ca9
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea eax, [esp + 8]
push eax
push edx
call dword [sym.imp.shell32.dll_CommandLineToArgvW]
test eax, eax
mov dword [esp], eax
je 0x488d3d
mov ebx, dword [esp + 8]
lea eax, [esp + 0xc]
xor edi, edi
lea ebp, [esp + 0x18]
mov dword [esp + 4], esi
and dword [eax], 0
mov dword [eax + 4], 4
and dword [eax + 8], 0
shl ebx, 2
cmp ebx, edi
je 0x488d14
mov eax, dword [esp]
mov esi, dword [eax + edi]
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
pop ecx
mov ecx, ebp
mov edx, esi
push eax
call fcn.004878d3
pop eax
lea ecx, [esp + 0xc]
mov edx, ebp
call fcn.00402318
add edi, 4
jmp 0x488ce8
push dword [esp]
call dword [sym.imp.kernel32.dll_LocalFree]
test eax, eax
jne 0x488d26
call fcn.0049e9ea
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 4]
movsd xmm0, qword [esp + 0xc]
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
jmp 0x488d4b
and dword [esi], 0
mov dword [esi + 4], 4
and dword [esi + 8], 0
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4894a6
Capabilities:
Check os version

Disassembly:
push esi
sub esp, 0x18
mov esi, dword [esp + 0x20]
mov eax, dword [esi]
mov ecx, dword [eax]
and dword [eax], 0
mov eax, dword [ecx + 8]
and dword [ecx + 8], 0
test eax, eax
je 0x48947e
call eax
mov ecx, dword [esi + 4]
mov ecx, dword [ecx]
mov byte [ecx], al
mov al, 1
add esp, 0x18
pop esi
ret
mov ecx, esp
mov edx, 0x4e4700
mov dword [ecx], 0x4e46a4
mov dword [ecx + 4], 1
and dword [ecx + 0x10], 0
mov dword [ecx + 8], str._rustc_aedd173a2c086e558c2b66d3743b344f977621a7librarycore_srccharmethods.rs8
and dword [ecx + 0xc], 0
call fcn.004a0200
push esi
sub esp, 0x11c
lea esi, [esp + 4]
push 0x118
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, esp
mov dword [esi - 4], 0x11c
push eax
call dword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
js 0x4894ec
mov ecx, dword [esp + 4]
mov al, 1
cmp ecx, 6
ja 0x4894f2
jne 0x4894f0
cmp dword [esp + 8], 3
setae al
jmp 0x4894f2
mov al, 1
jmp 0x4894f2
xor eax, eax
add esp, 0x11c
pop esi
ret
Function at 0x49212d
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
mov edx, eax
xor edx, 3
lock cmpxchg dword [ecx], edx
jne 0x49212f
test al, 1
je 0x492146
test al, 2
jne 0x492158
xor eax, 3
ret
push 0x23
pop edx
mov ecx, str.assertion_failed:_prev.is_running__
push 0x4e37a0
call fcn.004a0350
push 0x25
pop edx
mov ecx, 0x4e37b0
push 0x4e37d8
call fcn.004a0350

Function at 0x492879
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push eax
mov bl, byte [esp + 0x10]
mov esi, ecx
mov ecx, edx
call fcn.00491ae3
mov eax, dword [eax]
movzx ecx, bl
mov edx, esp
mov dword [edx], ecx
push 4
push edx
push 1
push 6
push eax
call dword [sym.imp.ws2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x4928bb
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
and word [esi + 1], 0
xor ecx, ecx
mov byte [esi + 3], 0
mov dword [esi + 4], eax
mov byte [esi], cl
add esp, 4
pop esi
pop ebx
ret
Function at 0x4928c3
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov edi, dword [edx + 8]
mov eax, dword [esp + 0x54]
mov ebx, dword [edx + 0x10]
mov esi, 0x7fffffff
lea ebp, [esp + 0xc]
mov dword [esp], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], edi
mov edi, dword [edx + 0xc]
cmp eax, esi
mov dword [esp + 0x20], ebx
cmovb esi, eax
mov dword [esp + 0x28], esi
mov edx, dword [esp + 0x2c]
mov ecx, ebp
push dword [esp + 0x4c]
call fcn.0049286b
pop eax
mov edx, dword [esp + 0xc]
cmp edx, 2
je 0x492a30
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
test edx, edx
jne 0x492a38
cmp edi, 0xffffffff
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
je 0x492a5a
push 0
push dword [esp + 0x2c]
push dword [esp + 0x58]
push edi
call dword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x49295a
mov dword [esp + 8], eax
mov byte [esp + 4], 4
jmp 0x4929e5
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
xor eax, eax
lea ecx, [esp + 4]
mov byte [esp + 4], al
and word [esp + 5], 0
mov byte [esp + 7], al
mov dword [esp + 8], esi
call fcn.00417174
cmp al, 0xd
jne 0x4929e5
test ebx, ebx
je 0x4929d8
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
lock inc dword [eax]
jle 0x492a64
add edx, 8
mov ecx, ebp
push dword [ebx + 0xc]
push dword [ebx + 8]
push eax
call fcn.00432820
add esp, 0xc
push 4
pop ecx
call fcn.00477a18
cmp byte [esp + 0xc], 4
je 0x4929e5
mov ebx, dword [esp + 0xc]
cmp bl, 4
je 0x4929e5
mov ebp, dword [esp + 0x10]
xor ecx, ecx
mov edx, esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebp
call fcn.00477a18
jmp 0x4929fa
and dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 8]
cmp bl, 4
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebx
je 0x492a42
lea ecx, [esp + 0x18]
call fcn.0048d88c
cmp al, 0xd
jne 0x492a4a
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x30]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.00492676
lea ebp, [esp + 0xc]
push ebp
call fcn.0048d7f9
pop eax
mov ebx, dword [esp + 0x20]
jmp 0x4928f8
mov eax, dword [esp]
mov byte [eax], 5
jmp 0x492a52
mov edx, dword [esp]
mov dword [edx], ecx
mov dword [edx + 4], eax
jmp 0x492a52
mov eax, dword [esp]
mov byte [eax], 4
jmp 0x492a4f
mov eax, dword [esp]
mov dword [eax], ebx
mov dword [eax + 4], ebp
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x4e2018
call fcn.004a0660
ud2
Function at 0x49f979
Capabilities:
Parse pe header

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