joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478f30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x478f62
jl 0x478f55
test ecx, ecx
jne 0x478f62
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x479022
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.0045d420
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x478fce
jg 0x478f8d
test esi, esi
je 0x478fce
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x478fa5
mov eax, dword [esp + 0x10]
jl 0x478f9f
cmp eax, esi
jae 0x478fa5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.004b94a0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x478fef
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x47900b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x478f74
jl 0x47900b
test ecx, ecx
jne 0x478f74
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x479066
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x479066
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.004b94a0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x4790d7
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x47908c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x4790c2
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.004c616c
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x4790d7
cmp edi, eax
ja 0x4790a0
test edi, edi
je 0x4790d7
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.004c616c
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4790f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x4791d8
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x4791c7
jg 0x479130
test edx, edx
je 0x4791c7
nop dword [eax]
call fcn.0045d560
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x479184
jg 0x479147
test esi, esi
je 0x479184
cmp ebx, eax
jg 0x479157
jl 0x479151
cmp edi, esi
jae 0x479157
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.004b94a0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x4791ab
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x4791c1
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x479130
jl 0x4791c1
test edi, edi
jne 0x479130
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov edx, dword [eax]
lea eax, [ecx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
test edx, edx
je 0x479200
mov eax, dword [eax]
mov edx, dword [eax]
jmp 0x479206
xor edx, edx
mov dword [esp + 0x18], eax
mov eax, edx
cdq
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
test edi, edi
jl 0x47926e
jg 0x47921b
test esi, esi
je 0x47926e
test edx, edx
jl 0x479269
jg 0x479225
test eax, eax
je 0x479269
cmp edi, edx
jg 0x479239
jl 0x47922f
cmp esi, eax
jae 0x479239
mov eax, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov ebx, dword [ebp + 8]
push eax
push ebx
push dword [esp + 0x24]
call fcn.004b94a0
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x14]
add ebx, edx
mov ecx, dword [esp + 0xc]
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x10]
sub dword [eax], edx
mov eax, dword [ecx + 0x20]
add dword [eax], edx
jmp 0x479271
mov ebx, dword [ebp + 8]
jmp 0x47927b
mov ebx, dword [ebp + 8]
test edi, edi
jl 0x479294
jg 0x47927b
test esi, esi
je 0x479294
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x479294
push eax
push esi
push 1
push ebx
call fcn.004c8657
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x479920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x7000a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x479950
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b75b2
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x47998c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x47998c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b75b2
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x479a89
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4799b4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4799e7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.004c624f
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b75b2
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x25], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x479a49
sub eax, 1
je 0x479a49
sub eax, 2
jne 0x479a89
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.004c624f
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b75b2
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x479a66
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004c8657
add esp, 0x10
cmp edi, eax
jne 0x479a89
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b75b2
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b75b2
mov esp, ebp
pop ebp
ret 4
Function at 0x479ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x7000a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x479b7c
cmp byte [esi + 0x3d], 0
je 0x479b7c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x479b6a
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x479b32
sub eax, 1
je 0x479b36
sub eax, 2
jne 0x479b6a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b75b2
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x479b53
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004c8657
add esp, 0x10
cmp edi, eax
jne 0x479b6a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b75b2
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b75b2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004b75b2
mov esp, ebp
pop ebp
ret
Function at 0x47ef6b
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x7000a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x100
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov edx, 0x89
lea ecx, [ebp - 0x220]
call fcn.004764f0
push 8
pop edi
cmp dword [eax + 0x14], edi
jb 0x47efb9
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004c8fdb
pop ecx
pop ecx
lea ecx, [ebp - 0x220]
mov esi, eax
call fcn.004515d0
test esi, esi
lea ecx, [ebp - 0x220]
push 0x5e
pop edx
sete bl
call fcn.004764f0
cmp dword [eax + 0x14], edi
jb 0x47efef
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004c8fdb
pop ecx
pop ecx
lea ecx, [ebp - 0x220]
mov esi, eax
call fcn.004515d0
xor eax, eax
movzx ebx, bl
inc eax
lea ecx, [ebp - 0x220]
test esi, esi
push 0x5f
pop edx
cmove ebx, eax
call fcn.004764f0
cmp dword [eax + 0x14], edi
jb 0x47f02b
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004c8fdb
pop ecx
pop ecx
lea ecx, [ebp - 0x220]
mov esi, eax
call fcn.004515d0
push 1
pop ecx
test esi, esi
movzx ebx, bl
push 0x5c
cmove ebx, ecx
lea ecx, [ebp - 0x220]
pop edx
call fcn.004764f0
cmp dword [eax + 0x14], edi
jb 0x47f067
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004c8fdb
pop ecx
pop ecx
lea ecx, [ebp - 0x220]
mov esi, eax
call fcn.004515d0
push 1
pop eax
test esi, esi
movzx ebx, bl
push 0x5d
pop edx
lea ecx, [ebp - 0x220]
cmove ebx, eax
call fcn.004764f0
cmp dword [eax + 0x14], edi
jb 0x47f0a3
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004c8fdb
pop ecx
pop ecx
lea ecx, [ebp - 0x220]
mov esi, eax
call fcn.004515d0
push 1
pop eax
test esi, esi
movzx ebx, bl
push 0x60
pop edx
lea ecx, [ebp - 0x220]
cmove ebx, eax
call fcn.004764f0
cmp dword [eax + 0x14], edi
jb 0x47f0df
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004c8fdb
pop ecx
pop ecx
lea ecx, [ebp - 0x220]
mov esi, eax
call fcn.004515d0
push 1
pop eax
test esi, esi
movzx ebx, bl
push 0x62
pop edx
lea ecx, [ebp - 0x220]
cmove ebx, eax
call fcn.004764f0
cmp dword [eax + 0x14], edi
jb 0x47f11b
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004c8fdb
pop ecx
pop ecx
lea ecx, [ebp - 0x220]
mov esi, eax
call fcn.004515d0
push 1
pop eax
test esi, esi
movzx ebx, bl
push 0x61
pop edx
lea ecx, [ebp - 0x220]
cmove ebx, eax
call fcn.004764f0
cmp dword [eax + 0x14], edi
jb 0x47f157
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004c8fdb
pop ecx
pop ecx
lea ecx, [ebp - 0x220]
mov esi, eax
call fcn.004515d0
push 1
pop ecx
test esi, esi
movzx eax, bl
pop edi
cmove eax, ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004b75b2
leave
ret
Function at 0x4883d0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x48845c
push esi
call fcn.0049b6d0
add esp, 4
test al, al
jne 0x48845c
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4883f3
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.004a6690
add esp, 0xc
test eax, eax
je 0x488427
sub eax, esi
push eax
push 0x2e
push esi
call fcn.004a6690
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x488429
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x488455
mov al, byte [esi]
push eax
call fcn.00496c20
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x488437
pop edi
movzx eax, bl
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4927b0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi + 0x6a7], 0
je 0x49284d
cmp dword [esi + 0x1a8], 0
je 0x492807
push esi
call fcn.00483180
push 1
push esi
mov byte [esp + 0x14], al
call fcn.00483450
push dword [esi + 0x14c]
mov eax, dword [esi + 0x1a8]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call eax
push dword [esp + 0x28]
push esi
call fcn.00483450
add esp, 0x28
pop esi
ret
mov ecx, dword [esp + 0xc]
mov eax, ecx
sub eax, 0
je 0x49281c
sub eax, 1
je 0x49281c
sub eax, 1
jne 0x49284d
push dword [esi + 0x148]
lea eax, [ecx*2 + 0x6639d8]
push 1
add eax, ecx
push 2
push eax
call fcn.004c8657
push dword [esi + 0x148]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.004c8657
add esp, 0x20
pop esi
ret

Function at 0x492df0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
mov eax, dword [0x7000a8]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x118]
push ebx
mov ebx, dword [esp + 0x114]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 4], eax
xor eax, eax
mov ecx, dword [ebx + 0xc]
push ebp
push esi
mov esi, 0x158
mov edx, dword [ecx + 0x134]
cmp dword [esp + 0x120], edx
push edi
sete al
lea eax, [eax*4 + 0x130]
mov ebp, dword [eax + ecx]
mov eax, 0x168
cmove esi, eax
mov eax, dword [ecx + 0x280]
add esi, ecx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x492ef3
xor eax, eax
cmp dword [esp + 0x124], edx
sete al
lea eax, [eax*4 + 0x148]
cmp dword [eax + ecx], 0x492ab0
jne 0x492ef3
cmp dword [esi], 0
je 0x492e8e
test edi, edi
je 0x492ef3
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.004a2e30
add esp, 0x14
cmp eax, 0xffffffff
je 0x492ef3
test al, 1
je 0x492ef3
mov ecx, dword [esi]
test ecx, ecx
jne 0x492edc
mov eax, dword [ebx + 0x4b4]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
je 0x492f27
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x492ef3
add dword [esi + 8], eax
push 0
push dword [esp + 0x130]
push dword [esp + 0x1c]
push ebp
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
jne 0x492f62
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x492f38
xor edi, edi
lea eax, [edi + 0x51]
jmp 0x492f62
mov ecx, dword [esp + 0x10]
mov eax, 0x1b
mov dword [ecx], 0xffffffff
jmp 0x492f68
push 0x100
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.004a5ac0
push eax
push str.Send_failure:__s
push ebx
call fcn.00492850
add esp, 0x18
mov dword [ebx + 0x8f8], esi
mov eax, 0x37
mov ecx, dword [esp + 0x10]
mov dword [ecx], edi
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b75b2
add esp, 0x10c
ret
Function at 0x493630
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x7000a8]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
mov ebx, dword [esp + 0x190]
lea eax, [esp + 8]
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [esp + 0x1a4]
push 0x80
push 0
push eax
mov dword [esp + 0x18], 0x80
call fcn.004b9340
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1a4]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4936b7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.004a5ac0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x4936f7
push edi
push esi
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.00493270
add esp, 0x10
test al, al
jne 0x493700
call fcn.004c0461
mov esi, dword [eax]
call fcn.004c0461
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.004a5ac0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00492850
add esp, 0x1c
mov ecx, dword [esp + 0x190]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b75b2
add esp, 0x188
ret
Function at 0x495180
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x7000a8]
xor eax, esp
mov dword [esp + 0x190], eax
test byte [esp + 0x198], 2
je 0x4951df
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4951c5
mov eax, dword [esp]
cmp al, 2
jne 0x4951bf
shr eax, 8
cmp al, 2
je 0x4951df
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004b75b2
add esp, 0x194
ret
push esi
push edi
push str.kernel32
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
jne 0x4951ff
mov dword [0x7076cc], esi
jmp 0x49534b
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x663e74
push edi
call ebp
push 0x663e84
push str.iphlpapi.dll
mov ebx, eax
call fcn.004ca754
add esp, 8
test eax, eax
je 0x49524f
test ebx, ebx
je 0x49523d
push 8
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x495326
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
jmp 0x495326
test ebx, ebx
je 0x495274
push str.AddDllDirectory
push edi
call ebp
test eax, eax
je 0x495274
push 0x800
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x495326
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x495320
lea ecx, [ebp*2 + 0x1a]
push ecx
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
je 0x495316
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x495316
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4952b0
sub ecx, edx
mov edx, edi
sar ecx, 1
mov dword [edi + ecx*2], 0x5c
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4952d0
sub edx, ecx
mov ecx, str.iphlpapi.dll
sar edx, 1
add edx, edx
sub edx, ecx
add edx, edi
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4952f0
test ebx, ebx
je 0x49530d
push 8
push 0
push edi
call ebx
jmp 0x495314
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push edi
call dword [0x700004]
add esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7076cc], esi
test esi, esi
je 0x495349
push str.if_nametoindex
push esi
call ebp
mov ecx, dword [0x7076c8]
test eax, eax
cmovne ecx, eax
mov dword [0x7076c8], ecx
pop ebp
pop ebx
push 3
push 2
push 0
push 0
push 6
call fcn.004b13e0
add esp, 0x14
test al, al
setne byte [0x70a204]
push 0x70a208
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [esp + 0x198]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004b75b2
add esp, 0x194
ret
Function at 0x49b6d0
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x18
mov eax, dword [0x7000a8]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
lea eax, [esp + 4]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x49b718
lea eax, [esp + 8]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
pop esi
setg al
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004b75b2
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
mov al, 1
pop esi
xor ecx, esp
call fcn.004b75b2
add esp, 0x18
ret

Function at 0x49b830
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x49b86e
mov eax, dword [esi + 0x70]
cmp byte [eax + 0xe0], 0
jne 0x49b85f
push 0
call fcn.0049b830
add esp, 4
test al, al
mov eax, dword [esi + 0x70]
setne cl
inc cl
mov byte [eax + 0xe0], cl
mov eax, dword [esi + 0x70]
pop esi
cmp byte [eax + 0xe0], 2
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x49b883
xor al, al
pop esi
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret
Function at 0x4a6d80
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.0049ac10
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.004a5790
push dword [esp + 0x40]
mov edi, eax
call fcn.004a5790
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x4a6e15
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.0049ac10
movups xmm0, xmmword [esp + 0x14]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.0049acc0
add esp, 0x20
test edx, edx
ja 0x4a6e39
jb 0x4a6e07
cmp eax, 0x3e8
ja 0x4a6e39
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x4a6dd0
test edi, edi
je 0x4a6e22
push edi
call fcn.004bcd10
add esp, 4
test esi, esi
je 0x4a6e2f
push esi
call fcn.004bcd10
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x4a6e46
push edi
call fcn.004bcd10
add esp, 4
test esi, esi
je 0x4a6e53
push esi
call fcn.004bcd10
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret