joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c5080
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x57f0b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push 1
push 0x5756c8
push 0
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
call edi
test eax, eax
jne 0x4c5119
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push eax
push str.CryptAcquireContextW:__8x_n
call fcn.00413260
add esp, 8
push 8
push 1
push 0x5756c8
push 0
push esi
call edi
test eax, eax
jne 0x4c5116
call ebx
push eax
push str.CRYPT_NEWKEYSET:__8x_n
call fcn.00413260
add esp, 8
push 0x20
push 1
push 0x5756c8
push 0
push esi
call edi
test eax, eax
jne 0x4c5116
call ebx
push eax
push str.CRYPT_MACHINE_KEYSET:__8x_n
call fcn.00413260
add esp, 8
jmp 0x4c516b
mov ebx, dword [ebp - 8]
mov edi, dword [esi]
test edi, edi
je 0x4c515c
test ebx, ebx
je 0x4c515c
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8004
push edi
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4c515c
mov eax, dword [ebp - 8]
test eax, eax
je 0x4c515c
push 0
push dword [ebp + 0x14]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4c5180
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esi]
test eax, eax
je 0x4c516b
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518690
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp - 0xc]
push 1
push dword [ebp - 8]
push 0x6801
push edi
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
push dword [ebp - 8]
test eax, eax
je 0x4c5156
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00518690
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4c51c0
Capabilities:
Decode data using base64 via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x57f0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
test ebx, ebx
je 0x4c524f
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 1
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x4c524f
mov eax, dword [ebp - 0xc]
inc eax
push eax
call fcn.005286d8
mov edi, eax
add esp, 4
test edi, edi
je 0x4c524f
mov edx, dword [ebp - 0xc]
mov ecx, edi
add edx, 1
je 0x4c522d
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x4c5222
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push edi
push 1
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x4c5272
push edi
call fcn.0052811e
add esp, 4
mov eax, dword [ebp + 8]
test eax, eax
je 0x4c525d
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518690
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp - 0xc]
call fcn.005286d8
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x4c524f
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x4c52a0
nop word [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub edx, 1
jne 0x4c5290
mov eax, dword [esi]
mov edx, dword [ebp - 0xc]
push edx
push edi
mov ecx, eax
call fcn.004c4c30
push edi
call fcn.0052811e
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov edi, dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [esi]
push 0
push 1
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x4c52f5
mov eax, dword [esi]
test eax, eax
je 0x4c52e7
push eax
call fcn.0052811e
add esp, 4
mov dword [esi], 0
test edi, edi
je 0x4c525d
push edi
jmp 0x4c5257
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00518690
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4c6db0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548ec1
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x57f0b4]
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, dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x54], edi
push 0x563af1
mov dword [ebp - 0x48], 0
call fcn.00404820
mov dword [ebp - 4], 1
push 0x408
call fcn.005286d8
add esp, 4
mov ebx, eax
mov dword [ebp - 0x50], ebx
call fcn.004c71f0
mov edx, eax
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x14], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c6e20
sub ecx, dword [ebp - 0x14]
push ecx
push edx
push ebx
call fcn.004c7330
push 0
push 1
push 3
push 0
push 0
push bind
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x14], 0
cmp eax, 0xffffffff
jne 0x4c6e5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4c6ead
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov esi, eax
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.005286d8
add esp, 4
mov ebx, eax
lea eax, [esi + 1]
push eax
push 0
push ebx
call fcn.0051b820
add esp, 0xc
lea eax, [ebp - 0x14]
push 0
push eax
push esi
mov esi, dword [ebp - 0x4c]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x4c6ec1
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.004047b0
mov dword [ebp - 0x48], 1
jmp 0x4c6f34
push ebx
lea ecx, [ebp - 0x6c]
call fcn.00404820
mov byte [ebp - 4], 2
lea edx, [ebp - 0x6c]
lea ecx, [ebp - 0x2c]
call fcn.004c6ad0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x6c]
call fcn.00404760
lea ecx, [ebp - 0x2c]
call fcn.00404660
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404670
mov esi, dword [ebp - 0x50]
push eax
push esi
call fcn.004c7400
push ebx
call fcn.0052811e
add esp, 4
test esi, esi
je 0x4c6f16
push esi
call fcn.0052811e
add esp, 4
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.004047b0
mov dword [ebp - 0x48], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00404760
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00404760
mov eax, edi
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.00518690
mov esp, ebp
pop ebp
ret 8
Function at 0x4c6f60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x77e4
call fcn.00518fd0
mov eax, dword [0x57f0b4]
xor eax, esp
mov dword [esp + 0x77e0], eax
push ebx
push esi
push edi
push 0x75d0
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0051b820
add esp, 0xc
lea eax, [esp + 0x75e0]
push 0x208
push 0
push eax
call fcn.0051b820
add esp, 0xc
lea eax, [esp + 0x75e0]
push 0x104
push eax
push 0x575c98
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea esi, [esp + 0x10]
mov edi, str.System32_vlems.dll
mov ebx, 0x3a
push edi
lea eax, [esp + 0x75e4]
push eax
push str._s_s
push 0x104
push esi
call fcn.004b5740
add esp, 0x14
add esi, 0x208
add edi, 0x208
sub ebx, 1
jne 0x4c6fd2
mov esi, dword [ebp + 8]
lea eax, [esp + 0x10]
push 0x75d0
push eax
push esi
call fcn.0051ad20
mov ecx, dword [esp + 0x77f8]
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00518690
mov esp, ebp
pop ebp
ret

Function at 0x4c71f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548f7f
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
mov eax, dword [0x57f0b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x593aa4]
test eax, eax
jne 0x4c731d
push 0x21
call fcn.005186a6
mov edx, eax
add esp, 4
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], 0
lea esi, [ebp - 0x31]
xor ecx, ecx
mov dword [ebp - 0x50], 0x52cb76b1
mov dword [ebp - 0x4c], 0x5867cc1c
lea eax, [edx + 0x1f]
mov dword [ebp - 0x48], 0x51517f8e
mov dword [ebp - 0x44], 0x6eb622fb
mov dword [ebp - 0x40], 0x6d3b827
mov dword [ebp - 0x3c], 0x89f0e24
mov dword [ebp - 0x38], 0x56d9f14f
mov dword [ebp - 0x34], 0xd717be78
mov dword [ebp - 0x30], 0xa1e05723
mov dword [ebp - 0x2c], 0xbfbcb441
mov dword [ebp - 0x28], 0xf42a9f66
mov dword [ebp - 0x24], 0x329686a1
mov dword [ebp - 0x20], 0x5d9afc68
mov dword [ebp - 0x1c], 0xa2f2807a
mov dword [ebp - 0x18], 0x9a00416c
mov dword [ebp - 0x14], 0x554aaabe
cmp edx, esi
ja 0x4c72bc
lea esi, [ebp - 0x50]
cmp eax, esi
jae 0x4c72d0
lea esi, [ebp - 0x11]
cmp edx, esi
ja 0x4c72f0
lea esi, [ebp - 0x30]
cmp eax, esi
jb 0x4c72f0
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x30]
xor al, byte [ebp + ecx - 0x50]
mov byte [ecx + edx], al
inc ecx
cmp ecx, 0x20
jl 0x4c72d0
jmp 0x4c730a
movups xmm1, xmmword [ebp + ecx - 0x30]
movups xmm0, xmmword [ebp + ecx - 0x50]
pxor xmm1, xmm0
movups xmmword [ecx + edx], xmm1
add ecx, 0x10
cmp ecx, 0x20
jl 0x4c72f0
mov byte [edx + 0x20], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edx
mov dword [0x593aa4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c7400
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov ecx, dword [eax + 4]
mov ebx, dword [eax]
push edi
lea edi, [eax + 8]
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x10], esi
jle 0x4c7454
mov eax, ecx
nop
inc bl
movzx ebx, bl
mov edx, dword [edi + ebx*4]
lea ecx, [eax + edx]
movzx eax, cl
mov ecx, dword [edi + eax*4]
mov dword [edi + ebx*4], ecx
mov dword [edi + eax*4], edx
add dl, cl
movzx ecx, dl
mov edx, dword [ebp + 0xc]
mov cl, byte [edi + ecx*4]
xor byte [esi + edx], cl
inc esi
cmp esi, dword [ebp + 0x10]
jl 0x4c7420
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [eax], ebx
mov dword [eax + 4], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4d40d0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x4d416f
push edi
call fcn.004e82b0
add esp, 4
test al, al
jne 0x4d416f
push ebx
push ebp
push esi
mov esi, edi
xor ebx, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4d40f8
sub esi, ecx
push esi
push 0x2e
push edi
call fcn.004f12e0
add esp, 0xc
test eax, eax
je 0x4d412c
sub eax, edi
push eax
push 0x2e
push edi
call fcn.004f12e0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4d412e
inc ebx
mov ecx, edi
sub ecx, ebx
add esi, ecx
test ebx, ebx
cmovne edi, ebx
xor ecx, ecx
xor ebp, ebp
mov ebx, 0x1505
lea eax, [edi + esi]
cmp edi, eax
cmova esi, ecx
test esi, esi
je 0x4d4167
mov al, byte [edi]
push eax
call fcn.004e4010
movsx ecx, al
lea edi, [edi + 1]
mov eax, ebx
inc ebp
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp ebp, esi
jb 0x4d4146
pop esi
pop ebp
movzx eax, bl
pop ebx
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x4de8a0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
mov eax, dword [0x57f0b4]
xor eax, esp
mov dword [esp + 0x108], eax
mov edx, dword [esp + 0x114]
mov eax, dword [esp + 0x118]
push ebx
mov ebx, dword [esp + 0x124]
push ebp
mov ebp, dword [esp + 0x118]
mov dword [esp + 0xc], eax
push esi
push edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + edx*4 + 0x150]
lea esi, [ecx + 0x178]
mov dword [esp + 0x10], eax
mov eax, edx
shl eax, 4
add esi, eax
mov eax, dword [ecx + 0x2b8]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x4de9aa
cmp dword [ecx + edx*4 + 0x168], 0x4de750
jne 0x4de9aa
cmp dword [esi], 0
je 0x4de927
test edi, edi
je 0x4de9aa
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.004ef9b0
add esp, 0x14
cmp eax, 0xffffffff
je 0x4de9aa
test al, 1
je 0x4de9aa
mov ecx, dword [esi]
test ecx, ecx
jne 0x4de97c
mov eax, dword [ebp + 0x4e8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x57f060]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
je 0x4de998
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x4de9a3
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4de9aa
add dword [esi + 8], eax
jmp 0x4de9aa
mov dword [ebx], 0x1b
or eax, 0xffffffff
jmp 0x4dea15
mov dword [esi + 4], 0
push 0
push dword [esp + 0x130]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x4dea13
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x4de9e8
xor esi, esi
mov dword [ebx], 0x51
jmp 0x4dea13
push 0x100
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.004cad20
push eax
push str.Send_failure:__s
push ebp
call fcn.004de4f0
mov dword [ebp + 0x978], edi
add esp, 0x18
mov dword [ebx], 0x37
mov eax, esi
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00518690
add esp, 0x10c
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x1a4], 0
je 0x4deedd
push eax
call fcn.004d8810
add esp, 4
test eax, eax
jne 0x4deefc
xor al, al
ret
mov eax, dword [eax + 0x150]
cmp eax, 0xffffffff
je 0x4deeda
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4deeda
mov al, 1
ret
Function at 0x4df150
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x57f0b4]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
mov ebx, dword [esp + 0x190]
lea eax, [esp + 8]
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [esp + 0x1a4]
push 0x80
push 0
push eax
mov dword [esp + 0x18], 0x80
call fcn.0051b820
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1a4]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4df1d7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.004cad20
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x4df217
push edi
push esi
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.004ded30
add esp, 0x10
test al, al
jne 0x4df220
call fcn.00527cf3
mov esi, dword [eax]
call fcn.00527cf3
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.004cad20
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004de4f0
add esp, 0x1c
mov ecx, dword [esp + 0x190]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00518690
add esp, 0x188
ret

Function at 0x4df970
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x592ac4]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x4df9c1
push 3
push 2
push eax
push eax
push 6
call fcn.0050aa90
add esp, 0x14
test al, al
je 0x4df9b5
mov dword [0x592ac4], 2
add esp, 0xc
ret
mov dword [0x592ac4], 1
jmp 0x4df9c6
cmp eax, 2
je 0x4dfa0c
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4df9f1
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x4dfa0c
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x4e0ed0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x575964
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x4e0eea
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push 0x550bb0
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x550bc0
push esi
call fcn.005310c8
add esp, 8
test eax, eax
je 0x4e0f32
test ebp, ebp
je 0x4e0f23
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 0x4e0f58
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4e0f58
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 0x4e1032
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e0f75
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x57f060]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4e1028
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4e1028
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e0fb6
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 0x4e0fd1
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, esi
add ecx, ebx
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x4e0ff0
test ebp, ebp
je 0x4e101f
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x57f064]
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 [0x57f064]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x4e8400
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4e8412
mov eax, dword [eax + 0x70]
mov al, byte [eax + 0xe3]
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x4e8426
xor al, al
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
ret
Function at 0x4f1cb0
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.004e77d0
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.004f0f20
push dword [esp + 0x40]
mov edi, eax
call fcn.004f0f20
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 0x4f1d45
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.004e77d0
movups xmm0, xmmword [esp + 0x14]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.004e7880
add esp, 0x20
test edx, edx
ja 0x4f1d69
jb 0x4f1d37
cmp eax, 0x3e8
ja 0x4f1d69
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x4f1d00
test edi, edi
je 0x4f1d52
push edi
call fcn.0052811e
add esp, 4
test esi, esi
je 0x4f1d5f
push esi
call fcn.0052811e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x4f1d76
push edi
call fcn.0052811e
add esp, 4
test esi, esi
je 0x4f1d83
push esi
call fcn.0052811e
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x4f1d90
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
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x34
mov eax, dword [0x57f0b4]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
push edi
mov edi, dword [esp + 0x4c]
push 6
push 1
push 2
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x4f1f82
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [esp + 0x24], xmm0
mov word [esp + 0x1c], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x1c], eax
xor eax, eax
push 4
mov word [esp + 0x1e], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push esi
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4f1f70
push 0x10
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4f1f70
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4f1f70
cmp dword [esp + 8], 0x10
jl 0x4f1f70
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x4f1f70
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x4f1f70
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4f1f70
push 1
push esi
call fcn.0050a430
add esp, 8
test eax, eax
js 0x4f1f70
push 0
push 0x2710
lea eax, [esp + 0x18]
mov dword [esp + 0x18], esi
push 1
push eax
mov dword [esp + 0x24], 0x300
call fcn.004ef5f0
add esp, 0x10
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x4f1f70
lea eax, [esp + 8]
mov dword [esp + 8], 0x10
push eax
lea eax, [esp + 0x1c]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4f1f70
cmp dword [esp + 8], 0x10
jl 0x4f1f70
lea eax, [esp + 8]
mov dword [esp + 8], 0x10
push eax
lea eax, [esp + 0x2c]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x4f1f70
cmp dword [esp + 8], 0x10
jl 0x4f1f70
mov ax, word [esp + 0x18]
cmp ax, word [esp + 0x28]
jne 0x4f1f70
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x2c]
jne 0x4f1f70
mov ax, word [esp + 0x1a]
cmp ax, word [esp + 0x2a]
jne 0x4f1f70
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00518690
add esp, 0x34
ret
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push dword [edi]
call esi
push dword [edi + 4]
call esi
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.00518690
add esp, 0x34
ret