joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47876b
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [edx]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp], edx
mov edi, esi
mov dword [esp + 4], esi
rol esi, 0xe
mov eax, ecx
rol ecx, 0xe
rol edi, 0x19
rol eax, 0x19
xor esi, edi
mov edi, dword [edx + 4]
xor ecx, eax
mov eax, edx
mov ebx, edi
mov edx, edi
rol ebx, 0x19
rol edx, 0xe
xor edx, ebx
mov ebx, dword [eax + 8]
mov eax, ebx
mov ebp, ebx
rol eax, 0x19
rol ebp, 0xe
xor ebp, eax
mov eax, dword [esp + 0x20]
shr eax, 3
xor eax, ecx
mov ecx, dword [esp + 4]
add eax, ecx
shr ecx, 3
xor ecx, esi
add ecx, edi
shr edi, 3
xor edi, edx
mov esi, ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp]
add edi, ebx
shr ebx, 3
xor ebx, ebp
mov ebp, dword [esp + 0x28]
add ebx, dword [edx + 0xc]
add esi, dword [ecx]
add edi, dword [ecx + 4]
mov edx, dword [ebp + 4]
add eax, dword [ebp + 0xc]
mov ebp, dword [ebp]
mov dword [esp + 4], esi
add ebx, dword [ecx + 8]
mov ecx, edx
mov esi, edx
shr edx, 0xa
mov dword [esp], eax
mov eax, ebp
rol ecx, 0xf
rol esi, 0xd
rol eax, 0xf
xor esi, ecx
xor edx, esi
add edx, ebx
mov ebx, ebp
shr ebp, 0xa
rol ebx, 0xd
mov esi, edx
xor ebx, eax
mov eax, edx
rol esi, 0xd
rol eax, 0xf
xor ebp, ebx
xor esi, eax
mov eax, edx
add ebp, edi
shr eax, 0xa
mov ebx, ebp
mov edi, ebp
xor eax, esi
mov esi, ebp
rol ebx, 0xf
shr edi, 0xa
rol esi, 0xd
add eax, dword [esp + 4]
xor esi, ebx
xor edi, esi
mov esi, dword [esp + 8]
add edi, dword [esp]
mov dword [esi], edi
mov dword [esi + 4], eax
mov dword [esi + 8], ebp
mov dword [esi + 0xc], edx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4792ca
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebp, dword [esp + 0x34]
mov esi, ecx
cmp dl, 4
jne 0x47933a
mov eax, dword [0x506a24]
cmp eax, 3
jne 0x479431
cmp word [ebp], 0
push 2
pop eax
push 0x17
pop ebx
cmove ebx, eax
push 0x81
push 0
push 0
push 0
push 2
push ebx
call dword [sym.imp.ws2_32.dll_WSASocketW]
mov edi, eax
cmp eax, 0xffffffff
je 0x479355
cmp word [ebp], 0
je 0x4793ae
mov eax, dword [ebp + 0x18]
movups xmm0, xmmword [ebp + 4]
lea ecx, [ebp + 0x14]
add ebp, 0x1c
mov dword [esp], eax
push 0x1c
pop eax
mov bx, 0x17
jmp 0x4793be
mov eax, edx
shr eax, 8
mov word [esi + 1], ax
mov eax, edx
shr eax, 0x18
mov byte [esi + 3], al
mov byte [esi], dl
mov dword [esi + 4], ebp
jmp 0x479429
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x47936d
cmp eax, 0x2726
jne 0x47941a
push 1
push 0
push 0
push 0
push 2
push ebx
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x479414
mov edi, eax
push 0
push 1
push eax
call dword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x479313
call sub.kernel32.dll_GetLastError
mov ebx, eax
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
mov eax, ebx
jmp 0x47941a
lea ecx, [ebp + 2]
add ebp, 6
push 0x10
pop eax
mov bx, 2
xorps xmm0, xmm0
movzx ebp, word [ebp]
lea edx, [esp + 4]
mov ecx, dword [ecx]
mov word [edx], bx
mov ebx, dword [esp]
rol bp, 8
mov word [edx + 2], bp
mov dword [edx + 4], ecx
movups xmmword [edx + 8], xmm0
mov dword [edx + 0x18], ebx
push eax
push edx
push edi
call dword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4793f6
mov dword [esi + 4], edi
mov byte [esi], 4
jmp 0x479429
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esi], cl
and word [esi + 1], 0
mov byte [esi + 3], cl
mov dword [esi + 4], eax
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
jmp 0x479429
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
and word [esi + 1], 0
xor ecx, ecx
mov byte [esi + 3], cl
mov byte [esi], cl
mov dword [esi + 4], eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004a7bb0
jmp 0x4792ea

Function at 0x479840
Capabilities:
Set socket configuration

Disassembly:
push esi
mov esi, ecx
lea eax, [esp + 0xc]
push 4
push eax
push dword [esp + 0x10]
push 0xffff
push edx
call dword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x479864
mov byte [esi], 4
jmp 0x47986f
call sub.kernel32.dll_GetLastError
and dword [esi], 0
mov dword [esi + 4], eax
pop esi
ret
Function at 0x4798d0
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], 0x4956b0
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x506a2c]
test al, al
je 0x479aa1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x47991c
cmp eax, 3
jne 0x479a9a
mov ebx, dword [0x506a30]
test ebx, ebx
je 0x479a9a
mov dword [ebp - 0x20], 0
jmp 0x479947
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x479978
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x479aeb
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x479940
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 0x479940
test byte [ebp - 0x20], 1
je 0x479a9a
mov ebx, dword [0x506a30]
test ebx, ebx
je 0x479a9a
mov dword [ebp - 0x20], 0
jmp 0x4799a7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4799d8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x479aeb
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x4799a0
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 0x4799a0
test byte [ebp - 0x20], 1
je 0x479a9a
mov ebx, dword [0x506a30]
test ebx, ebx
je 0x479a9a
mov dword [ebp - 0x20], 0
jmp 0x479a07
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x479a38
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x479aeb
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x479a00
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 0x479a00
test byte [ebp - 0x20], 1
je 0x479a9a
mov ebx, dword [0x506a30]
test ebx, ebx
je 0x479a9a
mov dword [ebp - 0x20], 0
jmp 0x479a67
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x479a94
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x479aeb
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x479a60
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 0x479a60
test byte [ebp - 0x20], 1
jne 0x479ab4
movzx eax, byte [0x502f00]
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 [0x506a30]
jmp 0x479abf
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x479a9a
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x479aeb
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x479abc
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x479abc
mov dword [ebp - 0x10], 0
mov ecx, str.called__Option::unwrap____on_a__None__value
mov edx, 0x2b
push 0x4d2bb4
call fcn.004a5340
add esp, 4
ud2
Function at 0x47a840
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x506068]
test eax, eax
je 0x47a8f8
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x47a86c
cmp dword [eax + 4], 0
mov edi, eax
je 0x47a86c
add edi, 8
jmp 0x47a8f3
mov eax, dword [0x506068]
test eax, eax
je 0x47a907
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x47a8f1
mov esi, eax
test eax, eax
jne 0x47a8c7
movzx eax, byte [0x506aa0]
mov ecx, 0xc
mov edx, 4
call fcn.0040ed70
test eax, eax
je 0x47a922
mov dword [eax], 0x506068
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x506068]
test eax, eax
je 0x47a916
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 0x47a8f3
test ecx, ecx
je 0x47a8f3
lock dec dword [ecx]
jne 0x47a8f3
call fcn.0047a3c0
jmp 0x47a8f3
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x506068
call fcn.004a75e0
jmp 0x47a850
mov ecx, 0x506068
call fcn.004a75e0
jmp 0x47a87a
mov ecx, 0x506068
call fcn.004a75e0
jmp 0x47a8bf
mov ecx, 4
mov edx, 0xc
call fcn.004a4fb0
ud2

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

Disassembly:
push esi
mov eax, dword [0x506078]
test eax, eax
je 0x47aee4
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x47ae7f
cmp byte [eax + 4], 0
mov esi, eax
jne 0x47aed9
mov eax, dword [0x506078]
test eax, eax
je 0x47aef3
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x47aede
mov esi, eax
test eax, eax
jne 0x47aed3
movzx eax, byte [0x506aa0]
mov ecx, 8
mov edx, 4
call fcn.0040ed70
test eax, eax
je 0x47af0b
mov dword [eax], 0x506078
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x506078]
test eax, eax
je 0x47aeff
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov word [esi + 4], 1
add esi, 5
jmp 0x47aee0
xor esi, esi
mov eax, esi
pop esi
ret
mov ecx, 0x506078
call fcn.004a75e0
jmp 0x47ae6b
mov ecx, 0x506078
call fcn.004a75e0
jmp 0x47ae89
mov ecx, 0x506078
call fcn.004a75e0
jmp 0x47aecb
mov ecx, 4
mov edx, 8
call fcn.004a4fb0
ud2
Function at 0x47bbb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x506058]
test eax, eax
je 0x47bc48
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x47bbd6
cmp dword [eax + 4], 0
je 0x47bbd6
add eax, 8
pop esi
ret
mov eax, dword [0x506058]
test eax, eax
je 0x47bc57
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x47bc44
mov esi, eax
test eax, eax
jne 0x47bc2d
movzx eax, byte [0x506aa0]
mov ecx, 0x10
mov edx, 4
call fcn.0040ed70
test eax, eax
je 0x47bc72
mov dword [eax], 0x506058
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x506058]
test eax, eax
je 0x47bc66
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, 0x506058
call fcn.004a75e0
jmp 0x47bbbf
mov ecx, 0x506058
call fcn.004a75e0
jmp 0x47bbe0
mov ecx, 0x506058
call fcn.004a75e0
jmp 0x47bc25
mov ecx, 4
mov edx, 0x10
call fcn.004a4fb0
ud2

Function at 0x47c9b0
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], 0x495840
lea eax, [esi + 0x30]
mov ecx, dword fs:[0]
mov dword [esi + 0x30], 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 0x47cac8
mov eax, dword [esi + 8]
mov ebx, dword [esi + 0xc]
mov dword [esi], eax
call fcn.0047cd40
mov ecx, eax
or ecx, edx
je 0x47caaf
push edx
push eax
push ebx
push dword [esi]
mov edi, edx
mov dword [esi + 0x20], edx
mov dword [esi + 0x1c], eax
call fcn.00495f80
mov ecx, edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 4], edx
mov dword [esi + 0x24], eax
imul ecx, eax
mul edi
add edx, ecx
mov ecx, edi
imul ecx, dword [esi + 4]
add ecx, edx
mov edx, dword [esi]
sub edx, eax
sbb ebx, ecx
mov eax, edx
imul ecx, ebx, 0x3b9aca00
mov ebx, 0x3b9aca00
mul ebx
add edx, ecx
push dword [esi + 0x20]
push edi
push edx
push eax
call fcn.00495f80
mov ebx, eax
mov eax, dword [esi + 0x24]
mov ecx, edx
mov edx, 0x3b9aca00
mul edx
mov edi, eax
imul eax, dword [esi + 4], 0x3b9aca00
add eax, edx
add edi, ebx
adc eax, ecx
push 0
push 0x3b9aca00
push eax
push edi
call fcn.00495f80
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, 0x4d0da0
mov edx, 0x19
push 0x4d1fe4
call fcn.004a5340
add esp, 4
ud2
call sub.kernel32.dll_GetLastError
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x38], 0
lea eax, [esi + 0x14]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x4d2cb0
push 0x4d1034
push eax
call fcn.004a55f0
add esp, 0xc
ud2
Function at 0x482a40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x506088]
test eax, eax
je 0x482af8
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x482a6c
cmp dword [eax + 4], 0
mov edi, eax
je 0x482a6c
add edi, 8
jmp 0x482af3
mov eax, dword [0x506088]
test eax, eax
je 0x482b07
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x482af1
mov esi, eax
test eax, eax
jne 0x482ac7
movzx eax, byte [0x506aa0]
mov ecx, 0xc
mov edx, 4
call fcn.0040ed70
test eax, eax
je 0x482b22
mov dword [eax], 0x506088
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x506088]
test eax, eax
je 0x482b16
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 0x482af3
test ecx, ecx
je 0x482af3
lock dec dword [ecx]
jne 0x482af3
call fcn.00482b40
jmp 0x482af3
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x506088
call fcn.004a75e0
jmp 0x482a50
mov ecx, 0x506088
call fcn.004a75e0
jmp 0x482a7a
mov ecx, 0x506088
call fcn.004a75e0
jmp 0x482abf
mov ecx, 4
mov edx, 0xc
call fcn.004a4fb0
ud2

Function at 0x4836e0
Capabilities:
Resolve dns

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1b4
mov edi, dword [edx]
mov ebp, dword [edx + 4]
movzx ebx, word [edx + 8]
mov eax, dword [0x506a24]
mov esi, ecx
cmp eax, 3
jne 0x4837c5
cmp ebp, 0x17f
ja 0x4837d6
mov dword [esp + 4], ebx
lea ebx, [esp + 0x34]
push ebp
push edi
push ebx
call fcn.00496910
add esp, 0xc
mov byte [esp + ebp + 0x34], 0
inc ebp
lea ecx, [esp + 8]
mov edx, ebx
push ebp
call fcn.00413bc0
add esp, 4
cmp dword [esp + 8], 0
je 0x483757
mov eax, dword [0x4d1da0]
mov ecx, dword [0x4d1da4]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x4837ba
mov eax, dword [esp + 0xc]
xorps xmm0, xmm0
mov ecx, esp
mov dword [esp], 0
lea edx, [esp + 0x14]
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x1c], 1
push ecx
push edx
push 0
push eax
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x4837a5
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ecx, 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], ecx
jmp 0x4837ba
mov eax, dword [esp]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, dword [esp + 4]
mov word [esi + 0xc], ax
xor eax, eax
mov dword [esi], eax
add esp, 0x1b4
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004a7bb0
cmp ebp, 0x17f
jbe 0x48370f
mov ecx, esi
mov edx, edi
push ebx
push ebp
call fcn.004a7c00
add esp, 0x1bc
jmp 0x4837c0
Function at 0x4841a0
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], 0x4959c0
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 0x48421e
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 sub.kernel32.dll_GetLastError
lea edx, [esi + 8]
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], 0x4d2804
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, 0x4d2830
mov dword [esi + 0x2c], fcn.00481020
mov dword [esi + 0x3c], 1
call fcn.004a51c0
ud2
Function at 0x486e20
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 [0x506098]
test eax, eax
je 0x486f05
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x486e51
mov esi, eax
mov eax, dword [eax]
or eax, dword [esi + 4]
jne 0x486efa
mov eax, dword [0x506098]
test eax, eax
je 0x486f14
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x486ed7
mov esi, eax
test eax, eax
jne 0x486eb7
movzx eax, byte [0x506aa0]
mov ecx, 0x20
mov edx, 8
call fcn.0040ed70
test eax, eax
je 0x486f2f
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x506098
mov esi, eax
mov eax, dword [0x506098]
test eax, eax
je 0x486f23
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 0x486edb
movaps xmm0, xmmword [esp]
jmp 0x486ee9
xor esi, esi
jmp 0x486efd
lea ecx, [esp + 0x10]
call fcn.004841a0
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, 0x506098
call fcn.004a75e0
jmp 0x486e38
mov ecx, 0x506098
call fcn.004a75e0
jmp 0x486e5f
mov ecx, 0x506098
call fcn.004a75e0
jmp 0x486eaf
mov ecx, 8
mov edx, 0x20
call fcn.004a4fb0
ud2
Function at 0x48c6b3
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
mov edx, eax
xor edx, 3
lock cmpxchg dword [ecx], edx
jne 0x48c6b5
test al, 1
je 0x48c6cc
test al, 2
jne 0x48c6db
xor eax, 3
ret
push 0x23
pop edx
mov ecx, str.assertion_failed:_prev.is_running__
push 0x4d57b4
jmp 0x48c6e8
push 0x25
pop edx
mov ecx, 0x4d57c4
push 0x4d57ec
call fcn.004a5340
pop eax
ud2

Function at 0x48cf2a
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push eax
mov bl, byte [esp + 0x10]
mov esi, ecx
mov ecx, edx
call fcn.0048bf20
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 0x48cf6c
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 0x48d1c9
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov dword [esp], ecx
xor ecx, ecx
mov eax, dword [esp + 0x50]
cmp dword [edx + 0xc], 0xffffffff
lea ebp, [edx + 0xc]
mov edi, 0x7fffffff
mov esi, edx
mov dword [esp + 0x24], edx
cmove ebp, ecx
cmp eax, edi
cmovb edi, eax
mov dword [esp + 0x28], edi
lea edi, [esp + 0xc]
mov edx, dword [esi + 8]
mov ecx, edi
push dword [esp + 0x48]
call fcn.0048cf1c
pop eax
mov edx, dword [esp + 0xc]
cmp edx, 2
je 0x48d33a
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
test edx, edx
jne 0x48d342
mov dword [esp + 0x2c], ecx
mov ecx, ebp
mov edx, 0x4d3eb0
mov dword [esp + 0x30], eax
call fcn.0042cb03
push 0
push dword [esp + 0x2c]
push dword [esp + 0x54]
push dword [ebp]
call dword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x48d261
mov dword [esp + 8], eax
mov byte [esp + 4], 4
jmp 0x48d2f5
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.0041c364
cmp al, 0xd
jne 0x48d2f5
mov eax, dword [ebp + 4]
test eax, eax
je 0x48d2e8
mov dword [esp + 0x20], esi
mov esi, dword [eax + 4]
mov edx, dword [eax]
lock inc dword [esi]
jle 0x48d364
add edx, 8
mov ecx, edi
push dword [eax + 0xc]
push dword [eax + 8]
push esi
call fcn.00435b9d
add esp, 0xc
push 4
pop ecx
call fcn.00479448
cmp byte [esp + 0xc], 4
je 0x48d2f5
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
cmp bl, 4
je 0x48d2f5
mov esi, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
call fcn.00479448
jmp 0x48d30a
and dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov ebx, dword [esp + 4]
mov esi, dword [esp + 8]
cmp bl, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
je 0x48d34c
lea ecx, [esp + 0x18]
call fcn.00487cf4
cmp al, 0xd
jne 0x48d354
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x2c]
mov dword [esp + 0xc], ebx
mov ecx, esi
call fcn.0048cd27
push edi
call fcn.00487cb8
pop eax
jmp 0x48d1fb
mov eax, dword [esp]
mov byte [eax], 5
jmp 0x48d35c
mov edx, dword [esp]
mov dword [edx], ecx
mov dword [edx + 4], eax
jmp 0x48d35c
mov eax, dword [esp]
mov byte [eax], 4
jmp 0x48d359
mov eax, dword [esp]
mov dword [eax], ebx
mov dword [eax + 4], esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
ud2
Function at 0x496492
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
je 0x4964d1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4964d1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4964d1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4964d1
cmp dword [ecx + 0x74], 0xe
jbe 0x4964d1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x49e444
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 0x49e4e1
push ebx
push esi
call fcn.0049e40d
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.0049e356
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x49e48e
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x49e4e0
push edi
push eax
call fcn.0049f044
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x49e4ae
call fcn.0049cf7f
pop ecx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x49e4df
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0049e356
add esp, 0x20
test eax, eax
jne 0x49e4cd
push edi
call fcn.0049cf7f
jmp 0x49e4d5
push ebx
call fcn.0049cf7f
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 0x49f7c7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4fc880
push 0x4fc878
push str.FlsAlloc
push 0x1e
call fcn.0049f688
mov esi, eax
add esp, 0x10
test esi, esi
je 0x49f7fb
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a92c0]
call esi
jmp 0x49f801
call dword [sym.imp.kernel32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x49f845
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4fc890
push 0x4fc888
push str.FlsGetValue
push 0x20
call fcn.0049f688
mov esi, eax
add esp, 0x10
test esi, esi
je 0x49f87c
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a92c0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.kernel32.dll_TlsGetValue]
Function at 0x4a4d10
Capabilities:
Parse pe header

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