joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470236
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x57a734]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x4702a3
cmp dword [esi + 0x10], 0
je 0x4702a3
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004e43d0
mov ebx, esp
test ebx, ebx
je 0x4702a3
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1b8
call fcn.0044d768
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00449e51
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e36f8
leave
ret 0x10
Function at 0x470faa
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2cc
mov eax, 0x52f148
call fcn.004e41bf
mov dword [ebp - 0x2d8], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2cc], ebx
call fcn.0044805e
push eax
lea ecx, [ebp - 0x94]
call fcn.0044d58b
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00448064
mov ecx, eax
call fcn.0044dd77
test al, al
je 0x471098
push ebx
lea ecx, [ebp - 0x94]
call fcn.0044d801
push edi
push 0x80
push 3
push edi
push 1
push closesocket
lea ecx, [ebp - 0x94]
call fcn.0044803f
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x47103b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0044d6c6
jmp 0x471179
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
test esi, esi
je 0x471027
push esi
mov dword [ebp - 0x2c8], edi
call fcn.004e3d16
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2c8]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x2c8], esi
je 0x471164
push edi
call fcn.004e3ad9
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0044d6c6
jmp 0x471177
call fcn.00448064
push eax
lea ecx, [ebp - 0x94]
call fcn.0044d7e4
call fcn.00448130
test al, al
je 0x4710b9
call fcn.0044806a
jmp 0x4710d0
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.0044803f
push eax
call fcn.0045eb39
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x471027
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push dword [ebp - 0x2cc]
push ebx
call fcn.0045e579
add esp, 0x14
test eax, eax
jne 0x471027
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x471027
push esi
call fcn.004e3d16
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d4]
push ebx
call fcn.0045ef10
add esp, 0x18
test eax, eax
je 0x471154
cmp eax, 0x600
je 0x471154
push edi
call fcn.004e3ad9
pop ecx
call fcn.00448130
test al, al
jne 0x471084
push ebx
call fcn.0045e3d5
jmp 0x471083
call fcn.00448130
test al, al
jne 0x471164
push ebx
call fcn.0045e3d5
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0044d6c6
test edi, edi
jne 0x4711eb
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4711e7
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
test esi, esi
je 0x4711e7
push esi
mov dword [ebp - 0x2d0], edi
call fcn.004e3d16
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2d0]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x2d0], esi
je 0x4711e3
push edi
call fcn.004e3ad9
pop ecx
xor edi, edi
test edi, edi
jne 0x4711eb
xor eax, eax
jmp 0x471206
mov ecx, dword [ebp - 0x2d8]
push esi
push edi
call fcn.0047120e
push 1
push edi
mov esi, eax
call fcn.004e3aa8
pop ecx
pop ecx
mov eax, esi
call fcn.004e4169
ret 4
Function at 0x4725e3
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x57a734]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
cmp esi, 0x4e
jne 0x47260b
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
cmp esi, 8
jne 0x4726c8
push ebx
push str.SysMonthCal32
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x472681
push 0x20
pop edi
push edi
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.004fce20
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], edi
push eax
push ebx
push 0x100e
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x18], 0x1010003
je 0x472679
cmp dword [ebp - 0x18], 0x2010003
jne 0x4726c4
xor eax, eax
inc eax
jmp 0x472742
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x14]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x14]
jl 0x4726af
cmp eax, dword [ebp - 0xc]
jg 0x4726af
cmp eax, dword [ebp - 0x10]
jl 0x4726af
cmp eax, dword [ebp - 8]
jle 0x4726c4
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 8
call fcn.00472880
mov ebx, eax
mov eax, ebx
jmp 0x472742
mov eax, dword [ebp + 0xc]
mov ecx, 0x101
cmp esi, ecx
jne 0x472736
cmp eax, 0x2e
je 0x472702
cmp eax, 8
je 0x472702
cmp eax, 0x1b
jne 0x472736
push dword [ebp + 0x10]
push eax
push ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [edi + 0x10]
mov esi, eax
mov dword [ecx + 0x594], 3
jmp 0x472727
push dword [ebp + 0x10]
push eax
push ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [edi + 0x10]
mov esi, eax
mov dword [ecx + 0x594], 2
mov ecx, dword [edi + 0x10]
call fcn.004728e8
push ebx
push ebx
push 0x10
mov ecx, edi
call fcn.0044e6d3
mov eax, esi
jmp 0x472742
push dword [ebp + 0x10]
mov ecx, edi
push eax
push esi
call fcn.0044e5a5
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e36f8
leave
ret 0xc
Function at 0x479979
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
mov edx, eax
and edi, 7
je 0x4799a7
cmp eax, edi
jge 0x47999b
push esi
call fcn.00477c1d
mov eax, dword [esi + 8]
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub eax, edi
mov dword [esi + 8], eax
mov edx, eax
xor ecx, ecx
test eax, eax
jle 0x4799cd
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x4799b0
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x4799e7
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x4799d8
xor dl, dl
jmp 0x4799dd
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x4799cf
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x479a1c
push str.zlib_corrupt
call fcn.00477ada
add esp, 4
jmp 0x479a59
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x479a2c
push str.read_past_buffer
jmp 0x479a12
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x479a43
push edi
push esi
call fcn.00477ae9
pop ecx
pop ecx
test eax, eax
je 0x479a59
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004fc8a0
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x4864d0
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 0x486523
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.004963e0
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 0x4864e6
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 0x100
div ecx
mov eax, edx
mov esp, ebp
pop ebp
ret
Function at 0x48c0c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov ecx, dword [ebx]
mov edx, dword [ebx + 8]
mov dword [ebp - 4], edx
cmp ecx, 0x57a39c
jne 0x48c0ed
mov edx, dword [ebx + 0xc]
add edx, 0x180
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
jmp 0x48c0f8
mov eax, dword [ebx + 0xc]
add eax, 0x140
mov dword [ebp - 0xc], eax
mov edi, dword [ebp + 0xc]
cmp ecx, 0x57a39c
mov esi, 0x434
mov eax, 0x3cc
cmove eax, esi
mov cl, 1
mov esi, dword [ebp + 0x10]
mov byte [ebp + 0xb], cl
mov dword [esi], 0
add eax, edi
je 0x48c278
cmp byte [eax + 0x3c], 0
je 0x48c278
cmp dword [edi + 0x8d8], 0
je 0x48c278
mov eax, dword [edi + 0x78]
test eax, eax
je 0x48c14d
test byte [eax + 4], 0x10
je 0x48c14d
add eax, 0x78
jmp 0x48c153
lea eax, [edi + 0x8dc]
cmp dword [edi + 0x4a4], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
jbe 0x48c246
mov dword [ebp - 8], 0
xor eax, eax
mov esi, dword [edi + 0x8d8]
add esi, eax
cmp dword [esi + 0xc], 0
je 0x48c22a
push dword [esi]
push dword [edx + 8]
call sym.Setup.exe_curl_strequal
add esp, 8
test eax, eax
je 0x48c224
mov ecx, dword [ebx + 0xc]
mov al, byte [ecx + 0x1c9]
test al, al
jne 0x48c1b1
cmp dword [esi + 4], 0
je 0x48c1c8
test al, al
je 0x48c224
mov eax, dword [esi + 4]
test eax, eax
je 0x48c224
push eax
push dword [ecx + 0x64]
call sym.Setup.exe_curl_strequal
add esp, 8
test eax, eax
je 0x48c224
mov ecx, dword [ebx + 0xc]
mov al, byte [ecx + 0x1ca]
test al, al
jne 0x48c1df
cmp dword [esi + 0x1c], 0xffffffff
je 0x48c1ef
test al, al
je 0x48c224
mov eax, dword [esi + 0x1c]
cmp eax, 0xffffffff
je 0x48c224
cmp dword [ecx + 0x440], eax
jne 0x48c224
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x30]
cmp eax, dword [esi + 0x18]
jne 0x48c227
mov eax, dword [ecx + 0x1e0]
push dword [esi + 8]
push dword [eax]
call sym.Setup.exe_curl_strequal
add esp, 8
test eax, eax
je 0x48c224
lea eax, [esi + 0x20]
push eax
push dword [ebp - 0xc]
call fcn.0048bda0
add esp, 8
test al, al
jne 0x48c24f
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
add eax, 0x60
inc esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
cmp esi, dword [edi + 0x4a4]
jb 0x48c173
mov cl, byte [ebp + 0xb]
pop edi
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
inc dword [eax]
mov eax, dword [eax]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x48c26d
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
pop edi
xor cl, cl
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x492940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x6cf], 0
je 0x4929c7
cmp dword [esi + 0x1a4], 0
je 0x492991
push esi
call fcn.00481500
push 1
push esi
mov byte [ebp + 8], al
call fcn.00481750
push dword [esi + 0x154]
mov eax, dword [esi + 0x1a4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
push dword [ebp + 8]
push esi
call fcn.00481750
add esp, 0x28
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x4929c7
push dword [esi + 0x150]
lea eax, [eax + eax*2]
push 1
add eax, 0x53f3b8
push 2
push eax
call fcn.00504cc0
push dword [esi + 0x150]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00504cc0
add esp, 0x20
pop esi
pop ebp
ret

Function at 0x4944b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00517dc5

Function at 0x494700
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x494720
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x53f5c0
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x53f5d0
push esi
mov dword [ebp - 8], ebx
call fcn.0051249a
add esp, 8
test eax, eax
je 0x49476c
test ebx, ebx
je 0x49475c
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 0x494795
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x494795
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 0x494857
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4947b1
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x57a348]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x49484d
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x49484d
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4947f0
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 0x494810
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 0x494824
mov eax, dword [ebp - 8]
test eax, eax
je 0x494844
push 8
push 0
push ebx
call eax
jmp 0x49484b
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x57a34c]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4948a0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x57a734]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x4948f9
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4948e6
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4948e0
shr eax, 8
cmp al, 2
je 0x4948f9
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e36f8
mov esp, ebp
pop ebp
ret
call fcn.004c4670
test eax, eax
jne 0x49495d
push str.iphlpapi.dll
call fcn.00494700
add esp, 4
mov dword [0x57fcc8], eax
test eax, eax
je 0x494935
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, dword [0x57fcc4]
test eax, eax
cmovne ecx, eax
mov dword [0x57fcc4], ecx
push 3
push 2
push 0
push 0
push 6
call fcn.004c4270
add esp, 0x14
test al, al
setne byte [0x581c54]
push 0x581c58
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e36f8
mov esp, ebp
pop ebp
ret

Function at 0x497710
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x57a734]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x497757
lea eax, [ebp - 0x14]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x497757
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e36f8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004e36f8
mov esp, ebp
pop ebp
ret

Function at 0x497770
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x49778e
cmp dword [esi + 0x78], 0
je 0x49778e
push 2
push 3
push esi
call fcn.00496b80
add esp, 0xc
push dword [ebp + 0xc]
call fcn.004971f0
add esp, 4
test esi, esi
je 0x4977ae
cmp dword [esi + 0x78], 0
je 0x4977ae
push 3
push esi
call fcn.00496bc0
add esp, 8
pop esi
pop ebp
ret

Function at 0x4978b0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4978f3
mov eax, dword [esi + 0x70]
cmp byte [eax + 0xf8], 0
jne 0x4978e1
push 0
call fcn.004978b0
add esp, 4
test al, al
mov eax, dword [esi + 0x70]
setne cl
inc cl
mov byte [eax + 0xf8], cl
mov ecx, dword [esi + 0x70]
xor eax, eax
pop esi
cmp byte [ecx + 0xf8], 2
sete al
pop ebp
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x497911
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 0x498630
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x498640
push dword [ebp + 8]
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0x14], xmm0
sub esi, ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 4]
push eax
push str.127.0.0.1
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jge 0x498684
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x31]
push 1
push eax
call dword [0x57a358]
mov esi, eax
add esp, 8
test esi, esi
je 0x49867c
movups xmm0, xmmword [ebp - 0x14]
lea eax, [esi + 0x20]
mov dword [esi], 0
mov dword [esi + 0x18], eax
mov edx, edi
mov dword [esi + 4], 2
mov dword [esi + 8], 1
mov dword [esi + 0xc], 6
mov dword [esi + 0x10], 0x10
movups xmmword [eax], xmm0
mov ecx, dword [esi + 0x18]
add ecx, 0x10
mov dword [esi + 0x14], ecx
nop dword [eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4986e0
push edi
push dword [ebp + 8]
call fcn.00498710
add esp, 8
mov dword [esi + 0x1c], eax
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x498710
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x57a734]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
push edi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x498730
sub ecx, edx
push 1
lea eax, [ecx + 0x3d]
push eax
call dword [0x57a358]
mov edi, eax
add esp, 8
test edi, edi
jne 0x498760
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e36f8
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov eax, 0x17
mov word [ebp - 0x30], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x2e], ax
lea eax, [ebp - 0x14]
push eax
push 0x53fbe8
push 0x17
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jl 0x49874e
movups xmm0, xmmword [ebp - 0x14]
push 0x1c
lea ecx, [ebp - 0x30]
mov dword [edi], 0
lea eax, [edi + 0x20]
mov dword [edi + 4], 0x17
push ecx
push eax
movups xmmword [ebp - 0x28], xmm0
mov dword [edi + 8], 1
mov dword [edi + 0xc], 6
mov dword [edi + 0x10], 0x1c
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
call fcn.004fc8a0
mov ecx, dword [edi + 0x18]
add esp, 0xc
add ecx, 0x1c
mov dword [edi + 0x14], ecx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4987f0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004e36f8
mov esp, ebp
pop ebp
ret
Function at 0x4a1fa0
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 0x4a1fbb
cmp dword [edi], 0
jne 0x4a1fcd
test esi, esi
je 0x4a1fc4
cmp dword [esi], 0
jne 0x4a1fcd
test ebx, ebx
je 0x4a2016
cmp dword [ebx], 0
je 0x4a2016
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push dword [ebp + 0x18]
push eax
call fcn.004c90e0
add esp, 0xc
test ebx, ebx
je 0x4a1fe8
cmp dword [ebx], 0
jne 0x4a1fea
xor ebx, ebx
test esi, esi
je 0x4a1ff3
cmp dword [esi], 0
jne 0x4a1ff5
xor esi, esi
test edi, edi
je 0x4a1ffe
cmp dword [edi], 0
jne 0x4a2000
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
mov ecx, dword [ebp + 0x18]
mov eax, ecx
mov edx, dword [ebp + 0x1c]
or eax, edx
mov dword [ebp - 4], edx
je 0x4a2062
test edx, edx
jg 0x4a204f
jl 0x4a202f
test ecx, ecx
jae 0x4a2044
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
test edx, edx
jl 0x4a205b
jg 0x4a204f
cmp ecx, 0xffffffff
jb 0x4a205b
mov ecx, 0xfffffffe
mov dword [ebp - 4], 0
push ecx
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a5770
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.00486ff0
push dword [ebp + 8]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x10], xmm0
call fcn.004a3890
push dword [ebp + 0xc]
mov edi, eax
call fcn.004a3890
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 0x4a57f7
lea eax, [ebp - 0x20]
push eax
call fcn.00486ff0
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.00487090
add esp, 0x20
test edx, edx
ja 0x4a581a
jb 0x4a57e5
cmp eax, 0x3e8
ja 0x4a581a
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x4a57b0
test edi, edi
je 0x4a5804
push edi
call fcn.00500006
add esp, 4
test esi, esi
je 0x4a5811
push esi
call fcn.00500006
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4a5827
push edi
call fcn.00500006
add esp, 4
test esi, esi
je 0x4a5834
push esi
call fcn.00500006
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret