joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c98a0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov esi, ecx
mov eax, dword [0x7a9040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ecx], 0x732b14
cmp byte [ecx + 0x20], 1
jne 0x4c991c
xor eax, eax
dec eax
lea edi, [ebp - 0x1c]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [ebp - 0x2c], esi
lea ecx, [esi + 8]
push edi
call fcn.005e5d30
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ebx, [ebp - 0x28]
jmp 0x4c9907
mov eax, dword [ebp - 0x1c]
push eax
call esi
test eax, eax
je 0x4c9911
mov ecx, edi
push ebx
call fcn.005e5d30
mov ecx, edi
push ebx
call fcn.005e5580
mov ecx, ebx
call fcn.005e5500
cmp byte [ebp - 0x11], 0
mov eax, edi
jns 0x4c98e9
jmp 0x4c98e6
lea ecx, [ebp - 0x1c]
call fcn.005e5500
mov esi, dword [ebp - 0x2c]
lea ecx, [esi + 0x14]
call fcn.005e5500
lea ecx, [esi + 8]
call fcn.005e5500
mov eax, dword [esi + 4]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x7b4788]
bt edx, ecx
jae 0x4c994e
push eax
call fcn.00545f70
add esp, 4
mov dword [esi + 4], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00650d60
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4cbc50
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [0x7a9040]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov esi, dword [eax]
test esi, esi
je 0x4cbd8e
push esi
call fcn.0066e7c4
add esp, 4
cmp eax, 0x7ffffff8
jae 0x4cbd95
mov ebx, eax
cmp eax, 4
jbe 0x4cbcf0
mov edi, ebx
or edi, 3
inc edi
js 0x4cbd90
lea eax, [edi + edi]
push eax
call fcn.006507be
add esp, 4
mov dword [ebp - 0x1c], eax
or edi, 0x80000000
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
lea edi, [eax + ebx*2]
cmp eax, esi
seta cl
cmp edi, esi
setbe dl
or dl, cl
je 0x4cbd8e
test ebx, ebx
je 0x4cbcd9
add ebx, ebx
push ebx
push esi
push eax
call fcn.00654250
add esp, 0xc
mov word [edi], 0
movsx ecx, byte [ebp - 0x11]
mov eax, dword [ebp - 0x1c]
test ecx, ecx
js 0x4cbcf8
lea edx, [ebp - 0x1c]
mov edi, ecx
jmp 0x4cbcfd
lea eax, [ebp - 0x1c]
mov byte [eax + 0xb], bl
jmp 0x4cbcb3
mov edi, dword [ebp - 0x18]
mov edx, eax
mov dword [ebp - 0x20], eax
add edi, edi
mov esi, edi
cmp edi, 4
jb switch.0x004cbd2f
imul eax, dword [edx], 0x5bd1e995
mov ebx, eax
shr ebx, 0x18
xor ebx, eax
imul eax, ebx, 0x5bd1e995
imul esi, esi, 0x5bd1e995
xor esi, eax
add edx, 4
add edi, 0xfffffffc
cmp edi, 3
ja case.default.0x4cbd2f
jmp dword [edi*4 + 0x73fc0c]
movzx eax, byte [edx + 1]
shl eax, 8
xor esi, eax
movzx eax, byte [edx]
xor eax, esi
imul esi, eax, 0x5bd1e995
test cl, cl
jns 0x4cbd59
push dword [ebp - 0x20]
call fcn.006507ee
add esp, 4
mov eax, esi
shr eax, 0xd
xor eax, esi
imul eax, eax, 0x5bd1e995
mov esi, eax
shr esi, 0xf
xor esi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00650d60
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 4
movzx eax, byte [edx + 2]
shl eax, 0x10
xor esi, eax
jmp case.0x4cbd2f.2
ud2
call fcn.006837b0
lea ecx, [ebp - 0x1c]
call fcn.006837c0
int3
Function at 0x4ce490
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [0x7a9040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, dword [0x7b1544]
test ecx, ecx
jne 0x4ce4b9
call fcn.004bfe00
mov ecx, eax
mov dword [0x7b1544], eax
lea edi, [ebp + 8]
call fcn.004c1ee0
cmp eax, 0x16
jl 0x4ce593
mov ecx, edi
mov edi, esp
sub esp, 0xc
mov ebx, esp
mov eax, dword [ecx + 8]
mov dword [ebx + 8], eax
movsd xmm0, qword [ecx]
movsd qword [ebx], xmm0
xorps xmm0, xmm0
movsd qword [ecx], xmm0
mov dword [ecx + 8], 0
xor eax, eax
dec eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], str.ms_settings:defaultapps_registeredAppUser
mov dword [ebp - 0x1c], 0x2a
movsx ecx, byte [ebx + 0xb]
mov eax, ebx
test ecx, ecx
jns 0x4ce518
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
js 0x4ce604
sete cl
test eax, eax
setne al
or al, cl
je 0x4ce604
lea eax, [ebp - 0x20]
lea esi, [ebp - 0x2c]
push 2
push eax
push esi
call fcn.00528f80
add esp, 0xc
cmp byte [esi + 0xb], 0
jns 0x4ce551
mov esi, dword [ebp - 0x2c]
xor eax, eax
push 1
push eax
push eax
push esi
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, eax
cmp byte [ebp - 0x21], 0
jns 0x4ce577
push dword [ebp - 0x2c]
call fcn.006507ee
add esp, 4
cmp byte [ebx + 0xb], 0
jns 0x4ce587
push dword [ebx]
call fcn.006507ee
add esp, 4
cmp esi, 0x20
mov esp, edi
mov bl, 1
lea edi, [ebp + 8]
jg 0x4ce5e0
lea eax, [ebp - 0x18]
mov byte [eax + 3], 4
mov ecx, 0x7388a4
lea edx, [ebp - 0x20]
cmp edx, ecx
seta dl
cmp eax, ecx
setbe al
or al, dl
je 0x4ce604
lea esi, [ebp - 0x20]
mov dword [esi + 4], 0x700074
mov dword [esi], 0x740068
mov word [esi + 8], 0
mov ecx, esi
call fcn.004ced50
mov ebx, eax
cmp byte [esi + 0xb], 0
jns 0x4ce5e0
push dword [ebp - 0x20]
call fcn.006507ee
add esp, 4
cmp byte [edi + 0xb], 0
jns 0x4ce5f0
push dword [edi]
call fcn.006507ee
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00650d60
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
ud2
Function at 0x4dd630
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x10
mov eax, dword [0x7a9040]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x4020
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 4
mov eax, dword [0x7b1668]
cmp eax, 2
je 0x4dd6dc
test eax, eax
jne 0x4dd69c
sub esp, 0x14
movaps xmm0, xmmword [0x7417c0]
movups xmmword [esp], xmm0
mov dword [esp + 0x10], 3
call fcn.00515e30
add esp, 0x14
test al, al
je 0x4dd692
mov dword [0x7b1668], 2
jmp 0x4dd6dc
mov dword [0x7b1668], 1
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
push ecx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4dd6c5
cmp dword [ebp - 0x10], 0x4020
jg 0x4dd6dc
lea eax, [ebp - 0xc]
push 4
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00650d60
add esp, 0x10
pop esi
pop ebp
ret

Function at 0x4debf0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1a0
mov eax, dword [0x7a9040]
xor eax, ebp
mov dword [esp + 0x198], eax
mov eax, dword [edx + 0x18]
mov eax, dword [eax + 0x1e4]
test byte [eax + 0x45], 8
jne 0x4decaf
mov esi, edx
mov edi, dword [ecx + 8]
lea eax, [esp + 0x98]
push 0x100
push 0xff
push eax
call fcn.006547d0
add esp, 0xc
lea eax, [esp + 0xc]
mov dword [eax], 0x80
xorps xmm0, xmm0
lea ebx, [esp + 0x10]
movaps xmmword [ebx], xmm0
movaps xmmword [ebx + 0x10], xmm0
movaps xmmword [ebx + 0x20], xmm0
movaps xmmword [ebx + 0x30], xmm0
movaps xmmword [ebx + 0x40], xmm0
movaps xmmword [ebx + 0x50], xmm0
movaps xmmword [ebx + 0x60], xmm0
movaps xmmword [ebx + 0x70], xmm0
push eax
push ebx
push dword [edi + 0x98]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4decc5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push 0x100
lea eax, [esp + 0x9c]
push eax
push edi
call fcn.00509320
add esp, 0xc
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push esi
call fcn.004e7570
add esp, 0x10
mov ecx, dword [esp + 0x198]
xor ecx, ebp
call fcn.00650d60
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [edi + 0x120]
add edi, 0xf0
push eax
push edi
push dword [esp + 0x14]
push ebx
call fcn.004e1400
add esp, 0x10
test al, al
jne 0x4decaf
call fcn.006628ae
push 0x100
lea ecx, [esp + 0x9c]
push ecx
push dword [eax]
call fcn.00509320
add esp, 0xc
mov edi, eax
call fcn.006628ae
push edi
push dword [eax]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x4deca6
Function at 0x4df800
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x104
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov eax, dword [0x7a9040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
mov eax, dword [eax + 8]
xor ecx, ecx
mov dword [edx], ecx
mov edx, dword [ebp + 0xc]
push ecx
push edi
push edx
push dword [eax + 0x98]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp eax, 0xffffffff
je 0x4df88c
mov eax, dword [ebx + 4]
test eax, eax
je 0x4df875
cmp byte [eax + 0x683], 1
jne 0x4df875
mov ecx, dword [ebx]
test ecx, ecx
je 0x4df875
mov edx, dword [ecx]
cmp dword [edx + 8], 0
jle 0x4df875
mov edx, dword [ebp + 0x14]
push dword [edx]
push esi
push edi
push str.nw_in_read_len_zu______d__err_d
push ecx
push eax
call fcn.004e76d0
add esp, 0x18
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00650d60
mov eax, esi
add esp, 0x104
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4df8a4
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x51
jmp 0x4df841
mov edi, eax
mov eax, 0x100
lea ecx, [ebp - 0x110]
push eax
push 0xff
push ecx
call fcn.006547d0
add esp, 0xc
mov eax, 0x100
push eax
lea eax, [ebp - 0x110]
push eax
push edi
call fcn.00509320
add esp, 0xc
push eax
push str.Recv_failure:__s
push dword [ebx + 4]
call fcn.004e7570
add esp, 0xc
mov eax, dword [ebx + 4]
mov dword [eax + 0x8d8], edi
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x38
mov edi, dword [ebp + 0x10]
jmp 0x4df841

Function at 0x4e51b0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
xor edi, edi
test ecx, ecx
je 0x4e5231
mov esi, ecx
push ecx
call fcn.004ec1e0
add esp, 4
test al, al
jne 0x4e5231
push esi
call fcn.0066e590
add esp, 4
mov edi, eax
push eax
push 0x2e
push esi
call fcn.004e6c60
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x4e5201
sub eax, esi
push eax
push 0x2e
push esi
call fcn.004e6c60
add esp, 0xc
test eax, eax
je 0x4e5201
inc eax
add edi, esi
sub edi, eax
mov ebx, eax
test ebx, ebx
cmovne esi, ebx
test edi, edi
jle 0x4e5238
add edi, esi
mov eax, 0x1505
mov ebx, eax
shl ebx, 5
add ebx, eax
movsx eax, byte [esi]
inc esi
push eax
call fcn.00508c10
add esp, 4
movzx eax, al
xor eax, ebx
cmp esi, edi
jb 0x4e5211
movzx edi, al
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, 5
jmp 0x4e5231
Function at 0x4e6600
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov esi, dword [0x7a9040]
xor esi, ebp
mov dword [ebp - 0x10], esi
lea esi, [ebp - 0x14]
mov dword [esi], 0xffffffff
mov dword [edi], 0
push esi
push edx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test eax, eax
je 0x4e6653
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00650d60
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4e667f
xor edi, edi
mov dword [ebp - 0x18], 0
jmp 0x4e674c
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4e6676
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
xor esi, esi
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x4e6691
push 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov esi, 0x2af9
xor ecx, ecx
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
jmp 0x4e663f
mov eax, 0x10
cmp dword [ebx + 0x18], 0
je 0x4e6741
cmp dword [ebx + 0x10], eax
jb 0x4e6741
mov dword [ebp - 0x24], edi
mov ecx, dword [fcn.00546590]
lea edi, [esi + eax]
add edi, 0x20
mov dword [ebp - 0x1c], eax
call dword [0x7a29f4]
push edi
call ecx
add esp, 4
test eax, eax
je 0x4e677f
mov edi, eax
mov eax, dword [ebx]
mov dword [edi], eax
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov eax, dword [ebx + 8]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [edi + 0xc], eax
mov ecx, dword [ebp - 0x1c]
mov dword [edi + 0x10], ecx
xor eax, eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x20]
mov dword [edi + 0x18], eax
push ecx
push dword [ebx + 0x18]
mov dword [ebp - 0x20], eax
push eax
call fcn.00654250
add esp, 0xc
test esi, esi
je 0x4e672c
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x1c]
mov dword [edi + 0x14], eax
push esi
push dword [ebx + 0x14]
push eax
call fcn.00654250
add esp, 0xc
mov eax, dword [ebp - 0x18]
test eax, eax
cmove eax, edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4e6741
mov dword [eax + 0x1c], edi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
je 0x4e6668
mov eax, dword [ebx + 0x14]
mov esi, 0
test eax, eax
je 0x4e6764
push eax
call fcn.0066e590
add esp, 4
mov esi, eax
inc esi
mov eax, dword [ebx + 4]
cmp eax, 2
je 0x4e6698
cmp eax, 0x17
jne 0x4e6741
mov eax, 0x1c
jmp 0x4e669d
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4e678d
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov esi, 8
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4e668f
mov edi, dword [ebx + 0x1c]
mov ecx, dword [fcn.005464a0]
call dword [0x7a29f4]
push ebx
call ecx
add esp, 4
mov ebx, edi
test edi, edi
jne 0x4e679d
jmp 0x4e668f
Function at 0x4e69e0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov ebx, dword [ebp + 8]
mov eax, dword [0x7a9040]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
mov dword [eax], 0xffffffff
push eax
push ebx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x4e6ab9
mov ecx, dword [fcn.00546590]
call dword [0x7a29f4]
push 0x28
call ecx
add esp, 4
test eax, eax
je 0x4e6ab5
mov edi, eax
mov ecx, dword [fcn.00666700]
call dword [0x7a29f4]
push ebx
call ecx
add esp, 4
test eax, eax
je 0x4e6ab1
mov ebx, eax
lea eax, [edi + 0x10]
mov ecx, dword [ebp - 0x24]
mov dword [edi + 0x10], ecx
mov dword [edi], ebx
xor ecx, ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], 0x40002
mov edx, edi
add edx, 0x20
mov dword [edi + 0xc], edx
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], ecx
push dword [ebp + 0xc]
push edi
call fcn.004e67c0
add esp, 8
mov esi, eax
mov ecx, dword [fcn.005464a0]
call dword [0x7a29f4]
push ebx
call ecx
add esp, 4
mov ecx, dword [fcn.005464a0]
call dword [0x7a29f4]
push edi
call ecx
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00650d60
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
jmp 0x4e6a8b
xor esi, esi
jmp 0x4e6a9d
pcmpeqd xmm0, xmm0
lea eax, [ebp - 0x20]
movdqu xmmword [eax], xmm0
push eax
push ebx
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
xor esi, esi
test eax, eax
jle 0x4e6a9d
mov ecx, dword [fcn.00546590]
call dword [0x7a29f4]
push 0x28
call ecx
add esp, 4
test eax, eax
je 0x4e6a9d
mov edi, eax
mov ecx, dword [fcn.00666700]
call dword [0x7a29f4]
push ebx
call ecx
add esp, 4
test eax, eax
je 0x4e6ab1
mov ebx, eax
lea eax, [edi + 0x10]
movdqu xmm0, xmmword [ebp - 0x20]
movdqu xmmword [edi + 0x10], xmm0
mov dword [edi], ebx
xor ecx, ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], 0x100017
jmp 0x4e6a5d

Function at 0x4e7450
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
push esi
call fcn.0065f847
add esp, 0x18
cmp eax, 0xffffffff
cmove eax, esi
pop esi
pop ebp
ret

Function at 0x4ea6b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
xor edi, edi
inc edi
xor ebx, ebx
mov ecx, dword [fcn.005465e0]
call dword [0x7a29f4]
push edi
push ebx
call ecx
add esp, 8
test eax, eax
je 0x4ea6f8
mov esi, eax
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4ea707
cmp eax, edi
je 0x4ea707
cmp eax, 0x8001
jae 0x4ea707
mov ebx, esi
cmp eax, edi
mov edi, eax
jae 0x4ea6bb
jmp 0x4ea71b
mov ecx, dword [fcn.005464a0]
call dword [0x7a29f4]
push ebx
jmp 0x4ea714
mov ecx, dword [fcn.005464a0]
call dword [0x7a29f4]
push esi
call ecx
add esp, 4
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4eb780
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov ebx, dword [ebp + 8]
mov eax, dword [0x7a9040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x14]
lea esi, [ecx + eax*2]
add esi, 0xc
mov ecx, dword [fcn.00546590]
call dword [0x7a29f4]
push esi
call ecx
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4eb91e
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], ebx
add eax, 0xc
mov dword [ecx + 4], eax
mov edx, dword [ebx + 0xc]
add edx, eax
mov dword [ecx + 8], edx
mov ecx, dword [ebp + 0xc]
cmp dword [ebx + 0x10], edi
mov esi, ebx
jb 0x4eb7e7
mov dword [ebp - 0x20], ecx
mov ebx, dword [ebp - 0x1c]
jmp 0x4eb83c
mov ecx, dword [esi]
mov ebx, eax
call dword [0x7a29f4]
push ebx
call ecx
add esp, 4
mov ecx, dword [esi + 4]
mov ebx, dword [ebp - 0x1c]
mov esi, edi
mov edi, dword [ebx + 4]
call dword [0x7a29f4]
push esi
push dword [ebp + 0xc]
push edi
mov esi, dword [ebp + 8]
call ecx
add esp, 0xc
mov eax, dword [ebx + 4]
mov dword [ebp - 0x24], eax
mov edi, dword [ebx + 8]
add edi, dword [esi + 0xc]
mov ecx, dword [esi + 8]
call dword [0x7a29f4]
push dword [ebp - 0x24]
mov dword [ebp - 0x20], edi
push edi
call ecx
add esp, 8
mov edi, dword [esi + 0x14]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x11], 0xff
mov ecx, dword [esi]
call dword [0x7a29f4]
push dword [ebp - 0x18]
call ecx
add esp, 4
mov ecx, dword [esi]
mov ebx, dword [ebx + 8]
call dword [0x7a29f4]
push ebx
call ecx
add esp, 4
test edi, edi
mov eax, dword [ebp - 0x20]
je 0x4eb8d2
xor ebx, ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov al, byte [eax + ebx]
xor al, 0x36
mov byte [ebp - 0x11], al
mov ecx, dword [esi + 4]
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi + 4]
mov dword [ebp - 0x18], eax
call dword [0x7a29f4]
xor eax, eax
inc eax
push eax
lea eax, [ebp - 0x11]
push eax
push dword [ebp - 0x18]
call ecx
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov al, byte [eax + ebx]
xor al, 0x5c
mov byte [ebp - 0x11], al
mov ecx, dword [esi + 4]
mov eax, dword [edi + 8]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x24]
call dword [0x7a29f4]
xor eax, eax
inc eax
push eax
lea eax, [ebp - 0x11]
push eax
push dword [ebp - 0x18]
call ecx
add esp, 0xc
inc ebx
cmp edi, ebx
jne 0x4eb873
cmp edi, dword [esi + 0x10]
jae 0x4eb91e
mov ebx, esi
mov dword [ebp - 0x24], edi
mov ecx, dword [ebx + 4]
mov edi, dword [ebp - 0x1c]
mov esi, dword [edi + 4]
call dword [0x7a29f4]
xor eax, eax
inc eax
push eax
push 0x742b18
push esi
call ecx
add esp, 0xc
mov ecx, dword [ebx + 4]
mov esi, dword [edi + 8]
mov edi, dword [ebp - 0x24]
call dword [0x7a29f4]
xor eax, eax
inc eax
push eax
push 0x742b19
push esi
call ecx
add esp, 0xc
inc edi
cmp edi, dword [ebx + 0x10]
jb 0x4eb8d9
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00650d60
mov eax, dword [ebp - 0x1c]
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4ec1e0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0x18
mov esi, dword [ebp + 8]
mov eax, dword [0x7a9040]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
mov dword [eax], 0xffffffff
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x1c], xmm0
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
mov bl, 1
test eax, eax
jg 0x4ec229
lea eax, [ebp - 0x1c]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
setg bl
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00650d60
mov eax, ebx
add esp, 0x18
pop esi
pop ebx
pop ebp
ret
Function at 0x4ecfb0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x3bc], 2
jne 0x4ecfc5
pop ebp
jmp fcn.004ec170
mov al, 1
pop ebp
ret
Function at 0x4fe470
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [0x7a9040]
xor ecx, ebp
xor edx, edx
cmp dword [ebp + 0xc], 0
mov dword [ebp - 8], ecx
setne dl
lea ecx, [ebp - 0xc]
mov dword [ecx], edx
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00650d60
mov eax, esi
add esp, 8
pop esi
pop ebp
ret
Function at 0x5009e0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push edi
push ebx
push esi
call fcn.006547d0
add esp, 0xc
push 2
push edi
push esi
push ebx
call sub.bcrypt.dll_BCryptGenRandom
xor ecx, ecx
test eax, eax
setne cl
add ecx, ecx
mov eax, ecx
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x500a20
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edi, dword [ebp + 0x10]
mov eax, dword [0x7a9040]
xor eax, ebp
mov dword [ebp - 0x10], eax
test edi, edi
je 0x500a47
mov ebx, dword [ebp + 0xc]
jmp 0x500a78
mov esi, eax
jmp 0x500a4c
xor esi, esi
jmp 0x500a4c
mov esi, 0x2b
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00650d60
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x14]
mov eax, esi
mov byte [ebx], cl
inc ebx
mov ecx, dword [ebp - 0x14]
shr ecx, 8
mov dword [ebp - 0x14], ecx
dec eax
jne 0x500a65
sub edi, esi
je 0x500a43
mov dword [ebp - 0x14], 0xffffffff
cmp edi, 4
mov esi, 4
cmovb esi, edi
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.0051b4f0
add esp, 0xc
test eax, eax
je 0x500a60
cmp eax, 4
jne 0x500a3f
xor ecx, ecx
mov dword [ebp - 0x14], ecx
push 2
push 4
lea eax, [ebp - 0x14]
push eax
push ecx
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
je 0x500a60
mov esi, 2
jmp 0x500a4c