joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4824fb
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x194], eax
test cl, 2
je 0x482548
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x482532
push 2
pop eax
jmp 0x48258d
mov eax, dword [esp]
cmp al, 2
jne 0x482540
shr eax, 8
cmp al, 2
je 0x482548
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x48252d
call fcn.0048259f
mov dword [0x893844], eax
test eax, eax
je 0x48256b
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x48256b
mov dword [0x60548c], eax
push 3
push ecx
push ecx
call fcn.0049a34d
add esp, 0xc
test al, al
setne byte [0x8c00b8]
push 0x8c00b0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0051b034
mov esp, ebp
pop ebp
ret

Function at 0x48259f
Capabilities:
Get common file path

Disassembly:
push esi
push edi
push 0x596dcc
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
je 0x48269d
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x596dd8
push edi
call ebp
push 0x585898
push str.iphlpapi.dll
mov ebx, eax
call fcn.00530ec0
pop ecx
pop ecx
test eax, eax
je 0x4825f4
test ebx, ebx
je 0x4825e7
push 8
jmp 0x482609
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x482611
test ebx, ebx
je 0x482618
push str.AddDllDirectory
push edi
call ebp
test eax, eax
je 0x482618
push 0x800
push esi
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x482699
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x482699
push str.iphlpapi.dll
call fcn.00520660
lea ecx, [eax + 1]
add ecx, ebp
push ecx
call dword [0x5c9b04]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x482691
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x482691
push 0x584950
push edi
call fcn.00520660
pop ecx
add eax, edi
push eax
call fcn.00528060
pop ecx
pop ecx
push str.iphlpapi.dll
push edi
call fcn.00520660
pop ecx
add eax, edi
push eax
call fcn.00528060
pop ecx
pop ecx
test ebx, ebx
je 0x482688
push 8
push esi
push edi
call ebx
jmp 0x48268f
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push edi
call dword [0x5c9b0c]
pop ecx
pop ebp
mov eax, esi
pop ebx
pop edi
pop esi
ret
Function at 0x4848e7
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
test esi, esi
je 0x484936
call fcn.0048f2ad
test al, al
jne 0x484936
push edi
lea edx, [ebp - 4]
mov ecx, esi
call fcn.00484882
mov edi, dword [ebp - 4]
mov edx, eax
add edi, edx
mov esi, 0x1505
jmp 0x484924
movzx eax, byte [edx]
imul esi, esi, 0x21
movsx ecx, byte [eax + 0x567018]
xor esi, ecx
inc edx
cmp edx, edi
jb 0x484914
push 0x3f
pop ecx
mov eax, esi
xor edx, edx
div ecx
pop edi
mov eax, edx
jmp 0x484938
xor eax, eax
pop esi
leave
ret

Function at 0x48d1a9
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x58
push 1
mov ebp, edx
mov esi, ecx
call dword [0x5c9b3c]
pop ecx
mov edi, eax
mov eax, dword [esi + 0x18]
pop ecx
push 0xc
pop ebx
mov dword [eax + 0x4c], edi
lea esi, [eax + 0x44]
test edi, edi
je 0x48d262
mov eax, dword [esp + 0x18]
xor ecx, ecx
push dword [esp + 0x1c]
mov byte [esi + 0x18], cl
mov edx, ebp
mov dword [esi + 0x14], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x10], eax
mov dword [edi], ecx
mov ecx, edi
push eax
call fcn.0048cf09
pop ecx
pop ecx
test eax, eax
jne 0x48d20b
xor ebp, ebp
push edi
mov dword [esi + 8], ebp
call dword [0x5c9b0c]
pop ecx
jmp 0x48d262
push dword [esi]
call dword [0x5c9b0c]
pop ecx
push ebp
call dword [0x5c9b38]
mov dword [esi], eax
pop ecx
test eax, eax
je 0x48d25b
xor ebp, ebp
lea eax, [edi + 0x10]
push ebp
push ebp
push eax
push 0x48d03a
push ebp
push ebp
mov dword [edi + 0x14], ebp
call fcn.005308f5
add esp, 0x18
test eax, eax
je 0x48d24b
cmp eax, 0xffffffff
je 0x48d24b
mov dword [edi], eax
mov al, 1
jmp 0x48d26b
mov dword [edi], ebp
mov dword [edi + 0x14], 1
call fcn.0052d3fe
mov ebx, dword [eax]
mov ecx, esi
call fcn.0048d115
call fcn.0052d3fe
mov dword [eax], ebx
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x48ffce
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 4
xor edi, edi
mov esi, ecx
push edi
push esi
call fcn.0051c010
add esp, 0xc
mov dword [ebp - 4], edi
lea eax, [ebp - 4]
push 0xf0000040
push 1
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x490003
push 2
pop eax
jmp 0x490026
push esi
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x490018
push 2
pop esi
jmp 0x49001a
mov esi, edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x498eb8
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov ebx, edx
and dword [eax], 0
push esi
push edi
and dword [ebp], 0
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x498ede
push ebx
call fcn.00520660
pop ecx
mov edi, eax
cmp edi, 0x3fffffff
ja 0x498ff8
push 3
pop ecx
xor edx, edx
lea eax, [edi + 2]
div ecx
lea eax, [eax*4 + 1]
push eax
call dword [0x5c9b04]
mov esi, eax
mov dword [esp + 0x18], esi
pop ecx
test esi, esi
je 0x498ff8
cmp edi, 3
jb 0x498f85
push 3
xor edx, edx
mov eax, edi
pop ebp
div ebp
mov edx, eax
movzx ecx, byte [ebx]
sub edi, ebp
shr ecx, 2
mov cl, byte [ecx + 0x567570]
mov byte [esi], cl
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, ebp
shr eax, 4
shl ecx, 4
or ecx, eax
mov al, byte [ecx + 0x567570]
mov byte [esi + 1], al
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
and ecx, 0xf
shr eax, 6
shl ecx, 2
or ecx, eax
mov al, byte [ecx + 0x567570]
mov byte [esi + 2], al
movzx eax, byte [ebx + 2]
add ebx, ebp
and eax, 0x3f
mov al, byte [eax + 0x567570]
mov byte [esi + 3], al
add esi, 4
sub edx, 1
jne 0x498f21
mov ebp, dword [esp + 0x18]
test edi, edi
je 0x498fe2
movzx eax, byte [ebx]
shr eax, 2
push 3
mov al, byte [eax + 0x567570]
mov byte [esi], al
movzx ecx, byte [ebx]
pop eax
and ecx, eax
shl ecx, 4
cmp edi, 1
jne 0x498fb8
mov al, byte [ecx + 0x567570]
mov byte [esi + 1], al
mov word [esi + 2], 0x3d3d
jmp 0x498fdf
movzx eax, byte [ebx + 1]
shr eax, 4
or eax, ecx
mov al, byte [eax + 0x567570]
mov byte [esi + 1], al
movzx eax, byte [ebx + 1]
and eax, 0xf
mov al, byte [eax*4 + 0x567570]
mov byte [esi + 2], al
mov byte [esi + 3], 0x3d
add esi, 4
mov eax, dword [esp + 0x14]
mov byte [esi], 0
sub esi, eax
mov dword [ebp], eax
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
xor eax, eax
jmp 0x498ffb
push 0x1b
pop eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x49b6f9
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5c9040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 4
mov esi, ecx
lea eax, [ebp - 0x10c]
xor ecx, ecx
push eax
inc ecx
push ecx
push 6
push edx
mov dword [ebp - 0x10c], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x49b753
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [ebp - 0x108]
mov ecx, eax
call fcn.00477b48
pop ecx
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.0048c275
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0051b034
leave
ret

Function at 0x49b760
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5c9040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor eax, eax
push edi
push 4
mov edi, edx
cmp byte [esi + 0x6d6], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x49b7ad
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.0048c275
add esp, 0xc
jmp 0x49b814
mov eax, dword [esi + 0x670]
mov ecx, bind
and eax, ecx
mov dword [ebp - 0x10], 1
imul eax, eax, 0x3e8
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x674]
and eax, ecx
xor ecx, ecx
imul eax, eax, 0x3e8
push ecx
push ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push ecx
push ecx
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x49b814
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
push esi
call fcn.0048c275
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0051b034
leave
ret

Function at 0x49b94e
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
and dword [esp + 4], 0
mov eax, dword [0x893b94]
mov dword [esp + 8], 0x4020
mov dword [esp + 0xc], 4
push ebx
push ebp
push esi
mov esi, ecx
test eax, eax
jne 0x49b998
push 3
push ecx
push ecx
call fcn.0049a34d
add esp, 0xc
test al, al
je 0x49b990
mov dword [0x893b94], 2
jmp 0x49b9d8
xor eax, eax
inc eax
mov dword [0x893b94], eax
cmp eax, 2
je 0x49b9d8
lea eax, [esp + 0x18]
mov ebx, 0x1001
push eax
lea eax, [esp + 0x14]
mov ebp, 0xffff
push eax
push ebx
push ebp
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x49b9c8
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jg 0x49b9d8
push 4
lea eax, [esp + 0x18]
push eax
push ebx
push ebp
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x49bec6
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5c9040]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
mov eax, dword [eax + 8]
and dword [ebx], 0
push dword [eax + 0x98]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49bf50
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x49bf1e
mov dword [ebx], 0x51
jmp 0x49bf4d
push ecx
lea edx, [ebp - 0x108]
mov ecx, esi
call fcn.00477b48
pop ecx
push eax
push str.Recv_failure:__s
push dword [edi + 4]
call fcn.0048c1c7
mov eax, dword [edi + 4]
add esp, 0xc
mov dword [eax + 0x934], esi
mov dword [ebx], 0x38
or esi, 0xffffffff
push dword [ebx]
push esi
push dword [ebp + 0x10]
push str.nw_in_read_len_zu______d__err_d
push dword [edi]
push dword [edi + 4]
call fcn.0048c2f0
mov ecx, dword [ebp - 4]
add esp, 0x18
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0051b034
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18c
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
mov ebx, edx
push esi
mov esi, dword [ecx + 8]
push edi
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x200]
test dword [eax + 0x44], 0x800
jne 0x49c190
mov eax, 0x80
push eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0051c010
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x49c147
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea edx, [esp + 0x90]
push ecx
mov ecx, esi
call fcn.00477b48
pop ecx
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0048c1c7
add esp, 0x10
push 2
pop eax
jmp 0x49c192
mov edx, dword [esp + 0xc]
lea eax, [esi + 0x120]
push eax
lea eax, [esi + 0xf0]
push eax
lea ecx, [esp + 0x18]
call fcn.00483340
pop ecx
pop ecx
test al, al
jne 0x49c190
call fcn.0052d3fe
mov esi, dword [eax]
call fcn.0052d3fe
push ecx
lea edx, [esp + 0x94]
mov ecx, esi
mov edi, eax
call fcn.00477b48
pop ecx
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x49c139
xor eax, eax
mov ecx, dword [esp + 0x194]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051b034
mov esp, ebp
pop ebp
ret
Function at 0x49c23a
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov ebp, edx
mov edi, dword [ecx + 8]
lea eax, [esp + 0x28]
and dword [esp + 0x1c], 0
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edi
call fcn.0048ccd6
add edi, 0x128
mov esi, eax
pop ecx
mov ecx, ebp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x20]
lea eax, [esi + 0x98]
lea edx, [esi + 8]
push eax
call fcn.0049b880
mov edi, dword [esp + 0x1c]
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x49c3c9
mov edx, ebp
mov ecx, edi
call fcn.0049c1a7
mov ebx, eax
test ebx, ebx
jne 0x49c3c9
cmp dword [esi + 8], 0x17
jne 0x49c2cf
and dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push 4
push eax
push 0x1b
push 0x29
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, str.__Trying___s_:_d...
jmp 0x49c2d4
mov ecx, str.__Trying__s:_d...
push dword [esi + 0xec]
lea eax, [esi + 0xbc]
push eax
push ecx
push ebp
call fcn.0048c275
add esp, 0x10
cmp dword [esi + 8], 2
je 0x49c2f7
cmp dword [esi + 8], 0x17
jne 0x49c31f
cmp dword [esi + 0xc], 1
jne 0x49c31f
cmp byte [ebp + 0x6d0], 0
mov byte [esp + 0x17], 1
je 0x49c324
mov edx, dword [esi + 0x98]
mov ecx, ebp
call fcn.0049b6f9
mov byte [esp + 0x17], 1
jmp 0x49c324
mov byte [esp + 0x17], 0
mov ecx, dword [esi + 0x98]
call fcn.0049b94e
cmp byte [esp + 0x17], 0
je 0x49c34c
cmp byte [ebp + 0x6d6], 0
je 0x49c34c
mov edx, dword [esi + 0x98]
mov ecx, ebp
call fcn.0049b760
cmp dword [ebp + 0x1ac], 0
je 0x49c390
mov dl, 1
mov ecx, ebp
call fcn.0047fa7c
push 0
push dword [esi + 0x98]
push dword [ebp + 0x1b0]
call dword [ebp + 0x1ac]
add esp, 0xc
mov dword [esp + 0x24], eax
xor dl, dl
mov ecx, ebp
call fcn.0047fa7c
mov eax, dword [esp + 0x24]
cmp eax, 2
jne 0x49c3c2
mov byte [esp + 0x1c], 1
lea eax, [esi + 8]
cmp dword [eax], 2
je 0x49c39d
cmp dword [eax], 0x17
jne 0x49c40a
mov edx, dword [edi + 0xc]
push ecx
push dword [eax]
mov ecx, ebp
push dword [esi + 0x98]
call fcn.0049b9df
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x49c40a
cmp ebx, 1
jne 0x49c3c9
push 7
jmp 0x49c3c8
test eax, eax
je 0x49c390
push 0x2a
pop ebx
mov eax, dword [esi + 0x98]
cmp eax, 0xffffffff
je 0x49c3ea
mov edx, dword [edi + 0xc]
mov ecx, ebp
push eax
push 1
call fcn.0049b8f3
or dword [esi + 0x98], 0xffffffff
pop ecx
pop ecx
push dword [esi + 0x98]
push ebx
push str.cf_socket_open_______d__fd_d
push edi
push ebp
call fcn.0048c2f0
add esp, 0x14
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x98]
call fcn.004b4776
cmp byte [esp + 0x1c], 0
je 0x49c3ea
mov edx, ebp
mov ecx, edi
call fcn.0049c0af
lea eax, [esp + 0x28]
push eax
call fcn.0048ccd6
lea edi, [esi + 0x138]
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
mov byte [edi + 0x14], 1
jmp 0x49c3e9
Function at 0x49ce6c
Capabilities:
Connect socket

Disassembly:
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov edi, edx
mov esi, dword [ebx + 8]
push dword [esi + 0x14]
lea eax, [esi + 0x18]
push eax
push dword [esi + 0x98]
lea ebp, [esi + 0xbc]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x49cea8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov edx, ebp
mov ecx, edi
call fcn.0049be1e
pop ecx
jmp 0x49cef8
mov edx, edi
mov ecx, ebx
call fcn.0049c0af
push dword [esi + 0xec]
cmp dword [esi], 5
lea eax, [esi + 0xf0]
push ebp
push dword [esi + 0x120]
mov ecx, 0x59ac0c
push eax
push dword [esi + 0x98]
mov eax, str.QUIC
cmovne eax, ecx
push eax
push str._s_socket__d_connected:___s:_d_______s:_d_
push ebx
push edi
call fcn.0048c2f0
mov ecx, dword [esi + 0x98]
add esp, 0x24
call fcn.004b4776
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x49e5f2
Capabilities:
Move file

Disassembly:
sub esp, 0x34
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
lea eax, [esp + 0x24]
mov ebp, edx
push edi
push eax
mov ebx, ecx
call fcn.0048ccd6
mov esi, eax
lea edi, [esp + 0x1c]
pop ecx
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00506ee9
pop ecx
push ebp
mov dword [esp + 0x18], eax
call fcn.00506ee9
mov ebp, dword [esp + 0x18]
mov ebx, eax
pop ecx
jmp 0x49e676
lea eax, [esp + 0x28]
push eax
call fcn.0048ccd6
sub esp, 0xc
lea esi, [esp + 0x28]
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0048cd67
add esp, 0x20
test edx, edx
ja 0x49e6af
jb 0x49e66e
cmp eax, 0x3e8
ja 0x49e6af
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x49e637
test ebp, ebp
je 0x49e68f
push ebp
call fcn.00528163
pop ecx
test ebx, ebx
je 0x49e69a
push ebx
call fcn.00528163
pop ecx
xor eax, eax
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051b034
add esp, 0x34
ret
test ebp, ebp
je 0x49e6ba
push ebp
call fcn.00528163
pop ecx
test ebx, ebx
je 0x49e6c5
push ebx
call fcn.00528163
pop ecx
xor eax, eax
inc eax
jmp 0x49e69c
Function at 0x4a12dd
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x5c9040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ecx + 0x18]
xor ebx, ebx
mov ecx, dword [ecx + 0xcb4]
inc ecx
cmp byte [ecx], bl
jne 0x4a1344
push 0x401
lea eax, [ebp - 0x408]
mov byte [ebp - 0x408], bl
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [ebp - 8], bl
test eax, eax
jne 0x4a133f
lea eax, [ebp - 0x408]
push 0x2e
push eax
call fcn.0051c170
pop ecx
pop ecx
test eax, eax
je 0x4a1337
mov byte [eax], bl
lea ecx, [ebp - 0x408]
jmp 0x4a1344
mov ecx, str.localhost
push 3
lea eax, [esi + 0x2e4]
xor edx, edx
push ebx
push eax
call fcn.00476f38
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop esi
pop ebx
call fcn.0051b034
leave
ret
Function at 0x4a475f
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x94
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
mov eax, dword [ebp + 0x18]
mov edi, dword [eax + 0x278]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edi + 0x13c]
push ebx
add eax, 4
push eax
push dword [edi + 0x148]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [edi + 0x134], eax
cmp dword [edi + 0x130], ebx
jne 0x4a47e0
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.0051c650
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi + 0x130], eax
mov esi, dword [edi + 0x134]
cmp esi, 4
jge 0x4a481a
push str.Received_too_short_packet
push ebp
call fcn.0048c1c7
pop ecx
pop ecx
mov dword [edi + 0xc], 7
mov eax, ebx
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051b034
add esp, 0x94
ret
mov edx, dword [edi + 0x148]
movzx eax, byte [edx]
movzx ecx, byte [edx + 1]
shl eax, 8
or ecx, eax
mov dword [edi + 0xc], ecx
sub ecx, 1
je 0x4a48fc
sub ecx, 1
je 0x4a48fc
sub ecx, 1
je 0x4a48b2
sub ecx, 1
je 0x4a490f
sub ecx, 1
je 0x4a4878
sub ecx, 1
jne 0x4a48fc
lea eax, [esi - 2]
add edx, 2
push eax
mov ecx, edi
call fcn.004a38b5
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4a490f
jmp 0x4a47ff
movzx ecx, byte [edx + 2]
lea eax, [edx + 4]
mov dword [esp + 0x14], eax
add esi, 0xfffffffc
movzx eax, byte [edx + 3]
mov edx, esi
shl ecx, 8
or ecx, eax
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0x14]
call fcn.004a3893
cmp eax, esi
jae 0x4a490f
push dword [esp + 0x14]
push str.TFTP_error:__s
push ebp
call fcn.0048c275
jmp 0x4a490c
cmp esi, 4
jle 0x4a490f
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 0x144]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x4a490f
lea eax, [esi - 4]
mov ecx, ebp
push eax
lea eax, [edx + 4]
xor edx, edx
push eax
inc edx
call fcn.004829cd
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4a490f
push 5
pop edx
mov ecx, edi
call fcn.004a44fb
jmp 0x4a47ff
push str.Internal_error:_Unexpected_packet
push 0x585398
push ebp
call fcn.0048c1c7
add esp, 0xc
mov ecx, ebp
call fcn.004936ee
test eax, eax
je 0x4a47ff
push 5
pop edx
mov ecx, edi
call fcn.004a44fb
push 0x2a
pop eax
jmp 0x4a4801
Function at 0x4a5fa2
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x5c9040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x88]
push eax
mov ebx, dword [edi + 0x18]
mov esi, dword [ebx + 0x144]
push esi
mov dword [ebp - 0x8c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4a608e
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0x80
push eax
lea eax, [ebp - 0x88]
push eax
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
mov dword [ebp - 0x90], esi
cmp esi, 0xffffffff
je 0x4a608e
push str.Connection_accepted_from_server
push edi
call fcn.0048c275
pop ecx
pop ecx
mov ecx, esi
mov byte [ebx + 0x1ed], 0
call fcn.004b4776
lea eax, [ebp - 0x90]
mov edx, ebx
push eax
push ecx
mov ecx, edi
call fcn.0049d27d
pop ecx
pop ecx
test eax, eax
jne 0x4a609e
cmp dword [edi + 0x1ac], eax
je 0x4a608a
mov dl, 1
mov ecx, edi
call fcn.0047fa7c
push 1
push dword [ebp - 0x90]
push dword [edi + 0x1b0]
call dword [edi + 0x1ac]
add esp, 0xc
xor dl, dl
mov ecx, edi
mov esi, eax
call fcn.0047fa7c
test esi, esi
je 0x4a608a
mov edx, ebx
call fcn.004a5f15
push 0x2a
jmp 0x4a609d
xor eax, eax
jmp 0x4a609e
push str.Error_accept__ing_server_connect
push edi
call fcn.0048c1c7
pop ecx
pop ecx
push 0x1e
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051b034
leave
ret
Function at 0x4a7e20
Capabilities:
Check http status code

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
lea eax, [edx - 0xc8]
push edi
xor edi, edi
mov ebx, dword [esi + 0x18]
cmp eax, 0x64
jb 0x4a7e48
push str.Couldnt_set_desired_mode
push esi
call fcn.0048c1c7
pop ecx
pop ecx
push 0x11
pop eax
jmp 0x4a7e9b
cmp edx, 0xc8
je 0x4a7e5f
push edx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.0048c275
add esp, 0xc
mov al, byte [esp + 0x14]
cmp al, 0x13
jne 0x4a7e72
mov edx, ebx
mov ecx, esi
call fcn.004a6f59
jmp 0x4a7e97
cmp al, 0x14
jne 0x4a7e7f
mov ecx, esi
call fcn.004a6f9e
jmp 0x4a7e97
cmp al, 0x15
jne 0x4a7e87
push 0xd
jmp 0x4a7e8d
cmp al, 0x16
jne 0x4a7e99
push 0xe
mov dl, 1
mov ecx, esi
call fcn.004a7377
pop ecx
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4aa2e7
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov byte [ebp - 4], 0xff
mov ecx, dword [ebp + 8]
mov ebx, edx
push 0
mov byte [ebp - 2], cl
lea ecx, [ebp - 4]
mov eax, dword [esi + 0x18]
push 3
push ecx
mov byte [ebp - 3], bl
push dword [eax + 0x140]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4aa32e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0048c1c7
add esp, 0xc
push dword [ebp + 8]
mov edx, str.SENT
mov ecx, esi
push ebx
call fcn.004aa201
pop ecx
pop ecx
pop esi
pop ebx
leave
ret