joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42cfb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x660124]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x65c025], 0
push esi
push edi
mov edi, dword [ebp + 0xc]
je 0x42d0a2
cmp byte [0x67aaf4], 0
je 0x42d0a2
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, 3
ja case.default.0x42cfe9
jmp dword [eax*4 + 0x42d0c8]
xor esi, esi
jmp case.default.0x42cfe9
mov esi, 3
jmp case.default.0x42cfe9
mov esi, 1
test esi, esi
je 0x42d0a2
push ebx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx eax, word [ebp - 0x14]
push 2
mov dword [ebp - 0x20], eax
call fcn.005a8288
push eax
call fcn.005ad1cc
add esp, 8
sub esi, 1
je 0x42d056
sub esi, 1
je 0x42d04f
sub esi, 1
je 0x42d048
xor eax, eax
jmp 0x42d05b
mov eax, 6
jmp 0x42d05b
mov eax, 2
jmp 0x42d05b
mov eax, 4
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
or eax, 8
push eax
push ebx
call esi
push 2
call fcn.005a8288
push eax
push 1
push dword [ebp + 0x10]
push edi
call fcn.005a489a
push 2
call fcn.005a8288
push eax
call fcn.005ad1cc
add esp, 0x1c
push dword [ebp - 0x20]
push ebx
call esi
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005846b2
mov esp, ebp
pop ebp
ret
push 2
call fcn.005a8288
push eax
push 1
push dword [ebp + 0x10]
push edi
call fcn.005a489a
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
call fcn.005846b2
mov esp, ebp
pop ebp
ret

Function at 0x42cff4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x660124]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x65c025], 0
push esi
push edi
mov edi, dword [ebp + 0xc]
je 0x42d0a2
cmp byte [0x67aaf4], 0
je 0x42d0a2
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, 3
ja case.default.0x42cfe9
jmp dword [eax*4 + 0x42d0c8]
xor esi, esi
jmp case.default.0x42cfe9
mov esi, 3
jmp case.default.0x42cfe9
mov esi, 1
test esi, esi
je 0x42d0a2
push ebx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx eax, word [ebp - 0x14]
push 2
mov dword [ebp - 0x20], eax
call fcn.005a8288
push eax
call fcn.005ad1cc
add esp, 8
sub esi, 1
je 0x42d056
sub esi, 1
je 0x42d04f
sub esi, 1
je 0x42d048
xor eax, eax
jmp 0x42d05b
mov eax, 6
jmp 0x42d05b
mov eax, 2
jmp 0x42d05b
mov eax, 4
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
or eax, 8
push eax
push ebx
call esi
push 2
call fcn.005a8288
push eax
push 1
push dword [ebp + 0x10]
push edi
call fcn.005a489a
push 2
call fcn.005a8288
push eax
call fcn.005ad1cc
add esp, 0x1c
push dword [ebp - 0x20]
push ebx
call esi
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005846b2
mov esp, ebp
pop ebp
ret
push 2
call fcn.005a8288
push eax
push 1
push dword [ebp + 0x10]
push edi
call fcn.005a489a
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
call fcn.005846b2
mov esp, ebp
pop ebp
ret
Function at 0x42cffb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x660124]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x65c025], 0
push esi
push edi
mov edi, dword [ebp + 0xc]
je 0x42d0a2
cmp byte [0x67aaf4], 0
je 0x42d0a2
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, 3
ja case.default.0x42cfe9
jmp dword [eax*4 + 0x42d0c8]
xor esi, esi
jmp case.default.0x42cfe9
mov esi, 3
jmp case.default.0x42cfe9
mov esi, 1
test esi, esi
je 0x42d0a2
push ebx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx eax, word [ebp - 0x14]
push 2
mov dword [ebp - 0x20], eax
call fcn.005a8288
push eax
call fcn.005ad1cc
add esp, 8
sub esi, 1
je 0x42d056
sub esi, 1
je 0x42d04f
sub esi, 1
je 0x42d048
xor eax, eax
jmp 0x42d05b
mov eax, 6
jmp 0x42d05b
mov eax, 2
jmp 0x42d05b
mov eax, 4
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
or eax, 8
push eax
push ebx
call esi
push 2
call fcn.005a8288
push eax
push 1
push dword [ebp + 0x10]
push edi
call fcn.005a489a
push 2
call fcn.005a8288
push eax
call fcn.005ad1cc
add esp, 0x1c
push dword [ebp - 0x20]
push ebx
call esi
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005846b2
mov esp, ebp
pop ebp
ret
push 2
call fcn.005a8288
push eax
push 1
push dword [ebp + 0x10]
push edi
call fcn.005a489a
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
call fcn.005846b2
mov esp, ebp
pop ebp
ret
Function at 0x42d6f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ca831
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x660124]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x67ac50]
test eax, eax
jne 0x42d856
push 0xc
call fcn.005846c3
add esp, 4
test eax, eax
je 0x42d74c
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
jmp 0x42d74e
xor eax, eax
mov ecx, dword [0x65c004]
mov dword [0x67ac50], eax
cmp dword [ecx + 0x10], 0
je 0x42d7ae
cmp dword [ecx + 0x14], 0x10
jb 0x42d767
mov ecx, dword [ecx]
push ecx
lea ecx, [ebp - 0x12c]
call fcn.00402cd0
mov ecx, dword [0x67ac50]
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 4], 0
call fcn.0040db90
mov eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x42d851
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
jmp 0x42d84c
push eax
call fcn.0042dae0
add esp, 4
lea eax, [ebp - 0x114]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x42d80a
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00402cd0
mov ecx, dword [0x67ac50]
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 4], 1
call fcn.0040db90
lea ecx, [ebp - 0x12c]
mov dword [ebp - 4], 0xffffffff
call fcn.00402c10
push 0x5cdd28
lea ecx, [ebp - 0x144]
call fcn.00402cd0
mov ecx, dword [0x67ac50]
lea eax, [ebp - 0x144]
push eax
mov dword [ebp - 4], 2
call fcn.0040db90
mov eax, dword [ebp - 0x130]
cmp eax, 0x10
jb 0x42d851
inc eax
lea ecx, [ebp - 0x144]
push eax
push dword [ebp - 0x144]
call fcn.004030b0
mov eax, dword [0x67ac50]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005846b2
mov esp, ebp
pop ebp
ret
Function at 0x42dae0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ca8f1
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x660124]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push dword [ebp - 0x148]
push esi
push dword [esi + 4]
push dword [esi]
call fcn.00415a30
mov eax, dword [esi]
add esp, 0x10
mov dword [esi + 4], eax
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x42dbc9
cmp byte [ebp - 0x114], 0
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
jne 0x42db6a
xor ecx, ecx
jmp 0x42db7c
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42db73
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00402e10
lea eax, [ebp - 0x12c]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.0040db90
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x42dbc9
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.004030b0
push 7
push str.C:_tmp_
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
call fcn.00402e10
lea eax, [ebp - 0x12c]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.0040db90
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x42dc30
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.004030b0
push 8
push str.C:_temp_
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x130], 0xf
mov dword [ebp - 0x134], 0
mov byte [ebp - 0x144], 0
call fcn.00402e10
lea eax, [ebp - 0x144]
mov dword [ebp - 4], 2
push eax
mov ecx, esi
call fcn.0040db90
mov eax, dword [ebp - 0x130]
cmp eax, 0x10
jb 0x42dc90
inc eax
lea ecx, [ebp - 0x144]
push eax
push dword [ebp - 0x144]
call fcn.004030b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005846b2
mov esp, ebp
pop ebp
ret

Function at 0x42e970
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x660124]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
cmp eax, dword [section..data]
jge 0x42e99c
cmp byte [0x67aaf1], 0
je 0x42e9ea
push edi
push esi
push eax
call fcn.0042cfb0
add esp, 0xc
mov dword [ebp - 8], 0xf
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
push edi
push esi
call fcn.00402e10
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 8]
cmp eax, 0x10
jb 0x42e9ea
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.004030b0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005846b2
mov esp, ebp
pop ebp
ret
Function at 0x444f90
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x600], 0
je 0x444fd4
push esi
push 1
push edi
call fcn.004365c0
push dword [edi + 0x594]
mov eax, dword [edi + 0x600]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.004365c0
add esp, 0x24
mov eax, esi
pop esi
pop edi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x44500d
push dword [edi + 0x590]
lea eax, [eax + eax*2]
push 1
add eax, 0x5d0bf8
push 2
push eax
call fcn.005a489a
push dword [edi + 0x590]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.005a489a
add esp, 0x20
xor eax, eax
pop edi
ret

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

Disassembly:
sub esp, 0x104
mov eax, dword [0x660124]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
mov ebp, dword [esp + 0x110]
push esi
push edi
mov edi, dword [esp + 0x120]
mov esi, dword [ebp + eax*4 + 0x420]
push eax
push ebp
call fcn.00445910
add esp, 8
push 0
push dword [esp + 0x128]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x44546f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x44543d
mov dword [ebx], 0x51
xor eax, eax
jmp 0x44546f
push 0x100
lea eax, [esp + 0x14]
push eax
push edi
call fcn.00431f30
push eax
push str.Send_failure:__s
push dword [ebp]
call fcn.00445020
mov eax, dword [ebp]
add esp, 0x18
mov dword [eax + 0xd94], edi
mov eax, esi
mov dword [ebx], 0x37
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005846b2
add esp, 0x104
ret

Function at 0x445910
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
shl eax, 4
mov ebp, dword [ebx + ecx*4 + 0x420]
lea esi, [ebx + 0x448]
add esi, eax
mov eax, dword [ebx + 0x560]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x4459c8
cmp dword [ebx + ecx*4 + 0x438], 0x4452e0
jne 0x4459c8
cmp dword [esi], 0
je 0x44595c
test edi, edi
je 0x4459c8
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.004543d0
add esp, 0x14
cmp eax, 0xffffffff
je 0x4459c8
test al, 1
je 0x4459c8
cmp dword [esi], 0
jne 0x4459b1
mov eax, dword [ebx]
mov eax, dword [eax + 0x924]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x65c034]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x4459b1
pop edi
mov dword [esi + 4], eax
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4459c8
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x445b40
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x474], 0
je 0x445b5d
push eax
call fcn.0043ef10
add esp, 4
test eax, eax
jne 0x445b7f
xor al, al
ret
mov eax, dword [eax + 0x420]
cmp eax, 0xffffffff
je 0x445b5a
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x445b7f
xor al, al
ret
mov al, 1
ret
Function at 0x4467a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x20c
mov eax, dword [0x660124]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
mov esi, dword [esp + 0x218]
push edi
cmp dword [esi + 0x2f8], 3
jne 0x4469da
cmp byte [esi + 0x516], 0
jne 0x4469da
cmp byte [esi + 0x529], 0
jne 0x4469da
mov edi, dword [esp + 0x220]
lea eax, [esp + 0xc]
mov ebx, dword [esi]
push eax
lea eax, [esp + 0x98]
mov dword [esp + 0x10], 0x80
push eax
push edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x446851
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push esi
call fcn.00431f30
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.00445020
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.005846b2
add esp, 0x20c
ret
push 0x80
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
push 0
push eax
call fcn.0059e610
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4468c5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push esi
call fcn.00431f30
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00445020
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.005846b2
add esp, 0x20c
ret
lea eax, [esi + 0x3a0]
push eax
lea edi, [esi + 0x372]
push edi
push dword [esp + 0x14]
lea eax, [esp + 0xa0]
push eax
call fcn.004459d0
add esp, 0x10
test al, al
jne 0x446936
call fcn.005a8435
mov esi, eax
call fcn.005a8435
mov edi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push dword [esi]
call fcn.00431f30
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00445020
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.005846b2
add esp, 0x20c
ret
movups xmm0, xmmword [edi]
mov eax, dword [edi + 0x28]
movups xmmword [esi + 0x2c4], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [esi + 0x2d4], xmm0
movq xmm0, qword [edi + 0x20]
movq qword [esi + 0x2e4], xmm0
mov dword [esi + 0x2ec], eax
mov ax, word [edi + 0x2c]
mov word [esi + 0x2f0], ax
lea eax, [esi + 0x3d4]
push eax
lea eax, [esi + 0x3a4]
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
call fcn.004459d0
add esp, 0x10
test al, al
jne 0x4469da
call fcn.005a8435
mov esi, eax
call fcn.005a8435
mov edi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push dword [esi]
call fcn.00431f30
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00445020
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.005846b2
add esp, 0x20c
ret
push esi
call fcn.004463e0
mov ecx, dword [esp + 0x218]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005846b2
add esp, 0x20c
ret
Function at 0x447850
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x44786a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push 0x5d1080
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x5d1090
push esi
call fcn.005b19f3
add esp, 8
test eax, eax
je 0x4478b2
test ebp, ebp
je 0x4478a3
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x4478d8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4478d8
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x4479a7
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4478f5
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x65c034]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x44799d
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x44799d
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x447936
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x447951
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 0x447965
test ebp, ebp
je 0x447994
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x65c038]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x65c038]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x44d1d0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x568], 2
jne 0x44d1e6
mov dword [esp + 4], eax
jmp fcn.0044d180
mov al, 1
ret

Function at 0x44dbc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x52d], 0
je 0x44dbd6
mov dword [esp + 4], eax
jmp fcn.00471640
mov dword [esp + 4], eax
jmp fcn.0043b060
Function at 0x452b80
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x34
mov eax, dword [0x660124]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [esp + 0x48]
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
push 6
push 1
push 2
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x18], 1
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x452d65
xorps xmm0, xmm0
mov eax, 2
movups xmmword [esp + 0x14], xmm0
push 0x7f000001
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x18], eax
xor eax, eax
push 4
mov word [esp + 0x1a], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push edi
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x452d53
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x452d53
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x452d53
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x452d53
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x452d53
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x452d53
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x452d53
push ebx
push 0x64e25c
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.00447db0
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x452cb1
push 0
sub esi, ecx
lea eax, [esp + 0x28]
push esi
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x452d53
push 0
push 0xc
lea eax, [esp + 0x38]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x452d53
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x452d06
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x452d0b
add ecx, 4
add edx, 4
sub esi, 4
jae 0x452cf5
cmp esi, 0xfffffffc
je 0x452d38
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x452d53
cmp esi, 0xfffffffd
je 0x452d38
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x452d53
cmp esi, 0xfffffffe
je 0x452d38
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x452d53
cmp esi, 0xffffffff
je 0x452d38
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x452d53
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.005846b2
add esp, 0x34
ret
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push edi
call esi
push dword [ebx]
call esi
push dword [ebx + 4]
call esi
mov ecx, dword [esp + 0x3c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005846b2
add esp, 0x34
ret
Function at 0x456a40
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
push ebx
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [eax], ebx
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x456bd1
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x456bbc
push ebp
push edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x456a9e
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x456a90
sub eax, edx
lea ecx, [eax + 1]
jmp 0x456aa0
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [esp + 0x14], ecx
cmp eax, 2
jne 0x456ab1
lea ebp, [eax + 0xe]
jmp 0x456abd
cmp eax, 0x17
jne 0x456b5e
lea ebp, [eax + 5]
cmp dword [esi + 0x18], 0
je 0x456b5e
mov eax, dword [esi + 0x10]
test eax, eax
je 0x456b5e
cmp eax, ebp
jb 0x456b5e
lea eax, [ecx + 0x20]
add eax, ebp
push eax
call dword [0x65c034]
mov edi, eax
add esp, 4
test edi, edi
je 0x456bad
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x20]
push ebp
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.0059e090
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x456b4a
mov eax, dword [edi + 0x18]
add eax, ebp
push ecx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.0059e090
add esp, 0xc
mov eax, dword [esp + 0x18]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x456b5a
mov dword [eax + 0x1c], edi
mov dword [esp + 0x18], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x456a82
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
pop edi
pop ebp
test eax, eax
je 0x456b7e
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x456bb8
test ebx, ebx
je 0x456b9d
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x65c038]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x456b86
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x28]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
mov esi, 8
mov dword [esp + 0x10], esi
jmp 0x456b6d
test ebx, ebx
jne 0x456bc8
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret