joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100db720
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x189
mov edi, ecx
call fcn.100bd8fa
push 0x189
mov ebx, eax
push 0
push ebx
mov dword [ebp - 8], ebx
call fcn.100b7060
mov esi, ebx
mov dword [ebp - 4], 3
add esp, 0x10
mov ebx, 0x61
push dword [edi]
call dword [sym.imp.WS2_32.dll_htonl]
mov edx, eax
add edi, 3
mov ecx, edx
shr ecx, 0x1a
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], cl
mov ecx, edx
shr ecx, 0x14
and ecx, 0x3f
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
mov eax, edx
shr eax, 0xe
and eax, 0x3f
shr edx, 8
and edx, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], al
add esi, 4
sub ebx, 1
jne 0x100db758
lea ecx, [ebx + 0x18]
xor edx, edx
mov ebx, dword [ebp - 4]
movzx eax, byte [edi]
lea edi, [edi + 1]
shl edx, 8
add edx, eax
sub ebx, 1
jne 0x100db7b6
shl edx, 6
nop dword [eax]
mov eax, edx
shr eax, cl
sub ecx, 6
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
inc esi
test ecx, ecx
jg 0x100db7d0
mov ecx, dword [ebp - 8]
mov eax, esi
sub eax, ecx
test al, 3
je 0x100db7fd
inc eax
mov byte [esi], 0x3d
lea esi, [esi + 1]
test al, 3
jne 0x100db7f2
pop edi
mov byte [esi], 0
mov eax, ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100db810
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x100fb074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x21
mov esi, ecx
call fcn.100bd8fa
add esp, 4
mov dword [ebp - 0x48], 0x6a09e667
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0xbb67ae85
mov edx, esi
mov dword [ebp - 0x40], 0x3c6ef372
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x3c], 0xa54ff53a
push 0x126
mov ebx, eax
mov dword [ebp - 0x38], 0x510e527f
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x34], 0x9b05688c
movups xmmword [ebp - 0x14], xmm0
mov dword [ebp - 0x30], 0x1f83d9ab
mov dword [ebp - 0x2c], 0x5be0cd19
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xd0], 0
call fcn.100dbd00
add esp, 4
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0xd0]
call fcn.100dbda0
xorps xmm0, xmm0
xor esi, esi
movups xmmword [ebx], xmm0
mov edi, ebx
movups xmmword [ebx + 0x10], xmm0
mov byte [ebx + 0x20], 0
movzx eax, byte [ebp + esi - 0x24]
push eax
push str._02x
push edi
call fcn.100038c0
inc esi
add esp, 0xc
add edi, 2
cmp esi, 0x10
jl 0x100db8c0
xor edx, edx
mov esi, 0xa
cmp byte [edx + ebx], 0x61
mov ecx, 0x31
cmovge ecx, esi
add byte [edx + ebx], cl
inc edx
cmp edx, 0x20
jl 0x100db8e4
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b47d2
mov esp, ebp
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x310436be
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x2e8147d0
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x44c1d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f3d8f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
push esi
push edi
mov eax, dword [0x678dc8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], 0
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov ecx, dword [eax + 8]
lea esi, [eax + 0x10]
test cl, 1
jne 0x44c28a
or ecx, 1
mov dword [eax + 8], ecx
mov dword [ebp - 4], 1
call fcn.0046732f
mov ecx, eax
mov dword [esi + 0x1384], 0xffffffff
mov dword [esi + 4], ecx
lea edi, [esi + 8]
mov edx, 1
nop
mov eax, ecx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
inc edx
mov dword [edi - 4], ecx
cmp edx, 0x270
jb 0x44c260
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov dword [esi], 0x270
mov ecx, dword [eax + 8]
test cl, 2
jne 0x44c2b2
or ecx, 2
mov dword [eax + 0x1398], 0
mov dword [eax + 8], ecx
mov dword [eax + 0x139c], 0x3d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov byte [ebp - 0x18], al
mov ecx, edi
push dword [ebp - 0x18]
mov dword [ebp - 4], eax
push 0xe
mov dword [ebp - 0x20], 1
call fcn.00460fa0
mov dword [edi + 0x10], 0
mov eax, 0xe
nop
dec eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x1398]
mov eax, dword [eax + 0x139c]
sub eax, ecx
mov dword [ebp - 0x30], ecx
mov ecx, esi
cmp eax, 0xffffffff
jne 0x44c328
call fcn.004667e0
mov edx, eax
jmp 0x44c36a
inc eax
mov dword [ebp - 0x18], eax
call fcn.004667e0
mov ecx, dword [ebp - 0x18]
mul ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], edx
cmp eax, ecx
jae 0x44c36a
mov eax, ecx
xor edx, edx
neg eax
div ecx
mov eax, edx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x24], eax
jae 0x44c367
mov edi, ecx
mov ecx, esi
call fcn.004667e0
mul edi
cmp eax, dword [ebp - 0x28]
jb 0x44c354
mov edi, dword [ebp - 0x1c]
jmp 0x44c36a
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov ecx, dword [edi + 0x10]
movsx ax, byte [edx + eax + str.0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]
movzx edx, ax
cmp ecx, dword [edi + 0x14]
jae 0x44c39e
cmp dword [edi + 0x14], 8
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
jb 0x44c391
mov eax, dword [edi]
mov word [eax + ecx*2], dx
xor edx, edx
mov word [eax + ecx*2 + 2], dx
jmp 0x44c3af
push edx
mov byte [ebp - 0x34], 0
mov ecx, edi
push dword [ebp - 0x34]
push 1
call fcn.00461430
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x44c300
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x44d0d0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x678dc8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x67f6fc], 8
mov eax, 0x67f6e8
push esi
cmovae eax, dword [0x67f6e8]
push 0
push 0x80
push 1
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44d1f9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x50
jne 0x44d14c
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c77ea
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call esi
mov dword [ebp - 0x30], 0xef37fc9c
mov dword [ebp - 0x2c], 0xac2ce39a
mov dword [ebp - 0x28], 0xa73ee70c
mov dword [ebp - 0x24], 0xf96e4152
mov dword [ebp - 0x20], 0x48637c93
mov dword [ebp - 0x1c], 0xb36bfaf4
mov dword [ebp - 0x18], 0x24a76342
mov dword [ebp - 0x14], 0x97ad3619
movaps xmm1, xmmword [ebp - 0x30]
mov dword [ebp - 0x60], 0x8e528edf
mov dword [ebp - 0x5c], 0xc56a86ee
mov dword [ebp - 0x58], 0x877f8260
mov dword [ebp - 0x54], 0x961c3337
pxor xmm1, xmmword [ebp - 0x60]
movaps xmmword [ebp - 0x30], xmm1
movaps xmm1, xmmword [ebp - 0x20]
push eax
mov dword [ebp - 0x50], 0x6d4346e1
lea eax, [ebp - 0x30]
mov dword [ebp - 0x4c], 0xb36bf090
mov dword [ebp - 0x48], 0x24a76342
mov dword [ebp - 0x44], 0x97ad3619
pxor xmm1, xmmword [ebp - 0x50]
push eax
movaps xmmword [ebp - 0x20], xmm1
call fcn.0044b300
add esp, 8
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c77ea
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push 0x3860
push 0x679850
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x44d2d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], 0xfa3bfc88
mov dword [ebp - 0x2c], 0xa903c08b
mov dword [ebp - 0x28], 0xf51aa205
mov dword [ebp - 0x24], 0xac6e5c45
mov dword [ebp - 0x20], 0x672763c1
mov dword [ebp - 0x1c], 0xb36bf090
mov dword [ebp - 0x18], 0x24a76342
mov dword [ebp - 0x14], 0x97ad3619
movaps xmm1, xmmword [ebp - 0x30]
mov dword [ebp - 0x60], 0x8e528edf
mov dword [ebp - 0x5c], 0xc56a86ee
mov dword [ebp - 0x58], 0x877f8260
mov dword [ebp - 0x54], 0x961c3337
pxor xmm1, xmmword [ebp - 0x60]
movaps xmmword [ebp - 0x30], xmm1
movaps xmm1, xmmword [ebp - 0x20]
push eax
mov dword [ebp - 0x50], 0x6d4346e1
lea eax, [ebp - 0x30]
mov dword [ebp - 0x4c], 0xb36bf090
mov dword [ebp - 0x48], 0x24a76342
mov dword [ebp - 0x44], 0x97ad3619
pxor xmm1, xmmword [ebp - 0x50]
push eax
movaps xmmword [ebp - 0x20], xmm1
call fcn.0044b300
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c77ea
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x34], 0x3860
je 0x44d138
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.005c77ea
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x44d800
Capabilities:
Delete file
Delete service
Stop service

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x678dc8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x44d899
mov dword [ebp - 0x20], 0xcc05c19e
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0xc56ab7be
mov dword [ebp - 0x18], 0x877f8260
mov dword [ebp - 0x14], 0x961c3337
movaps xmm1, xmmword [ebp - 0x20]
push 0x10022
mov dword [ebp - 0x50], 0x8e528edf
mov dword [ebp - 0x4c], 0xc56a86ee
mov dword [ebp - 0x48], 0x877f8260
mov dword [ebp - 0x44], 0x961c3337
pxor xmm1, xmmword [ebp - 0x50]
push eax
push edi
movaps xmmword [ebp - 0x20], xmm1
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x44d8ae
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c77ea
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea eax, [ebp - 0x3c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
cmp dword [0x67f6fc], 8
mov eax, 0x67f6e8
cmovae eax, dword [0x67f6e8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
test eax, eax
pop edi
setne al
xor ecx, ebp
pop esi
call fcn.005c77ea
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x44da70
Capabilities:
Get file size

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x44da78
mov ecx, dword [ecx]
push edi
push 0
push 0x80
push 3
push 0
push 0
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x44dab5
cmp edi, 0xffffffff
je 0x44dab5
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
ret
Function at 0x4667e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x46683e
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x466800
mov eax, dword [edi]
jmp 0x466929
cmp eax, 0x4e0
jb 0x466929
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x466860
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x4668b0
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x468268
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x468289
jl 0x468280
test edi, edi
jne 0x468289
xor eax, eax
xor edx, edx
jmp 0x46834a
cmp dword [ebx + 0x38], 0
je 0x46829e
push eax
push edi
push dword [ebp + 8]
call fcn.00468350
jmp 0x46834a
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4682e5
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4682e5
cmp eax, edi
jb 0x4682bf
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.005c9000
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4682eb
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x46833f
mov ecx, ebx
call fcn.00467aff
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x46832a
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.005d7d17
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x46833f
jmp 0x4682fd
test edx, edx
je 0x46833f
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.005d7d17
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x4c6f10
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.005c8080
mov eax, dword [0x678dc8]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x67dbf4], 0
mov dword [esp], 0x616d50
mov dword [esp + 4], 0x4c6910
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x4c6cc0
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], 0x4c68c0
jne 0x4c706b
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4c7061
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.005dbecf
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.005dbf29
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x40]
add esp, 0x18
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x4c6fdf
push 0x616d50
push edi
call ebx
test eax, eax
jne 0x4c7026
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.005dbecf
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.005dbf29
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x4c705d
push 0x616d50
push edi
call ebx
test eax, eax
je 0x4c705a
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x4c705a
inc esi
cmp esi, 3
jl 0x4c7028
mov eax, dword [esp + 0x14]
mov dword [0x677fd8], eax
mov eax, dword [esp + 0x1c]
mov dword [0x677fe0], eax
mov eax, dword [esp + 0x24]
mov dword [0x677fe8], eax
jmp 0x4c705d
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x67dbf4], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x677fd8]
call fcn.005c77ea
add esp, 0x230
ret 4
Function at 0x4e4a80
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x67dd88], 0
jne 0x4e4b13
push 0x190
push 0
push 0x67dd90
mov dword [0x67dd88], 1
call fcn.005c9580
add esp, 0xc
push 0x67dd90
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4e4b13
call fcn.004a93e0
push str.BIO_sock_init
push 0
push 0x66ed1f
call fcn.004a94e0
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.004a94f0
call fcn.004a93e0
push str.BIO_sock_init
push 0
push 0x66ed1f
call fcn.004a94e0
push 0
push 0x7a
push 0x20
call fcn.004a94f0
add esp, 0x24
or eax, 0xffffffff
ret
mov eax, 1
ret

Function at 0x4e4b20
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x4e4b72
call fcn.004a93e0
push str.BIO_socket_ioctl
push 0
push 0x66ed1f
call fcn.004a94e0
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.004a94f0
add esp, 0xc
xor eax, eax
test esi, esi
pop esi
sete al
ret
Function at 0x511cc0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push ebp
call fcn.004a3e10
mov ebx, eax
add esp, 4
test ebx, ebx
jg 0x511cda
xor eax, eax
jmp 0x511cdd
lea eax, [ebx - 1]
push 0
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x20]
push 0x66ed1f
push eax
call fcn.004a4e90
mov esi, eax
add esp, 0xc
test esi, esi
je 0x511d4f
push ebp
call fcn.004a3f80
and dword [esi + 4], 0xfffffffe
add esp, 4
xor ebp, ebp
test ebx, ebx
jle 0x511d4d
push edi
lea edi, [esi + 0x14]
push ebp
push dword [esp + 0x18]
call fcn.004a3fc0
inc ebp
lea edi, [edi + 0x18]
add esp, 8
movups xmm0, xmmword [eax]
movups xmmword [edi - 0x24], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [edi - 0x14], xmm0
mov eax, dword [esi + 4]
mov ecx, dword [edi - 0x18]
or ecx, eax
xor ecx, eax
and ecx, 1
xor ecx, eax
mov dword [esi + 4], ecx
cmp ebp, ebx
jl 0x511d14
pop edi
mov dword [esi], ebx
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x55bd70
Capabilities:
Terminate process

Disassembly:
mov eax, 8
call fcn.005c8080
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
push ebx
xor edi, edi
call fcn.004a3e10
add esp, 4
test eax, eax
jle 0x55bf47
push edi
push ebx
call fcn.004a3fc0
mov esi, eax
mov dword [esp + 0x18], 0
push 0x9c
push esi
xor ebp, ebp
call fcn.00587a90
add esp, 0x10
test eax, eax
je 0x55bdc1
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
push 0x9d
push esi
call fcn.00587a90
add esp, 8
test eax, eax
je 0x55bdd6
mov ebp, dword [eax + 4]
push esi
call fcn.00587b80
add eax, 0xffffff6a
add esp, 4
cmp eax, 5
ja case.0x55bded.153
jmp dword [eax*4 + 0x55bf68]
mov ebp, dword [esp + 0x28]
test ebp, ebp
je case.0x55bded.153
cmp dword [ebp], 0
jne case.0x55bded.153
push esi
call fcn.00587ab0
push eax
call fcn.00527670
add esp, 8
mov dword [ebp], eax
jmp 0x55bf31
mov ebp, dword [esp + 0x28]
test ebp, ebp
je case.0x55bded.153
cmp dword [ebp], 0
jne case.0x55bded.153
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call fcn.00587b90
mov esi, eax
add esp, 0xc
test esi, esi
je 0x55bf5d
push esi
call fcn.00527670
push esi
mov dword [ebp], eax
call fcn.00527540
add esp, 8
cmp dword [ebp], 0
jmp 0x55bf33
cmp dword [esp + 0x2c], 0
je case.0x55bded.153
push esi
call fcn.00587b40
add esp, 4
cmp eax, 0x9e
jne case.0x55bded.153
push esi
call fcn.00587af0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x55bf5d
test ebp, ebp
je 0x55beba
push dword [ebp]
push dword [ebp + 8]
push ebx
call fcn.00501be0
add esp, 0xc
test eax, eax
je 0x55bf54
mov eax, dword [esp + 0x10]
test eax, eax
je 0x55bef8
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004f9d50
add esp, 8
test eax, eax
js 0x55bef8
push eax
push dword [esp + 0x18]
push ebx
call fcn.00501b50
push 0
push 0x66ed1f
push dword [esp + 0x28]
mov esi, eax
call fcn.004a4ec0
add esp, 0x18
test esi, esi
je 0x55bf54
push ebx
push dword [esp + 0x30]
call fcn.004a3e90
add esp, 8
test eax, eax
je 0x55bf54
mov ebx, dword [esp + 0x1c]
jmp case.0x55bded.153
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push esi
call fcn.00587ad0
add esp, 4
push eax
call fcn.0055bd70
add esp, 0x14
test eax, eax
je 0x55bf5d
push ebx
inc edi
call fcn.004a3e10
add esp, 4
cmp edi, eax
jl 0x55bd95
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
push ebx
call fcn.004ba8d0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x571fe0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.005c8080
mov ecx, dword [esp + 0xc]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
lea ebp, [ecx + 0x40]
mov esi, dword [ecx + 0x14]
cmp edi, esi
jbe 0x57208a
mov edx, dword [ecx + 0x18]
cmp edi, edx
jb 0x57203d
mov eax, edi
sub eax, edx
add eax, 4
and eax, 0xfffffffc
add eax, edx
push 0
mov dword [ecx + 0x18], eax
push 0x66ed1f
shl eax, 4
push eax
push dword [ebp]
call fcn.004a4ee0
add esp, 0x10
test eax, eax
jne 0x57203a
pop edi
pop esi
pop ebp
add esp, 8
ret
mov dword [ebp], eax
mov eax, esi
shl eax, 4
mov dword [esp + 0x10], eax
mov eax, edi
mov edi, dword [esp + 0x10]
sub eax, esi
mov dword [esp + 0xc], eax
push ebx
mov eax, dword [ebp]
add eax, edi
mov bl, byte [eax]
lea esi, [eax + 0x10]
push esi
shr bl, 7
push 1
neg bl
push eax
and bl, 0x87
call fcn.00571d20
xor byte [esi + 0xf], bl
add esp, 0xc
add edi, 0x10
sub dword [esp + 0x10], 1
jne 0x572053
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
pop ebx
mov dword [eax + 0x14], edi
shl edi, 4
add edi, dword [ebp]
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 8
ret

Function at 0x575e30
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x575e44
mov dword [esp + 0x18], fcn.00574610
jmp fcn.0056d910
mov dword [esp + 0x18], fcn.005738a0
jmp fcn.0056d610