joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475730
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534ecb
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x5796f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xa4]
push eax
mov dword [edi + 0x10], esi
call fcn.00474e20
mov esi, dword [esi + 0x6f0]
mov ecx, dword [edi + 0x10]
or esi, 0x40000080
call fcn.0042e410
test al, 1
je 0x47578e
or esi, 1
jmp 0x475795
test al, 2
je 0x475795
or esi, 2
movups xmm0, xmmword [ebp - 0xa4]
mov ecx, dword [edi + 0x10]
push 0
sub esp, 0x10
mov eax, esp
push 0
movups xmmword [eax], xmm0
mov eax, esi
or eax, 0x20
cmp byte [ecx + 0x6e1], 0
cmove eax, esi
push eax
mov eax, dword [ecx]
push 0
call dword [eax + 0x24]
mov ecx, eax
call fcn.00431910
push eax
mov ecx, edi
call fcn.00441d60
mov ecx, dword [edi + 0x10]
call fcn.0042e290
cmp eax, 0xffffffff
je 0x4757f2
mov ecx, dword [edi + 0x10]
push eax
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, eax
call fcn.00431290
test eax, eax
jne 0x475803
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, eax
call fcn.004311b0
mov eax, dword [eax]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push eax
push 0x30
push dword [edi + 4]
call esi
mov eax, dword [edi + 0x10]
push 0
push dword [eax + 0x6dc]
push 0xc5
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x10]
mov al, byte [ecx + 0x6e1]
test al, al
je 0x475849
movzx eax, word [ecx + 0x6e4]
push 0
push eax
push 0xcc
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0042bca0
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.0042b410
push 0
push 0
push 0xb9
push dword [edi + 4]
call esi
push 0
push 3
push 0xd3
mov ecx, edi
call fcn.00442370
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0xe8]
call eax
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [edi + 0x10]
xor ecx, ecx
push 0
cmp byte [eax + 0x6e0], 1
sete cl
push ecx
push 0xcf
push dword [edi + 4]
call esi
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0x10]
push dword [edi + 4]
cmp byte [eax + 0x6e2], 0
je 0x475912
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
mov ecx, 1
cmove eax, ecx
push eax
push 0
jmp 0x47591a
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push eax
push eax
push 0xb1
push dword [edi + 4]
call esi
mov byte [edi + 0x18], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004edbcc
mov esp, ebp
pop ebp
ret 4
Function at 0x475950
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5796f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004377c0
mov ecx, dword [esi + 0x6d8]
test ecx, ecx
je 0x4759e1
lea eax, [ebp - 0x14]
push eax
call fcn.00474e20
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x4759b7
mov ecx, dword [esi + 0x6d8]
push 0
call fcn.00441ee0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004edbcc
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x6d8]
push 0
call fcn.00441ee0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004edbcc
mov esp, ebp
pop ebp
ret 0xc

Function at 0x475a00
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5796f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x475a8b
cmp dword [esi + 0x10], 0
je 0x475a8b
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004ee430
mov ebx, esp
test ebx, ebx
je 0x475a8b
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1e4
call fcn.0042b4c0
mov ecx, dword [esi + 0x10]
push 1
push 0
push 0
mov eax, dword [ecx]
push 0
push str.textchanged
push ecx
call dword [eax + 0x24]
mov ecx, eax
call fcn.004354e0
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, eax
call fcn.00431be0
test al, al
je 0x475a8b
mov ecx, dword [esi + 0x10]
call fcn.00437690
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004edbcc
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4765a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5796f4]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [ebp + 8]
push esi
push dword [ebp + 0x18]
mov esi, ecx
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call fcn.004399c0
mov ecx, dword [esi + 0x6d8]
test ecx, ecx
je 0x476637
lea eax, [ebp - 0x14]
push eax
call fcn.00474e20
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x47660d
mov ecx, dword [esi + 0x6d8]
push 0
call fcn.00441ee0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004edbcc
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x6d8]
push 0
call fcn.00441ee0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004edbcc
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4779e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53600b
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x5796f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
mov dword [eax + 0x6e8], 0
cmp dword [edi + 4], 0
jne 0x477a8b
lea eax, [ebp - 0xa4]
push eax
call fcn.00477530
mov ecx, dword [edi + 0x10]
movups xmm0, xmmword [ebp - 0xa4]
push 0
sub esp, 0x10
mov eax, esp
push 0
movups xmmword [eax], xmm0
mov eax, dword [ecx]
push 0x40000000
push 0
call dword [eax + 0x24]
mov ecx, eax
call fcn.00431910
push eax
mov ecx, edi
call fcn.00441d60
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.0042e290
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov ecx, eax
call fcn.00431430
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0042bef0
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.0042b410
test bl, bl
je 0x477ac8
mov eax, dword [edi + 0x10]
add eax, 0x6d8
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, 0x6d8
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004edbcc
mov esp, ebp
pop ebp
ret 4
Function at 0x477b20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5796f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004377c0
mov ecx, dword [esi + 0x6f0]
test ecx, ecx
je 0x477bb1
lea eax, [ebp - 0x14]
push eax
call fcn.00477530
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x477b87
mov ecx, dword [esi + 0x6f0]
push 0
call fcn.00441ee0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004edbcc
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x6f0]
push 0
call fcn.00441ee0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004edbcc
mov esp, ebp
pop ebp
ret 0xc

Function at 0x477cc0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5796f4]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [ebp + 8]
push esi
push dword [ebp + 0x18]
mov esi, ecx
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call fcn.004399c0
mov ecx, dword [esi + 0x6f0]
test ecx, ecx
je 0x477d57
lea eax, [ebp - 0x14]
push eax
call fcn.00477530
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x477d2d
mov ecx, dword [esi + 0x6f0]
push 0
call fcn.00441ee0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004edbcc
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x6f0]
push 0
call fcn.00441ee0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004edbcc
mov esp, ebp
pop ebp
ret 0x14
Function at 0x47d090
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
xor ebx, ebx
and eax, 7
cmp ecx, 5
jae 0x47d0b0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
lea edx, [ecx - 4]
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
add edx, esi
mov dword [ebp - 4], edx
add esi, ebx
mov dword [ebp + 0xc], esi
cmp esi, edx
jae 0x47d0e2
nop dword [eax]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x47d0df
inc esi
cmp esi, edx
jb 0x47d0d0
mov dword [ebp + 0xc], esi
mov ebx, esi
sub ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x47d20c
cmp ecx, 3
jbe 0x47d122
xor eax, eax
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x10], edi
test cl, cl
je 0x47d160
cmp cl, 0xff
je 0x47d160
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov ecx, 1
or eax, 1
add ebx, ecx
jmp 0x47d0c4
dec ecx
shl eax, cl
and eax, 7
je 0x47d0fa
movzx ecx, byte [eax + 0x543bac]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x543ba4], 0
mov cl, byte [edx + 4]
je 0x47d14a
test cl, cl
je 0x47d14a
cmp cl, 0xff
jne 0x47d0fa
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x47d0c4
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 0x10]
shl edi, 8
or edi, ecx
cmp dword [ebp + 0x18], 0
je 0x47d18e
lea edx, [edi + ebx]
add edx, esi
jmp 0x47d194
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x47d1d2
movzx edi, byte [eax + 0x543bac]
mov ecx, 0x18
shl edi, 3
sub ecx, edi
mov dword [ebp - 0xc], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 8], edi
test cl, cl
je 0x47d1be
cmp cl, 0xff
jne 0x47d1d2
mov ecx, 0x20
mov edi, 1
sub ecx, dword [ebp - 0xc]
shl edi, cl
dec edi
xor edi, edx
jmp 0x47d181
mov esi, dword [ebp + 0xc]
mov ecx, edx
mov edi, dword [ebp - 0x10]
shr ecx, 0x18
and cl, 1
dec cl
mov byte [esi + 1], dl
not cl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
mov edx, dword [ebp - 4]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
mov esi, dword [ebp + 8]
add ebx, ecx
jmp 0x47d0c4
pop edi
pop esi
cmp ecx, 3
jbe 0x47d221
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0x14]
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x487760
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x1505
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 0xc]
jae 0x4877b3
mov edx, dword [ebp - 8]
shl edx, 5
add edx, dword [ebp - 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov cl, byte [eax]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
push edx
call fcn.00495eb0
add esp, 4
movsx eax, al
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
jmp 0x487776
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 0x3f
div ecx
mov eax, edx
mov esp, ebp
pop ebp
ret
Function at 0x491c80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x6c3], 0
je 0x491d07
cmp dword [esi + 0x19c], 0
je 0x491cd1
push esi
call fcn.00482fa0
push 1
push esi
mov byte [ebp + 8], al
call fcn.00483200
push dword [esi + 0x14c]
mov eax, dword [esi + 0x19c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
push dword [ebp + 8]
push esi
call fcn.00483200
add esp, 0x28
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x491d07
push dword [esi + 0x148]
lea eax, [eax + eax*2]
push 1
add eax, 0x5465e8
push 2
push eax
call fcn.0050b534
push dword [esi + 0x148]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0050b534
add esp, 0x20
pop esi
pop ebp
ret
Function at 0x494020
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.00494060
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.0051fd07

Function at 0x494290
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x546a64
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4942b0
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x546a78
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x546a88
push esi
mov dword [ebp - 8], ebx
call fcn.00518eaa
add esp, 8
test eax, eax
je 0x4942fc
test ebx, ebx
je 0x4942ec
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x494325
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x494325
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x4943e7
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494341
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x57933c]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4943dd
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4943dd
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494380
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4943a0
sub ecx, edx
sar ecx, 1
lea ecx, [ebx + ecx*2]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x4943b4
mov eax, dword [ebp - 8]
test eax, eax
je 0x4943d4
push 8
push 0
push ebx
call eax
jmp 0x4943db
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x579340]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4943f0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5796f4]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x494449
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x494436
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x494430
shr eax, 8
cmp al, 2
je 0x494449
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004edbcc
mov esp, ebp
pop ebp
ret
push esi
push edi
push str.iphlpapi.dll
call fcn.00494290
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
mov dword [0x57dea8], eax
test eax, eax
je 0x494480
push str.if_nametoindex
push eax
call edi
mov ecx, dword [0x57de98]
test eax, eax
cmovne ecx, eax
mov dword [0x57de98], ecx
push str.ws2_32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x4944b8
push str.FreeAddrInfoExW
push esi
call edi
push str.GetAddrInfoExCancel
push esi
mov dword [0x57de9c], eax
call edi
push str.GetAddrInfoExW
push esi
mov dword [0x57dea0], eax
call edi
mov dword [0x57dea4], eax
push 3
push 2
push 0
push 0
push 6
call fcn.004c0de0
push 3
push 2
push 0
test al, al
push 2
push 6
setne byte [0x581861]
call fcn.004c0de0
add esp, 0x28
test al, al
setne byte [0x581860]
push 0x581868
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004edbcc
mov esp, ebp
pop ebp
ret

Function at 0x498510
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x498531
cmp dword [esi + 0x84], 0
je 0x498531
push 2
push 3
push esi
call fcn.00496510
add esp, 0xc
push dword [ebp + 0xc]
call fcn.00497f00
add esp, 4
test esi, esi
je 0x498554
cmp dword [esi + 0x84], 0
je 0x498554
push 3
push esi
call fcn.00496550
add esp, 8
pop esi
pop ebp
ret

Function at 0x498630
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x498673
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0xfc], 0
jne 0x498661
push 0
call fcn.00498630
add esp, 4
test al, al
mov eax, dword [esi + 0x7c]
setne cl
inc cl
mov byte [eax + 0xfc], cl
mov ecx, dword [esi + 0x7c]
xor eax, eax
pop esi
cmp byte [ecx + 0xfc], 2
sete al
pop ebp
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x498691
xor esi, esi
xor eax, eax
cmp eax, esi
pop esi
sbb eax, eax
neg eax
pop ebp
ret
push eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
cmp eax, esi
pop esi
sbb eax, eax
neg eax
pop ebp
ret
Function at 0x4a2da0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4a2dbb
cmp dword [edi], 0
jne 0x4a2dcd
test esi, esi
je 0x4a2dc4
cmp dword [esi], 0
jne 0x4a2dcd
test ebx, ebx
je 0x4a2e16
cmp dword [ebx], 0
je 0x4a2e16
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push dword [ebp + 0x18]
push eax
call fcn.004c60c0
add esp, 0xc
test ebx, ebx
je 0x4a2de8
cmp dword [ebx], 0
jne 0x4a2dea
xor ebx, ebx
test esi, esi
je 0x4a2df3
cmp dword [esi], 0
jne 0x4a2df5
xor esi, esi
test edi, edi
je 0x4a2dfe
cmp dword [edi], 0
jne 0x4a2e00
xor edi, edi
push eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.004a2d50
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a3b50
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00488160
push dword [ebp + 8]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x10], xmm0
call fcn.004a2f50
push dword [ebp + 0xc]
mov edi, eax
call fcn.004a2f50
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 0x4a3bd7
lea eax, [ebp - 0x20]
push eax
call fcn.00488160
movups xmm0, xmmword [ebp - 0x10]
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.00488200
add esp, 0x20
test edx, edx
ja 0x4a3bfa
jb 0x4a3bc5
cmp eax, 0x3e8
ja 0x4a3bfa
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x4a3b90
test edi, edi
je 0x4a3be4
push edi
call fcn.0050b236
add esp, 4
test esi, esi
je 0x4a3bf1
push esi
call fcn.0050b236
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4a3c07
push edi
call fcn.0050b236
add esp, 4
test esi, esi
je 0x4a3c14
push esi
call fcn.0050b236
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret